@wix/auto_sdk_calendar_schedule-time-frames 1.0.9 → 1.0.11
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +14 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +22 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +10 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +113 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +16 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +66 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +31 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +40 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +557 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +46 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +1 -0
- package/build/{calendar-v3-schedule-time-frame-schedule-time-frames.universal-C2n2lbDD.d.mts → cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts} +161 -49
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +197 -0
- package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +14 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +14 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +1 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +10 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +108 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +1 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +16 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +38 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +1 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +31 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +30 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +1 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +557 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +43 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +1 -0
- package/build/{calendar-v3-schedule-time-frame-schedule-time-frames.universal-C2n2lbDD.d.ts → es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts} +161 -49
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +169 -0
- package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +14 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +22 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +10 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +113 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +16 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +66 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +31 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +40 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +557 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +46 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +1 -0
- package/build/internal/{calendar-v3-schedule-time-frame-schedule-time-frames.universal-C2n2lbDD.d.mts → cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts} +161 -49
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +197 -0
- package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +14 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +14 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +10 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +108 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +16 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +38 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +31 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +30 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +557 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +43 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +1 -0
- package/build/internal/{calendar-v3-schedule-time-frame-schedule-time-frames.universal-C2n2lbDD.d.ts → es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts} +161 -49
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +169 -0
- package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +1 -0
- package/package.json +13 -14
- package/build/index.d.mts +0 -40
- package/build/index.d.ts +0 -40
- package/build/index.js +0 -290
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -259
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -40
- package/build/internal/index.d.ts +0 -40
- package/build/internal/index.js +0 -290
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -259
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -154
- package/build/internal/meta.d.ts +0 -154
- package/build/internal/meta.js +0 -172
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -144
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -154
- package/build/meta.d.ts +0 -154
- package/build/meta.js +0 -172
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -144
- package/build/meta.mjs.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
/**
|
|
2
3
|
* Information about the start and end dates of the first and last
|
|
3
4
|
* [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
|
|
4
5
|
* that belong to a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
|
|
5
6
|
* and whether any events follow an unlimited repetition pattern.
|
|
6
7
|
*/
|
|
7
|
-
interface ScheduleTimeFrame {
|
|
8
|
+
export interface ScheduleTimeFrame {
|
|
8
9
|
/**
|
|
9
10
|
* ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
|
|
10
11
|
* to which the time frame belongs.
|
|
@@ -60,7 +61,7 @@ interface ScheduleTimeFrame {
|
|
|
60
61
|
*/
|
|
61
62
|
revision?: string | null;
|
|
62
63
|
}
|
|
63
|
-
declare enum Status {
|
|
64
|
+
export declare enum Status {
|
|
64
65
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
65
66
|
/** No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) that belong to the schedule. */
|
|
66
67
|
NONE = "NONE",
|
|
@@ -70,7 +71,7 @@ declare enum Status {
|
|
|
70
71
|
INFINITE = "INFINITE"
|
|
71
72
|
}
|
|
72
73
|
/** A date time with a time zone, having the UTC offset and date determined by the server. */
|
|
73
|
-
interface ZonedDate {
|
|
74
|
+
export interface ZonedDate {
|
|
74
75
|
/**
|
|
75
76
|
* Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
76
77
|
* For example, `2024-01-30T13:30:00`.
|
|
@@ -93,7 +94,7 @@ interface ZonedDate {
|
|
|
93
94
|
*/
|
|
94
95
|
utcDate?: Date | null;
|
|
95
96
|
}
|
|
96
|
-
interface GetScheduleTimeFrameRequest {
|
|
97
|
+
export interface GetScheduleTimeFrameRequest {
|
|
97
98
|
/**
|
|
98
99
|
* [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
|
|
99
100
|
* ID for which to retrieve the schedule time frame.
|
|
@@ -107,11 +108,11 @@ interface GetScheduleTimeFrameRequest {
|
|
|
107
108
|
*/
|
|
108
109
|
timeZone?: string | null;
|
|
109
110
|
}
|
|
110
|
-
interface GetScheduleTimeFrameResponse {
|
|
111
|
+
export interface GetScheduleTimeFrameResponse {
|
|
111
112
|
/** Retrieved schedule time frame. */
|
|
112
113
|
scheduleTimeFrame?: ScheduleTimeFrame;
|
|
113
114
|
}
|
|
114
|
-
interface ListScheduleTimeFramesRequest {
|
|
115
|
+
export interface ListScheduleTimeFramesRequest {
|
|
115
116
|
/**
|
|
116
117
|
* IDs of the schedules for which to retrieve schedule time frames.
|
|
117
118
|
*
|
|
@@ -129,12 +130,12 @@ interface ListScheduleTimeFramesRequest {
|
|
|
129
130
|
*/
|
|
130
131
|
timeZone?: string | null;
|
|
131
132
|
}
|
|
132
|
-
interface ListScheduleTimeFramesResponse {
|
|
133
|
+
export interface ListScheduleTimeFramesResponse {
|
|
133
134
|
/** Retrieved schedule time frames. */
|
|
134
135
|
scheduleTimeFrames?: ScheduleTimeFrame[];
|
|
135
136
|
}
|
|
136
137
|
/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
|
|
137
|
-
interface SitePropertiesNotification {
|
|
138
|
+
export interface SitePropertiesNotification {
|
|
138
139
|
/** The site ID for which this update notification applies. */
|
|
139
140
|
metasiteId?: string;
|
|
140
141
|
/** The actual update event. */
|
|
@@ -148,7 +149,7 @@ interface SitePropertiesNotification {
|
|
|
148
149
|
changeContext?: ChangeContext;
|
|
149
150
|
}
|
|
150
151
|
/** The actual update event for a particular notification. */
|
|
151
|
-
interface SitePropertiesEvent {
|
|
152
|
+
export interface SitePropertiesEvent {
|
|
152
153
|
/** Version of the site's properties represented by this update. */
|
|
153
154
|
version?: number;
|
|
154
155
|
/** Set of properties that were updated - corresponds to the fields in "properties". */
|
|
@@ -156,7 +157,7 @@ interface SitePropertiesEvent {
|
|
|
156
157
|
/** Updated properties. */
|
|
157
158
|
properties?: Properties;
|
|
158
159
|
}
|
|
159
|
-
interface Properties {
|
|
160
|
+
export interface Properties {
|
|
160
161
|
/** Site categories. */
|
|
161
162
|
categories?: Categories;
|
|
162
163
|
/** Site locale. */
|
|
@@ -212,7 +213,7 @@ interface Properties {
|
|
|
212
213
|
/** Track clicks analytics. */
|
|
213
214
|
trackClicksAnalytics?: boolean;
|
|
214
215
|
}
|
|
215
|
-
interface Categories {
|
|
216
|
+
export interface Categories {
|
|
216
217
|
/** Primary site category. */
|
|
217
218
|
primary?: string;
|
|
218
219
|
/**
|
|
@@ -223,13 +224,13 @@ interface Categories {
|
|
|
223
224
|
/** Business Term Id */
|
|
224
225
|
businessTermId?: string | null;
|
|
225
226
|
}
|
|
226
|
-
interface Locale {
|
|
227
|
+
export interface Locale {
|
|
227
228
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
228
229
|
languageCode?: string;
|
|
229
230
|
/** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
|
|
230
231
|
country?: string;
|
|
231
232
|
}
|
|
232
|
-
interface Address {
|
|
233
|
+
export interface Address {
|
|
233
234
|
/** Street name. */
|
|
234
235
|
street?: string;
|
|
235
236
|
/** City name. */
|
|
@@ -261,27 +262,27 @@ interface Address {
|
|
|
261
262
|
* This is used for display purposes. Used to add additional data about the address, such as "In the passage".
|
|
262
263
|
* Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
|
|
263
264
|
*/
|
|
264
|
-
interface AddressHint {
|
|
265
|
+
export interface AddressHint {
|
|
265
266
|
/** Extra text displayed next to, or instead of, the actual address. */
|
|
266
267
|
text?: string;
|
|
267
268
|
/** Where the extra text should be displayed. */
|
|
268
269
|
placement?: PlacementType;
|
|
269
270
|
}
|
|
270
271
|
/** Where the extra text should be displayed: before, after or instead of the actual address. */
|
|
271
|
-
declare enum PlacementType {
|
|
272
|
+
export declare enum PlacementType {
|
|
272
273
|
BEFORE = "BEFORE",
|
|
273
274
|
AFTER = "AFTER",
|
|
274
275
|
REPLACE = "REPLACE"
|
|
275
276
|
}
|
|
276
277
|
/** Geocoordinates for a particular address. */
|
|
277
|
-
interface GeoCoordinates {
|
|
278
|
+
export interface GeoCoordinates {
|
|
278
279
|
/** Latitude of the location. Must be between -90 and 90. */
|
|
279
280
|
latitude?: number;
|
|
280
281
|
/** Longitude of the location. Must be between -180 and 180. */
|
|
281
282
|
longitude?: number;
|
|
282
283
|
}
|
|
283
284
|
/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
|
|
284
|
-
interface BusinessSchedule {
|
|
285
|
+
export interface BusinessSchedule {
|
|
285
286
|
/**
|
|
286
287
|
* Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
|
|
287
288
|
* @maxSize 100
|
|
@@ -294,7 +295,7 @@ interface BusinessSchedule {
|
|
|
294
295
|
specialHourPeriod?: SpecialHourPeriod[];
|
|
295
296
|
}
|
|
296
297
|
/** Weekly recurring time periods when the business is regularly open or the service is available. */
|
|
297
|
-
interface TimePeriod {
|
|
298
|
+
export interface TimePeriod {
|
|
298
299
|
/** Day of the week the period starts on. */
|
|
299
300
|
openDay?: DayOfWeek;
|
|
300
301
|
/**
|
|
@@ -313,7 +314,7 @@ interface TimePeriod {
|
|
|
313
314
|
closeTime?: string;
|
|
314
315
|
}
|
|
315
316
|
/** Enumerates the days of the week. */
|
|
316
|
-
declare enum DayOfWeek {
|
|
317
|
+
export declare enum DayOfWeek {
|
|
317
318
|
MONDAY = "MONDAY",
|
|
318
319
|
TUESDAY = "TUESDAY",
|
|
319
320
|
WEDNESDAY = "WEDNESDAY",
|
|
@@ -323,7 +324,7 @@ declare enum DayOfWeek {
|
|
|
323
324
|
SUNDAY = "SUNDAY"
|
|
324
325
|
}
|
|
325
326
|
/** Exception to the business's regular hours. The business can be open or closed during the exception. */
|
|
326
|
-
interface SpecialHourPeriod {
|
|
327
|
+
export interface SpecialHourPeriod {
|
|
327
328
|
/** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
|
|
328
329
|
startDate?: string;
|
|
329
330
|
/** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
|
|
@@ -337,7 +338,7 @@ interface SpecialHourPeriod {
|
|
|
337
338
|
/** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
|
|
338
339
|
comment?: string;
|
|
339
340
|
}
|
|
340
|
-
interface Multilingual {
|
|
341
|
+
export interface Multilingual {
|
|
341
342
|
/**
|
|
342
343
|
* Supported languages list.
|
|
343
344
|
* @maxSize 200
|
|
@@ -346,7 +347,7 @@ interface Multilingual {
|
|
|
346
347
|
/** Whether to redirect to user language. */
|
|
347
348
|
autoRedirect?: boolean;
|
|
348
349
|
}
|
|
349
|
-
interface SupportedLanguage {
|
|
350
|
+
export interface SupportedLanguage {
|
|
350
351
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
351
352
|
languageCode?: string;
|
|
352
353
|
/** Locale. */
|
|
@@ -358,12 +359,12 @@ interface SupportedLanguage {
|
|
|
358
359
|
/** How the language will be resolved. For internal use. */
|
|
359
360
|
resolutionMethod?: ResolutionMethod;
|
|
360
361
|
}
|
|
361
|
-
declare enum ResolutionMethod {
|
|
362
|
+
export declare enum ResolutionMethod {
|
|
362
363
|
QUERY_PARAM = "QUERY_PARAM",
|
|
363
364
|
SUBDOMAIN = "SUBDOMAIN",
|
|
364
365
|
SUBDIRECTORY = "SUBDIRECTORY"
|
|
365
366
|
}
|
|
366
|
-
interface ConsentPolicy {
|
|
367
|
+
export interface ConsentPolicy {
|
|
367
368
|
/** Whether the site uses cookies that are essential to site operation. Always `true`. */
|
|
368
369
|
essential?: boolean | null;
|
|
369
370
|
/** Whether the site uses cookies that affect site performance and other functional measurements. */
|
|
@@ -376,7 +377,7 @@ interface ConsentPolicy {
|
|
|
376
377
|
dataToThirdParty?: boolean | null;
|
|
377
378
|
}
|
|
378
379
|
/** A single mapping from the MetaSite ID to a particular service. */
|
|
379
|
-
interface Translation {
|
|
380
|
+
export interface Translation {
|
|
380
381
|
/** The service type. */
|
|
381
382
|
serviceType?: string;
|
|
382
383
|
/** The application definition ID; this only applies to services of type ThirdPartyApps. */
|
|
@@ -384,7 +385,7 @@ interface Translation {
|
|
|
384
385
|
/** The instance ID of the service. */
|
|
385
386
|
instanceId?: string;
|
|
386
387
|
}
|
|
387
|
-
interface ChangeContext extends ChangeContextPayloadOneOf {
|
|
388
|
+
export interface ChangeContext extends ChangeContextPayloadOneOf {
|
|
388
389
|
/** Properties were updated. */
|
|
389
390
|
propertiesChange?: PropertiesChange;
|
|
390
391
|
/** Default properties were created on site creation. */
|
|
@@ -393,7 +394,7 @@ interface ChangeContext extends ChangeContextPayloadOneOf {
|
|
|
393
394
|
siteCloned?: SiteCloned;
|
|
394
395
|
}
|
|
395
396
|
/** @oneof */
|
|
396
|
-
interface ChangeContextPayloadOneOf {
|
|
397
|
+
export interface ChangeContextPayloadOneOf {
|
|
397
398
|
/** Properties were updated. */
|
|
398
399
|
propertiesChange?: PropertiesChange;
|
|
399
400
|
/** Default properties were created on site creation. */
|
|
@@ -401,19 +402,19 @@ interface ChangeContextPayloadOneOf {
|
|
|
401
402
|
/** Properties were cloned on site cloning. */
|
|
402
403
|
siteCloned?: SiteCloned;
|
|
403
404
|
}
|
|
404
|
-
interface PropertiesChange {
|
|
405
|
+
export interface PropertiesChange {
|
|
405
406
|
}
|
|
406
|
-
interface SiteCreated {
|
|
407
|
+
export interface SiteCreated {
|
|
407
408
|
/** Origin template site id. */
|
|
408
409
|
originTemplateId?: string | null;
|
|
409
410
|
}
|
|
410
|
-
interface SiteCloned {
|
|
411
|
+
export interface SiteCloned {
|
|
411
412
|
/** Origin site id. */
|
|
412
413
|
originMetaSiteId?: string;
|
|
413
414
|
}
|
|
414
|
-
interface Empty {
|
|
415
|
+
export interface Empty {
|
|
415
416
|
}
|
|
416
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
417
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
417
418
|
createdEvent?: EntityCreatedEvent;
|
|
418
419
|
updatedEvent?: EntityUpdatedEvent;
|
|
419
420
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -456,19 +457,19 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
456
457
|
entityEventSequence?: string | null;
|
|
457
458
|
}
|
|
458
459
|
/** @oneof */
|
|
459
|
-
interface DomainEventBodyOneOf {
|
|
460
|
+
export interface DomainEventBodyOneOf {
|
|
460
461
|
createdEvent?: EntityCreatedEvent;
|
|
461
462
|
updatedEvent?: EntityUpdatedEvent;
|
|
462
463
|
deletedEvent?: EntityDeletedEvent;
|
|
463
464
|
actionEvent?: ActionEvent;
|
|
464
465
|
}
|
|
465
|
-
interface EntityCreatedEvent {
|
|
466
|
+
export interface EntityCreatedEvent {
|
|
466
467
|
entity?: string;
|
|
467
468
|
}
|
|
468
|
-
interface RestoreInfo {
|
|
469
|
+
export interface RestoreInfo {
|
|
469
470
|
deletedDate?: Date | null;
|
|
470
471
|
}
|
|
471
|
-
interface EntityUpdatedEvent {
|
|
472
|
+
export interface EntityUpdatedEvent {
|
|
472
473
|
/**
|
|
473
474
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
474
475
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -476,14 +477,14 @@ interface EntityUpdatedEvent {
|
|
|
476
477
|
*/
|
|
477
478
|
currentEntity?: string;
|
|
478
479
|
}
|
|
479
|
-
interface EntityDeletedEvent {
|
|
480
|
+
export interface EntityDeletedEvent {
|
|
480
481
|
/** Entity that was deleted */
|
|
481
482
|
deletedEntity?: string | null;
|
|
482
483
|
}
|
|
483
|
-
interface ActionEvent {
|
|
484
|
+
export interface ActionEvent {
|
|
484
485
|
body?: string;
|
|
485
486
|
}
|
|
486
|
-
interface MessageEnvelope {
|
|
487
|
+
export interface MessageEnvelope {
|
|
487
488
|
/**
|
|
488
489
|
* App instance ID.
|
|
489
490
|
* @format GUID
|
|
@@ -499,7 +500,7 @@ interface MessageEnvelope {
|
|
|
499
500
|
/** Stringify payload. */
|
|
500
501
|
data?: string;
|
|
501
502
|
}
|
|
502
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
503
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
503
504
|
/**
|
|
504
505
|
* ID of a site visitor that has not logged in to the site.
|
|
505
506
|
* @format GUID
|
|
@@ -524,7 +525,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
524
525
|
identityType?: WebhookIdentityType;
|
|
525
526
|
}
|
|
526
527
|
/** @oneof */
|
|
527
|
-
interface IdentificationDataIdOneOf {
|
|
528
|
+
export interface IdentificationDataIdOneOf {
|
|
528
529
|
/**
|
|
529
530
|
* ID of a site visitor that has not logged in to the site.
|
|
530
531
|
* @format GUID
|
|
@@ -546,14 +547,14 @@ interface IdentificationDataIdOneOf {
|
|
|
546
547
|
*/
|
|
547
548
|
appId?: string;
|
|
548
549
|
}
|
|
549
|
-
declare enum WebhookIdentityType {
|
|
550
|
+
export declare enum WebhookIdentityType {
|
|
550
551
|
UNKNOWN = "UNKNOWN",
|
|
551
552
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
552
553
|
MEMBER = "MEMBER",
|
|
553
554
|
WIX_USER = "WIX_USER",
|
|
554
555
|
APP = "APP"
|
|
555
556
|
}
|
|
556
|
-
interface BaseEventMetadata {
|
|
557
|
+
export interface BaseEventMetadata {
|
|
557
558
|
/**
|
|
558
559
|
* App instance ID.
|
|
559
560
|
* @format GUID
|
|
@@ -567,7 +568,7 @@ interface BaseEventMetadata {
|
|
|
567
568
|
/** The identification type and identity data. */
|
|
568
569
|
identity?: IdentificationData;
|
|
569
570
|
}
|
|
570
|
-
interface EventMetadata extends BaseEventMetadata {
|
|
571
|
+
export interface EventMetadata extends BaseEventMetadata {
|
|
571
572
|
/**
|
|
572
573
|
* Unique event ID.
|
|
573
574
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -605,11 +606,81 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
605
606
|
*/
|
|
606
607
|
entityEventSequence?: string | null;
|
|
607
608
|
}
|
|
608
|
-
interface ScheduleTimeFrameUpdatedEnvelope {
|
|
609
|
+
export interface ScheduleTimeFrameUpdatedEnvelope {
|
|
609
610
|
entity: ScheduleTimeFrame;
|
|
610
611
|
metadata: EventMetadata;
|
|
611
612
|
}
|
|
612
|
-
|
|
613
|
+
/**
|
|
614
|
+
* Triggered when a schedule's time frame is updated, indicating a new first or
|
|
615
|
+
* last event or a change in the recurrence period, such as an extension or
|
|
616
|
+
* reduction.
|
|
617
|
+
* @permissionScope Read Bookings - Public Data
|
|
618
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
619
|
+
* @permissionScope Read Calendar - Including PI
|
|
620
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
|
|
621
|
+
* @permissionScope Manage Calendars
|
|
622
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
623
|
+
* @permissionScope Manage Bookings
|
|
624
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
625
|
+
* @permissionScope Read Bookings - Including Participants
|
|
626
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
627
|
+
* @permissionScope Read Bookings - all read permissions
|
|
628
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
629
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
630
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
|
|
631
|
+
* @permissionScope Read Calendar
|
|
632
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
|
|
633
|
+
* @permissionScope Manage Bookings - all permissions
|
|
634
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
635
|
+
* @permissionScope Read bookings calendar - including participants
|
|
636
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
637
|
+
* @permissionScope Read Bookings Calendar
|
|
638
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
|
|
639
|
+
* @permissionId CALENDAR.SCHEDULE_READ
|
|
640
|
+
* @webhook
|
|
641
|
+
* @eventType wix.calendar.v3.schedule_time_frame_updated
|
|
642
|
+
* @slug updated
|
|
643
|
+
* @documentationMaturity preview
|
|
644
|
+
*/
|
|
645
|
+
export declare function onScheduleTimeFrameUpdated(handler: (event: ScheduleTimeFrameUpdatedEnvelope) => void | Promise<void>): void;
|
|
646
|
+
type ScheduleTimeFrameNonNullablePaths = `status`;
|
|
647
|
+
/**
|
|
648
|
+
* Retrieves a schedule time frame by schedule ID.
|
|
649
|
+
* @param _id - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
|
|
650
|
+
* ID for which to retrieve the schedule time frame.
|
|
651
|
+
* @public
|
|
652
|
+
* @documentationMaturity preview
|
|
653
|
+
* @requiredField _id
|
|
654
|
+
* @permissionId CALENDAR.SCHEDULE_READ
|
|
655
|
+
* @permissionScope Read Bookings - Public Data
|
|
656
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
657
|
+
* @permissionScope Read Calendar - Including PI
|
|
658
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
|
|
659
|
+
* @permissionScope Manage Calendars
|
|
660
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
661
|
+
* @permissionScope Manage Bookings
|
|
662
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
663
|
+
* @permissionScope Read Bookings - Including Participants
|
|
664
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
665
|
+
* @permissionScope Read Bookings - all read permissions
|
|
666
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
667
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
668
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
|
|
669
|
+
* @permissionScope Read Calendar
|
|
670
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
|
|
671
|
+
* @permissionScope Manage Bookings - all permissions
|
|
672
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
673
|
+
* @permissionScope Read bookings calendar - including participants
|
|
674
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
675
|
+
* @permissionScope Read Bookings Calendar
|
|
676
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
|
|
677
|
+
* @applicableIdentity APP
|
|
678
|
+
* @applicableIdentity VISITOR
|
|
679
|
+
* @returns Retrieved schedule time frame.
|
|
680
|
+
* @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame
|
|
681
|
+
*/
|
|
682
|
+
export declare function getScheduleTimeFrame(_id: string, options?: GetScheduleTimeFrameOptions): Promise<NonNullablePaths<ScheduleTimeFrame, ScheduleTimeFrameNonNullablePaths>>;
|
|
683
|
+
export interface GetScheduleTimeFrameOptions {
|
|
613
684
|
/**
|
|
614
685
|
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.
|
|
615
686
|
*
|
|
@@ -617,7 +688,49 @@ interface GetScheduleTimeFrameOptions {
|
|
|
617
688
|
*/
|
|
618
689
|
timeZone?: string | null;
|
|
619
690
|
}
|
|
620
|
-
|
|
691
|
+
/**
|
|
692
|
+
* Retrieves a list of schedule time frames by schedule IDs.
|
|
693
|
+
*
|
|
694
|
+
*
|
|
695
|
+
* Sorted by schedule ID in ascending order.
|
|
696
|
+
* @param ids - IDs of the schedules for which to retrieve schedule time frames.
|
|
697
|
+
*
|
|
698
|
+
* Min: 1 schedule ID
|
|
699
|
+
* Max: 100 schedule IDs
|
|
700
|
+
* @public
|
|
701
|
+
* @documentationMaturity preview
|
|
702
|
+
* @requiredField ids
|
|
703
|
+
* @permissionId CALENDAR.SCHEDULE_READ
|
|
704
|
+
* @permissionScope Read Bookings - Public Data
|
|
705
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
706
|
+
* @permissionScope Read Calendar - Including PI
|
|
707
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
|
|
708
|
+
* @permissionScope Manage Calendars
|
|
709
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
710
|
+
* @permissionScope Manage Bookings
|
|
711
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
712
|
+
* @permissionScope Read Bookings - Including Participants
|
|
713
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
714
|
+
* @permissionScope Read Bookings - all read permissions
|
|
715
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
716
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
717
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
|
|
718
|
+
* @permissionScope Read Calendar
|
|
719
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
|
|
720
|
+
* @permissionScope Manage Bookings - all permissions
|
|
721
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
722
|
+
* @permissionScope Read bookings calendar - including participants
|
|
723
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
724
|
+
* @permissionScope Read Bookings Calendar
|
|
725
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
|
|
726
|
+
* @applicableIdentity APP
|
|
727
|
+
* @applicableIdentity VISITOR
|
|
728
|
+
* @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames
|
|
729
|
+
*/
|
|
730
|
+
export declare function listScheduleTimeFrames(ids: string[], options?: ListScheduleTimeFramesOptions): Promise<NonNullablePaths<ListScheduleTimeFramesResponse, {
|
|
731
|
+
[P in ScheduleTimeFrameNonNullablePaths]: `scheduleTimeFrames.${number}.${P}`;
|
|
732
|
+
}[ScheduleTimeFrameNonNullablePaths]>>;
|
|
733
|
+
export interface ListScheduleTimeFramesOptions {
|
|
621
734
|
/**
|
|
622
735
|
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.
|
|
623
736
|
*
|
|
@@ -625,5 +738,4 @@ interface ListScheduleTimeFramesOptions {
|
|
|
625
738
|
*/
|
|
626
739
|
timeZone?: string | null;
|
|
627
740
|
}
|
|
628
|
-
|
|
629
|
-
export { type Address as A, type BusinessSchedule as B, type Categories as C, DayOfWeek as D, type Empty as E, type ActionEvent as F, type GetScheduleTimeFrameOptions as G, type MessageEnvelope as H, type IdentificationData as I, type IdentificationDataIdOneOf as J, type BaseEventMetadata as K, type ListScheduleTimeFramesOptions as L, type Multilingual as M, type EventMetadata as N, type ScheduleTimeFrameUpdatedEnvelope as O, PlacementType as P, ResolutionMethod as R, type ScheduleTimeFrame as S, type TimePeriod as T, WebhookIdentityType as W, type ZonedDate as Z, type ListScheduleTimeFramesResponse as a, Status as b, type GetScheduleTimeFrameRequest as c, type GetScheduleTimeFrameResponse as d, type ListScheduleTimeFramesRequest as e, type SitePropertiesNotification as f, type SitePropertiesEvent as g, type Properties as h, type Locale as i, type AddressHint as j, type GeoCoordinates as k, type SpecialHourPeriod as l, type SupportedLanguage as m, type ConsentPolicy as n, type Translation as o, type ChangeContext as p, type ChangeContextPayloadOneOf as q, type PropertiesChange as r, type SiteCreated as s, type SiteCloned as t, type DomainEvent as u, type DomainEventBodyOneOf as v, type EntityCreatedEvent as w, type RestoreInfo as x, type EntityUpdatedEvent as y, type EntityDeletedEvent as z };
|
|
741
|
+
export {};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.listScheduleTimeFrames = exports.getScheduleTimeFrame = exports.WebhookIdentityType = exports.ResolutionMethod = exports.DayOfWeek = exports.PlacementType = exports.Status = void 0;
|
|
27
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
29
|
+
const ambassadorWixCalendarV3ScheduleTimeFrame = __importStar(require("./calendar-v3-schedule-time-frame-schedule-time-frames.http.js"));
|
|
30
|
+
var Status;
|
|
31
|
+
(function (Status) {
|
|
32
|
+
Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
33
|
+
/** No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) that belong to the schedule. */
|
|
34
|
+
Status["NONE"] = "NONE";
|
|
35
|
+
/** There are no recurring events or all recurring events belonging to the schedule have a defined end date. */
|
|
36
|
+
Status["FINITE"] = "FINITE";
|
|
37
|
+
/** At least one recurring event belonging to the schedule has an unlimited repetition pattern (no end date). */
|
|
38
|
+
Status["INFINITE"] = "INFINITE";
|
|
39
|
+
})(Status || (exports.Status = Status = {}));
|
|
40
|
+
/** Where the extra text should be displayed: before, after or instead of the actual address. */
|
|
41
|
+
var PlacementType;
|
|
42
|
+
(function (PlacementType) {
|
|
43
|
+
PlacementType["BEFORE"] = "BEFORE";
|
|
44
|
+
PlacementType["AFTER"] = "AFTER";
|
|
45
|
+
PlacementType["REPLACE"] = "REPLACE";
|
|
46
|
+
})(PlacementType || (exports.PlacementType = PlacementType = {}));
|
|
47
|
+
/** Enumerates the days of the week. */
|
|
48
|
+
var DayOfWeek;
|
|
49
|
+
(function (DayOfWeek) {
|
|
50
|
+
DayOfWeek["MONDAY"] = "MONDAY";
|
|
51
|
+
DayOfWeek["TUESDAY"] = "TUESDAY";
|
|
52
|
+
DayOfWeek["WEDNESDAY"] = "WEDNESDAY";
|
|
53
|
+
DayOfWeek["THURSDAY"] = "THURSDAY";
|
|
54
|
+
DayOfWeek["FRIDAY"] = "FRIDAY";
|
|
55
|
+
DayOfWeek["SATURDAY"] = "SATURDAY";
|
|
56
|
+
DayOfWeek["SUNDAY"] = "SUNDAY";
|
|
57
|
+
})(DayOfWeek || (exports.DayOfWeek = DayOfWeek = {}));
|
|
58
|
+
var ResolutionMethod;
|
|
59
|
+
(function (ResolutionMethod) {
|
|
60
|
+
ResolutionMethod["QUERY_PARAM"] = "QUERY_PARAM";
|
|
61
|
+
ResolutionMethod["SUBDOMAIN"] = "SUBDOMAIN";
|
|
62
|
+
ResolutionMethod["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
63
|
+
})(ResolutionMethod || (exports.ResolutionMethod = ResolutionMethod = {}));
|
|
64
|
+
var WebhookIdentityType;
|
|
65
|
+
(function (WebhookIdentityType) {
|
|
66
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
67
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
68
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
69
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
70
|
+
WebhookIdentityType["APP"] = "APP";
|
|
71
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves a schedule time frame by schedule ID.
|
|
74
|
+
* @param _id - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
|
|
75
|
+
* ID for which to retrieve the schedule time frame.
|
|
76
|
+
* @public
|
|
77
|
+
* @documentationMaturity preview
|
|
78
|
+
* @requiredField _id
|
|
79
|
+
* @permissionId CALENDAR.SCHEDULE_READ
|
|
80
|
+
* @permissionScope Read Bookings - Public Data
|
|
81
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
82
|
+
* @permissionScope Read Calendar - Including PI
|
|
83
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
|
|
84
|
+
* @permissionScope Manage Calendars
|
|
85
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
86
|
+
* @permissionScope Manage Bookings
|
|
87
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
88
|
+
* @permissionScope Read Bookings - Including Participants
|
|
89
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
90
|
+
* @permissionScope Read Bookings - all read permissions
|
|
91
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
92
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
93
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
|
|
94
|
+
* @permissionScope Read Calendar
|
|
95
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
|
|
96
|
+
* @permissionScope Manage Bookings - all permissions
|
|
97
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
98
|
+
* @permissionScope Read bookings calendar - including participants
|
|
99
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
100
|
+
* @permissionScope Read Bookings Calendar
|
|
101
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
|
|
102
|
+
* @applicableIdentity APP
|
|
103
|
+
* @applicableIdentity VISITOR
|
|
104
|
+
* @returns Retrieved schedule time frame.
|
|
105
|
+
* @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame
|
|
106
|
+
*/
|
|
107
|
+
async function getScheduleTimeFrame(_id, options) {
|
|
108
|
+
// @ts-ignore
|
|
109
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
110
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
111
|
+
id: _id,
|
|
112
|
+
timeZone: options?.timeZone,
|
|
113
|
+
});
|
|
114
|
+
const reqOpts = ambassadorWixCalendarV3ScheduleTimeFrame.getScheduleTimeFrame(payload);
|
|
115
|
+
sideEffects?.onSiteCall?.();
|
|
116
|
+
try {
|
|
117
|
+
const result = await httpClient.request(reqOpts);
|
|
118
|
+
sideEffects?.onSuccess?.(result);
|
|
119
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)
|
|
120
|
+
?.scheduleTimeFrame;
|
|
121
|
+
}
|
|
122
|
+
catch (err) {
|
|
123
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
124
|
+
spreadPathsToArguments: {},
|
|
125
|
+
explicitPathsToArguments: { id: '$[0]', timeZone: '$[1].timeZone' },
|
|
126
|
+
singleArgumentUnchanged: false,
|
|
127
|
+
}, ['_id', 'options']);
|
|
128
|
+
sideEffects?.onError?.(err);
|
|
129
|
+
throw transformedError;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.getScheduleTimeFrame = getScheduleTimeFrame;
|
|
133
|
+
/**
|
|
134
|
+
* Retrieves a list of schedule time frames by schedule IDs.
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
* Sorted by schedule ID in ascending order.
|
|
138
|
+
* @param ids - IDs of the schedules for which to retrieve schedule time frames.
|
|
139
|
+
*
|
|
140
|
+
* Min: 1 schedule ID
|
|
141
|
+
* Max: 100 schedule IDs
|
|
142
|
+
* @public
|
|
143
|
+
* @documentationMaturity preview
|
|
144
|
+
* @requiredField ids
|
|
145
|
+
* @permissionId CALENDAR.SCHEDULE_READ
|
|
146
|
+
* @permissionScope Read Bookings - Public Data
|
|
147
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
148
|
+
* @permissionScope Read Calendar - Including PI
|
|
149
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
|
|
150
|
+
* @permissionScope Manage Calendars
|
|
151
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
|
|
152
|
+
* @permissionScope Manage Bookings
|
|
153
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
154
|
+
* @permissionScope Read Bookings - Including Participants
|
|
155
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
156
|
+
* @permissionScope Read Bookings - all read permissions
|
|
157
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
158
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
159
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
|
|
160
|
+
* @permissionScope Read Calendar
|
|
161
|
+
* @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
|
|
162
|
+
* @permissionScope Manage Bookings - all permissions
|
|
163
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
164
|
+
* @permissionScope Read bookings calendar - including participants
|
|
165
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
166
|
+
* @permissionScope Read Bookings Calendar
|
|
167
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
|
|
168
|
+
* @applicableIdentity APP
|
|
169
|
+
* @applicableIdentity VISITOR
|
|
170
|
+
* @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames
|
|
171
|
+
*/
|
|
172
|
+
async function listScheduleTimeFrames(ids, options) {
|
|
173
|
+
// @ts-ignore
|
|
174
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
175
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
176
|
+
ids: ids,
|
|
177
|
+
timeZone: options?.timeZone,
|
|
178
|
+
});
|
|
179
|
+
const reqOpts = ambassadorWixCalendarV3ScheduleTimeFrame.listScheduleTimeFrames(payload);
|
|
180
|
+
sideEffects?.onSiteCall?.();
|
|
181
|
+
try {
|
|
182
|
+
const result = await httpClient.request(reqOpts);
|
|
183
|
+
sideEffects?.onSuccess?.(result);
|
|
184
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
185
|
+
}
|
|
186
|
+
catch (err) {
|
|
187
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
188
|
+
spreadPathsToArguments: {},
|
|
189
|
+
explicitPathsToArguments: { ids: '$[0]', timeZone: '$[1].timeZone' },
|
|
190
|
+
singleArgumentUnchanged: false,
|
|
191
|
+
}, ['ids', 'options']);
|
|
192
|
+
sideEffects?.onError?.(err);
|
|
193
|
+
throw transformedError;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.listScheduleTimeFrames = listScheduleTimeFrames;
|
|
197
|
+
//# sourceMappingURL=calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-v3-schedule-time-frame-schedule-time-frames.universal.js","sourceRoot":"","sources":["../../../src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.ts"],"names":[],"mappings":"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"}
|