Skip to content

Commit 054df47

Browse files
committed
chore(deps): resync to 175 endpoints and upgrade pint and phpstan
1 parent 066cf7b commit 054df47

44 files changed

Lines changed: 3801 additions & 601 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
"saloonphp/saloon": "^4.0"
3232
},
3333
"require-dev": {
34-
"pestphp/pest": "^3.0",
35-
"phpstan/phpstan": "^2.1",
36-
"laravel/pint": "^1.18"
34+
"laravel/pint": "^1.18",
35+
"pestphp/pest": "^3.8",
36+
"phpstan/phpstan": "^2.1"
3737
},
3838
"autoload": {
3939
"psr-4": {

specs/openapi.json

Lines changed: 2979 additions & 531 deletions
Large diffs are not rendered by default.

src/Generated/Requests/CalculateArudhaPadasRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public function __construct(
3838
public readonly float $latitude,
3939
public readonly float $longitude,
4040
public readonly string $time,
41+
public readonly ?string $ayanamsa = null,
42+
public readonly ?float $ayanamsaValue = null,
4143
public readonly mixed $timezone = null,
4244
public readonly ?string $lang = null,
4345
) {
@@ -54,6 +56,12 @@ public function resolveEndpoint(): string
5456
protected function defaultBody(): array
5557
{
5658
$body = [];
59+
if ($this->ayanamsa !== null) {
60+
$body['ayanamsa'] = $this->ayanamsa;
61+
}
62+
if ($this->ayanamsaValue !== null) {
63+
$body['ayanamsaValue'] = $this->ayanamsaValue;
64+
}
5765
$body['date'] = $this->date;
5866
$body['latitude'] = $this->latitude;
5967
$body['longitude'] = $this->longitude;

src/Generated/Requests/CalculateAshtakavargaRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public function __construct(
3737
public readonly float $latitude,
3838
public readonly float $longitude,
3939
public readonly string $time,
40+
public readonly ?string $ayanamsa = null,
41+
public readonly ?float $ayanamsaValue = null,
4042
public readonly mixed $timezone = null,
4143
) {
4244
}
@@ -52,6 +54,12 @@ public function resolveEndpoint(): string
5254
protected function defaultBody(): array
5355
{
5456
$body = [];
57+
if ($this->ayanamsa !== null) {
58+
$body['ayanamsa'] = $this->ayanamsa;
59+
}
60+
if ($this->ayanamsaValue !== null) {
61+
$body['ayanamsaValue'] = $this->ayanamsaValue;
62+
}
5563
$body['date'] = $this->date;
5664
$body['latitude'] = $this->latitude;
5765
$body['longitude'] = $this->longitude;

src/Generated/Requests/CalculateBhavChalitRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function __construct(
4040
public readonly float $latitude,
4141
public readonly float $longitude,
4242
public readonly string $time,
43+
public readonly ?string $ayanamsa = null,
44+
public readonly ?float $ayanamsaValue = null,
4345
public readonly mixed $timezone = null,
4446
public readonly ?string $focus = null,
4547
public readonly ?string $lang = null,
@@ -57,6 +59,12 @@ public function resolveEndpoint(): string
5759
protected function defaultBody(): array
5860
{
5961
$body = [];
62+
if ($this->ayanamsa !== null) {
63+
$body['ayanamsa'] = $this->ayanamsa;
64+
}
65+
if ($this->ayanamsaValue !== null) {
66+
$body['ayanamsaValue'] = $this->ayanamsaValue;
67+
}
6068
$body['date'] = $this->date;
6169
$body['latitude'] = $this->latitude;
6270
$body['longitude'] = $this->longitude;

src/Generated/Requests/CalculateBhavaBalaRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function __construct(
4141
public readonly float $latitude,
4242
public readonly float $longitude,
4343
public readonly string $time,
44+
public readonly ?string $ayanamsa = null,
45+
public readonly ?float $ayanamsaValue = null,
4446
public readonly mixed $timezone = null,
4547
public readonly ?string $focus = null,
4648
public readonly ?string $lang = null,
@@ -58,6 +60,12 @@ public function resolveEndpoint(): string
5860
protected function defaultBody(): array
5961
{
6062
$body = [];
63+
if ($this->ayanamsa !== null) {
64+
$body['ayanamsa'] = $this->ayanamsa;
65+
}
66+
if ($this->ayanamsaValue !== null) {
67+
$body['ayanamsaValue'] = $this->ayanamsaValue;
68+
}
6169
$body['date'] = $this->date;
6270
$body['latitude'] = $this->latitude;
6371
$body['longitude'] = $this->longitude;

src/Generated/Requests/CalculateCharaKarakasRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public function __construct(
3939
public readonly float $latitude,
4040
public readonly float $longitude,
4141
public readonly string $time,
42+
public readonly ?string $ayanamsa = null,
43+
public readonly ?float $ayanamsaValue = null,
4244
public readonly ?string $scheme = null,
4345
public readonly mixed $timezone = null,
4446
public readonly ?string $lang = null,
@@ -56,6 +58,12 @@ public function resolveEndpoint(): string
5658
protected function defaultBody(): array
5759
{
5860
$body = [];
61+
if ($this->ayanamsa !== null) {
62+
$body['ayanamsa'] = $this->ayanamsa;
63+
}
64+
if ($this->ayanamsaValue !== null) {
65+
$body['ayanamsaValue'] = $this->ayanamsaValue;
66+
}
5967
$body['date'] = $this->date;
6068
$body['latitude'] = $this->latitude;
6169
$body['longitude'] = $this->longitude;

src/Generated/Requests/CalculateGunMilanRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class CalculateGunMilanRequest extends Request implements HasBody
3535
public function __construct(
3636
public readonly array $person1,
3737
public readonly array $person2,
38+
public readonly ?string $ayanamsa = null,
39+
public readonly ?float $ayanamsaValue = null,
3840
public readonly ?string $lang = null,
3941
) {
4042
}
@@ -50,6 +52,12 @@ public function resolveEndpoint(): string
5052
protected function defaultBody(): array
5153
{
5254
$body = [];
55+
if ($this->ayanamsa !== null) {
56+
$body['ayanamsa'] = $this->ayanamsa;
57+
}
58+
if ($this->ayanamsaValue !== null) {
59+
$body['ayanamsaValue'] = $this->ayanamsaValue;
60+
}
5361
$body['person1'] = $this->person1;
5462
$body['person2'] = $this->person2;
5563

src/Generated/Requests/CalculateShadbalaRequest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ public function __construct(
3838
public readonly float $latitude,
3939
public readonly float $longitude,
4040
public readonly string $time,
41+
public readonly ?string $ayanamsa = null,
42+
public readonly ?float $ayanamsaValue = null,
4143
public readonly mixed $timezone = null,
44+
public readonly ?string $lang = null,
4245
) {
4346
}
4447

@@ -53,6 +56,12 @@ public function resolveEndpoint(): string
5356
protected function defaultBody(): array
5457
{
5558
$body = [];
59+
if ($this->ayanamsa !== null) {
60+
$body['ayanamsa'] = $this->ayanamsa;
61+
}
62+
if ($this->ayanamsaValue !== null) {
63+
$body['ayanamsaValue'] = $this->ayanamsaValue;
64+
}
5665
$body['date'] = $this->date;
5766
$body['latitude'] = $this->latitude;
5867
$body['longitude'] = $this->longitude;
@@ -63,4 +72,17 @@ protected function defaultBody(): array
6372

6473
return $body;
6574
}
75+
76+
/**
77+
* @return array<string, mixed>
78+
*/
79+
protected function defaultQuery(): array
80+
{
81+
$query = [];
82+
if ($this->lang !== null) {
83+
$query['lang'] = $this->lang;
84+
}
85+
86+
return $query;
87+
}
6688
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* AUTO-GENERATED by scripts/generate.mjs from the live OpenAPI spec.
7+
* Do not edit this file by hand. Regenerate with: node scripts/generate.mjs
8+
*/
9+
10+
namespace RoxyAPI\Sdk\Generated\Requests;
11+
12+
use Saloon\Enums\Method;
13+
use Saloon\Http\Request;
14+
use Saloon\Contracts\Body\HasBody;
15+
use Saloon\Traits\Body\HasJsonBody;
16+
17+
/**
18+
* Cast a KP horary (Prashna) chart from a number 1-249 - KP Horary API
19+
*
20+
* Cast a Krishnamurti Paddhati horary chart, also called Prashna, from a number between 1 and
21+
* 249 given by the querent plus the moment and place the question is judged. NO BIRTH DETAILS
22+
* ARE NEEDED, which is what makes horary the KP answer when birth time is unknown or
23+
* unreliable. The number maps to one of the 249 KP sub divisions and sets the Ascendant; the
24+
* twelve Placidus cusps follow from that Ascendant at the given latitude, and every planetary
25+
* position comes from the real sky at the moment of the question. Returns the Ascendant with
26+
* its sub lord, all twelve cusps with star lord and sub lord, the nine grahas placed against
27+
* those cusps, the five ruling planets for validating the chart, and four-level significators
28+
* for judging which houses each graha supports. KP horary API, Prashna kundali calculator, 249
29+
* horary number chart, Krishnamurti Paddhati horary, cusp sub lord question answering.
30+
*
31+
* POST /vedic-astrology/kp/horary
32+
*/
33+
class CastKpHoraryChartRequest extends Request implements HasBody
34+
{
35+
use HasJsonBody;
36+
37+
protected Method $method = Method::POST;
38+
39+
public function __construct(
40+
public readonly string $date,
41+
public readonly int $horaryNumber,
42+
public readonly float $latitude,
43+
public readonly float $longitude,
44+
public readonly string $time,
45+
public readonly ?string $ayanamsa = null,
46+
public readonly ?float $ayanamsaValue = null,
47+
public readonly ?string $nodeType = null,
48+
public readonly mixed $timezone = null,
49+
public readonly ?string $focus = null,
50+
public readonly ?string $lang = null,
51+
) {
52+
}
53+
54+
public function resolveEndpoint(): string
55+
{
56+
return "/vedic-astrology/kp/horary";
57+
}
58+
59+
/**
60+
* @return array<string, mixed>
61+
*/
62+
protected function defaultBody(): array
63+
{
64+
$body = [];
65+
if ($this->ayanamsa !== null) {
66+
$body['ayanamsa'] = $this->ayanamsa;
67+
}
68+
if ($this->ayanamsaValue !== null) {
69+
$body['ayanamsaValue'] = $this->ayanamsaValue;
70+
}
71+
$body['date'] = $this->date;
72+
$body['horaryNumber'] = $this->horaryNumber;
73+
$body['latitude'] = $this->latitude;
74+
$body['longitude'] = $this->longitude;
75+
if ($this->nodeType !== null) {
76+
$body['nodeType'] = $this->nodeType;
77+
}
78+
$body['time'] = $this->time;
79+
if ($this->timezone !== null) {
80+
$body['timezone'] = $this->timezone;
81+
}
82+
83+
return $body;
84+
}
85+
86+
/**
87+
* @return array<string, mixed>
88+
*/
89+
protected function defaultQuery(): array
90+
{
91+
$query = [];
92+
if ($this->focus !== null) {
93+
$query['focus'] = $this->focus;
94+
}
95+
if ($this->lang !== null) {
96+
$query['lang'] = $this->lang;
97+
}
98+
99+
return $query;
100+
}
101+
}

0 commit comments

Comments
 (0)