@wix/auto_sdk_calendar_schedule-time-frames 1.0.0

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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +14 -0
  11. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +22 -0
  12. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +1 -0
  13. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +10 -0
  14. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +113 -0
  15. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +1 -0
  16. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +16 -0
  17. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +66 -0
  18. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +1 -0
  19. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +31 -0
  20. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +40 -0
  21. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +1 -0
  22. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +518 -0
  23. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +46 -0
  24. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +1 -0
  25. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts +671 -0
  26. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +185 -0
  27. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +14 -0
  39. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +14 -0
  40. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +1 -0
  41. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +10 -0
  42. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +108 -0
  43. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +1 -0
  44. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +16 -0
  45. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +38 -0
  46. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +1 -0
  47. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +31 -0
  48. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +30 -0
  49. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +1 -0
  50. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +518 -0
  51. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +43 -0
  52. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +1 -0
  53. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts +671 -0
  54. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +157 -0
  55. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +14 -0
  66. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +22 -0
  67. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +1 -0
  68. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +10 -0
  69. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +113 -0
  70. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +1 -0
  71. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +16 -0
  72. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +66 -0
  73. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +1 -0
  74. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +31 -0
  75. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +40 -0
  76. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +1 -0
  77. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +518 -0
  78. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +46 -0
  79. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +1 -0
  80. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts +671 -0
  81. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +185 -0
  82. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +14 -0
  93. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +14 -0
  94. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +1 -0
  95. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +10 -0
  96. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +108 -0
  97. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +1 -0
  98. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +16 -0
  99. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +38 -0
  100. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +1 -0
  101. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +31 -0
  102. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +30 -0
  103. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +1 -0
  104. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +518 -0
  105. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +43 -0
  106. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +1 -0
  107. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts +671 -0
  108. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +157 -0
  109. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,671 @@
