astromansion 0.1.0-alpha.5 → 0.1.0-alpha.7
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 +18 -0
- package/dist/index.cjs +301 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +362 -11
- package/dist/index.d.ts +362 -11
- package/dist/index.js +301 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1032,6 +1032,24 @@ using the custom-body endpoint's orbital fields. Their positions follow
|
|
|
1032
1032
|
the chart's actual moment; a composite uses the midpoint of both placements.
|
|
1033
1033
|
Rising-sign charts accept no bodies.
|
|
1034
1034
|
|
|
1035
|
+
A chart of one moment (`natal`, `solar_return`, `lunar_return` and
|
|
1036
|
+
`saturn_return`) can be drawn in another zodiac with `zodiac`: `tropical`
|
|
1037
|
+
(the default), `sidereal` or `draconic`. A sidereal chart reads `ayanamsa`:
|
|
1038
|
+
`true_citra` (the default), `lahiri`, `raman`, `kp` or `fagan`. Every place
|
|
1039
|
+
moves back by the ayanamsa of the chart's moment, or by the true node's
|
|
1040
|
+
longitude for a draconic chart, and the wheel's heading names the zodiac.
|
|
1041
|
+
The other kinds refuse both options.
|
|
1042
|
+
|
|
1043
|
+
```ts
|
|
1044
|
+
await client.renderChart({
|
|
1045
|
+
type: "natal",
|
|
1046
|
+
format: "svg",
|
|
1047
|
+
birth,
|
|
1048
|
+
options: { zodiac: "sidereal", ayanamsa: "lahiri" },
|
|
1049
|
+
output: "sidereal-chart.svg",
|
|
1050
|
+
});
|
|
1051
|
+
```
|
|
1052
|
+
|
|
1035
1053
|
Presets are `classic`, `minimal`, `ink`, `editorial` and `premium`. With no
|
|
1036
1054
|
style the server uses `minimal`. Colours use six hexadecimal digits, such
|
|
1037
1055
|
as `#123456`. The server validates style sections, ring order and the
|
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
ServerError: () => ServerError,
|
|
35
35
|
VERSION: () => VERSION,
|
|
36
36
|
ValidationError: () => ValidationError,
|
|
37
|
+
agePoint: () => agePoint,
|
|
37
38
|
almanac: () => almanac,
|
|
38
39
|
antiscia: () => antiscia,
|
|
39
40
|
aspects: () => aspects,
|
|
@@ -48,6 +49,7 @@ __export(index_exports, {
|
|
|
48
49
|
customBody: () => customBody,
|
|
49
50
|
customLot: () => customLot,
|
|
50
51
|
daily: () => daily,
|
|
52
|
+
decennials: () => decennials,
|
|
51
53
|
declinations: () => declinations,
|
|
52
54
|
defaultClient: () => defaultClient,
|
|
53
55
|
deleteCustomBody: () => deleteCustomBody,
|
|
@@ -59,13 +61,17 @@ __export(index_exports, {
|
|
|
59
61
|
exportPdf: () => exportPdf,
|
|
60
62
|
exportReport: () => exportReport,
|
|
61
63
|
firdaria: () => firdaria,
|
|
64
|
+
fixedStars: () => fixedStars,
|
|
65
|
+
greatConjunctions: () => greatConjunctions,
|
|
62
66
|
harmonics: () => harmonics,
|
|
63
67
|
health: () => health,
|
|
64
68
|
heliacal: () => heliacal,
|
|
65
69
|
heliocentric: () => heliocentric,
|
|
66
70
|
horary: () => horary,
|
|
71
|
+
ingresses: () => ingresses,
|
|
67
72
|
job: () => job,
|
|
68
73
|
listJobs: () => listJobs,
|
|
74
|
+
lots: () => lots,
|
|
69
75
|
lunarReturn: () => lunarReturn,
|
|
70
76
|
mansions: () => mansions,
|
|
71
77
|
midpoints: () => midpoints,
|
|
@@ -78,6 +84,7 @@ __export(index_exports, {
|
|
|
78
84
|
parans: () => parans,
|
|
79
85
|
patterns: () => patterns,
|
|
80
86
|
planetarySystem: () => planetarySystem,
|
|
87
|
+
primaryDirections: () => primaryDirections,
|
|
81
88
|
profection: () => profection,
|
|
82
89
|
progression: () => progression,
|
|
83
90
|
query: () => query,
|
|
@@ -95,16 +102,19 @@ __export(index_exports, {
|
|
|
95
102
|
saveCustomBody: () => saveCustomBody,
|
|
96
103
|
searchPlaces: () => searchPlaces,
|
|
97
104
|
setApiKey: () => setApiKey,
|
|
105
|
+
sign: () => sign,
|
|
98
106
|
solarArc: () => solarArc,
|
|
99
107
|
solarReturn: () => solarReturn,
|
|
100
108
|
stations: () => stations,
|
|
101
109
|
submitBatchJob: () => submitBatchJob,
|
|
102
110
|
submitJob: () => submitJob,
|
|
103
111
|
synastry: () => synastry,
|
|
112
|
+
temperament: () => temperament,
|
|
104
113
|
timeline: () => timeline,
|
|
105
114
|
transitHits: () => transitHits,
|
|
106
115
|
transits: () => transits,
|
|
107
116
|
vedicChart: () => vedicChart,
|
|
117
|
+
venusStar: () => venusStar,
|
|
108
118
|
vimshottari: () => vimshottari,
|
|
109
119
|
voidMoon: () => voidMoon,
|
|
110
120
|
zodiacalReleasing: () => zodiacalReleasing
|
|
@@ -394,7 +404,7 @@ var KEY_MASK = Object.freeze({
|
|
|
394
404
|
|
|
395
405
|
// package.json
|
|
396
406
|
var name = "astromansion";
|
|
397
|
-
var version = "0.1.0-alpha.
|
|
407
|
+
var version = "0.1.0-alpha.7";
|
|
398
408
|
|
|
399
409
|
// src/models/constants/package.ts
|
|
400
410
|
var PACKAGE_IDENTITY = Object.freeze({
|
|
@@ -1066,7 +1076,7 @@ function isSatelliteRow(value) {
|
|
|
1066
1076
|
return isJsonObject(value) && typeof value["name"] === "string" && Number.isInteger(value["naif_id"]) && (value["geocentric"] === void 0 || isSatelliteGeocentric(value["geocentric"]) || value["geocentric"] === null) && isSatelliteParentcentric(value["parentcentric"]) && isSatelliteProjected(value["natal_parent_projected"]);
|
|
1067
1077
|
}
|
|
1068
1078
|
function isSaturnReturnEvent(value) {
|
|
1069
|
-
return isJsonObject(value) && Number.isInteger(value["return"]) && typeof value["date"] === "string" && typeof value["time"] === "string" && typeof value["sign"] === "string" && typeof value["dms"] === "string";
|
|
1079
|
+
return isJsonObject(value) && Number.isInteger(value["return"]) && Number.isInteger(value["pass"]) && typeof value["date"] === "string" && typeof value["time"] === "string" && typeof value["jd"] === "number" && typeof value["lon"] === "number" && typeof value["sign"] === "string" && typeof value["dms"] === "string";
|
|
1070
1080
|
}
|
|
1071
1081
|
function isSaturnReturnResponse(value) {
|
|
1072
1082
|
return isJsonObject(value) && isJsonArrayOf(value["returns"], (item0) => isSaturnReturnEvent(item0));
|
|
@@ -1074,6 +1084,9 @@ function isSaturnReturnResponse(value) {
|
|
|
1074
1084
|
function isSavedCustomBody(value) {
|
|
1075
1085
|
return isJsonObject(value) && typeof value["name"] === "string" && typeof value["heliocentric"] === "boolean" && isJsonRecordOf(value["elements"], (member0) => typeof member0 === "number");
|
|
1076
1086
|
}
|
|
1087
|
+
function isSignResponse(value) {
|
|
1088
|
+
return isJsonObject(value) && typeof value["body"] === "string" && typeof value["sign"] === "string" && (value["dms"] === void 0 || typeof value["dms"] === "string" || value["dms"] === null) && (value["house"] === void 0 || Number.isInteger(value["house"]) || value["house"] === null) && typeof value["retrograde"] === "boolean" && isJsonArrayOf(value["day_signs"], (item0) => typeof item0 === "string") && (value["change"] === void 0 || typeof value["change"] === "string" || value["change"] === null) && typeof value["time_known"] === "boolean";
|
|
1089
|
+
}
|
|
1077
1090
|
function isSummaryRow(value) {
|
|
1078
1091
|
return isJsonObject(value) && typeof value["sign"] === "string" && typeof value["dms"] === "string";
|
|
1079
1092
|
}
|
|
@@ -1323,6 +1336,30 @@ function denoWriter() {
|
|
|
1323
1336
|
|
|
1324
1337
|
// src/endpointMethods.ts
|
|
1325
1338
|
var EndpointMethods = class {
|
|
1339
|
+
/**
|
|
1340
|
+
* Huber age point through the houses.
|
|
1341
|
+
*
|
|
1342
|
+
* @remarks
|
|
1343
|
+
* Sends `POST /v1/age-point`. The Python SDK names it age_point.
|
|
1344
|
+
*
|
|
1345
|
+
* Huber age point through the houses.
|
|
1346
|
+
*
|
|
1347
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
1348
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
1349
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
1350
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
1351
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
1352
|
+
*/
|
|
1353
|
+
async agePoint(fields, keywords) {
|
|
1354
|
+
const call = RequestBodies.chart("agePoint", fields, keywords, false);
|
|
1355
|
+
const answer = await this.request("POST", "/v1/age-point", {
|
|
1356
|
+
json: call.json,
|
|
1357
|
+
technique: "age_point",
|
|
1358
|
+
enveloped: true,
|
|
1359
|
+
signal: call.signal
|
|
1360
|
+
});
|
|
1361
|
+
return readWrapped(answer, isTechniqueEnvelope, "agePoint");
|
|
1362
|
+
}
|
|
1326
1363
|
/**
|
|
1327
1364
|
* Eclipses, retrogrades, planetary hours, and void Moon periods.
|
|
1328
1365
|
*
|
|
@@ -1669,6 +1706,30 @@ var EndpointMethods = class {
|
|
|
1669
1706
|
});
|
|
1670
1707
|
return readWrapped(answer, isTechniqueEnvelope, "daily");
|
|
1671
1708
|
}
|
|
1709
|
+
/**
|
|
1710
|
+
* Valens' decennials.
|
|
1711
|
+
*
|
|
1712
|
+
* @remarks
|
|
1713
|
+
* Sends `POST /v1/decennials`. The Python SDK names it decennials.
|
|
1714
|
+
*
|
|
1715
|
+
* Valens' decennials.
|
|
1716
|
+
*
|
|
1717
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
1718
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
1719
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
1720
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
1721
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
1722
|
+
*/
|
|
1723
|
+
async decennials(fields, keywords) {
|
|
1724
|
+
const call = RequestBodies.chart("decennials", fields, keywords, false);
|
|
1725
|
+
const answer = await this.request("POST", "/v1/decennials", {
|
|
1726
|
+
json: call.json,
|
|
1727
|
+
technique: "decennials",
|
|
1728
|
+
enveloped: true,
|
|
1729
|
+
signal: call.signal
|
|
1730
|
+
});
|
|
1731
|
+
return readWrapped(answer, isTechniqueEnvelope, "decennials");
|
|
1732
|
+
}
|
|
1672
1733
|
/**
|
|
1673
1734
|
* Declination parallels.
|
|
1674
1735
|
*
|
|
@@ -1936,6 +1997,59 @@ var EndpointMethods = class {
|
|
|
1936
1997
|
});
|
|
1937
1998
|
return readWrapped(answer, isTechniqueEnvelope, "firdaria");
|
|
1938
1999
|
}
|
|
2000
|
+
/**
|
|
2001
|
+
* Fixed stars and the points on them.
|
|
2002
|
+
*
|
|
2003
|
+
* @remarks
|
|
2004
|
+
* Sends `POST /v1/fixed-stars`. The Python SDK names it fixed_stars.
|
|
2005
|
+
*
|
|
2006
|
+
* Fixed stars and the points on them.
|
|
2007
|
+
*
|
|
2008
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
2009
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
2010
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
2011
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
2012
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
2013
|
+
*/
|
|
2014
|
+
async fixedStars(fields, keywords) {
|
|
2015
|
+
const call = RequestBodies.chart("fixedStars", fields, keywords, false);
|
|
2016
|
+
const answer = await this.request("POST", "/v1/fixed-stars", {
|
|
2017
|
+
json: call.json,
|
|
2018
|
+
technique: "fixed_stars",
|
|
2019
|
+
enveloped: true,
|
|
2020
|
+
signal: call.signal
|
|
2021
|
+
});
|
|
2022
|
+
return readWrapped(answer, isTechniqueEnvelope, "fixedStars");
|
|
2023
|
+
}
|
|
2024
|
+
/**
|
|
2025
|
+
* Jupiter and Saturn's great conjunctions.
|
|
2026
|
+
*
|
|
2027
|
+
* @remarks
|
|
2028
|
+
* Sends `POST /v1/great-conjunctions`. The Python SDK names it great_conjunctions.
|
|
2029
|
+
*
|
|
2030
|
+
* Jupiter and Saturn's great conjunctions.
|
|
2031
|
+
*
|
|
2032
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
2033
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
2034
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
2035
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
2036
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
2037
|
+
*/
|
|
2038
|
+
async greatConjunctions(fields, keywords) {
|
|
2039
|
+
const call = RequestBodies.chart(
|
|
2040
|
+
"greatConjunctions",
|
|
2041
|
+
fields,
|
|
2042
|
+
keywords,
|
|
2043
|
+
false
|
|
2044
|
+
);
|
|
2045
|
+
const answer = await this.request("POST", "/v1/great-conjunctions", {
|
|
2046
|
+
json: call.json,
|
|
2047
|
+
technique: "great_conjunctions",
|
|
2048
|
+
enveloped: true,
|
|
2049
|
+
signal: call.signal
|
|
2050
|
+
});
|
|
2051
|
+
return readWrapped(answer, isTechniqueEnvelope, "greatConjunctions");
|
|
2052
|
+
}
|
|
1939
2053
|
/**
|
|
1940
2054
|
* Harmonic chart.
|
|
1941
2055
|
*
|
|
@@ -2056,6 +2170,30 @@ var EndpointMethods = class {
|
|
|
2056
2170
|
});
|
|
2057
2171
|
return readWrapped(answer, isTechniqueEnvelope, "horary");
|
|
2058
2172
|
}
|
|
2173
|
+
/**
|
|
2174
|
+
* Equinoxes, solstices, and the Aries ingress chart.
|
|
2175
|
+
*
|
|
2176
|
+
* @remarks
|
|
2177
|
+
* Sends `POST /v1/ingresses`. The Python SDK names it ingresses.
|
|
2178
|
+
*
|
|
2179
|
+
* Equinoxes, solstices, and the Aries ingress chart.
|
|
2180
|
+
*
|
|
2181
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
2182
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
2183
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
2184
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
2185
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
2186
|
+
*/
|
|
2187
|
+
async ingresses(fields, keywords) {
|
|
2188
|
+
const call = RequestBodies.chart("ingresses", fields, keywords, false);
|
|
2189
|
+
const answer = await this.request("POST", "/v1/ingresses", {
|
|
2190
|
+
json: call.json,
|
|
2191
|
+
technique: "ingresses",
|
|
2192
|
+
enveloped: true,
|
|
2193
|
+
signal: call.signal
|
|
2194
|
+
});
|
|
2195
|
+
return readWrapped(answer, isTechniqueEnvelope, "ingresses");
|
|
2196
|
+
}
|
|
2059
2197
|
/**
|
|
2060
2198
|
* Inspect job status.
|
|
2061
2199
|
*
|
|
@@ -2109,6 +2247,30 @@ var EndpointMethods = class {
|
|
|
2109
2247
|
});
|
|
2110
2248
|
return readResult(answer, isJobListResponse, "listJobs");
|
|
2111
2249
|
}
|
|
2250
|
+
/**
|
|
2251
|
+
* All 38 classical Arabic lots.
|
|
2252
|
+
*
|
|
2253
|
+
* @remarks
|
|
2254
|
+
* Sends `POST /v1/lots`. The Python SDK names it lots.
|
|
2255
|
+
*
|
|
2256
|
+
* All 38 classical Arabic lots.
|
|
2257
|
+
*
|
|
2258
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
2259
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
2260
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
2261
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
2262
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
2263
|
+
*/
|
|
2264
|
+
async lots(fields, keywords) {
|
|
2265
|
+
const call = RequestBodies.chart("lots", fields, keywords, false);
|
|
2266
|
+
const answer = await this.request("POST", "/v1/lots", {
|
|
2267
|
+
json: call.json,
|
|
2268
|
+
technique: "lots",
|
|
2269
|
+
enveloped: true,
|
|
2270
|
+
signal: call.signal
|
|
2271
|
+
});
|
|
2272
|
+
return readWrapped(answer, isTechniqueEnvelope, "lots");
|
|
2273
|
+
}
|
|
2112
2274
|
/**
|
|
2113
2275
|
* Lunar return charts.
|
|
2114
2276
|
*
|
|
@@ -2421,6 +2583,35 @@ var EndpointMethods = class {
|
|
|
2421
2583
|
});
|
|
2422
2584
|
return readResult(answer, isPlanetarySystemResponse, "planetarySystem");
|
|
2423
2585
|
}
|
|
2586
|
+
/**
|
|
2587
|
+
* Primary directions of the Ascendant and the Midheaven.
|
|
2588
|
+
*
|
|
2589
|
+
* @remarks
|
|
2590
|
+
* Sends `POST /v1/primary-directions`. The Python SDK names it primary_directions.
|
|
2591
|
+
*
|
|
2592
|
+
* Primary directions of the Ascendant and the Midheaven.
|
|
2593
|
+
*
|
|
2594
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
2595
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
2596
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
2597
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
2598
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
2599
|
+
*/
|
|
2600
|
+
async primaryDirections(fields, keywords) {
|
|
2601
|
+
const call = RequestBodies.chart(
|
|
2602
|
+
"primaryDirections",
|
|
2603
|
+
fields,
|
|
2604
|
+
keywords,
|
|
2605
|
+
false
|
|
2606
|
+
);
|
|
2607
|
+
const answer = await this.request("POST", "/v1/primary-directions", {
|
|
2608
|
+
json: call.json,
|
|
2609
|
+
technique: "primary_directions",
|
|
2610
|
+
enveloped: true,
|
|
2611
|
+
signal: call.signal
|
|
2612
|
+
});
|
|
2613
|
+
return readWrapped(answer, isTechniqueEnvelope, "primaryDirections");
|
|
2614
|
+
}
|
|
2424
2615
|
/**
|
|
2425
2616
|
* Annual profections.
|
|
2426
2617
|
*
|
|
@@ -2608,8 +2799,8 @@ var EndpointMethods = class {
|
|
|
2608
2799
|
* read is refused.
|
|
2609
2800
|
*
|
|
2610
2801
|
* Every heading names the drawn frame's Ascendant sign and degree.
|
|
2611
|
-
* `options.lang` selects `en` (the default) or `tr` for the heading
|
|
2612
|
-
*
|
|
2802
|
+
* `options.lang` selects `en` (the default) or `tr` for the heading,
|
|
2803
|
+
* the rising centre caption, and the bodies' labels on the wheel.
|
|
2613
2804
|
*
|
|
2614
2805
|
* `options.style.show.watermark` controls faint branding: the centre
|
|
2615
2806
|
* logo, or a wordmark below the zodiac on a rising-sign chart.
|
|
@@ -2801,6 +2992,34 @@ var EndpointMethods = class {
|
|
|
2801
2992
|
});
|
|
2802
2993
|
return readResult(answer, isGeoSearchResponse, "searchPlaces");
|
|
2803
2994
|
}
|
|
2995
|
+
/**
|
|
2996
|
+
* A body's sign at a birth.
|
|
2997
|
+
*
|
|
2998
|
+
* @remarks
|
|
2999
|
+
* Sends `POST /v1/sign`. The Python SDK names it sign.
|
|
3000
|
+
*
|
|
3001
|
+
* Return one body's sign at a birth, its house and motion, and the signs it held through the birth's day.
|
|
3002
|
+
*
|
|
3003
|
+
* The Sun, the Moon and the planets are open to every plan. Any other
|
|
3004
|
+
* catalogued minor planet or comet, such as Juno, needs the named catalog.
|
|
3005
|
+
* A birth without a time is read through its local day, so a day the body
|
|
3006
|
+
* changed sign names both signs and the local time of the change.
|
|
3007
|
+
*
|
|
3008
|
+
* @param fields - The request body, as {@link SignRequest} describes it, sent as given. signal may stand beside its fields.
|
|
3009
|
+
* @param keywords - signal, and output for a document, when they come apart from the body.
|
|
3010
|
+
* @returns The answer as a Result, checked against {@link SignResponse}.
|
|
3011
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
3012
|
+
*/
|
|
3013
|
+
async sign(fields, keywords) {
|
|
3014
|
+
const call = RequestBodies.body("sign", fields, keywords, false);
|
|
3015
|
+
const answer = await this.request("POST", "/v1/sign", {
|
|
3016
|
+
json: call.json,
|
|
3017
|
+
technique: "sign",
|
|
3018
|
+
enveloped: false,
|
|
3019
|
+
signal: call.signal
|
|
3020
|
+
});
|
|
3021
|
+
return readResult(answer, isSignResponse, "sign");
|
|
3022
|
+
}
|
|
2804
3023
|
/**
|
|
2805
3024
|
* Solar arc directions.
|
|
2806
3025
|
*
|
|
@@ -2956,6 +3175,30 @@ var EndpointMethods = class {
|
|
|
2956
3175
|
});
|
|
2957
3176
|
return readWrapped(answer, isTechniqueEnvelope, "synastry");
|
|
2958
3177
|
}
|
|
3178
|
+
/**
|
|
3179
|
+
* Temperament by Lilly's method.
|
|
3180
|
+
*
|
|
3181
|
+
* @remarks
|
|
3182
|
+
* Sends `POST /v1/temperament`. The Python SDK names it temperament.
|
|
3183
|
+
*
|
|
3184
|
+
* Temperament by Lilly's method.
|
|
3185
|
+
*
|
|
3186
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
3187
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
3188
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
3189
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
3190
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
3191
|
+
*/
|
|
3192
|
+
async temperament(fields, keywords) {
|
|
3193
|
+
const call = RequestBodies.chart("temperament", fields, keywords, false);
|
|
3194
|
+
const answer = await this.request("POST", "/v1/temperament", {
|
|
3195
|
+
json: call.json,
|
|
3196
|
+
technique: "temperament",
|
|
3197
|
+
enveloped: true,
|
|
3198
|
+
signal: call.signal
|
|
3199
|
+
});
|
|
3200
|
+
return readWrapped(answer, isTechniqueEnvelope, "temperament");
|
|
3201
|
+
}
|
|
2959
3202
|
/**
|
|
2960
3203
|
* Life timing timeline.
|
|
2961
3204
|
*
|
|
@@ -3052,6 +3295,30 @@ var EndpointMethods = class {
|
|
|
3052
3295
|
});
|
|
3053
3296
|
return readWrapped(answer, isTechniqueEnvelope, "vedicChart");
|
|
3054
3297
|
}
|
|
3298
|
+
/**
|
|
3299
|
+
* Venus star point and the eight-year star.
|
|
3300
|
+
*
|
|
3301
|
+
* @remarks
|
|
3302
|
+
* Sends `POST /v1/venus-star-point`. The Python SDK names it venus_star.
|
|
3303
|
+
*
|
|
3304
|
+
* Venus star point and the eight-year star.
|
|
3305
|
+
*
|
|
3306
|
+
* @param fields - The birth fields, flat: date, time, lat, lon, timezone, and houses. options and signal may stand beside them.
|
|
3307
|
+
* @param keywords - The method's other arguments, when they come apart from the birth fields.
|
|
3308
|
+
* @returns The answer as a Result reading the result inside it, after the answer was checked against {@link TechniqueEnvelope}.
|
|
3309
|
+
* @throws {@link ValidationError} when a birth field is malformed, before anything is sent, or when the API refuses the body.
|
|
3310
|
+
* @throws {@link AstroMansionError} or the subclass that names the cause, as {@link AstroMansion.request} describes. The code unexpected_answer means the answer did not have its published shape.
|
|
3311
|
+
*/
|
|
3312
|
+
async venusStar(fields, keywords) {
|
|
3313
|
+
const call = RequestBodies.chart("venusStar", fields, keywords, false);
|
|
3314
|
+
const answer = await this.request("POST", "/v1/venus-star-point", {
|
|
3315
|
+
json: call.json,
|
|
3316
|
+
technique: "venus_star",
|
|
3317
|
+
enveloped: true,
|
|
3318
|
+
signal: call.signal
|
|
3319
|
+
});
|
|
3320
|
+
return readWrapped(answer, isTechniqueEnvelope, "venusStar");
|
|
3321
|
+
}
|
|
3055
3322
|
/**
|
|
3056
3323
|
* Vimshottari dasha periods.
|
|
3057
3324
|
*
|
|
@@ -3923,6 +4190,9 @@ async function bodies(...args) {
|
|
|
3923
4190
|
}
|
|
3924
4191
|
|
|
3925
4192
|
// src/endpointShortcuts.ts
|
|
4193
|
+
async function agePoint(...args) {
|
|
4194
|
+
return defaultClient().agePoint(...args);
|
|
4195
|
+
}
|
|
3926
4196
|
async function almanac(...args) {
|
|
3927
4197
|
return defaultClient().almanac(...args);
|
|
3928
4198
|
}
|
|
@@ -3962,6 +4232,9 @@ async function customLot(...args) {
|
|
|
3962
4232
|
async function daily(...args) {
|
|
3963
4233
|
return defaultClient().daily(...args);
|
|
3964
4234
|
}
|
|
4235
|
+
async function decennials(...args) {
|
|
4236
|
+
return defaultClient().decennials(...args);
|
|
4237
|
+
}
|
|
3965
4238
|
async function declinations(...args) {
|
|
3966
4239
|
return defaultClient().declinations(...args);
|
|
3967
4240
|
}
|
|
@@ -3992,6 +4265,12 @@ async function exportReport(...args) {
|
|
|
3992
4265
|
async function firdaria(...args) {
|
|
3993
4266
|
return defaultClient().firdaria(...args);
|
|
3994
4267
|
}
|
|
4268
|
+
async function fixedStars(...args) {
|
|
4269
|
+
return defaultClient().fixedStars(...args);
|
|
4270
|
+
}
|
|
4271
|
+
async function greatConjunctions(...args) {
|
|
4272
|
+
return defaultClient().greatConjunctions(...args);
|
|
4273
|
+
}
|
|
3995
4274
|
async function harmonics(...args) {
|
|
3996
4275
|
return defaultClient().harmonics(...args);
|
|
3997
4276
|
}
|
|
@@ -4007,12 +4286,18 @@ async function heliocentric(...args) {
|
|
|
4007
4286
|
async function horary(...args) {
|
|
4008
4287
|
return defaultClient().horary(...args);
|
|
4009
4288
|
}
|
|
4289
|
+
async function ingresses(...args) {
|
|
4290
|
+
return defaultClient().ingresses(...args);
|
|
4291
|
+
}
|
|
4010
4292
|
async function job(...args) {
|
|
4011
4293
|
return defaultClient().job(...args);
|
|
4012
4294
|
}
|
|
4013
4295
|
async function listJobs(...args) {
|
|
4014
4296
|
return defaultClient().listJobs(...args);
|
|
4015
4297
|
}
|
|
4298
|
+
async function lots(...args) {
|
|
4299
|
+
return defaultClient().lots(...args);
|
|
4300
|
+
}
|
|
4016
4301
|
async function lunarReturn(...args) {
|
|
4017
4302
|
return defaultClient().lunarReturn(...args);
|
|
4018
4303
|
}
|
|
@@ -4049,6 +4334,9 @@ async function patterns(...args) {
|
|
|
4049
4334
|
async function planetarySystem(...args) {
|
|
4050
4335
|
return defaultClient().planetarySystem(...args);
|
|
4051
4336
|
}
|
|
4337
|
+
async function primaryDirections(...args) {
|
|
4338
|
+
return defaultClient().primaryDirections(...args);
|
|
4339
|
+
}
|
|
4052
4340
|
async function profection(...args) {
|
|
4053
4341
|
return defaultClient().profection(...args);
|
|
4054
4342
|
}
|
|
@@ -4091,6 +4379,9 @@ async function saveCustomBody(...args) {
|
|
|
4091
4379
|
async function searchPlaces(...args) {
|
|
4092
4380
|
return defaultClient().searchPlaces(...args);
|
|
4093
4381
|
}
|
|
4382
|
+
async function sign(...args) {
|
|
4383
|
+
return defaultClient().sign(...args);
|
|
4384
|
+
}
|
|
4094
4385
|
async function solarArc(...args) {
|
|
4095
4386
|
return defaultClient().solarArc(...args);
|
|
4096
4387
|
}
|
|
@@ -4109,6 +4400,9 @@ async function submitJob(...args) {
|
|
|
4109
4400
|
async function synastry(...args) {
|
|
4110
4401
|
return defaultClient().synastry(...args);
|
|
4111
4402
|
}
|
|
4403
|
+
async function temperament(...args) {
|
|
4404
|
+
return defaultClient().temperament(...args);
|
|
4405
|
+
}
|
|
4112
4406
|
async function timeline(...args) {
|
|
4113
4407
|
return defaultClient().timeline(...args);
|
|
4114
4408
|
}
|
|
@@ -4121,6 +4415,9 @@ async function transits(...args) {
|
|
|
4121
4415
|
async function vedicChart(...args) {
|
|
4122
4416
|
return defaultClient().vedicChart(...args);
|
|
4123
4417
|
}
|
|
4418
|
+
async function venusStar(...args) {
|
|
4419
|
+
return defaultClient().venusStar(...args);
|
|
4420
|
+
}
|
|
4124
4421
|
async function vimshottari(...args) {
|
|
4125
4422
|
return defaultClient().vimshottari(...args);
|
|
4126
4423
|
}
|