@zodic/shared 0.0.122 → 0.0.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/api/index.ts +29 -0
- package/package.json +1 -1
package/app/api/index.ts
CHANGED
|
@@ -539,6 +539,35 @@ export const Api = (env: BackendBindings) => ({
|
|
|
539
539
|
report: string;
|
|
540
540
|
};
|
|
541
541
|
},
|
|
542
|
+
|
|
543
|
+
getNatalWheelChart: async ({
|
|
544
|
+
day,
|
|
545
|
+
month,
|
|
546
|
+
year,
|
|
547
|
+
hour,
|
|
548
|
+
min,
|
|
549
|
+
lat,
|
|
550
|
+
lon,
|
|
551
|
+
tzone,
|
|
552
|
+
language = 'en-us',
|
|
553
|
+
}: {
|
|
554
|
+
day: number;
|
|
555
|
+
month: number;
|
|
556
|
+
year: number;
|
|
557
|
+
hour: number;
|
|
558
|
+
min: number;
|
|
559
|
+
lat: number;
|
|
560
|
+
lon: number;
|
|
561
|
+
tzone: number;
|
|
562
|
+
language?: 'en-us' | 'pt-br';
|
|
563
|
+
}): Promise<{ chart_url: string }> => {
|
|
564
|
+
const path = `natal_wheel_chart`;
|
|
565
|
+
const payload = { day, month, year, hour, min, lat, lon, tzone };
|
|
566
|
+
|
|
567
|
+
return (await makeAstrologyApiCall(path, payload, env, language)) as {
|
|
568
|
+
chart_url: string;
|
|
569
|
+
};
|
|
570
|
+
},
|
|
542
571
|
},
|
|
543
572
|
|
|
544
573
|
callTimezone: async ({
|