@wix/auto_sdk_calendar_schedules 1.0.32 → 1.0.34

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 (134) hide show
  1. package/build/{internal/cjs/src/calendar-v3-schedule-schedules.universal.d.ts → calendar-v3-schedule-schedules.universal-D3nvGK6W.d.mts} +111 -426
  2. package/build/{cjs/src/calendar-v3-schedule-schedules.universal.d.ts → calendar-v3-schedule-schedules.universal-D3nvGK6W.d.ts} +111 -426
  3. package/build/index.d.mts +105 -0
  4. package/build/index.d.ts +105 -0
  5. package/build/index.js +700 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +653 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/calendar-v3-schedule-schedules.universal.d.ts → calendar-v3-schedule-schedules.universal-D3nvGK6W.d.mts} +111 -426
  10. package/build/{es/src/calendar-v3-schedule-schedules.universal.d.ts → internal/calendar-v3-schedule-schedules.universal-D3nvGK6W.d.ts} +111 -426
  11. package/build/internal/index.d.mts +105 -0
  12. package/build/internal/index.d.ts +105 -0
  13. package/build/internal/index.js +700 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +653 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +487 -0
  18. package/build/internal/meta.d.ts +487 -0
  19. package/build/internal/meta.js +331 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +300 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +487 -0
  24. package/build/meta.d.ts +487 -0
  25. package/build/meta.js +331 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +300 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/calendar-v3-schedule-schedules.context.d.ts +0 -30
  40. package/build/cjs/src/calendar-v3-schedule-schedules.context.js +0 -48
  41. package/build/cjs/src/calendar-v3-schedule-schedules.context.js.map +0 -1
  42. package/build/cjs/src/calendar-v3-schedule-schedules.http.d.ts +0 -53
  43. package/build/cjs/src/calendar-v3-schedule-schedules.http.js +0 -255
  44. package/build/cjs/src/calendar-v3-schedule-schedules.http.js.map +0 -1
  45. package/build/cjs/src/calendar-v3-schedule-schedules.meta.d.ts +0 -23
  46. package/build/cjs/src/calendar-v3-schedule-schedules.meta.js +0 -123
  47. package/build/cjs/src/calendar-v3-schedule-schedules.meta.js.map +0 -1
  48. package/build/cjs/src/calendar-v3-schedule-schedules.public.d.ts +0 -86
  49. package/build/cjs/src/calendar-v3-schedule-schedules.public.js +0 -96
  50. package/build/cjs/src/calendar-v3-schedule-schedules.public.js.map +0 -1
  51. package/build/cjs/src/calendar-v3-schedule-schedules.types.d.ts +0 -1362
  52. package/build/cjs/src/calendar-v3-schedule-schedules.types.js +0 -208
  53. package/build/cjs/src/calendar-v3-schedule-schedules.types.js.map +0 -1
  54. package/build/cjs/src/calendar-v3-schedule-schedules.universal.js +0 -596
  55. package/build/cjs/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/calendar-v3-schedule-schedules.context.d.ts +0 -30
  67. package/build/es/src/calendar-v3-schedule-schedules.context.js +0 -30
  68. package/build/es/src/calendar-v3-schedule-schedules.context.js.map +0 -1
  69. package/build/es/src/calendar-v3-schedule-schedules.http.d.ts +0 -53
  70. package/build/es/src/calendar-v3-schedule-schedules.http.js +0 -247
  71. package/build/es/src/calendar-v3-schedule-schedules.http.js.map +0 -1
  72. package/build/es/src/calendar-v3-schedule-schedules.meta.d.ts +0 -23
  73. package/build/es/src/calendar-v3-schedule-schedules.meta.js +0 -92
  74. package/build/es/src/calendar-v3-schedule-schedules.meta.js.map +0 -1
  75. package/build/es/src/calendar-v3-schedule-schedules.public.d.ts +0 -86
  76. package/build/es/src/calendar-v3-schedule-schedules.public.js +0 -73
  77. package/build/es/src/calendar-v3-schedule-schedules.public.js.map +0 -1
  78. package/build/es/src/calendar-v3-schedule-schedules.types.d.ts +0 -1362
  79. package/build/es/src/calendar-v3-schedule-schedules.types.js +0 -205
  80. package/build/es/src/calendar-v3-schedule-schedules.types.js.map +0 -1
  81. package/build/es/src/calendar-v3-schedule-schedules.universal.js +0 -565
  82. package/build/es/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.d.ts +0 -30
  93. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.js +0 -48
  94. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.js.map +0 -1
  95. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.d.ts +0 -53
  96. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.js +0 -255
  97. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.js.map +0 -1
  98. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.d.ts +0 -23
  99. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.js +0 -123
  100. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.js.map +0 -1
  101. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.d.ts +0 -86
  102. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.js +0 -96
  103. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.js.map +0 -1
  104. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.d.ts +0 -1362
  105. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.js +0 -208
  106. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.js.map +0 -1
  107. package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.js +0 -596
  108. package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/calendar-v3-schedule-schedules.context.d.ts +0 -30
  119. package/build/internal/es/src/calendar-v3-schedule-schedules.context.js +0 -30
  120. package/build/internal/es/src/calendar-v3-schedule-schedules.context.js.map +0 -1
  121. package/build/internal/es/src/calendar-v3-schedule-schedules.http.d.ts +0 -53
  122. package/build/internal/es/src/calendar-v3-schedule-schedules.http.js +0 -247
  123. package/build/internal/es/src/calendar-v3-schedule-schedules.http.js.map +0 -1
  124. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.d.ts +0 -23
  125. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.js +0 -92
  126. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.js.map +0 -1
  127. package/build/internal/es/src/calendar-v3-schedule-schedules.public.d.ts +0 -86
  128. package/build/internal/es/src/calendar-v3-schedule-schedules.public.js +0 -73
  129. package/build/internal/es/src/calendar-v3-schedule-schedules.public.js.map +0 -1
  130. package/build/internal/es/src/calendar-v3-schedule-schedules.types.d.ts +0 -1362
  131. package/build/internal/es/src/calendar-v3-schedule-schedules.types.js +0 -205
  132. package/build/internal/es/src/calendar-v3-schedule-schedules.types.js.map +0 -1
  133. package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js +0 -565
  134. package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
