kaabalah 6.8.0 → 6.9.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/dist/astrology/index.d.mts +8 -2
- package/dist/astrology/index.d.ts +8 -2
- package/dist/astrology/index.js +56 -52
- package/dist/astrology/index.mjs +1 -1
- package/dist/{chunk-WLML6SVX.js → chunk-3C235FNN.js} +23 -10
- package/dist/chunk-3C235FNN.js.map +1 -0
- package/dist/{chunk-LQX6PW35.js → chunk-47BAJUYW.js} +70 -103
- package/dist/chunk-47BAJUYW.js.map +1 -0
- package/dist/{chunk-SHKAAZHT.mjs → chunk-7LIIEUJB.mjs} +67 -43
- package/dist/chunk-7LIIEUJB.mjs.map +1 -0
- package/dist/{chunk-SYLFUBAB.js → chunk-CW6QDSMF.js} +41 -34
- package/dist/chunk-CW6QDSMF.js.map +1 -0
- package/dist/{chunk-K33NFXSD.js → chunk-FCAIGKB5.js} +163 -139
- package/dist/chunk-FCAIGKB5.js.map +1 -0
- package/dist/{chunk-36XZ5WR2.js → chunk-M2FTEWY2.js} +991 -985
- package/dist/chunk-M2FTEWY2.js.map +1 -0
- package/dist/{chunk-5K4OQ4UB.mjs → chunk-NOZKIUGP.mjs} +60 -43
- package/dist/chunk-NOZKIUGP.mjs.map +1 -0
- package/dist/{chunk-QS5XAAAG.mjs → chunk-OSMB2MJR.mjs} +23 -16
- package/dist/chunk-OSMB2MJR.mjs.map +1 -0
- package/dist/{chunk-7YU7TRCG.mjs → chunk-PEHDLSUH.mjs} +11 -7
- package/dist/chunk-PEHDLSUH.mjs.map +1 -0
- package/dist/{chunk-VJ6RW5H4.js → chunk-Q7YAKPBH.js} +63 -42
- package/dist/chunk-Q7YAKPBH.js.map +1 -0
- package/dist/{chunk-3UJPBUY4.mjs → chunk-RAQDVWNK.mjs} +9 -12
- package/dist/chunk-RAQDVWNK.mjs.map +1 -0
- package/dist/{chunk-BEFGGHIJ.js → chunk-SWWLTDR6.js} +11 -6
- package/dist/chunk-SWWLTDR6.js.map +1 -0
- package/dist/{chunk-5HXSHALQ.mjs → chunk-THD4XOYR.mjs} +16 -4
- package/dist/chunk-THD4XOYR.mjs.map +1 -0
- package/dist/{chunk-UZ42PN5T.js → chunk-UNXDDLZS.js} +10 -13
- package/dist/chunk-UNXDDLZS.js.map +1 -0
- package/dist/{chunk-6N5YC2WD.mjs → chunk-X5HGLMEF.mjs} +20 -53
- package/dist/chunk-X5HGLMEF.mjs.map +1 -0
- package/dist/{chunk-ITESL6GR.mjs → chunk-Y3TLBFPD.mjs} +982 -976
- package/dist/chunk-Y3TLBFPD.mjs.map +1 -0
- package/dist/cli.js +8991 -6144
- package/dist/cli.js.map +1 -1
- package/dist/core/index.d.mts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +65 -49
- package/dist/core/index.mjs +2 -2
- package/dist/{correspondence-model-DWXbAjC-.d.mts → correspondence-model-JSyDWwmn.d.mts} +19 -1
- package/dist/{correspondence-model-DWXbAjC-.d.ts → correspondence-model-JSyDWwmn.d.ts} +19 -1
- package/dist/data-CdjlIcAo.d.mts +33 -0
- package/dist/data-_b06lgY6.d.ts +33 -0
- package/dist/gematria/index.d.mts +1 -1
- package/dist/gematria/index.d.ts +1 -1
- package/dist/gematria/index.js +5 -5
- package/dist/gematria/index.mjs +2 -2
- package/dist/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +228 -204
- package/dist/index.mjs +8 -8
- package/dist/numerology/index.d.mts +21 -0
- package/dist/numerology/index.d.ts +21 -0
- package/dist/numerology/index.js +18 -18
- package/dist/numerology/index.mjs +3 -3
- package/dist/semantic/index.d.mts +2 -2
- package/dist/semantic/index.d.ts +2 -2
- package/dist/semantic/index.js +26 -26
- package/dist/semantic/index.mjs +7 -7
- package/dist/{swisseph.node-2PWBQLWG.mjs → swisseph.node-53QCJWTI.mjs} +4 -3
- package/dist/swisseph.node-53QCJWTI.mjs.map +1 -0
- package/dist/{swisseph.node-NWM75JF3.js → swisseph.node-CGBZTQ5N.js} +4 -3
- package/dist/swisseph.node-CGBZTQ5N.js.map +1 -0
- package/dist/swisseph.node-GPVFDOB6.wasm +0 -0
- package/dist/swisseph.node.js +1 -1
- package/dist/swisseph.node.wasm +0 -0
- package/dist/swisseph.web-GPVFDOB6.wasm +0 -0
- package/dist/{wasm/build/swisseph.web-CK57WSU3.mjs → swisseph.web-SRINFOJC.mjs} +4 -3
- package/dist/swisseph.web-SRINFOJC.mjs.map +1 -0
- package/dist/{wasm/build/swisseph.web-GPTWPXKT.js → swisseph.web-XCF4GL2M.js} +4 -3
- package/dist/swisseph.web-XCF4GL2M.js.map +1 -0
- package/dist/swisseph.web.js +1 -1
- package/dist/swisseph.web.wasm +0 -0
- package/dist/tarot/index.d.mts +102 -126
- package/dist/tarot/index.d.ts +102 -126
- package/dist/tarot/index.js +23 -23
- package/dist/tarot/index.mjs +3 -3
- package/dist/{topology-CSSfYL2c.d.mts → topology-CH3hsIqO.d.mts} +2 -1
- package/dist/{topology-Bbgniegh.d.ts → topology-DXYTpDvj.d.ts} +2 -1
- package/dist/visual/index.d.mts +9 -3
- package/dist/visual/index.d.ts +9 -3
- package/dist/visual/index.js +48 -44
- package/dist/visual/index.mjs +3 -3
- package/dist/wasm/build/{swisseph.node-2PWBQLWG.mjs → swisseph.node-53QCJWTI.mjs} +4 -3
- package/dist/wasm/build/swisseph.node-53QCJWTI.mjs.map +1 -0
- package/dist/wasm/build/{swisseph.node-NWM75JF3.js → swisseph.node-CGBZTQ5N.js} +4 -3
- package/dist/wasm/build/swisseph.node-CGBZTQ5N.js.map +1 -0
- package/dist/wasm/build/swisseph.node-GPVFDOB6.wasm +0 -0
- package/dist/wasm/build/swisseph.node.js +1 -1
- package/dist/wasm/build/swisseph.node.wasm +0 -0
- package/dist/wasm/build/swisseph.web-GPVFDOB6.wasm +0 -0
- package/dist/{swisseph.web-CK57WSU3.mjs → wasm/build/swisseph.web-SRINFOJC.mjs} +4 -3
- package/dist/wasm/build/swisseph.web-SRINFOJC.mjs.map +1 -0
- package/dist/{swisseph.web-GPTWPXKT.js → wasm/build/swisseph.web-XCF4GL2M.js} +4 -3
- package/dist/wasm/build/swisseph.web-XCF4GL2M.js.map +1 -0
- package/dist/wasm/build/swisseph.web.js +1 -1
- package/dist/wasm/build/swisseph.web.wasm +0 -0
- package/package.json +2 -1
- package/wasm/build/swisseph.node.js +1 -1
- package/wasm/build/swisseph.node.wasm +0 -0
- package/wasm/build/swisseph.web.js +1 -1
- package/wasm/build/swisseph.web.wasm +0 -0
- package/dist/chunk-36XZ5WR2.js.map +0 -1
- package/dist/chunk-3UJPBUY4.mjs.map +0 -1
- package/dist/chunk-5HXSHALQ.mjs.map +0 -1
- package/dist/chunk-5K4OQ4UB.mjs.map +0 -1
- package/dist/chunk-6N5YC2WD.mjs.map +0 -1
- package/dist/chunk-7YU7TRCG.mjs.map +0 -1
- package/dist/chunk-BEFGGHIJ.js.map +0 -1
- package/dist/chunk-ITESL6GR.mjs.map +0 -1
- package/dist/chunk-K33NFXSD.js.map +0 -1
- package/dist/chunk-LQX6PW35.js.map +0 -1
- package/dist/chunk-QS5XAAAG.mjs.map +0 -1
- package/dist/chunk-SHKAAZHT.mjs.map +0 -1
- package/dist/chunk-SYLFUBAB.js.map +0 -1
- package/dist/chunk-UZ42PN5T.js.map +0 -1
- package/dist/chunk-VJ6RW5H4.js.map +0 -1
- package/dist/chunk-WLML6SVX.js.map +0 -1
- package/dist/swisseph-YPVN5VCI.wasm +0 -0
- package/dist/swisseph.js +0 -30
- package/dist/swisseph.node-2K5IHMKE.wasm +0 -0
- package/dist/swisseph.node-2PWBQLWG.mjs.map +0 -1
- package/dist/swisseph.node-NWM75JF3.js.map +0 -1
- package/dist/swisseph.wasm +0 -0
- package/dist/swisseph.web-2K5IHMKE.wasm +0 -0
- package/dist/swisseph.web-CK57WSU3.mjs.map +0 -1
- package/dist/swisseph.web-GPTWPXKT.js.map +0 -1
- package/dist/wasm/build/swisseph-YPVN5VCI.wasm +0 -0
- package/dist/wasm/build/swisseph.js +0 -30
- package/dist/wasm/build/swisseph.node-2K5IHMKE.wasm +0 -0
- package/dist/wasm/build/swisseph.node-2PWBQLWG.mjs.map +0 -1
- package/dist/wasm/build/swisseph.node-NWM75JF3.js.map +0 -1
- package/dist/wasm/build/swisseph.wasm +0 -0
- package/dist/wasm/build/swisseph.web-2K5IHMKE.wasm +0 -0
- package/dist/wasm/build/swisseph.web-CK57WSU3.mjs.map +0 -1
- package/dist/wasm/build/swisseph.web-GPTWPXKT.js.map +0 -1
- package/dist/webassembly.md +0 -127
- package/wasm/build/swisseph-YPVN5VCI.wasm +0 -0
- package/wasm/build/swisseph.d.ts +0 -12
- package/wasm/build/swisseph.js +0 -30
- package/wasm/build/swisseph.wasm +0 -0
- package/wasm/build/webassembly.md +0 -127
package/dist/tarot/index.d.mts
CHANGED
|
@@ -1,47 +1,117 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a4 as WesternAstrologyTypes, aa as NodeId, a2 as KaabalahTypes, a3 as LetterTypes, a5 as TarotTypes } from '../correspondence-model-JSyDWwmn.mjs';
|
|
2
|
+
import { b as TarotCard, d as TarotDeckId, M as MajorArcana, c as TarotDeckDescription, e as TarotDeckMetadata, f as TarotTreeId } from '../data-CdjlIcAo.mjs';
|
|
3
|
+
export { D as DEFAULT_TAROT_TREE_ID, a as Deck, T as TAROT_TREE_IDS, m as majorArcana } from '../data-CdjlIcAo.mjs';
|
|
4
|
+
|
|
5
|
+
declare const ARKANNUS: TarotCard[];
|
|
6
|
+
|
|
7
|
+
type TarotSpreadId = "quick-insight" | "conscious-reading" | "time-reading" | "dialectic-reading" | "tree-of-life-reading" | "celtic-cross" | "event-reading";
|
|
8
|
+
type TarotSpreadContextKey = "inquirerGender";
|
|
9
|
+
type TarotInquirerGender = "man" | "woman";
|
|
10
|
+
type TarotSpreadCardType = TarotCard["type"];
|
|
11
|
+
type TarotSpreadMinorRank = "ace" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
|
|
12
|
+
interface TarotSpreadCardConstraint {
|
|
13
|
+
allowedTypes?: TarotSpreadCardType[];
|
|
14
|
+
requiredRank?: TarotSpreadMinorRank;
|
|
15
|
+
allowedCardFilenames?: string[];
|
|
16
|
+
excludedCardFilenames?: string[];
|
|
17
|
+
}
|
|
18
|
+
interface TarotSpreadSlotMetadata {
|
|
19
|
+
displayLabel?: string;
|
|
20
|
+
groupKey?: string;
|
|
21
|
+
note?: string;
|
|
22
|
+
orientation?: "upright" | "sideways";
|
|
23
|
+
temporalPhase?: "past" | "present" | "future";
|
|
24
|
+
}
|
|
25
|
+
interface TarotSpreadSlotDefinition {
|
|
26
|
+
slotKey: string;
|
|
27
|
+
label: string;
|
|
28
|
+
order: number;
|
|
29
|
+
minCards: number;
|
|
30
|
+
maxCards: number;
|
|
31
|
+
validationRules?: TarotSpreadCardConstraint;
|
|
32
|
+
manualSelectionRules?: TarotSpreadCardConstraint;
|
|
33
|
+
drawRules?: TarotSpreadCardConstraint;
|
|
34
|
+
metadata?: TarotSpreadSlotMetadata;
|
|
35
|
+
}
|
|
36
|
+
interface TarotSpreadInquirerRule {
|
|
37
|
+
slotKey: string;
|
|
38
|
+
sourceSlotKeys: string[];
|
|
39
|
+
cardNumbersByGender: Record<TarotInquirerGender, number>;
|
|
40
|
+
}
|
|
41
|
+
interface TarotSpreadDefinition {
|
|
42
|
+
spreadId: TarotSpreadId;
|
|
43
|
+
label: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
contextRequirements?: TarotSpreadContextKey[];
|
|
46
|
+
slots: TarotSpreadSlotDefinition[];
|
|
47
|
+
specialRules?: {
|
|
48
|
+
inquirerCard?: TarotSpreadInquirerRule;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
interface TarotSpreadSelectionContext {
|
|
52
|
+
inquirerGender?: TarotInquirerGender;
|
|
53
|
+
}
|
|
54
|
+
interface TarotSpreadSelectionCard {
|
|
55
|
+
slotKey: string;
|
|
56
|
+
cardNumber: number;
|
|
57
|
+
isInverted?: boolean;
|
|
58
|
+
}
|
|
59
|
+
interface TarotSpreadResolvedSelectionCard extends TarotSpreadSelectionCard {
|
|
60
|
+
card: TarotCard;
|
|
61
|
+
slot: TarotSpreadSlotDefinition;
|
|
62
|
+
}
|
|
63
|
+
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";
|
|
64
|
+
interface TarotSpreadValidationIssue {
|
|
65
|
+
code: TarotSpreadValidationErrorCode;
|
|
66
|
+
message: string;
|
|
67
|
+
slotKey?: string;
|
|
68
|
+
cardNumber?: number;
|
|
69
|
+
}
|
|
70
|
+
interface TarotSpreadValidationResult {
|
|
71
|
+
ok: boolean;
|
|
72
|
+
isComplete: boolean;
|
|
73
|
+
spread?: TarotSpreadDefinition;
|
|
74
|
+
resolvedCards: TarotSpreadResolvedSelectionCard[];
|
|
75
|
+
errors: TarotSpreadValidationIssue[];
|
|
76
|
+
}
|
|
77
|
+
interface TarotSpreadValidationInput {
|
|
78
|
+
spreadId: TarotSpreadId;
|
|
79
|
+
cards: TarotSpreadSelectionCard[];
|
|
80
|
+
context?: TarotSpreadSelectionContext;
|
|
81
|
+
allowPartial?: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface DrawTarotSpreadOptions {
|
|
84
|
+
spreadId: TarotSpreadId;
|
|
85
|
+
deckId?: TarotDeckId;
|
|
86
|
+
includeInverted?: boolean;
|
|
87
|
+
rng?: () => number;
|
|
88
|
+
context?: TarotSpreadSelectionContext;
|
|
89
|
+
}
|
|
90
|
+
interface TarotSpreadDrawResult {
|
|
91
|
+
spread: TarotSpreadDefinition;
|
|
92
|
+
deckId: TarotDeckId;
|
|
93
|
+
context?: TarotSpreadSelectionContext;
|
|
94
|
+
cards: TarotSpreadResolvedSelectionCard[];
|
|
95
|
+
}
|
|
96
|
+
declare function listTarotSpreads(): TarotSpreadDefinition[];
|
|
97
|
+
declare function getTarotSpread(spreadId: TarotSpreadId): TarotSpreadDefinition | undefined;
|
|
98
|
+
declare function validateTarotSpreadSelection(input: TarotSpreadValidationInput): TarotSpreadValidationResult;
|
|
99
|
+
declare function drawTarotSpread(options: DrawTarotSpreadOptions): TarotSpreadDrawResult;
|
|
2
100
|
|
|
3
101
|
/**
|
|
4
102
|
* Tarot interpretation functions
|
|
5
103
|
*/
|
|
6
104
|
|
|
7
|
-
type Deck = "papus_pt" | "papus" | "mythic" | "egyptian" | "rider-waite";
|
|
8
|
-
type TarotDeckId = Deck;
|
|
9
|
-
type TarotTreeId = SystemKey;
|
|
10
|
-
declare const DEFAULT_TAROT_TREE_ID: TarotTreeId;
|
|
11
|
-
declare const TAROT_TREE_IDS: readonly ["kaabalah", "hermetic-qabalah", "lurianic-kabbalah"];
|
|
12
|
-
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";
|
|
13
|
-
type TarotCard = {
|
|
14
|
-
number: number;
|
|
15
|
-
tarotCard: string;
|
|
16
|
-
tarotCardFilename: string;
|
|
17
|
-
egyptianCardName?: string;
|
|
18
|
-
meaning: string;
|
|
19
|
-
papusMeaning?: string;
|
|
20
|
-
type: "major" | "minor" | "daat+royalship";
|
|
21
|
-
deck: Deck;
|
|
22
|
-
suit?: string;
|
|
23
|
-
isInverted?: boolean;
|
|
24
|
-
};
|
|
25
|
-
declare const majorArcana: MajorArcana[];
|
|
26
105
|
/**
|
|
27
106
|
* Shuffles a deck of tarot cards and optionally includes inverted cards
|
|
28
107
|
* @param cards - Array of tarot cards to shuffle
|
|
29
108
|
* @param includeInvertedCards - Whether to include inverted cards in the shuffle
|
|
30
109
|
* @param shuffleCount - Number of times to shuffle the deck (default: 6)
|
|
31
110
|
* @param shuffleDelay - Delay between shuffles in milliseconds (default: 300)
|
|
111
|
+
* @param rng - Optional randomness source for tests/replay (default: Math.random)
|
|
32
112
|
* @returns Promise that resolves to the shuffled deck
|
|
33
113
|
*/
|
|
34
|
-
declare function shuffleTarotDeck(cards: TarotCard[], includeInvertedCards?: boolean, shuffleCount?: number, shuffleDelay?: number): Promise<TarotCard[]>;
|
|
35
|
-
interface TarotDeckMetadata {
|
|
36
|
-
id: TarotDeckId;
|
|
37
|
-
label: string;
|
|
38
|
-
}
|
|
39
|
-
interface TarotDeckDescription {
|
|
40
|
-
name?: string;
|
|
41
|
-
meaning?: string;
|
|
42
|
-
reversedMeaning?: string;
|
|
43
|
-
keywords?: string[];
|
|
44
|
-
}
|
|
114
|
+
declare function shuffleTarotDeck(cards: TarotCard[], includeInvertedCards?: boolean, shuffleCount?: number, shuffleDelay?: number, rng?: () => number): Promise<TarotCard[]>;
|
|
45
115
|
type TarotAstrologyCorrespondenceType = WesternAstrologyTypes.PLANET | WesternAstrologyTypes.WESTERN_ZODIAC_SIGN | WesternAstrologyTypes.WESTERN_ELEMENT;
|
|
46
116
|
interface TarotAstrologyCorrespondence {
|
|
47
117
|
type: TarotAstrologyCorrespondenceType;
|
|
@@ -160,7 +230,6 @@ interface TarotRepresentation {
|
|
|
160
230
|
description?: TarotDeckDescription;
|
|
161
231
|
}
|
|
162
232
|
declare const TAROT_IMAGE_BASE_URL = "https://kaabalah-app.s3.us-east-1.amazonaws.com/tarot";
|
|
163
|
-
declare const ARKANNUS: TarotCard[];
|
|
164
233
|
declare function getTarotCardProfile(lookup: TarotImageLookup): TarotCardProfile | undefined;
|
|
165
234
|
declare function listTarotDecks(): TarotDeckMetadata[];
|
|
166
235
|
declare function listTarotTrees(): TarotTreeId[];
|
|
@@ -171,98 +240,5 @@ declare function getTarotCorrespondenceProfile(lookup: TarotImageLookup, treeId?
|
|
|
171
240
|
declare function getTarotRepresentations(lookup: TarotImageLookup): TarotRepresentation[];
|
|
172
241
|
declare function getTarotRepresentation(lookup: TarotImageLookup, deckId: TarotDeckId): TarotRepresentation | undefined;
|
|
173
242
|
declare function resolveTarotImageUrl(lookup: TarotImageLookup, deckId: TarotDeckId): string | undefined;
|
|
174
|
-
type TarotSpreadId = "quick-insight" | "conscious-reading" | "time-reading" | "dialectic-reading" | "tree-of-life-reading" | "celtic-cross" | "event-reading";
|
|
175
|
-
type TarotSpreadContextKey = "inquirerGender";
|
|
176
|
-
type TarotInquirerGender = "man" | "woman";
|
|
177
|
-
type TarotSpreadCardType = TarotCard["type"];
|
|
178
|
-
type TarotSpreadMinorRank = "ace" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
|
|
179
|
-
interface TarotSpreadCardConstraint {
|
|
180
|
-
allowedTypes?: TarotSpreadCardType[];
|
|
181
|
-
requiredRank?: TarotSpreadMinorRank;
|
|
182
|
-
allowedCardFilenames?: string[];
|
|
183
|
-
excludedCardFilenames?: string[];
|
|
184
|
-
}
|
|
185
|
-
interface TarotSpreadSlotMetadata {
|
|
186
|
-
displayLabel?: string;
|
|
187
|
-
groupKey?: string;
|
|
188
|
-
note?: string;
|
|
189
|
-
orientation?: "upright" | "sideways";
|
|
190
|
-
temporalPhase?: "past" | "present" | "future";
|
|
191
|
-
}
|
|
192
|
-
interface TarotSpreadSlotDefinition {
|
|
193
|
-
slotKey: string;
|
|
194
|
-
label: string;
|
|
195
|
-
order: number;
|
|
196
|
-
minCards: number;
|
|
197
|
-
maxCards: number;
|
|
198
|
-
validationRules?: TarotSpreadCardConstraint;
|
|
199
|
-
manualSelectionRules?: TarotSpreadCardConstraint;
|
|
200
|
-
drawRules?: TarotSpreadCardConstraint;
|
|
201
|
-
metadata?: TarotSpreadSlotMetadata;
|
|
202
|
-
}
|
|
203
|
-
interface TarotSpreadInquirerRule {
|
|
204
|
-
slotKey: string;
|
|
205
|
-
sourceSlotKeys: string[];
|
|
206
|
-
cardNumbersByGender: Record<TarotInquirerGender, number>;
|
|
207
|
-
}
|
|
208
|
-
interface TarotSpreadDefinition {
|
|
209
|
-
spreadId: TarotSpreadId;
|
|
210
|
-
label: string;
|
|
211
|
-
description?: string;
|
|
212
|
-
contextRequirements?: TarotSpreadContextKey[];
|
|
213
|
-
slots: TarotSpreadSlotDefinition[];
|
|
214
|
-
specialRules?: {
|
|
215
|
-
inquirerCard?: TarotSpreadInquirerRule;
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
interface TarotSpreadSelectionContext {
|
|
219
|
-
inquirerGender?: TarotInquirerGender;
|
|
220
|
-
}
|
|
221
|
-
interface TarotSpreadSelectionCard {
|
|
222
|
-
slotKey: string;
|
|
223
|
-
cardNumber: number;
|
|
224
|
-
isInverted?: boolean;
|
|
225
|
-
}
|
|
226
|
-
interface TarotSpreadResolvedSelectionCard extends TarotSpreadSelectionCard {
|
|
227
|
-
card: TarotCard;
|
|
228
|
-
slot: TarotSpreadSlotDefinition;
|
|
229
|
-
}
|
|
230
|
-
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";
|
|
231
|
-
interface TarotSpreadValidationIssue {
|
|
232
|
-
code: TarotSpreadValidationErrorCode;
|
|
233
|
-
message: string;
|
|
234
|
-
slotKey?: string;
|
|
235
|
-
cardNumber?: number;
|
|
236
|
-
}
|
|
237
|
-
interface TarotSpreadValidationResult {
|
|
238
|
-
ok: boolean;
|
|
239
|
-
isComplete: boolean;
|
|
240
|
-
spread?: TarotSpreadDefinition;
|
|
241
|
-
resolvedCards: TarotSpreadResolvedSelectionCard[];
|
|
242
|
-
errors: TarotSpreadValidationIssue[];
|
|
243
|
-
}
|
|
244
|
-
interface TarotSpreadValidationInput {
|
|
245
|
-
spreadId: TarotSpreadId;
|
|
246
|
-
cards: TarotSpreadSelectionCard[];
|
|
247
|
-
context?: TarotSpreadSelectionContext;
|
|
248
|
-
allowPartial?: boolean;
|
|
249
|
-
}
|
|
250
|
-
interface DrawTarotSpreadOptions {
|
|
251
|
-
spreadId: TarotSpreadId;
|
|
252
|
-
deckId?: TarotDeckId;
|
|
253
|
-
includeInverted?: boolean;
|
|
254
|
-
rng?: () => number;
|
|
255
|
-
context?: TarotSpreadSelectionContext;
|
|
256
|
-
}
|
|
257
|
-
interface TarotSpreadDrawResult {
|
|
258
|
-
spread: TarotSpreadDefinition;
|
|
259
|
-
deckId: TarotDeckId;
|
|
260
|
-
context?: TarotSpreadSelectionContext;
|
|
261
|
-
cards: TarotSpreadResolvedSelectionCard[];
|
|
262
|
-
}
|
|
263
|
-
declare function listTarotSpreads(): TarotSpreadDefinition[];
|
|
264
|
-
declare function getTarotSpread(spreadId: TarotSpreadId): TarotSpreadDefinition | undefined;
|
|
265
|
-
declare function validateTarotSpreadSelection(input: TarotSpreadValidationInput): TarotSpreadValidationResult;
|
|
266
|
-
declare function drawTarotSpread(options: DrawTarotSpreadOptions): TarotSpreadDrawResult;
|
|
267
243
|
|
|
268
|
-
export { ARKANNUS,
|
|
244
|
+
export { ARKANNUS, type DrawTarotSpreadOptions, MajorArcana, TAROT_IMAGE_BASE_URL, type TarotArchetype, type TarotArchetypeLookup, type TarotAssetPathType, type TarotAstrologyCorrespondence, type TarotAstrologyCorrespondenceType, TarotCard, type TarotCardKind, type TarotCardProfile, type TarotCorrespondenceNode, type TarotCorrespondenceNodeType, type TarotCorrespondenceProfile, type TarotCorrespondenceProfileBase, type TarotCourtAstrologyCorrespondenceProfile, type TarotCourtRank, TarotDeckDescription, TarotDeckId, TarotDeckMetadata, type TarotImageLookup, type TarotInquirerGender, type TarotMajorCorrespondenceProfile, type TarotMinorCorrespondenceProfile, type TarotPageCorrespondenceProfile, type TarotPathCorrespondence, 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, TarotTreeId, drawTarotSpread, getTarotArchetype, getTarotCardByNumber, getTarotCardNumber, getTarotCardProfile, getTarotCorrespondenceProfile, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, listTarotTrees, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection };
|
package/dist/tarot/index.d.ts
CHANGED
|
@@ -1,47 +1,117 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a4 as WesternAstrologyTypes, aa as NodeId, a2 as KaabalahTypes, a3 as LetterTypes, a5 as TarotTypes } from '../correspondence-model-JSyDWwmn.js';
|
|
2
|
+
import { b as TarotCard, d as TarotDeckId, M as MajorArcana, c as TarotDeckDescription, e as TarotDeckMetadata, f as TarotTreeId } from '../data-_b06lgY6.js';
|
|
3
|
+
export { D as DEFAULT_TAROT_TREE_ID, a as Deck, T as TAROT_TREE_IDS, m as majorArcana } from '../data-_b06lgY6.js';
|
|
4
|
+
|
|
5
|
+
declare const ARKANNUS: TarotCard[];
|
|
6
|
+
|
|
7
|
+
type TarotSpreadId = "quick-insight" | "conscious-reading" | "time-reading" | "dialectic-reading" | "tree-of-life-reading" | "celtic-cross" | "event-reading";
|
|
8
|
+
type TarotSpreadContextKey = "inquirerGender";
|
|
9
|
+
type TarotInquirerGender = "man" | "woman";
|
|
10
|
+
type TarotSpreadCardType = TarotCard["type"];
|
|
11
|
+
type TarotSpreadMinorRank = "ace" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
|
|
12
|
+
interface TarotSpreadCardConstraint {
|
|
13
|
+
allowedTypes?: TarotSpreadCardType[];
|
|
14
|
+
requiredRank?: TarotSpreadMinorRank;
|
|
15
|
+
allowedCardFilenames?: string[];
|
|
16
|
+
excludedCardFilenames?: string[];
|
|
17
|
+
}
|
|
18
|
+
interface TarotSpreadSlotMetadata {
|
|
19
|
+
displayLabel?: string;
|
|
20
|
+
groupKey?: string;
|
|
21
|
+
note?: string;
|
|
22
|
+
orientation?: "upright" | "sideways";
|
|
23
|
+
temporalPhase?: "past" | "present" | "future";
|
|
24
|
+
}
|
|
25
|
+
interface TarotSpreadSlotDefinition {
|
|
26
|
+
slotKey: string;
|
|
27
|
+
label: string;
|
|
28
|
+
order: number;
|
|
29
|
+
minCards: number;
|
|
30
|
+
maxCards: number;
|
|
31
|
+
validationRules?: TarotSpreadCardConstraint;
|
|
32
|
+
manualSelectionRules?: TarotSpreadCardConstraint;
|
|
33
|
+
drawRules?: TarotSpreadCardConstraint;
|
|
34
|
+
metadata?: TarotSpreadSlotMetadata;
|
|
35
|
+
}
|
|
36
|
+
interface TarotSpreadInquirerRule {
|
|
37
|
+
slotKey: string;
|
|
38
|
+
sourceSlotKeys: string[];
|
|
39
|
+
cardNumbersByGender: Record<TarotInquirerGender, number>;
|
|
40
|
+
}
|
|
41
|
+
interface TarotSpreadDefinition {
|
|
42
|
+
spreadId: TarotSpreadId;
|
|
43
|
+
label: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
contextRequirements?: TarotSpreadContextKey[];
|
|
46
|
+
slots: TarotSpreadSlotDefinition[];
|
|
47
|
+
specialRules?: {
|
|
48
|
+
inquirerCard?: TarotSpreadInquirerRule;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
interface TarotSpreadSelectionContext {
|
|
52
|
+
inquirerGender?: TarotInquirerGender;
|
|
53
|
+
}
|
|
54
|
+
interface TarotSpreadSelectionCard {
|
|
55
|
+
slotKey: string;
|
|
56
|
+
cardNumber: number;
|
|
57
|
+
isInverted?: boolean;
|
|
58
|
+
}
|
|
59
|
+
interface TarotSpreadResolvedSelectionCard extends TarotSpreadSelectionCard {
|
|
60
|
+
card: TarotCard;
|
|
61
|
+
slot: TarotSpreadSlotDefinition;
|
|
62
|
+
}
|
|
63
|
+
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";
|
|
64
|
+
interface TarotSpreadValidationIssue {
|
|
65
|
+
code: TarotSpreadValidationErrorCode;
|
|
66
|
+
message: string;
|
|
67
|
+
slotKey?: string;
|
|
68
|
+
cardNumber?: number;
|
|
69
|
+
}
|
|
70
|
+
interface TarotSpreadValidationResult {
|
|
71
|
+
ok: boolean;
|
|
72
|
+
isComplete: boolean;
|
|
73
|
+
spread?: TarotSpreadDefinition;
|
|
74
|
+
resolvedCards: TarotSpreadResolvedSelectionCard[];
|
|
75
|
+
errors: TarotSpreadValidationIssue[];
|
|
76
|
+
}
|
|
77
|
+
interface TarotSpreadValidationInput {
|
|
78
|
+
spreadId: TarotSpreadId;
|
|
79
|
+
cards: TarotSpreadSelectionCard[];
|
|
80
|
+
context?: TarotSpreadSelectionContext;
|
|
81
|
+
allowPartial?: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface DrawTarotSpreadOptions {
|
|
84
|
+
spreadId: TarotSpreadId;
|
|
85
|
+
deckId?: TarotDeckId;
|
|
86
|
+
includeInverted?: boolean;
|
|
87
|
+
rng?: () => number;
|
|
88
|
+
context?: TarotSpreadSelectionContext;
|
|
89
|
+
}
|
|
90
|
+
interface TarotSpreadDrawResult {
|
|
91
|
+
spread: TarotSpreadDefinition;
|
|
92
|
+
deckId: TarotDeckId;
|
|
93
|
+
context?: TarotSpreadSelectionContext;
|
|
94
|
+
cards: TarotSpreadResolvedSelectionCard[];
|
|
95
|
+
}
|
|
96
|
+
declare function listTarotSpreads(): TarotSpreadDefinition[];
|
|
97
|
+
declare function getTarotSpread(spreadId: TarotSpreadId): TarotSpreadDefinition | undefined;
|
|
98
|
+
declare function validateTarotSpreadSelection(input: TarotSpreadValidationInput): TarotSpreadValidationResult;
|
|
99
|
+
declare function drawTarotSpread(options: DrawTarotSpreadOptions): TarotSpreadDrawResult;
|
|
2
100
|
|
|
3
101
|
/**
|
|
4
102
|
* Tarot interpretation functions
|
|
5
103
|
*/
|
|
6
104
|
|
|
7
|
-
type Deck = "papus_pt" | "papus" | "mythic" | "egyptian" | "rider-waite";
|
|
8
|
-
type TarotDeckId = Deck;
|
|
9
|
-
type TarotTreeId = SystemKey;
|
|
10
|
-
declare const DEFAULT_TAROT_TREE_ID: TarotTreeId;
|
|
11
|
-
declare const TAROT_TREE_IDS: readonly ["kaabalah", "hermetic-qabalah", "lurianic-kabbalah"];
|
|
12
|
-
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";
|
|
13
|
-
type TarotCard = {
|
|
14
|
-
number: number;
|
|
15
|
-
tarotCard: string;
|
|
16
|
-
tarotCardFilename: string;
|
|
17
|
-
egyptianCardName?: string;
|
|
18
|
-
meaning: string;
|
|
19
|
-
papusMeaning?: string;
|
|
20
|
-
type: "major" | "minor" | "daat+royalship";
|
|
21
|
-
deck: Deck;
|
|
22
|
-
suit?: string;
|
|
23
|
-
isInverted?: boolean;
|
|
24
|
-
};
|
|
25
|
-
declare const majorArcana: MajorArcana[];
|
|
26
105
|
/**
|
|
27
106
|
* Shuffles a deck of tarot cards and optionally includes inverted cards
|
|
28
107
|
* @param cards - Array of tarot cards to shuffle
|
|
29
108
|
* @param includeInvertedCards - Whether to include inverted cards in the shuffle
|
|
30
109
|
* @param shuffleCount - Number of times to shuffle the deck (default: 6)
|
|
31
110
|
* @param shuffleDelay - Delay between shuffles in milliseconds (default: 300)
|
|
111
|
+
* @param rng - Optional randomness source for tests/replay (default: Math.random)
|
|
32
112
|
* @returns Promise that resolves to the shuffled deck
|
|
33
113
|
*/
|
|
34
|
-
declare function shuffleTarotDeck(cards: TarotCard[], includeInvertedCards?: boolean, shuffleCount?: number, shuffleDelay?: number): Promise<TarotCard[]>;
|
|
35
|
-
interface TarotDeckMetadata {
|
|
36
|
-
id: TarotDeckId;
|
|
37
|
-
label: string;
|
|
38
|
-
}
|
|
39
|
-
interface TarotDeckDescription {
|
|
40
|
-
name?: string;
|
|
41
|
-
meaning?: string;
|
|
42
|
-
reversedMeaning?: string;
|
|
43
|
-
keywords?: string[];
|
|
44
|
-
}
|
|
114
|
+
declare function shuffleTarotDeck(cards: TarotCard[], includeInvertedCards?: boolean, shuffleCount?: number, shuffleDelay?: number, rng?: () => number): Promise<TarotCard[]>;
|
|
45
115
|
type TarotAstrologyCorrespondenceType = WesternAstrologyTypes.PLANET | WesternAstrologyTypes.WESTERN_ZODIAC_SIGN | WesternAstrologyTypes.WESTERN_ELEMENT;
|
|
46
116
|
interface TarotAstrologyCorrespondence {
|
|
47
117
|
type: TarotAstrologyCorrespondenceType;
|
|
@@ -160,7 +230,6 @@ interface TarotRepresentation {
|
|
|
160
230
|
description?: TarotDeckDescription;
|
|
161
231
|
}
|
|
162
232
|
declare const TAROT_IMAGE_BASE_URL = "https://kaabalah-app.s3.us-east-1.amazonaws.com/tarot";
|
|
163
|
-
declare const ARKANNUS: TarotCard[];
|
|
164
233
|
declare function getTarotCardProfile(lookup: TarotImageLookup): TarotCardProfile | undefined;
|
|
165
234
|
declare function listTarotDecks(): TarotDeckMetadata[];
|
|
166
235
|
declare function listTarotTrees(): TarotTreeId[];
|
|
@@ -171,98 +240,5 @@ declare function getTarotCorrespondenceProfile(lookup: TarotImageLookup, treeId?
|
|
|
171
240
|
declare function getTarotRepresentations(lookup: TarotImageLookup): TarotRepresentation[];
|
|
172
241
|
declare function getTarotRepresentation(lookup: TarotImageLookup, deckId: TarotDeckId): TarotRepresentation | undefined;
|
|
173
242
|
declare function resolveTarotImageUrl(lookup: TarotImageLookup, deckId: TarotDeckId): string | undefined;
|
|
174
|
-
type TarotSpreadId = "quick-insight" | "conscious-reading" | "time-reading" | "dialectic-reading" | "tree-of-life-reading" | "celtic-cross" | "event-reading";
|
|
175
|
-
type TarotSpreadContextKey = "inquirerGender";
|
|
176
|
-
type TarotInquirerGender = "man" | "woman";
|
|
177
|
-
type TarotSpreadCardType = TarotCard["type"];
|
|
178
|
-
type TarotSpreadMinorRank = "ace" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
|
|
179
|
-
interface TarotSpreadCardConstraint {
|
|
180
|
-
allowedTypes?: TarotSpreadCardType[];
|
|
181
|
-
requiredRank?: TarotSpreadMinorRank;
|
|
182
|
-
allowedCardFilenames?: string[];
|
|
183
|
-
excludedCardFilenames?: string[];
|
|
184
|
-
}
|
|
185
|
-
interface TarotSpreadSlotMetadata {
|
|
186
|
-
displayLabel?: string;
|
|
187
|
-
groupKey?: string;
|
|
188
|
-
note?: string;
|
|
189
|
-
orientation?: "upright" | "sideways";
|
|
190
|
-
temporalPhase?: "past" | "present" | "future";
|
|
191
|
-
}
|
|
192
|
-
interface TarotSpreadSlotDefinition {
|
|
193
|
-
slotKey: string;
|
|
194
|
-
label: string;
|
|
195
|
-
order: number;
|
|
196
|
-
minCards: number;
|
|
197
|
-
maxCards: number;
|
|
198
|
-
validationRules?: TarotSpreadCardConstraint;
|
|
199
|
-
manualSelectionRules?: TarotSpreadCardConstraint;
|
|
200
|
-
drawRules?: TarotSpreadCardConstraint;
|
|
201
|
-
metadata?: TarotSpreadSlotMetadata;
|
|
202
|
-
}
|
|
203
|
-
interface TarotSpreadInquirerRule {
|
|
204
|
-
slotKey: string;
|
|
205
|
-
sourceSlotKeys: string[];
|
|
206
|
-
cardNumbersByGender: Record<TarotInquirerGender, number>;
|
|
207
|
-
}
|
|
208
|
-
interface TarotSpreadDefinition {
|
|
209
|
-
spreadId: TarotSpreadId;
|
|
210
|
-
label: string;
|
|
211
|
-
description?: string;
|
|
212
|
-
contextRequirements?: TarotSpreadContextKey[];
|
|
213
|
-
slots: TarotSpreadSlotDefinition[];
|
|
214
|
-
specialRules?: {
|
|
215
|
-
inquirerCard?: TarotSpreadInquirerRule;
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
interface TarotSpreadSelectionContext {
|
|
219
|
-
inquirerGender?: TarotInquirerGender;
|
|
220
|
-
}
|
|
221
|
-
interface TarotSpreadSelectionCard {
|
|
222
|
-
slotKey: string;
|
|
223
|
-
cardNumber: number;
|
|
224
|
-
isInverted?: boolean;
|
|
225
|
-
}
|
|
226
|
-
interface TarotSpreadResolvedSelectionCard extends TarotSpreadSelectionCard {
|
|
227
|
-
card: TarotCard;
|
|
228
|
-
slot: TarotSpreadSlotDefinition;
|
|
229
|
-
}
|
|
230
|
-
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";
|
|
231
|
-
interface TarotSpreadValidationIssue {
|
|
232
|
-
code: TarotSpreadValidationErrorCode;
|
|
233
|
-
message: string;
|
|
234
|
-
slotKey?: string;
|
|
235
|
-
cardNumber?: number;
|
|
236
|
-
}
|
|
237
|
-
interface TarotSpreadValidationResult {
|
|
238
|
-
ok: boolean;
|
|
239
|
-
isComplete: boolean;
|
|
240
|
-
spread?: TarotSpreadDefinition;
|
|
241
|
-
resolvedCards: TarotSpreadResolvedSelectionCard[];
|
|
242
|
-
errors: TarotSpreadValidationIssue[];
|
|
243
|
-
}
|
|
244
|
-
interface TarotSpreadValidationInput {
|
|
245
|
-
spreadId: TarotSpreadId;
|
|
246
|
-
cards: TarotSpreadSelectionCard[];
|
|
247
|
-
context?: TarotSpreadSelectionContext;
|
|
248
|
-
allowPartial?: boolean;
|
|
249
|
-
}
|
|
250
|
-
interface DrawTarotSpreadOptions {
|
|
251
|
-
spreadId: TarotSpreadId;
|
|
252
|
-
deckId?: TarotDeckId;
|
|
253
|
-
includeInverted?: boolean;
|
|
254
|
-
rng?: () => number;
|
|
255
|
-
context?: TarotSpreadSelectionContext;
|
|
256
|
-
}
|
|
257
|
-
interface TarotSpreadDrawResult {
|
|
258
|
-
spread: TarotSpreadDefinition;
|
|
259
|
-
deckId: TarotDeckId;
|
|
260
|
-
context?: TarotSpreadSelectionContext;
|
|
261
|
-
cards: TarotSpreadResolvedSelectionCard[];
|
|
262
|
-
}
|
|
263
|
-
declare function listTarotSpreads(): TarotSpreadDefinition[];
|
|
264
|
-
declare function getTarotSpread(spreadId: TarotSpreadId): TarotSpreadDefinition | undefined;
|
|
265
|
-
declare function validateTarotSpreadSelection(input: TarotSpreadValidationInput): TarotSpreadValidationResult;
|
|
266
|
-
declare function drawTarotSpread(options: DrawTarotSpreadOptions): TarotSpreadDrawResult;
|
|
267
243
|
|
|
268
|
-
export { ARKANNUS,
|
|
244
|
+
export { ARKANNUS, type DrawTarotSpreadOptions, MajorArcana, TAROT_IMAGE_BASE_URL, type TarotArchetype, type TarotArchetypeLookup, type TarotAssetPathType, type TarotAstrologyCorrespondence, type TarotAstrologyCorrespondenceType, TarotCard, type TarotCardKind, type TarotCardProfile, type TarotCorrespondenceNode, type TarotCorrespondenceNodeType, type TarotCorrespondenceProfile, type TarotCorrespondenceProfileBase, type TarotCourtAstrologyCorrespondenceProfile, type TarotCourtRank, TarotDeckDescription, TarotDeckId, TarotDeckMetadata, type TarotImageLookup, type TarotInquirerGender, type TarotMajorCorrespondenceProfile, type TarotMinorCorrespondenceProfile, type TarotPageCorrespondenceProfile, type TarotPathCorrespondence, 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, TarotTreeId, drawTarotSpread, getTarotArchetype, getTarotCardByNumber, getTarotCardNumber, getTarotCardProfile, getTarotCorrespondenceProfile, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, listTarotTrees, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection };
|
package/dist/tarot/index.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkM2FTEWY2_js = require('../chunk-M2FTEWY2.js');
|
|
4
|
+
require('../chunk-47BAJUYW.js');
|
|
5
|
+
require('../chunk-Q7YAKPBH.js');
|
|
6
6
|
require('../chunk-4337NVKS.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ARKANNUS", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkM2FTEWY2_js.ARKANNUS; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "DEFAULT_TAROT_TREE_ID", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkM2FTEWY2_js.DEFAULT_TAROT_TREE_ID; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "TAROT_IMAGE_BASE_URL", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkM2FTEWY2_js.TAROT_IMAGE_BASE_URL; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "TAROT_TREE_IDS", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkM2FTEWY2_js.TAROT_TREE_IDS; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "drawTarotSpread", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkM2FTEWY2_js.drawTarotSpread; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "getTarotArchetype", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkM2FTEWY2_js.getTarotArchetype; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "getTarotCardByNumber", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkM2FTEWY2_js.getTarotCardByNumber; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getTarotCardNumber", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkM2FTEWY2_js.getTarotCardNumber; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "getTarotCardProfile", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkM2FTEWY2_js.getTarotCardProfile; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "getTarotCorrespondenceProfile", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkM2FTEWY2_js.getTarotCorrespondenceProfile; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "getTarotRepresentation", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkM2FTEWY2_js.getTarotRepresentation; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "getTarotRepresentations", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkM2FTEWY2_js.getTarotRepresentations; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "getTarotSpread", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkM2FTEWY2_js.getTarotSpread; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "listTarotDecks", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkM2FTEWY2_js.listTarotDecks; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "listTarotSpreads", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkM2FTEWY2_js.listTarotSpreads; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "listTarotTrees", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkM2FTEWY2_js.listTarotTrees; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "majorArcana", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkM2FTEWY2_js.majorArcana; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "resolveTarotImageUrl", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkM2FTEWY2_js.resolveTarotImageUrl; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "shuffleTarotDeck", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkM2FTEWY2_js.shuffleTarotDeck; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "validateTarotSpreadSelection", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkM2FTEWY2_js.validateTarotSpreadSelection; }
|
|
89
89
|
});
|
|
90
90
|
//# sourceMappingURL=out.js.map
|
|
91
91
|
//# sourceMappingURL=index.js.map
|
package/dist/tarot/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ARKANNUS, DEFAULT_TAROT_TREE_ID, TAROT_IMAGE_BASE_URL, TAROT_TREE_IDS, drawTarotSpread, getTarotArchetype, getTarotCardByNumber, getTarotCardNumber, getTarotCardProfile, getTarotCorrespondenceProfile, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, listTarotTrees, majorArcana, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ARKANNUS, DEFAULT_TAROT_TREE_ID, TAROT_IMAGE_BASE_URL, TAROT_TREE_IDS, drawTarotSpread, getTarotArchetype, getTarotCardByNumber, getTarotCardNumber, getTarotCardProfile, getTarotCorrespondenceProfile, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, listTarotTrees, majorArcana, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection } from '../chunk-Y3TLBFPD.mjs';
|
|
2
|
+
import '../chunk-X5HGLMEF.mjs';
|
|
3
|
+
import '../chunk-NOZKIUGP.mjs';
|
|
4
4
|
import '../chunk-NPQZ2DOY.mjs';
|
|
5
5
|
//# sourceMappingURL=out.js.map
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aa as NodeId, a2 as KaabalahTypes, ad as NodeData, Y as SystemKey, a1 as TreeOfLife } from './correspondence-model-JSyDWwmn.mjs';
|
|
2
2
|
|
|
3
3
|
type TreeTopologySphereName = (typeof TREE_TOPOLOGY_SPHERE_NAMES)[number];
|
|
4
4
|
type TreeTopologySphereId = NodeId<KaabalahTypes.SPHERE>;
|
|
@@ -78,6 +78,7 @@ declare class TreeTopology {
|
|
|
78
78
|
private readonly pathsById;
|
|
79
79
|
private readonly pathsByNumber;
|
|
80
80
|
private readonly pathsBySpherePair;
|
|
81
|
+
private readonly pathsBySphereId;
|
|
81
82
|
private readonly routesByKey;
|
|
82
83
|
constructor({ system, spheres, paths, }: {
|
|
83
84
|
system: SystemKey;
|