lifeastroapi 0.13.0 → 0.14.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 +12 -13
- package/dist/{chunk-ZSMQRMHR.js → chunk-KKYMKSJK.js} +1167 -162
- package/dist/chunk-KKYMKSJK.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pdf/index.cjs +1291 -187
- package/dist/pdf/index.cjs.map +1 -1
- package/dist/pdf/index.d.cts +6 -3
- package/dist/pdf/index.d.ts +6 -3
- package/dist/pdf/index.js +130 -27
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf-html.cjs +1139 -144
- package/dist/pdf-html.cjs.map +1 -1
- package/dist/pdf-html.d.cts +4 -0
- package/dist/pdf-html.d.ts +4 -0
- package/dist/pdf-html.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZSMQRMHR.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -25,17 +25,17 @@ interface ResponseEnvelope<T = unknown> {
|
|
|
25
25
|
/** Sidereal ayanamsha systems supported by the API. */
|
|
26
26
|
type Ayanamsa = "lahiri" | "krishnamurti" | "raman" | "fagan" | "yukteshwar" | "true_chitrapaksha";
|
|
27
27
|
/** House systems supported by the API. */
|
|
28
|
-
type HouseSystem = "
|
|
28
|
+
type HouseSystem = "whole_sign"
|
|
29
|
+
/** The spelling of SDK 0.13.0 and earlier. The API reads it as `whole_sign`. */
|
|
30
|
+
| "whole-sign" | "equal" | "placidus" | "koch" | "porphyry" | "campanus" | "regiomontanus";
|
|
29
31
|
/**
|
|
30
32
|
* Response language, passed as `lang` on Vedic methods (panchang, calendar,
|
|
31
33
|
* festivals, eclipses, planet moments, transit, milan, muhurta, chart, prashna,
|
|
32
34
|
* numerology, dasha, varshaphal, ashtakavarga, Lal Kitab, horoscope, reports,
|
|
33
35
|
* narrative, remedies).
|
|
34
36
|
*
|
|
35
|
-
* - Complete: `en`, `hi`, `mr`, `te`, `ta`, `kn`, `ml`, `gu`, `bn`. Names,
|
|
36
|
-
* and prose all come back in the language.
|
|
37
|
-
* - Partial: `pa`. Names and terms come back in the language; longer prose is
|
|
38
|
-
* still English.
|
|
37
|
+
* - Complete: `en`, `hi`, `mr`, `te`, `ta`, `kn`, `ml`, `gu`, `bn`, `pa`. Names,
|
|
38
|
+
* terms and prose all come back in the language.
|
|
39
39
|
*
|
|
40
40
|
* Ids, dates, numbers and explicit `*_en` / `*_hi` fields stay as they are in
|
|
41
41
|
* every language. Western, Tarot, geo and meta methods answer in English
|
|
@@ -2066,7 +2066,7 @@ declare class Resources {
|
|
|
2066
2066
|
*/
|
|
2067
2067
|
|
|
2068
2068
|
/** SDK version, surfaced in the User-Agent header. */
|
|
2069
|
-
declare const VERSION = "0.
|
|
2069
|
+
declare const VERSION = "0.14.0";
|
|
2070
2070
|
interface LifeAstroOptions {
|
|
2071
2071
|
/**
|
|
2072
2072
|
* API key (`dv_live_...`). Falls back to the `LIFEASTRO_API_KEY` environment
|
package/dist/index.d.ts
CHANGED
|
@@ -25,17 +25,17 @@ interface ResponseEnvelope<T = unknown> {
|
|
|
25
25
|
/** Sidereal ayanamsha systems supported by the API. */
|
|
26
26
|
type Ayanamsa = "lahiri" | "krishnamurti" | "raman" | "fagan" | "yukteshwar" | "true_chitrapaksha";
|
|
27
27
|
/** House systems supported by the API. */
|
|
28
|
-
type HouseSystem = "
|
|
28
|
+
type HouseSystem = "whole_sign"
|
|
29
|
+
/** The spelling of SDK 0.13.0 and earlier. The API reads it as `whole_sign`. */
|
|
30
|
+
| "whole-sign" | "equal" | "placidus" | "koch" | "porphyry" | "campanus" | "regiomontanus";
|
|
29
31
|
/**
|
|
30
32
|
* Response language, passed as `lang` on Vedic methods (panchang, calendar,
|
|
31
33
|
* festivals, eclipses, planet moments, transit, milan, muhurta, chart, prashna,
|
|
32
34
|
* numerology, dasha, varshaphal, ashtakavarga, Lal Kitab, horoscope, reports,
|
|
33
35
|
* narrative, remedies).
|
|
34
36
|
*
|
|
35
|
-
* - Complete: `en`, `hi`, `mr`, `te`, `ta`, `kn`, `ml`, `gu`, `bn`. Names,
|
|
36
|
-
* and prose all come back in the language.
|
|
37
|
-
* - Partial: `pa`. Names and terms come back in the language; longer prose is
|
|
38
|
-
* still English.
|
|
37
|
+
* - Complete: `en`, `hi`, `mr`, `te`, `ta`, `kn`, `ml`, `gu`, `bn`, `pa`. Names,
|
|
38
|
+
* terms and prose all come back in the language.
|
|
39
39
|
*
|
|
40
40
|
* Ids, dates, numbers and explicit `*_en` / `*_hi` fields stay as they are in
|
|
41
41
|
* every language. Western, Tarot, geo and meta methods answer in English
|
|
@@ -2066,7 +2066,7 @@ declare class Resources {
|
|
|
2066
2066
|
*/
|
|
2067
2067
|
|
|
2068
2068
|
/** SDK version, surfaced in the User-Agent header. */
|
|
2069
|
-
declare const VERSION = "0.
|
|
2069
|
+
declare const VERSION = "0.14.0";
|
|
2070
2070
|
interface LifeAstroOptions {
|
|
2071
2071
|
/**
|
|
2072
2072
|
* API key (`dv_live_...`). Falls back to the `LIFEASTRO_API_KEY` environment
|
package/dist/index.js
CHANGED
|
@@ -2015,7 +2015,7 @@ var Resources = class {
|
|
|
2015
2015
|
};
|
|
2016
2016
|
|
|
2017
2017
|
// src/client.ts
|
|
2018
|
-
var VERSION = "0.
|
|
2018
|
+
var VERSION = "0.14.0";
|
|
2019
2019
|
var DEFAULT_BASE_URL = "https://api.lifeastroapi.com";
|
|
2020
2020
|
function resolveConfig(options) {
|
|
2021
2021
|
const opts = typeof options === "string" ? { apiKey: options } : options ?? {};
|