@zodic/shared 0.0.253 → 0.0.255
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/db/schema.ts +4 -4
- package/package.json +1 -1
- package/types/scopes/generic.ts +53 -57
package/db/schema.ts
CHANGED
|
@@ -119,8 +119,8 @@ export const astroPlanets = sqliteTable(
|
|
|
119
119
|
.notNull()
|
|
120
120
|
.references(() => users.id, { onDelete: 'cascade' }),
|
|
121
121
|
type: text('type').notNull(), // e.g., "planet", "advanced_planet"
|
|
122
|
-
name: text('name').notNull(), // Planet or point name (e.g., "
|
|
123
|
-
sign: text('sign').notNull(), // Zodiac sign (e.g., "
|
|
122
|
+
name: text('name').notNull(), // Planet or point name (e.g., "sun", "vertex")
|
|
123
|
+
sign: text('sign').notNull(), // Zodiac sign (e.g., "sagittarius")
|
|
124
124
|
house: integer('house'), // House number (1-12)
|
|
125
125
|
fullDegree: real('full_degree'), // Full degree in 360° system
|
|
126
126
|
normDegree: real('norm_degree'), // Degree within the sign (0-29°)
|
|
@@ -296,8 +296,8 @@ export const concepts = sqliteTable(
|
|
|
296
296
|
id: text('id').primaryKey(), // Unique Concept ID
|
|
297
297
|
name: text('name').notNull(), // Name of the Concept (e.g., "The Crown", "The Amulet")
|
|
298
298
|
slug: text('slug').notNull(), // Name of the Concept (e.g., "crown", "amulet")
|
|
299
|
-
planet1: text('planet1').notNull(), // First planet (e.g., "
|
|
300
|
-
planet2: text('planet2').notNull(), // Second planet (e.g., "
|
|
299
|
+
planet1: text('planet1').notNull(), // First planet (e.g., "sun")
|
|
300
|
+
planet2: text('planet2').notNull(), // Second planet (e.g., "moon")
|
|
301
301
|
planet3: text('planet3'), // Third planet (e.g., "Ascendant"), optional for some Concepts
|
|
302
302
|
},
|
|
303
303
|
(t) => [index('concepts_name_idx').on(t.name)]
|
package/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -404,87 +404,83 @@ export type ControlNetConfig =
|
|
|
404
404
|
weight: number;
|
|
405
405
|
};
|
|
406
406
|
|
|
407
|
-
export
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
407
|
+
export interface AstroKVData {
|
|
408
|
+
natal_chart: {
|
|
409
|
+
planets: Array<{
|
|
410
|
+
type: string;
|
|
411
411
|
name: string;
|
|
412
412
|
sign: string;
|
|
413
413
|
house: number | null;
|
|
414
|
-
}
|
|
414
|
+
}>;
|
|
415
415
|
ascendant: {
|
|
416
416
|
sign: string;
|
|
417
417
|
};
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
description: string;
|
|
423
|
-
};
|
|
424
|
-
elements: {
|
|
425
|
-
elements: {
|
|
426
|
-
name: string;
|
|
427
|
-
percentage: number;
|
|
428
|
-
}[];
|
|
429
|
-
description: string;
|
|
430
|
-
dominantElementId: number;
|
|
431
|
-
};
|
|
432
|
-
modes: {
|
|
433
|
-
modes: {
|
|
434
|
-
name: string;
|
|
435
|
-
percentage: number;
|
|
436
|
-
}[];
|
|
437
|
-
description: string;
|
|
438
|
-
dominantModeId: number;
|
|
439
|
-
};
|
|
440
|
-
hemisphere: {
|
|
441
|
-
eastWest: {
|
|
442
|
-
name: string;
|
|
443
|
-
id: number;
|
|
444
|
-
description: string;
|
|
418
|
+
features: {
|
|
419
|
+
moon_phase: MoonPhase & {
|
|
420
|
+
description: string | null;
|
|
421
|
+
report: string | null;
|
|
445
422
|
};
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
423
|
+
hemisphere: Hemisphere & {
|
|
424
|
+
east_west: HemisphereDetail & {
|
|
425
|
+
description: string | null;
|
|
426
|
+
report: string | null;
|
|
427
|
+
};
|
|
428
|
+
north_south: HemisphereDetail & {
|
|
429
|
+
description: string | null;
|
|
430
|
+
report: string | null;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
elements: Elements & {
|
|
434
|
+
description: string | null;
|
|
435
|
+
report: string | null;
|
|
436
|
+
};
|
|
437
|
+
modes: Modes & {
|
|
438
|
+
description: string | null;
|
|
439
|
+
report: string | null;
|
|
450
440
|
};
|
|
451
|
-
};
|
|
452
|
-
dominantSign: {
|
|
453
|
-
name: string;
|
|
454
|
-
percentage: number;
|
|
455
441
|
};
|
|
456
442
|
};
|
|
457
|
-
|
|
443
|
+
core_planets: Array<{
|
|
444
|
+
type: string;
|
|
458
445
|
name: string;
|
|
459
446
|
sign: string;
|
|
460
447
|
house: number | null;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
448
|
+
fullDegree: number;
|
|
449
|
+
normDegree: number;
|
|
450
|
+
speed: number | null;
|
|
451
|
+
isRetro: boolean;
|
|
452
|
+
description: string | null;
|
|
453
|
+
signReport: string | null;
|
|
454
|
+
houseReport: string | null;
|
|
455
|
+
}>;
|
|
456
|
+
advanced_placements: Array<{
|
|
457
|
+
type: string;
|
|
467
458
|
name: string;
|
|
468
459
|
sign: string;
|
|
469
460
|
house: number | null;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
461
|
+
fullDegree: number;
|
|
462
|
+
normDegree: number;
|
|
463
|
+
description: string | null;
|
|
464
|
+
signReport: string | null;
|
|
465
|
+
houseReport: string | null;
|
|
466
|
+
}>;
|
|
467
|
+
houses: Array<{
|
|
474
468
|
house: number;
|
|
475
469
|
sign: string;
|
|
476
470
|
degree: number;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
471
|
+
description: string | null;
|
|
472
|
+
report: string | null;
|
|
473
|
+
}>;
|
|
474
|
+
aspects: Array<{
|
|
480
475
|
aspectingPlanet: string;
|
|
481
476
|
aspectedPlanet: string;
|
|
482
477
|
type: string;
|
|
483
478
|
orb: number;
|
|
484
479
|
diff: number;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
480
|
+
description: string | null;
|
|
481
|
+
report: string | null;
|
|
482
|
+
}>;
|
|
483
|
+
}
|
|
488
484
|
export type ConceptProgress = {
|
|
489
485
|
count: number;
|
|
490
486
|
total: number;
|