@zodic/shared 0.0.10 → 0.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -41,8 +41,10 @@ export type CentralBindings = {
41
41
  FACEBOOK_CLIENT_ID: string;
42
42
  FACEBOOK_CLIENT_SECRET: string;
43
43
  OAUTH_REDIRECT_URI: string;
44
- ASTROLOGY_API_USER: string;
45
- ASTROLOGY_API_KEY: string;
44
+ ASTROLOGY_WESTERN_USER_ID: string;
45
+ ASTROLOGY_WESTERN_API_KEY: string;
46
+ ASTROLOGY_PDF_USER_ID: string;
47
+ ASTROLOGY_PDF_API_KEY: string;
46
48
 
47
49
  API_BASE_URL: string;
48
50
  PUBLIC_GOOGLE_CLIENT_ID: string;
@@ -90,8 +92,10 @@ export type BackendBindings = Env &
90
92
  | 'FACEBOOK_CLIENT_ID'
91
93
  | 'FACEBOOK_CLIENT_SECRET'
92
94
  | 'OAUTH_REDIRECT_URI'
93
- | 'ASTROLOGY_API_USER'
94
- | 'ASTROLOGY_API_KEY'
95
+ | 'ASTROLOGY_WESTERN_API_KEY'
96
+ | 'ASTROLOGY_WESTERN_USER_ID'
97
+ | 'ASTROLOGY_PDF_API_KEY'
98
+ | 'ASTROLOGY_PDF_USER_ID'
95
99
  | 'AI'
96
100
  | 'KV_USER_PRODUCT_STATUS'
97
101
  >;
@@ -11,4 +11,110 @@ export const VALID_GENDERS_ARRAY = ['male', 'female', 'non-binary'] as const;
11
11
 
12
12
  export type Gender = (typeof VALID_GENDERS_ARRAY)[number];
13
13
 
14
- export const VALID_GENDERS = new Set<Gender>(VALID_GENDERS_ARRAY);
14
+ export const VALID_GENDERS = new Set<Gender>(VALID_GENDERS_ARRAY);
15
+
16
+ export type AstroEntity = {
17
+ name: string;
18
+ full_degree: number;
19
+ norm_degree: number;
20
+ sign: string;
21
+ house: number;
22
+ };
23
+
24
+ export type NatalChartInterpretation = {
25
+ planets: Planet[];
26
+ houses: House[];
27
+ ascendant: number;
28
+ midheaven: number;
29
+ vertex: number;
30
+ lilith: Lilith;
31
+ aspects: Aspect[];
32
+ moon_phase: MoonPhase;
33
+ hemisphere: Hemisphere;
34
+ elements: Elements;
35
+ modes: Modes;
36
+ dominant_sign: DominantSign;
37
+ };
38
+
39
+ export type Planet = {
40
+ name: string;
41
+ full_degree: number;
42
+ norm_degree: number;
43
+ speed: number;
44
+ is_retro: string; // Can also be boolean if converted
45
+ sign_id: number;
46
+ sign: string;
47
+ house: number;
48
+ };
49
+
50
+ export type House = {
51
+ house: number;
52
+ sign: string;
53
+ degree: number;
54
+ };
55
+
56
+ export type Lilith = {
57
+ name: string;
58
+ full_degree: number;
59
+ norm_degree: number;
60
+ speed: number;
61
+ is_retro: string; // Can also be boolean if converted
62
+ sign_id: number;
63
+ sign: string;
64
+ house: number;
65
+ };
66
+
67
+ export type Aspect = {
68
+ aspecting_planet: string;
69
+ aspected_planet: string;
70
+ aspecting_planet_id: number;
71
+ aspected_planet_id: number;
72
+ type: string;
73
+ orb: number;
74
+ diff: number;
75
+ };
76
+
77
+ export type MoonPhase = {
78
+ moon_phase_name: string;
79
+ moon_phase_id: number;
80
+ moon_phase_calc: string;
81
+ moon_phase_description: string;
82
+ };
83
+
84
+ export type Hemisphere = {
85
+ east_west: HemisphereDetail;
86
+ north_south: HemisphereDetail;
87
+ };
88
+
89
+ export type HemisphereDetail = {
90
+ description: string;
91
+ id: number;
92
+ };
93
+
94
+ export type Elements = {
95
+ elements: Element[];
96
+ description: string;
97
+ dominant_element_id: number;
98
+ };
99
+
100
+ export type Element = {
101
+ name: string;
102
+ percentage: number;
103
+ };
104
+
105
+ export type Modes = {
106
+ modes: Mode[];
107
+ description: string;
108
+ dominant_mode_id: number;
109
+ };
110
+
111
+ export type Mode = {
112
+ name: string;
113
+ percentage: number;
114
+ };
115
+
116
+ export type DominantSign = {
117
+ sign_id: number;
118
+ sign_name: string;
119
+ percentage: number;
120
+ };
package/bun.lockb DELETED
Binary file