@zodic/shared 0.0.261 → 0.0.262

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.261",
3
+ "version": "0.0.262",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -19,6 +19,12 @@ export const ProductType = {
19
19
  REPORT: 'report',
20
20
  };
21
21
 
22
+ export type PlacementType =
23
+ | 'planet'
24
+ | 'key_point'
25
+ | 'karmic_point'
26
+ | 'arabic_part';
27
+
22
28
  export const VALID_GENDERS_ARRAY = ['male', 'female', 'non-binary'] as const;
23
29
 
24
30
  export type Gender = (typeof VALID_GENDERS_ARRAY)[number];
@@ -73,7 +79,7 @@ export interface DescriptionTemplateRow {
73
79
  export type AstroReportParams =
74
80
  | {
75
81
  reportType: 'sign';
76
- type: 'planet' | 'key_point' | 'karmic_point' | 'arabic_part';
82
+ type: PlacementType;
77
83
  pointName: PointSlug;
78
84
  sign: ZodiacSign;
79
85
  }
@@ -407,8 +413,8 @@ export type ControlNetConfig =
407
413
  export interface AstroKVData {
408
414
  natalChart: {
409
415
  wheelUrl: string;
410
- planets: Array<{
411
- type: string;
416
+ placements: Array<{
417
+ type: PlacementType;
412
418
  name: string;
413
419
  sign: string;
414
420
  house: number | null;
@@ -32,44 +32,47 @@ export const aspects = [
32
32
  export type AspectType = (typeof aspects)[number];
33
33
 
34
34
  export interface BalancedElementParams {
35
- featureType: "element";
36
- subtype: "balanced";
35
+ featureType: 'element';
36
+ subtype: 'balanced';
37
37
  }
38
38
 
39
39
  export interface PureElementParams {
40
- featureType: "element";
41
- subtype: "pure";
40
+ featureType: 'element';
41
+ subtype: 'pure';
42
42
  dominantElement: string; // e.g., "fire"
43
43
  }
44
44
 
45
45
  export interface PreponderantLackingElementParams {
46
- featureType: "element";
47
- subtype: "preponderant_lacking";
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 = BalancedElementParams | PureElementParams | PreponderantLackingElementParams;
52
+ export type ElementParams =
53
+ | BalancedElementParams
54
+ | PureElementParams
55
+ | PreponderantLackingElementParams;
53
56
 
54
57
  export interface MoonPhaseParams {
55
- featureType: "moon_phase";
58
+ featureType: 'moon_phase';
56
59
  name: string; // e.g., "last-quarter"
57
60
  }
58
61
 
59
62
  export interface ModeParams {
60
- featureType: "mode";
63
+ featureType: 'mode';
61
64
  name: string; // e.g., "cardinal"
62
65
  }
63
66
 
64
67
  export interface HemisphereParams {
65
- featureType: "hemisphere_east_west" | "hemisphere_north_south";
66
- name: "east" | "west" | "north" | "south"; // Highlighted hemisphere
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
  };
@@ -1,29 +1,28 @@
1
- export const pointNameMap: Record<string, string> = {
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_eros: "Pars Eros",
27
- pars_fortitudo: "Pars Fortitudo",
28
- pars_necessitatis: "Pars Necessitatis",
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
+ };