@wix/auto_sdk_calendar_schedule-time-frames 1.0.38 → 1.0.40
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/build/cjs/schemas.d.ts +76 -0
- package/build/cjs/schemas.js +206 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +76 -0
- package/build/es/schemas.mjs +166 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +76 -0
- package/build/internal/cjs/schemas.js +206 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +76 -0
- package/build/internal/es/schemas.mjs +166 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const GetScheduleTimeFrameRequest: z.ZodObject<{
|
|
4
|
+
_id: z.ZodString;
|
|
5
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const GetScheduleTimeFrameResponse: z.ZodObject<{
|
|
10
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
NONE: "NONE";
|
|
13
|
+
FINITE: "FINITE";
|
|
14
|
+
INFINITE: "INFINITE";
|
|
15
|
+
}>>;
|
|
16
|
+
firstEventStartDate: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
lastEventEndDate: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
adjustedFirstEventStartDate: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
adjustedLastEventEndDate: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const ListScheduleTimeFramesRequest: z.ZodObject<{
|
|
39
|
+
ids: z.ZodArray<z.ZodString>;
|
|
40
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const ListScheduleTimeFramesResponse: z.ZodObject<{
|
|
45
|
+
scheduleTimeFrames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
47
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
NONE: "NONE";
|
|
49
|
+
FINITE: "FINITE";
|
|
50
|
+
INFINITE: "INFINITE";
|
|
51
|
+
}>>;
|
|
52
|
+
firstEventStartDate: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
lastEventEndDate: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
59
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
60
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
adjustedFirstEventStartDate: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
64
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
adjustedLastEventEndDate: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
|
|
76
|
+
export { GetScheduleTimeFrameRequest, GetScheduleTimeFrameResponse, ListScheduleTimeFramesRequest, ListScheduleTimeFramesResponse };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
GetScheduleTimeFrameRequest: () => GetScheduleTimeFrameRequest,
|
|
34
|
+
GetScheduleTimeFrameResponse: () => GetScheduleTimeFrameResponse,
|
|
35
|
+
ListScheduleTimeFramesRequest: () => ListScheduleTimeFramesRequest,
|
|
36
|
+
ListScheduleTimeFramesResponse: () => ListScheduleTimeFramesResponse
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
39
|
+
|
|
40
|
+
// src/calendar-v3-schedule-time-frame-schedule-time-frames.schemas.ts
|
|
41
|
+
var z = __toESM(require("zod"));
|
|
42
|
+
var GetScheduleTimeFrameRequest = z.object({
|
|
43
|
+
_id: z.string().describe(
|
|
44
|
+
"[Schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\nID for which to retrieve the schedule time frame."
|
|
45
|
+
).regex(
|
|
46
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
47
|
+
"Must be a valid GUID"
|
|
48
|
+
),
|
|
49
|
+
options: z.object({
|
|
50
|
+
timeZone: z.string().describe(
|
|
51
|
+
"Time zone for adjusting the times of the returned schedule time frame.\n\nDefault: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)"
|
|
52
|
+
).optional().nullable()
|
|
53
|
+
}).optional()
|
|
54
|
+
});
|
|
55
|
+
var GetScheduleTimeFrameResponse = z.object({
|
|
56
|
+
_id: z.string().describe(
|
|
57
|
+
"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\nto which the time frame belongs."
|
|
58
|
+
).regex(
|
|
59
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
60
|
+
"Must be a valid GUID"
|
|
61
|
+
).optional().nullable(),
|
|
62
|
+
status: z.enum(["NONE", "FINITE", "INFINITE"]).describe(
|
|
63
|
+
"Information about the presence of recurring events within the schedule.\n\nSupported values:\n+ `NONE`: No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) are scheduled within the schedule.\n+ `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\n+ `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern."
|
|
64
|
+
).optional(),
|
|
65
|
+
firstEventStartDate: z.object({
|
|
66
|
+
localDate: z.string().describe(
|
|
67
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
68
|
+
).optional().nullable(),
|
|
69
|
+
timeZone: z.string().describe(
|
|
70
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
71
|
+
).optional().nullable(),
|
|
72
|
+
utcDate: z.date().describe(
|
|
73
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
74
|
+
).optional().nullable()
|
|
75
|
+
}).describe(
|
|
76
|
+
"Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nwithin the schedule. Identical to `event.start.localDate`. Available only if\n`status` is set to `FINITE` or `INFINITE`."
|
|
77
|
+
).optional(),
|
|
78
|
+
lastEventEndDate: z.object({
|
|
79
|
+
localDate: z.string().describe(
|
|
80
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
81
|
+
).optional().nullable(),
|
|
82
|
+
timeZone: z.string().describe(
|
|
83
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
84
|
+
).optional().nullable(),
|
|
85
|
+
utcDate: z.date().describe(
|
|
86
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
87
|
+
).optional().nullable()
|
|
88
|
+
}).describe(
|
|
89
|
+
"End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule. Identical to `event.end.localDate`. Available only if\n`status` is set to `FINITE`."
|
|
90
|
+
).optional(),
|
|
91
|
+
adjustedFirstEventStartDate: z.object({
|
|
92
|
+
localDate: z.string().describe(
|
|
93
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
94
|
+
).optional().nullable(),
|
|
95
|
+
timeZone: z.string().describe(
|
|
96
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
97
|
+
).optional().nullable(),
|
|
98
|
+
utcDate: z.date().describe(
|
|
99
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
100
|
+
).optional().nullable()
|
|
101
|
+
}).describe(
|
|
102
|
+
"Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule, adjusted to `timeZone` of the\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\nor the `timeZone` specified in the request.\nIdentical to `event.adjustedStart.localDate`."
|
|
103
|
+
).optional(),
|
|
104
|
+
adjustedLastEventEndDate: z.object({
|
|
105
|
+
localDate: z.string().describe(
|
|
106
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
107
|
+
).optional().nullable(),
|
|
108
|
+
timeZone: z.string().describe(
|
|
109
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
110
|
+
).optional().nullable(),
|
|
111
|
+
utcDate: z.date().describe(
|
|
112
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
113
|
+
).optional().nullable()
|
|
114
|
+
}).describe(
|
|
115
|
+
"End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule, adjusted to `timeZone` of the\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\nor the `timeZone` specified in the request.\nIdentical to `event.adjustedEnd.localDate`."
|
|
116
|
+
).optional(),
|
|
117
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
118
|
+
"Revision number, which increments by 1 each time the schedule time frame is updated."
|
|
119
|
+
).optional().nullable()
|
|
120
|
+
});
|
|
121
|
+
var ListScheduleTimeFramesRequest = z.object({
|
|
122
|
+
ids: z.array(z.string()).min(1).max(100),
|
|
123
|
+
options: z.object({
|
|
124
|
+
timeZone: z.string().describe(
|
|
125
|
+
"Time zone for adjusting the times of the returned schedule time frames.\n\nDefault: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)"
|
|
126
|
+
).optional().nullable()
|
|
127
|
+
}).optional()
|
|
128
|
+
});
|
|
129
|
+
var ListScheduleTimeFramesResponse = z.object({
|
|
130
|
+
scheduleTimeFrames: z.array(
|
|
131
|
+
z.object({
|
|
132
|
+
_id: z.string().describe(
|
|
133
|
+
"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\nto which the time frame belongs."
|
|
134
|
+
).regex(
|
|
135
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
136
|
+
"Must be a valid GUID"
|
|
137
|
+
).optional().nullable(),
|
|
138
|
+
status: z.enum(["NONE", "FINITE", "INFINITE"]).describe(
|
|
139
|
+
"Information about the presence of recurring events within the schedule.\n\nSupported values:\n+ `NONE`: No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) are scheduled within the schedule.\n+ `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\n+ `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern."
|
|
140
|
+
).optional(),
|
|
141
|
+
firstEventStartDate: z.object({
|
|
142
|
+
localDate: z.string().describe(
|
|
143
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
144
|
+
).optional().nullable(),
|
|
145
|
+
timeZone: z.string().describe(
|
|
146
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
147
|
+
).optional().nullable(),
|
|
148
|
+
utcDate: z.date().describe(
|
|
149
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
150
|
+
).optional().nullable()
|
|
151
|
+
}).describe(
|
|
152
|
+
"Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nwithin the schedule. Identical to `event.start.localDate`. Available only if\n`status` is set to `FINITE` or `INFINITE`."
|
|
153
|
+
).optional(),
|
|
154
|
+
lastEventEndDate: z.object({
|
|
155
|
+
localDate: z.string().describe(
|
|
156
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
157
|
+
).optional().nullable(),
|
|
158
|
+
timeZone: z.string().describe(
|
|
159
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
160
|
+
).optional().nullable(),
|
|
161
|
+
utcDate: z.date().describe(
|
|
162
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
163
|
+
).optional().nullable()
|
|
164
|
+
}).describe(
|
|
165
|
+
"End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule. Identical to `event.end.localDate`. Available only if\n`status` is set to `FINITE`."
|
|
166
|
+
).optional(),
|
|
167
|
+
adjustedFirstEventStartDate: z.object({
|
|
168
|
+
localDate: z.string().describe(
|
|
169
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
170
|
+
).optional().nullable(),
|
|
171
|
+
timeZone: z.string().describe(
|
|
172
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
173
|
+
).optional().nullable(),
|
|
174
|
+
utcDate: z.date().describe(
|
|
175
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
176
|
+
).optional().nullable()
|
|
177
|
+
}).describe(
|
|
178
|
+
"Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule, adjusted to `timeZone` of the\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\nor the `timeZone` specified in the request.\nIdentical to `event.adjustedStart.localDate`."
|
|
179
|
+
).optional(),
|
|
180
|
+
adjustedLastEventEndDate: z.object({
|
|
181
|
+
localDate: z.string().describe(
|
|
182
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
183
|
+
).optional().nullable(),
|
|
184
|
+
timeZone: z.string().describe(
|
|
185
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
186
|
+
).optional().nullable(),
|
|
187
|
+
utcDate: z.date().describe(
|
|
188
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
189
|
+
).optional().nullable()
|
|
190
|
+
}).describe(
|
|
191
|
+
"End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule, adjusted to `timeZone` of the\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\nor the `timeZone` specified in the request.\nIdentical to `event.adjustedEnd.localDate`."
|
|
192
|
+
).optional(),
|
|
193
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
194
|
+
"Revision number, which increments by 1 each time the schedule time frame is updated."
|
|
195
|
+
).optional().nullable()
|
|
196
|
+
})
|
|
197
|
+
).optional()
|
|
198
|
+
});
|
|
199
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
200
|
+
0 && (module.exports = {
|
|
201
|
+
GetScheduleTimeFrameRequest,
|
|
202
|
+
GetScheduleTimeFrameResponse,
|
|
203
|
+
ListScheduleTimeFramesRequest,
|
|
204
|
+
ListScheduleTimeFramesResponse
|
|
205
|
+
});
|
|
206
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.schemas.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-time-frame-schedule-time-frames.schemas.js';\n","import * as z from 'zod';\n\nexport const GetScheduleTimeFrameRequest = z.object({\n _id: z\n .string()\n .describe(\n '[Schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nID for which to retrieve the schedule time frame.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n timeZone: z\n .string()\n .describe(\n 'Time zone for adjusting the times of the returned schedule time frame.\\n\\nDefault: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const GetScheduleTimeFrameResponse = z.object({\n _id: z\n .string()\n .describe(\n 'ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the time frame belongs.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n status: z\n .enum(['NONE', 'FINITE', 'INFINITE'])\n .describe(\n 'Information about the presence of recurring events within the schedule.\\n\\nSupported values:\\n+ `NONE`: No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) are scheduled within the schedule.\\n+ `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\\n+ `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.'\n )\n .optional(),\n firstEventStartDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nwithin the schedule. Identical to `event.start.localDate`. Available only if\\n`status` is set to `FINITE` or `INFINITE`.'\n )\n .optional(),\n lastEventEndDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule. Identical to `event.end.localDate`. Available only if\\n`status` is set to `FINITE`.'\n )\n .optional(),\n adjustedFirstEventStartDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule, adjusted to `timeZone` of the\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor the `timeZone` specified in the request.\\nIdentical to `event.adjustedStart.localDate`.'\n )\n .optional(),\n adjustedLastEventEndDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule, adjusted to `timeZone` of the\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor the `timeZone` specified in the request.\\nIdentical to `event.adjustedEnd.localDate`.'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schedule time frame is updated.'\n )\n .optional()\n .nullable(),\n});\nexport const ListScheduleTimeFramesRequest = z.object({\n ids: z.array(z.string()).min(1).max(100),\n options: z\n .object({\n timeZone: z\n .string()\n .describe(\n 'Time zone for adjusting the times of the returned schedule time frames.\\n\\nDefault: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const ListScheduleTimeFramesResponse = z.object({\n scheduleTimeFrames: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the time frame belongs.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n status: z\n .enum(['NONE', 'FINITE', 'INFINITE'])\n .describe(\n 'Information about the presence of recurring events within the schedule.\\n\\nSupported values:\\n+ `NONE`: No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) are scheduled within the schedule.\\n+ `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\\n+ `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.'\n )\n .optional(),\n firstEventStartDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nwithin the schedule. Identical to `event.start.localDate`. Available only if\\n`status` is set to `FINITE` or `INFINITE`.'\n )\n .optional(),\n lastEventEndDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule. Identical to `event.end.localDate`. Available only if\\n`status` is set to `FINITE`.'\n )\n .optional(),\n adjustedFirstEventStartDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule, adjusted to `timeZone` of the\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor the `timeZone` specified in the request.\\nIdentical to `event.adjustedStart.localDate`.'\n )\n .optional(),\n adjustedLastEventEndDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule, adjusted to `timeZone` of the\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor the `timeZone` specified in the request.\\nIdentical to `event.adjustedEnd.localDate`.'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schedule time frame is updated.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\n"],"mappings":"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AA,QACN,WACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,SACG,OAAK,EACL;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,6BACG,SAAO;AAAA,QACN,WACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,SACG,OAAK,EACL;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,0BACG,SAAO;AAAA,QACN,WACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,SACG,OAAK,EACL;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const GetScheduleTimeFrameRequest: z.ZodObject<{
|
|
4
|
+
_id: z.ZodString;
|
|
5
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const GetScheduleTimeFrameResponse: z.ZodObject<{
|
|
10
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
NONE: "NONE";
|
|
13
|
+
FINITE: "FINITE";
|
|
14
|
+
INFINITE: "INFINITE";
|
|
15
|
+
}>>;
|
|
16
|
+
firstEventStartDate: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
lastEventEndDate: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
adjustedFirstEventStartDate: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
adjustedLastEventEndDate: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const ListScheduleTimeFramesRequest: z.ZodObject<{
|
|
39
|
+
ids: z.ZodArray<z.ZodString>;
|
|
40
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const ListScheduleTimeFramesResponse: z.ZodObject<{
|
|
45
|
+
scheduleTimeFrames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
47
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
NONE: "NONE";
|
|
49
|
+
FINITE: "FINITE";
|
|
50
|
+
INFINITE: "INFINITE";
|
|
51
|
+
}>>;
|
|
52
|
+
firstEventStartDate: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
lastEventEndDate: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
59
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
60
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
adjustedFirstEventStartDate: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
64
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
adjustedLastEventEndDate: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
localDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
|
+
timeZone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
utcDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
|
|
76
|
+
export { GetScheduleTimeFrameRequest, GetScheduleTimeFrameResponse, ListScheduleTimeFramesRequest, ListScheduleTimeFramesResponse };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// src/calendar-v3-schedule-time-frame-schedule-time-frames.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var GetScheduleTimeFrameRequest = z.object({
|
|
4
|
+
_id: z.string().describe(
|
|
5
|
+
"[Schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\nID for which to retrieve the schedule time frame."
|
|
6
|
+
).regex(
|
|
7
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
8
|
+
"Must be a valid GUID"
|
|
9
|
+
),
|
|
10
|
+
options: z.object({
|
|
11
|
+
timeZone: z.string().describe(
|
|
12
|
+
"Time zone for adjusting the times of the returned schedule time frame.\n\nDefault: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)"
|
|
13
|
+
).optional().nullable()
|
|
14
|
+
}).optional()
|
|
15
|
+
});
|
|
16
|
+
var GetScheduleTimeFrameResponse = z.object({
|
|
17
|
+
_id: z.string().describe(
|
|
18
|
+
"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\nto which the time frame belongs."
|
|
19
|
+
).regex(
|
|
20
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
21
|
+
"Must be a valid GUID"
|
|
22
|
+
).optional().nullable(),
|
|
23
|
+
status: z.enum(["NONE", "FINITE", "INFINITE"]).describe(
|
|
24
|
+
"Information about the presence of recurring events within the schedule.\n\nSupported values:\n+ `NONE`: No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) are scheduled within the schedule.\n+ `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\n+ `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern."
|
|
25
|
+
).optional(),
|
|
26
|
+
firstEventStartDate: z.object({
|
|
27
|
+
localDate: z.string().describe(
|
|
28
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
29
|
+
).optional().nullable(),
|
|
30
|
+
timeZone: z.string().describe(
|
|
31
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
32
|
+
).optional().nullable(),
|
|
33
|
+
utcDate: z.date().describe(
|
|
34
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
35
|
+
).optional().nullable()
|
|
36
|
+
}).describe(
|
|
37
|
+
"Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nwithin the schedule. Identical to `event.start.localDate`. Available only if\n`status` is set to `FINITE` or `INFINITE`."
|
|
38
|
+
).optional(),
|
|
39
|
+
lastEventEndDate: z.object({
|
|
40
|
+
localDate: z.string().describe(
|
|
41
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
42
|
+
).optional().nullable(),
|
|
43
|
+
timeZone: z.string().describe(
|
|
44
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
45
|
+
).optional().nullable(),
|
|
46
|
+
utcDate: z.date().describe(
|
|
47
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
48
|
+
).optional().nullable()
|
|
49
|
+
}).describe(
|
|
50
|
+
"End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule. Identical to `event.end.localDate`. Available only if\n`status` is set to `FINITE`."
|
|
51
|
+
).optional(),
|
|
52
|
+
adjustedFirstEventStartDate: z.object({
|
|
53
|
+
localDate: z.string().describe(
|
|
54
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
55
|
+
).optional().nullable(),
|
|
56
|
+
timeZone: z.string().describe(
|
|
57
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
58
|
+
).optional().nullable(),
|
|
59
|
+
utcDate: z.date().describe(
|
|
60
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
61
|
+
).optional().nullable()
|
|
62
|
+
}).describe(
|
|
63
|
+
"Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule, adjusted to `timeZone` of the\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\nor the `timeZone` specified in the request.\nIdentical to `event.adjustedStart.localDate`."
|
|
64
|
+
).optional(),
|
|
65
|
+
adjustedLastEventEndDate: z.object({
|
|
66
|
+
localDate: z.string().describe(
|
|
67
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
68
|
+
).optional().nullable(),
|
|
69
|
+
timeZone: z.string().describe(
|
|
70
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
71
|
+
).optional().nullable(),
|
|
72
|
+
utcDate: z.date().describe(
|
|
73
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
74
|
+
).optional().nullable()
|
|
75
|
+
}).describe(
|
|
76
|
+
"End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule, adjusted to `timeZone` of the\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\nor the `timeZone` specified in the request.\nIdentical to `event.adjustedEnd.localDate`."
|
|
77
|
+
).optional(),
|
|
78
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
79
|
+
"Revision number, which increments by 1 each time the schedule time frame is updated."
|
|
80
|
+
).optional().nullable()
|
|
81
|
+
});
|
|
82
|
+
var ListScheduleTimeFramesRequest = z.object({
|
|
83
|
+
ids: z.array(z.string()).min(1).max(100),
|
|
84
|
+
options: z.object({
|
|
85
|
+
timeZone: z.string().describe(
|
|
86
|
+
"Time zone for adjusting the times of the returned schedule time frames.\n\nDefault: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)"
|
|
87
|
+
).optional().nullable()
|
|
88
|
+
}).optional()
|
|
89
|
+
});
|
|
90
|
+
var ListScheduleTimeFramesResponse = z.object({
|
|
91
|
+
scheduleTimeFrames: z.array(
|
|
92
|
+
z.object({
|
|
93
|
+
_id: z.string().describe(
|
|
94
|
+
"ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\nto which the time frame belongs."
|
|
95
|
+
).regex(
|
|
96
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
97
|
+
"Must be a valid GUID"
|
|
98
|
+
).optional().nullable(),
|
|
99
|
+
status: z.enum(["NONE", "FINITE", "INFINITE"]).describe(
|
|
100
|
+
"Information about the presence of recurring events within the schedule.\n\nSupported values:\n+ `NONE`: No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) are scheduled within the schedule.\n+ `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\n+ `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern."
|
|
101
|
+
).optional(),
|
|
102
|
+
firstEventStartDate: z.object({
|
|
103
|
+
localDate: z.string().describe(
|
|
104
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
105
|
+
).optional().nullable(),
|
|
106
|
+
timeZone: z.string().describe(
|
|
107
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
108
|
+
).optional().nullable(),
|
|
109
|
+
utcDate: z.date().describe(
|
|
110
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
111
|
+
).optional().nullable()
|
|
112
|
+
}).describe(
|
|
113
|
+
"Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nwithin the schedule. Identical to `event.start.localDate`. Available only if\n`status` is set to `FINITE` or `INFINITE`."
|
|
114
|
+
).optional(),
|
|
115
|
+
lastEventEndDate: z.object({
|
|
116
|
+
localDate: z.string().describe(
|
|
117
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
118
|
+
).optional().nullable(),
|
|
119
|
+
timeZone: z.string().describe(
|
|
120
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
121
|
+
).optional().nullable(),
|
|
122
|
+
utcDate: z.date().describe(
|
|
123
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
124
|
+
).optional().nullable()
|
|
125
|
+
}).describe(
|
|
126
|
+
"End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule. Identical to `event.end.localDate`. Available only if\n`status` is set to `FINITE`."
|
|
127
|
+
).optional(),
|
|
128
|
+
adjustedFirstEventStartDate: z.object({
|
|
129
|
+
localDate: z.string().describe(
|
|
130
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
131
|
+
).optional().nullable(),
|
|
132
|
+
timeZone: z.string().describe(
|
|
133
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
134
|
+
).optional().nullable(),
|
|
135
|
+
utcDate: z.date().describe(
|
|
136
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
137
|
+
).optional().nullable()
|
|
138
|
+
}).describe(
|
|
139
|
+
"Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule, adjusted to `timeZone` of the\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\nor the `timeZone` specified in the request.\nIdentical to `event.adjustedStart.localDate`."
|
|
140
|
+
).optional(),
|
|
141
|
+
adjustedLastEventEndDate: z.object({
|
|
142
|
+
localDate: z.string().describe(
|
|
143
|
+
"Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nWix Calendar APIs ignore seconds."
|
|
144
|
+
).optional().nullable(),
|
|
145
|
+
timeZone: z.string().describe(
|
|
146
|
+
"Time zone in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\nFor example, `America/New_York`."
|
|
147
|
+
).optional().nullable(),
|
|
148
|
+
utcDate: z.date().describe(
|
|
149
|
+
"UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\nFor example, `2024-01-30T13:30:00`.\nNot available for adjusted date fields."
|
|
150
|
+
).optional().nullable()
|
|
151
|
+
}).describe(
|
|
152
|
+
"End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\nbelonging to the schedule, adjusted to `timeZone` of the\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\nor the `timeZone` specified in the request.\nIdentical to `event.adjustedEnd.localDate`."
|
|
153
|
+
).optional(),
|
|
154
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
155
|
+
"Revision number, which increments by 1 each time the schedule time frame is updated."
|
|
156
|
+
).optional().nullable()
|
|
157
|
+
})
|
|
158
|
+
).optional()
|
|
159
|
+
});
|
|
160
|
+
export {
|
|
161
|
+
GetScheduleTimeFrameRequest,
|
|
162
|
+
GetScheduleTimeFrameResponse,
|
|
163
|
+
ListScheduleTimeFramesRequest,
|
|
164
|
+
ListScheduleTimeFramesResponse
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/calendar-v3-schedule-time-frame-schedule-time-frames.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetScheduleTimeFrameRequest = z.object({\n _id: z\n .string()\n .describe(\n '[Schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nID for which to retrieve the schedule time frame.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n timeZone: z\n .string()\n .describe(\n 'Time zone for adjusting the times of the returned schedule time frame.\\n\\nDefault: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const GetScheduleTimeFrameResponse = z.object({\n _id: z\n .string()\n .describe(\n 'ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the time frame belongs.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n status: z\n .enum(['NONE', 'FINITE', 'INFINITE'])\n .describe(\n 'Information about the presence of recurring events within the schedule.\\n\\nSupported values:\\n+ `NONE`: No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) are scheduled within the schedule.\\n+ `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\\n+ `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.'\n )\n .optional(),\n firstEventStartDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nwithin the schedule. Identical to `event.start.localDate`. Available only if\\n`status` is set to `FINITE` or `INFINITE`.'\n )\n .optional(),\n lastEventEndDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule. Identical to `event.end.localDate`. Available only if\\n`status` is set to `FINITE`.'\n )\n .optional(),\n adjustedFirstEventStartDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule, adjusted to `timeZone` of the\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor the `timeZone` specified in the request.\\nIdentical to `event.adjustedStart.localDate`.'\n )\n .optional(),\n adjustedLastEventEndDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule, adjusted to `timeZone` of the\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor the `timeZone` specified in the request.\\nIdentical to `event.adjustedEnd.localDate`.'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schedule time frame is updated.'\n )\n .optional()\n .nullable(),\n});\nexport const ListScheduleTimeFramesRequest = z.object({\n ids: z.array(z.string()).min(1).max(100),\n options: z\n .object({\n timeZone: z\n .string()\n .describe(\n 'Time zone for adjusting the times of the returned schedule time frames.\\n\\nDefault: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const ListScheduleTimeFramesResponse = z.object({\n scheduleTimeFrames: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)\\nto which the time frame belongs.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n status: z\n .enum(['NONE', 'FINITE', 'INFINITE'])\n .describe(\n 'Information about the presence of recurring events within the schedule.\\n\\nSupported values:\\n+ `NONE`: No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) are scheduled within the schedule.\\n+ `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\\n+ `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.'\n )\n .optional(),\n firstEventStartDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nwithin the schedule. Identical to `event.start.localDate`. Available only if\\n`status` is set to `FINITE` or `INFINITE`.'\n )\n .optional(),\n lastEventEndDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule. Identical to `event.end.localDate`. Available only if\\n`status` is set to `FINITE`.'\n )\n .optional(),\n adjustedFirstEventStartDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule, adjusted to `timeZone` of the\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor the `timeZone` specified in the request.\\nIdentical to `event.adjustedStart.localDate`.'\n )\n .optional(),\n adjustedLastEventEndDate: z\n .object({\n localDate: z\n .string()\n .describe(\n 'Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nWix Calendar APIs ignore seconds.'\n )\n .optional()\n .nullable(),\n timeZone: z\n .string()\n .describe(\n 'Time zone in\\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\\nFor example, `America/New_York`.'\n )\n .optional()\n .nullable(),\n utcDate: z\n .date()\n .describe(\n 'UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\\nFor example, `2024-01-30T13:30:00`.\\nNot available for adjusted date fields.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'End date of the last [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\\nbelonging to the schedule, adjusted to `timeZone` of the\\n[site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\\nor the `timeZone` specified in the request.\\nIdentical to `event.adjustedEnd.localDate`.'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the schedule time frame is updated.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\n"],"mappings":"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,QACZ,UACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,SACG,OAAK,EACL;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,6BACG,SAAO;AAAA,QACN,WACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,SACG,OAAK,EACL;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,0BACG,SAAO;AAAA,QACN,WACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,SACG,OAAK,EACL;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;","names":[]}
|