Plugin Directory


Ignore:
Timestamp:
10/15/2026 07:29:29 PM (4 days ago)
Author:
roxyapi
Message:

Update to version 1.21.0 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roxyapi/trunk/src/Generated/Forms/GetKpRulingPlanetsForm.php

    r3747703 r3749195  
    1919
    2020        public static function spec(): array {
     21                $labels = \RoxyAPI\Generated\FormLabels::for_language( \RoxyAPI\Support\Language::from_locale( determine_locale() ) );
    2122                return array(
    2223                        'operation_id' => 'getKpRulingPlanets',
    2324                        'title'        => __( 'KP Ruling Planets with Optional Significators', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array( array( 'anchor' => 'latitude', 'section' => '', 'id' => '', 'fields' => array( 'latitude' => 'latitude', 'longitude' => 'longitude', 'timezone' => 'timezone' ) ) ),
    2627                        'sections'     => array(
    2728
    … …  
    3031                                array(
    3132                                        'name' => 'latitude',
    32                                         'label' => __( 'Latitude', 'roxyapi' ),
     33                                        'label' => $labels['fields']['latitude'] ?? 'Latitude',
    3334                                        'required' => true,
    34                                         'help' => __( 'Observer latitude in decimal degrees', 'roxyapi' ),
    3535                                        'type' => 'number',
    3636                                        'min' => -90,
    3737                                        'max' => 90,
    3838                                        'step' => 'any',
     39                                        'fold' => false,
    3940                                ),
    4041                                array(
    4142                                        'name' => 'longitude',
    42                                         'label' => __( 'Longitude', 'roxyapi' ),
     43                                        'label' => $labels['fields']['longitude'] ?? 'Longitude',
    4344                                        'required' => true,
    44                                         'help' => __( 'Observer longitude in decimal degrees', 'roxyapi' ),
    4545                                        'type' => 'number',
    4646                                        'min' => -180,
    4747                                        'max' => 180,
    4848                                        'step' => 'any',
     49                                        'fold' => false,
    4950                                ),
    5051                                array(
    5152                                        'name' => 'timezone',
    52                                         'label' => __( 'Timezone', 'roxyapi' ),
     53                                        'label' => $labels['fields']['timezone'] ?? 'Timezone',
    5354                                        'required' => false,
    5455                                        'help' => __( 'Select the timezone of the location.', 'roxyapi' ),
    5556                                        'type' => 'timezone',
     57                                        'min' => -14,
     58                                        'max' => 14,
     59                                        'default' => 5.5,
     60                                        'fold' => false,
    5661                                ),
    5762                                array(
    5863                                        'name' => 'datetime',
    59                                         'label' => __( 'Datetime', 'roxyapi' ),
     64                                        'label' => $labels['fields']['datetime'] ?? 'Date and time',
    6065                                        'required' => false,
    61                                         'help' => __( 'ISO 8601 datetime (YYYY-MM-DDTHH:MM:SS) for ruling planets', 'roxyapi' ),
    6266                                        'type' => 'time',
     67                                        'fold' => true,
    6368                                ),
    6469                                array(
    6570                                        'name' => 'birthDate',
    66                                         'label' => __( 'Birth date', 'roxyapi' ),
     71                                        'label' => $labels['fields']['birthDate'] ?? 'Birth date',
    6772                                        'required' => false,
    68                                         'help' => __( 'Birth date (YYYY-MM-DD) to calculate significators', 'roxyapi' ),
    6973                                        'type' => 'date',
     74                                        'fold' => true,
    7075                                ),
    7176                                array(
    7277                                        'name' => 'birthTime',
    73                                         'label' => __( 'Birth time', 'roxyapi' ),
     78                                        'label' => $labels['fields']['birthTime'] ?? 'Birth time',
    7479                                        'required' => false,
    75                                         'help' => __( 'Birth time (HH:MM:SS) for significator calculation', 'roxyapi' ),
    7680                                        'type' => 'time',
     81                                        'fold' => true,
    7782                                ),
    7883                                array(
    7984                                        'name' => 'nodeType',
    80                                         'label' => __( 'Node type', 'roxyapi' ),
     85                                        'label' => $labels['fields']['nodeType'] ?? 'Lunar node type',
    8186                                        'required' => false,
    82                                         'help' => __( 'Lunar node convention', 'roxyapi' ),
    8387                                        'type' => 'enum',
    8488                                        'enum' => array( 'mean', 'true' ),
     89                                        'default' => 'mean',
     90                                        'enum_labels' => array( $labels['enums']['nodeType.mean'] ?? 'Mean', $labels['enums']['nodeType.true'] ?? 'True' ),
     91                                        'fold' => true,
     92                                ),
     93                                array(
     94                                        'name' => 'focus',
     95                                        'label' => $labels['fields']['focus'] ?? 'Focus',
     96                                        'required' => false,
     97                                        'type' => 'enum',
     98                                        'enum' => array( 'general', 'finance' ),
     99                                        'default' => 'general',
     100                                        'enum_labels' => array( $labels['enums']['focus.general'] ?? 'General', $labels['enums']['focus.finance'] ?? 'Finance' ),
     101                                        'fold' => true,
    85102                                ),
    86103                        ),
    … …  
    93110         */
    94111        public static function call( array $body ) {
    95                 return \RoxyAPI\Generated\Client::getKpRulingPlanets( $body );
     112                return \RoxyAPI\Generated\Client::getKpRulingPlanets( array_diff_key( $body, array_flip( array( 'focus' ) ) ), array_intersect_key( $body, array_flip( array( 'focus' ) ) ) );
    96113        }
    97114}
Note: See TracChangeset for help on using the changeset viewer.