kaabalah 1.0.0 → 1.0.1
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/core/index.d.mts +15 -0
- package/dist/core/index.d.ts +15 -0
- package/dist/core/index.js +2379 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/index.mjs +2341 -0
- package/dist/core/index.mjs.map +1 -0
- package/dist/gematria/index.d.mts +39 -0
- package/dist/gematria/index.d.ts +39 -0
- package/dist/gematria/index.js +2484 -0
- package/dist/gematria/index.js.map +1 -0
- package/dist/gematria/index.mjs +2463 -0
- package/dist/gematria/index.mjs.map +1 -0
- package/dist/ifa/index.d.mts +16 -0
- package/dist/ifa/index.d.ts +16 -0
- package/dist/ifa/index.js +75 -0
- package/dist/ifa/index.js.map +1 -0
- package/dist/ifa/index.mjs +50 -0
- package/dist/ifa/index.mjs.map +1 -0
- package/dist/index.d.mts +3 -9
- package/dist/index.d.ts +3 -9
- package/dist/index.js +2384 -466
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2370 -464
- package/dist/index.mjs.map +1 -1
- package/dist/registry-Cz3t3ylv.d.mts +479 -0
- package/dist/registry-Cz3t3ylv.d.ts +479 -0
- package/package.json +3 -2
- package/dist/kaabalah/index.d.mts +0 -26
- package/dist/kaabalah/index.d.ts +0 -26
- package/dist/kaabalah/index.js +0 -590
- package/dist/kaabalah/index.js.map +0 -1
- package/dist/kaabalah/index.mjs +0 -565
- package/dist/kaabalah/index.mjs.map +0 -1
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
type NodeId = string;
|
|
2
|
+
type NodeType = "sphere" | "path" | "world" | "number" | "planet" | "westernZodiacSign" | "westernElement" | "color" | "tarotArkAnnu" | "tarotSuit" | "musicalNote" | "hebrewLetter" | "latinLetter" | "sanskritLetter" | "archeometerLetter" | "chakra" | "subtleBody" | "uncategorized";
|
|
3
|
+
type NodeData<NodeType> = NodeType extends "sphere" ? SphereData : NodeType extends "path" ? PathData : NodeType extends "world" ? WorldData : NodeType extends "hebrewLetter" ? HebrewLetterData : NodeType extends "color" ? ColorData : NodeType extends "musicalNote" ? MusicalNoteData : NodeType extends "westernZodiacSign" ? WesternZodiacSignData : NodeType extends "tarotArkAnnu" ? TarotArkAnnuData : never;
|
|
4
|
+
interface Node<NodeType> {
|
|
5
|
+
id: NodeId;
|
|
6
|
+
type: NodeType;
|
|
7
|
+
data?: NodeData<NodeType>;
|
|
8
|
+
}
|
|
9
|
+
interface HermeticQabalahSphereData {
|
|
10
|
+
/**
|
|
11
|
+
* In Atziluth
|
|
12
|
+
*/
|
|
13
|
+
divineName: string;
|
|
14
|
+
/**
|
|
15
|
+
* In Briah
|
|
16
|
+
*/
|
|
17
|
+
archangelicName: string;
|
|
18
|
+
/**
|
|
19
|
+
* In Yetzirah
|
|
20
|
+
*/
|
|
21
|
+
angelicName: string;
|
|
22
|
+
/**
|
|
23
|
+
* In Assiah
|
|
24
|
+
*/
|
|
25
|
+
mundaneName: string;
|
|
26
|
+
}
|
|
27
|
+
type SphereData = {
|
|
28
|
+
hebrewName: string;
|
|
29
|
+
englishName: string;
|
|
30
|
+
magicalImage?: string;
|
|
31
|
+
} & Partial<HermeticQabalahSphereData>;
|
|
32
|
+
type PathData = {
|
|
33
|
+
meaning?: string;
|
|
34
|
+
};
|
|
35
|
+
type WorldData = {
|
|
36
|
+
element: "fire" | "air" | "water" | "earth";
|
|
37
|
+
hebrewName: string;
|
|
38
|
+
englishName: string;
|
|
39
|
+
};
|
|
40
|
+
type HebrewLetterData = {
|
|
41
|
+
type: "mother" | "double" | "simple";
|
|
42
|
+
transliteration: string;
|
|
43
|
+
gematriaValue: number;
|
|
44
|
+
gematriaValueWhenEnding?: number;
|
|
45
|
+
symbol: string;
|
|
46
|
+
hieroglyph: string;
|
|
47
|
+
yvritMeaning: string;
|
|
48
|
+
};
|
|
49
|
+
type ColorData = {
|
|
50
|
+
colorDescription: string;
|
|
51
|
+
colorNames: string[];
|
|
52
|
+
colorHexCodes: string[];
|
|
53
|
+
};
|
|
54
|
+
type MusicalNoteData = {
|
|
55
|
+
note: string;
|
|
56
|
+
noteDescription: string;
|
|
57
|
+
};
|
|
58
|
+
type WesternZodiacSignData = {
|
|
59
|
+
element: Exclude<typeof WESTERN_ELEMENTS[keyof typeof WESTERN_ELEMENTS], "Ether">;
|
|
60
|
+
type: "cardinal" | "fixed" | "mutable";
|
|
61
|
+
rulingPlanets: Array<Exclude<typeof PLANETS[keyof typeof PLANETS], "Earth">>;
|
|
62
|
+
};
|
|
63
|
+
type TarotArkAnnuData = {
|
|
64
|
+
type: "major" | "minor" | "court";
|
|
65
|
+
suit?: typeof TAROT_SUITS[keyof typeof TAROT_SUITS];
|
|
66
|
+
descriptiveData: {
|
|
67
|
+
deck: string;
|
|
68
|
+
name?: string;
|
|
69
|
+
meaning?: string;
|
|
70
|
+
reversedMeaning?: string;
|
|
71
|
+
keywords?: string[];
|
|
72
|
+
}[];
|
|
73
|
+
};
|
|
74
|
+
declare const FOUR_WORLDS: {
|
|
75
|
+
readonly ATZILUTH: "Atziluth";
|
|
76
|
+
readonly BRIAH: "Briah";
|
|
77
|
+
readonly YETZIRAH: "Yetzirah";
|
|
78
|
+
readonly ASSIAH: "Assiah";
|
|
79
|
+
};
|
|
80
|
+
declare const SPHERES: {
|
|
81
|
+
readonly KETHER: "Kether";
|
|
82
|
+
readonly CHOKMAH: "Chokmah";
|
|
83
|
+
readonly BINAH: "Binah";
|
|
84
|
+
readonly DAATH: "Daath";
|
|
85
|
+
readonly CHESED: "Chesed";
|
|
86
|
+
readonly GEBURAH: "Geburah";
|
|
87
|
+
readonly TIPHERETH: "Tiphereth";
|
|
88
|
+
readonly NETZACH: "Netzach";
|
|
89
|
+
readonly HOD: "Hod";
|
|
90
|
+
readonly YESOD: "Yesod";
|
|
91
|
+
readonly MALKUTH: "Malkuth";
|
|
92
|
+
};
|
|
93
|
+
declare const SPHERE_DATA: Record<keyof typeof SPHERES, NodeData<"sphere">>;
|
|
94
|
+
declare const PLANETS: {
|
|
95
|
+
readonly EARTH: "Earth";
|
|
96
|
+
readonly MOON: "Moon";
|
|
97
|
+
readonly SUN: "Sun";
|
|
98
|
+
readonly MERCURY: "Mercury";
|
|
99
|
+
readonly VENUS: "Venus";
|
|
100
|
+
readonly MARS: "Mars";
|
|
101
|
+
readonly JUPITER: "Jupiter";
|
|
102
|
+
readonly SATURN: "Saturn";
|
|
103
|
+
readonly URANUS: "Uranus";
|
|
104
|
+
readonly NEPTUNE: "Neptune";
|
|
105
|
+
readonly PLUTO: "Pluto";
|
|
106
|
+
};
|
|
107
|
+
declare const WESTERN_ZODIAC_SIGNS: {
|
|
108
|
+
readonly ARIES: "Aries";
|
|
109
|
+
readonly TAURUS: "Taurus";
|
|
110
|
+
readonly GEMINI: "Gemini";
|
|
111
|
+
readonly CANCER: "Cancer";
|
|
112
|
+
readonly LEO: "Leo";
|
|
113
|
+
readonly VIRGO: "Virgo";
|
|
114
|
+
readonly LIBRA: "Libra";
|
|
115
|
+
readonly SCORPIO: "Scorpio";
|
|
116
|
+
readonly SAGITTARIUS: "Sagittarius";
|
|
117
|
+
readonly CAPRICORN: "Capricorn";
|
|
118
|
+
readonly AQUARIUS: "Aquarius";
|
|
119
|
+
readonly PISCES: "Pisces";
|
|
120
|
+
};
|
|
121
|
+
declare const WESTERN_ELEMENTS: {
|
|
122
|
+
readonly FIRE: "Fire";
|
|
123
|
+
readonly AIR: "Air";
|
|
124
|
+
readonly WATER: "Water";
|
|
125
|
+
readonly EARTH: "Earth";
|
|
126
|
+
readonly ETHER: "Ether";
|
|
127
|
+
};
|
|
128
|
+
declare const WESTERN_ZODIAC_SIGNS_DATA: Record<keyof typeof WESTERN_ZODIAC_SIGNS, NodeData<"westernZodiacSign">>;
|
|
129
|
+
declare const MELKITZEDEKI_PATHS: {
|
|
130
|
+
readonly KETHER_CHOKMAH: 1;
|
|
131
|
+
readonly KETHER_BINAH: 2;
|
|
132
|
+
readonly KETHER_TIPHERETH: 3;
|
|
133
|
+
readonly CHOKMAH_BINAH: 4;
|
|
134
|
+
readonly CHOKMAH_TIPHERETH: 5;
|
|
135
|
+
readonly CHOKMAH_CHESED: 6;
|
|
136
|
+
readonly BINAH_TIPHERETH: 7;
|
|
137
|
+
readonly BINAH_GEBURAH: 8;
|
|
138
|
+
readonly CHESED_GEBURAH: 9;
|
|
139
|
+
readonly CHESED_TIPHERETH: 10;
|
|
140
|
+
readonly CHESED_NETZACH: 11;
|
|
141
|
+
readonly GEBURAH_TIPHERETH: 12;
|
|
142
|
+
readonly GEBURAH_HOD: 13;
|
|
143
|
+
readonly TIPHERETH_NETZACH: 14;
|
|
144
|
+
readonly TIPHERETH_YESOD: 15;
|
|
145
|
+
readonly TIPHERETH_HOD: 16;
|
|
146
|
+
readonly NETZACH_HOD: 17;
|
|
147
|
+
readonly NETZACH_YESOD: 18;
|
|
148
|
+
readonly NETZACH_MALKUTH: 19;
|
|
149
|
+
readonly HOD_YESOD: 20;
|
|
150
|
+
readonly HOD_MALKUTH: 21;
|
|
151
|
+
readonly YESOD_MALKUTH: 22;
|
|
152
|
+
};
|
|
153
|
+
declare const LURIANIC_PATHS: {
|
|
154
|
+
readonly KETHER_CHOKMAH: 1;
|
|
155
|
+
readonly KETHER_BINAH: 2;
|
|
156
|
+
readonly KETHER_TIPHERETH: 3;
|
|
157
|
+
readonly CHOKMAH_BINAH: 4;
|
|
158
|
+
readonly CHOKMAH_GEBURAH: 5;
|
|
159
|
+
readonly CHOKMAH_TIPHERETH: 6;
|
|
160
|
+
readonly CHOKMAH_CHESED: 7;
|
|
161
|
+
readonly BINAH_CHESED: 8;
|
|
162
|
+
readonly BINAH_TIPHERETH: 9;
|
|
163
|
+
readonly BINAH_GEBURAH: 10;
|
|
164
|
+
readonly CHESED_GEBURAH: 11;
|
|
165
|
+
readonly CHESED_TIPHERETH: 12;
|
|
166
|
+
readonly CHESED_NETZACH: 13;
|
|
167
|
+
readonly GEBURAH_TIPHERETH: 14;
|
|
168
|
+
readonly GEBURAH_HOD: 15;
|
|
169
|
+
readonly TIPHERETH_NETZACH: 16;
|
|
170
|
+
readonly TIPHERETH_YESOD: 17;
|
|
171
|
+
readonly TIPHERETH_HOD: 18;
|
|
172
|
+
readonly NETZACH_HOD: 19;
|
|
173
|
+
readonly NETZACH_YESOD: 20;
|
|
174
|
+
readonly HOD_YESOD: 21;
|
|
175
|
+
readonly YESOD_MALKUTH: 22;
|
|
176
|
+
};
|
|
177
|
+
declare const LATIN_LETTERS: {
|
|
178
|
+
readonly A: "A";
|
|
179
|
+
readonly B: "B";
|
|
180
|
+
readonly C: "C";
|
|
181
|
+
readonly D: "D";
|
|
182
|
+
readonly E: "E";
|
|
183
|
+
readonly F: "F";
|
|
184
|
+
readonly G: "G";
|
|
185
|
+
readonly H: "H";
|
|
186
|
+
readonly I: "I";
|
|
187
|
+
readonly J: "J";
|
|
188
|
+
readonly K: "K";
|
|
189
|
+
readonly L: "L";
|
|
190
|
+
readonly M: "M";
|
|
191
|
+
readonly N: "N";
|
|
192
|
+
readonly O: "O";
|
|
193
|
+
readonly P: "P";
|
|
194
|
+
readonly Q: "Q";
|
|
195
|
+
readonly R: "R";
|
|
196
|
+
readonly S: "S";
|
|
197
|
+
readonly T: "T";
|
|
198
|
+
readonly U: "U";
|
|
199
|
+
readonly V: "V";
|
|
200
|
+
readonly W: "W";
|
|
201
|
+
readonly X: "X";
|
|
202
|
+
readonly Y: "Y";
|
|
203
|
+
readonly Z: "Z";
|
|
204
|
+
readonly PH: "Ph";
|
|
205
|
+
readonly TS: "Ts";
|
|
206
|
+
readonly TZ: "Tz";
|
|
207
|
+
readonly TH: "Th";
|
|
208
|
+
readonly CH: "Ch";
|
|
209
|
+
readonly SH: "Sh";
|
|
210
|
+
readonly KH: "Kh";
|
|
211
|
+
readonly Ç: "Ç";
|
|
212
|
+
readonly Ã: "Ã";
|
|
213
|
+
};
|
|
214
|
+
declare const HEBREW_LETTERS: {
|
|
215
|
+
readonly ALEPH: "א";
|
|
216
|
+
readonly BETH: "ב";
|
|
217
|
+
readonly GIMEL: "ג";
|
|
218
|
+
readonly DALET: "ד";
|
|
219
|
+
readonly HE: "ה";
|
|
220
|
+
readonly VAV: "ו";
|
|
221
|
+
readonly ZAYIN: "ז";
|
|
222
|
+
readonly HET: "ח";
|
|
223
|
+
readonly TET: "ט";
|
|
224
|
+
readonly YOD: "י";
|
|
225
|
+
readonly KAF: "כ";
|
|
226
|
+
readonly LAMED: "ל";
|
|
227
|
+
readonly MEM: "מ";
|
|
228
|
+
readonly NUN: "נ";
|
|
229
|
+
readonly SAMEKH: "ס";
|
|
230
|
+
readonly AIN: "ע";
|
|
231
|
+
readonly PE: "פ";
|
|
232
|
+
readonly TSADI: "צ";
|
|
233
|
+
readonly QOF: "ק";
|
|
234
|
+
readonly RESH: "ר";
|
|
235
|
+
readonly SHIN: "ש";
|
|
236
|
+
readonly TAV: "ת";
|
|
237
|
+
};
|
|
238
|
+
declare const HEBREW_LETTERS_DATA: Record<keyof typeof HEBREW_LETTERS, NodeData<"hebrewLetter">>;
|
|
239
|
+
declare const TAROT_SUITS: {
|
|
240
|
+
readonly WANDS: "Wands";
|
|
241
|
+
readonly CUPS: "Cups";
|
|
242
|
+
readonly SWORDS: "Swords";
|
|
243
|
+
readonly PENTACLES: "Pentacles";
|
|
244
|
+
};
|
|
245
|
+
declare const TAROT_ARKANNUS: {
|
|
246
|
+
readonly THE_MAGICIAN: "The Magician";
|
|
247
|
+
readonly THE_HIGH_PRIESTESS: "The High Priestess";
|
|
248
|
+
readonly THE_EMPRESS: "The Empress";
|
|
249
|
+
readonly THE_EMPEROR: "The Emperor";
|
|
250
|
+
readonly THE_HIEROPHANT: "The Hierophant";
|
|
251
|
+
readonly THE_LOVER: "The Lover";
|
|
252
|
+
readonly THE_CHARIOT: "The Chariot";
|
|
253
|
+
readonly JUSTICE: "Justice";
|
|
254
|
+
readonly THE_HERMIT: "The Hermit";
|
|
255
|
+
readonly THE_WHEEL_OF_FORTUNE: "The Wheel of Fortune";
|
|
256
|
+
readonly STRENGTH: "Strength";
|
|
257
|
+
readonly THE_HANGED_MAN: "The Hanged Man";
|
|
258
|
+
readonly DEATH: "Death";
|
|
259
|
+
readonly TEMPERANCE: "Temperance";
|
|
260
|
+
readonly THE_DEVIL: "The Devil";
|
|
261
|
+
readonly THE_TOWER: "The Tower";
|
|
262
|
+
readonly THE_STAR: "The Star";
|
|
263
|
+
readonly THE_MOON: "The Moon";
|
|
264
|
+
readonly THE_SUN: "The Sun";
|
|
265
|
+
readonly JUDGMENT: "Judgment";
|
|
266
|
+
readonly THE_FOOL: "The Fool";
|
|
267
|
+
readonly THE_WORLD: "The World";
|
|
268
|
+
readonly KING_OF_WANDS: "King of Wands";
|
|
269
|
+
readonly QUEEN_OF_WANDS: "Queen of Wands";
|
|
270
|
+
readonly KNIGHT_OF_WANDS: "Knight of Wands";
|
|
271
|
+
readonly PAGE_OF_WANDS: "Page of Wands";
|
|
272
|
+
readonly ACE_OF_WANDS: "Ace of Wands";
|
|
273
|
+
readonly TWO_OF_WANDS: "Two of Wands";
|
|
274
|
+
readonly THREE_OF_WANDS: "Three of Wands";
|
|
275
|
+
readonly FOUR_OF_WANDS: "Four of Wands";
|
|
276
|
+
readonly FIVE_OF_WANDS: "Five of Wands";
|
|
277
|
+
readonly SIX_OF_WANDS: "Six of Wands";
|
|
278
|
+
readonly SEVEN_OF_WANDS: "Seven of Wands";
|
|
279
|
+
readonly EIGHT_OF_WANDS: "Eight of Wands";
|
|
280
|
+
readonly NINE_OF_WANDS: "Nine of Wands";
|
|
281
|
+
readonly TEN_OF_WANDS: "Ten of Wands";
|
|
282
|
+
readonly KING_OF_CUPS: "King of Cups";
|
|
283
|
+
readonly QUEEN_OF_CUPS: "Queen of Cups";
|
|
284
|
+
readonly KNIGHT_OF_CUPS: "Knight of Cups";
|
|
285
|
+
readonly PAGE_OF_CUPS: "Page of Cups";
|
|
286
|
+
readonly ACE_OF_CUPS: "Ace of Cups";
|
|
287
|
+
readonly TWO_OF_CUPS: "Two of Cups";
|
|
288
|
+
readonly THREE_OF_CUPS: "Three of Cups";
|
|
289
|
+
readonly FOUR_OF_CUPS: "Four of Cups";
|
|
290
|
+
readonly FIVE_OF_CUPS: "Five of Cups";
|
|
291
|
+
readonly SIX_OF_CUPS: "Six of Cups";
|
|
292
|
+
readonly SEVEN_OF_CUPS: "Seven of Cups";
|
|
293
|
+
readonly EIGHT_OF_CUPS: "Eight of Cups";
|
|
294
|
+
readonly NINE_OF_CUPS: "Nine of Cups";
|
|
295
|
+
readonly TEN_OF_CUPS: "Ten of Cups";
|
|
296
|
+
readonly KING_OF_SWORDS: "King of Swords";
|
|
297
|
+
readonly QUEEN_OF_SWORDS: "Queen of Swords";
|
|
298
|
+
readonly KNIGHT_OF_SWORDS: "Knight of Swords";
|
|
299
|
+
readonly PAGE_OF_SWORDS: "Page of Swords";
|
|
300
|
+
readonly ACE_OF_SWORDS: "Ace of Swords";
|
|
301
|
+
readonly TWO_OF_SWORDS: "Two of Swords";
|
|
302
|
+
readonly THREE_OF_SWORDS: "Three of Swords";
|
|
303
|
+
readonly FOUR_OF_SWORDS: "Four of Swords";
|
|
304
|
+
readonly FIVE_OF_SWORDS: "Five of Swords";
|
|
305
|
+
readonly SIX_OF_SWORDS: "Six of Swords";
|
|
306
|
+
readonly SEVEN_OF_SWORDS: "Seven of Swords";
|
|
307
|
+
readonly EIGHT_OF_SWORDS: "Eight of Swords";
|
|
308
|
+
readonly NINE_OF_SWORDS: "Nine of Swords";
|
|
309
|
+
readonly TEN_OF_SWORDS: "Ten of Swords";
|
|
310
|
+
readonly KING_OF_PENTACLES: "King of Pentacles";
|
|
311
|
+
readonly QUEEN_OF_PENTACLES: "Queen of Pentacles";
|
|
312
|
+
readonly KNIGHT_OF_PENTACLES: "Knight of Pentacles";
|
|
313
|
+
readonly PAGE_OF_PENTACLES: "Page of Pentacles";
|
|
314
|
+
readonly ACE_OF_PENTACLES: "Ace of Pentacles";
|
|
315
|
+
readonly TWO_OF_PENTACLES: "Two of Pentacles";
|
|
316
|
+
readonly THREE_OF_PENTACLES: "Three of Pentacles";
|
|
317
|
+
readonly FOUR_OF_PENTACLES: "Four of Pentacles";
|
|
318
|
+
readonly FIVE_OF_PENTACLES: "Five of Pentacles";
|
|
319
|
+
readonly SIX_OF_PENTACLES: "Six of Pentacles";
|
|
320
|
+
readonly SEVEN_OF_PENTACLES: "Seven of Pentacles";
|
|
321
|
+
readonly EIGHT_OF_PENTACLES: "Eight of Pentacles";
|
|
322
|
+
readonly NINE_OF_PENTACLES: "Nine of Pentacles";
|
|
323
|
+
readonly TEN_OF_PENTACLES: "Ten of Pentacles";
|
|
324
|
+
};
|
|
325
|
+
declare const TAROT_ARKANNUS_DATA: Record<keyof typeof TAROT_ARKANNUS, NodeData<"tarotArkAnnu">>;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* TreeOfLife represents a graph structure for mapping Kaabalah, Tarot, Astrology and other
|
|
329
|
+
* esoteric correspondences. It can be used to create multiple independent instances
|
|
330
|
+
* for different use cases or to isolate different sets of correspondences.
|
|
331
|
+
*/
|
|
332
|
+
declare class TreeOfLife {
|
|
333
|
+
private nodes;
|
|
334
|
+
private adjacent;
|
|
335
|
+
private modules;
|
|
336
|
+
activeSystem: SystemKey | null;
|
|
337
|
+
/**
|
|
338
|
+
* Loads the tree of life system to be used
|
|
339
|
+
* @param systemKey - the key of the system to load
|
|
340
|
+
*/
|
|
341
|
+
loadSystem(systemKey: SystemKey): void;
|
|
342
|
+
/**
|
|
343
|
+
* Loads a part of a system into the tree of life
|
|
344
|
+
* @param partKey - the key of the part to load
|
|
345
|
+
*/
|
|
346
|
+
loadPart(partKey: PartKey): void;
|
|
347
|
+
/**
|
|
348
|
+
* Unloads the tree of life system and all its parts
|
|
349
|
+
*/
|
|
350
|
+
unloadSystem(): void;
|
|
351
|
+
listAvailableParts(): string[];
|
|
352
|
+
listLoadedParts(): PartKey[];
|
|
353
|
+
listAvailableBridges(): Bridge[];
|
|
354
|
+
listBridgedParts(): string[];
|
|
355
|
+
/**
|
|
356
|
+
* Adds a node to the tree
|
|
357
|
+
* @param node - the node to add
|
|
358
|
+
* @returns the id of the added node
|
|
359
|
+
*/
|
|
360
|
+
addNode<T extends NodeType>(node: Node<T>): string;
|
|
361
|
+
getNode(id: NodeId): Node<NodeType> | undefined;
|
|
362
|
+
/**
|
|
363
|
+
* Links two nodes bi-directionally
|
|
364
|
+
* @param firstNode - the id of the first node
|
|
365
|
+
* @param secondNode - the id of the second node
|
|
366
|
+
*/
|
|
367
|
+
link(firstNode: NodeId, secondNode: NodeId): void;
|
|
368
|
+
/**
|
|
369
|
+
* Gets the current node and all its direct relations, or, when filtered by node type, only the direct relations of that type.
|
|
370
|
+
* @param id - the id of the node to get the relations for
|
|
371
|
+
* @param nodeType - the node type to filter the relations by
|
|
372
|
+
* @returns the current node and all its direct relations
|
|
373
|
+
*/
|
|
374
|
+
related(id: NodeId, nodeType?: NodeType): Node<NodeType>[];
|
|
375
|
+
/**
|
|
376
|
+
* Gets all the types of nodes that are directly connected to the given node
|
|
377
|
+
* @param id - the id of the node to get related types for
|
|
378
|
+
* @returns array of node types that are directly connected
|
|
379
|
+
*/
|
|
380
|
+
relatedTypes(id: NodeId): NodeType[];
|
|
381
|
+
/**
|
|
382
|
+
* BFS up to depth k, optional type filter for the result set
|
|
383
|
+
* @param id - the id of the node to get the extended relations for
|
|
384
|
+
* @param depth - the depth of the walk
|
|
385
|
+
* @param type - the type of the nodes to filter the result set by
|
|
386
|
+
* @returns the current node and all its extended relations
|
|
387
|
+
*/
|
|
388
|
+
walk(id: NodeId, depth?: number, type?: NodeType): Node<NodeType>[];
|
|
389
|
+
/**
|
|
390
|
+
* Removes a node and all its relations from the graph, cleaning up adjacency sets.
|
|
391
|
+
* @param id - the id of the node to remove
|
|
392
|
+
*/
|
|
393
|
+
removeNode(id: NodeId): void;
|
|
394
|
+
/**
|
|
395
|
+
* A helper to create two-way correspondences between nodes.
|
|
396
|
+
* @param source - the source node
|
|
397
|
+
* @param target - the target node
|
|
398
|
+
* @param targetType - the type of the target node
|
|
399
|
+
* @returns the target node
|
|
400
|
+
*/
|
|
401
|
+
correspond<T extends NodeType>(source: NodeId, target: NodeId, targetType: T, data?: NodeData<T>): string;
|
|
402
|
+
/**
|
|
403
|
+
* Adds a sphere (sephirah) to the tree with its Hebrew and English names
|
|
404
|
+
* @param sphere - the identifier for the sphere
|
|
405
|
+
* @param data - the sphere's Hebrew and English names
|
|
406
|
+
* @returns the sphere's id
|
|
407
|
+
*/
|
|
408
|
+
addSphere(sphere: string, data: NodeData<"sphere">, relatedNumber: number): string;
|
|
409
|
+
/**
|
|
410
|
+
* Adds a path between two spheres with its associated number
|
|
411
|
+
* @param leftSphere - the id of the first sphere
|
|
412
|
+
* @param rightSphere - the id of the second sphere
|
|
413
|
+
* @param relatedNumber - the number associated with this path
|
|
414
|
+
* @returns the path's id
|
|
415
|
+
*/
|
|
416
|
+
addPath(leftSphere: NodeId, rightSphere: NodeId, relatedNumber: number, data?: Partial<NodeData<"path">>): string;
|
|
417
|
+
addLetters(path: NodeId, letters: {
|
|
418
|
+
letter: string;
|
|
419
|
+
type: NodeType;
|
|
420
|
+
data?: NodeData<NodeType>;
|
|
421
|
+
}[]): void;
|
|
422
|
+
addWorld(world: string, data: NodeData<"world">): string;
|
|
423
|
+
addSphereColor(sphere: NodeId, color: string, data: NodeData<"color">, world?: string): string;
|
|
424
|
+
addPathColor(path: NodeId, color: string, data: NodeData<"color">): string;
|
|
425
|
+
addMusicalNote(sphere: NodeId, note: string, data: NodeData<"musicalNote">): string;
|
|
426
|
+
addWesternAstrologyPlanet(sphereOrPath: NodeId, planet: string, data?: NodeData<"planet">): string;
|
|
427
|
+
addWesternAstrologySign(path: NodeId, sign: string, data: NodeData<"westernZodiacSign">, relatedNumber: number): string;
|
|
428
|
+
addWesternElement(path: NodeId, element: string, data?: NodeData<"westernElement">): string;
|
|
429
|
+
addTarotArkAnnu(sphereOrPath: NodeId, tarotArkAnnu: string, data: NodeData<"tarotArkAnnu">, relatedNumber: number, suit?: string): string;
|
|
430
|
+
addTarotSuit(suit: string, relatedElement: Exclude<typeof WESTERN_ELEMENTS[keyof typeof WESTERN_ELEMENTS], "Ether">): string;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Loads the Hermetic Qabalah system into the tree of life
|
|
435
|
+
*/
|
|
436
|
+
declare function loadHermeticQabalah(tree: TreeOfLife): TreeOfLife;
|
|
437
|
+
declare function loadColors(tree: TreeOfLife): TreeOfLife;
|
|
438
|
+
declare function loadMusicalNotes(tree: TreeOfLife): TreeOfLife;
|
|
439
|
+
declare const LOADERS$2: {
|
|
440
|
+
base: typeof loadHermeticQabalah;
|
|
441
|
+
colors: typeof loadColors;
|
|
442
|
+
music: typeof loadMusicalNotes;
|
|
443
|
+
westernAstrology: Loader;
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
declare const LOADERS$1: {
|
|
447
|
+
base: Loader;
|
|
448
|
+
colors: Loader;
|
|
449
|
+
music: Loader;
|
|
450
|
+
westernAstrology: Loader;
|
|
451
|
+
tarot: Loader;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Loads the Lurianic Kabbalah system into the tree of life
|
|
456
|
+
*/
|
|
457
|
+
declare function loadLurianicKabbalah(tree: TreeOfLife): TreeOfLife;
|
|
458
|
+
declare const LOADERS: {
|
|
459
|
+
base: typeof loadLurianicKabbalah;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
type System = {
|
|
463
|
+
SYSTEM: "kaabalah" | "hermetic-qabalah" | "lurianic-kabbalah";
|
|
464
|
+
LOADERS: Record<string, Loader>;
|
|
465
|
+
UNLOADERS: Record<string, Unloader>;
|
|
466
|
+
BRIDGES: Bridge[];
|
|
467
|
+
};
|
|
468
|
+
declare const SYSTEMS: System[];
|
|
469
|
+
type SystemKey = typeof SYSTEMS[number]['SYSTEM'];
|
|
470
|
+
type PartKey = keyof typeof LOADERS$1 | keyof typeof LOADERS$2 | keyof typeof LOADERS;
|
|
471
|
+
type Loader = (t: TreeOfLife) => TreeOfLife;
|
|
472
|
+
type Unloader = (t: TreeOfLife) => void;
|
|
473
|
+
type Bridge = {
|
|
474
|
+
id: string;
|
|
475
|
+
needs: PartKey[];
|
|
476
|
+
run: (t: TreeOfLife) => void;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
export { type Bridge as B, type ColorData as C, FOUR_WORLDS as F, type HebrewLetterData as H, LURIANIC_PATHS as L, type MusicalNoteData as M, type NodeId as N, type PathData as P, type SphereData as S, type TarotArkAnnuData as T, type Unloader as U, type WorldData as W, type NodeType as a, type NodeData as b, type Node as c, type WesternZodiacSignData as d, SPHERES as e, SPHERE_DATA as f, PLANETS as g, WESTERN_ZODIAC_SIGNS as h, WESTERN_ELEMENTS as i, WESTERN_ZODIAC_SIGNS_DATA as j, MELKITZEDEKI_PATHS as k, LATIN_LETTERS as l, HEBREW_LETTERS as m, HEBREW_LETTERS_DATA as n, TAROT_SUITS as o, TAROT_ARKANNUS as p, TAROT_ARKANNUS_DATA as q, type System as r, SYSTEMS as s, type SystemKey as t, type PartKey as u, type Loader as v, TreeOfLife as w };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kaabalah",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "The de-facto library for any esoteric calculations and tooling",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
"test:watch": "vitest watch",
|
|
55
55
|
"test:coverage": "vitest run --coverage",
|
|
56
56
|
"test:ui": "vitest --ui",
|
|
57
|
-
"prepare-browser-test": "cp wasm/build/swisseph.wasm examples/ && cp -r ephe examples/"
|
|
57
|
+
"prepare-browser-test": "cp wasm/build/swisseph.wasm examples/ && cp -r ephe examples/",
|
|
58
|
+
"prepublishOnly": "npm run build"
|
|
58
59
|
},
|
|
59
60
|
"keywords": [
|
|
60
61
|
"numerology",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kaabalah-related functions
|
|
3
|
-
*/
|
|
4
|
-
declare const calculateGematria: (word: string) => {
|
|
5
|
-
vowels: {
|
|
6
|
-
originalSum: number;
|
|
7
|
-
reductionSteps: number[];
|
|
8
|
-
finalValue: number;
|
|
9
|
-
};
|
|
10
|
-
consonants: {
|
|
11
|
-
originalSum: number;
|
|
12
|
-
reductionSteps: number[];
|
|
13
|
-
finalValue: number;
|
|
14
|
-
};
|
|
15
|
-
synthesis: {
|
|
16
|
-
originalSum: number;
|
|
17
|
-
reductionSteps: number[];
|
|
18
|
-
finalValue: number;
|
|
19
|
-
};
|
|
20
|
-
missingGematriaNumbers: {
|
|
21
|
-
number: number;
|
|
22
|
-
letters: string[];
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { calculateGematria };
|
package/dist/kaabalah/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kaabalah-related functions
|
|
3
|
-
*/
|
|
4
|
-
declare const calculateGematria: (word: string) => {
|
|
5
|
-
vowels: {
|
|
6
|
-
originalSum: number;
|
|
7
|
-
reductionSteps: number[];
|
|
8
|
-
finalValue: number;
|
|
9
|
-
};
|
|
10
|
-
consonants: {
|
|
11
|
-
originalSum: number;
|
|
12
|
-
reductionSteps: number[];
|
|
13
|
-
finalValue: number;
|
|
14
|
-
};
|
|
15
|
-
synthesis: {
|
|
16
|
-
originalSum: number;
|
|
17
|
-
reductionSteps: number[];
|
|
18
|
-
finalValue: number;
|
|
19
|
-
};
|
|
20
|
-
missingGematriaNumbers: {
|
|
21
|
-
number: number;
|
|
22
|
-
letters: string[];
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { calculateGematria };
|