kaabalah 5.5.1 → 6.0.0
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/README.md +72 -0
- package/dist/astrology/index.d.mts +16 -1
- package/dist/astrology/index.d.ts +16 -1
- package/dist/astrology/index.js +55 -51
- package/dist/astrology/index.mjs +1 -1
- package/dist/{chunk-BJUCABP4.js → chunk-3HYK4Q4B.js} +123 -10
- package/dist/chunk-3HYK4Q4B.js.map +1 -0
- package/dist/{chunk-27IU6FA2.mjs → chunk-3SFBJHP2.mjs} +3 -3
- package/dist/{chunk-27IU6FA2.mjs.map → chunk-3SFBJHP2.mjs.map} +1 -1
- package/dist/chunk-4NMXTZX4.mjs +525 -0
- package/dist/chunk-4NMXTZX4.mjs.map +1 -0
- package/dist/{chunk-T6Y4DLMA.mjs → chunk-5NCI7UPZ.mjs} +176 -11
- package/dist/chunk-5NCI7UPZ.mjs.map +1 -0
- package/dist/chunk-7IXAG4KW.mjs +2136 -0
- package/dist/chunk-7IXAG4KW.mjs.map +1 -0
- package/dist/{chunk-HGEWHDIX.js → chunk-DU5HI6CU.js} +176 -10
- package/dist/chunk-DU5HI6CU.js.map +1 -0
- package/dist/{chunk-PEAOQ7YH.js → chunk-EVQ432JA.js} +23 -23
- package/dist/{chunk-PEAOQ7YH.js.map → chunk-EVQ432JA.js.map} +1 -1
- package/dist/{chunk-PPSRTX52.mjs → chunk-IHQPXEB7.mjs} +123 -11
- package/dist/chunk-IHQPXEB7.mjs.map +1 -0
- package/dist/{chunk-W5UTGQI2.mjs → chunk-S6BFRUJQ.mjs} +3 -3
- package/dist/{chunk-W5UTGQI2.mjs.map → chunk-S6BFRUJQ.mjs.map} +1 -1
- package/dist/chunk-XB6PXEKO.js +529 -0
- package/dist/chunk-XB6PXEKO.js.map +1 -0
- package/dist/chunk-XNJ6UHWN.js +2150 -0
- package/dist/chunk-XNJ6UHWN.js.map +1 -0
- package/dist/{chunk-ZQ2ZZPOW.js → chunk-XTVGQXCL.js} +4 -4
- package/dist/{chunk-ZQ2ZZPOW.js.map → chunk-XTVGQXCL.js.map} +1 -1
- package/dist/cli.js +1817 -97
- package/dist/cli.js.map +1 -1
- package/dist/{registry-DOiHyH-r.d.mts → constants-DbFwuCjR.d.mts} +1 -177
- package/dist/{registry-DOiHyH-r.d.ts → constants-DbFwuCjR.d.ts} +1 -177
- package/dist/core/index.d.mts +66 -3
- package/dist/core/index.d.ts +66 -3
- package/dist/core/index.js +55 -39
- package/dist/core/index.mjs +2 -2
- package/dist/correspondence-model-D8c42J4c.d.mts +281 -0
- package/dist/correspondence-model-DhmBYoMf.d.ts +281 -0
- package/dist/gematria/index.d.mts +2 -1
- package/dist/gematria/index.d.ts +2 -1
- package/dist/gematria/index.js +5 -5
- package/dist/gematria/index.mjs +2 -2
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +179 -119
- package/dist/index.mjs +6 -6
- package/dist/numerology/index.js +18 -18
- package/dist/numerology/index.mjs +3 -3
- package/dist/tarot/index.d.mts +157 -2
- package/dist/tarot/index.d.ts +157 -2
- package/dist/tarot/index.js +46 -4
- package/dist/tarot/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/chunk-3IPH7UTM.mjs +0 -878
- package/dist/chunk-3IPH7UTM.mjs.map +0 -1
- package/dist/chunk-AD7T42HJ.js +0 -4
- package/dist/chunk-AD7T42HJ.js.map +0 -1
- package/dist/chunk-BJUCABP4.js.map +0 -1
- package/dist/chunk-FYR5Z7M2.js +0 -882
- package/dist/chunk-FYR5Z7M2.js.map +0 -1
- package/dist/chunk-HGEWHDIX.js.map +0 -1
- package/dist/chunk-PPSRTX52.mjs.map +0 -1
- package/dist/chunk-RFSO3JRG.mjs +0 -3
- package/dist/chunk-RFSO3JRG.mjs.map +0 -1
- package/dist/chunk-T6Y4DLMA.mjs.map +0 -1
package/dist/numerology/index.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkXTVGQXCL_js = require('../chunk-XTVGQXCL.js');
|
|
4
|
+
require('../chunk-EVQ432JA.js');
|
|
5
|
+
require('../chunk-3HYK4Q4B.js');
|
|
6
6
|
require('../chunk-FM7WUVZV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "MASTER_NUMBERS", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkXTVGQXCL_js.MASTER_NUMBERS; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "NumerologyData", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkXTVGQXCL_js.data_exports; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "calculateChallenges", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkXTVGQXCL_js.calculateChallenges; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "calculateCycles", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkXTVGQXCL_js.calculateCycles; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "calculateFibonacciCycle", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkXTVGQXCL_js.calculateFibonacciCycle; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "calculateKaabalisticLifePath", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkXTVGQXCL_js.calculateKaabalisticLifePath; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "calculatePersonalCycles", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkXTVGQXCL_js.calculatePersonalCycles; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "calculatePersonalMonths", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkXTVGQXCL_js.calculatePersonalMonths; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "calculatePersonalPeriods", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkXTVGQXCL_js.calculatePersonalPeriods; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "calculatePersonalYear", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkXTVGQXCL_js.calculatePersonalYear; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "calculateStraightAcrossReductionLifePath", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkXTVGQXCL_js.calculateStraightAcrossReductionLifePath; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "getDateEnergies", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkXTVGQXCL_js.getDateEnergies; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "isMasterNumber", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkXTVGQXCL_js.isMasterNumber; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "reduceToSingle", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkXTVGQXCL_js.reduceToSingle; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "reduceToSingleWithSteps", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkXTVGQXCL_js.reduceToSingleWithSteps; }
|
|
69
69
|
});
|
|
70
70
|
//# sourceMappingURL=index.js.map
|
|
71
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { MASTER_NUMBERS, data_exports as NumerologyData, calculateChallenges, calculateCycles, calculateFibonacciCycle, calculateKaabalisticLifePath, calculatePersonalCycles, calculatePersonalMonths, calculatePersonalPeriods, calculatePersonalYear, calculateStraightAcrossReductionLifePath, getDateEnergies, isMasterNumber, reduceToSingle, reduceToSingleWithSteps } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { MASTER_NUMBERS, data_exports as NumerologyData, calculateChallenges, calculateCycles, calculateFibonacciCycle, calculateKaabalisticLifePath, calculatePersonalCycles, calculatePersonalMonths, calculatePersonalPeriods, calculatePersonalYear, calculateStraightAcrossReductionLifePath, getDateEnergies, isMasterNumber, reduceToSingle, reduceToSingleWithSteps } from '../chunk-S6BFRUJQ.mjs';
|
|
2
|
+
import '../chunk-3SFBJHP2.mjs';
|
|
3
|
+
import '../chunk-IHQPXEB7.mjs';
|
|
4
4
|
import '../chunk-WY6NIR2V.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
package/dist/tarot/index.d.mts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { y as WesternAstrologyTypes, E as NodeId, K as KaabalahTypes, x as LetterTypes, z as TarotTypes } from '../constants-DbFwuCjR.mjs';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Tarot interpretation functions
|
|
3
5
|
*/
|
|
6
|
+
|
|
4
7
|
type Deck = "papus_pt" | "papus" | "mythic" | "egyptian" | "rider-waite";
|
|
8
|
+
type TarotDeckId = Deck;
|
|
5
9
|
type MajorArcana = "01_the_magician" | "02_the_high_priestess" | "03_the_empress" | "04_the_emperor" | "05_the_hierophant" | "06_the_lover" | "07_the_chariot" | "08_justice" | "09_the_hermit" | "10_the_wheel_of_fortune" | "11_strength" | "12_the_hanged_man" | "13_death" | "14_temperance" | "15_the_devil" | "16_the_house_of_god" | "17_the_star" | "18_the_moon" | "19_the_sun" | "20_judgement" | "21_the_fool" | "22_the_world";
|
|
6
10
|
type TarotCard = {
|
|
7
11
|
number: number;
|
|
@@ -11,7 +15,7 @@ type TarotCard = {
|
|
|
11
15
|
meaning: string;
|
|
12
16
|
papusMeaning?: string;
|
|
13
17
|
type: "major" | "minor" | "daat+royalship";
|
|
14
|
-
deck:
|
|
18
|
+
deck: Deck;
|
|
15
19
|
suit?: string;
|
|
16
20
|
isInverted?: boolean;
|
|
17
21
|
};
|
|
@@ -26,5 +30,156 @@ declare const ARKANNUS: TarotCard[];
|
|
|
26
30
|
* @returns Promise that resolves to the shuffled deck
|
|
27
31
|
*/
|
|
28
32
|
declare function shuffleTarotDeck(cards: TarotCard[], includeInvertedCards?: boolean, shuffleCount?: number, shuffleDelay?: number): Promise<TarotCard[]>;
|
|
33
|
+
interface TarotDeckMetadata {
|
|
34
|
+
id: TarotDeckId;
|
|
35
|
+
label: string;
|
|
36
|
+
}
|
|
37
|
+
interface TarotDeckDescription {
|
|
38
|
+
name?: string;
|
|
39
|
+
meaning?: string;
|
|
40
|
+
reversedMeaning?: string;
|
|
41
|
+
keywords?: string[];
|
|
42
|
+
}
|
|
43
|
+
type TarotAstrologyCorrespondenceType = WesternAstrologyTypes.PLANET | WesternAstrologyTypes.WESTERN_ZODIAC_SIGN | WesternAstrologyTypes.WESTERN_ELEMENT;
|
|
44
|
+
interface TarotAstrologyCorrespondence {
|
|
45
|
+
type: TarotAstrologyCorrespondenceType;
|
|
46
|
+
id: NodeId<TarotAstrologyCorrespondenceType>;
|
|
47
|
+
label: string;
|
|
48
|
+
}
|
|
49
|
+
interface TarotArchetype {
|
|
50
|
+
canonicalId: NodeId<KaabalahTypes.PATH>;
|
|
51
|
+
kind: "major";
|
|
52
|
+
pathId: NodeId<KaabalahTypes.PATH>;
|
|
53
|
+
pathNumber: number;
|
|
54
|
+
pathSlug: string;
|
|
55
|
+
hebrewLetterId: NodeId<LetterTypes.HEBREW_LETTER>;
|
|
56
|
+
hebrewLetter: string;
|
|
57
|
+
pathMeaning?: string;
|
|
58
|
+
tarotArkAnnuId: NodeId<TarotTypes.TAROT_ARK_ANNU>;
|
|
59
|
+
tarotCardNumber: number;
|
|
60
|
+
tarotCardName: string;
|
|
61
|
+
tarotCardFilename: MajorArcana;
|
|
62
|
+
tarotMeaning?: string;
|
|
63
|
+
astrology: TarotAstrologyCorrespondence[];
|
|
64
|
+
availableDeckIds: TarotDeckId[];
|
|
65
|
+
descriptionsByDeck: Partial<Record<TarotDeckId, TarotDeckDescription>>;
|
|
66
|
+
}
|
|
67
|
+
type TarotArchetypeLookup = {
|
|
68
|
+
pathSlug: string;
|
|
69
|
+
} | {
|
|
70
|
+
pathId: NodeId<KaabalahTypes.PATH>;
|
|
71
|
+
} | {
|
|
72
|
+
tarotCardFilename: MajorArcana | string;
|
|
73
|
+
} | {
|
|
74
|
+
tarotCardNumber: number;
|
|
75
|
+
};
|
|
76
|
+
interface TarotRepresentation {
|
|
77
|
+
archetype: TarotArchetype;
|
|
78
|
+
deck: TarotDeckMetadata;
|
|
79
|
+
imageUrl: string;
|
|
80
|
+
label: string;
|
|
81
|
+
altText: string;
|
|
82
|
+
cardLabel: string;
|
|
83
|
+
description?: TarotDeckDescription;
|
|
84
|
+
}
|
|
85
|
+
declare const TAROT_IMAGE_BASE_URL = "https://kaabalah-app.s3.us-east-1.amazonaws.com/tarot";
|
|
86
|
+
declare function listTarotDecks(): TarotDeckMetadata[];
|
|
87
|
+
declare function getTarotArchetype(lookup: TarotArchetypeLookup): TarotArchetype | undefined;
|
|
88
|
+
declare function getTarotRepresentations(lookup: TarotArchetypeLookup): TarotRepresentation[];
|
|
89
|
+
declare function getTarotRepresentation(lookup: TarotArchetypeLookup, deckId: TarotDeckId): TarotRepresentation | undefined;
|
|
90
|
+
declare function resolveTarotImageUrl(lookup: TarotArchetypeLookup, deckId: TarotDeckId): string | undefined;
|
|
91
|
+
type TarotSpreadId = "quick-insight" | "conscious-reading" | "time-reading" | "dialectic-reading" | "tree-of-life-reading" | "celtic-cross" | "event-reading";
|
|
92
|
+
type TarotSpreadContextKey = "inquirerGender";
|
|
93
|
+
type TarotInquirerGender = "man" | "woman";
|
|
94
|
+
type TarotSpreadCardType = TarotCard["type"];
|
|
95
|
+
type TarotSpreadMinorRank = "ace" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
|
|
96
|
+
interface TarotSpreadCardConstraint {
|
|
97
|
+
allowedTypes?: TarotSpreadCardType[];
|
|
98
|
+
requiredRank?: TarotSpreadMinorRank;
|
|
99
|
+
allowedCardFilenames?: string[];
|
|
100
|
+
excludedCardFilenames?: string[];
|
|
101
|
+
}
|
|
102
|
+
interface TarotSpreadSlotMetadata {
|
|
103
|
+
displayLabel?: string;
|
|
104
|
+
groupKey?: string;
|
|
105
|
+
note?: string;
|
|
106
|
+
orientation?: "upright" | "sideways";
|
|
107
|
+
temporalPhase?: "past" | "present" | "future";
|
|
108
|
+
}
|
|
109
|
+
interface TarotSpreadSlotDefinition {
|
|
110
|
+
slotKey: string;
|
|
111
|
+
label: string;
|
|
112
|
+
order: number;
|
|
113
|
+
minCards: number;
|
|
114
|
+
maxCards: number;
|
|
115
|
+
validationRules?: TarotSpreadCardConstraint;
|
|
116
|
+
manualSelectionRules?: TarotSpreadCardConstraint;
|
|
117
|
+
drawRules?: TarotSpreadCardConstraint;
|
|
118
|
+
metadata?: TarotSpreadSlotMetadata;
|
|
119
|
+
}
|
|
120
|
+
interface TarotSpreadInquirerRule {
|
|
121
|
+
slotKey: string;
|
|
122
|
+
sourceSlotKeys: string[];
|
|
123
|
+
cardNumbersByGender: Record<TarotInquirerGender, number>;
|
|
124
|
+
}
|
|
125
|
+
interface TarotSpreadDefinition {
|
|
126
|
+
spreadId: TarotSpreadId;
|
|
127
|
+
label: string;
|
|
128
|
+
description?: string;
|
|
129
|
+
contextRequirements?: TarotSpreadContextKey[];
|
|
130
|
+
slots: TarotSpreadSlotDefinition[];
|
|
131
|
+
specialRules?: {
|
|
132
|
+
inquirerCard?: TarotSpreadInquirerRule;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
interface TarotSpreadSelectionContext {
|
|
136
|
+
inquirerGender?: TarotInquirerGender;
|
|
137
|
+
}
|
|
138
|
+
interface TarotSpreadSelectionCard {
|
|
139
|
+
slotKey: string;
|
|
140
|
+
cardNumber: number;
|
|
141
|
+
isInverted?: boolean;
|
|
142
|
+
}
|
|
143
|
+
interface TarotSpreadResolvedSelectionCard extends TarotSpreadSelectionCard {
|
|
144
|
+
card: TarotCard;
|
|
145
|
+
slot: TarotSpreadSlotDefinition;
|
|
146
|
+
}
|
|
147
|
+
type TarotSpreadValidationErrorCode = "UNKNOWN_SPREAD" | "UNKNOWN_SLOT" | "CARD_NOT_FOUND" | "DUPLICATE_CARD" | "MISSING_REQUIRED_CARDS" | "TOO_MANY_CARDS" | "INVALID_CARD_TYPE" | "INVALID_CARD_RANK" | "DISALLOWED_CARD" | "MISSING_CONTEXT" | "INVALID_INQUIRER_CARD";
|
|
148
|
+
interface TarotSpreadValidationIssue {
|
|
149
|
+
code: TarotSpreadValidationErrorCode;
|
|
150
|
+
message: string;
|
|
151
|
+
slotKey?: string;
|
|
152
|
+
cardNumber?: number;
|
|
153
|
+
}
|
|
154
|
+
interface TarotSpreadValidationResult {
|
|
155
|
+
ok: boolean;
|
|
156
|
+
isComplete: boolean;
|
|
157
|
+
spread?: TarotSpreadDefinition;
|
|
158
|
+
resolvedCards: TarotSpreadResolvedSelectionCard[];
|
|
159
|
+
errors: TarotSpreadValidationIssue[];
|
|
160
|
+
}
|
|
161
|
+
interface TarotSpreadValidationInput {
|
|
162
|
+
spreadId: TarotSpreadId;
|
|
163
|
+
cards: TarotSpreadSelectionCard[];
|
|
164
|
+
context?: TarotSpreadSelectionContext;
|
|
165
|
+
allowPartial?: boolean;
|
|
166
|
+
}
|
|
167
|
+
interface DrawTarotSpreadOptions {
|
|
168
|
+
spreadId: TarotSpreadId;
|
|
169
|
+
deckId?: TarotDeckId;
|
|
170
|
+
includeInverted?: boolean;
|
|
171
|
+
rng?: () => number;
|
|
172
|
+
context?: TarotSpreadSelectionContext;
|
|
173
|
+
}
|
|
174
|
+
interface TarotSpreadDrawResult {
|
|
175
|
+
spread: TarotSpreadDefinition;
|
|
176
|
+
deckId: TarotDeckId;
|
|
177
|
+
context?: TarotSpreadSelectionContext;
|
|
178
|
+
cards: TarotSpreadResolvedSelectionCard[];
|
|
179
|
+
}
|
|
180
|
+
declare function listTarotSpreads(): TarotSpreadDefinition[];
|
|
181
|
+
declare function getTarotSpread(spreadId: TarotSpreadId): TarotSpreadDefinition | undefined;
|
|
182
|
+
declare function validateTarotSpreadSelection(input: TarotSpreadValidationInput): TarotSpreadValidationResult;
|
|
183
|
+
declare function drawTarotSpread(options: DrawTarotSpreadOptions): TarotSpreadDrawResult;
|
|
29
184
|
|
|
30
|
-
export { ARKANNUS, type Deck, type MajorArcana, type TarotCard, majorArcana, shuffleTarotDeck };
|
|
185
|
+
export { ARKANNUS, type Deck, type DrawTarotSpreadOptions, type MajorArcana, TAROT_IMAGE_BASE_URL, type TarotArchetype, type TarotArchetypeLookup, type TarotAstrologyCorrespondence, type TarotAstrologyCorrespondenceType, type TarotCard, type TarotDeckDescription, type TarotDeckId, type TarotDeckMetadata, type TarotInquirerGender, type TarotRepresentation, type TarotSpreadCardConstraint, type TarotSpreadCardType, type TarotSpreadContextKey, type TarotSpreadDefinition, type TarotSpreadDrawResult, type TarotSpreadId, type TarotSpreadInquirerRule, type TarotSpreadMinorRank, type TarotSpreadResolvedSelectionCard, type TarotSpreadSelectionCard, type TarotSpreadSelectionContext, type TarotSpreadSlotDefinition, type TarotSpreadSlotMetadata, type TarotSpreadValidationErrorCode, type TarotSpreadValidationInput, type TarotSpreadValidationIssue, type TarotSpreadValidationResult, drawTarotSpread, getTarotArchetype, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, majorArcana, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection };
|
package/dist/tarot/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { y as WesternAstrologyTypes, E as NodeId, K as KaabalahTypes, x as LetterTypes, z as TarotTypes } from '../constants-DbFwuCjR.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Tarot interpretation functions
|
|
3
5
|
*/
|
|
6
|
+
|
|
4
7
|
type Deck = "papus_pt" | "papus" | "mythic" | "egyptian" | "rider-waite";
|
|
8
|
+
type TarotDeckId = Deck;
|
|
5
9
|
type MajorArcana = "01_the_magician" | "02_the_high_priestess" | "03_the_empress" | "04_the_emperor" | "05_the_hierophant" | "06_the_lover" | "07_the_chariot" | "08_justice" | "09_the_hermit" | "10_the_wheel_of_fortune" | "11_strength" | "12_the_hanged_man" | "13_death" | "14_temperance" | "15_the_devil" | "16_the_house_of_god" | "17_the_star" | "18_the_moon" | "19_the_sun" | "20_judgement" | "21_the_fool" | "22_the_world";
|
|
6
10
|
type TarotCard = {
|
|
7
11
|
number: number;
|
|
@@ -11,7 +15,7 @@ type TarotCard = {
|
|
|
11
15
|
meaning: string;
|
|
12
16
|
papusMeaning?: string;
|
|
13
17
|
type: "major" | "minor" | "daat+royalship";
|
|
14
|
-
deck:
|
|
18
|
+
deck: Deck;
|
|
15
19
|
suit?: string;
|
|
16
20
|
isInverted?: boolean;
|
|
17
21
|
};
|
|
@@ -26,5 +30,156 @@ declare const ARKANNUS: TarotCard[];
|
|
|
26
30
|
* @returns Promise that resolves to the shuffled deck
|
|
27
31
|
*/
|
|
28
32
|
declare function shuffleTarotDeck(cards: TarotCard[], includeInvertedCards?: boolean, shuffleCount?: number, shuffleDelay?: number): Promise<TarotCard[]>;
|
|
33
|
+
interface TarotDeckMetadata {
|
|
34
|
+
id: TarotDeckId;
|
|
35
|
+
label: string;
|
|
36
|
+
}
|
|
37
|
+
interface TarotDeckDescription {
|
|
38
|
+
name?: string;
|
|
39
|
+
meaning?: string;
|
|
40
|
+
reversedMeaning?: string;
|
|
41
|
+
keywords?: string[];
|
|
42
|
+
}
|
|
43
|
+
type TarotAstrologyCorrespondenceType = WesternAstrologyTypes.PLANET | WesternAstrologyTypes.WESTERN_ZODIAC_SIGN | WesternAstrologyTypes.WESTERN_ELEMENT;
|
|
44
|
+
interface TarotAstrologyCorrespondence {
|
|
45
|
+
type: TarotAstrologyCorrespondenceType;
|
|
46
|
+
id: NodeId<TarotAstrologyCorrespondenceType>;
|
|
47
|
+
label: string;
|
|
48
|
+
}
|
|
49
|
+
interface TarotArchetype {
|
|
50
|
+
canonicalId: NodeId<KaabalahTypes.PATH>;
|
|
51
|
+
kind: "major";
|
|
52
|
+
pathId: NodeId<KaabalahTypes.PATH>;
|
|
53
|
+
pathNumber: number;
|
|
54
|
+
pathSlug: string;
|
|
55
|
+
hebrewLetterId: NodeId<LetterTypes.HEBREW_LETTER>;
|
|
56
|
+
hebrewLetter: string;
|
|
57
|
+
pathMeaning?: string;
|
|
58
|
+
tarotArkAnnuId: NodeId<TarotTypes.TAROT_ARK_ANNU>;
|
|
59
|
+
tarotCardNumber: number;
|
|
60
|
+
tarotCardName: string;
|
|
61
|
+
tarotCardFilename: MajorArcana;
|
|
62
|
+
tarotMeaning?: string;
|
|
63
|
+
astrology: TarotAstrologyCorrespondence[];
|
|
64
|
+
availableDeckIds: TarotDeckId[];
|
|
65
|
+
descriptionsByDeck: Partial<Record<TarotDeckId, TarotDeckDescription>>;
|
|
66
|
+
}
|
|
67
|
+
type TarotArchetypeLookup = {
|
|
68
|
+
pathSlug: string;
|
|
69
|
+
} | {
|
|
70
|
+
pathId: NodeId<KaabalahTypes.PATH>;
|
|
71
|
+
} | {
|
|
72
|
+
tarotCardFilename: MajorArcana | string;
|
|
73
|
+
} | {
|
|
74
|
+
tarotCardNumber: number;
|
|
75
|
+
};
|
|
76
|
+
interface TarotRepresentation {
|
|
77
|
+
archetype: TarotArchetype;
|
|
78
|
+
deck: TarotDeckMetadata;
|
|
79
|
+
imageUrl: string;
|
|
80
|
+
label: string;
|
|
81
|
+
altText: string;
|
|
82
|
+
cardLabel: string;
|
|
83
|
+
description?: TarotDeckDescription;
|
|
84
|
+
}
|
|
85
|
+
declare const TAROT_IMAGE_BASE_URL = "https://kaabalah-app.s3.us-east-1.amazonaws.com/tarot";
|
|
86
|
+
declare function listTarotDecks(): TarotDeckMetadata[];
|
|
87
|
+
declare function getTarotArchetype(lookup: TarotArchetypeLookup): TarotArchetype | undefined;
|
|
88
|
+
declare function getTarotRepresentations(lookup: TarotArchetypeLookup): TarotRepresentation[];
|
|
89
|
+
declare function getTarotRepresentation(lookup: TarotArchetypeLookup, deckId: TarotDeckId): TarotRepresentation | undefined;
|
|
90
|
+
declare function resolveTarotImageUrl(lookup: TarotArchetypeLookup, deckId: TarotDeckId): string | undefined;
|
|
91
|
+
type TarotSpreadId = "quick-insight" | "conscious-reading" | "time-reading" | "dialectic-reading" | "tree-of-life-reading" | "celtic-cross" | "event-reading";
|
|
92
|
+
type TarotSpreadContextKey = "inquirerGender";
|
|
93
|
+
type TarotInquirerGender = "man" | "woman";
|
|
94
|
+
type TarotSpreadCardType = TarotCard["type"];
|
|
95
|
+
type TarotSpreadMinorRank = "ace" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
|
|
96
|
+
interface TarotSpreadCardConstraint {
|
|
97
|
+
allowedTypes?: TarotSpreadCardType[];
|
|
98
|
+
requiredRank?: TarotSpreadMinorRank;
|
|
99
|
+
allowedCardFilenames?: string[];
|
|
100
|
+
excludedCardFilenames?: string[];
|
|
101
|
+
}
|
|
102
|
+
interface TarotSpreadSlotMetadata {
|
|
103
|
+
displayLabel?: string;
|
|
104
|
+
groupKey?: string;
|
|
105
|
+
note?: string;
|
|
106
|
+
orientation?: "upright" | "sideways";
|
|
107
|
+
temporalPhase?: "past" | "present" | "future";
|
|
108
|
+
}
|
|
109
|
+
interface TarotSpreadSlotDefinition {
|
|
110
|
+
slotKey: string;
|
|
111
|
+
label: string;
|
|
112
|
+
order: number;
|
|
113
|
+
minCards: number;
|
|
114
|
+
maxCards: number;
|
|
115
|
+
validationRules?: TarotSpreadCardConstraint;
|
|
116
|
+
manualSelectionRules?: TarotSpreadCardConstraint;
|
|
117
|
+
drawRules?: TarotSpreadCardConstraint;
|
|
118
|
+
metadata?: TarotSpreadSlotMetadata;
|
|
119
|
+
}
|
|
120
|
+
interface TarotSpreadInquirerRule {
|
|
121
|
+
slotKey: string;
|
|
122
|
+
sourceSlotKeys: string[];
|
|
123
|
+
cardNumbersByGender: Record<TarotInquirerGender, number>;
|
|
124
|
+
}
|
|
125
|
+
interface TarotSpreadDefinition {
|
|
126
|
+
spreadId: TarotSpreadId;
|
|
127
|
+
label: string;
|
|
128
|
+
description?: string;
|
|
129
|
+
contextRequirements?: TarotSpreadContextKey[];
|
|
130
|
+
slots: TarotSpreadSlotDefinition[];
|
|
131
|
+
specialRules?: {
|
|
132
|
+
inquirerCard?: TarotSpreadInquirerRule;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
interface TarotSpreadSelectionContext {
|
|
136
|
+
inquirerGender?: TarotInquirerGender;
|
|
137
|
+
}
|
|
138
|
+
interface TarotSpreadSelectionCard {
|
|
139
|
+
slotKey: string;
|
|
140
|
+
cardNumber: number;
|
|
141
|
+
isInverted?: boolean;
|
|
142
|
+
}
|
|
143
|
+
interface TarotSpreadResolvedSelectionCard extends TarotSpreadSelectionCard {
|
|
144
|
+
card: TarotCard;
|
|
145
|
+
slot: TarotSpreadSlotDefinition;
|
|
146
|
+
}
|
|
147
|
+
type TarotSpreadValidationErrorCode = "UNKNOWN_SPREAD" | "UNKNOWN_SLOT" | "CARD_NOT_FOUND" | "DUPLICATE_CARD" | "MISSING_REQUIRED_CARDS" | "TOO_MANY_CARDS" | "INVALID_CARD_TYPE" | "INVALID_CARD_RANK" | "DISALLOWED_CARD" | "MISSING_CONTEXT" | "INVALID_INQUIRER_CARD";
|
|
148
|
+
interface TarotSpreadValidationIssue {
|
|
149
|
+
code: TarotSpreadValidationErrorCode;
|
|
150
|
+
message: string;
|
|
151
|
+
slotKey?: string;
|
|
152
|
+
cardNumber?: number;
|
|
153
|
+
}
|
|
154
|
+
interface TarotSpreadValidationResult {
|
|
155
|
+
ok: boolean;
|
|
156
|
+
isComplete: boolean;
|
|
157
|
+
spread?: TarotSpreadDefinition;
|
|
158
|
+
resolvedCards: TarotSpreadResolvedSelectionCard[];
|
|
159
|
+
errors: TarotSpreadValidationIssue[];
|
|
160
|
+
}
|
|
161
|
+
interface TarotSpreadValidationInput {
|
|
162
|
+
spreadId: TarotSpreadId;
|
|
163
|
+
cards: TarotSpreadSelectionCard[];
|
|
164
|
+
context?: TarotSpreadSelectionContext;
|
|
165
|
+
allowPartial?: boolean;
|
|
166
|
+
}
|
|
167
|
+
interface DrawTarotSpreadOptions {
|
|
168
|
+
spreadId: TarotSpreadId;
|
|
169
|
+
deckId?: TarotDeckId;
|
|
170
|
+
includeInverted?: boolean;
|
|
171
|
+
rng?: () => number;
|
|
172
|
+
context?: TarotSpreadSelectionContext;
|
|
173
|
+
}
|
|
174
|
+
interface TarotSpreadDrawResult {
|
|
175
|
+
spread: TarotSpreadDefinition;
|
|
176
|
+
deckId: TarotDeckId;
|
|
177
|
+
context?: TarotSpreadSelectionContext;
|
|
178
|
+
cards: TarotSpreadResolvedSelectionCard[];
|
|
179
|
+
}
|
|
180
|
+
declare function listTarotSpreads(): TarotSpreadDefinition[];
|
|
181
|
+
declare function getTarotSpread(spreadId: TarotSpreadId): TarotSpreadDefinition | undefined;
|
|
182
|
+
declare function validateTarotSpreadSelection(input: TarotSpreadValidationInput): TarotSpreadValidationResult;
|
|
183
|
+
declare function drawTarotSpread(options: DrawTarotSpreadOptions): TarotSpreadDrawResult;
|
|
29
184
|
|
|
30
|
-
export { ARKANNUS, type Deck, type MajorArcana, type TarotCard, majorArcana, shuffleTarotDeck };
|
|
185
|
+
export { ARKANNUS, type Deck, type DrawTarotSpreadOptions, type MajorArcana, TAROT_IMAGE_BASE_URL, type TarotArchetype, type TarotArchetypeLookup, type TarotAstrologyCorrespondence, type TarotAstrologyCorrespondenceType, type TarotCard, type TarotDeckDescription, type TarotDeckId, type TarotDeckMetadata, type TarotInquirerGender, type TarotRepresentation, type TarotSpreadCardConstraint, type TarotSpreadCardType, type TarotSpreadContextKey, type TarotSpreadDefinition, type TarotSpreadDrawResult, type TarotSpreadId, type TarotSpreadInquirerRule, type TarotSpreadMinorRank, type TarotSpreadResolvedSelectionCard, type TarotSpreadSelectionCard, type TarotSpreadSelectionContext, type TarotSpreadSlotDefinition, type TarotSpreadSlotMetadata, type TarotSpreadValidationErrorCode, type TarotSpreadValidationInput, type TarotSpreadValidationIssue, type TarotSpreadValidationResult, drawTarotSpread, getTarotArchetype, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, majorArcana, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection };
|
package/dist/tarot/index.js
CHANGED
|
@@ -1,21 +1,63 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXNJ6UHWN_js = require('../chunk-XNJ6UHWN.js');
|
|
4
|
+
require('../chunk-XB6PXEKO.js');
|
|
5
|
+
require('../chunk-3HYK4Q4B.js');
|
|
4
6
|
require('../chunk-FM7WUVZV.js');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
Object.defineProperty(exports, "ARKANNUS", {
|
|
9
11
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkXNJ6UHWN_js.ARKANNUS; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "TAROT_IMAGE_BASE_URL", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkXNJ6UHWN_js.TAROT_IMAGE_BASE_URL; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "drawTarotSpread", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkXNJ6UHWN_js.drawTarotSpread; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "getTarotArchetype", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkXNJ6UHWN_js.getTarotArchetype; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "getTarotRepresentation", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkXNJ6UHWN_js.getTarotRepresentation; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "getTarotRepresentations", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkXNJ6UHWN_js.getTarotRepresentations; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "getTarotSpread", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkXNJ6UHWN_js.getTarotSpread; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "listTarotDecks", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkXNJ6UHWN_js.listTarotDecks; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "listTarotSpreads", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkXNJ6UHWN_js.listTarotSpreads; }
|
|
11
45
|
});
|
|
12
46
|
Object.defineProperty(exports, "majorArcana", {
|
|
13
47
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkXNJ6UHWN_js.majorArcana; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "resolveTarotImageUrl", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkXNJ6UHWN_js.resolveTarotImageUrl; }
|
|
15
53
|
});
|
|
16
54
|
Object.defineProperty(exports, "shuffleTarotDeck", {
|
|
17
55
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkXNJ6UHWN_js.shuffleTarotDeck; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "validateTarotSpreadSelection", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkXNJ6UHWN_js.validateTarotSpreadSelection; }
|
|
19
61
|
});
|
|
20
62
|
//# sourceMappingURL=index.js.map
|
|
21
63
|
//# sourceMappingURL=index.js.map
|
package/dist/tarot/index.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { ARKANNUS, majorArcana, shuffleTarotDeck } from '../chunk-
|
|
1
|
+
export { ARKANNUS, TAROT_IMAGE_BASE_URL, drawTarotSpread, getTarotArchetype, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, majorArcana, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection } from '../chunk-7IXAG4KW.mjs';
|
|
2
|
+
import '../chunk-4NMXTZX4.mjs';
|
|
3
|
+
import '../chunk-IHQPXEB7.mjs';
|
|
2
4
|
import '../chunk-WY6NIR2V.mjs';
|
|
3
5
|
//# sourceMappingURL=index.mjs.map
|
|
4
6
|
//# sourceMappingURL=index.mjs.map
|