lifeastroapi 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -11
- package/dist/index.cjs +75 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +108 -38
- package/dist/index.d.ts +108 -38
- package/dist/index.js +75 -15
- package/dist/index.js.map +1 -1
- package/dist/pdf/index.cjs +1810 -33
- package/dist/pdf/index.cjs.map +1 -1
- package/dist/pdf/index.d.cts +10 -0
- package/dist/pdf/index.d.ts +10 -0
- package/dist/pdf/index.js +1810 -33
- package/dist/pdf/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# lifeastroapi
|
|
2
2
|
|
|
3
|
-
Official **Node.js / TypeScript SDK** for [LifeAstroAPI](https://lifeastroapi.com) — a
|
|
4
|
-
|
|
5
|
-
pay-per-call billing.
|
|
3
|
+
Official **Node.js / TypeScript SDK** for [LifeAstroAPI](https://lifeastroapi.com) — a REST
|
|
4
|
+
[astrology API](https://lifeastroapi.com/apis/) for Vedic astrology, panchang, Hindu festivals,
|
|
5
|
+
kundli, muhurat and Western charts, with location-aware calculations and pay-per-call billing.
|
|
6
|
+
Free tier: 1,500 credits a month, no card — [get a key](https://lifeastroapi.com/signup/).
|
|
6
7
|
|
|
7
|
-
- ✅ **All
|
|
8
|
+
- ✅ **All 321 endpoints**, fully typed, across 23 namespaces — panchang, charts, dashas,
|
|
8
9
|
matchmaking, transits, horoscopes, numerology, tarot, muhurta, reports, narratives,
|
|
9
10
|
and a complete Western (tropical) module.
|
|
10
11
|
- ✅ **Zero runtime dependencies** — uses the platform `fetch` (Node 18+, Bun, Deno,
|
|
@@ -57,6 +58,10 @@ const match = await client.milan.ashtakootaTotal({
|
|
|
57
58
|
|
|
58
59
|
> CommonJS works too: `const { LifeAstro } = require("lifeastroapi");`
|
|
59
60
|
|
|
61
|
+
## Examples
|
|
62
|
+
|
|
63
|
+
- [**Hindu calendar for any city**](examples/hindu-calendar/) — today's panchang, the month's festivals with the window that decided each date, the next Ekadashis with parana, and an HTML month grid. `npm start -- --city Toronto`.
|
|
64
|
+
|
|
60
65
|
## Authentication
|
|
61
66
|
|
|
62
67
|
Your API key (`dv_live_…`) authenticates every request and is sent as a
|
|
@@ -101,7 +106,7 @@ exact wire parameters the API expects (`birth.lat`, `boy.date`, `start_date`,
|
|
|
101
106
|
|
|
102
107
|
| Shape | Used by | Example fields |
|
|
103
108
|
|-------|---------|----------------|
|
|
104
|
-
| **Moment** | `panchang.*`, `muhurta.*` (single date), `prashna
|
|
109
|
+
| **Moment** | `panchang.*`, `muhurta.*` (single date), `prashna.*`, `narrative.prashna` | `{ lat, lon, tz, date?, time? }` |
|
|
105
110
|
| **Instant** | `transit.positions`, `transit.doubleTransit`, `meta.ayanamsas` | `{ date?, time?, tz? }` |
|
|
106
111
|
| **Birth** | `chart.*`, `dasha.*`, `numerology`, narratives, reports | `{ date, time, tz, lat, lon }` |
|
|
107
112
|
| **Boy/Girl** | `milan.*`, `reports.matchMaking` | `{ boy: Birth, girl: Birth }` |
|
|
@@ -109,7 +114,8 @@ exact wire parameters the API expects (`birth.lat`, `boy.date`, `start_date`,
|
|
|
109
114
|
| **Rashi** | `horoscope.*` | `{ rashi: "aries", date?, lang? }` |
|
|
110
115
|
| **Date range** | `eclipses.*`, `western.ingresses` | `{ startDate, endDate }` |
|
|
111
116
|
| **Muhurta (search)** | `muhurta.bestTime` | `{ lat, lon, tz, startDate, endDate }` |
|
|
112
|
-
| **Natal +
|
|
117
|
+
| **Natal + window** | `transit.sadeSatiWindows`, `transit.windows` (`birth` optional) | `{ birth: Birth, from?, tz? }` |
|
|
118
|
+
| **Natal + transit** | `transit.tarabala`, `transit.vedha`, `transit.smallPanoti`, `ashtakavarga.kaksha`, `ashtakavarga.transitScore`, `western.transits.toNatal`, `narrative.transitPhal`, `narrative.dashaPhal`, `narrative.transitDouble`, `narrative.sadeSatiStatus` / `Phase` / `History` | `{ birth: Birth, date, time, tz }` |
|
|
113
119
|
|
|
114
120
|
**Dates.** The API requires a `date` on every moment endpoint — it has no "today"
|
|
115
121
|
default. Where a shape marks `date?` optional, the SDK sends today's date in the `tz`
|
|
@@ -127,6 +133,19 @@ Vedic endpoints also accept optional calculation settings: `ayanamsa`
|
|
|
127
133
|
await client.chart.planets({ ...birth, ayanamsa: "krishnamurti", houseSystem: "placidus" });
|
|
128
134
|
```
|
|
129
135
|
|
|
136
|
+
**Data endpoints** (`chart.kundliFacts`, `chart.yogas`, `chart.doshas`, `chart.sensitivity`,
|
|
137
|
+
`transit.sadeSatiWindows`, `transit.windows`, `remedies.forGraha`, `milan.overlay`,
|
|
138
|
+
`milan.summary`) return ids and numbers, no prose: planet ids `sun` … `ketu`, `sign_index`
|
|
139
|
+
0-based (0 = Aries), `house` 1-based whole-sign from the lagna, nakshatra index 0-based
|
|
140
|
+
(0 = Ashwini), every instant as `*_local` (RFC 3339) plus `*_jd` (Julian Day, UT), and a
|
|
141
|
+
`skipped` object naming anything that could not be computed. Map ids to names in your app.
|
|
142
|
+
|
|
143
|
+
```ts
|
|
144
|
+
const facts = await client.chart.kundliFacts({ ...birth, include: "all" });
|
|
145
|
+
const sadeSati = await client.transit.sadeSatiWindows({ birth, years: 30 });
|
|
146
|
+
const match = await client.milan.summary({ boy: birth, girl: { date: "1992-03-20", time: "08:15", tz: "Asia/Kolkata", lat: 28.6139, lon: 77.209 } });
|
|
147
|
+
```
|
|
148
|
+
|
|
130
149
|
## Namespaces
|
|
131
150
|
|
|
132
151
|
`client.<namespace>.<method>(input)` — every method returns the response payload.
|
|
@@ -134,10 +153,10 @@ await client.chart.planets({ ...birth, ayanamsa: "krishnamurti", houseSystem: "p
|
|
|
134
153
|
| Namespace | What it covers |
|
|
135
154
|
|-----------|----------------|
|
|
136
155
|
| `panchang` | tithi, nakshatra, yoga, karana, vara, sunrise/sunset, rahu-kaal, choghadiya, hora, muhurtas, monthly calendar, composite `basic`/`advanced` |
|
|
137
|
-
| `chart` | planets, ascendant, houses, divisional (D1–D60), dignity, aspects, shadbala, ashtakvarga, avakhada, KP, astro-details |
|
|
156
|
+
| `chart` | planets, ascendant, houses, divisional (D1–D60), dignity, aspects, shadbala, ashtakvarga, avakhada, KP, astro-details; data bundles `kundliFacts`, `yogas`, `doshas`, birth-time `sensitivity` |
|
|
138
157
|
| `dasha` | full + current Vimshottari (5-level drill-down) and Yogini |
|
|
139
|
-
| `milan` | Ashtakoota (total / full / per-koota), mangal/nadi/shani dosha, navamsa & dasha compatibility |
|
|
140
|
-
| `transit` | positions, sade-sati, ashtakavarga, tarabala, vedha, double-transit, small-panoti |
|
|
158
|
+
| `milan` | Ashtakoota (total / full / per-koota), mangal/nadi/shani dosha, navamsa & dasha compatibility (`dashaSync` with an aligned MD/AD `timeline` and `marriageWindows`), chart `overlay`, one-call `summary` |
|
|
159
|
+
| `transit` | positions, sade-sati, ashtakavarga, tarabala, vedha, double-transit, small-panoti; dated `sadeSatiWindows` and per-planet sign `windows` |
|
|
141
160
|
| `horoscope` | daily / weekly / monthly by rashi |
|
|
142
161
|
| `numerology` | driver, conductor, soul, personality, destiny, full, advanced, challenges, personalPeriods |
|
|
143
162
|
| `muhurta` | vivah, naamkaran, griha-pravesh, vyapar, yatra, best-time, … |
|
|
@@ -151,8 +170,8 @@ await client.chart.planets({ ...birth, ayanamsa: "krishnamurti", houseSystem: "p
|
|
|
151
170
|
| `geo` | place search, reverse geocode, timezone, place by id |
|
|
152
171
|
| `tarot` | cards, single card, daily, spread, yes/no |
|
|
153
172
|
| `reports` | kundli (lite/detailed/brihad), match-making, mangal-dosha, sade-sati, varshaphal, numerology, horoscopes |
|
|
154
|
-
| `narrative` | authored Vedic interpretations (lagna, planets, yogas, doshas, dasha-phal, outlooks, …) in `en/hi/mr/bn/kn/ta/te/gu` |
|
|
155
|
-
| `remedies` | remedies by rule id; mantra / pooja / vrat / daan / rudraksha / yantra detail; Lal Kitab remedies |
|
|
173
|
+
| `narrative` | authored Vedic interpretations (lagna, planets, yogas, doshas, dasha-phal, transit-phal, prashna, outlooks, …) in `en/hi/mr/bn/kn/ta/te/gu` |
|
|
174
|
+
| `remedies` | remedies by rule id; `forGraha` (by graha and reason); mantra / pooja / vrat / daan / rudraksha / yantra detail; Lal Kitab remedies |
|
|
156
175
|
| `lalkitab` | Lal Kitab chart and dasha |
|
|
157
176
|
| `meta` | free catalogs: `endpoints` (credit cost of every route), `ayanamsas`, `vedicYogas`, `vedicDoshas`, `vedicLocales`, `version` |
|
|
158
177
|
| `western` | full tropical module (see below) |
|
package/dist/index.cjs
CHANGED
|
@@ -380,6 +380,26 @@ function qNatalTransit(i) {
|
|
|
380
380
|
set(q, "ayanamsa", i.ayanamsa);
|
|
381
381
|
return q;
|
|
382
382
|
}
|
|
383
|
+
function qNatalTransitPlace(i) {
|
|
384
|
+
const q = qNatalTransit(i);
|
|
385
|
+
const b = i.birth ?? {};
|
|
386
|
+
set(q, "lat", b.lat);
|
|
387
|
+
set(q, "lon", b.lon);
|
|
388
|
+
return q;
|
|
389
|
+
}
|
|
390
|
+
function qNatalWindow(i) {
|
|
391
|
+
const q = {};
|
|
392
|
+
const b = i.birth ?? {};
|
|
393
|
+
set(q, "birth.date", b.date);
|
|
394
|
+
set(q, "birth.time", b.time);
|
|
395
|
+
set(q, "birth.tz", b.tz);
|
|
396
|
+
set(q, "birth.lat", b.lat);
|
|
397
|
+
set(q, "birth.lon", b.lon);
|
|
398
|
+
set(q, "from", i.from);
|
|
399
|
+
set(q, "tz", i.tz);
|
|
400
|
+
set(q, "ayanamsa", i.ayanamsa);
|
|
401
|
+
return q;
|
|
402
|
+
}
|
|
383
403
|
function qInstant(i = {}) {
|
|
384
404
|
const q = {};
|
|
385
405
|
const tz = i.tz ?? "UTC";
|
|
@@ -404,7 +424,7 @@ var Ashtakavarga = class {
|
|
|
404
424
|
}
|
|
405
425
|
/** Get Kaksha (sub-division) level Ashtakavarga analysis — divides each sign into 8 equal 3°45′ segments, each ruled by a graha. */
|
|
406
426
|
kaksha(input, opts) {
|
|
407
|
-
return this._c.request("/v1/ashtakavarga/kaksha",
|
|
427
|
+
return this._c.request("/v1/ashtakavarga/kaksha", qNatalTransit(input), opts);
|
|
408
428
|
}
|
|
409
429
|
/** Get the Sarvashtakavarga table — the combined 12-sign benefic-point grid from all 9 grahas. */
|
|
410
430
|
sarva(input, opts) {
|
|
@@ -412,7 +432,7 @@ var Ashtakavarga = class {
|
|
|
412
432
|
}
|
|
413
433
|
/** Score current (or a given date's) planetary transits against a natal chart using Ashtakavarga benefic points. */
|
|
414
434
|
transitScore(input, opts) {
|
|
415
|
-
return this._c.request("/v1/ashtakavarga/transit-score",
|
|
435
|
+
return this._c.request("/v1/ashtakavarga/transit-score", qNatalTransit(input), opts);
|
|
416
436
|
}
|
|
417
437
|
};
|
|
418
438
|
|
|
@@ -488,6 +508,10 @@ var Chart = class {
|
|
|
488
508
|
divisional(input, opts) {
|
|
489
509
|
return this._c.request(buildPath("/v1/chart/divisional/{varga}", input, ["varga"]), qBirth(input), opts);
|
|
490
510
|
}
|
|
511
|
+
/** Doshas in a birth chart as data (20 credits): kaalsarp, mangal (from lagna, Moon and Venus with cancellation), pitra, combust, debilitation (with neecha bhanga), retrograde, gandanta, grahan, papakartari, mrityu bhaga, guru chandal, visha kanya, ganda moola. Same item fields as chart.yogas. all=true also lists absent ids. Ids only, no text: planets sun..ketu, sign_index 0-based (Aries=0), house 1-based whole-sign from the lagna, nakshatra index 0-based (Ashwini=0). */
|
|
512
|
+
doshas(input, opts) {
|
|
513
|
+
return this._c.request("/v1/chart/doshas", applyExtras(qBirth(input), input, [["all", "all"], ["gender", "gender"]]), opts);
|
|
514
|
+
}
|
|
491
515
|
/** Ghatak Chakra (inauspicious indicators) for the chart. */
|
|
492
516
|
ghatak(input, opts) {
|
|
493
517
|
return this._c.request("/v1/chart/ghatak", qBirth(input), opts);
|
|
@@ -512,6 +536,10 @@ var Chart = class {
|
|
|
512
536
|
kpSublord(input, opts) {
|
|
513
537
|
return this._c.request("/v1/chart/kp-sublord", applyExtras(qBirth(input), input, [["planet", "planet"]]), opts);
|
|
514
538
|
}
|
|
539
|
+
/** Whole birth chart as data in one call (50 credits): lagna; planets with sign, degree, house, nakshatra, pada, retrograde, combust, dignity, neecha bhanga, vargottama, houses ruled, shadbala, avastha and varga placements; houses with sign, lord, SAV bindus, bhava bala, occupants and aspecting planets; Jaimini chara karakas; avakhada. vargas: comma list (default D9, max 16, D1 rejected). include: shadbala, bhavabala, ashtakvarga, aspects, avastha, karakas, avakhada, yogas or all (default all but yogas). gender narrows Mahabhagya. Ids only, no text: planets sun..ketu, sign_index 0-based (Aries=0), house 1-based whole-sign from the lagna, nakshatra index 0-based (Ashwini=0). Anything not computable is in skipped. */
|
|
540
|
+
kundliFacts(input, opts) {
|
|
541
|
+
return this._c.request("/v1/chart/kundli-facts", applyExtras(qBirth(input), input, [["vargas", "vargas"], ["include", "include"], ["gender", "gender"]]), opts);
|
|
542
|
+
}
|
|
515
543
|
/** Birth (Janma) nakshatra and pada. */
|
|
516
544
|
nakshatra(input, opts) {
|
|
517
545
|
return this._c.request("/v1/chart/nakshatra", qBirth(input), opts);
|
|
@@ -528,6 +556,10 @@ var Chart = class {
|
|
|
528
556
|
planets(input, opts) {
|
|
529
557
|
return this._c.request("/v1/chart/planets", qBirth(input), opts);
|
|
530
558
|
}
|
|
559
|
+
/** Birth-time sensitivity (20 credits): for D1 and each varga (default D9,D10,D24) the lagna sign at birth and how many minutes before/after it stays the same, with the neighbouring signs; the same for the Moon's nakshatra and pada; planet sign changes inside the window. window: half-width in minutes (default 120, max 180). Use it to tell users how much a birth-time error matters. Every instant comes as *_local (RFC 3339 with offset) and *_jd (Julian Day, UT); fields that cannot be computed are listed in skipped. */
|
|
560
|
+
sensitivity(input, opts) {
|
|
561
|
+
return this._c.request("/v1/chart/sensitivity", applyExtras(qBirth(input), input, [["window", "window"], ["vargas", "vargas"], ["topocentricMoon", "topocentric_moon"]]), opts);
|
|
562
|
+
}
|
|
531
563
|
/** Shadbala (six-fold strength) for all 7 planets with components. */
|
|
532
564
|
shadbala(input, opts) {
|
|
533
565
|
return this._c.request("/v1/chart/shadbala", qBirth(input), opts);
|
|
@@ -536,6 +568,10 @@ var Chart = class {
|
|
|
536
568
|
shadbalaComponent(input, opts) {
|
|
537
569
|
return this._c.request(buildPath("/v1/chart/shadbala/{component}", input, ["component"]), qBirth(input), opts);
|
|
538
570
|
}
|
|
571
|
+
/** Yogas present in a birth chart as data (20 credits), from the same detectors as narrative.yogas: id, kind, category, present, planets, houses, strength, cancelled + cancel_reasons, variant, axes, sub_ids, source, details. Includes neecha_bhanga.<planet> and raja_yoga.kendra_trikona. all=true also lists every absent catalogue id with present:false. Ids only, no text: planets sun..ketu, sign_index 0-based (Aries=0), house 1-based whole-sign from the lagna, nakshatra index 0-based (Ashwini=0). */
|
|
572
|
+
yogas(input, opts) {
|
|
573
|
+
return this._c.request("/v1/chart/yogas", applyExtras(qBirth(input), input, [["all", "all"], ["gender", "gender"]]), opts);
|
|
574
|
+
}
|
|
539
575
|
};
|
|
540
576
|
|
|
541
577
|
// src/resources/dasha.ts
|
|
@@ -752,9 +788,9 @@ var Milan = class {
|
|
|
752
788
|
ashtakootaTotal(input, opts) {
|
|
753
789
|
return this._c.request("/v1/milan/ashtakoota/total", qBoyGirl(input), opts);
|
|
754
790
|
}
|
|
755
|
-
/**
|
|
791
|
+
/** Current Vimshottari Maha Dasha of both partners and whether they overlap (20 credits); date/time/tz set the check moment (default now). timeline=true adds both partners' MD/AD periods on one aligned timeline from from for years (default 10, max 30), each span with md, ad and the running AD's start/end. marriageWindows=true (implies timeline) tags each span favourable, neutral or avoid with reason ids (rule D-MarriageWindows1). Each partner's Moon uses the ayanamsa of their own birth moment, so dates match dasha.vimshottari. */
|
|
756
792
|
dashaSync(input, opts) {
|
|
757
|
-
return this._c.request("/v1/milan/dasha-sync", qBoyGirl(input), opts);
|
|
793
|
+
return this._c.request("/v1/milan/dasha-sync", applyExtras(qBoyGirl(input), input, [["timeline", "timeline"], ["years", "years"], ["from", "from"], ["marriageWindows", "marriage_windows"], ["date", "date"], ["time", "time"], ["tz", "tz"]]), opts);
|
|
758
794
|
}
|
|
759
795
|
/** Check Dhan Yog (wealth yoga) for a single person's chart — assesses 2nd/11th house lord strength and Jupiter placement for prosperity. */
|
|
760
796
|
dhanYog(input, opts) {
|
|
@@ -780,6 +816,10 @@ var Milan = class {
|
|
|
780
816
|
navamsaCompat(input, opts) {
|
|
781
817
|
return this._c.request("/v1/milan/navamsa-compat", qBoyGirl(input), opts);
|
|
782
818
|
}
|
|
819
|
+
/** Couple chart overlay as data (20 credits): each partner's grahas in the other's whole-sign houses (with conjunct grahas), same-sign and same-nakshatra pairs, Moon sign relation (e.g. "2/12"), and each lagna lord's placement in the other's chart (sign, house, dignity, combust, retro). Each partner's chart uses the ayanamsa of their own birth moment. Ids only, no text: planets sun..ketu, sign_index 0-based (Aries=0), house 1-based whole-sign from the lagna, nakshatra index 0-based (Ashwini=0). */
|
|
820
|
+
overlay(input, opts) {
|
|
821
|
+
return this._c.request("/v1/milan/overlay", qBoyGirl(input), opts);
|
|
822
|
+
}
|
|
783
823
|
/** Check Santan Yog for a single person's chart — assesses 5th house lord and Jupiter placement to indicate prospects for children. */
|
|
784
824
|
santanYog(input, opts) {
|
|
785
825
|
return this._c.request("/v1/milan/santan-yog", qBirthPrefixed(input), opts);
|
|
@@ -792,6 +832,10 @@ var Milan = class {
|
|
|
792
832
|
streeDirgha(input, opts) {
|
|
793
833
|
return this._c.request("/v1/milan/stree-dirgha", qBoyGirl(input), opts);
|
|
794
834
|
}
|
|
835
|
+
/** Couple matching data in one call (60 credits), numbers identical to the separate routes: ashtakoota (every koota), navamsa_compat, mangal_dosha of both plus pair status, seventh_house facts of both (7th sign, occupants, 7th lord, Venus, Jupiter, D9 7th, D7 5th), and sade_sati windows of both for 10 years from from. include=kundli_facts adds both full charts. Ids only, no text: planets sun..ketu, sign_index 0-based (Aries=0), house 1-based whole-sign from the lagna, nakshatra index 0-based (Ashwini=0). */
|
|
836
|
+
summary(input, opts) {
|
|
837
|
+
return this._c.request("/v1/milan/summary", applyExtras(qBoyGirl(input), input, [["from", "from"], ["tz", "tz"], ["include", "include"]]), opts);
|
|
838
|
+
}
|
|
795
839
|
/** Vivah Phal (marriage-outcome) assessment for one chart. */
|
|
796
840
|
vivahPhal(input, opts) {
|
|
797
841
|
return this._c.request("/v1/milan/vivah-phal", qBirthPrefixed(input), opts);
|
|
@@ -858,9 +902,9 @@ var Narrative = class {
|
|
|
858
902
|
careerOutlook(input, opts) {
|
|
859
903
|
return this._c.request("/v1/vedic/narrative/career-outlook", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
860
904
|
}
|
|
861
|
-
/** Get the Dasha Phal (period interpretation) narrative for the
|
|
905
|
+
/** Get the Dasha Phal (period interpretation) narrative for the Vimshottari dasha running at the given moment — Mahadasha, Antardasha and Pratyantar down to the sookshma and prana levels, plus dasha-sandhi sections when a period change is near. `birth` is the natal chart; date/time/tz are the moment to read. */
|
|
862
906
|
dashaPhal(input, opts) {
|
|
863
|
-
return this._c.request("/v1/vedic/narrative/dasha-phal", applyExtras(
|
|
907
|
+
return this._c.request("/v1/vedic/narrative/dasha-phal", applyExtras(qNatalTransitPlace(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
864
908
|
}
|
|
865
909
|
/** Get narrative interpretations for a specific dasha combination — pass mahadasha lord (and optionally antardasha lord) to get the meaning of that specific period for the natal chart. */
|
|
866
910
|
dashaTreePhal(input, opts) {
|
|
@@ -922,7 +966,7 @@ var Narrative = class {
|
|
|
922
966
|
marriageOutlook(input, opts) {
|
|
923
967
|
return this._c.request("/v1/vedic/narrative/marriage-outlook", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
924
968
|
}
|
|
925
|
-
/** Get a narrative compatibility analysis for a couple —
|
|
969
|
+
/** Get a narrative compatibility analysis for a couple — a written reading of the Ashtakoota result (verdict and each koota; Tara and Graha Maitri are scored both ways) plus synastry sections from the graha signs of both charts. */
|
|
926
970
|
milan(input, opts) {
|
|
927
971
|
return this._c.request("/v1/vedic/narrative/milan", applyExtras(qNone(input), input, [["boyDate", "boy.date"], ["boyTime", "boy.time"], ["boyTz", "boy.tz"], ["girlDate", "girl.date"], ["girlTime", "girl.time"], ["girlTz", "girl.tz"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
928
972
|
}
|
|
@@ -950,6 +994,10 @@ var Narrative = class {
|
|
|
950
994
|
planetsInSigns(input, opts) {
|
|
951
995
|
return this._c.request("/v1/vedic/narrative/planets-in-signs", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
952
996
|
}
|
|
997
|
+
/** Get a Prashna (horary) narrative for the moment and place a question is asked — the Prashna lagna and Moon sections, plus the topic reading for the Prashna lagna. topic: career, financial, health, litigation, marriage, missing_person, property or travel; or questionHouse 1-12 when topic is not given (with neither, only the lagna and Moon sections). An unknown topic or a house outside 1-12 returns 400. */
|
|
998
|
+
prashna(input, opts) {
|
|
999
|
+
return this._c.request("/v1/vedic/narrative/prashna", applyExtras(qMoment(input), input, [["topic", "topic"], ["questionHouse", "question_house"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1000
|
+
}
|
|
953
1001
|
/** Get a holistic birth chart profile narrative — an executive summary of the entire chart covering lagna, Moon sign, key planetary strengths/weaknesses, dominant yogas, current dasha, and life-theme highlights in a single comprehensive reading. */
|
|
954
1002
|
profile(input, opts) {
|
|
955
1003
|
return this._c.request("/v1/vedic/narrative/profile", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
@@ -964,15 +1012,15 @@ var Narrative = class {
|
|
|
964
1012
|
}
|
|
965
1013
|
/** Get a narrative of all past and future Sade Sati periods for a birth chart — written descriptions of each 7.5-year Saturn transit cycle with dates, life themes expected, and which phase (rising/peak/setting) the person experienced. */
|
|
966
1014
|
sadeSatiHistory(input, opts) {
|
|
967
|
-
return this._c.request("/v1/vedic/narrative/sade-sati-history", applyExtras(
|
|
1015
|
+
return this._c.request("/v1/vedic/narrative/sade-sati-history", applyExtras(qNatalTransit(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
968
1016
|
}
|
|
969
1017
|
/** Get a narrative interpretation of the current Sade Sati phase (rising, peak, or setting) — what the current phase typically brings and remedies. */
|
|
970
1018
|
sadeSatiPhase(input, opts) {
|
|
971
|
-
return this._c.request("/v1/vedic/narrative/sade-sati-phase", applyExtras(
|
|
1019
|
+
return this._c.request("/v1/vedic/narrative/sade-sati-phase", applyExtras(qNatalTransit(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
972
1020
|
}
|
|
973
1021
|
/** Get the current Sade Sati status with narrative context — whether the person is in Sade Sati, which phase, start/end dates, and a written description of the current transit's meaning for their Moon sign. */
|
|
974
1022
|
sadeSatiStatus(input, opts) {
|
|
975
|
-
return this._c.request("/v1/vedic/narrative/sade-sati-status", applyExtras(
|
|
1023
|
+
return this._c.request("/v1/vedic/narrative/sade-sati-status", applyExtras(qNatalTransit(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
976
1024
|
}
|
|
977
1025
|
/** Get a narrative interpretation of the natal Sun sign (Surya Rashi) — covers ego, identity, father, authority, vitality, and the life-purpose themes associated with the Sun's sidereal sign placement. */
|
|
978
1026
|
sunSign(input, opts) {
|
|
@@ -984,11 +1032,11 @@ var Narrative = class {
|
|
|
984
1032
|
}
|
|
985
1033
|
/** Get a narrative of the Double Transit analysis — written explanation of which life events the current Jupiter-Saturn joint transit is activating in the chart, and when the confluence is strongest. */
|
|
986
1034
|
transitDouble(input, opts) {
|
|
987
|
-
return this._c.request("/v1/vedic/narrative/transit-double", applyExtras(
|
|
1035
|
+
return this._c.request("/v1/vedic/narrative/transit-double", applyExtras(qNatalTransit(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
988
1036
|
}
|
|
989
|
-
/** Get the Transit Phal (gochar results) narrative —
|
|
1037
|
+
/** Get the Transit Phal (gochar results) narrative — the slow grahas (Mars, Jupiter, Saturn, Rahu, Ketu) by sign, their transit counted from the natal Moon and from the natal lagna, Sade Sati while it runs, the Sun's transit house, and Jupiter/Saturn/Rahu passing over natal grahas. `birth` is the natal chart (its lat/lon are sent as the birth place for the lagna sections); date/time/tz are the transit moment. */
|
|
990
1038
|
transitPhal(input, opts) {
|
|
991
|
-
return this._c.request("/v1/vedic/narrative/transit-phal", applyExtras(
|
|
1039
|
+
return this._c.request("/v1/vedic/narrative/transit-phal", applyExtras(qNatalTransitPlace(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
992
1040
|
}
|
|
993
1041
|
/** Get a narrative of the key themes for the current Varshaphal (solar-return) year — written analysis of the annual chart's varsha lord, muntha, annual lagna, and tajika yogas as a prediction for the year's major themes. */
|
|
994
1042
|
varshaphalThemes(input, opts) {
|
|
@@ -1237,6 +1285,10 @@ var Remedies = class {
|
|
|
1237
1285
|
daan(input, opts) {
|
|
1238
1286
|
return this._c.request(buildPath("/v1/vedic/remedies/daan/{id}", input, ["id"]), applyExtras(qNone(input), input, [["locale", "locale"]]), opts);
|
|
1239
1287
|
}
|
|
1288
|
+
/** Remedies for one graha by reason (10 credits): a filter over the remedy catalogue (same rows and languages as remedies.vedic). reason: debilitated, combust, dusthana, weak_shadbala, dasha or dosha:<id> (graha is optional with dosha:<id>). Each item adds kind (mantra, daan, vrat, pooja, pilgrimage, yantra, rudraksha), weekday (0 = Sunday, or null) and matched_by. Free kinds by default; include adds pooja, pilgrimage, yantra, rudraksha; category limits to one catalogue category. */
|
|
1289
|
+
forGraha(input = {}, opts) {
|
|
1290
|
+
return this._c.request("/v1/vedic/remedies/for-graha", applyExtras(qNone(input), input, [["graha", "graha"], ["reason", "reason"], ["include", "include"], ["category", "category"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1291
|
+
}
|
|
1240
1292
|
/** Lal Kitab remedies for a specific planet-in-house placement (e.g. saturn in house 8). */
|
|
1241
1293
|
lalkitabForPlacement(input, opts) {
|
|
1242
1294
|
return this._c.request(buildPath("/v1/vedic/remedies/lal-kitab/{planet}/{house}", input, ["planet", "house"]), applyExtras(qNone(input), input, [["locale", "locale"]]), opts);
|
|
@@ -1374,9 +1426,13 @@ var Transit = class {
|
|
|
1374
1426
|
sadeSati(input, opts) {
|
|
1375
1427
|
return this._c.request("/v1/transit/sade-sati", qBirthPrefixed(input), opts);
|
|
1376
1428
|
}
|
|
1429
|
+
/** Sade Sati and Dhaiya windows from the natal Moon (20 credits): intervals (one per stay of Saturn in a sign, kind sade_sati with phase rising/peak/setting, dhaiya_4 kantak or dhaiya_8 ashtama, exact ingress times, retro_reentry), cycles (merged passes with phase spans) and at_from (status at from). from defaults to now, years 25 (max 60); includePast starts at birth. Every instant comes as *_local (RFC 3339 with offset) and *_jd (Julian Day, UT); fields that cannot be computed are listed in skipped. */
|
|
1430
|
+
sadeSatiWindows(input, opts) {
|
|
1431
|
+
return this._c.request("/v1/transit/sade-sati/windows", applyExtras(qNatalWindow(input), input, [["years", "years"], ["includePast", "include_past"]]), opts);
|
|
1432
|
+
}
|
|
1377
1433
|
/** Check whether a person is currently in Small Panoti (Ashtama Shani) — the 2.5-year Saturn transit through the 8th house from natal Moon, considered challenging. */
|
|
1378
1434
|
smallPanoti(input, opts) {
|
|
1379
|
-
return this._c.request("/v1/transit/small-panoti",
|
|
1435
|
+
return this._c.request("/v1/transit/small-panoti", qNatalTransit(input), opts);
|
|
1380
1436
|
}
|
|
1381
1437
|
/** Get the complete history and future windows of Small Panoti (Ashtama Shani) for a natal chart — all past and upcoming 2.5-year periods when Saturn transits the 8th house from natal Moon. */
|
|
1382
1438
|
smallPanotiHistory(input, opts) {
|
|
@@ -1390,6 +1446,10 @@ var Transit = class {
|
|
|
1390
1446
|
vedha(input, opts) {
|
|
1391
1447
|
return this._c.request("/v1/transit/vedha", qNatalTransit(input), opts);
|
|
1392
1448
|
}
|
|
1449
|
+
/** Every stay of one planet (sun..ketu) in a sidereal sign that overlaps [from, from + years] (20 credits), with exact ingress times, retro_reentry and retrograde_at_start. With birth (date, time, tz) each window has house_from_moon; with birth lat/lon also house_from_lagna. years: default 25 / max 60 for jupiter, saturn, rahu, ketu; 5 / 20 for sun, mercury, venus, mars; 1 / 2 for moon. Every instant comes as *_local (RFC 3339 with offset) and *_jd (Julian Day, UT); fields that cannot be computed are listed in skipped. */
|
|
1450
|
+
windows(input, opts) {
|
|
1451
|
+
return this._c.request("/v1/transit/windows", applyExtras(qNatalWindow(input), input, [["planet", "planet"], ["years", "years"]]), opts);
|
|
1452
|
+
}
|
|
1393
1453
|
};
|
|
1394
1454
|
|
|
1395
1455
|
// src/resources/varshaphal.ts
|
|
@@ -1405,7 +1465,7 @@ var Varshaphal = class {
|
|
|
1405
1465
|
harshaBala(input, opts) {
|
|
1406
1466
|
return this._c.request("/v1/varshaphal/harsha-bala", applyExtras(qBirth(input), input, [["year", "year"]]), opts);
|
|
1407
1467
|
}
|
|
1408
|
-
/** Get the Varsha Lord (year ruler) for an annual chart
|
|
1468
|
+
/** Get the Varsha Lord (Varshesha, year ruler) for an annual chart, chosen by the Tajika Panchadhikari rule from the five office-bearers (Munthesh, Janmesh, Varsha Lagnesh, Trirashipati, Dina/Ratripati); the response also lists the candidates and the hora lord of the return. */
|
|
1409
1469
|
lord(input, opts) {
|
|
1410
1470
|
return this._c.request("/v1/varshaphal/lord", applyExtras(qBirth(input), input, [["year", "year"]]), opts);
|
|
1411
1471
|
}
|