1
+ /**
2
+ * Information about the start and end dates of the first and last
3
+ * [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
4
+ * that belong to a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
5
+ * and whether any events follow an unlimited repetition pattern.
6
+ */
7
+ export interface ScheduleTimeFrame {
8
+ /**
9
+ * ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
10
+ * to which the time frame belongs.
11
+ * @readonly
12
+ */
13
+ _id?: string | null;
14
+ /**
15
+ * Information about the presence of recurring events within the schedule.
16
+ *
17
+ * Supported values:
18
+ * + `NONE`: No [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) are scheduled within the schedule.
19
+ * + `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.
20
+ * + `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.
21
+ * @readonly
22
+ */
23
+ status?: Status;
24
+ /**
25
+ * Start date of the first [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
26
+ * within the schedule. Identical to `event.start.localDate`. Available only if
27
+ * `status` is set to `FINITE` or `INFINITE`.
28
+ * @readonly
29
+ */
30
+ firstEventStartDate?: ZonedDate;
31
+ /**
32
+ * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
33
+ * belonging to the schedule. Identical to `event.end.localDate`. Available only if
34
+ * `status` is set to `FINITE`.
35
+ * @readonly
36
+ */
37
+ lastEventEndDate?: ZonedDate;
38
+ /**
39
+ * Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
40
+ * belonging to the schedule, adjusted to `timeZone` of the
41
+ * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
42
+ * or the `timeZone` specified in the request.
43
+ * Identical to `event.adjustedStart.localDate`.
44
+ * @readonly
45
+ */
46
+ adjustedFirstEventStartDate?: ZonedDate;
47
+ /**
48
+ * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
49
+ * belonging to the schedule, adjusted to `timeZone` of the
50
+ * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
51
+ * or the `timeZone` specified in the request.
52
+ * Identical to `event.adjustedEnd.localDate`.
53
+ * @readonly
54
+ */
55
+ adjustedLastEventEndDate?: ZonedDate;
56
+ /**
57
+ * Revision number, which increments by 1 each time the schedule time frame is updated.
58
+ * @readonly
59
+ */
60
+ revision?: string | null;
61
+ }
62
+ export declare enum Status {
63
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
64
+ /** No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) that belong to the schedule. */
65
+ NONE = "NONE",
66
+ /** There are no recurring events or all recurring events belonging to the schedule have a defined end date. */
67
+ FINITE = "FINITE",
68
+ /** At least one recurring event belonging to the schedule has an unlimited repetition pattern (no end date). */
69
+ INFINITE = "INFINITE"
70
+ }
71
+ /** A date time with a time zone, having the UTC offset and date determined by the server. */
72
+ export interface ZonedDate {
73
+ /**
74
+ * Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
75
+ * For example, `2024-01-30T13:30:00`.
76
+ * Wix Calendar APIs ignore seconds.
77
+ */
78
+ localDate?: string | null;
79
+ /**
80
+ * Time zone in
81
+ * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
82
+ * For example, `America/New_York`.
83
+ * @readonly
84
+ */
85
+ timeZone?: string | null;
86
+ /**
87
+ * UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
88
+ * For example, `2024-01-30T13:30:00`.
89
+ * Not available for adjusted date fields.
90
+ * @readonly
91
+ */
92
+ utcDate?: Date | null;
93
+ }
94
+ /** Deprecated. Use the standard ScheduleTimeFrameUpdated event instead, which also includes the modified fields. */
95
+ export interface ScheduleTimeFrameUpdatedWithMetadata {
96
+ /** Updated schedule time frame. */
97
+ scheduleTimeFrame?: ScheduleTimeFrame;
98
+ }
99
+ export interface GetScheduleTimeFrameRequest {
100
+ /**
101
+ * [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
102
+ * ID for which to retrieve the schedule time frame.
103
+ */
104
+ _id: string | null;
105
+ /**
106
+ * Time zone for adjusting the times of the returned schedule time frame.
107
+ *
108
+ * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)
109
+ */
110
+ timeZone?: string | null;
111
+ }
112
+ export interface GetScheduleTimeFrameResponse {
113
+ /** Retrieved schedule time frame. */
114
+ scheduleTimeFrame?: ScheduleTimeFrame;
115
+ }
116
+ export interface ListScheduleTimeFramesRequest {
117
+ /**
118
+ * IDs of the schedules for which to retrieve schedule time frames.
119
+ *
120
+ * Min: 1 schedule ID
121
+ * Max: 100 schedule IDs
122
+ */
123
+ ids: string[];
124
+ /**
125
+ * Time zone for adjusting the times of the returned schedule time frames.
126
+ *
127
+ * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)
128
+ */
129
+ timeZone?: string | null;
130
+ }
131
+ export interface ListScheduleTimeFramesResponse {
132
+ /** Retrieved schedule time frames. */
133
+ scheduleTimeFrames?: ScheduleTimeFrame[];
134
+ }
135
+ /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
136
+ export interface SitePropertiesNotification {
137
+ /** The site ID for which this update notification applies. */
138
+ metasiteId?: string;
139
+ /** The actual update event. */
140
+ event?: SitePropertiesEvent;
141
+ /** A convenience set of mappings from the MetaSite ID to its constituent services. */
142
+ translations?: Translation[];
143
+ /** Context of the notification */
144
+ changeContext?: ChangeContext;
145
+ }
146
+ /** The actual update event for a particular notification. */
147
+ export interface SitePropertiesEvent {
148
+ /** Version of the site's properties represented by this update. */
149
+ version?: number;
150
+ /** Set of properties that were updated - corresponds to the fields in "properties". */
151
+ fields?: string[];
152
+ /** Updated properties. */
153
+ properties?: Properties;
154
+ }
155
+ export interface Properties {
156
+ /** Site categories. */
157
+ categories?: Categories;
158
+ /** Site locale. */
159
+ locale?: Locale;
160
+ /**
161
+ * Site language.
162
+ *
163
+ * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
164
+ */
165
+ language?: string | null;
166
+ /**
167
+ * Site currency format used to bill customers.
168
+ *
169
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
170
+ */
171
+ paymentCurrency?: string | null;
172
+ /** Timezone in `America/New_York` format. */
173
+ timeZone?: string | null;
174
+ /** Email address. */
175
+ email?: string | null;
176
+ /** Phone number. */
177
+ phone?: string | null;
178
+ /** Fax number. */
179
+ fax?: string | null;
180
+ /** Address. */
181
+ address?: Address;
182
+ /** Site display name. */
183
+ siteDisplayName?: string | null;
184
+ /** Business name. */
185
+ businessName?: string | null;
186
+ /** Path to the site's logo in Wix Media (without Wix Media base URL). */
187
+ logo?: string | null;
188
+ /** Site description. */
189
+ description?: string | null;
190
+ /**
191
+ * Business schedule. Regular and exceptional time periods when the business is open or the service is available.
192
+ *
193
+ * __Note:__ Not supported by Wix Bookings.
194
+ */
195
+ businessSchedule?: BusinessSchedule;
196
+ /** Supported languages of a site and the primary language. */
197
+ multilingual?: Multilingual;
198
+ /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */
199
+ consentPolicy?: ConsentPolicy;
200
+ /**
201
+ * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.
202
+ *
203
+ * Site business type.
204
+ */
205
+ businessConfig?: string | null;
206
+ /** External site URL that uses Wix as its headless business solution. */
207
+ externalSiteUrl?: string | null;
208
+ /** Track clicks analytics. */
209
+ trackClicksAnalytics?: boolean;
210
+ }
211
+ export interface Categories {
212
+ /** Primary site category. */
213
+ primary?: string;
214
+ /** Secondary site category. */
215
+ secondary?: string[];
216
+ /** Business Term Id */
217
+ businessTermId?: string | null;
218
+ }
219
+ export interface Locale {
220
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
221
+ languageCode?: string;
222
+ /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
223
+ country?: string;
224
+ }
225
+ export interface Address {
226
+ /** Street name. */
227
+ street?: string;
228
+ /** City name. */
229
+ city?: string;
230
+ /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
231
+ country?: string;
232
+ /** State. */
233
+ state?: string;
234
+ /** Zip or postal code. */
235
+ zip?: string;
236
+ /** Extra information to be displayed in the address. */
237
+ hint?: AddressHint;
238
+ /** Whether this address represents a physical location. */
239
+ isPhysical?: boolean;
240
+ /** Google-formatted version of this address. */
241
+ googleFormattedAddress?: string;
242
+ /** Street number. */
243
+ streetNumber?: string;
244
+ /** Apartment number. */
245
+ apartmentNumber?: string;
246
+ /** Geographic coordinates of location. */
247
+ coordinates?: GeoCoordinates;
248
+ }
249
+ /**
250
+ * Extra information on displayed addresses.
251
+ * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
252
+ * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
253
+ */
254
+ export interface AddressHint {
255
+ /** Extra text displayed next to, or instead of, the actual address. */
256
+ text?: string;
257
+ /** Where the extra text should be displayed. */
258
+ placement?: PlacementType;
259
+ }
260
+ /** Where the extra text should be displayed: before, after or instead of the actual address. */
261
+ export declare enum PlacementType {
262
+ BEFORE = "BEFORE",
263
+ AFTER = "AFTER",
264
+ REPLACE = "REPLACE"
265
+ }
266
+ /** Geocoordinates for a particular address. */
267
+ export interface GeoCoordinates {
268
+ /** Latitude of the location. Must be between -90 and 90. */
269
+ latitude?: number;
270
+ /** Longitude of the location. Must be between -180 and 180. */
271
+ longitude?: number;
272
+ }
273
+ /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
274
+ export interface BusinessSchedule {
275
+ /** Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. */
276
+ periods?: TimePeriod[];
277
+ /** Exceptions to the business's regular hours. The business can be open or closed during the exception. */
278
+ specialHourPeriod?: SpecialHourPeriod[];
279
+ }
280
+ /** Weekly recurring time periods when the business is regularly open or the service is available. */
281
+ export interface TimePeriod {
282
+ /** Day of the week the period starts on. */
283
+ openDay?: DayOfWeek;
284
+ /**
285
+ * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents
286
+ * midnight at the end of the specified day.
287
+ */
288
+ openTime?: string;
289
+ /** Day of the week the period ends on. */
290
+ closeDay?: DayOfWeek;
291
+ /**
292
+ * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents
293
+ * midnight at the end of the specified day.
294
+ *
295
+ * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.
296
+ */
297
+ closeTime?: string;
298
+ }
299
+ /** Enumerates the days of the week. */
300
+ export declare enum DayOfWeek {
301
+ MONDAY = "MONDAY",
302
+ TUESDAY = "TUESDAY",
303
+ WEDNESDAY = "WEDNESDAY",
304
+ THURSDAY = "THURSDAY",
305
+ FRIDAY = "FRIDAY",
306
+ SATURDAY = "SATURDAY",
307
+ SUNDAY = "SUNDAY"
308
+ }
309
+ /** Exception to the business's regular hours. The business can be open or closed during the exception. */
310
+ export interface SpecialHourPeriod {
311
+ /** 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). */
312
+ startDate?: string;
313
+ /** 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). */
314
+ endDate?: string;
315
+ /**
316
+ * Whether the business is closed (or the service is not available) during the exception.
317
+ *
318
+ * Default: `true`.
319
+ */
320
+ isClosed?: boolean;
321
+ /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
322
+ comment?: string;
323
+ }
324
+ export interface Multilingual {
325
+ /** Supported languages list. */
326
+ supportedLanguages?: SupportedLanguage[];
327
+ /** Whether to redirect to user language. */
328
+ autoRedirect?: boolean;
329
+ }
330
+ export interface SupportedLanguage {
331
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
332
+ languageCode?: string;
333
+ /** Locale. */
334
+ locale?: Locale;
335
+ /** Whether the supported language is the primary language for the site. */
336
+ isPrimary?: boolean;
337
+ /** Language icon. */
338
+ countryCode?: string;
339
+ /** How the language will be resolved. For internal use. */
340
+ resolutionMethod?: ResolutionMethod;
341
+ }
342
+ export declare enum ResolutionMethod {
343
+ QUERY_PARAM = "QUERY_PARAM",
344
+ SUBDOMAIN = "SUBDOMAIN",
345
+ SUBDIRECTORY = "SUBDIRECTORY"
346
+ }
347
+ export interface ConsentPolicy {
348
+ /** Whether the site uses cookies that are essential to site operation. Always `true`. */
349
+ essential?: boolean | null;
350
+ /** Whether the site uses cookies that affect site performance and other functional measurements. */
351
+ functional?: boolean | null;
352
+ /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */
353
+ analytics?: boolean | null;
354
+ /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */
355
+ advertising?: boolean | null;
356
+ /** CCPA compliance flag. */
357
+ dataToThirdParty?: boolean | null;
358
+ }
359
+ /** A single mapping from the MetaSite ID to a particular service. */
360
+ export interface Translation {
361
+ /** The service type. */
362
+ serviceType?: string;
363
+ /** The application definition ID; this only applies to services of type ThirdPartyApps. */
364
+ appDefId?: string;
365
+ /** The instance ID of the service. */
366
+ instanceId?: string;
367
+ }
368
+ export interface ChangeContext extends ChangeContextPayloadOneOf {
369
+ /** Properties were updated. */
370
+ propertiesChange?: PropertiesChange;
371
+ /** Default properties were created on site creation. */
372
+ siteCreated?: SiteCreated;
373
+ /** Properties were cloned on site cloning. */
374
+ siteCloned?: SiteCloned;
375
+ }
376
+ /** @oneof */
377
+ export interface ChangeContextPayloadOneOf {
378
+ /** Properties were updated. */
379
+ propertiesChange?: PropertiesChange;
380
+ /** Default properties were created on site creation. */
381
+ siteCreated?: SiteCreated;
382
+ /** Properties were cloned on site cloning. */
383
+ siteCloned?: SiteCloned;
384
+ }
385
+ export interface PropertiesChange {
386
+ }
387
+ export interface SiteCreated {
388
+ /** Origin template site id. */
389
+ originTemplateId?: string | null;
390
+ }
391
+ export interface SiteCloned {
392
+ /** Origin site id. */
393
+ originMetaSiteId?: string;
394
+ }
395
+ export interface Empty {
396
+ }
397
+ export interface DomainEvent extends DomainEventBodyOneOf {
398
+ createdEvent?: EntityCreatedEvent;
399
+ updatedEvent?: EntityUpdatedEvent;
400
+ deletedEvent?: EntityDeletedEvent;
401
+ actionEvent?: ActionEvent;
402
+ /**
403
+ * Unique event ID.
404
+ * Allows clients to ignore duplicate webhooks.
405
+ */
406
+ _id?: string;
407
+ /**
408
+ * Assumes actions are also always typed to an entity_type
409
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
410
+ */
411
+ entityFqdn?: string;
412
+ /**
413
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
414
+ * This is although the created/updated/deleted notion is duplication of the oneof types
415
+ * Example: created/updated/deleted/started/completed/email_opened
416
+ */
417
+ slug?: string;
418
+ /** ID of the entity associated with the event. */
419
+ entityId?: string;
420
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
421
+ eventTime?: Date | null;
422
+ /**
423
+ * Whether the event was triggered as a result of a privacy regulation application
424
+ * (for example, GDPR).
425
+ */
426
+ triggeredByAnonymizeRequest?: boolean | null;
427
+ /** If present, indicates the action that triggered the event. */
428
+ originatedFrom?: string | null;
429
+ /**
430
+ * A sequence number defining the order of updates to the underlying entity.
431
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
432
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
433
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
434
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
435
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
436
+ */
437
+ entityEventSequence?: string | null;
438
+ }
439
+ /** @oneof */
440
+ export interface DomainEventBodyOneOf {
441
+ createdEvent?: EntityCreatedEvent;
442
+ updatedEvent?: EntityUpdatedEvent;
443
+ deletedEvent?: EntityDeletedEvent;
444
+ actionEvent?: ActionEvent;
445
+ }
446
+ export interface EntityCreatedEvent {
447
+ entity?: string;
448
+ }
449
+ export interface RestoreInfo {
450
+ deletedDate?: Date | null;
451
+ }
452
+ export interface EntityUpdatedEvent {
453
+ /**
454
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
455
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
456
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
457
+ */
458
+ currentEntity?: string;
459
+ }
460
+ export interface EntityDeletedEvent {
461
+ /** Entity that was deleted */
462
+ deletedEntity?: string | null;
463
+ }
464
+ export interface ActionEvent {
465
+ body?: string;
466
+ }
467
+ export interface MessageEnvelope {
468
+ /** App instance ID. */
469
+ instanceId?: string | null;
470
+ /** Event type. */
471
+ eventType?: string;
472
+ /** The identification type and identity data. */
473
+ identity?: IdentificationData;
474
+ /** Stringify payload. */
475
+ data?: string;
476
+ }
477
+ export interface IdentificationData extends IdentificationDataIdOneOf {
478
+ /** ID of a site visitor that has not logged in to the site. */
479
+ anonymousVisitorId?: string;
480
+ /** ID of a site visitor that has logged in to the site. */
481
+ memberId?: string;
482
+ /** ID of a Wix user (site owner, contributor, etc.). */
483
+ wixUserId?: string;
484
+ /** ID of an app. */
485
+ appId?: string;
486
+ /** @readonly */
487
+ identityType?: WebhookIdentityType;
488
+ }
489
+ /** @oneof */
490
+ export interface IdentificationDataIdOneOf {
491
+ /** ID of a site visitor that has not logged in to the site. */
492
+ anonymousVisitorId?: string;
493
+ /** ID of a site visitor that has logged in to the site. */
494
+ memberId?: string;
495
+ /** ID of a Wix user (site owner, contributor, etc.). */
496
+ wixUserId?: string;
497
+ /** ID of an app. */
498
+ appId?: string;
499
+ }
500
+ export declare enum WebhookIdentityType {
501
+ UNKNOWN = "UNKNOWN",
502
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
503
+ MEMBER = "MEMBER",
504
+ WIX_USER = "WIX_USER",
505
+ APP = "APP"
506
+ }
507
+ export interface ScheduleTimeFrameNonNullableFields {
508
+ status: Status;
509
+ }
510
+ export interface GetScheduleTimeFrameResponseNonNullableFields {
511
+ scheduleTimeFrame?: ScheduleTimeFrameNonNullableFields;
512
+ }
513
+ export interface ListScheduleTimeFramesResponseNonNullableFields {
514
+ scheduleTimeFrames: ScheduleTimeFrameNonNullableFields[];
515
+ }
516
+ export interface BaseEventMetadata {
517
+ /** App instance ID. */
518
+ instanceId?: string | null;
519
+ /** Event type. */
520
+ eventType?: string;
521
+ /** The identification type and identity data. */
522
+ identity?: IdentificationData;
523
+ }
524
+ export interface EventMetadata extends BaseEventMetadata {
525
+ /**
526
+ * Unique event ID.
527
+ * Allows clients to ignore duplicate webhooks.
528
+ */
529
+ _id?: string;
530
+ /**
531
+ * Assumes actions are also always typed to an entity_type
532
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
533
+ */
534
+ entityFqdn?: string;
535
+ /**
536
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
537
+ * This is although the created/updated/deleted notion is duplication of the oneof types
538
+ * Example: created/updated/deleted/started/completed/email_opened
539
+ */
540
+ slug?: string;
541
+ /** ID of the entity associated with the event. */
542
+ entityId?: string;
543
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
544
+ eventTime?: Date | null;
545
+ /**
546
+ * Whether the event was triggered as a result of a privacy regulation application
547
+ * (for example, GDPR).
548
+ */
549
+ triggeredByAnonymizeRequest?: boolean | null;
550
+ /** If present, indicates the action that triggered the event. */
551
+ originatedFrom?: string | null;
552
+ /**
553
+ * A sequence number defining the order of updates to the underlying entity.
554
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
555
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
556
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
557
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
558
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
559
+ */
560
+ entityEventSequence?: string | null;
561
+ }
562
+ export interface ScheduleTimeFrameUpdatedEnvelope {
563
+ entity: ScheduleTimeFrame;
564
+ metadata: EventMetadata;
565
+ }
566
+ /**
567
+ * Triggered when a schedule's time frame is updated, indicating a new first or
568
+ * last event or a change in the recurrence period, such as an extension or
569
+ * reduction.
570
+ * @permissionScope Read Bookings - Public Data
571
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
572
+ * @permissionScope Read Calendar - Including PI
573
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
574
+ * @permissionScope Read Bookings - all read permissions
575
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
576
+ * @permissionScope Read Bookings Calendar Availability
577
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
578
+ * @permissionScope Read Calendar
579
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
580
+ * @permissionScope Manage Bookings - all permissions
581
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
582
+ * @permissionScope Read bookings calendar - including participants
583
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
584
+ * @permissionScope Read Bookings Calendar
585
+ * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
586
+ * @permissionId CALENDAR.SCHEDULE_READ
587
+ * @webhook
588
+ * @eventType wix.calendar.v3.schedule_time_frame_updated
589
+ * @documentationMaturity preview
590
+ */
591
+ export declare function onScheduleTimeFrameUpdated(handler: (event: ScheduleTimeFrameUpdatedEnvelope) => void | Promise<void>): void;
592
+ /**
593
+ * Retrieves a schedule time frame by schedule ID.
594
+ * @param _id - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
595
+ * ID for which to retrieve the schedule time frame.
596
+ * @public
597
+ * @documentationMaturity preview
598
+ * @requiredField _id
599
+ * @permissionId CALENDAR.SCHEDULE_READ
600
+ * @permissionScope Read Bookings - Public Data
601
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
602
+ * @permissionScope Read Calendar - Including PI
603
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
604
+ * @permissionScope Read Bookings - all read permissions
605
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
606
+ * @permissionScope Read Bookings Calendar Availability
607
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
608
+ * @permissionScope Read Calendar
609
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
610
+ * @permissionScope Manage Bookings - all permissions
611
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
612
+ * @permissionScope Read bookings calendar - including participants
613
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
614
+ * @permissionScope Read Bookings Calendar
615
+ * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
616
+ * @applicableIdentity APP
617
+ * @applicableIdentity VISITOR
618
+ * @returns Retrieved schedule time frame.
619
+ * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame
620
+ */
621
+ export declare function getScheduleTimeFrame(_id: string | null, options?: GetScheduleTimeFrameOptions): Promise<ScheduleTimeFrame & ScheduleTimeFrameNonNullableFields>;
622
+ export interface GetScheduleTimeFrameOptions {
623
+ /**
624
+ * 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`.
625
+ *
626
+ * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
627
+ */
628
+ timeZone?: string | null;
629
+ }
630
+ /**
631
+ * Retrieves a list of schedule time frames by schedule IDs.
632
+ *
633
+ *
634
+ * Sorted by schedule ID in ascending order.
635
+ * @param ids - IDs of the schedules for which to retrieve schedule time frames.
636
+ *
637
+ * Min: 1 schedule ID
638
+ * Max: 100 schedule IDs
639
+ * @public
640
+ * @documentationMaturity preview
641
+ * @requiredField ids
642
+ * @permissionId CALENDAR.SCHEDULE_READ
643
+ * @permissionScope Read Bookings - Public Data
644
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
645
+ * @permissionScope Read Calendar - Including PI
646
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
647
+ * @permissionScope Read Bookings - all read permissions
648
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
649
+ * @permissionScope Read Bookings Calendar Availability
650
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
651
+ * @permissionScope Read Calendar
652
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
653
+ * @permissionScope Manage Bookings - all permissions
654
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
655
+ * @permissionScope Read bookings calendar - including participants
656
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
657
+ * @permissionScope Read Bookings Calendar
658
+ * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
659
+ * @applicableIdentity APP
660
+ * @applicableIdentity VISITOR
661
+ * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames
662
+ */
663
+ export declare function listScheduleTimeFrames(ids: string[], options?: ListScheduleTimeFramesOptions): Promise<ListScheduleTimeFramesResponse & ListScheduleTimeFramesResponseNonNullableFields>;
664
+ export interface ListScheduleTimeFramesOptions {
665
+ /**
666
+ * 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`.
667
+ *
668
+ * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
669
+ */
670
+ timeZone?: string | null;
671
+ }