lifeastroapi 0.12.0 → 0.13.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 +3 -3
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Official **Node.js / TypeScript SDK** for [LifeAstroAPI](https://lifeastroapi.co
|
|
|
5
5
|
kundli, muhurat and Western charts, with location-aware calculations and pay-per-call billing.
|
|
6
6
|
Free tier: 1,500 credits a month, no card — [get a key](https://lifeastroapi.com/signup/).
|
|
7
7
|
|
|
8
|
-
- ✅ **All
|
|
8
|
+
- ✅ **All 322 endpoints**, fully typed, across 23 namespaces — panchang, charts, dashas,
|
|
9
9
|
matchmaking, transits, horoscopes, numerology, tarot, muhurta, reports, narratives,
|
|
10
10
|
and a complete Western (tropical) module.
|
|
11
11
|
- ✅ **Zero runtime dependencies** — uses the platform `fetch` (Node 18+, Bun, Deno,
|
|
@@ -206,7 +206,7 @@ const chart = await client.chart.planets({
|
|
|
206
206
|
| Namespace | What it covers |
|
|
207
207
|
|-----------|----------------|
|
|
208
208
|
| `panchang` | tithi, nakshatra, yoga, karana, vara, sunrise/sunset, rahu-kaal, choghadiya, hora, muhurtas, monthly calendar, composite `basic`/`advanced` |
|
|
209
|
-
| `chart` | planets, ascendant, houses, divisional (D1–D60), dignity, aspects, shadbala, ashtakvarga, avakhada, KP, astro-details; data bundles `kundliFacts`, `yogas`, `doshas`, birth-time `sensitivity` |
|
|
209
|
+
| `chart` | planets, ascendant, houses, divisional (D1–D60), dignity, aspects, shadbala, ashtakvarga, avakhada, KP (sub lords, ruling planets, significators, 4-step chain), astro-details; data bundles `kundliFacts`, `yogas`, `doshas`, birth-time `sensitivity` |
|
|
210
210
|
| `dasha` | full + current Vimshottari (5-level drill-down) and Yogini |
|
|
211
211
|
| `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` |
|
|
212
212
|
| `transit` | positions, sade-sati, ashtakavarga, tarabala, vedha, double-transit, small-panoti; dated `sadeSatiWindows` and per-planet sign `windows` |
|
|
@@ -214,7 +214,7 @@ const chart = await client.chart.planets({
|
|
|
214
214
|
| `numerology` | driver, conductor, soul, personality, destiny, full, advanced, challenges, personalPeriods |
|
|
215
215
|
| `muhurta` | vivah, naamkaran, griha-pravesh, vyapar, yatra, best-time, … |
|
|
216
216
|
| `varshaphal` | annual chart, lord, muntha, mudda-dasha, harsha-bala, tajika yogas |
|
|
217
|
-
| `prashna` | horary answer, chart, arudha, significators |
|
|
217
|
+
| `prashna` | horary answer, chart, arudha, significators, KP horary (1–249) |
|
|
218
218
|
| `eclipses` | solar / lunar / all (date range, optional visibility) |
|
|
219
219
|
| `calendar` | Hindu month, ritu, samvatsara, adhik-maas |
|
|
220
220
|
| `festivals` | full Hindu festival calendar by month / on a date — location-aware, `lang`, `monthSystem` (amanta/purnimanta); `panchang.monthly({ include: "sheet" })` returns a complete printable calendar page |
|
package/dist/index.cjs
CHANGED
|
@@ -564,11 +564,11 @@ var Chart = class {
|
|
|
564
564
|
houses(input, opts) {
|
|
565
565
|
return this._c.request("/v1/chart/houses", applyExtras(qBirth(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
566
566
|
}
|
|
567
|
-
/**
|
|
567
|
+
/** KP house significators for all 12 Placidus cusps (20 credits): each cusp's star, sub and sub-sub lords and its significator planets (four KP levels), the houses every planet signifies, and the KP 4-step chain. Pass ayanamsa krishnamurti for KP work. `cusp` is accepted for compatibility and ignored: all 12 cusps are returned. */
|
|
568
568
|
kpHouseSignificator(input, opts) {
|
|
569
569
|
return this._c.request("/v1/chart/kp-house-significator", applyExtras(qBirth(input), input, [["cusp", "cusp"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
570
570
|
}
|
|
571
|
-
/**
|
|
571
|
+
/** KP star, sub and sub-sub lords of every planet (10 credits), and the KP ruling planets for the moment and place (day lord, and the star, sign and sub lords of the ascendant and the Moon); send the moment of judgement for horary or timing. Pass ayanamsa krishnamurti for KP work. `planet` is accepted for compatibility and ignored: all planets are returned. */
|
|
572
572
|
kpSublord(input, opts) {
|
|
573
573
|
return this._c.request("/v1/chart/kp-sublord", applyExtras(qBirth(input), input, [["planet", "planet"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
574
574
|
}
|
|
@@ -1298,6 +1298,10 @@ var Prashna = class {
|
|
|
1298
1298
|
chart(input, opts) {
|
|
1299
1299
|
return this._c.request("/v1/prashna/chart", applyExtras(qMoment(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1300
1300
|
}
|
|
1301
|
+
/** KP horary chart for a number from 1 to 249 (30 credits), cast for the moment and place of judgement: the horary ascendant (the first degree of that number's sign/star/sub part), the 12 Placidus cusps with star, sub and sub-sub lords and significators, planets with KP lords and houses, planet significators, the 4-step chain and the ruling planets of the moment. Uses the Krishnamurti ayanamsa unless ayanamsa is sent. */
|
|
1302
|
+
kpHorary(input, opts) {
|
|
1303
|
+
return this._c.request("/v1/prashna/kp-horary", applyExtras(qMoment(input), input, [["number", "number"], ["lang", "lang"], ["lang", "locale"]]), opts);
|
|
1304
|
+
}
|
|
1301
1305
|
/** Get the lagna lord analysis for a Prashna chart — where the lagna lord is placed, its strength, and what it indicates about the querent's situation and chances of success. */
|
|
1302
1306
|
lagnaLord(input, opts) {
|
|
1303
1307
|
return this._c.request("/v1/prashna/lagna-lord", applyExtras(qMoment(input), input, [["lang", "lang"], ["lang", "locale"]]), opts);
|
|
@@ -2048,7 +2052,7 @@ var Resources = class {
|
|
|
2048
2052
|
};
|
|
2049
2053
|
|
|
2050
2054
|
// src/client.ts
|
|
2051
|
-
var VERSION = "0.
|
|
2055
|
+
var VERSION = "0.13.0";
|
|
2052
2056
|
var DEFAULT_BASE_URL = "https://api.lifeastroapi.com";
|
|
2053
2057
|
function resolveConfig(options) {
|
|
2054
2058
|
const opts = typeof options === "string" ? { apiKey: options } : options ?? {};
|