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