import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; /** * 节日筛选类型,默认 all。 */ export declare const HolidayType: { readonly All: "all"; readonly Legal: "legal"; readonly LegalRest: "legal_rest"; readonly LegalWorkday: "legal_workday"; readonly Solar: "solar"; readonly Lunar: "lunar"; readonly Term: "term"; }; /** * 节日筛选类型,默认 all。 */ export type HolidayType = ClosedEnum; export declare const HolidayType$zodSchema: z.ZodEnum<{ all: "all"; legal: "legal"; legal_rest: "legal_rest"; legal_workday: "legal_workday"; solar: "solar"; lunar: "lunar"; term: "term"; }>; export type GetMiscHolidayCalendarRequest = { date?: string | undefined; month?: string | undefined; year?: string | undefined; timezone?: string | undefined; holiday_type?: HolidayType | undefined; include_nearby?: boolean | undefined; nearby_limit?: number | undefined; }; export declare const GetMiscHolidayCalendarRequest$zodSchema: z.ZodType; /** * 请求参数错误。常见原因: * * @remarks * - `date`、`month`、`year` 未传或同时传入多个 * - 日期格式错误:`date` 必须为 `YYYY-MM-DD`、`month` 必须为 `YYYY-MM`、`year` 必须为 `YYYY` * - `holiday_type` 非法 * - `timezone` 非法 */ export type GetMiscHolidayCalendarBadRequestResponseBody = { code?: number | undefined; message?: string | undefined; }; export declare const GetMiscHolidayCalendarBadRequestResponseBody$zodSchema: z.ZodType; /** * 请求参数回显。 */ export type Query = { date?: string | undefined; month?: string | undefined; year?: string | undefined; timezone?: string | undefined; holiday_type?: string | undefined; include_nearby?: boolean | undefined; nearby_limit?: number | undefined; }; export declare const Query$zodSchema: z.ZodType; /** * 统计摘要。 */ export type Summary = { total_days?: number | undefined; weekend_days?: number | undefined; workdays?: number | undefined; rest_days?: number | undefined; holiday_events?: number | undefined; legal_rest_days?: number | undefined; legal_workdays?: number | undefined; }; export declare const Summary$zodSchema: z.ZodType; export type Day = { date?: string | undefined; year?: number | undefined; month?: number | undefined; day?: number | undefined; weekday_cn?: string | undefined; is_weekend?: boolean | undefined; is_workday?: boolean | undefined; is_rest_day?: boolean | undefined; is_holiday?: boolean | undefined; legal_holiday_name?: string | undefined; legal_holiday_type?: string | undefined; solar_festival?: string | undefined; lunar_festival?: string | undefined; solar_term?: string | undefined; lunar_year?: number | undefined; lunar_month?: number | undefined; lunar_day?: number | undefined; lunar_month_name?: string | undefined; lunar_day_name?: string | undefined; ganzhi_year?: string | undefined; ganzhi_month?: string | undefined; ganzhi_day?: string | undefined; }; export declare const Day$zodSchema: z.ZodType; /** * 事件类型。 */ export declare const GetMiscHolidayCalendarType: { readonly LegalRest: "legal_rest"; readonly LegalWorkdayAdjust: "legal_workday_adjust"; readonly SolarFestival: "solar_festival"; readonly LunarFestival: "lunar_festival"; readonly SolarTerm: "solar_term"; }; /** * 事件类型。 */ export type GetMiscHolidayCalendarType = ClosedEnum; export declare const GetMiscHolidayCalendarType$zodSchema: z.ZodEnum<{ legal_rest: "legal_rest"; solar_festival: "solar_festival"; lunar_festival: "lunar_festival"; solar_term: "solar_term"; legal_workday_adjust: "legal_workday_adjust"; }>; export type Holiday = { date?: string | undefined; name?: string | undefined; type?: GetMiscHolidayCalendarType | undefined; is_workday?: boolean | undefined; }; export declare const Holiday$zodSchema: z.ZodType; export type Previous = { date?: string | undefined; name?: string | undefined; type?: string | undefined; }; export declare const Previous$zodSchema: z.ZodType; export type Next = { date?: string | undefined; name?: string | undefined; type?: string | undefined; }; export declare const Next$zodSchema: z.ZodType; /** * 前后最近节日,仅 include_nearby=true 且 date 模式返回。 */ export type Nearby = { previous?: Array | undefined; next?: Array | undefined; }; export declare const Nearby$zodSchema: z.ZodType; export type GetMiscHolidayCalendarData = { mode?: string | undefined; query?: Query | undefined; summary?: Summary | undefined; days?: Array | undefined; holidays?: Array | undefined; nearby?: Nearby | undefined; }; export declare const GetMiscHolidayCalendarData$zodSchema: z.ZodType; /** * 查询成功,返回指定范围的万年历与节假日信息。 */ export type GetMiscHolidayCalendarResponseBody = { code?: number | undefined; message?: string | undefined; data?: GetMiscHolidayCalendarData | undefined; }; export declare const GetMiscHolidayCalendarResponseBody$zodSchema: z.ZodType; export type GetMiscHolidayCalendarResponse = GetMiscHolidayCalendarResponseBody | GetMiscHolidayCalendarBadRequestResponseBody; export declare const GetMiscHolidayCalendarResponse$zodSchema: z.ZodType; //# sourceMappingURL=getmischolidaycalendarop.d.ts.map