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/README.md
CHANGED
|
@@ -181,7 +181,7 @@ const chart = await client.chart.planets({
|
|
|
181
181
|
| `ml` | Malayalam | complete |
|
|
182
182
|
| `gu` | Gujarati | complete |
|
|
183
183
|
| `bn` | Bengali | complete |
|
|
184
|
-
| `pa` | Punjabi |
|
|
184
|
+
| `pa` | Punjabi | complete |
|
|
185
185
|
|
|
186
186
|
- **Where it works:** `panchang`, `calendar`, `festivals`, `eclipses`, `planetMoments`,
|
|
187
187
|
`transit`, `milan`, `muhurta`, `chart`, `prashna`, `numerology`, `dasha`, `varshaphal`,
|
|
@@ -223,7 +223,7 @@ const chart = await client.chart.planets({
|
|
|
223
223
|
| `geo` | place search, reverse geocode, timezone, place by id |
|
|
224
224
|
| `tarot` | cards, single card, daily, spread, yes/no |
|
|
225
225
|
| `reports` | kundli (lite/detailed/brihad), match-making, mangal-dosha, sade-sati, varshaphal, numerology, horoscopes |
|
|
226
|
-
| `narrative` | authored Vedic interpretations (lagna, planets, yogas, doshas, dasha-phal, transit-phal, prashna, outlooks, …) in
|
|
226
|
+
| `narrative` | authored Vedic interpretations (lagna, planets, yogas, doshas, dasha-phal, transit-phal, prashna, outlooks, …) in all ten languages (see [Languages](#languages)) |
|
|
227
227
|
| `remedies` | remedies by rule id; `forGraha` (by graha and reason); mantra / pooja / vrat / daan / rudraksha / yantra detail; Lal Kitab remedies |
|
|
228
228
|
| `lalkitab` | Lal Kitab chart and dasha |
|
|
229
229
|
| `meta` | free catalogs: `endpoints` (credit cost of every route), `ayanamsas`, `vedicYogas`, `vedicDoshas`, `vedicLocales`, `version` |
|
|
@@ -437,9 +437,8 @@ PDF (see [Fonts](#fonts)).
|
|
|
437
437
|
it twice so the table of contents shows real page numbers, adds a running header
|
|
438
438
|
and footer, and writes PDF bookmarks. It is the slowest report to produce — give it
|
|
439
439
|
a generous timeout and render it in a background job rather than inside a web
|
|
440
|
-
request.
|
|
441
|
-
|
|
442
|
-
estimate.
|
|
440
|
+
request. The page numbers in the table of contents are read from the PDF itself, so
|
|
441
|
+
nothing else needs to be installed for them.
|
|
443
442
|
|
|
444
443
|
### Names and places on the cover
|
|
445
444
|
|
|
@@ -459,11 +458,11 @@ const report = await client.reports.matchMaking({
|
|
|
459
458
|
|
|
460
459
|
| Field | Effect |
|
|
461
460
|
|---|---|
|
|
462
|
-
| `companyName` | Shown on the cover. |
|
|
463
|
-
| `logoUrl` | Cover logo. `http(s)
|
|
464
|
-
| `primaryColor` / `secondaryColor` | Headings, table headers, accents. |
|
|
461
|
+
| `companyName` | Shown on the cover, and in the Brihad running header. |
|
|
462
|
+
| `logoUrl` | Cover logo. `http(s)` or `data:image/...`. A relative URL works in the HTML only: a PDF has no base URL. |
|
|
463
|
+
| `primaryColor` / `secondaryColor` | Headings, table headers, accents, in Brihad too. A colour too pale to read prints as a darker shade. |
|
|
465
464
|
| `footerText` | Line printed in the bottom margin of every page. |
|
|
466
|
-
| `watermarkText` | Optional diagonal watermark. |
|
|
465
|
+
| `watermarkText` | Optional diagonal watermark on every page. |
|
|
467
466
|
|
|
468
467
|
**Precedence:** the `branding` you pass overrides the per-account branding embedded
|
|
469
468
|
in the report JSON, which falls back to neutral defaults.
|
|
@@ -565,12 +564,12 @@ All `*Pdf` functions accept these alongside `branding`:
|
|
|
565
564
|
| `browser` | — | Reuse a launched browser. Not closed for you. |
|
|
566
565
|
| `puppeteer` | — | Inject the module (`puppeteer-core`). |
|
|
567
566
|
| `launchOptions` | — | Passed to `puppeteer.launch()` when the SDK launches the browser. |
|
|
568
|
-
| `format` | `"A4"` | `A3`, `A5`, `Letter`, `Legal`, `Tabloid`. |
|
|
569
|
-
| `landscape` | `false` | Landscape orientation. |
|
|
567
|
+
| `format` | `"A4"` | `A3`, `A5`, `Letter`, `Legal`, `Tabloid`. Anything but A4 wins over the CSS page size. |
|
|
568
|
+
| `landscape` | `false` | Landscape orientation. Wins over the CSS page size. |
|
|
570
569
|
| `printBackground` | `true` | Print background colours. |
|
|
571
|
-
| `margin` | template's | `{ top, bottom, left, right }`, e.g. `"10mm"`. |
|
|
570
|
+
| `margin` | template's | `{ top, bottom, left, right }`, e.g. `"10mm"`. A side you leave out keeps the template's. |
|
|
572
571
|
| `scale` | `1` | Render scale, 0.1–2. |
|
|
573
|
-
| `timeoutMs` | `30000` | Time allowed for the page to load. |
|
|
572
|
+
| `timeoutMs` | `30000` | Time allowed for the page to load and, separately, to print. |
|
|
574
573
|
|
|
575
574
|
### Security
|
|
576
575
|
|