lifeastroapi 0.8.0 → 0.9.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/README.md +83 -4
- package/dist/chunk-ZSMQRMHR.js +7939 -0
- package/dist/chunk-ZSMQRMHR.js.map +1 -0
- package/dist/index.cjs +42 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +141 -22
- package/dist/index.d.ts +141 -22
- package/dist/index.js +39 -39
- package/dist/index.js.map +1 -1
- package/dist/pdf/index.cjs +13 -0
- package/dist/pdf/index.cjs.map +1 -1
- package/dist/pdf/index.d.cts +3 -1119
- package/dist/pdf/index.d.ts +3 -1119
- package/dist/pdf/index.js +26 -7901
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf-html.cjs +7877 -0
- package/dist/pdf-html.cjs.map +1 -0
- package/dist/pdf-html.d.cts +1163 -0
- package/dist/pdf-html.d.ts +1163 -0
- package/dist/pdf-html.js +37 -0
- package/dist/pdf-html.js.map +1 -0
- package/package.json +11 -1
package/dist/index.cjs
CHANGED
|
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
23
|
AuthenticationError: () => AuthenticationError,
|
|
24
24
|
BadRequestError: () => BadRequestError,
|
|
25
25
|
LifeAstro: () => LifeAstro,
|
|
@@ -31,9 +31,9 @@ __export(index_exports, {
|
|
|
31
31
|
RateLimitError: () => RateLimitError,
|
|
32
32
|
ServerError: () => ServerError,
|
|
33
33
|
VERSION: () => VERSION,
|
|
34
|
-
default: () =>
|
|
34
|
+
default: () => src_default
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
37
|
|
|
38
38
|
// src/errors.ts
|
|
39
39
|
var LifeAstroError = class extends Error {
|
|
@@ -179,7 +179,7 @@ async function performRequest(config, path, query, opts = {}) {
|
|
|
179
179
|
});
|
|
180
180
|
text = await res.text();
|
|
181
181
|
} catch (cause) {
|
|
182
|
-
const aborted = cause?.name === "AbortError";
|
|
182
|
+
const aborted = controller.signal.aborted || cause?.name === "AbortError";
|
|
183
183
|
if (aborted && opts.signal?.aborted) {
|
|
184
184
|
throw new LifeAstroConnectionError("Request aborted by caller", { cause, code: "aborted" });
|
|
185
185
|
}
|
|
@@ -443,19 +443,19 @@ var Calendar = class {
|
|
|
443
443
|
}
|
|
444
444
|
/** Find the Adhik Maas (intercalary/leap month) in a given year — the extra lunar month inserted to sync the Hindu lunar calendar with the solar year. */
|
|
445
445
|
adhikMaas(input, opts) {
|
|
446
|
-
return this._c.request("/v1/calendar/adhik-maas", applyExtras(qNone(input), input, [["year", "year"], ["tz", "tz"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
446
|
+
return this._c.request("/v1/calendar/adhik-maas", applyExtras(qNone(input), input, [["year", "year"], ["tz", "tz"], ["ayanamsa", "ayanamsa"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
447
447
|
}
|
|
448
448
|
/** Get the Hindu calendar details for a Gregorian month — maps each day to its Hindu month (Chaitra/Vaishakha/…), paksha (Shukla/Krishna), tithi, and Vikram Samvat year. */
|
|
449
449
|
month(input, opts) {
|
|
450
|
-
return this._c.request("/v1/calendar/month", applyExtras(qNone(input), input, [["date", "date"], ["tz", "tz"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
450
|
+
return this._c.request("/v1/calendar/month", applyExtras(qNone(input), input, [["date", "date"], ["tz", "tz"], ["ayanamsa", "ayanamsa"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
451
451
|
}
|
|
452
452
|
/** Get the current Hindu Ritu (season) for a date — one of 6 seasons: Vasanta (spring), Grishma (summer), Varsha (monsoon), Sharad (autumn), Hemanta (pre-winter), Shishira (winter). */
|
|
453
453
|
ritu(input, opts) {
|
|
454
|
-
return this._c.request("/v1/calendar/ritu", applyExtras(qNone(input), input, [["date", "date"], ["tz", "tz"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
454
|
+
return this._c.request("/v1/calendar/ritu", applyExtras(qNone(input), input, [["date", "date"], ["tz", "tz"], ["ayanamsa", "ayanamsa"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
455
455
|
}
|
|
456
456
|
/** Get the Samvatsara (Jupiter year) name for a given year — the 60-year Jupiter cycle used in Hindu astrology (Prabhava, Vibhava, Shukla, … Akshaya). */
|
|
457
457
|
samvatsara(input, opts) {
|
|
458
|
-
return this._c.request("/v1/calendar/samvatsara", applyExtras(qNone(input), input, [["date", "date"], ["tz", "tz"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
458
|
+
return this._c.request("/v1/calendar/samvatsara", applyExtras(qNone(input), input, [["date", "date"], ["tz", "tz"], ["ayanamsa", "ayanamsa"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
459
459
|
}
|
|
460
460
|
/** Equinoxes and solstices of a year — exact moment (UTC + local), the ayana that begins (tropical Dakshinayana at the June solstice, tropical Uttarayana at the December solstice; the panchang's Uttarayana is Makara Sankranti), and with lat/lon the sunrise, sunset and day length at that place. */
|
|
461
461
|
solstices(input, opts) {
|
|
@@ -587,9 +587,9 @@ var Dasha = class {
|
|
|
587
587
|
charAntar(input, opts) {
|
|
588
588
|
return this._c.request(buildPath("/v1/dasha/char/{md}/{ad}", input, ["md", "ad"]), applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
589
589
|
}
|
|
590
|
-
/** Currently running Char Dasha (Jaimini) period stack — active mahadasha and antardasha signs with date windows. */
|
|
590
|
+
/** Currently running Char Dasha (Jaimini) period stack — active mahadasha and antardasha signs with date windows (optionally at a custom moment `at`, UTC). */
|
|
591
591
|
charCurrent(input, opts) {
|
|
592
|
-
return this._c.request("/v1/dasha/char/current", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
592
|
+
return this._c.request("/v1/dasha/char/current", applyExtras(qBirth(input), input, [["at", "at"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
593
593
|
}
|
|
594
594
|
/** Antardashas inside one Char Dasha mahadasha sign (md = sign name, e.g. 'leo'). */
|
|
595
595
|
charMaha(input, opts) {
|
|
@@ -730,9 +730,9 @@ var Lalkitab = class {
|
|
|
730
730
|
dasha(input, opts) {
|
|
731
731
|
return this._c.request("/v1/lalkitab/dasha", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
732
732
|
}
|
|
733
|
-
/** Currently active Lal Kitab dasha planet and period window. */
|
|
733
|
+
/** Currently active Lal Kitab dasha planet and period window (optionally at a custom moment `at`, UTC). */
|
|
734
734
|
dashaCurrent(input, opts) {
|
|
735
|
-
return this._c.request("/v1/lalkitab/dasha/current", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
735
|
+
return this._c.request("/v1/lalkitab/dasha/current", applyExtras(qBirth(input), input, [["at", "at"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
738
|
|
|
@@ -847,9 +847,9 @@ var Muhurta = class {
|
|
|
847
847
|
constructor(_c) {
|
|
848
848
|
this._c = _c;
|
|
849
849
|
}
|
|
850
|
-
/** Best-scoring
|
|
850
|
+
/** Best-scoring muhurta windows in a date range. `purpose` is `general` (default), `vivah`, `graha_pravesh` or `naamkaran`; `topN` (1-20, default 5) sets how many windows come back; `birthDate` (YYYY-MM-DD) weights the windows by the person's tara bala and chandra bala. Each `factors[]` item has a stable English `id` (e.g. `Tithi`, `RahuKaal`); `name` and `value` follow `lang`. */
|
|
851
851
|
bestTime(input, opts) {
|
|
852
|
-
return this._c.request("/v1/muhurta/best-time", applyExtras(qMuhurta(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
852
|
+
return this._c.request("/v1/muhurta/best-time", applyExtras(qMuhurta(input), input, [["purpose", "purpose"], ["topN", "top_n"], ["birthDate", "birth_date"], ["ayanamsa", "ayanamsa"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
853
853
|
}
|
|
854
854
|
/** Compute Chandra Bala — the Moon's strength relative to a person's natal Moon sign on a given date. */
|
|
855
855
|
chandraBala(input, opts) {
|
|
@@ -1229,11 +1229,11 @@ var PlanetMoments = class {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
/** Find the combustion window for a planet — the date range when the planet is too close to the Sun (within classical combust limits) and loses strength. */
|
|
1231
1231
|
combustionWindow(input, opts) {
|
|
1232
|
-
return this._c.request("/v1/planet-moments/combustion-window", applyExtras(qNone(input), input, [["planet", "planet"], ["date", "date"], ["time", "time"], ["tz", "tz"], ["maxDays", "max_days"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1232
|
+
return this._c.request("/v1/planet-moments/combustion-window", applyExtras(qNone(input), input, [["planet", "planet"], ["date", "date"], ["time", "time"], ["tz", "tz"], ["maxDays", "max_days"], ["ayanamsa", "ayanamsa"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1233
1233
|
}
|
|
1234
1234
|
/** A planet's sign ingresses (sankranti) in a date range. */
|
|
1235
1235
|
ingress(input, opts) {
|
|
1236
|
-
return this._c.request("/v1/planet-moments/ingress", applyExtras(qNone(input), input, [["planet", "planet"], ["date", "date"], ["time", "time"], ["tz", "tz"], ["maxDays", "max_days"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1236
|
+
return this._c.request("/v1/planet-moments/ingress", applyExtras(qNone(input), input, [["planet", "planet"], ["date", "date"], ["time", "time"], ["tz", "tz"], ["maxDays", "max_days"], ["ayanamsa", "ayanamsa"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1237
1237
|
}
|
|
1238
1238
|
/** A planet's retrograde windows (station retro -> station direct) in a date range. */
|
|
1239
1239
|
retrogradeWindow(input, opts) {
|
|
@@ -1340,9 +1340,9 @@ var Reports = class {
|
|
|
1340
1340
|
horoscopeMonthly(input, opts) {
|
|
1341
1341
|
return this._c.request("/v1/reports/horoscope/monthly", applyExtras(qRashi(input), input, [["month", "month"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1342
1342
|
}
|
|
1343
|
-
/** Generate a detailed weekly horoscope report for a Moon sign — structured report covering the week's planetary movement, day-by-day highlights, and focus areas. */
|
|
1343
|
+
/** Generate a detailed weekly horoscope report for a Moon sign — structured report covering the week's planetary movement, day-by-day highlights, and focus areas. `week` is an ISO week such as `2026-W47` (default: the current week). */
|
|
1344
1344
|
horoscopeWeekly(input, opts) {
|
|
1345
|
-
return this._c.request("/v1/reports/horoscope/weekly", applyExtras(qRashi(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1345
|
+
return this._c.request("/v1/reports/horoscope/weekly", applyExtras(qRashi(input), input, [["week", "week"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1346
1346
|
}
|
|
1347
1347
|
/** Generate the Brihad (comprehensive) Kundli report — the most detailed birth chart report covering chart analysis, all divisional charts (D1–D60), planetary strengths (Shadbala), ashtakavarga, all dashas, yogas, doshas, remedies, and lifetime predictions. */
|
|
1348
1348
|
kundliBrihad(input, opts) {
|
|
@@ -1516,19 +1516,19 @@ var WesternComposite = class {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
/** Get aspects in the composite (midpoint) chart for two people — shows how the relationship's combined energy is configured. */
|
|
1518
1518
|
aspects(input, opts) {
|
|
1519
|
-
return this._c.request("/v1/western/composite/aspects", qTwoPerson(input), opts);
|
|
1519
|
+
return this._c.request("/v1/western/composite/aspects", applyExtras(qTwoPerson(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"], ["compositeMethod", "composite_method"], ["houseSystem", "house_system"]]), opts);
|
|
1520
1520
|
}
|
|
1521
1521
|
/** Composite (midpoint) relationship chart. */
|
|
1522
1522
|
chart(input, opts) {
|
|
1523
|
-
return this._c.request("/v1/western/composite/chart", qTwoPerson(input), opts);
|
|
1523
|
+
return this._c.request("/v1/western/composite/chart", applyExtras(qTwoPerson(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"], ["rulership", "rulership"], ["compositeMethod", "composite_method"], ["houseSystem", "house_system"]]), opts);
|
|
1524
1524
|
}
|
|
1525
1525
|
/** Compute the house cusps of the Composite chart for two people — the midpoint chart combining both natal charts to represent the relationship itself. */
|
|
1526
1526
|
houses(input, opts) {
|
|
1527
|
-
return this._c.request("/v1/western/composite/houses", qTwoPerson(input), opts);
|
|
1527
|
+
return this._c.request("/v1/western/composite/houses", applyExtras(qTwoPerson(input), input, [["rulership", "rulership"], ["compositeMethod", "composite_method"], ["houseSystem", "house_system"]]), opts);
|
|
1528
1528
|
}
|
|
1529
1529
|
/** Compute the planet placements in the Composite chart for two people — midpoint positions for all planets in the relationship chart. */
|
|
1530
1530
|
planets(input, opts) {
|
|
1531
|
-
return this._c.request("/v1/western/composite/planets", qTwoPerson(input), opts);
|
|
1531
|
+
return this._c.request("/v1/western/composite/planets", applyExtras(qTwoPerson(input), input, [["compositeMethod", "composite_method"], ["houseSystem", "house_system"]]), opts);
|
|
1532
1532
|
}
|
|
1533
1533
|
};
|
|
1534
1534
|
var WesternDavison = class {
|
|
@@ -1537,19 +1537,19 @@ var WesternDavison = class {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
/** Get aspects in the Davison relationship chart. */
|
|
1539
1539
|
aspects(input, opts) {
|
|
1540
|
-
return this._c.request("/v1/western/davison/aspects", qTwoPerson(input), opts);
|
|
1540
|
+
return this._c.request("/v1/western/davison/aspects", applyExtras(qTwoPerson(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"], ["houseSystem", "house_system"]]), opts);
|
|
1541
1541
|
}
|
|
1542
1542
|
/** Compute the Davison relationship chart — an alternative to the composite chart that uses the midpoint of the two birth times rather than midpoint longitudes. */
|
|
1543
1543
|
chart(input, opts) {
|
|
1544
|
-
return this._c.request("/v1/western/davison/chart", qTwoPerson(input), opts);
|
|
1544
|
+
return this._c.request("/v1/western/davison/chart", applyExtras(qTwoPerson(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"], ["rulership", "rulership"], ["houseSystem", "house_system"]]), opts);
|
|
1545
1545
|
}
|
|
1546
1546
|
/** Compute the house cusps of the Davison Relationship chart — the chart for the midpoint in time and space between two people's births (an actual chart for a real moment, unlike the composite). */
|
|
1547
1547
|
houses(input, opts) {
|
|
1548
|
-
return this._c.request("/v1/western/davison/houses", qTwoPerson(input), opts);
|
|
1548
|
+
return this._c.request("/v1/western/davison/houses", applyExtras(qTwoPerson(input), input, [["rulership", "rulership"], ["houseSystem", "house_system"]]), opts);
|
|
1549
1549
|
}
|
|
1550
1550
|
/** Compute the planet placements in the Davison Relationship chart — all planet positions in the Davison chart's tropical zodiac. */
|
|
1551
1551
|
planets(input, opts) {
|
|
1552
|
-
return this._c.request("/v1/western/davison/planets", qTwoPerson(input), opts);
|
|
1552
|
+
return this._c.request("/v1/western/davison/planets", applyExtras(qTwoPerson(input), input, [["houseSystem", "house_system"]]), opts);
|
|
1553
1553
|
}
|
|
1554
1554
|
};
|
|
1555
1555
|
var WesternDignities = class {
|
|
@@ -1693,7 +1693,7 @@ var WesternNatal = class {
|
|
|
1693
1693
|
}
|
|
1694
1694
|
/** Compute the Western (tropical) natal Ascendant — rising sign, degree, and Midheaven in the tropical zodiac. */
|
|
1695
1695
|
ascendant(input, opts) {
|
|
1696
|
-
return this._c.request("/v1/western/natal/ascendant", qWesternNatal(input), opts);
|
|
1696
|
+
return this._c.request("/v1/western/natal/ascendant", applyExtras(qWesternNatal(input), input, [["rulership", "rulership"]]), opts);
|
|
1697
1697
|
}
|
|
1698
1698
|
/** Detect classical multi-planet aspect patterns in a natal chart — Grand Trine, T-Square, Grand Cross, Yod (Finger of God), Kite, Mystic Rectangle, Stellium, Grand Sextile. */
|
|
1699
1699
|
aspectPatterns(input, opts) {
|
|
@@ -1701,7 +1701,7 @@ var WesternNatal = class {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
/** All natal aspects with orbs and partile flags. */
|
|
1703
1703
|
aspects(input, opts) {
|
|
1704
|
-
return this._c.request("/v1/western/natal/aspects", qWesternNatal(input), opts);
|
|
1704
|
+
return this._c.request("/v1/western/natal/aspects", applyExtras(qWesternNatal(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"]]), opts);
|
|
1705
1705
|
}
|
|
1706
1706
|
/** A single asteroid by MPC number. */
|
|
1707
1707
|
asteroid(input, opts) {
|
|
@@ -1717,7 +1717,7 @@ var WesternNatal = class {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
/** Western (tropical) natal chart: planets, ascendant, MC, houses and aspects. */
|
|
1719
1719
|
chart(input, opts) {
|
|
1720
|
-
return this._c.request("/v1/western/natal/chart", qWesternNatal(input), opts);
|
|
1720
|
+
return this._c.request("/v1/western/natal/chart", applyExtras(qWesternNatal(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"], ["rulership", "rulership"]]), opts);
|
|
1721
1721
|
}
|
|
1722
1722
|
/** Classify the natal chart into one of the seven Jones planetary distribution patterns: Splash, Bundle, Locomotive, Bowl, Bucket, See-Saw, or Splay. */
|
|
1723
1723
|
chartShape(input, opts) {
|
|
@@ -1749,7 +1749,7 @@ var WesternNatal = class {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
/** Western tropical house cusps + Ascendant and MC. */
|
|
1751
1751
|
houses(input, opts) {
|
|
1752
|
-
return this._c.request("/v1/western/natal/houses", qWesternNatal(input), opts);
|
|
1752
|
+
return this._c.request("/v1/western/natal/houses", applyExtras(qWesternNatal(input), input, [["rulership", "rulership"]]), opts);
|
|
1753
1753
|
}
|
|
1754
1754
|
/** Get all Lilith positions: Mean Black Moon Lilith, True Black Moon Lilith, Osculating (Interpolated) Lilith, and asteroid 1181 Lilith. */
|
|
1755
1755
|
lilithSet(input, opts) {
|
|
@@ -1765,7 +1765,7 @@ var WesternNatal = class {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
/** Compute the Midheaven (Medium Coeli, MC) and its tropical sign for a Western birth chart — the career and public reputation point, along with its aspects to natal planets. */
|
|
1767
1767
|
mc(input, opts) {
|
|
1768
|
-
return this._c.request("/v1/western/natal/mc", qWesternNatal(input), opts);
|
|
1768
|
+
return this._c.request("/v1/western/natal/mc", applyExtras(qWesternNatal(input), input, [["rulership", "rulership"]]), opts);
|
|
1769
1769
|
}
|
|
1770
1770
|
/** All planet-pair midpoints and activations. */
|
|
1771
1771
|
midpoints(input, opts) {
|
|
@@ -1844,7 +1844,7 @@ var WesternProgressions = class {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
/** Get secondary progressed planet aspects to natal planets — the slow symbolic evolution of the birth chart over time. */
|
|
1846
1846
|
aspectsToNatal(input, opts) {
|
|
1847
|
-
return this._c.request("/v1/western/progressions/aspects-to-natal", applyExtras(qWesternNatal(input), input, [["ageInYears", "age_in_years"]]), opts);
|
|
1847
|
+
return this._c.request("/v1/western/progressions/aspects-to-natal", applyExtras(qWesternNatal(input), input, [["ageInYears", "age_in_years"], ["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"]]), opts);
|
|
1848
1848
|
}
|
|
1849
1849
|
/** Get the progressed Moon phase — shows what stage of the 29-year progressed lunation cycle you are in (new moon, crescent, first quarter, gibbous, full moon, disseminating, last quarter, balsamic). */
|
|
1850
1850
|
lunation(input, opts) {
|
|
@@ -1861,7 +1861,7 @@ var WesternReturns = class {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
/** Compute the Lunar Return chart — the chart for the exact moment the transiting Moon returns to its natal degree (~every 27.3 days). */
|
|
1863
1863
|
lunar(input, opts) {
|
|
1864
|
-
return this._c.request("/v1/western/returns/lunar", applyExtras(qWesternNatal(input), input, [["from", "from"]]), opts);
|
|
1864
|
+
return this._c.request("/v1/western/returns/lunar", applyExtras(qWesternNatal(input), input, [["from", "from"], ["rulership", "rulership"], ["relocateLat", "relocate_lat"], ["relocateLon", "relocate_lon"]]), opts);
|
|
1865
1865
|
}
|
|
1866
1866
|
/** Get the aspects formed between planets in the lunar return chart. */
|
|
1867
1867
|
lunarAspects(input, opts) {
|
|
@@ -1869,7 +1869,7 @@ var WesternReturns = class {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
/** Solar Return chart for a year. */
|
|
1871
1871
|
solar(input, opts) {
|
|
1872
|
-
return this._c.request("/v1/western/returns/solar", applyExtras(qWesternNatal(input), input, [["returnYear", "return_year"]]), opts);
|
|
1872
|
+
return this._c.request("/v1/western/returns/solar", applyExtras(qWesternNatal(input), input, [["returnYear", "return_year"], ["rulership", "rulership"], ["relocateLat", "relocate_lat"], ["relocateLon", "relocate_lon"]]), opts);
|
|
1873
1873
|
}
|
|
1874
1874
|
/** Get the aspects formed between planets in the solar return chart — shows which planets are strongly configured in the return year. */
|
|
1875
1875
|
solarAspects(input, opts) {
|
|
@@ -1886,7 +1886,7 @@ var WesternSolarArc = class {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
/** Get solar arc directed planet aspects to natal planets — a predictive technique where all planets advance at the rate of the Sun (~1°/year). */
|
|
1888
1888
|
aspectsToNatal(input, opts) {
|
|
1889
|
-
return this._c.request("/v1/western/solar-arc/aspects-to-natal", applyExtras(qWesternNatal(input), input, [["ageInYears", "age_in_years"]]), opts);
|
|
1889
|
+
return this._c.request("/v1/western/solar-arc/aspects-to-natal", applyExtras(qWesternNatal(input), input, [["ageInYears", "age_in_years"], ["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"]]), opts);
|
|
1890
1890
|
}
|
|
1891
1891
|
/** Solar Arc directed planetary positions at an age. */
|
|
1892
1892
|
planets(input, opts) {
|
|
@@ -1899,15 +1899,15 @@ var WesternSynastry = class {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
/** Cross-chart synastry aspects between two charts. */
|
|
1901
1901
|
aspects(input, opts) {
|
|
1902
|
-
return this._c.request("/v1/western/synastry/aspects", qTwoPerson(input), opts);
|
|
1902
|
+
return this._c.request("/v1/western/synastry/aspects", applyExtras(qTwoPerson(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"], ["houseSystem", "house_system"]]), opts);
|
|
1903
1903
|
}
|
|
1904
1904
|
/** Get the full N×M synastry aspect grid between two natal charts — every planet in chart A aspecting every planet in chart B. */
|
|
1905
1905
|
grid(input, opts) {
|
|
1906
|
-
return this._c.request("/v1/western/synastry/grid", qTwoPerson(input), opts);
|
|
1906
|
+
return this._c.request("/v1/western/synastry/grid", applyExtras(qTwoPerson(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"], ["houseSystem", "house_system"]]), opts);
|
|
1907
1907
|
}
|
|
1908
1908
|
/** Synastry compatibility score and breakdown. */
|
|
1909
1909
|
score(input, opts) {
|
|
1910
|
-
return this._c.request("/v1/western/synastry/score", qTwoPerson(input), opts);
|
|
1910
|
+
return this._c.request("/v1/western/synastry/score", applyExtras(qTwoPerson(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"], ["houseSystem", "house_system"]]), opts);
|
|
1911
1911
|
}
|
|
1912
1912
|
};
|
|
1913
1913
|
var WesternTransits = class {
|
|
@@ -1928,7 +1928,7 @@ var WesternTransits = class {
|
|
|
1928
1928
|
}
|
|
1929
1929
|
/** All current transiting aspects to natal planets. */
|
|
1930
1930
|
toNatal(input, opts) {
|
|
1931
|
-
return this._c.request("/v1/western/transits/to-natal", qNatalTransit(input), opts);
|
|
1931
|
+
return this._c.request("/v1/western/transits/to-natal", applyExtras(qNatalTransit(input), input, [["orbConjunction", "orb_conjunction"], ["orbOpposition", "orb_opposition"], ["orbTrine", "orb_trine"], ["orbSquare", "orb_square"], ["orbSextile", "orb_sextile"]]), opts);
|
|
1932
1932
|
}
|
|
1933
1933
|
};
|
|
1934
1934
|
var WesternZodiacalReleasing = class {
|
|
@@ -2012,7 +2012,7 @@ var Resources = class {
|
|
|
2012
2012
|
};
|
|
2013
2013
|
|
|
2014
2014
|
// src/client.ts
|
|
2015
|
-
var VERSION = "0.
|
|
2015
|
+
var VERSION = "0.9.1";
|
|
2016
2016
|
var DEFAULT_BASE_URL = "https://api.lifeastroapi.com";
|
|
2017
2017
|
function resolveConfig(options) {
|
|
2018
2018
|
const opts = typeof options === "string" ? { apiKey: options } : options ?? {};
|
|
@@ -2070,7 +2070,7 @@ var LifeAstro = class extends Resources {
|
|
|
2070
2070
|
};
|
|
2071
2071
|
|
|
2072
2072
|
// src/index.ts
|
|
2073
|
-
var
|
|
2073
|
+
var src_default = LifeAstro;
|
|
2074
2074
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2075
2075
|
0 && (module.exports = {
|
|
2076
2076
|
AuthenticationError,
|