@zodic/shared 0.0.261 → 0.0.263
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 +1 -1
- package/types/scopes/generic.ts +22 -8
- package/types/scopes/legacy.ts +19 -16
- package/utils/astroPrompts/pointNameMap.ts +28 -29
package/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
AspectType,
|
|
3
|
+
PlacementSlug,
|
|
4
|
+
PointSlug,
|
|
5
|
+
ZodiacSign,
|
|
6
|
+
ZodiacSignSlug,
|
|
7
|
+
} from './legacy';
|
|
2
8
|
|
|
3
9
|
export type Provider = 'google' | 'facebook';
|
|
4
10
|
|
|
@@ -19,6 +25,12 @@ export const ProductType = {
|
|
|
19
25
|
REPORT: 'report',
|
|
20
26
|
};
|
|
21
27
|
|
|
28
|
+
export type PlacementType =
|
|
29
|
+
| 'planet'
|
|
30
|
+
| 'key_point'
|
|
31
|
+
| 'karmic_point'
|
|
32
|
+
| 'arabic_part';
|
|
33
|
+
|
|
22
34
|
export const VALID_GENDERS_ARRAY = ['male', 'female', 'non-binary'] as const;
|
|
23
35
|
|
|
24
36
|
export type Gender = (typeof VALID_GENDERS_ARRAY)[number];
|
|
@@ -73,7 +85,7 @@ export interface DescriptionTemplateRow {
|
|
|
73
85
|
export type AstroReportParams =
|
|
74
86
|
| {
|
|
75
87
|
reportType: 'sign';
|
|
76
|
-
type:
|
|
88
|
+
type: PlacementType;
|
|
77
89
|
pointName: PointSlug;
|
|
78
90
|
sign: ZodiacSign;
|
|
79
91
|
}
|
|
@@ -404,15 +416,17 @@ export type ControlNetConfig =
|
|
|
404
416
|
weight: number;
|
|
405
417
|
};
|
|
406
418
|
|
|
419
|
+
export type PlacementObject = {
|
|
420
|
+
type: PlacementType;
|
|
421
|
+
name: PlacementSlug;
|
|
422
|
+
sign: ZodiacSignSlug;
|
|
423
|
+
house: number | null;
|
|
424
|
+
};
|
|
425
|
+
|
|
407
426
|
export interface AstroKVData {
|
|
408
427
|
natalChart: {
|
|
409
428
|
wheelUrl: string;
|
|
410
|
-
|
|
411
|
-
type: string;
|
|
412
|
-
name: string;
|
|
413
|
-
sign: string;
|
|
414
|
-
house: number | null;
|
|
415
|
-
}>;
|
|
429
|
+
placements: Array<PlacementObject>;
|
|
416
430
|
ascendant: {
|
|
417
431
|
sign: string;
|
|
418
432
|
};
|
package/types/scopes/legacy.ts
CHANGED
|
@@ -32,44 +32,47 @@ export const aspects = [
|
|
|
32
32
|
export type AspectType = (typeof aspects)[number];
|
|
33
33
|
|
|
34
34
|
export interface BalancedElementParams {
|
|
35
|
-
featureType:
|
|
36
|
-
subtype:
|
|
35
|
+
featureType: 'element';
|
|
36
|
+
subtype: 'balanced';
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface PureElementParams {
|
|
40
|
-
featureType:
|
|
41
|
-
subtype:
|
|
40
|
+
featureType: 'element';
|
|
41
|
+
subtype: 'pure';
|
|
42
42
|
dominantElement: string; // e.g., "fire"
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export interface PreponderantLackingElementParams {
|
|
46
|
-
featureType:
|
|
47
|
-
subtype:
|
|
46
|
+
featureType: 'element';
|
|
47
|
+
subtype: 'preponderant_lacking';
|
|
48
48
|
dominantElement: string; // e.g., "fire"
|
|
49
49
|
lackingElement: string; // e.g., "water"
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export type ElementParams =
|
|
52
|
+
export type ElementParams =
|
|
53
|
+
| BalancedElementParams
|
|
54
|
+
| PureElementParams
|
|
55
|
+
| PreponderantLackingElementParams;
|
|
53
56
|
|
|
54
57
|
export interface MoonPhaseParams {
|
|
55
|
-
featureType:
|
|
58
|
+
featureType: 'moon_phase';
|
|
56
59
|
name: string; // e.g., "last-quarter"
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
export interface ModeParams {
|
|
60
|
-
featureType:
|
|
63
|
+
featureType: 'mode';
|
|
61
64
|
name: string; // e.g., "cardinal"
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
export interface HemisphereParams {
|
|
65
|
-
featureType:
|
|
66
|
-
name:
|
|
68
|
+
featureType: 'hemisphere_east_west' | 'hemisphere_north_south';
|
|
69
|
+
name: 'east' | 'west' | 'north' | 'south'; // Highlighted hemisphere
|
|
67
70
|
}
|
|
68
71
|
|
|
69
|
-
export type FeatureParams =
|
|
70
|
-
| MoonPhaseParams
|
|
71
|
-
| ElementParams
|
|
72
|
-
| ModeParams
|
|
72
|
+
export type FeatureParams =
|
|
73
|
+
| MoonPhaseParams
|
|
74
|
+
| ElementParams
|
|
75
|
+
| ModeParams
|
|
73
76
|
| HemisphereParams;
|
|
74
77
|
|
|
75
78
|
export const pointTypes: Record<PointSlug, string> = {
|
|
@@ -97,7 +100,6 @@ export const pointTypes: Record<PointSlug, string> = {
|
|
|
97
100
|
pars_spiritus: 'arabic_part',
|
|
98
101
|
pars_victoria: 'arabic_part',
|
|
99
102
|
pars_amoris: 'arabic_part',
|
|
100
|
-
pars_eros: 'arabic_part',
|
|
101
103
|
pars_fortitudo: 'arabic_part',
|
|
102
104
|
pars_necessitatis: 'arabic_part',
|
|
103
105
|
};
|
|
@@ -121,6 +123,7 @@ export const aspectPoints: PointSlug[] = [
|
|
|
121
123
|
];
|
|
122
124
|
|
|
123
125
|
export type PointSlug = keyof typeof pointNameMap;
|
|
126
|
+
export type PlacementSlug = PointSlug;
|
|
124
127
|
|
|
125
128
|
export type ZodiacSign =
|
|
126
129
|
| 'aries'
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
export const pointNameMap
|
|
2
|
-
sun:
|
|
3
|
-
moon:
|
|
4
|
-
mercury:
|
|
5
|
-
venus:
|
|
6
|
-
mars:
|
|
7
|
-
jupiter:
|
|
8
|
-
saturn:
|
|
9
|
-
uranus:
|
|
10
|
-
neptune:
|
|
11
|
-
pluto:
|
|
12
|
-
ascendant:
|
|
13
|
-
descendant:
|
|
14
|
-
midheaven:
|
|
15
|
-
imum_coeli:
|
|
16
|
-
north_node:
|
|
17
|
-
south_node:
|
|
18
|
-
chiron:
|
|
19
|
-
lilith:
|
|
20
|
-
vertex:
|
|
21
|
-
antivertex:
|
|
22
|
-
pars_fortuna:
|
|
23
|
-
pars_spiritus:
|
|
24
|
-
pars_victoria:
|
|
25
|
-
pars_amoris:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
1
|
+
export const pointNameMap = {
|
|
2
|
+
sun: 'Sun',
|
|
3
|
+
moon: 'Moon',
|
|
4
|
+
mercury: 'Mercury',
|
|
5
|
+
venus: 'Venus',
|
|
6
|
+
mars: 'Mars',
|
|
7
|
+
jupiter: 'Jupiter',
|
|
8
|
+
saturn: 'Saturn',
|
|
9
|
+
uranus: 'Uranus',
|
|
10
|
+
neptune: 'Neptune',
|
|
11
|
+
pluto: 'Pluto',
|
|
12
|
+
ascendant: 'Ascendant',
|
|
13
|
+
descendant: 'Descendant',
|
|
14
|
+
midheaven: 'Midheaven',
|
|
15
|
+
imum_coeli: 'Imum Coeli',
|
|
16
|
+
north_node: 'North Node',
|
|
17
|
+
south_node: 'South Node',
|
|
18
|
+
chiron: 'Chiron',
|
|
19
|
+
lilith: 'Lilith',
|
|
20
|
+
vertex: 'Vertex',
|
|
21
|
+
antivertex: 'Antivertex',
|
|
22
|
+
pars_fortuna: 'Pars Fortuna',
|
|
23
|
+
pars_spiritus: 'Pars Spiritus',
|
|
24
|
+
pars_victoria: 'Pars Victoria',
|
|
25
|
+
pars_amoris: 'Pars Amoris',
|
|
26
|
+
pars_fortitudo: 'Pars Fortitudo',
|
|
27
|
+
pars_necessitatis: 'Pars Necessitatis',
|
|
28
|
+
};
|