@wix/auto_sdk_standalone-forms_standalone-forms 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 +114 -0
- package/build/cjs/index.js +865 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1409 -0
- package/build/cjs/index.typings.js +781 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1301 -0
- package/build/cjs/meta.js +709 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +114 -0
- package/build/es/index.mjs +823 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1409 -0
- package/build/es/index.typings.mjs +739 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1301 -0
- package/build/es/meta.mjs +664 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +114 -0
- package/build/internal/cjs/index.typings.d.ts +1409 -0
- package/build/internal/cjs/meta.d.ts +1343 -0
- package/build/internal/es/index.d.mts +114 -0
- package/build/internal/es/index.typings.d.mts +1409 -0
- package/build/internal/es/meta.d.mts +1343 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,1409 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
3
|
+
interface StandaloneForm {
|
|
4
|
+
/**
|
|
5
|
+
* Standalone form ID. Automatically generated when the standalone form is created.
|
|
6
|
+
*
|
|
7
|
+
* Together with `accountSlug`, this ID forms part of the standalone form's public URL.
|
|
8
|
+
* @maxLength 36
|
|
9
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
_id?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* ID of the form, managed through the Wix Forms API, that this record marks as standalone.
|
|
14
|
+
*
|
|
15
|
+
* A form doesn't itself indicate whether it's standalone. The existence of a standalone form
|
|
16
|
+
* record that references it is what makes the form standalone.
|
|
17
|
+
* @format GUID
|
|
18
|
+
*/
|
|
19
|
+
formId?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the meta site that owns the standalone form.
|
|
22
|
+
*
|
|
23
|
+
* The meta site owns the form. Because this service doesn't use meta site tenancy, the owning
|
|
24
|
+
* meta site is stored explicitly in this field. Set from the calling context when the form is created.
|
|
25
|
+
* @format GUID
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
metaSiteId?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Date and time the standalone form was created.
|
|
31
|
+
* @readonly
|
|
32
|
+
*/
|
|
33
|
+
_createdDate?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
* Date and time the standalone form was last updated.
|
|
36
|
+
* @readonly
|
|
37
|
+
*/
|
|
38
|
+
_updatedDate?: Date | null;
|
|
39
|
+
/**
|
|
40
|
+
* Account slug of the site owner, captured when the standalone form was created.
|
|
41
|
+
*
|
|
42
|
+
* Together with `id`, the slug forms part of the standalone form's public URL. May be empty
|
|
43
|
+
* if it couldn't be resolved at creation time.
|
|
44
|
+
* @maxLength 50
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
accountSlug?: string | null;
|
|
48
|
+
}
|
|
49
|
+
interface GetOrCreateFormStandaloneMetaSiteRequest {
|
|
50
|
+
}
|
|
51
|
+
interface GetOrCreateFormStandaloneMetaSiteResponse {
|
|
52
|
+
/**
|
|
53
|
+
* MetaSiteId
|
|
54
|
+
* @format GUID
|
|
55
|
+
*/
|
|
56
|
+
metaSiteId?: string;
|
|
57
|
+
}
|
|
58
|
+
interface CreateStandaloneFormRequest {
|
|
59
|
+
/** Standalone form */
|
|
60
|
+
standaloneForm: StandaloneForm;
|
|
61
|
+
}
|
|
62
|
+
interface CreateStandaloneFormResponse {
|
|
63
|
+
/** Standalone form */
|
|
64
|
+
standaloneForm?: StandaloneForm;
|
|
65
|
+
}
|
|
66
|
+
interface GetStandaloneFormRequest {
|
|
67
|
+
/**
|
|
68
|
+
* Standalone form id
|
|
69
|
+
* @maxLength 36
|
|
70
|
+
*/
|
|
71
|
+
standaloneFormId: string;
|
|
72
|
+
}
|
|
73
|
+
interface GetStandaloneFormResponse {
|
|
74
|
+
/** Standalone form */
|
|
75
|
+
standaloneForm?: StandaloneForm;
|
|
76
|
+
}
|
|
77
|
+
interface DeleteStandaloneFormRequest {
|
|
78
|
+
/**
|
|
79
|
+
* Standalone form id
|
|
80
|
+
* @maxLength 36
|
|
81
|
+
*/
|
|
82
|
+
standaloneFormId: string;
|
|
83
|
+
/**
|
|
84
|
+
* Whether to permanently delete a standalone form bypassing the trash bin.
|
|
85
|
+
*
|
|
86
|
+
* Default: `false`
|
|
87
|
+
*/
|
|
88
|
+
permanent?: boolean;
|
|
89
|
+
}
|
|
90
|
+
interface DeleteStandaloneFormResponse {
|
|
91
|
+
}
|
|
92
|
+
interface RemoveStandaloneFormFromTrashBinRequest {
|
|
93
|
+
/**
|
|
94
|
+
* Standalone form id
|
|
95
|
+
* @maxLength 36
|
|
96
|
+
*/
|
|
97
|
+
standaloneFormId: string;
|
|
98
|
+
}
|
|
99
|
+
interface RemoveStandaloneFormFromTrashBinResponse {
|
|
100
|
+
}
|
|
101
|
+
interface RestoreStandaloneFormFromTrashBinRequest {
|
|
102
|
+
/**
|
|
103
|
+
* Standalone form id
|
|
104
|
+
* @maxLength 36
|
|
105
|
+
*/
|
|
106
|
+
standaloneFormId: string;
|
|
107
|
+
}
|
|
108
|
+
interface RestoreStandaloneFormFromTrashBinResponse {
|
|
109
|
+
/** Standalone form */
|
|
110
|
+
standaloneForm?: StandaloneForm;
|
|
111
|
+
}
|
|
112
|
+
interface GetDeletedStandaloneFormRequest {
|
|
113
|
+
/**
|
|
114
|
+
* Standalone form id
|
|
115
|
+
* @maxLength 36
|
|
116
|
+
*/
|
|
117
|
+
standaloneFormId: string;
|
|
118
|
+
}
|
|
119
|
+
interface GetDeletedStandaloneFormResponse {
|
|
120
|
+
/** Standalone form */
|
|
121
|
+
standaloneForm?: StandaloneForm;
|
|
122
|
+
}
|
|
123
|
+
interface ListDeletedStandaloneFormsRequest {
|
|
124
|
+
/**
|
|
125
|
+
* Standalone Form ids.
|
|
126
|
+
* @maxSize 100
|
|
127
|
+
* @maxLength 36
|
|
128
|
+
*/
|
|
129
|
+
standaloneFormIds?: string[];
|
|
130
|
+
/** Cursor token pointing to a page of results. Not used in the first request. */
|
|
131
|
+
paging?: CursorPaging;
|
|
132
|
+
}
|
|
133
|
+
interface CursorPaging {
|
|
134
|
+
/**
|
|
135
|
+
* Number of items to load.
|
|
136
|
+
* @max 100
|
|
137
|
+
*/
|
|
138
|
+
limit?: number | null;
|
|
139
|
+
/**
|
|
140
|
+
* Pointer to the next or previous page in the list of results.
|
|
141
|
+
*
|
|
142
|
+
* You can get the relevant cursor token
|
|
143
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
144
|
+
* Not relevant for the first request.
|
|
145
|
+
* @maxLength 16000
|
|
146
|
+
*/
|
|
147
|
+
cursor?: string | null;
|
|
148
|
+
}
|
|
149
|
+
interface ListDeletedStandaloneFormsResponse {
|
|
150
|
+
/**
|
|
151
|
+
* The retrieved standalone forms
|
|
152
|
+
* @maxSize 100
|
|
153
|
+
*/
|
|
154
|
+
standaloneForms?: StandaloneForm[];
|
|
155
|
+
/** Details on the paged set of results returned. */
|
|
156
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
157
|
+
}
|
|
158
|
+
interface CursorPagingMetadata {
|
|
159
|
+
/** Number of items returned in the response. */
|
|
160
|
+
count?: number | null;
|
|
161
|
+
/** Offset that was requested. */
|
|
162
|
+
cursors?: Cursors;
|
|
163
|
+
/**
|
|
164
|
+
* Indicates if there are more results after the current page.
|
|
165
|
+
* If `true`, another page of results can be retrieved.
|
|
166
|
+
* If `false`, this is the last page.
|
|
167
|
+
*/
|
|
168
|
+
hasNext?: boolean | null;
|
|
169
|
+
}
|
|
170
|
+
interface Cursors {
|
|
171
|
+
/**
|
|
172
|
+
* Cursor pointing to next page in the list of results.
|
|
173
|
+
* @maxLength 16000
|
|
174
|
+
*/
|
|
175
|
+
next?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Cursor pointing to previous page in the list of results.
|
|
178
|
+
* @maxLength 16000
|
|
179
|
+
*/
|
|
180
|
+
prev?: string | null;
|
|
181
|
+
}
|
|
182
|
+
interface QueryStandaloneFormsRequest {
|
|
183
|
+
/** WQL expression. */
|
|
184
|
+
query: CursorQuery;
|
|
185
|
+
}
|
|
186
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
187
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
188
|
+
cursorPaging?: CursorPaging;
|
|
189
|
+
/**
|
|
190
|
+
* Filter object in the following format:
|
|
191
|
+
* `"filter" : {
|
|
192
|
+
* "fieldName1": "value1",
|
|
193
|
+
* "fieldName2":{"$operator":"value2"}
|
|
194
|
+
* }`
|
|
195
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
196
|
+
*/
|
|
197
|
+
filter?: Record<string, any> | null;
|
|
198
|
+
/**
|
|
199
|
+
* Sort object in the following format:
|
|
200
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
201
|
+
* @maxSize 3
|
|
202
|
+
*/
|
|
203
|
+
sort?: Sorting[];
|
|
204
|
+
}
|
|
205
|
+
/** @oneof */
|
|
206
|
+
interface CursorQueryPagingMethodOneOf {
|
|
207
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
208
|
+
cursorPaging?: CursorPaging;
|
|
209
|
+
}
|
|
210
|
+
interface Sorting {
|
|
211
|
+
/**
|
|
212
|
+
* Name of the field to sort by.
|
|
213
|
+
* @maxLength 512
|
|
214
|
+
*/
|
|
215
|
+
fieldName?: string;
|
|
216
|
+
/** Sort order. */
|
|
217
|
+
order?: SortOrderWithLiterals;
|
|
218
|
+
}
|
|
219
|
+
declare enum SortOrder {
|
|
220
|
+
ASC = "ASC",
|
|
221
|
+
DESC = "DESC"
|
|
222
|
+
}
|
|
223
|
+
/** @enumType */
|
|
224
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
225
|
+
interface QueryStandaloneFormsResponse {
|
|
226
|
+
/**
|
|
227
|
+
* The retrieved standalone forms
|
|
228
|
+
* @maxSize 100
|
|
229
|
+
*/
|
|
230
|
+
standaloneForms?: StandaloneForm[];
|
|
231
|
+
/** Details on the paged set of results returned. */
|
|
232
|
+
metadata?: CursorPagingMetadata;
|
|
233
|
+
}
|
|
234
|
+
interface GetSitePropertiesRequest {
|
|
235
|
+
}
|
|
236
|
+
interface GetSitePropertiesResponse {
|
|
237
|
+
/** Standalone MetaSite properties */
|
|
238
|
+
siteProperties?: StandaloneMetaSiteProperties;
|
|
239
|
+
}
|
|
240
|
+
interface StandaloneMetaSiteProperties {
|
|
241
|
+
/** Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. */
|
|
242
|
+
paymentCurrency?: string | null;
|
|
243
|
+
/**
|
|
244
|
+
* Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
245
|
+
*
|
|
246
|
+
* Empty if the site's locale isn't set.
|
|
247
|
+
* @maxLength 2
|
|
248
|
+
*/
|
|
249
|
+
localeLanguageCode?: string;
|
|
250
|
+
/**
|
|
251
|
+
* Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
|
|
252
|
+
*
|
|
253
|
+
* Empty if the site's locale isn't set.
|
|
254
|
+
* @maxLength 2
|
|
255
|
+
*/
|
|
256
|
+
localeCountry?: string;
|
|
257
|
+
}
|
|
258
|
+
/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
|
|
259
|
+
interface SitePropertiesNotification {
|
|
260
|
+
/** The site ID for which this update notification applies. */
|
|
261
|
+
metasiteId?: string;
|
|
262
|
+
/** The actual update event. */
|
|
263
|
+
event?: SitePropertiesEvent;
|
|
264
|
+
/**
|
|
265
|
+
* A convenience set of mappings from the MetaSite ID to its constituent services.
|
|
266
|
+
* @maxSize 500
|
|
267
|
+
*/
|
|
268
|
+
translations?: Translation[];
|
|
269
|
+
/** Context of the notification */
|
|
270
|
+
changeContext?: ChangeContext;
|
|
271
|
+
}
|
|
272
|
+
/** The actual update event for a particular notification. */
|
|
273
|
+
interface SitePropertiesEvent {
|
|
274
|
+
/** Version of the site's properties represented by this update. */
|
|
275
|
+
version?: number;
|
|
276
|
+
/** Set of properties that were updated - corresponds to the fields in "properties". */
|
|
277
|
+
fields?: string[];
|
|
278
|
+
/** Updated properties. */
|
|
279
|
+
properties?: Properties;
|
|
280
|
+
}
|
|
281
|
+
interface Properties {
|
|
282
|
+
/** Site categories. */
|
|
283
|
+
categories?: Categories;
|
|
284
|
+
/** Site locale. */
|
|
285
|
+
locale?: Locale;
|
|
286
|
+
/**
|
|
287
|
+
* Site language.
|
|
288
|
+
*
|
|
289
|
+
* Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
290
|
+
*/
|
|
291
|
+
language?: string | null;
|
|
292
|
+
/**
|
|
293
|
+
* Site currency used to bill customers.
|
|
294
|
+
*
|
|
295
|
+
* Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
296
|
+
*/
|
|
297
|
+
paymentCurrency?: string | null;
|
|
298
|
+
/** Site time zone in IANA time zone database format. For example, `America/New_York`. */
|
|
299
|
+
timeZone?: string | null;
|
|
300
|
+
/** Email address. */
|
|
301
|
+
email?: string | null;
|
|
302
|
+
/** Phone number. */
|
|
303
|
+
phone?: string | null;
|
|
304
|
+
/** Fax number. */
|
|
305
|
+
fax?: string | null;
|
|
306
|
+
/** Address. */
|
|
307
|
+
address?: Address;
|
|
308
|
+
/** Site display name. */
|
|
309
|
+
siteDisplayName?: string | null;
|
|
310
|
+
/** Business name. */
|
|
311
|
+
businessName?: string | null;
|
|
312
|
+
/** Path to the site's logo in Wix Media (without Wix Media base URL). */
|
|
313
|
+
logo?: string | null;
|
|
314
|
+
/** Site description. */
|
|
315
|
+
description?: string | null;
|
|
316
|
+
/**
|
|
317
|
+
* Business schedule. Regular and exceptional time periods when the business is open or the service is available.
|
|
318
|
+
*
|
|
319
|
+
* __Note:__ Not supported by Wix Bookings.
|
|
320
|
+
*/
|
|
321
|
+
businessSchedule?: BusinessSchedule;
|
|
322
|
+
/** Supported languages of a site and the primary language. */
|
|
323
|
+
multilingual?: Multilingual;
|
|
324
|
+
/** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */
|
|
325
|
+
consentPolicy?: ConsentPolicy;
|
|
326
|
+
/**
|
|
327
|
+
* Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.
|
|
328
|
+
*
|
|
329
|
+
* Site business type.
|
|
330
|
+
*/
|
|
331
|
+
businessConfig?: string | null;
|
|
332
|
+
/** External site URL that uses Wix as its headless business solution. */
|
|
333
|
+
externalSiteUrl?: string | null;
|
|
334
|
+
/** Track clicks analytics. */
|
|
335
|
+
trackClicksAnalytics?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* Company ID issued to the business by local authorities. Appears on invoices and price quotes.
|
|
338
|
+
* @maxLength 50
|
|
339
|
+
*/
|
|
340
|
+
companyId?: string | null;
|
|
341
|
+
}
|
|
342
|
+
interface Categories {
|
|
343
|
+
/** Primary site category. */
|
|
344
|
+
primary?: string;
|
|
345
|
+
/**
|
|
346
|
+
* Secondary site category.
|
|
347
|
+
* @maxSize 50
|
|
348
|
+
*/
|
|
349
|
+
secondary?: string[];
|
|
350
|
+
/** Business Term Id */
|
|
351
|
+
businessTermId?: string | null;
|
|
352
|
+
}
|
|
353
|
+
interface Locale {
|
|
354
|
+
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
355
|
+
languageCode?: string;
|
|
356
|
+
/** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
|
|
357
|
+
country?: string;
|
|
358
|
+
}
|
|
359
|
+
interface Address {
|
|
360
|
+
/** Street name. */
|
|
361
|
+
street?: string;
|
|
362
|
+
/** City name. */
|
|
363
|
+
city?: string;
|
|
364
|
+
/** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
|
|
365
|
+
country?: string;
|
|
366
|
+
/** State. */
|
|
367
|
+
state?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Zip or postal code.
|
|
370
|
+
* @maxLength 20
|
|
371
|
+
*/
|
|
372
|
+
zip?: string;
|
|
373
|
+
/** Extra information to be displayed in the address. */
|
|
374
|
+
hint?: AddressHint;
|
|
375
|
+
/** Whether this address represents a physical location. */
|
|
376
|
+
isPhysical?: boolean;
|
|
377
|
+
/** Google-formatted version of this address. */
|
|
378
|
+
googleFormattedAddress?: string;
|
|
379
|
+
/** Street number. */
|
|
380
|
+
streetNumber?: string;
|
|
381
|
+
/** Apartment number. */
|
|
382
|
+
apartmentNumber?: string;
|
|
383
|
+
/** Geographic coordinates of location. */
|
|
384
|
+
coordinates?: GeoCoordinates;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Extra information on displayed addresses.
|
|
388
|
+
* This is used for display purposes. Used to add additional data about the address, such as "In the passage".
|
|
389
|
+
* Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
|
|
390
|
+
*/
|
|
391
|
+
interface AddressHint {
|
|
392
|
+
/** Extra text displayed next to, or instead of, the actual address. */
|
|
393
|
+
text?: string;
|
|
394
|
+
/** Where the extra text should be displayed. */
|
|
395
|
+
placement?: PlacementTypeWithLiterals;
|
|
396
|
+
}
|
|
397
|
+
/** Where the extra text should be displayed: before, after or instead of the actual address. */
|
|
398
|
+
declare enum PlacementType {
|
|
399
|
+
BEFORE = "BEFORE",
|
|
400
|
+
AFTER = "AFTER",
|
|
401
|
+
REPLACE = "REPLACE"
|
|
402
|
+
}
|
|
403
|
+
/** @enumType */
|
|
404
|
+
type PlacementTypeWithLiterals = PlacementType | 'BEFORE' | 'AFTER' | 'REPLACE';
|
|
405
|
+
/** Geocoordinates for a particular address. */
|
|
406
|
+
interface GeoCoordinates {
|
|
407
|
+
/** Latitude of the location. Must be between -90 and 90. */
|
|
408
|
+
latitude?: number;
|
|
409
|
+
/** Longitude of the location. Must be between -180 and 180. */
|
|
410
|
+
longitude?: number;
|
|
411
|
+
}
|
|
412
|
+
/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
|
|
413
|
+
interface BusinessSchedule {
|
|
414
|
+
/**
|
|
415
|
+
* Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
|
|
416
|
+
* @maxSize 100
|
|
417
|
+
*/
|
|
418
|
+
periods?: TimePeriod[];
|
|
419
|
+
/**
|
|
420
|
+
* Exceptions to the business's regular hours. The business can be open or closed during the exception.
|
|
421
|
+
* @maxSize 100
|
|
422
|
+
*/
|
|
423
|
+
specialHourPeriod?: SpecialHourPeriod[];
|
|
424
|
+
}
|
|
425
|
+
/** Weekly recurring time periods when the business is regularly open or the service is available. */
|
|
426
|
+
interface TimePeriod {
|
|
427
|
+
/** Day of the week the period starts on. */
|
|
428
|
+
openDay?: DayOfWeekWithLiterals;
|
|
429
|
+
/**
|
|
430
|
+
* 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
|
|
431
|
+
* midnight at the end of the specified day.
|
|
432
|
+
*/
|
|
433
|
+
openTime?: string;
|
|
434
|
+
/** Day of the week the period ends on. */
|
|
435
|
+
closeDay?: DayOfWeekWithLiterals;
|
|
436
|
+
/**
|
|
437
|
+
* 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
|
|
438
|
+
* midnight at the end of the specified day.
|
|
439
|
+
*
|
|
440
|
+
* __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.
|
|
441
|
+
*/
|
|
442
|
+
closeTime?: string;
|
|
443
|
+
}
|
|
444
|
+
/** Enumerates the days of the week. */
|
|
445
|
+
declare enum DayOfWeek {
|
|
446
|
+
MONDAY = "MONDAY",
|
|
447
|
+
TUESDAY = "TUESDAY",
|
|
448
|
+
WEDNESDAY = "WEDNESDAY",
|
|
449
|
+
THURSDAY = "THURSDAY",
|
|
450
|
+
FRIDAY = "FRIDAY",
|
|
451
|
+
SATURDAY = "SATURDAY",
|
|
452
|
+
SUNDAY = "SUNDAY"
|
|
453
|
+
}
|
|
454
|
+
/** @enumType */
|
|
455
|
+
type DayOfWeekWithLiterals = DayOfWeek | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
|
|
456
|
+
/** Exception to the business's regular hours. The business can be open or closed during the exception. */
|
|
457
|
+
interface SpecialHourPeriod {
|
|
458
|
+
/** 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). */
|
|
459
|
+
startDate?: string;
|
|
460
|
+
/** 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). */
|
|
461
|
+
endDate?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Whether the business is closed (or the service is not available) during the exception.
|
|
464
|
+
*
|
|
465
|
+
* Default: `true`.
|
|
466
|
+
*/
|
|
467
|
+
isClosed?: boolean;
|
|
468
|
+
/** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
|
|
469
|
+
comment?: string;
|
|
470
|
+
}
|
|
471
|
+
interface Multilingual {
|
|
472
|
+
/**
|
|
473
|
+
* Supported languages list.
|
|
474
|
+
* @maxSize 200
|
|
475
|
+
*/
|
|
476
|
+
supportedLanguages?: SupportedLanguage[];
|
|
477
|
+
/** Whether to redirect to user language. */
|
|
478
|
+
autoRedirect?: boolean;
|
|
479
|
+
}
|
|
480
|
+
interface SupportedLanguage {
|
|
481
|
+
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
482
|
+
languageCode?: string;
|
|
483
|
+
/** Locale. */
|
|
484
|
+
locale?: Locale;
|
|
485
|
+
/** Whether the supported language is the primary language for the site. */
|
|
486
|
+
isPrimary?: boolean;
|
|
487
|
+
/** Language icon. */
|
|
488
|
+
countryCode?: string;
|
|
489
|
+
/** How the language will be resolved. For internal use. */
|
|
490
|
+
resolutionMethod?: ResolutionMethodWithLiterals;
|
|
491
|
+
/** Whether the supported language is the primary language for site visitors. */
|
|
492
|
+
isVisitorPrimary?: boolean | null;
|
|
493
|
+
}
|
|
494
|
+
declare enum ResolutionMethod {
|
|
495
|
+
QUERY_PARAM = "QUERY_PARAM",
|
|
496
|
+
SUBDOMAIN = "SUBDOMAIN",
|
|
497
|
+
SUBDIRECTORY = "SUBDIRECTORY"
|
|
498
|
+
}
|
|
499
|
+
/** @enumType */
|
|
500
|
+
type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
|
|
501
|
+
interface ConsentPolicy {
|
|
502
|
+
/** Whether the site uses cookies that are essential to site operation. Always `true`. */
|
|
503
|
+
essential?: boolean | null;
|
|
504
|
+
/** Whether the site uses cookies that affect site performance and other functional measurements. */
|
|
505
|
+
functional?: boolean | null;
|
|
506
|
+
/** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */
|
|
507
|
+
analytics?: boolean | null;
|
|
508
|
+
/** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */
|
|
509
|
+
advertising?: boolean | null;
|
|
510
|
+
/** CCPA compliance flag. */
|
|
511
|
+
dataToThirdParty?: boolean | null;
|
|
512
|
+
}
|
|
513
|
+
/** A single mapping from the MetaSite ID to a particular service. */
|
|
514
|
+
interface Translation {
|
|
515
|
+
/** The service type. */
|
|
516
|
+
serviceType?: string;
|
|
517
|
+
/** The application definition ID; this only applies to services of type ThirdPartyApps. */
|
|
518
|
+
appDefId?: string;
|
|
519
|
+
/** The instance ID of the service. */
|
|
520
|
+
instanceId?: string;
|
|
521
|
+
}
|
|
522
|
+
interface ChangeContext extends ChangeContextPayloadOneOf {
|
|
523
|
+
/** Properties were updated. */
|
|
524
|
+
propertiesChange?: PropertiesChange;
|
|
525
|
+
/** Default properties were created on site creation. */
|
|
526
|
+
siteCreated?: V4SiteCreated;
|
|
527
|
+
/** Properties were cloned on site cloning. */
|
|
528
|
+
siteCloned?: SiteCloned;
|
|
529
|
+
}
|
|
530
|
+
/** @oneof */
|
|
531
|
+
interface ChangeContextPayloadOneOf {
|
|
532
|
+
/** Properties were updated. */
|
|
533
|
+
propertiesChange?: PropertiesChange;
|
|
534
|
+
/** Default properties were created on site creation. */
|
|
535
|
+
siteCreated?: V4SiteCreated;
|
|
536
|
+
/** Properties were cloned on site cloning. */
|
|
537
|
+
siteCloned?: SiteCloned;
|
|
538
|
+
}
|
|
539
|
+
interface PropertiesChange {
|
|
540
|
+
}
|
|
541
|
+
interface V4SiteCreated {
|
|
542
|
+
/** Origin template site id. */
|
|
543
|
+
originTemplateId?: string | null;
|
|
544
|
+
}
|
|
545
|
+
interface SiteCloned {
|
|
546
|
+
/** Origin site id. */
|
|
547
|
+
originMetaSiteId?: string;
|
|
548
|
+
}
|
|
549
|
+
interface Empty {
|
|
550
|
+
}
|
|
551
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
552
|
+
createdEvent?: EntityCreatedEvent;
|
|
553
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
554
|
+
deletedEvent?: EntityDeletedEvent;
|
|
555
|
+
actionEvent?: ActionEvent;
|
|
556
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
557
|
+
_id?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
560
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
561
|
+
*/
|
|
562
|
+
entityFqdn?: string;
|
|
563
|
+
/**
|
|
564
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
565
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
566
|
+
*/
|
|
567
|
+
slug?: string;
|
|
568
|
+
/** ID of the entity associated with the event. */
|
|
569
|
+
entityId?: string;
|
|
570
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
571
|
+
eventTime?: Date | null;
|
|
572
|
+
/**
|
|
573
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
574
|
+
* (for example, GDPR).
|
|
575
|
+
*/
|
|
576
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
577
|
+
/** If present, indicates the action that triggered the event. */
|
|
578
|
+
originatedFrom?: string | null;
|
|
579
|
+
/**
|
|
580
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
581
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
582
|
+
*/
|
|
583
|
+
entityEventSequence?: string | null;
|
|
584
|
+
}
|
|
585
|
+
/** @oneof */
|
|
586
|
+
interface DomainEventBodyOneOf {
|
|
587
|
+
createdEvent?: EntityCreatedEvent;
|
|
588
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
589
|
+
deletedEvent?: EntityDeletedEvent;
|
|
590
|
+
actionEvent?: ActionEvent;
|
|
591
|
+
}
|
|
592
|
+
interface EntityCreatedEvent {
|
|
593
|
+
entity?: string;
|
|
594
|
+
}
|
|
595
|
+
interface RestoreInfo {
|
|
596
|
+
deletedDate?: Date | null;
|
|
597
|
+
}
|
|
598
|
+
interface EntityUpdatedEvent {
|
|
599
|
+
/**
|
|
600
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
601
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
602
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
603
|
+
*/
|
|
604
|
+
currentEntity?: string;
|
|
605
|
+
}
|
|
606
|
+
interface EntityDeletedEvent {
|
|
607
|
+
/** Entity that was deleted. */
|
|
608
|
+
deletedEntity?: string | null;
|
|
609
|
+
}
|
|
610
|
+
interface ActionEvent {
|
|
611
|
+
body?: string;
|
|
612
|
+
}
|
|
613
|
+
interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
614
|
+
/** Emitted on a meta site creation. */
|
|
615
|
+
siteCreated?: SiteCreated;
|
|
616
|
+
/** Emitted on a meta site transfer completion. */
|
|
617
|
+
siteTransferred?: SiteTransferred;
|
|
618
|
+
/** Emitted on a meta site deletion. */
|
|
619
|
+
siteDeleted?: SiteDeleted;
|
|
620
|
+
/** Emitted on a meta site restoration. */
|
|
621
|
+
siteUndeleted?: SiteUndeleted;
|
|
622
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
623
|
+
sitePublished?: SitePublished;
|
|
624
|
+
/** Emitted on a meta site unpublish. */
|
|
625
|
+
siteUnpublished?: SiteUnpublished;
|
|
626
|
+
/** Emitted when meta site is marked as template. */
|
|
627
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
628
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
629
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
630
|
+
/** Emitted when an application is provisioned (installed). */
|
|
631
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
632
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
633
|
+
serviceRemoved?: ServiceRemoved;
|
|
634
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
635
|
+
siteRenamedPayload?: SiteRenamed;
|
|
636
|
+
/** Emitted when meta site was permanently deleted. */
|
|
637
|
+
hardDeleted?: SiteHardDeleted;
|
|
638
|
+
/** Emitted on a namespace change. */
|
|
639
|
+
namespaceChanged?: NamespaceChanged;
|
|
640
|
+
/** Emitted when Studio is attached. */
|
|
641
|
+
studioAssigned?: StudioAssigned;
|
|
642
|
+
/** Emitted when Studio is detached. */
|
|
643
|
+
studioUnassigned?: StudioUnassigned;
|
|
644
|
+
/**
|
|
645
|
+
* Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
|
|
646
|
+
* the actual URL.
|
|
647
|
+
*
|
|
648
|
+
* See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
|
|
649
|
+
* See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
|
|
650
|
+
*/
|
|
651
|
+
urlChanged?: SiteUrlChanged;
|
|
652
|
+
/** Site is marked as PurgedExternally */
|
|
653
|
+
sitePurgedExternally?: SitePurgedExternally;
|
|
654
|
+
/** Emitted when Odeditor is attached. */
|
|
655
|
+
odeditorAssigned?: OdeditorAssigned;
|
|
656
|
+
/** Emitted when Odeditor is detached. */
|
|
657
|
+
odeditorUnassigned?: OdeditorUnassigned;
|
|
658
|
+
/** Emitted when Picasso is attached. */
|
|
659
|
+
picassoAssigned?: PicassoAssigned;
|
|
660
|
+
/** Emitted when Picasso is detached. */
|
|
661
|
+
picassoUnassigned?: PicassoUnassigned;
|
|
662
|
+
/** Emitted when Wixel is attached. */
|
|
663
|
+
wixelAssigned?: WixelAssigned;
|
|
664
|
+
/** Emitted when Wixel is detached. */
|
|
665
|
+
wixelUnassigned?: WixelUnassigned;
|
|
666
|
+
/** Emitted when StudioTwo is attached. */
|
|
667
|
+
studioTwoAssigned?: StudioTwoAssigned;
|
|
668
|
+
/** Emitted when StudioTwo is detached. */
|
|
669
|
+
studioTwoUnassigned?: StudioTwoUnassigned;
|
|
670
|
+
/** Emitted when media from user domain is enabled. */
|
|
671
|
+
userDomainMediaEnabled?: UserDomainMediaEnabled;
|
|
672
|
+
/** Emitted when media from user domain is disabled. */
|
|
673
|
+
userDomainMediaDisabled?: UserDomainMediaDisabled;
|
|
674
|
+
/** Emitted when Editorless is attached. */
|
|
675
|
+
editorlessAssigned?: EditorlessAssigned;
|
|
676
|
+
/** Emitted when Editorless is detached. */
|
|
677
|
+
editorlessUnassigned?: EditorlessUnassigned;
|
|
678
|
+
/**
|
|
679
|
+
* A meta site id.
|
|
680
|
+
* @format GUID
|
|
681
|
+
*/
|
|
682
|
+
metaSiteId?: string;
|
|
683
|
+
/** A meta site version. Monotonically increasing. */
|
|
684
|
+
version?: string;
|
|
685
|
+
/** A timestamp of the event. */
|
|
686
|
+
timestamp?: string;
|
|
687
|
+
/**
|
|
688
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
689
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
690
|
+
* @maxSize 4000
|
|
691
|
+
*/
|
|
692
|
+
assets?: Asset[];
|
|
693
|
+
}
|
|
694
|
+
/** @oneof */
|
|
695
|
+
interface MetaSiteSpecialEventPayloadOneOf {
|
|
696
|
+
/** Emitted on a meta site creation. */
|
|
697
|
+
siteCreated?: SiteCreated;
|
|
698
|
+
/** Emitted on a meta site transfer completion. */
|
|
699
|
+
siteTransferred?: SiteTransferred;
|
|
700
|
+
/** Emitted on a meta site deletion. */
|
|
701
|
+
siteDeleted?: SiteDeleted;
|
|
702
|
+
/** Emitted on a meta site restoration. */
|
|
703
|
+
siteUndeleted?: SiteUndeleted;
|
|
704
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
705
|
+
sitePublished?: SitePublished;
|
|
706
|
+
/** Emitted on a meta site unpublish. */
|
|
707
|
+
siteUnpublished?: SiteUnpublished;
|
|
708
|
+
/** Emitted when meta site is marked as template. */
|
|
709
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
710
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
711
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
712
|
+
/** Emitted when an application is provisioned (installed). */
|
|
713
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
714
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
715
|
+
serviceRemoved?: ServiceRemoved;
|
|
716
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
717
|
+
siteRenamedPayload?: SiteRenamed;
|
|
718
|
+
/** Emitted when meta site was permanently deleted. */
|
|
719
|
+
hardDeleted?: SiteHardDeleted;
|
|
720
|
+
/** Emitted on a namespace change. */
|
|
721
|
+
namespaceChanged?: NamespaceChanged;
|
|
722
|
+
/** Emitted when Studio is attached. */
|
|
723
|
+
studioAssigned?: StudioAssigned;
|
|
724
|
+
/** Emitted when Studio is detached. */
|
|
725
|
+
studioUnassigned?: StudioUnassigned;
|
|
726
|
+
/**
|
|
727
|
+
* Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
|
|
728
|
+
* the actual URL.
|
|
729
|
+
*
|
|
730
|
+
* See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
|
|
731
|
+
* See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
|
|
732
|
+
*/
|
|
733
|
+
urlChanged?: SiteUrlChanged;
|
|
734
|
+
/** Site is marked as PurgedExternally */
|
|
735
|
+
sitePurgedExternally?: SitePurgedExternally;
|
|
736
|
+
/** Emitted when Odeditor is attached. */
|
|
737
|
+
odeditorAssigned?: OdeditorAssigned;
|
|
738
|
+
/** Emitted when Odeditor is detached. */
|
|
739
|
+
odeditorUnassigned?: OdeditorUnassigned;
|
|
740
|
+
/** Emitted when Picasso is attached. */
|
|
741
|
+
picassoAssigned?: PicassoAssigned;
|
|
742
|
+
/** Emitted when Picasso is detached. */
|
|
743
|
+
picassoUnassigned?: PicassoUnassigned;
|
|
744
|
+
/** Emitted when Wixel is attached. */
|
|
745
|
+
wixelAssigned?: WixelAssigned;
|
|
746
|
+
/** Emitted when Wixel is detached. */
|
|
747
|
+
wixelUnassigned?: WixelUnassigned;
|
|
748
|
+
/** Emitted when StudioTwo is attached. */
|
|
749
|
+
studioTwoAssigned?: StudioTwoAssigned;
|
|
750
|
+
/** Emitted when StudioTwo is detached. */
|
|
751
|
+
studioTwoUnassigned?: StudioTwoUnassigned;
|
|
752
|
+
/** Emitted when media from user domain is enabled. */
|
|
753
|
+
userDomainMediaEnabled?: UserDomainMediaEnabled;
|
|
754
|
+
/** Emitted when media from user domain is disabled. */
|
|
755
|
+
userDomainMediaDisabled?: UserDomainMediaDisabled;
|
|
756
|
+
/** Emitted when Editorless is attached. */
|
|
757
|
+
editorlessAssigned?: EditorlessAssigned;
|
|
758
|
+
/** Emitted when Editorless is detached. */
|
|
759
|
+
editorlessUnassigned?: EditorlessUnassigned;
|
|
760
|
+
}
|
|
761
|
+
interface Asset {
|
|
762
|
+
/**
|
|
763
|
+
* An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
|
|
764
|
+
* @maxLength 36
|
|
765
|
+
*/
|
|
766
|
+
appDefId?: string;
|
|
767
|
+
/**
|
|
768
|
+
* An instance id. For legacy reasons may be UUID or a string.
|
|
769
|
+
* @maxLength 200
|
|
770
|
+
*/
|
|
771
|
+
instanceId?: string;
|
|
772
|
+
/** An application state. */
|
|
773
|
+
state?: StateWithLiterals;
|
|
774
|
+
}
|
|
775
|
+
declare enum State {
|
|
776
|
+
UNKNOWN = "UNKNOWN",
|
|
777
|
+
ENABLED = "ENABLED",
|
|
778
|
+
DISABLED = "DISABLED",
|
|
779
|
+
PENDING = "PENDING",
|
|
780
|
+
DEMO = "DEMO"
|
|
781
|
+
}
|
|
782
|
+
/** @enumType */
|
|
783
|
+
type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
|
|
784
|
+
interface SiteCreated {
|
|
785
|
+
/**
|
|
786
|
+
* A template identifier (empty if not created from a template).
|
|
787
|
+
* @maxLength 36
|
|
788
|
+
*/
|
|
789
|
+
originTemplateId?: string;
|
|
790
|
+
/**
|
|
791
|
+
* An account id of the owner.
|
|
792
|
+
* @format GUID
|
|
793
|
+
*/
|
|
794
|
+
ownerId?: string;
|
|
795
|
+
/** A context in which meta site was created. */
|
|
796
|
+
context?: SiteCreatedContextWithLiterals;
|
|
797
|
+
/**
|
|
798
|
+
* A meta site id from which this site was created.
|
|
799
|
+
*
|
|
800
|
+
* In case of a creation from a template it's a template id.
|
|
801
|
+
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
802
|
+
* @format GUID
|
|
803
|
+
*/
|
|
804
|
+
originMetaSiteId?: string | null;
|
|
805
|
+
/**
|
|
806
|
+
* A meta site name (URL slug).
|
|
807
|
+
* @maxLength 20
|
|
808
|
+
*/
|
|
809
|
+
siteName?: string;
|
|
810
|
+
/** A namespace. */
|
|
811
|
+
namespace?: NamespaceWithLiterals;
|
|
812
|
+
}
|
|
813
|
+
declare enum SiteCreatedContext {
|
|
814
|
+
/** A valid option, we don't expose all reasons why site might be created. */
|
|
815
|
+
OTHER = "OTHER",
|
|
816
|
+
/** A meta site was created from template. */
|
|
817
|
+
FROM_TEMPLATE = "FROM_TEMPLATE",
|
|
818
|
+
/** A meta site was created by copying of the transfferred meta site. */
|
|
819
|
+
DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
|
|
820
|
+
/** A copy of existing meta site. */
|
|
821
|
+
DUPLICATE = "DUPLICATE",
|
|
822
|
+
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
823
|
+
OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
|
|
824
|
+
/** deprecated A meta site was created for Flash editor. */
|
|
825
|
+
FLASH = "FLASH"
|
|
826
|
+
}
|
|
827
|
+
/** @enumType */
|
|
828
|
+
type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
|
|
829
|
+
declare enum Namespace {
|
|
830
|
+
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
831
|
+
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
832
|
+
WIX = "WIX",
|
|
833
|
+
/** 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. */
|
|
834
|
+
SHOUT_OUT = "SHOUT_OUT",
|
|
835
|
+
/** 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. */
|
|
836
|
+
ALBUMS = "ALBUMS",
|
|
837
|
+
/** 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. */
|
|
838
|
+
WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
|
|
839
|
+
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
840
|
+
HOTELS = "HOTELS",
|
|
841
|
+
/** 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. */
|
|
842
|
+
CLUBS = "CLUBS",
|
|
843
|
+
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
844
|
+
ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
|
|
845
|
+
/**
|
|
846
|
+
* AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default.
|
|
847
|
+
* Not the dev-center dev site (see Flag.DEV_CENTER_DEV_SITE_FLAG).
|
|
848
|
+
*/
|
|
849
|
+
DEV_SITE = "DEV_SITE",
|
|
850
|
+
/** 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. */
|
|
851
|
+
LOGOS = "LOGOS",
|
|
852
|
+
/** 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. */
|
|
853
|
+
VIDEO_MAKER = "VIDEO_MAKER",
|
|
854
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
855
|
+
PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
|
|
856
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
857
|
+
DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
|
|
858
|
+
/**
|
|
859
|
+
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
860
|
+
*
|
|
861
|
+
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
862
|
+
*/
|
|
863
|
+
HTML_DRAFT = "HTML_DRAFT",
|
|
864
|
+
/**
|
|
865
|
+
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
866
|
+
* Will be accessible from Site List and will not have a website app.
|
|
867
|
+
* Once the user attaches a site, the site will become a regular wixsite.
|
|
868
|
+
*/
|
|
869
|
+
SITELESS_BUSINESS = "SITELESS_BUSINESS",
|
|
870
|
+
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
871
|
+
CREATOR_ECONOMY = "CREATOR_ECONOMY",
|
|
872
|
+
/** It is to be used in the Business First efforts. */
|
|
873
|
+
DASHBOARD_FIRST = "DASHBOARD_FIRST",
|
|
874
|
+
/** Bookings business flow with no site. */
|
|
875
|
+
ANYWHERE = "ANYWHERE",
|
|
876
|
+
/** Namespace for Headless Backoffice with no editor */
|
|
877
|
+
HEADLESS = "HEADLESS",
|
|
878
|
+
/**
|
|
879
|
+
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
880
|
+
* The site will be used for account level CSM feature for enterprise
|
|
881
|
+
*/
|
|
882
|
+
ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
|
|
883
|
+
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
884
|
+
RISE = "RISE",
|
|
885
|
+
/**
|
|
886
|
+
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
887
|
+
* There's a blank site behind the scene but it's blank).
|
|
888
|
+
* The Mobile company will be the owner of this namespace.
|
|
889
|
+
*/
|
|
890
|
+
BRANDED_FIRST = "BRANDED_FIRST",
|
|
891
|
+
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
892
|
+
NOWNIA = "NOWNIA",
|
|
893
|
+
/**
|
|
894
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
895
|
+
* The Partners company owns this namespace.
|
|
896
|
+
*/
|
|
897
|
+
UGC_TEMPLATE = "UGC_TEMPLATE",
|
|
898
|
+
/** Codux Headless Sites */
|
|
899
|
+
CODUX = "CODUX",
|
|
900
|
+
/** Bobb - AI Design Creator. */
|
|
901
|
+
MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
|
|
902
|
+
/**
|
|
903
|
+
* Shared Blog Site is a unique single site across Enterprise account,
|
|
904
|
+
* This site will hold all Blog posts related to the Marketing product.
|
|
905
|
+
*/
|
|
906
|
+
SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
|
|
907
|
+
/** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
908
|
+
STANDALONE_FORMS = "STANDALONE_FORMS",
|
|
909
|
+
/** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
910
|
+
STANDALONE_EVENTS = "STANDALONE_EVENTS",
|
|
911
|
+
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
912
|
+
MIMIR = "MIMIR",
|
|
913
|
+
/** Wix Twins platform. */
|
|
914
|
+
TWINS = "TWINS",
|
|
915
|
+
/** Wix Nano. */
|
|
916
|
+
NANO = "NANO",
|
|
917
|
+
/** Base44 headless sites. */
|
|
918
|
+
BASE44 = "BASE44",
|
|
919
|
+
/** Wix Channels Sites */
|
|
920
|
+
CHANNELS = "CHANNELS",
|
|
921
|
+
/** Nautilus platform. */
|
|
922
|
+
NAUTILUS = "NAUTILUS",
|
|
923
|
+
/**
|
|
924
|
+
* Symphony — a siteless site representing a project within Symphony (the evolution of Orion).
|
|
925
|
+
* Holds project data, conversations, assets, and manages collaborators / shared team members for the project.
|
|
926
|
+
*/
|
|
927
|
+
SYMPHONY = "SYMPHONY",
|
|
928
|
+
/** Nautilus platform app. */
|
|
929
|
+
NAUTILUS_APPS = "NAUTILUS_APPS",
|
|
930
|
+
/**
|
|
931
|
+
* Vibu — a siteless site representing a project built with Vibu (the AI app builder).
|
|
932
|
+
* Holds the project's generated code, conversations, assets, and manages collaborators for the project.
|
|
933
|
+
*/
|
|
934
|
+
VIBU = "VIBU",
|
|
935
|
+
/**
|
|
936
|
+
* Ghost site for the BrandKit multi-site platform. Each ghost backs a single BrandKit
|
|
937
|
+
* (an Enterprise account may have several), holding that BrandKit's brand definition
|
|
938
|
+
* (theme, typography, assets) which is rolled out to the BrandKit's connected sites.
|
|
939
|
+
* MetaSites with this namespace will *not* be shown in a user's site list by default.
|
|
940
|
+
*/
|
|
941
|
+
ENTERPRISE_BRAND_KIT = "ENTERPRISE_BRAND_KIT",
|
|
942
|
+
/**
|
|
943
|
+
* Dev-center development sites (com.wixpress.devcenter.dsm).
|
|
944
|
+
* DEPRECATED: replaced by Flag.DEV_CENTER_DEV_SITE_FLAG (a dev site is orthogonal to the namespace). Do not use for new sites.
|
|
945
|
+
*/
|
|
946
|
+
DEV_CENTER_DEV_SITE = "DEV_CENTER_DEV_SITE"
|
|
947
|
+
}
|
|
948
|
+
/** @enumType */
|
|
949
|
+
type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS' | 'NAUTILUS' | 'SYMPHONY' | 'NAUTILUS_APPS' | 'VIBU' | 'ENTERPRISE_BRAND_KIT' | 'DEV_CENTER_DEV_SITE';
|
|
950
|
+
/** Site transferred to another user. */
|
|
951
|
+
interface SiteTransferred {
|
|
952
|
+
/**
|
|
953
|
+
* A previous owner id (user that transfers meta site).
|
|
954
|
+
* @format GUID
|
|
955
|
+
*/
|
|
956
|
+
oldOwnerId?: string;
|
|
957
|
+
/**
|
|
958
|
+
* A new owner id (user that accepts meta site).
|
|
959
|
+
* @format GUID
|
|
960
|
+
*/
|
|
961
|
+
newOwnerId?: string;
|
|
962
|
+
}
|
|
963
|
+
/** Soft deletion of the meta site. Could be restored. */
|
|
964
|
+
interface SiteDeleted {
|
|
965
|
+
/** A deletion context. */
|
|
966
|
+
deleteContext?: DeleteContext;
|
|
967
|
+
}
|
|
968
|
+
interface DeleteContext {
|
|
969
|
+
/** When the meta site was deleted. */
|
|
970
|
+
dateDeleted?: Date | null;
|
|
971
|
+
/** A status. */
|
|
972
|
+
deleteStatus?: DeleteStatusWithLiterals;
|
|
973
|
+
/**
|
|
974
|
+
* A reason (flow).
|
|
975
|
+
* @maxLength 255
|
|
976
|
+
*/
|
|
977
|
+
deleteOrigin?: string;
|
|
978
|
+
/**
|
|
979
|
+
* A service that deleted it.
|
|
980
|
+
* @maxLength 255
|
|
981
|
+
*/
|
|
982
|
+
initiatorId?: string | null;
|
|
983
|
+
}
|
|
984
|
+
declare enum DeleteStatus {
|
|
985
|
+
UNKNOWN = "UNKNOWN",
|
|
986
|
+
TRASH = "TRASH",
|
|
987
|
+
DELETED = "DELETED",
|
|
988
|
+
PENDING_PURGE = "PENDING_PURGE",
|
|
989
|
+
PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
|
|
990
|
+
}
|
|
991
|
+
/** @enumType */
|
|
992
|
+
type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
|
|
993
|
+
/** Restoration of the meta site. */
|
|
994
|
+
interface SiteUndeleted {
|
|
995
|
+
}
|
|
996
|
+
/** First publish of a meta site. Or subsequent publish after unpublish. */
|
|
997
|
+
interface SitePublished {
|
|
998
|
+
}
|
|
999
|
+
interface SiteUnpublished {
|
|
1000
|
+
/**
|
|
1001
|
+
* A list of URLs previously associated with the meta site.
|
|
1002
|
+
* @maxLength 4000
|
|
1003
|
+
* @maxSize 10000
|
|
1004
|
+
*/
|
|
1005
|
+
urls?: string[];
|
|
1006
|
+
}
|
|
1007
|
+
interface SiteMarkedAsTemplate {
|
|
1008
|
+
}
|
|
1009
|
+
interface SiteMarkedAsWixSite {
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Represents a service provisioned a site.
|
|
1013
|
+
*
|
|
1014
|
+
* Note on `origin_instance_id`:
|
|
1015
|
+
* There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
|
|
1016
|
+
* This is because of the following scenario:
|
|
1017
|
+
*
|
|
1018
|
+
* Imagine you have a template where a third-party application (TPA) includes some stub data,
|
|
1019
|
+
* such as a product catalog. When you create a site from this template, you inherit this
|
|
1020
|
+
* default product catalog. However, if the template's product catalog is modified,
|
|
1021
|
+
* your site will retain the catalog as it was at the time of site creation. This ensures that
|
|
1022
|
+
* your site remains consistent with what you initially received and does not include any
|
|
1023
|
+
* changes made to the original template afterward.
|
|
1024
|
+
* To ensure this, the TPA on the template gets a new instance_id.
|
|
1025
|
+
*/
|
|
1026
|
+
interface ServiceProvisioned {
|
|
1027
|
+
/**
|
|
1028
|
+
* Either UUID or EmbeddedServiceType.
|
|
1029
|
+
* @maxLength 36
|
|
1030
|
+
*/
|
|
1031
|
+
appDefId?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* Not only UUID. Something here could be something weird.
|
|
1034
|
+
* @maxLength 36
|
|
1035
|
+
*/
|
|
1036
|
+
instanceId?: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* An instance id from which this instance is originated.
|
|
1039
|
+
* @maxLength 36
|
|
1040
|
+
*/
|
|
1041
|
+
originInstanceId?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* A version.
|
|
1044
|
+
* @maxLength 500
|
|
1045
|
+
*/
|
|
1046
|
+
version?: string | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* The origin meta site id
|
|
1049
|
+
* @format GUID
|
|
1050
|
+
*/
|
|
1051
|
+
originMetaSiteId?: string | null;
|
|
1052
|
+
}
|
|
1053
|
+
interface ServiceRemoved {
|
|
1054
|
+
/**
|
|
1055
|
+
* Either UUID or EmbeddedServiceType.
|
|
1056
|
+
* @maxLength 36
|
|
1057
|
+
*/
|
|
1058
|
+
appDefId?: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* Not only UUID. Something here could be something weird.
|
|
1061
|
+
* @maxLength 36
|
|
1062
|
+
*/
|
|
1063
|
+
instanceId?: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* A version.
|
|
1066
|
+
* @maxLength 500
|
|
1067
|
+
*/
|
|
1068
|
+
version?: string | null;
|
|
1069
|
+
}
|
|
1070
|
+
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
1071
|
+
interface SiteRenamed {
|
|
1072
|
+
/**
|
|
1073
|
+
* A new meta site name (URL slug).
|
|
1074
|
+
* @maxLength 20
|
|
1075
|
+
*/
|
|
1076
|
+
newSiteName?: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* A previous meta site name (URL slug).
|
|
1079
|
+
* @maxLength 255
|
|
1080
|
+
*/
|
|
1081
|
+
oldSiteName?: string;
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Hard deletion of the meta site.
|
|
1085
|
+
*
|
|
1086
|
+
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
1087
|
+
*/
|
|
1088
|
+
interface SiteHardDeleted {
|
|
1089
|
+
/** A deletion context. */
|
|
1090
|
+
deleteContext?: DeleteContext;
|
|
1091
|
+
}
|
|
1092
|
+
interface NamespaceChanged {
|
|
1093
|
+
/** A previous namespace. */
|
|
1094
|
+
oldNamespace?: NamespaceWithLiterals;
|
|
1095
|
+
/** A new namespace. */
|
|
1096
|
+
newNamespace?: NamespaceWithLiterals;
|
|
1097
|
+
}
|
|
1098
|
+
/** Assigned Studio editor */
|
|
1099
|
+
interface StudioAssigned {
|
|
1100
|
+
}
|
|
1101
|
+
/** Unassigned Studio editor */
|
|
1102
|
+
interface StudioUnassigned {
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
|
|
1106
|
+
*
|
|
1107
|
+
* This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
|
|
1108
|
+
* with sites and its urls, you need to listen to another topic/event. Read about it:
|
|
1109
|
+
*
|
|
1110
|
+
* https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
|
|
1111
|
+
*/
|
|
1112
|
+
interface SiteUrlChanged {
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Used at the end of the deletion flow for both draft sites and when a user deletes a site.
|
|
1116
|
+
* Consumed by other teams to remove relevant data.
|
|
1117
|
+
*/
|
|
1118
|
+
interface SitePurgedExternally {
|
|
1119
|
+
/**
|
|
1120
|
+
* @maxLength 2048
|
|
1121
|
+
* @maxSize 100
|
|
1122
|
+
* @deprecated
|
|
1123
|
+
* @targetRemovalDate 2025-04-15
|
|
1124
|
+
*/
|
|
1125
|
+
appDefId?: string[];
|
|
1126
|
+
}
|
|
1127
|
+
/** Assigned Odeditor */
|
|
1128
|
+
interface OdeditorAssigned {
|
|
1129
|
+
}
|
|
1130
|
+
/** Unassigned Odeditor */
|
|
1131
|
+
interface OdeditorUnassigned {
|
|
1132
|
+
}
|
|
1133
|
+
/** Assigned Picasso editor */
|
|
1134
|
+
interface PicassoAssigned {
|
|
1135
|
+
}
|
|
1136
|
+
/** Unassigned Picasso */
|
|
1137
|
+
interface PicassoUnassigned {
|
|
1138
|
+
}
|
|
1139
|
+
/** Assigned Wixel */
|
|
1140
|
+
interface WixelAssigned {
|
|
1141
|
+
}
|
|
1142
|
+
/** Unassigned Wixel */
|
|
1143
|
+
interface WixelUnassigned {
|
|
1144
|
+
}
|
|
1145
|
+
/** Assigned StudioTwo */
|
|
1146
|
+
interface StudioTwoAssigned {
|
|
1147
|
+
}
|
|
1148
|
+
/** Unassigned StudioTwo */
|
|
1149
|
+
interface StudioTwoUnassigned {
|
|
1150
|
+
}
|
|
1151
|
+
/** Media from user domain is enabled. */
|
|
1152
|
+
interface UserDomainMediaEnabled {
|
|
1153
|
+
}
|
|
1154
|
+
/** Media from user domain is disabled. */
|
|
1155
|
+
interface UserDomainMediaDisabled {
|
|
1156
|
+
}
|
|
1157
|
+
/** Assigned Editorless */
|
|
1158
|
+
interface EditorlessAssigned {
|
|
1159
|
+
}
|
|
1160
|
+
/** Unassigned Editorless */
|
|
1161
|
+
interface EditorlessUnassigned {
|
|
1162
|
+
}
|
|
1163
|
+
interface MessageEnvelope {
|
|
1164
|
+
/**
|
|
1165
|
+
* App instance ID.
|
|
1166
|
+
* @format GUID
|
|
1167
|
+
*/
|
|
1168
|
+
instanceId?: string | null;
|
|
1169
|
+
/**
|
|
1170
|
+
* Event type.
|
|
1171
|
+
* @maxLength 150
|
|
1172
|
+
*/
|
|
1173
|
+
eventType?: string;
|
|
1174
|
+
/** The identification type and identity data. */
|
|
1175
|
+
identity?: IdentificationData;
|
|
1176
|
+
/** Stringify payload. */
|
|
1177
|
+
data?: string;
|
|
1178
|
+
/** Details related to the account */
|
|
1179
|
+
accountInfo?: AccountInfo;
|
|
1180
|
+
}
|
|
1181
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1182
|
+
/**
|
|
1183
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1184
|
+
* @format GUID
|
|
1185
|
+
*/
|
|
1186
|
+
anonymousVisitorId?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* ID of a site visitor that has logged in to the site.
|
|
1189
|
+
* @format GUID
|
|
1190
|
+
*/
|
|
1191
|
+
memberId?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1194
|
+
* @format GUID
|
|
1195
|
+
*/
|
|
1196
|
+
wixUserId?: string;
|
|
1197
|
+
/**
|
|
1198
|
+
* ID of an app.
|
|
1199
|
+
* @format GUID
|
|
1200
|
+
*/
|
|
1201
|
+
appId?: string;
|
|
1202
|
+
/** @readonly */
|
|
1203
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1204
|
+
}
|
|
1205
|
+
/** @oneof */
|
|
1206
|
+
interface IdentificationDataIdOneOf {
|
|
1207
|
+
/**
|
|
1208
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1209
|
+
* @format GUID
|
|
1210
|
+
*/
|
|
1211
|
+
anonymousVisitorId?: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* ID of a site visitor that has logged in to the site.
|
|
1214
|
+
* @format GUID
|
|
1215
|
+
*/
|
|
1216
|
+
memberId?: string;
|
|
1217
|
+
/**
|
|
1218
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1219
|
+
* @format GUID
|
|
1220
|
+
*/
|
|
1221
|
+
wixUserId?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* ID of an app.
|
|
1224
|
+
* @format GUID
|
|
1225
|
+
*/
|
|
1226
|
+
appId?: string;
|
|
1227
|
+
}
|
|
1228
|
+
declare enum WebhookIdentityType {
|
|
1229
|
+
UNKNOWN = "UNKNOWN",
|
|
1230
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1231
|
+
MEMBER = "MEMBER",
|
|
1232
|
+
WIX_USER = "WIX_USER",
|
|
1233
|
+
APP = "APP"
|
|
1234
|
+
}
|
|
1235
|
+
/** @enumType */
|
|
1236
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1237
|
+
interface AccountInfo {
|
|
1238
|
+
/**
|
|
1239
|
+
* ID of the Wix account associated with the event.
|
|
1240
|
+
* @format GUID
|
|
1241
|
+
*/
|
|
1242
|
+
accountId?: string | null;
|
|
1243
|
+
/**
|
|
1244
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
1245
|
+
* @format GUID
|
|
1246
|
+
*/
|
|
1247
|
+
parentAccountId?: string | null;
|
|
1248
|
+
/**
|
|
1249
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
1250
|
+
* @format GUID
|
|
1251
|
+
*/
|
|
1252
|
+
siteId?: string | null;
|
|
1253
|
+
}
|
|
1254
|
+
/** @docsIgnore */
|
|
1255
|
+
type CreateStandaloneFormApplicationErrors = {
|
|
1256
|
+
code?: 'FAILED_PRECONDITION';
|
|
1257
|
+
description?: string;
|
|
1258
|
+
data?: Record<string, any>;
|
|
1259
|
+
};
|
|
1260
|
+
/** @docsIgnore */
|
|
1261
|
+
type GetSitePropertiesApplicationErrors = {
|
|
1262
|
+
code?: 'SITE_PROPERTIES_NOT_FOUND';
|
|
1263
|
+
description?: string;
|
|
1264
|
+
data?: Record<string, any>;
|
|
1265
|
+
};
|
|
1266
|
+
/**
|
|
1267
|
+
* Returns the standalone meta site owned by the caller's account, provisioning a new siteless
|
|
1268
|
+
* meta site if one doesn't exist yet.
|
|
1269
|
+
*
|
|
1270
|
+
* Use this when the caller doesn't already have a meta site, for example when a form is built
|
|
1271
|
+
* before the user becomes a Wix user. The returned meta site can then own standalone forms.
|
|
1272
|
+
* @public
|
|
1273
|
+
* @documentationMaturity preview
|
|
1274
|
+
* @permissionId MetaSite.Create
|
|
1275
|
+
* @fqn wix.forms.v1.FormStandaloneService.GetOrCreateFormStandaloneMetaSite
|
|
1276
|
+
*/
|
|
1277
|
+
declare function getOrCreateFormStandaloneMetaSite(): Promise<NonNullablePaths<GetOrCreateFormStandaloneMetaSiteResponse, `metaSiteId`, 0>>;
|
|
1278
|
+
/**
|
|
1279
|
+
* Marks an existing form as standalone by creating a standalone form record that binds the form
|
|
1280
|
+
* to the meta site that owns it.
|
|
1281
|
+
*
|
|
1282
|
+
* The form referenced by `formId` must already exist. The owning meta site is taken from the
|
|
1283
|
+
* calling context. A given form can be marked standalone by only one record per meta site.
|
|
1284
|
+
* @param standaloneForm - Standalone form
|
|
1285
|
+
* @public
|
|
1286
|
+
* @documentationMaturity preview
|
|
1287
|
+
* @requiredField standaloneForm
|
|
1288
|
+
* @requiredField standaloneForm.formId
|
|
1289
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_CREATE
|
|
1290
|
+
* @applicableIdentity APP
|
|
1291
|
+
* @returns Standalone form
|
|
1292
|
+
* @fqn wix.forms.v1.FormStandaloneService.CreateStandaloneForm
|
|
1293
|
+
*/
|
|
1294
|
+
declare function createStandaloneForm(standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>): Promise<StandaloneForm & {
|
|
1295
|
+
__applicationErrorsType?: CreateStandaloneFormApplicationErrors;
|
|
1296
|
+
}>;
|
|
1297
|
+
/**
|
|
1298
|
+
* Retrieves a standalone form by ID.
|
|
1299
|
+
* @param standaloneFormId - Standalone form id
|
|
1300
|
+
* @public
|
|
1301
|
+
* @documentationMaturity preview
|
|
1302
|
+
* @requiredField standaloneFormId
|
|
1303
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_READ
|
|
1304
|
+
* @applicableIdentity APP
|
|
1305
|
+
* @returns Standalone form
|
|
1306
|
+
* @fqn wix.forms.v1.FormStandaloneService.GetStandaloneForm
|
|
1307
|
+
*/
|
|
1308
|
+
declare function getStandaloneForm(standaloneFormId: string): Promise<StandaloneForm>;
|
|
1309
|
+
/**
|
|
1310
|
+
* Deletes a standalone form record
|
|
1311
|
+
*
|
|
1312
|
+
* By default the record is moved to the trash bin. Set `permanent` to `true` to delete it permanently.
|
|
1313
|
+
* @param standaloneFormId - Standalone form id
|
|
1314
|
+
* @public
|
|
1315
|
+
* @documentationMaturity preview
|
|
1316
|
+
* @requiredField standaloneFormId
|
|
1317
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_DELETE
|
|
1318
|
+
* @applicableIdentity APP
|
|
1319
|
+
* @fqn wix.forms.v1.FormStandaloneService.DeleteStandaloneForm
|
|
1320
|
+
*/
|
|
1321
|
+
declare function deleteStandaloneForm(standaloneFormId: string, options?: DeleteStandaloneFormOptions): Promise<void>;
|
|
1322
|
+
interface DeleteStandaloneFormOptions {
|
|
1323
|
+
/**
|
|
1324
|
+
* Whether to permanently delete a standalone form bypassing the trash bin.
|
|
1325
|
+
*
|
|
1326
|
+
* Default: `false`
|
|
1327
|
+
*/
|
|
1328
|
+
permanent?: boolean;
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Permanently deletes a standalone form record that is in the trash bin.
|
|
1332
|
+
* @param standaloneFormId - Standalone form id
|
|
1333
|
+
* @public
|
|
1334
|
+
* @documentationMaturity preview
|
|
1335
|
+
* @requiredField standaloneFormId
|
|
1336
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_DELETE
|
|
1337
|
+
* @applicableIdentity APP
|
|
1338
|
+
* @fqn wix.forms.v1.FormStandaloneService.RemoveStandaloneFormFromTrashBin
|
|
1339
|
+
*/
|
|
1340
|
+
declare function removeStandaloneFormFromTrashBin(standaloneFormId: string): Promise<void>;
|
|
1341
|
+
/**
|
|
1342
|
+
* Restores a standalone form record from the trash bin.
|
|
1343
|
+
* @param standaloneFormId - Standalone form id
|
|
1344
|
+
* @public
|
|
1345
|
+
* @documentationMaturity preview
|
|
1346
|
+
* @requiredField standaloneFormId
|
|
1347
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_CREATE
|
|
1348
|
+
* @applicableIdentity APP
|
|
1349
|
+
* @fqn wix.forms.v1.FormStandaloneService.RestoreStandaloneFormFromTrashBin
|
|
1350
|
+
*/
|
|
1351
|
+
declare function restoreStandaloneFormFromTrashBin(standaloneFormId: string): Promise<RestoreStandaloneFormFromTrashBinResponse>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Retrieves a standalone form record from the trash bin by ID.
|
|
1354
|
+
* @param standaloneFormId - Standalone form id
|
|
1355
|
+
* @public
|
|
1356
|
+
* @documentationMaturity preview
|
|
1357
|
+
* @requiredField standaloneFormId
|
|
1358
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_READ
|
|
1359
|
+
* @applicableIdentity APP
|
|
1360
|
+
* @fqn wix.forms.v1.FormStandaloneService.GetDeletedStandaloneForm
|
|
1361
|
+
*/
|
|
1362
|
+
declare function getDeletedStandaloneForm(standaloneFormId: string): Promise<GetDeletedStandaloneFormResponse>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Retrieves a list of standalone form records that are in the trash bin.
|
|
1365
|
+
* @public
|
|
1366
|
+
* @documentationMaturity preview
|
|
1367
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_READ
|
|
1368
|
+
* @applicableIdentity APP
|
|
1369
|
+
* @fqn wix.forms.v1.FormStandaloneService.ListDeletedStandaloneForms
|
|
1370
|
+
*/
|
|
1371
|
+
declare function listDeletedStandaloneForms(options?: ListDeletedStandaloneFormsOptions): Promise<NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>>;
|
|
1372
|
+
interface ListDeletedStandaloneFormsOptions {
|
|
1373
|
+
/**
|
|
1374
|
+
* Standalone Form ids.
|
|
1375
|
+
* @maxSize 100
|
|
1376
|
+
* @maxLength 36
|
|
1377
|
+
*/
|
|
1378
|
+
standaloneFormIds?: string[];
|
|
1379
|
+
/** Cursor token pointing to a page of results. Not used in the first request. */
|
|
1380
|
+
paging?: CursorPaging;
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* Retrieves a list of standalone forms, given the provided filtering, sorting, and paging.
|
|
1384
|
+
*
|
|
1385
|
+
* Supported filterable and sortable fields: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.
|
|
1386
|
+
* @param query - WQL expression.
|
|
1387
|
+
* @public
|
|
1388
|
+
* @documentationMaturity preview
|
|
1389
|
+
* @requiredField query
|
|
1390
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_READ
|
|
1391
|
+
* @applicableIdentity APP
|
|
1392
|
+
* @fqn wix.forms.v1.FormStandaloneService.QueryStandaloneForms
|
|
1393
|
+
*/
|
|
1394
|
+
declare function queryStandaloneForms(query: CursorQuery): Promise<NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>>;
|
|
1395
|
+
/**
|
|
1396
|
+
* Gets site properties (currency and locale) for the caller's standalone meta site.
|
|
1397
|
+
*
|
|
1398
|
+
* Results may be cached and are not guaranteed to reflect real-time changes.
|
|
1399
|
+
* @public
|
|
1400
|
+
* @documentationMaturity preview
|
|
1401
|
+
* @permissionId WIX_FORMS.STANDALONE_FORM_READ
|
|
1402
|
+
* @applicableIdentity APP
|
|
1403
|
+
* @fqn wix.forms.v1.FormStandaloneService.GetSiteProperties
|
|
1404
|
+
*/
|
|
1405
|
+
declare function getSiteProperties(): Promise<NonNullablePaths<GetSitePropertiesResponse, `siteProperties.localeLanguageCode` | `siteProperties.localeCountry`, 1> & {
|
|
1406
|
+
__applicationErrorsType?: GetSitePropertiesApplicationErrors;
|
|
1407
|
+
}>;
|
|
1408
|
+
|
|
1409
|
+
export { type AccountInfo, type ActionEvent, type Address, type AddressHint, type Asset, type BusinessSchedule, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type ConsentPolicy, type CreateStandaloneFormApplicationErrors, type CreateStandaloneFormRequest, type CreateStandaloneFormResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DayOfWeek, type DayOfWeekWithLiterals, type DeleteContext, type DeleteStandaloneFormOptions, type DeleteStandaloneFormRequest, type DeleteStandaloneFormResponse, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GeoCoordinates, type GetDeletedStandaloneFormRequest, type GetDeletedStandaloneFormResponse, type GetOrCreateFormStandaloneMetaSiteRequest, type GetOrCreateFormStandaloneMetaSiteResponse, type GetSitePropertiesApplicationErrors, type GetSitePropertiesRequest, type GetSitePropertiesResponse, type GetStandaloneFormRequest, type GetStandaloneFormResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListDeletedStandaloneFormsOptions, type ListDeletedStandaloneFormsRequest, type ListDeletedStandaloneFormsResponse, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type Properties, type PropertiesChange, type QueryStandaloneFormsRequest, type QueryStandaloneFormsResponse, type RemoveStandaloneFormFromTrashBinRequest, type RemoveStandaloneFormFromTrashBinResponse, ResolutionMethod, type ResolutionMethodWithLiterals, type RestoreInfo, type RestoreStandaloneFormFromTrashBinRequest, type RestoreStandaloneFormFromTrashBinResponse, type ServiceProvisioned, type ServiceRemoved, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecialHourPeriod, type StandaloneForm, type StandaloneMetaSiteProperties, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, type Translation, type UserDomainMediaDisabled, type UserDomainMediaEnabled, type V4SiteCreated, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, createStandaloneForm, deleteStandaloneForm, getDeletedStandaloneForm, getOrCreateFormStandaloneMetaSite, getSiteProperties, getStandaloneForm, listDeletedStandaloneForms, queryStandaloneForms, removeStandaloneFormFromTrashBin, restoreStandaloneFormFromTrashBin };
|