You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"This endpoint calculates the transits for a given date but does not require a location or birth data.\n\n**Do not use this for personalised horoscopes**",
314
+
summary: "Calculate a generic transit chart",
315
+
responses: {
316
+
200: {
317
+
description: "OK",
318
+
content: {
319
+
"application/json": {
320
+
schema: resolver(
321
+
baseResponse.extend({
322
+
data: calculateGenericTransitChartResponse,
323
+
}),
324
+
),
325
+
},
326
+
},
327
+
},
328
+
400: {
329
+
description: "User Error",
330
+
content: {
331
+
"application/json": {
332
+
schema: resolver(errorResponse),
333
+
},
334
+
},
335
+
},
336
+
},
337
+
}),
338
+
validator(
339
+
"query",
340
+
z.object({
341
+
year: z.coerce
342
+
.number()
343
+
.min(1900)
344
+
.max(2100)
345
+
.describe("The UTC year to calculate transits for"),
346
+
month: z.coerce
347
+
.number()
348
+
.min(1)
349
+
.max(12)
350
+
.describe(
351
+
"The UTC month to calculate transits for. NOT zero-indexed",
352
+
),
353
+
day: z.coerce
354
+
.number()
355
+
.min(1)
356
+
.max(31)
357
+
.describe("The UTC day to calculate transits for"),
358
+
hour: z.coerce
359
+
.number()
360
+
.min(0)
361
+
.max(23)
362
+
.default(12)
363
+
.optional()
364
+
.describe("The UTC hour to calculate transits for"),
365
+
minute: z.coerce
366
+
.number()
367
+
.min(0)
368
+
.max(59)
369
+
.default(0)
370
+
.optional()
371
+
.describe("The UTC minute to calculate transits for"),
0 commit comments