@@ -1,1362 +0,0 @@
1
- /**
2
- * A collection of [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
3
- * associated with a specific entity, such as a
4
- * [Bookings service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object),
5
- * or [Bookings resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
6
- * Schedules can also serve as templates for the events they manage, setting
7
- * default values like a default location.
8
- */
9
- export interface Schedule {
10
- /**
11
- * Schedule ID.
12
- * @format GUID
13
- * @readonly
14
- */
15
- id?: string | null;
16
- /**
17
- * External ID. You can't update the external ID.
18
- *
19
- * If the schedule belongs to a Bookings staff member, identical to the ID of
20
- * the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
21
- * If the schedule belongs to a Bookings service, identical to the ID of
22
- * the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).
23
- * @format GUID
24
- * @immutable
25
- */
26
- externalId?: string | null;
27
- /**
28
- * Schedule name.
29
- *
30
- * Min: 1 character
31
- * Max: 200 characters
32
- * @minLength 1
33
- * @maxLength 200
34
- */
35
- name?: string | null;
36
- /**
37
- * Schedule status.
38
- *
39
- * Supported values:
40
- * - `ACTIVE`: You can add events to the schedule or update its fields.
41
- * - `CANCELLED`: You can't add events to the schedule or update its fields.
42
- *
43
- * Default: `ACTIVE`
44
- * @readonly
45
- */
46
- status?: Status;
47
- /**
48
- * Time zone the schedule is associated with in
49
- * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
50
- * For example, `America/New_York`.
51
- *
52
- * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
53
- *
54
- * Min: 1 character
55
- * Max: 150 characters
56
- * @minLength 1
57
- * @maxLength 150
58
- */
59
- timeZone?: string | null;
60
- /**
61
- * Whether the schedule's `timeZone` is automatically synced from
62
- * `timeZone` of the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
63
- *
64
- * Default: `true`
65
- */
66
- businessTimeZoneEnabled?: boolean | null;
67
- /**
68
- * Default `title` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
69
- * that are added to the schedule.
70
- *
71
- * Min: 1 character
72
- * Max: 200 characters
73
- * @minLength 1
74
- * @maxLength 200
75
- */
76
- defaultTitle?: string | null;
77
- /**
78
- * Default `location` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
79
- * that are added to the schedule.
80
- */
81
- defaultLocation?: Location;
82
- /**
83
- * Default `totalCapacity` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
84
- * that are added to the schedule.
85
- *
86
- * Min: `0`
87
- */
88
- defaultCapacity?: number | null;
89
- /**
90
- * Default `conferencingDetails` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
91
- * that are added to the schedule.
92
- * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).
93
- */
94
- defaultConferencingDetails?: ConferencingDetails;
95
- /**
96
- * ID of the app that's associated with the schedule. You can't update `appId`.
97
- * If you want to create a schedule and ensure its associated events appear
98
- * in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
99
- * you must provide the [Wix Bookings app ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
100
- * `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.
101
- * @format GUID
102
- * @immutable
103
- */
104
- appId?: string | null;
105
- /**
106
- * List of permissions associated with the schedule. Refer to the
107
- * [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)
108
- * for more information.
109
- *
110
- * Max: 1 permission
111
- * @maxSize 1
112
- */
113
- permissions?: Permission[];
114
- /** Extensions enabling applications or users to save custom data related to the schedule. */
115
- extendedFields?: ExtendedFields;
116
- /**
117
- * Revision number, which increments by 1 each time the schedule is updated.
118
- * To prevent conflicting changes, the current revision must be passed when updating the schedule.
119
- * Ignored when creating a schedule.
120
- * @readonly
121
- */
122
- revision?: string | null;
123
- /**
124
- * Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
125
- * @readonly
126
- */
127
- createdDate?: Date | null;
128
- /**
129
- * Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
130
- * @readonly
131
- */
132
- updatedDate?: Date | null;
133
- }
134
- export declare enum Status {
135
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
136
- /** You can add events to the schedule or update its fields. */
137
- ACTIVE = "ACTIVE",
138
- /** You can't add events to the schedule or update its fields. */
139
- CANCELLED = "CANCELLED"
140
- }
141
- export interface Location {
142
- /**
143
- * [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
144
- * ID. Available only for `BUSINESS` locations.
145
- * @format GUID
146
- */
147
- id?: string | null;
148
- /**
149
- * Location type.
150
- *
151
- * Supported values:
152
- * + `BUSINESS`: The event is held at a business location.
153
- * + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
154
- * + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
155
- */
156
- type?: LocationType;
157
- /**
158
- * Location name. For `BUSINESS` locations, it's identical to the
159
- * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
160
- * `name`.
161
- *
162
- * Min: 1 character
163
- * Max: 150 characters
164
- * @minLength 1
165
- * @maxLength 150
166
- */
167
- name?: string | null;
168
- /**
169
- * Location address. For `BUSINESS` locations, it's identical to the
170
- * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
171
- * `formattedAddress`.
172
- * @minLength 1
173
- * @maxLength 300
174
- */
175
- address?: string | null;
176
- }
177
- export declare enum LocationType {
178
- UNKNOWN_TYPE = "UNKNOWN_TYPE",
179
- /** The event is held at a business location. */
180
- BUSINESS = "BUSINESS",
181
- /** The event is held at the customer's location, such as their home or office. */
182
- CUSTOMER = "CUSTOMER",
183
- /** The event is held at an address or venue not tied to the business or customer. */
184
- CUSTOM = "CUSTOM"
185
- }
186
- export interface ConferencingDetails {
187
- /** Conference type. For example, `Zoom`. */
188
- type?: Type;
189
- /**
190
- * URL used by the host to start the conference.
191
- *
192
- * Min: 1 character
193
- * Max: 2000 characters
194
- * @minLength 1
195
- * @maxLength 2000
196
- */
197
- hostUrl?: string | null;
198
- /**
199
- * URL used by a guest to join the conference.
200
- *
201
- * Min: 1 character
202
- * Max: 2000 characters
203
- * @minLength 1
204
- * @maxLength 2000
205
- */
206
- guestUrl?: string | null;
207
- /**
208
- * Conference password.
209
- *
210
- * Min: 1 character
211
- * Max: 100 characters
212
- * @minLength 1
213
- * @maxLength 100
214
- */
215
- password?: string | null;
216
- /**
217
- * Conference ID in an external system.
218
- *
219
- * Min: 1 character
220
- * Max: 150 characters
221
- * @minLength 1
222
- * @maxLength 150
223
- */
224
- externalId?: string | null;
225
- }
226
- export declare enum Type {
227
- UNKNOWN_TYPE = "UNKNOWN_TYPE",
228
- ZOOM = "ZOOM",
229
- CUSTOM = "CUSTOM"
230
- }
231
- export interface Permission {
232
- /**
233
- * [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
234
- * granted the permission.
235
- */
236
- identity?: CommonIdentificationData;
237
- /**
238
- * Permission role.
239
- *
240
- * Supported values:
241
- * + `WRITER`: Full read and write access.
242
- * + `COMMENTER`: Full read access, write access limited to `event.notes`.
243
- */
244
- role?: Role;
245
- }
246
- export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
247
- /**
248
- * ID of a Wix user. For example, the site owner or a
249
- * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
250
- * @format GUID
251
- */
252
- wixUserId?: string;
253
- }
254
- /** @oneof */
255
- export interface CommonIdentificationDataIdOneOf {
256
- /**
257
- * ID of a Wix user. For example, the site owner or a
258
- * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
259
- * @format GUID
260
- */
261
- wixUserId?: string;
262
- }
263
- export declare enum IdentityType {
264
- UNKNOWN = "UNKNOWN",
265
- WIX_USER = "WIX_USER"
266
- }
267
- export declare enum Role {
268
- UNKNOWN_ROLE = "UNKNOWN_ROLE",
269
- /** Full read and write access. */
270
- WRITER = "WRITER",
271
- /** Full read access, write access limited to `event.notes`. */
272
- COMMENTER = "COMMENTER"
273
- }
274
- export interface ExtendedFields {
275
- /**
276
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
277
- * The value of each key is structured according to the schema defined when the extended fields were configured.
278
- *
279
- * You can only access fields for which you have the appropriate permissions.
280
- *
281
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
282
- */
283
- namespaces?: Record<string, Record<string, any>>;
284
- }
285
- export interface GetScheduleRequest {
286
- /**
287
- * ID of the schedule to retrieve.
288
- * @format GUID
289
- */
290
- scheduleId: string | null;
291
- /**
292
- * Information about which fields containing personal data to return. Refer to the
293
- * [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
294
- * for more information.
295
- *
296
- * Supported values:
297
- * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
298
- * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
299
- *
300
- * Max: 1 field
301
- * Default: No personal data is returned.
302
- * @maxSize 1
303
- */
304
- fields?: RequestedFields[];
305
- }
306
- export declare enum RequestedFields {
307
- UNKNOWN_REQUESTED_FIELDS = "UNKNOWN_REQUESTED_FIELDS",
308
- /** Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope. */
309
- PI_FIELDS = "PI_FIELDS",
310
- /** Returns only fields containing your own personal data. */
311
- OWN_PI_FIELDS = "OWN_PI_FIELDS"
312
- }
313
- export interface GetScheduleResponse {
314
- /** Retrieved schedule. */
315
- schedule?: Schedule;
316
- }
317
- export interface QuerySchedulesRequest {
318
- /** Query containing filters and paging. */
319
- query?: CursorQuery;
320
- /**
321
- * Information about which fields containing personal data to return. Refer to the
322
- * [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
323
- * for more information.
324
- *
325
- * Supported values:
326
- * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
327
- * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
328
- *
329
- * Max: 1 field
330
- * Default: No personal data is returned.
331
- * @maxSize 1
332
- */
333
- fields?: RequestedFields[];
334
- }
335
- /** TODO Diverge */
336
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
337
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
338
- cursorPaging?: CursorPaging;
339
- /**
340
- * Filter object.
341
- * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
342
- * for more information.
343
- *
344
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
345
- *
346
- * For a detailed list of supported filters, see Supported Filters.
347
- */
348
- filter?: Record<string, any> | null;
349
- }
350
- /** @oneof */
351
- export interface CursorQueryPagingMethodOneOf {
352
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
353
- cursorPaging?: CursorPaging;
354
- }
355
- /** TODO Diverge */
356
- export interface CursorPaging {
357
- /**
358
- * Number of schedules to return.
359
- *
360
- * Min: `1`
361
- * Max: `100`
362
- * Default: `50`
363
- * @min 1
364
- * @max 100
365
- */
366
- limit?: number | null;
367
- /**
368
- * Pointer to the next or previous page in the list of results.
369
- *
370
- * You can get the relevant cursor token
371
- * from the `pagingMetadata` object in the previous call's response.
372
- * Not relevant for the first request.
373
- */
374
- cursor?: string | null;
375
- }
376
- export interface QuerySchedulesResponse {
377
- /** Retrieved schedules matching the provided query. */
378
- schedules?: Schedule[];
379
- /** Paging metadata. */
380
- pagingMetadata?: CursorPagingMetadata;
381
- }
382
- /** TODO Diverge */
383
- export interface CursorPagingMetadata {
384
- /** Number of schedules returned in the current page of the response. */
385
- count?: number | null;
386
- /** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
387
- cursors?: Cursors;
388
- /**
389
- * Indicates if there are more results after the current page.
390
- * If `true`, another page of results can be retrieved.
391
- * If `false`, this is the last page.
392
- */
393
- hasNext?: boolean | null;
394
- }
395
- export interface Cursors {
396
- /** Cursor pointing to next page in the list of results. */
397
- next?: string | null;
398
- /** Cursor pointing to previous page in the list of results. */
399
- prev?: string | null;
400
- }
401
- export interface CreateScheduleRequest {
402
- /** Schedule to create. */
403
- schedule: Schedule;
404
- /**
405
- * Idempotency key guaranteeing that you don't create the same schedule more
406
- * than once.
407
- * @format GUID
408
- */
409
- idempotencyKey?: string | null;
410
- }
411
- export interface CreateScheduleResponse {
412
- /** Created schedule. */
413
- schedule?: Schedule;
414
- }
415
- export interface UpdateScheduleRequest {
416
- /** Schedule to update. */
417
- schedule: Schedule;
418
- /**
419
- * Information about whether participants of the schedule's updated events are
420
- * notified and the message they receive.
421
- */
422
- participantNotification?: ParticipantNotification;
423
- }
424
- export interface ParticipantNotification {
425
- /**
426
- * Whether to notify the participants about changes made to the schedule or event.
427
- *
428
- * Default: `false`
429
- */
430
- notifyParticipants?: boolean | null;
431
- /**
432
- * Message to send.
433
- *
434
- * Min: 1 character
435
- * Max: 5000 characters
436
- * @minLength 1
437
- * @maxLength 5000
438
- */
439
- message?: string | null;
440
- }
441
- export interface UpdateScheduleResponse {
442
- /** Updated schedule. */
443
- schedule?: Schedule;
444
- }
445
- /** `PRIVATE` until we'll have standard events metadata from Infra. */
446
- export interface ScheduleUpdatedWithMetadata {
447
- /** The updated schedule. */
448
- schedule?: Schedule;
449
- /** Whether to notify participants regarding the changes. */
450
- participantNotification?: ParticipantNotification;
451
- }
452
- export interface CloneScheduleRequest {
453
- /**
454
- * ID of the schedule to clone.
455
- * @format GUID
456
- */
457
- scheduleId?: string | null;
458
- /** Fields to override in the cloned schedule. */
459
- schedule?: Schedule;
460
- }
461
- export interface CloneScheduleResponse {
462
- /** Cloned schedule. */
463
- schedule?: Schedule;
464
- }
465
- export interface ScheduleCloned {
466
- /** New cloned schedule. */
467
- schedule?: Schedule;
468
- /** The clone trigger. */
469
- trigger?: Trigger;
470
- /**
471
- * The original Meta Site ID if different.
472
- * @format GUID
473
- */
474
- originalMetaSiteId?: string | null;
475
- /**
476
- * The original schedule ID if different.
477
- * @format GUID
478
- */
479
- originalScheduleId?: string | null;
480
- }
481
- export declare enum Trigger {
482
- /** Schedule cloned using the `CloneSchedule` API. */
483
- SCHEDULE_CLONED = "SCHEDULE_CLONED",
484
- /** Site duplicated from the same account. */
485
- SITE_DUPLICATED_FROM_SAME_ACCOUNT = "SITE_DUPLICATED_FROM_SAME_ACCOUNT",
486
- /** Site duplicated from a different account. */
487
- SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT = "SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT",
488
- /** Site created from template. */
489
- SITE_CREATED_FROM_TEMPLATE = "SITE_CREATED_FROM_TEMPLATE",
490
- /** Other. */
491
- OTHER = "OTHER"
492
- }
493
- export interface CancelScheduleRequest {
494
- /**
495
- * ID of the schedule to cancel.
496
- * @format GUID
497
- */
498
- scheduleId: string | null;
499
- /**
500
- * Whether to preserve future events with participants.
501
- * Default: `false`.
502
- */
503
- preserveFutureEventsWithParticipants?: boolean | null;
504
- /**
505
- * Information about whether participants of the schedule's updated events are
506
- * notified and the message they receive.
507
- */
508
- participantNotification?: ParticipantNotification;
509
- }
510
- export interface CancelScheduleResponse {
511
- /** Canceled schedule. */
512
- schedule?: Schedule;
513
- }
514
- export interface ScheduleCancelled {
515
- /** Canceled schedule. */
516
- schedule?: Schedule;
517
- /** Whether future events with participants were preserved. */
518
- preserveFutureEventsWithParticipants?: boolean | null;
519
- }
520
- export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
521
- /** Emitted on a meta site creation. */
522
- siteCreated?: SiteCreated;
523
- /** Emitted on a meta site transfer completion. */
524
- siteTransferred?: SiteTransferred;
525
- /** Emitted on a meta site deletion. */
526
- siteDeleted?: SiteDeleted;
527
- /** Emitted on a meta site restoration. */
528
- siteUndeleted?: SiteUndeleted;
529
- /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
530
- sitePublished?: SitePublished;
531
- /** Emitted on a meta site unpublish. */
532
- siteUnpublished?: SiteUnpublished;
533
- /** Emitted when meta site is marked as template. */
534
- siteMarkedAsTemplate?: SiteMarkedAsTemplate;
535
- /** Emitted when meta site is marked as a WixSite. */
536
- siteMarkedAsWixSite?: SiteMarkedAsWixSite;
537
- /** Emitted when an application is provisioned (installed). */
538
- serviceProvisioned?: ServiceProvisioned;
539
- /** Emitted when an application is removed (uninstalled). */
540
- serviceRemoved?: ServiceRemoved;
541
- /** Emitted when meta site name (URL slug) is changed. */
542
- siteRenamedPayload?: SiteRenamed;
543
- /** Emitted when meta site was permanently deleted. */
544
- hardDeleted?: SiteHardDeleted;
545
- /** Emitted on a namespace change. */
546
- namespaceChanged?: NamespaceChanged;
547
- /** Emitted when Studio is attached. */
548
- studioAssigned?: StudioAssigned;
549
- /** Emitted when Studio is detached. */
550
- studioUnassigned?: StudioUnassigned;
551
- /**
552
- * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
553
- * the actual URL.
554
- *
555
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
556
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
557
- */
558
- urlChanged?: SiteUrlChanged;
559
- /** Site is marked as PurgedExternally */
560
- sitePurgedExternally?: SitePurgedExternally;
561
- /**
562
- * A meta site id.
563
- * @format GUID
564
- */
565
- metaSiteId?: string;
566
- /** A meta site version. Monotonically increasing. */
567
- version?: string;
568
- /** A timestamp of the event. */
569
- timestamp?: string;
570
- /**
571
- * TODO(meta-site): Change validation once validations are disabled for consumers
572
- * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
573
- * @maxSize 4000
574
- */
575
- assets?: Asset[];
576
- }
577
- /** @oneof */
578
- export interface MetaSiteSpecialEventPayloadOneOf {
579
- /** Emitted on a meta site creation. */
580
- siteCreated?: SiteCreated;
581
- /** Emitted on a meta site transfer completion. */
582
- siteTransferred?: SiteTransferred;
583
- /** Emitted on a meta site deletion. */
584
- siteDeleted?: SiteDeleted;
585
- /** Emitted on a meta site restoration. */
586
- siteUndeleted?: SiteUndeleted;
587
- /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
588
- sitePublished?: SitePublished;
589
- /** Emitted on a meta site unpublish. */
590
- siteUnpublished?: SiteUnpublished;
591
- /** Emitted when meta site is marked as template. */
592
- siteMarkedAsTemplate?: SiteMarkedAsTemplate;
593
- /** Emitted when meta site is marked as a WixSite. */
594
- siteMarkedAsWixSite?: SiteMarkedAsWixSite;
595
- /** Emitted when an application is provisioned (installed). */
596
- serviceProvisioned?: ServiceProvisioned;
597
- /** Emitted when an application is removed (uninstalled). */
598
- serviceRemoved?: ServiceRemoved;
599
- /** Emitted when meta site name (URL slug) is changed. */
600
- siteRenamedPayload?: SiteRenamed;
601
- /** Emitted when meta site was permanently deleted. */
602
- hardDeleted?: SiteHardDeleted;
603
- /** Emitted on a namespace change. */
604
- namespaceChanged?: NamespaceChanged;
605
- /** Emitted when Studio is attached. */
606
- studioAssigned?: StudioAssigned;
607
- /** Emitted when Studio is detached. */
608
- studioUnassigned?: StudioUnassigned;
609
- /**
610
- * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
611
- * the actual URL.
612
- *
613
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
614
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
615
- */
616
- urlChanged?: SiteUrlChanged;
617
- /** Site is marked as PurgedExternally */
618
- sitePurgedExternally?: SitePurgedExternally;
619
- }
620
- export interface Asset {
621
- /**
622
- * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
623
- * @maxLength 36
624
- */
625
- appDefId?: string;
626
- /**
627
- * An instance id. For legacy reasons may be UUID or a string.
628
- * @maxLength 200
629
- */
630
- instanceId?: string;
631
- /** An application state. */
632
- state?: State;
633
- }
634
- export declare enum State {
635
- UNKNOWN = "UNKNOWN",
636
- ENABLED = "ENABLED",
637
- DISABLED = "DISABLED",
638
- PENDING = "PENDING",
639
- DEMO = "DEMO"
640
- }
641
- export interface SiteCreated {
642
- /**
643
- * A template identifier (empty if not created from a template).
644
- * @maxLength 36
645
- */
646
- originTemplateId?: string;
647
- /**
648
- * An account id of the owner.
649
- * @format GUID
650
- */
651
- ownerId?: string;
652
- /** A context in which meta site was created. */
653
- context?: SiteCreatedContext;
654
- /**
655
- * A meta site id from which this site was created.
656
- *
657
- * In case of a creation from a template it's a template id.
658
- * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
659
- * @format GUID
660
- */
661
- originMetaSiteId?: string | null;
662
- /**
663
- * A meta site name (URL slug).
664
- * @maxLength 20
665
- */
666
- siteName?: string;
667
- /** A namespace. */
668
- namespace?: Namespace;
669
- }
670
- export declare enum SiteCreatedContext {
671
- /** A valid option, we don't expose all reasons why site might be created. */
672
- OTHER = "OTHER",
673
- /** A meta site was created from template. */
674
- FROM_TEMPLATE = "FROM_TEMPLATE",
675
- /** A meta site was created by copying of the transfferred meta site. */
676
- DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
677
- /** A copy of existing meta site. */
678
- DUPLICATE = "DUPLICATE",
679
- /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
680
- OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
681
- /** deprecated A meta site was created for Flash editor. */
682
- FLASH = "FLASH"
683
- }
684
- export declare enum Namespace {
685
- UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
686
- /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
687
- WIX = "WIX",
688
- /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
689
- SHOUT_OUT = "SHOUT_OUT",
690
- /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
691
- ALBUMS = "ALBUMS",
692
- /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
693
- WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
694
- /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
695
- HOTELS = "HOTELS",
696
- /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
697
- CLUBS = "CLUBS",
698
- /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
699
- ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
700
- /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
701
- DEV_SITE = "DEV_SITE",
702
- /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
703
- LOGOS = "LOGOS",
704
- /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
705
- VIDEO_MAKER = "VIDEO_MAKER",
706
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
707
- PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
708
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
709
- DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
710
- /**
711
- * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
712
- *
713
- * Meta site with this namespace will *not* be shown in a user's site list by default.
714
- */
715
- HTML_DRAFT = "HTML_DRAFT",
716
- /**
717
- * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
718
- * Will be accessible from Site List and will not have a website app.
719
- * Once the user attaches a site, the site will become a regular wixsite.
720
- */
721
- SITELESS_BUSINESS = "SITELESS_BUSINESS",
722
- /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
723
- CREATOR_ECONOMY = "CREATOR_ECONOMY",
724
- /** It is to be used in the Business First efforts. */
725
- DASHBOARD_FIRST = "DASHBOARD_FIRST",
726
- /** Bookings business flow with no site. */
727
- ANYWHERE = "ANYWHERE",
728
- /** Namespace for Headless Backoffice with no editor */
729
- HEADLESS = "HEADLESS",
730
- /**
731
- * Namespace for master site that will exist in parent account that will be referenced by subaccounts
732
- * The site will be used for account level CSM feature for enterprise
733
- */
734
- ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
735
- /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
736
- RISE = "RISE",
737
- /**
738
- * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
739
- * There's a blank site behind the scene but it's blank).
740
- * The Mobile company will be the owner of this namespace.
741
- */
742
- BRANDED_FIRST = "BRANDED_FIRST",
743
- /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
744
- NOWNIA = "NOWNIA",
745
- /**
746
- * UGC Templates are templates that are created by users for personal use and to sale to other users.
747
- * The Partners company owns this namespace.
748
- */
749
- UGC_TEMPLATE = "UGC_TEMPLATE",
750
- /** Codux Headless Sites */
751
- CODUX = "CODUX",
752
- /** Bobb - AI Design Creator. */
753
- MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
754
- /**
755
- * Shared Blog Site is a unique single site across Enterprise account,
756
- * This site will hold all Blog posts related to the Marketing product.
757
- */
758
- SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
759
- /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
760
- STANDALONE_FORMS = "STANDALONE_FORMS",
761
- /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
762
- STANDALONE_EVENTS = "STANDALONE_EVENTS",
763
- /** MIMIR - Siteless account for MIMIR Ai Job runner. */
764
- MIMIR = "MIMIR"
765
- }
766
- /** Site transferred to another user. */
767
- export interface SiteTransferred {
768
- /**
769
- * A previous owner id (user that transfers meta site).
770
- * @format GUID
771
- */
772
- oldOwnerId?: string;
773
- /**
774
- * A new owner id (user that accepts meta site).
775
- * @format GUID
776
- */
777
- newOwnerId?: string;
778
- }
779
- /** Soft deletion of the meta site. Could be restored. */
780
- export interface SiteDeleted {
781
- /** A deletion context. */
782
- deleteContext?: DeleteContext;
783
- }
784
- export interface DeleteContext {
785
- /** When the meta site was deleted. */
786
- dateDeleted?: Date | null;
787
- /** A status. */
788
- deleteStatus?: DeleteStatus;
789
- /**
790
- * A reason (flow).
791
- * @maxLength 255
792
- */
793
- deleteOrigin?: string;
794
- /**
795
- * A service that deleted it.
796
- * @maxLength 255
797
- */
798
- initiatorId?: string | null;
799
- }
800
- export declare enum DeleteStatus {
801
- UNKNOWN = "UNKNOWN",
802
- TRASH = "TRASH",
803
- DELETED = "DELETED",
804
- PENDING_PURGE = "PENDING_PURGE",
805
- PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
806
- }
807
- /** Restoration of the meta site. */
808
- export interface SiteUndeleted {
809
- }
810
- /** First publish of a meta site. Or subsequent publish after unpublish. */
811
- export interface SitePublished {
812
- }
813
- export interface SiteUnpublished {
814
- /**
815
- * A list of URLs previously associated with the meta site.
816
- * @maxLength 4000
817
- * @maxSize 10000
818
- */
819
- urls?: string[];
820
- }
821
- export interface SiteMarkedAsTemplate {
822
- }
823
- export interface SiteMarkedAsWixSite {
824
- }
825
- /**
826
- * Represents a service provisioned a site.
827
- *
828
- * Note on `origin_instance_id`:
829
- * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
830
- * This is because of the following scenario:
831
- *
832
- * Imagine you have a template where a third-party application (TPA) includes some stub data,
833
- * such as a product catalog. When you create a site from this template, you inherit this
834
- * default product catalog. However, if the template's product catalog is modified,
835
- * your site will retain the catalog as it was at the time of site creation. This ensures that
836
- * your site remains consistent with what you initially received and does not include any
837
- * changes made to the original template afterward.
838
- * To ensure this, the TPA on the template gets a new instance_id.
839
- */
840
- export interface ServiceProvisioned {
841
- /**
842
- * Either UUID or EmbeddedServiceType.
843
- * @maxLength 36
844
- */
845
- appDefId?: string;
846
- /**
847
- * Not only UUID. Something here could be something weird.
848
- * @maxLength 36
849
- */
850
- instanceId?: string;
851
- /**
852
- * An instance id from which this instance is originated.
853
- * @maxLength 36
854
- */
855
- originInstanceId?: string;
856
- /**
857
- * A version.
858
- * @maxLength 500
859
- */
860
- version?: string | null;
861
- /**
862
- * The origin meta site id
863
- * @format GUID
864
- */
865
- originMetaSiteId?: string | null;
866
- }
867
- export interface ServiceRemoved {
868
- /**
869
- * Either UUID or EmbeddedServiceType.
870
- * @maxLength 36
871
- */
872
- appDefId?: string;
873
- /**
874
- * Not only UUID. Something here could be something weird.
875
- * @maxLength 36
876
- */
877
- instanceId?: string;
878
- /**
879
- * A version.
880
- * @maxLength 500
881
- */
882
- version?: string | null;
883
- }
884
- /** Rename of the site. Meaning, free public url has been changed as well. */
885
- export interface SiteRenamed {
886
- /**
887
- * A new meta site name (URL slug).
888
- * @maxLength 20
889
- */
890
- newSiteName?: string;
891
- /**
892
- * A previous meta site name (URL slug).
893
- * @maxLength 255
894
- */
895
- oldSiteName?: string;
896
- }
897
- /**
898
- * Hard deletion of the meta site.
899
- *
900
- * Could not be restored. Therefore it's desirable to cleanup data.
901
- */
902
- export interface SiteHardDeleted {
903
- /** A deletion context. */
904
- deleteContext?: DeleteContext;
905
- }
906
- export interface NamespaceChanged {
907
- /** A previous namespace. */
908
- oldNamespace?: Namespace;
909
- /** A new namespace. */
910
- newNamespace?: Namespace;
911
- }
912
- /** Assigned Studio editor */
913
- export interface StudioAssigned {
914
- }
915
- /** Unassigned Studio editor */
916
- export interface StudioUnassigned {
917
- }
918
- /**
919
- * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
920
- *
921
- * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
922
- * with sites and its urls, you need to listen to another topic/event. Read about it:
923
- *
924
- * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
925
- */
926
- export interface SiteUrlChanged {
927
- }
928
- /**
929
- * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
930
- * Consumed by other teams to remove relevant data.
931
- */
932
- export interface SitePurgedExternally {
933
- /**
934
- * @maxLength 2048
935
- * @maxSize 100
936
- * @deprecated
937
- * @targetRemovalDate 2025-04-15
938
- */
939
- appDefId?: string[];
940
- }
941
- export interface Empty {
942
- }
943
- /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
944
- export interface SitePropertiesNotification {
945
- /** The site ID for which this update notification applies. */
946
- metasiteId?: string;
947
- /** The actual update event. */
948
- event?: SitePropertiesEvent;
949
- /**
950
- * A convenience set of mappings from the MetaSite ID to its constituent services.
951
- * @maxSize 500
952
- */
953
- translations?: Translation[];
954
- /** Context of the notification */
955
- changeContext?: ChangeContext;
956
- }
957
- /** The actual update event for a particular notification. */
958
- export interface SitePropertiesEvent {
959
- /** Version of the site's properties represented by this update. */
960
- version?: number;
961
- /** Set of properties that were updated - corresponds to the fields in "properties". */
962
- fields?: string[];
963
- /** Updated properties. */
964
- properties?: Properties;
965
- }
966
- export interface Properties {
967
- /** Site categories. */
968
- categories?: Categories;
969
- /** Site locale. */
970
- locale?: Locale;
971
- /**
972
- * Site language.
973
- *
974
- * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
975
- */
976
- language?: string | null;
977
- /**
978
- * Site currency format used to bill customers.
979
- *
980
- * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
981
- */
982
- paymentCurrency?: string | null;
983
- /** Timezone in `America/New_York` format. */
984
- timeZone?: string | null;
985
- /** Email address. */
986
- email?: string | null;
987
- /** Phone number. */
988
- phone?: string | null;
989
- /** Fax number. */
990
- fax?: string | null;
991
- /** Address. */
992
- address?: Address;
993
- /** Site display name. */
994
- siteDisplayName?: string | null;
995
- /** Business name. */
996
- businessName?: string | null;
997
- /** Path to the site's logo in Wix Media (without Wix Media base URL). */
998
- logo?: string | null;
999
- /** Site description. */
1000
- description?: string | null;
1001
- /**
1002
- * Business schedule. Regular and exceptional time periods when the business is open or the service is available.
1003
- *
1004
- * __Note:__ Not supported by Wix Bookings.
1005
- */
1006
- businessSchedule?: BusinessSchedule;
1007
- /** Supported languages of a site and the primary language. */
1008
- multilingual?: Multilingual;
1009
- /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */
1010
- consentPolicy?: ConsentPolicy;
1011
- /**
1012
- * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.
1013
- *
1014
- * Site business type.
1015
- */
1016
- businessConfig?: string | null;
1017
- /** External site URL that uses Wix as its headless business solution. */
1018
- externalSiteUrl?: string | null;
1019
- /** Track clicks analytics. */
1020
- trackClicksAnalytics?: boolean;
1021
- }
1022
- export interface Categories {
1023
- /** Primary site category. */
1024
- primary?: string;
1025
- /**
1026
- * Secondary site category.
1027
- * @maxSize 50
1028
- */
1029
- secondary?: string[];
1030
- /** Business Term Id */
1031
- businessTermId?: string | null;
1032
- }
1033
- export interface Locale {
1034
- /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
1035
- languageCode?: string;
1036
- /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
1037
- country?: string;
1038
- }
1039
- export interface Address {
1040
- /** Street name. */
1041
- street?: string;
1042
- /** City name. */
1043
- city?: string;
1044
- /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
1045
- country?: string;
1046
- /** State. */
1047
- state?: string;
1048
- /**
1049
- * Zip or postal code.
1050
- * @maxLength 20
1051
- */
1052
- zip?: string;
1053
- /** Extra information to be displayed in the address. */
1054
- hint?: AddressHint;
1055
- /** Whether this address represents a physical location. */
1056
- isPhysical?: boolean;
1057
- /** Google-formatted version of this address. */
1058
- googleFormattedAddress?: string;
1059
- /** Street number. */
1060
- streetNumber?: string;
1061
- /** Apartment number. */
1062
- apartmentNumber?: string;
1063
- /** Geographic coordinates of location. */
1064
- coordinates?: GeoCoordinates;
1065
- }
1066
- /**
1067
- * Extra information on displayed addresses.
1068
- * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
1069
- * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
1070
- */
1071
- export interface AddressHint {
1072
- /** Extra text displayed next to, or instead of, the actual address. */
1073
- text?: string;
1074
- /** Where the extra text should be displayed. */
1075
- placement?: PlacementType;
1076
- }
1077
- /** Where the extra text should be displayed: before, after or instead of the actual address. */
1078
- export declare enum PlacementType {
1079
- BEFORE = "BEFORE",
1080
- AFTER = "AFTER",
1081
- REPLACE = "REPLACE"
1082
- }
1083
- /** Geocoordinates for a particular address. */
1084
- export interface GeoCoordinates {
1085
- /** Latitude of the location. Must be between -90 and 90. */
1086
- latitude?: number;
1087
- /** Longitude of the location. Must be between -180 and 180. */
1088
- longitude?: number;
1089
- }
1090
- /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
1091
- export interface BusinessSchedule {
1092
- /**
1093
- * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
1094
- * @maxSize 100
1095
- */
1096
- periods?: TimePeriod[];
1097
- /**
1098
- * Exceptions to the business's regular hours. The business can be open or closed during the exception.
1099
- * @maxSize 100
1100
- */
1101
- specialHourPeriod?: SpecialHourPeriod[];
1102
- }
1103
- /** Weekly recurring time periods when the business is regularly open or the service is available. */
1104
- export interface TimePeriod {
1105
- /** Day of the week the period starts on. */
1106
- openDay?: DayOfWeek;
1107
- /**
1108
- * 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
1109
- * midnight at the end of the specified day.
1110
- */
1111
- openTime?: string;
1112
- /** Day of the week the period ends on. */
1113
- closeDay?: DayOfWeek;
1114
- /**
1115
- * 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
1116
- * midnight at the end of the specified day.
1117
- *
1118
- * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.
1119
- */
1120
- closeTime?: string;
1121
- }
1122
- /** Enumerates the days of the week. */
1123
- export declare enum DayOfWeek {
1124
- MONDAY = "MONDAY",
1125
- TUESDAY = "TUESDAY",
1126
- WEDNESDAY = "WEDNESDAY",
1127
- THURSDAY = "THURSDAY",
1128
- FRIDAY = "FRIDAY",
1129
- SATURDAY = "SATURDAY",
1130
- SUNDAY = "SUNDAY"
1131
- }
1132
- /** Exception to the business's regular hours. The business can be open or closed during the exception. */
1133
- export interface SpecialHourPeriod {
1134
- /** 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). */
1135
- startDate?: string;
1136
- /** 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). */
1137
- endDate?: string;
1138
- /**
1139
- * Whether the business is closed (or the service is not available) during the exception.
1140
- *
1141
- * Default: `true`.
1142
- */
1143
- isClosed?: boolean;
1144
- /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
1145
- comment?: string;
1146
- }
1147
- export interface Multilingual {
1148
- /**
1149
- * Supported languages list.
1150
- * @maxSize 200
1151
- */
1152
- supportedLanguages?: SupportedLanguage[];
1153
- /** Whether to redirect to user language. */
1154
- autoRedirect?: boolean;
1155
- }
1156
- export interface SupportedLanguage {
1157
- /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
1158
- languageCode?: string;
1159
- /** Locale. */
1160
- locale?: Locale;
1161
- /** Whether the supported language is the primary language for the site. */
1162
- isPrimary?: boolean;
1163
- /** Language icon. */
1164
- countryCode?: string;
1165
- /** How the language will be resolved. For internal use. */
1166
- resolutionMethod?: ResolutionMethod;
1167
- }
1168
- export declare enum ResolutionMethod {
1169
- QUERY_PARAM = "QUERY_PARAM",
1170
- SUBDOMAIN = "SUBDOMAIN",
1171
- SUBDIRECTORY = "SUBDIRECTORY"
1172
- }
1173
- export interface ConsentPolicy {
1174
- /** Whether the site uses cookies that are essential to site operation. Always `true`. */
1175
- essential?: boolean | null;
1176
- /** Whether the site uses cookies that affect site performance and other functional measurements. */
1177
- functional?: boolean | null;
1178
- /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */
1179
- analytics?: boolean | null;
1180
- /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */
1181
- advertising?: boolean | null;
1182
- /** CCPA compliance flag. */
1183
- dataToThirdParty?: boolean | null;
1184
- }
1185
- /** A single mapping from the MetaSite ID to a particular service. */
1186
- export interface Translation {
1187
- /** The service type. */
1188
- serviceType?: string;
1189
- /** The application definition ID; this only applies to services of type ThirdPartyApps. */
1190
- appDefId?: string;
1191
- /** The instance ID of the service. */
1192
- instanceId?: string;
1193
- }
1194
- export interface ChangeContext extends ChangeContextPayloadOneOf {
1195
- /** Properties were updated. */
1196
- propertiesChange?: PropertiesChange;
1197
- /** Default properties were created on site creation. */
1198
- siteCreated?: V4SiteCreated;
1199
- /** Properties were cloned on site cloning. */
1200
- siteCloned?: SiteCloned;
1201
- }
1202
- /** @oneof */
1203
- export interface ChangeContextPayloadOneOf {
1204
- /** Properties were updated. */
1205
- propertiesChange?: PropertiesChange;
1206
- /** Default properties were created on site creation. */
1207
- siteCreated?: V4SiteCreated;
1208
- /** Properties were cloned on site cloning. */
1209
- siteCloned?: SiteCloned;
1210
- }
1211
- export interface PropertiesChange {
1212
- }
1213
- export interface V4SiteCreated {
1214
- /** Origin template site id. */
1215
- originTemplateId?: string | null;
1216
- }
1217
- export interface SiteCloned {
1218
- /** Origin site id. */
1219
- originMetaSiteId?: string;
1220
- }
1221
- export interface DomainEvent extends DomainEventBodyOneOf {
1222
- createdEvent?: EntityCreatedEvent;
1223
- updatedEvent?: EntityUpdatedEvent;
1224
- deletedEvent?: EntityDeletedEvent;
1225
- actionEvent?: ActionEvent;
1226
- /**
1227
- * Unique event ID.
1228
- * Allows clients to ignore duplicate webhooks.
1229
- */
1230
- id?: string;
1231
- /**
1232
- * Assumes actions are also always typed to an entity_type
1233
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1234
- */
1235
- entityFqdn?: string;
1236
- /**
1237
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1238
- * This is although the created/updated/deleted notion is duplication of the oneof types
1239
- * Example: created/updated/deleted/started/completed/email_opened
1240
- */
1241
- slug?: string;
1242
- /** ID of the entity associated with the event. */
1243
- entityId?: string;
1244
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1245
- eventTime?: Date | null;
1246
- /**
1247
- * Whether the event was triggered as a result of a privacy regulation application
1248
- * (for example, GDPR).
1249
- */
1250
- triggeredByAnonymizeRequest?: boolean | null;
1251
- /** If present, indicates the action that triggered the event. */
1252
- originatedFrom?: string | null;
1253
- /**
1254
- * A sequence number defining the order of updates to the underlying entity.
1255
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1256
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1257
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1258
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1259
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1260
- */
1261
- entityEventSequence?: string | null;
1262
- }
1263
- /** @oneof */
1264
- export interface DomainEventBodyOneOf {
1265
- createdEvent?: EntityCreatedEvent;
1266
- updatedEvent?: EntityUpdatedEvent;
1267
- deletedEvent?: EntityDeletedEvent;
1268
- actionEvent?: ActionEvent;
1269
- }
1270
- export interface EntityCreatedEvent {
1271
- entityAsJson?: string;
1272
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1273
- restoreInfo?: RestoreInfo;
1274
- }
1275
- export interface RestoreInfo {
1276
- deletedDate?: Date | null;
1277
- }
1278
- export interface EntityUpdatedEvent {
1279
- /**
1280
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1281
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1282
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1283
- */
1284
- currentEntityAsJson?: string;
1285
- }
1286
- export interface EntityDeletedEvent {
1287
- /** Entity that was deleted */
1288
- deletedEntityAsJson?: string | null;
1289
- }
1290
- export interface ActionEvent {
1291
- bodyAsJson?: string;
1292
- }
1293
- export interface MessageEnvelope {
1294
- /**
1295
- * App instance ID.
1296
- * @format GUID
1297
- */
1298
- instanceId?: string | null;
1299
- /**
1300
- * Event type.
1301
- * @maxLength 150
1302
- */
1303
- eventType?: string;
1304
- /** The identification type and identity data. */
1305
- identity?: IdentificationData;
1306
- /** Stringify payload. */
1307
- data?: string;
1308
- }
1309
- export interface IdentificationData extends IdentificationDataIdOneOf {
1310
- /**
1311
- * ID of a site visitor that has not logged in to the site.
1312
- * @format GUID
1313
- */
1314
- anonymousVisitorId?: string;
1315
- /**
1316
- * ID of a site visitor that has logged in to the site.
1317
- * @format GUID
1318
- */
1319
- memberId?: string;
1320
- /**
1321
- * ID of a Wix user (site owner, contributor, etc.).
1322
- * @format GUID
1323
- */
1324
- wixUserId?: string;
1325
- /**
1326
- * ID of an app.
1327
- * @format GUID
1328
- */
1329
- appId?: string;
1330
- /** @readonly */
1331
- identityType?: WebhookIdentityType;
1332
- }
1333
- /** @oneof */
1334
- export interface IdentificationDataIdOneOf {
1335
- /**
1336
- * ID of a site visitor that has not logged in to the site.
1337
- * @format GUID
1338
- */
1339
- anonymousVisitorId?: string;
1340
- /**
1341
- * ID of a site visitor that has logged in to the site.
1342
- * @format GUID
1343
- */
1344
- memberId?: string;
1345
- /**
1346
- * ID of a Wix user (site owner, contributor, etc.).
1347
- * @format GUID
1348
- */
1349
- wixUserId?: string;
1350
- /**
1351
- * ID of an app.
1352
- * @format GUID
1353
- */
1354
- appId?: string;
1355
- }
1356
- export declare enum WebhookIdentityType {
1357
- UNKNOWN = "UNKNOWN",
1358
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1359
- MEMBER = "MEMBER",
1360
- WIX_USER = "WIX_USER",
1361
- APP = "APP"
1362
- }