@wix/auto_sdk_restaurants_menus 1.0.84 → 1.0.86
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 +28 -28
- package/build/cjs/index.js +215 -215
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +544 -521
- package/build/cjs/index.typings.js +173 -173
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +326 -303
- package/build/cjs/meta.js +146 -146
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +28 -28
- package/build/es/index.mjs +215 -215
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +544 -521
- package/build/es/index.typings.mjs +173 -173
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +326 -303
- package/build/es/meta.mjs +146 -146
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +28 -28
- package/build/internal/cjs/index.typings.d.ts +568 -545
- package/build/internal/cjs/meta.d.ts +506 -483
- package/build/internal/es/index.d.mts +28 -28
- package/build/internal/es/index.typings.d.mts +568 -545
- package/build/internal/es/meta.d.mts +506 -483
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateMenuRequest as CreateMenuRequest$1, CreateMenuResponse as CreateMenuResponse$1, BulkCreateMenusRequest as BulkCreateMenusRequest$1, BulkCreateMenusResponse as BulkCreateMenusResponse$1, GetMenuRequest as GetMenuRequest$1, GetMenuResponse as GetMenuResponse$1, ListMenusRequest as ListMenusRequest$1, ListMenusResponse as ListMenusResponse$1, QueryMenusRequest as QueryMenusRequest$1, QueryMenusResponse as QueryMenusResponse$1, UpdateMenuRequest as UpdateMenuRequest$1, UpdateMenuResponse as UpdateMenuResponse$1, BulkUpdateMenuRequest as BulkUpdateMenuRequest$1, BulkUpdateMenuResponse as BulkUpdateMenuResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, DeleteMenuRequest as DeleteMenuRequest$1, DeleteMenuResponse as DeleteMenuResponse$1, DuplicateMenuRequest as DuplicateMenuRequest$1, DuplicateMenuResponse as DuplicateMenuResponse$1, GetMenuSiteUrlRequest as GetMenuSiteUrlRequest$1, GetMenuSiteUrlResponse as GetMenuSiteUrlResponse$1, QueryMenusSiteUrlRequest as QueryMenusSiteUrlRequest$1, QueryMenusSiteUrlResponse as QueryMenusSiteUrlResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Menu {
|
|
@@ -222,249 +222,288 @@ interface ExternalReferenceInfo {
|
|
|
222
222
|
/** Whether the connection to the external system is currently active. */
|
|
223
223
|
connected?: boolean | null;
|
|
224
224
|
}
|
|
225
|
-
interface
|
|
225
|
+
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
226
226
|
/**
|
|
227
|
-
*
|
|
227
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
228
228
|
* @format GUID
|
|
229
229
|
*/
|
|
230
|
-
|
|
230
|
+
metaSiteId?: string;
|
|
231
231
|
/**
|
|
232
|
-
*
|
|
232
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
233
233
|
* @format GUID
|
|
234
|
-
* @maxSize 100
|
|
235
|
-
*/
|
|
236
|
-
businessLocationIds?: string[] | null;
|
|
237
|
-
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
238
|
-
duplicateSubEntities?: boolean | null;
|
|
239
|
-
/**
|
|
240
|
-
* The new name of the duplicated menu.
|
|
241
|
-
* @maxLength 500
|
|
242
|
-
*/
|
|
243
|
-
menuName?: string | null;
|
|
244
|
-
}
|
|
245
|
-
interface DuplicateMenuResponse {
|
|
246
|
-
/** @format GUID */
|
|
247
|
-
menuIds?: string[];
|
|
248
|
-
}
|
|
249
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
250
|
-
createdEvent?: EntityCreatedEvent;
|
|
251
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
252
|
-
deletedEvent?: EntityDeletedEvent;
|
|
253
|
-
actionEvent?: ActionEvent;
|
|
254
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
255
|
-
id?: string;
|
|
256
|
-
/**
|
|
257
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
258
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
259
|
-
*/
|
|
260
|
-
entityFqdn?: string;
|
|
261
|
-
/**
|
|
262
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
263
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
264
234
|
*/
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
|
|
235
|
+
siteId?: string;
|
|
236
|
+
/** Invalidate by App */
|
|
237
|
+
app?: App;
|
|
238
|
+
/** Invalidate by page id */
|
|
239
|
+
page?: Page;
|
|
240
|
+
/** Invalidate by URI path */
|
|
241
|
+
uri?: URI;
|
|
242
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
243
|
+
file?: File;
|
|
244
|
+
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
245
|
+
customTag?: CustomTag;
|
|
246
|
+
/** Invalidate by multiple page ids */
|
|
247
|
+
pages?: Pages;
|
|
248
|
+
/** Invalidate by multiple URI paths */
|
|
249
|
+
uris?: URIs;
|
|
270
250
|
/**
|
|
271
|
-
*
|
|
272
|
-
*
|
|
251
|
+
* tell us why you're invalidating the cache. You don't need to add your app name
|
|
252
|
+
* @maxLength 256
|
|
273
253
|
*/
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
|
|
254
|
+
reason?: string | null;
|
|
255
|
+
/** Is local DS */
|
|
256
|
+
localDc?: boolean;
|
|
257
|
+
hardPurge?: boolean;
|
|
277
258
|
/**
|
|
278
|
-
*
|
|
279
|
-
*
|
|
259
|
+
* Optional caller-provided ID for tracking this invalidation through the system.
|
|
260
|
+
* When set, the corresponding CDN purge completion event will include this ID,
|
|
261
|
+
* allowing you to confirm when the invalidation has fully propagated.
|
|
262
|
+
* Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.
|
|
263
|
+
* @maxLength 256
|
|
280
264
|
*/
|
|
281
|
-
|
|
265
|
+
correlationId?: string | null;
|
|
282
266
|
}
|
|
283
267
|
/** @oneof */
|
|
284
|
-
interface
|
|
285
|
-
createdEvent?: EntityCreatedEvent;
|
|
286
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
287
|
-
deletedEvent?: EntityDeletedEvent;
|
|
288
|
-
actionEvent?: ActionEvent;
|
|
289
|
-
}
|
|
290
|
-
interface EntityCreatedEvent {
|
|
291
|
-
entityAsJson?: string;
|
|
268
|
+
interface InvalidateCacheGetByOneOf {
|
|
292
269
|
/**
|
|
293
|
-
*
|
|
294
|
-
* @
|
|
270
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
271
|
+
* @format GUID
|
|
295
272
|
*/
|
|
296
|
-
|
|
297
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
298
|
-
restoreInfo?: RestoreInfo;
|
|
273
|
+
metaSiteId?: string;
|
|
299
274
|
/**
|
|
300
|
-
*
|
|
301
|
-
* @
|
|
275
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
276
|
+
* @format GUID
|
|
302
277
|
*/
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
278
|
+
siteId?: string;
|
|
279
|
+
/** Invalidate by App */
|
|
280
|
+
app?: App;
|
|
281
|
+
/** Invalidate by page id */
|
|
282
|
+
page?: Page;
|
|
283
|
+
/** Invalidate by URI path */
|
|
284
|
+
uri?: URI;
|
|
285
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
286
|
+
file?: File;
|
|
287
|
+
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
288
|
+
customTag?: CustomTag;
|
|
289
|
+
/** Invalidate by multiple page ids */
|
|
290
|
+
pages?: Pages;
|
|
291
|
+
/** Invalidate by multiple URI paths */
|
|
292
|
+
uris?: URIs;
|
|
307
293
|
}
|
|
308
|
-
interface
|
|
309
|
-
/**
|
|
310
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
311
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
312
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
313
|
-
*/
|
|
314
|
-
currentEntityAsJson?: string;
|
|
315
|
-
/**
|
|
316
|
-
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
317
|
-
* wont populate it / have any reference to it in the API.
|
|
318
|
-
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
319
|
-
* the developer should send only the new (current) entity.
|
|
320
|
-
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
321
|
-
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
322
|
-
* @internal
|
|
323
|
-
* @deprecated
|
|
324
|
-
*/
|
|
325
|
-
previousEntityAsJson?: string | null;
|
|
294
|
+
interface App {
|
|
326
295
|
/**
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* @internal
|
|
296
|
+
* The AppDefId
|
|
297
|
+
* @minLength 1
|
|
330
298
|
*/
|
|
331
|
-
|
|
299
|
+
appDefId?: string;
|
|
332
300
|
/**
|
|
333
|
-
*
|
|
334
|
-
* @
|
|
301
|
+
* The instance Id
|
|
302
|
+
* @format GUID
|
|
335
303
|
*/
|
|
336
|
-
|
|
304
|
+
instanceId?: string;
|
|
337
305
|
}
|
|
338
|
-
interface
|
|
306
|
+
interface Page {
|
|
339
307
|
/**
|
|
340
|
-
*
|
|
341
|
-
* @
|
|
308
|
+
* the msid the page is on
|
|
309
|
+
* @format GUID
|
|
342
310
|
*/
|
|
343
|
-
|
|
344
|
-
/** Entity that was deleted. */
|
|
345
|
-
deletedEntityAsJson?: string | null;
|
|
311
|
+
metaSiteId?: string;
|
|
346
312
|
/**
|
|
347
|
-
*
|
|
348
|
-
* @
|
|
313
|
+
* Invalidate by Page ID
|
|
314
|
+
* @minLength 1
|
|
349
315
|
*/
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
interface ActionEvent {
|
|
353
|
-
bodyAsJson?: string;
|
|
316
|
+
pageId?: string;
|
|
354
317
|
}
|
|
355
|
-
interface
|
|
318
|
+
interface URI {
|
|
356
319
|
/**
|
|
357
|
-
*
|
|
320
|
+
* the msid the URI is on
|
|
358
321
|
* @format GUID
|
|
359
322
|
*/
|
|
360
|
-
|
|
323
|
+
metaSiteId?: string;
|
|
361
324
|
/**
|
|
362
|
-
*
|
|
363
|
-
* @
|
|
325
|
+
* URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
|
|
326
|
+
* @minLength 1
|
|
364
327
|
*/
|
|
365
|
-
|
|
366
|
-
/** The identification type and identity data. */
|
|
367
|
-
identity?: IdentificationData;
|
|
368
|
-
/** Stringify payload. */
|
|
369
|
-
data?: string;
|
|
370
|
-
/** Details related to the account */
|
|
371
|
-
accountInfo?: AccountInfo;
|
|
328
|
+
uriPath?: string;
|
|
372
329
|
}
|
|
373
|
-
interface
|
|
330
|
+
interface File {
|
|
374
331
|
/**
|
|
375
|
-
*
|
|
332
|
+
* the msid the file is related to
|
|
376
333
|
* @format GUID
|
|
377
334
|
*/
|
|
378
|
-
|
|
335
|
+
metaSiteId?: string;
|
|
379
336
|
/**
|
|
380
|
-
*
|
|
381
|
-
* @
|
|
337
|
+
* Invalidate by filename (for media files such as PDFs)
|
|
338
|
+
* @minLength 1
|
|
339
|
+
* @maxLength 256
|
|
382
340
|
*/
|
|
383
|
-
|
|
341
|
+
fileName?: string;
|
|
342
|
+
}
|
|
343
|
+
interface CustomTag {
|
|
384
344
|
/**
|
|
385
|
-
*
|
|
345
|
+
* the msid the tag is related to
|
|
386
346
|
* @format GUID
|
|
387
347
|
*/
|
|
388
|
-
|
|
348
|
+
metaSiteId?: string;
|
|
389
349
|
/**
|
|
390
|
-
*
|
|
391
|
-
* @
|
|
350
|
+
* Tag to invalidate by
|
|
351
|
+
* @minLength 1
|
|
352
|
+
* @maxLength 256
|
|
392
353
|
*/
|
|
393
|
-
|
|
394
|
-
/** @readonly */
|
|
395
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
354
|
+
tag?: string;
|
|
396
355
|
}
|
|
397
|
-
|
|
398
|
-
interface IdentificationDataIdOneOf {
|
|
356
|
+
interface Pages {
|
|
399
357
|
/**
|
|
400
|
-
*
|
|
358
|
+
* the msid the pages are on
|
|
401
359
|
* @format GUID
|
|
402
360
|
*/
|
|
403
|
-
|
|
361
|
+
metaSiteId?: string;
|
|
404
362
|
/**
|
|
405
|
-
*
|
|
406
|
-
* @
|
|
363
|
+
* Invalidate by multiple Page IDs in a single message
|
|
364
|
+
* @maxSize 100
|
|
365
|
+
* @minLength 1
|
|
407
366
|
*/
|
|
408
|
-
|
|
367
|
+
pageIds?: string[];
|
|
368
|
+
}
|
|
369
|
+
interface URIs {
|
|
409
370
|
/**
|
|
410
|
-
*
|
|
371
|
+
* the msid the URIs are on
|
|
411
372
|
* @format GUID
|
|
412
373
|
*/
|
|
413
|
-
|
|
374
|
+
metaSiteId?: string;
|
|
414
375
|
/**
|
|
415
|
-
*
|
|
416
|
-
* @
|
|
376
|
+
* URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes
|
|
377
|
+
* @maxSize 100
|
|
378
|
+
* @minLength 1
|
|
417
379
|
*/
|
|
418
|
-
|
|
380
|
+
uriPaths?: string[];
|
|
419
381
|
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
MEMBER = "MEMBER",
|
|
424
|
-
WIX_USER = "WIX_USER",
|
|
425
|
-
APP = "APP"
|
|
382
|
+
interface DeleteOrphanSections {
|
|
383
|
+
/** Menu id */
|
|
384
|
+
menuId?: string;
|
|
426
385
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
interface
|
|
430
|
-
/**
|
|
431
|
-
|
|
432
|
-
|
|
386
|
+
interface MenusDataCloningCompleted {
|
|
387
|
+
}
|
|
388
|
+
interface CreateMenuRequest {
|
|
389
|
+
/** Menu details. */
|
|
390
|
+
menu: Menu;
|
|
391
|
+
}
|
|
392
|
+
interface CreateMenuResponse {
|
|
393
|
+
/** Menu. */
|
|
394
|
+
menu?: Menu;
|
|
395
|
+
}
|
|
396
|
+
interface BulkCreateMenusRequest {
|
|
397
|
+
/**
|
|
398
|
+
* Menu details.
|
|
399
|
+
* @maxSize 100
|
|
433
400
|
*/
|
|
434
|
-
|
|
401
|
+
menus: Menu[];
|
|
402
|
+
/** Whether to receive the created menus in the response. */
|
|
403
|
+
returnEntity?: boolean;
|
|
404
|
+
}
|
|
405
|
+
interface BulkCreateMenusResponse {
|
|
406
|
+
/** Information about the created menus. */
|
|
407
|
+
results?: BulkCreateMenuResult[];
|
|
408
|
+
/** Metadata for the API call. */
|
|
409
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
410
|
+
}
|
|
411
|
+
interface BulkCreateMenuResult {
|
|
412
|
+
/** Whether to receive the created menus in the response. */
|
|
413
|
+
menuMetadata?: ItemMetadata;
|
|
414
|
+
/** Created menu. */
|
|
415
|
+
menu?: Menu;
|
|
416
|
+
}
|
|
417
|
+
interface ItemMetadata {
|
|
418
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
419
|
+
id?: string | null;
|
|
420
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
421
|
+
originalIndex?: number;
|
|
422
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
423
|
+
success?: boolean;
|
|
424
|
+
/** Details about the error in case of failure. */
|
|
425
|
+
error?: ApplicationError;
|
|
426
|
+
}
|
|
427
|
+
interface ApplicationError {
|
|
428
|
+
/** Error code. */
|
|
429
|
+
code?: string;
|
|
430
|
+
/** Description of the error. */
|
|
431
|
+
description?: string;
|
|
432
|
+
/** Data related to the error. */
|
|
433
|
+
data?: Record<string, any> | null;
|
|
434
|
+
}
|
|
435
|
+
interface BulkActionMetadata {
|
|
436
|
+
/** Number of items that were successfully processed. */
|
|
437
|
+
totalSuccesses?: number;
|
|
438
|
+
/** Number of items that couldn't be processed. */
|
|
439
|
+
totalFailures?: number;
|
|
440
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
441
|
+
undetailedFailures?: number;
|
|
442
|
+
}
|
|
443
|
+
interface GetMenuRequest {
|
|
435
444
|
/**
|
|
436
|
-
* ID
|
|
445
|
+
* Menu ID.
|
|
437
446
|
* @format GUID
|
|
438
447
|
*/
|
|
439
|
-
|
|
448
|
+
menuId: string;
|
|
449
|
+
}
|
|
450
|
+
interface GetMenuResponse {
|
|
451
|
+
/** Menu. */
|
|
452
|
+
menu?: Menu;
|
|
453
|
+
}
|
|
454
|
+
interface ListMenusRequest {
|
|
440
455
|
/**
|
|
441
|
-
*
|
|
456
|
+
* Menu IDs.
|
|
442
457
|
* @format GUID
|
|
458
|
+
* @maxSize 500
|
|
443
459
|
*/
|
|
444
|
-
|
|
460
|
+
menuIds?: string[];
|
|
461
|
+
/** The metadata of the paginated results. */
|
|
462
|
+
paging?: CursorPaging;
|
|
463
|
+
/** Whether to return only menus that are visible to site visitors. */
|
|
464
|
+
onlyVisible?: boolean | null;
|
|
445
465
|
}
|
|
446
|
-
interface
|
|
466
|
+
interface CursorPaging {
|
|
447
467
|
/**
|
|
448
|
-
*
|
|
449
|
-
* @
|
|
450
|
-
* @readonly
|
|
468
|
+
* Number of items to load.
|
|
469
|
+
* @max 500
|
|
451
470
|
*/
|
|
452
|
-
|
|
471
|
+
limit?: number | null;
|
|
472
|
+
/**
|
|
473
|
+
* Pointer to the next or previous page in the list of results.
|
|
474
|
+
*
|
|
475
|
+
* You can get the relevant cursor token
|
|
476
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
477
|
+
* Not relevant for the first request.
|
|
478
|
+
*/
|
|
479
|
+
cursor?: string | null;
|
|
453
480
|
}
|
|
454
|
-
interface
|
|
455
|
-
/** Retrieved
|
|
456
|
-
|
|
481
|
+
interface ListMenusResponse {
|
|
482
|
+
/** Retrieved menus. */
|
|
483
|
+
menus?: Menu[];
|
|
484
|
+
/** The metadata of the paginated results. */
|
|
485
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
457
486
|
}
|
|
458
|
-
interface
|
|
487
|
+
interface CursorPagingMetadata {
|
|
488
|
+
/** Number of items returned in the response. */
|
|
489
|
+
count?: number | null;
|
|
490
|
+
/** Offset that was requested. */
|
|
491
|
+
cursors?: Cursors;
|
|
459
492
|
/**
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
-
*
|
|
493
|
+
* Indicates if there are more results after the current page.
|
|
494
|
+
* If `true`, another page of results can be retrieved.
|
|
495
|
+
* If `false`, this is the last page.
|
|
463
496
|
*/
|
|
464
|
-
|
|
497
|
+
hasNext?: boolean | null;
|
|
465
498
|
}
|
|
466
|
-
interface
|
|
467
|
-
/**
|
|
499
|
+
interface Cursors {
|
|
500
|
+
/** Cursor pointing to next page in the list of results. */
|
|
501
|
+
next?: string | null;
|
|
502
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
503
|
+
prev?: string | null;
|
|
504
|
+
}
|
|
505
|
+
interface QueryMenusRequest {
|
|
506
|
+
/** Query options. */
|
|
468
507
|
query?: CursorQuery;
|
|
469
508
|
}
|
|
470
509
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -530,408 +569,392 @@ interface AddressLocation {
|
|
|
530
569
|
/** Address longitude. */
|
|
531
570
|
longitude?: number | null;
|
|
532
571
|
}
|
|
533
|
-
interface
|
|
572
|
+
interface QueryMenusResponse {
|
|
573
|
+
/** Retrieved menus. */
|
|
574
|
+
menus?: Menu[];
|
|
575
|
+
/** The metadata of the paginated results. */
|
|
576
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
577
|
+
}
|
|
578
|
+
interface UpdateMenuRequest {
|
|
579
|
+
/** Menu to update. */
|
|
580
|
+
menu: Menu;
|
|
534
581
|
/**
|
|
535
|
-
*
|
|
536
|
-
* @
|
|
582
|
+
* Explicit list of fields to update.
|
|
583
|
+
* @internal
|
|
537
584
|
*/
|
|
538
|
-
|
|
585
|
+
mask?: string[];
|
|
586
|
+
}
|
|
587
|
+
interface UpdateMenuResponse {
|
|
588
|
+
/** Updated menu. */
|
|
589
|
+
menu?: Menu;
|
|
590
|
+
}
|
|
591
|
+
interface BulkUpdateMenuRequest {
|
|
539
592
|
/**
|
|
540
|
-
*
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
544
|
-
* Not relevant for the first request.
|
|
593
|
+
* Menus to update.
|
|
594
|
+
* @minSize 1
|
|
595
|
+
* @maxSize 100
|
|
545
596
|
*/
|
|
546
|
-
|
|
597
|
+
menus: MaskedMenu[];
|
|
598
|
+
/** Whether to receive the entity in the response. */
|
|
599
|
+
returnEntity?: boolean;
|
|
547
600
|
}
|
|
548
|
-
interface
|
|
549
|
-
/**
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
|
|
601
|
+
interface MaskedMenu {
|
|
602
|
+
/** Menu to updated. */
|
|
603
|
+
menu?: Menu;
|
|
604
|
+
/** Explicit list of fields to update. */
|
|
605
|
+
mask?: string[];
|
|
553
606
|
}
|
|
554
|
-
interface
|
|
555
|
-
/** Number of items returned in the response. */
|
|
556
|
-
count?: number | null;
|
|
557
|
-
/** Offset that was requested. */
|
|
558
|
-
cursors?: Cursors;
|
|
607
|
+
interface BulkUpdateMenuResponse {
|
|
559
608
|
/**
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
609
|
+
* Results of bulk menu update.
|
|
610
|
+
* @minSize 1
|
|
611
|
+
* @maxSize 100
|
|
563
612
|
*/
|
|
564
|
-
|
|
613
|
+
results?: BulkMenuResult[];
|
|
614
|
+
/** Metadata for the API call. */
|
|
615
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
565
616
|
}
|
|
566
|
-
interface
|
|
567
|
-
/**
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
|
|
617
|
+
interface BulkMenuResult {
|
|
618
|
+
/** Metadata for menu update. */
|
|
619
|
+
menuMetadata?: ItemMetadata;
|
|
620
|
+
/** Updated menu. Only returned if `returnEntity` is set to `true`. */
|
|
621
|
+
menu?: Menu;
|
|
571
622
|
}
|
|
572
|
-
interface
|
|
623
|
+
interface UpdateExtendedFieldsRequest {
|
|
624
|
+
/** ID of the entity to update. */
|
|
625
|
+
id: string;
|
|
626
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
627
|
+
namespace: string;
|
|
628
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
629
|
+
namespaceData: Record<string, any> | null;
|
|
630
|
+
}
|
|
631
|
+
interface UpdateExtendedFieldsResponse {
|
|
632
|
+
/** Namespace of the app. */
|
|
633
|
+
namespace?: string;
|
|
634
|
+
/** Updated extended fields data. */
|
|
635
|
+
namespaceData?: Record<string, any> | null;
|
|
636
|
+
}
|
|
637
|
+
interface DeleteMenuRequest {
|
|
573
638
|
/**
|
|
574
|
-
*
|
|
639
|
+
* Menu ID.
|
|
575
640
|
* @format GUID
|
|
576
641
|
*/
|
|
577
|
-
|
|
642
|
+
menuId: string;
|
|
643
|
+
}
|
|
644
|
+
interface DeleteMenuResponse {
|
|
645
|
+
}
|
|
646
|
+
interface RestoreMenusFromTrashRequest {
|
|
578
647
|
/**
|
|
579
|
-
*
|
|
648
|
+
* Menu IDs to restore from the trash bin.
|
|
580
649
|
* @format GUID
|
|
650
|
+
* @minSize 1
|
|
651
|
+
* @maxSize 100
|
|
581
652
|
*/
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
/** Invalidate by page id */
|
|
586
|
-
page?: Page;
|
|
587
|
-
/** Invalidate by URI path */
|
|
588
|
-
uri?: URI;
|
|
589
|
-
/** Invalidate by file (for media files such as PDFs) */
|
|
590
|
-
file?: File;
|
|
591
|
-
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
592
|
-
customTag?: CustomTag;
|
|
593
|
-
/** Invalidate by multiple page ids */
|
|
594
|
-
pages?: Pages;
|
|
595
|
-
/** Invalidate by multiple URI paths */
|
|
596
|
-
uris?: URIs;
|
|
653
|
+
menuIds?: string[];
|
|
654
|
+
}
|
|
655
|
+
interface RestoreMenusFromTrashResponse {
|
|
597
656
|
/**
|
|
598
|
-
*
|
|
599
|
-
* @
|
|
657
|
+
* Menu IDs that were successfully restored.
|
|
658
|
+
* @format GUID
|
|
659
|
+
* @maxSize 100
|
|
600
660
|
*/
|
|
601
|
-
|
|
602
|
-
/** Is local DS */
|
|
603
|
-
localDc?: boolean;
|
|
604
|
-
hardPurge?: boolean;
|
|
661
|
+
restoredMenuIds?: string[];
|
|
605
662
|
/**
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
*
|
|
609
|
-
* Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.
|
|
610
|
-
* @maxLength 256
|
|
663
|
+
* Menu IDs that failed to restore.
|
|
664
|
+
* @format GUID
|
|
665
|
+
* @maxSize 100
|
|
611
666
|
*/
|
|
612
|
-
|
|
667
|
+
failedMenuIds?: string[];
|
|
613
668
|
}
|
|
614
|
-
|
|
615
|
-
interface InvalidateCacheGetByOneOf {
|
|
669
|
+
interface RunMenusMultiLocationMigrationRequest {
|
|
616
670
|
/**
|
|
617
|
-
*
|
|
671
|
+
* business location id
|
|
618
672
|
* @format GUID
|
|
619
673
|
*/
|
|
620
|
-
|
|
674
|
+
businessLocationId?: string;
|
|
675
|
+
}
|
|
676
|
+
interface RunMenusMultiLocationMigrationResponse {
|
|
677
|
+
/** Whether menus multi-location migration finished successfully */
|
|
678
|
+
success?: boolean;
|
|
679
|
+
}
|
|
680
|
+
interface UpdateBusinessLocationIdRequest {
|
|
681
|
+
/** @format GUID */
|
|
682
|
+
menuId?: string;
|
|
683
|
+
/** @format GUID */
|
|
684
|
+
businessLocationId?: string | null;
|
|
685
|
+
}
|
|
686
|
+
interface UpdateBusinessLocationIdResponse {
|
|
687
|
+
}
|
|
688
|
+
interface CloneMenusRequest {
|
|
621
689
|
/**
|
|
622
|
-
*
|
|
690
|
+
* The MetaSiteId to clone from.
|
|
623
691
|
* @format GUID
|
|
624
692
|
*/
|
|
625
|
-
|
|
626
|
-
/** Invalidate by App */
|
|
627
|
-
app?: App;
|
|
628
|
-
/** Invalidate by page id */
|
|
629
|
-
page?: Page;
|
|
630
|
-
/** Invalidate by URI path */
|
|
631
|
-
uri?: URI;
|
|
632
|
-
/** Invalidate by file (for media files such as PDFs) */
|
|
633
|
-
file?: File;
|
|
634
|
-
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
635
|
-
customTag?: CustomTag;
|
|
636
|
-
/** Invalidate by multiple page ids */
|
|
637
|
-
pages?: Pages;
|
|
638
|
-
/** Invalidate by multiple URI paths */
|
|
639
|
-
uris?: URIs;
|
|
693
|
+
metaSiteId?: string;
|
|
640
694
|
}
|
|
641
|
-
interface
|
|
695
|
+
interface CloneMenusResponse {
|
|
696
|
+
}
|
|
697
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
698
|
+
createdEvent?: EntityCreatedEvent;
|
|
699
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
700
|
+
deletedEvent?: EntityDeletedEvent;
|
|
701
|
+
actionEvent?: ActionEvent;
|
|
702
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
703
|
+
id?: string;
|
|
642
704
|
/**
|
|
643
|
-
*
|
|
644
|
-
*
|
|
705
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
706
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
645
707
|
*/
|
|
646
|
-
|
|
708
|
+
entityFqdn?: string;
|
|
647
709
|
/**
|
|
648
|
-
*
|
|
649
|
-
*
|
|
710
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
711
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
650
712
|
*/
|
|
651
|
-
|
|
713
|
+
slug?: string;
|
|
714
|
+
/** ID of the entity associated with the event. */
|
|
715
|
+
entityId?: string;
|
|
716
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
717
|
+
eventTime?: Date | null;
|
|
718
|
+
/**
|
|
719
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
720
|
+
* (for example, GDPR).
|
|
721
|
+
*/
|
|
722
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
723
|
+
/** If present, indicates the action that triggered the event. */
|
|
724
|
+
originatedFrom?: string | null;
|
|
725
|
+
/**
|
|
726
|
+
* 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.
|
|
727
|
+
* 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.
|
|
728
|
+
*/
|
|
729
|
+
entityEventSequence?: string | null;
|
|
652
730
|
}
|
|
653
|
-
|
|
731
|
+
/** @oneof */
|
|
732
|
+
interface DomainEventBodyOneOf {
|
|
733
|
+
createdEvent?: EntityCreatedEvent;
|
|
734
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
735
|
+
deletedEvent?: EntityDeletedEvent;
|
|
736
|
+
actionEvent?: ActionEvent;
|
|
737
|
+
}
|
|
738
|
+
interface EntityCreatedEvent {
|
|
739
|
+
entityAsJson?: string;
|
|
654
740
|
/**
|
|
655
|
-
* the
|
|
656
|
-
* @
|
|
741
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
742
|
+
* @internal
|
|
657
743
|
*/
|
|
658
|
-
|
|
744
|
+
triggeredByUndelete?: boolean | null;
|
|
745
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
746
|
+
restoreInfo?: RestoreInfo;
|
|
659
747
|
/**
|
|
660
|
-
*
|
|
661
|
-
* @
|
|
748
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
749
|
+
* @internal
|
|
662
750
|
*/
|
|
663
|
-
|
|
751
|
+
additionalMetadataAsJson?: string | null;
|
|
664
752
|
}
|
|
665
|
-
interface
|
|
753
|
+
interface RestoreInfo {
|
|
754
|
+
deletedDate?: Date | null;
|
|
755
|
+
}
|
|
756
|
+
interface EntityUpdatedEvent {
|
|
666
757
|
/**
|
|
667
|
-
* the
|
|
668
|
-
*
|
|
758
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
759
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
760
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
669
761
|
*/
|
|
670
|
-
|
|
762
|
+
currentEntityAsJson?: string;
|
|
671
763
|
/**
|
|
672
|
-
*
|
|
673
|
-
*
|
|
764
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
765
|
+
* wont populate it / have any reference to it in the API.
|
|
766
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
767
|
+
* the developer should send only the new (current) entity.
|
|
768
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
769
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
770
|
+
* @internal
|
|
771
|
+
* @deprecated
|
|
674
772
|
*/
|
|
675
|
-
|
|
773
|
+
previousEntityAsJson?: string | null;
|
|
774
|
+
/**
|
|
775
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
776
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
777
|
+
* @internal
|
|
778
|
+
*/
|
|
779
|
+
modifiedFields?: Record<string, any>;
|
|
780
|
+
/**
|
|
781
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
782
|
+
* @internal
|
|
783
|
+
*/
|
|
784
|
+
additionalMetadataAsJson?: string | null;
|
|
676
785
|
}
|
|
677
|
-
interface
|
|
786
|
+
interface EntityDeletedEvent {
|
|
678
787
|
/**
|
|
679
|
-
*
|
|
680
|
-
* @
|
|
788
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
789
|
+
* @internal
|
|
681
790
|
*/
|
|
682
|
-
|
|
791
|
+
movedToTrash?: boolean | null;
|
|
792
|
+
/** Entity that was deleted. */
|
|
793
|
+
deletedEntityAsJson?: string | null;
|
|
683
794
|
/**
|
|
684
|
-
*
|
|
685
|
-
* @
|
|
686
|
-
* @maxLength 256
|
|
795
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
796
|
+
* @internal
|
|
687
797
|
*/
|
|
688
|
-
|
|
798
|
+
additionalMetadataAsJson?: string | null;
|
|
689
799
|
}
|
|
690
|
-
interface
|
|
800
|
+
interface ActionEvent {
|
|
801
|
+
bodyAsJson?: string;
|
|
802
|
+
}
|
|
803
|
+
interface Empty {
|
|
804
|
+
}
|
|
805
|
+
interface SyncContentToMultilingualRequest {
|
|
691
806
|
/**
|
|
692
|
-
*
|
|
807
|
+
* MetaSite ID
|
|
693
808
|
* @format GUID
|
|
694
809
|
*/
|
|
695
810
|
metaSiteId?: string;
|
|
811
|
+
}
|
|
812
|
+
interface SyncContentToMultilingualResponse {
|
|
813
|
+
}
|
|
814
|
+
interface MessageEnvelope {
|
|
696
815
|
/**
|
|
697
|
-
*
|
|
698
|
-
* @
|
|
699
|
-
* @maxLength 256
|
|
816
|
+
* App instance ID.
|
|
817
|
+
* @format GUID
|
|
700
818
|
*/
|
|
701
|
-
|
|
819
|
+
instanceId?: string | null;
|
|
820
|
+
/**
|
|
821
|
+
* Event type.
|
|
822
|
+
* @maxLength 150
|
|
823
|
+
*/
|
|
824
|
+
eventType?: string;
|
|
825
|
+
/** The identification type and identity data. */
|
|
826
|
+
identity?: IdentificationData;
|
|
827
|
+
/** Stringify payload. */
|
|
828
|
+
data?: string;
|
|
829
|
+
/** Details related to the account */
|
|
830
|
+
accountInfo?: AccountInfo;
|
|
702
831
|
}
|
|
703
|
-
interface
|
|
832
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
704
833
|
/**
|
|
705
|
-
*
|
|
834
|
+
* ID of a site visitor that has not logged in to the site.
|
|
706
835
|
* @format GUID
|
|
707
836
|
*/
|
|
708
|
-
|
|
837
|
+
anonymousVisitorId?: string;
|
|
709
838
|
/**
|
|
710
|
-
*
|
|
711
|
-
* @
|
|
712
|
-
* @minLength 1
|
|
839
|
+
* ID of a site visitor that has logged in to the site.
|
|
840
|
+
* @format GUID
|
|
713
841
|
*/
|
|
714
|
-
|
|
842
|
+
memberId?: string;
|
|
843
|
+
/**
|
|
844
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
845
|
+
* @format GUID
|
|
846
|
+
*/
|
|
847
|
+
wixUserId?: string;
|
|
848
|
+
/**
|
|
849
|
+
* ID of an app.
|
|
850
|
+
* @format GUID
|
|
851
|
+
*/
|
|
852
|
+
appId?: string;
|
|
853
|
+
/** @readonly */
|
|
854
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
715
855
|
}
|
|
716
|
-
|
|
856
|
+
/** @oneof */
|
|
857
|
+
interface IdentificationDataIdOneOf {
|
|
717
858
|
/**
|
|
718
|
-
*
|
|
859
|
+
* ID of a site visitor that has not logged in to the site.
|
|
719
860
|
* @format GUID
|
|
720
861
|
*/
|
|
721
|
-
|
|
862
|
+
anonymousVisitorId?: string;
|
|
722
863
|
/**
|
|
723
|
-
*
|
|
724
|
-
* @
|
|
725
|
-
* @minLength 1
|
|
864
|
+
* ID of a site visitor that has logged in to the site.
|
|
865
|
+
* @format GUID
|
|
726
866
|
*/
|
|
727
|
-
|
|
728
|
-
}
|
|
729
|
-
interface DeleteOrphanSections {
|
|
730
|
-
/** Menu id */
|
|
731
|
-
menuId?: string;
|
|
732
|
-
}
|
|
733
|
-
interface MenusDataCloningCompleted {
|
|
734
|
-
}
|
|
735
|
-
interface CreateMenuRequest {
|
|
736
|
-
/** Menu details. */
|
|
737
|
-
menu: Menu;
|
|
738
|
-
}
|
|
739
|
-
interface CreateMenuResponse {
|
|
740
|
-
/** Menu. */
|
|
741
|
-
menu?: Menu;
|
|
742
|
-
}
|
|
743
|
-
interface BulkCreateMenusRequest {
|
|
867
|
+
memberId?: string;
|
|
744
868
|
/**
|
|
745
|
-
*
|
|
746
|
-
* @
|
|
869
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
870
|
+
* @format GUID
|
|
747
871
|
*/
|
|
748
|
-
|
|
749
|
-
/** Whether to receive the created menus in the response. */
|
|
750
|
-
returnEntity?: boolean;
|
|
751
|
-
}
|
|
752
|
-
interface BulkCreateMenusResponse {
|
|
753
|
-
/** Information about the created menus. */
|
|
754
|
-
results?: BulkCreateMenuResult[];
|
|
755
|
-
/** Metadata for the API call. */
|
|
756
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
757
|
-
}
|
|
758
|
-
interface BulkCreateMenuResult {
|
|
759
|
-
/** Whether to receive the created menus in the response. */
|
|
760
|
-
menuMetadata?: ItemMetadata;
|
|
761
|
-
/** Created menu. */
|
|
762
|
-
menu?: Menu;
|
|
763
|
-
}
|
|
764
|
-
interface ItemMetadata {
|
|
765
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
766
|
-
id?: string | null;
|
|
767
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
768
|
-
originalIndex?: number;
|
|
769
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
770
|
-
success?: boolean;
|
|
771
|
-
/** Details about the error in case of failure. */
|
|
772
|
-
error?: ApplicationError;
|
|
773
|
-
}
|
|
774
|
-
interface ApplicationError {
|
|
775
|
-
/** Error code. */
|
|
776
|
-
code?: string;
|
|
777
|
-
/** Description of the error. */
|
|
778
|
-
description?: string;
|
|
779
|
-
/** Data related to the error. */
|
|
780
|
-
data?: Record<string, any> | null;
|
|
781
|
-
}
|
|
782
|
-
interface BulkActionMetadata {
|
|
783
|
-
/** Number of items that were successfully processed. */
|
|
784
|
-
totalSuccesses?: number;
|
|
785
|
-
/** Number of items that couldn't be processed. */
|
|
786
|
-
totalFailures?: number;
|
|
787
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
788
|
-
undetailedFailures?: number;
|
|
789
|
-
}
|
|
790
|
-
interface GetMenuRequest {
|
|
872
|
+
wixUserId?: string;
|
|
791
873
|
/**
|
|
792
|
-
*
|
|
874
|
+
* ID of an app.
|
|
793
875
|
* @format GUID
|
|
794
876
|
*/
|
|
795
|
-
|
|
877
|
+
appId?: string;
|
|
796
878
|
}
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
879
|
+
declare enum WebhookIdentityType {
|
|
880
|
+
UNKNOWN = "UNKNOWN",
|
|
881
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
882
|
+
MEMBER = "MEMBER",
|
|
883
|
+
WIX_USER = "WIX_USER",
|
|
884
|
+
APP = "APP"
|
|
800
885
|
}
|
|
801
|
-
|
|
886
|
+
/** @enumType */
|
|
887
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
888
|
+
interface AccountInfo {
|
|
802
889
|
/**
|
|
803
|
-
*
|
|
890
|
+
* ID of the Wix account associated with the event.
|
|
804
891
|
* @format GUID
|
|
805
|
-
* @maxSize 500
|
|
806
892
|
*/
|
|
807
|
-
|
|
808
|
-
/** The metadata of the paginated results. */
|
|
809
|
-
paging?: CursorPaging;
|
|
810
|
-
/** Whether to return only menus that are visible to site visitors. */
|
|
811
|
-
onlyVisible?: boolean | null;
|
|
812
|
-
}
|
|
813
|
-
interface ListMenusResponse {
|
|
814
|
-
/** Retrieved menus. */
|
|
815
|
-
menus?: Menu[];
|
|
816
|
-
/** The metadata of the paginated results. */
|
|
817
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
818
|
-
}
|
|
819
|
-
interface QueryMenusRequest {
|
|
820
|
-
/** Query options. */
|
|
821
|
-
query?: CursorQuery;
|
|
822
|
-
}
|
|
823
|
-
interface QueryMenusResponse {
|
|
824
|
-
/** Retrieved menus. */
|
|
825
|
-
menus?: Menu[];
|
|
826
|
-
/** The metadata of the paginated results. */
|
|
827
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
828
|
-
}
|
|
829
|
-
interface UpdateMenuRequest {
|
|
830
|
-
/** Menu to update. */
|
|
831
|
-
menu: Menu;
|
|
893
|
+
accountId?: string | null;
|
|
832
894
|
/**
|
|
833
|
-
*
|
|
834
|
-
* @
|
|
895
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
896
|
+
* @format GUID
|
|
835
897
|
*/
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
interface UpdateMenuResponse {
|
|
839
|
-
/** Updated menu. */
|
|
840
|
-
menu?: Menu;
|
|
841
|
-
}
|
|
842
|
-
interface BulkUpdateMenuRequest {
|
|
898
|
+
parentAccountId?: string | null;
|
|
843
899
|
/**
|
|
844
|
-
*
|
|
845
|
-
* @
|
|
846
|
-
* @maxSize 100
|
|
900
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
901
|
+
* @format GUID
|
|
847
902
|
*/
|
|
848
|
-
|
|
849
|
-
/** Whether to receive the entity in the response. */
|
|
850
|
-
returnEntity?: boolean;
|
|
851
|
-
}
|
|
852
|
-
interface MaskedMenu {
|
|
853
|
-
/** Menu to updated. */
|
|
854
|
-
menu?: Menu;
|
|
855
|
-
/** Explicit list of fields to update. */
|
|
856
|
-
mask?: string[];
|
|
903
|
+
siteId?: string | null;
|
|
857
904
|
}
|
|
858
|
-
interface
|
|
905
|
+
interface DuplicateMenuRequest {
|
|
859
906
|
/**
|
|
860
|
-
*
|
|
861
|
-
* @
|
|
862
|
-
* @maxSize 100
|
|
907
|
+
* Menu id to be duplicated.
|
|
908
|
+
* @format GUID
|
|
863
909
|
*/
|
|
864
|
-
results?: BulkMenuResult[];
|
|
865
|
-
/** Metadata for the API call. */
|
|
866
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
867
|
-
}
|
|
868
|
-
interface BulkMenuResult {
|
|
869
|
-
/** Metadata for menu update. */
|
|
870
|
-
menuMetadata?: ItemMetadata;
|
|
871
|
-
/** Updated menu. Only returned if `returnEntity` is set to `true`. */
|
|
872
|
-
menu?: Menu;
|
|
873
|
-
}
|
|
874
|
-
interface UpdateExtendedFieldsRequest {
|
|
875
|
-
/** ID of the entity to update. */
|
|
876
910
|
id: string;
|
|
877
|
-
/** Identifier for the app whose extended fields are being updated. */
|
|
878
|
-
namespace: string;
|
|
879
|
-
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
880
|
-
namespaceData: Record<string, any> | null;
|
|
881
|
-
}
|
|
882
|
-
interface UpdateExtendedFieldsResponse {
|
|
883
|
-
/** Namespace of the app. */
|
|
884
|
-
namespace?: string;
|
|
885
|
-
/** Updated extended fields data. */
|
|
886
|
-
namespaceData?: Record<string, any> | null;
|
|
887
|
-
}
|
|
888
|
-
interface DeleteMenuRequest {
|
|
889
911
|
/**
|
|
890
|
-
*
|
|
912
|
+
* Business location ids to duplicate the menu to.
|
|
891
913
|
* @format GUID
|
|
914
|
+
* @maxSize 100
|
|
892
915
|
*/
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}
|
|
897
|
-
interface RunMenusMultiLocationMigrationRequest {
|
|
916
|
+
businessLocationIds?: string[] | null;
|
|
917
|
+
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
918
|
+
duplicateSubEntities?: boolean | null;
|
|
898
919
|
/**
|
|
899
|
-
*
|
|
900
|
-
* @
|
|
920
|
+
* The new name of the duplicated menu.
|
|
921
|
+
* @maxLength 500
|
|
901
922
|
*/
|
|
902
|
-
|
|
903
|
-
}
|
|
904
|
-
interface RunMenusMultiLocationMigrationResponse {
|
|
905
|
-
/** Whether menus multi-location migration finished successfully */
|
|
906
|
-
success?: boolean;
|
|
923
|
+
menuName?: string | null;
|
|
907
924
|
}
|
|
908
|
-
interface
|
|
909
|
-
/** @format GUID */
|
|
910
|
-
menuId?: string;
|
|
925
|
+
interface DuplicateMenuResponse {
|
|
911
926
|
/** @format GUID */
|
|
912
|
-
|
|
913
|
-
}
|
|
914
|
-
interface UpdateBusinessLocationIdResponse {
|
|
927
|
+
menuIds?: string[];
|
|
915
928
|
}
|
|
916
|
-
interface
|
|
929
|
+
interface GetMenuSiteUrlRequest {
|
|
917
930
|
/**
|
|
918
|
-
*
|
|
931
|
+
* Menu ID.
|
|
919
932
|
* @format GUID
|
|
933
|
+
* @readonly
|
|
920
934
|
*/
|
|
921
|
-
|
|
922
|
-
}
|
|
923
|
-
interface CloneMenusResponse {
|
|
935
|
+
id: string | null;
|
|
924
936
|
}
|
|
925
|
-
interface
|
|
937
|
+
interface GetMenuSiteUrlResponse {
|
|
938
|
+
/** Retrieved menuInfo with path url. */
|
|
939
|
+
menuSiteUrl?: MenuSiteUrl;
|
|
926
940
|
}
|
|
927
|
-
interface
|
|
941
|
+
interface MenuSiteUrl {
|
|
928
942
|
/**
|
|
929
|
-
*
|
|
930
|
-
* @
|
|
943
|
+
* Path URL.
|
|
944
|
+
* @minLength 1
|
|
945
|
+
* @maxLength 1000
|
|
931
946
|
*/
|
|
932
|
-
|
|
947
|
+
path?: string;
|
|
933
948
|
}
|
|
934
|
-
interface
|
|
949
|
+
interface QueryMenusSiteUrlRequest {
|
|
950
|
+
/** Query options */
|
|
951
|
+
query?: CursorQuery;
|
|
952
|
+
}
|
|
953
|
+
interface QueryMenusSiteUrlResponse {
|
|
954
|
+
/** Retrieved menuInfos with path urls. */
|
|
955
|
+
menuSiteUrls?: MenuSiteUrl[];
|
|
956
|
+
/** The metadata of the paginated results. */
|
|
957
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
935
958
|
}
|
|
936
959
|
|
|
937
960
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
@@ -944,13 +967,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
944
967
|
__responseType: Q;
|
|
945
968
|
__originalResponseType: R;
|
|
946
969
|
};
|
|
947
|
-
declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
|
|
948
|
-
id: string;
|
|
949
|
-
}, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
|
|
950
|
-
declare function getMenuSiteUrl(): __PublicMethodMetaInfo<'GET', {
|
|
951
|
-
id: string;
|
|
952
|
-
}, GetMenuSiteUrlRequest$1, GetMenuSiteUrlRequest, GetMenuSiteUrlResponse$1, GetMenuSiteUrlResponse>;
|
|
953
|
-
declare function queryMenusSiteUrl(): __PublicMethodMetaInfo<'POST', {}, QueryMenusSiteUrlRequest$1, QueryMenusSiteUrlRequest, QueryMenusSiteUrlResponse$1, QueryMenusSiteUrlResponse>;
|
|
954
970
|
declare function createMenu(): __PublicMethodMetaInfo<'POST', {}, CreateMenuRequest$1, CreateMenuRequest, CreateMenuResponse$1, CreateMenuResponse>;
|
|
955
971
|
declare function bulkCreateMenus(): __PublicMethodMetaInfo<'POST', {}, BulkCreateMenusRequest$1, BulkCreateMenusRequest, BulkCreateMenusResponse$1, BulkCreateMenusResponse>;
|
|
956
972
|
declare function getMenu(): __PublicMethodMetaInfo<'GET', {
|
|
@@ -968,5 +984,12 @@ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
|
968
984
|
declare function deleteMenu(): __PublicMethodMetaInfo<'DELETE', {
|
|
969
985
|
menuId: string;
|
|
970
986
|
}, DeleteMenuRequest$1, DeleteMenuRequest, DeleteMenuResponse$1, DeleteMenuResponse>;
|
|
987
|
+
declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
|
|
988
|
+
id: string;
|
|
989
|
+
}, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
|
|
990
|
+
declare function getMenuSiteUrl(): __PublicMethodMetaInfo<'GET', {
|
|
991
|
+
id: string;
|
|
992
|
+
}, GetMenuSiteUrlRequest$1, GetMenuSiteUrlRequest, GetMenuSiteUrlResponse$1, GetMenuSiteUrlResponse>;
|
|
993
|
+
declare function queryMenusSiteUrl(): __PublicMethodMetaInfo<'POST', {}, QueryMenusSiteUrlRequest$1, QueryMenusSiteUrlRequest, QueryMenusSiteUrlResponse$1, QueryMenusSiteUrlResponse>;
|
|
971
994
|
|
|
972
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateMenuResult as BulkCreateMenuResultOriginal, type BulkCreateMenusRequest as BulkCreateMenusRequestOriginal, type BulkCreateMenusResponse as BulkCreateMenusResponseOriginal, type BulkMenuResult as BulkMenuResultOriginal, type BulkUpdateMenuRequest as BulkUpdateMenuRequestOriginal, type BulkUpdateMenuResponse as BulkUpdateMenuResponseOriginal, type BusinessLocationDetails as BusinessLocationDetailsOriginal, type CloneMenusRequest as CloneMenusRequestOriginal, type CloneMenusResponse as CloneMenusResponseOriginal, type CreateMenuRequest as CreateMenuRequestOriginal, type CreateMenuResponse as CreateMenuResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteMenuRequest as DeleteMenuRequestOriginal, type DeleteMenuResponse as DeleteMenuResponseOriginal, type DeleteOrphanSections as DeleteOrphanSectionsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateMenuRequest as DuplicateMenuRequestOriginal, type DuplicateMenuResponse as DuplicateMenuResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReferenceInfo as ExternalReferenceInfoOriginal, type File as FileOriginal, type GetMenuRequest as GetMenuRequestOriginal, type GetMenuResponse as GetMenuResponseOriginal, type GetMenuSiteUrlRequest as GetMenuSiteUrlRequestOriginal, type GetMenuSiteUrlResponse as GetMenuSiteUrlResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadata as ItemMetadataOriginal, type Keyword as KeywordOriginal, type ListMenusRequest as ListMenusRequestOriginal, type ListMenusResponse as ListMenusResponseOriginal, type MaskedMenu as MaskedMenuOriginal, type Menu as MenuOriginal, type MenuSiteUrl as MenuSiteUrlOriginal, type MenusDataCloningCompleted as MenusDataCloningCompletedOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type QueryMenusRequest as QueryMenusRequestOriginal, type QueryMenusResponse as QueryMenusResponseOriginal, type QueryMenusSiteUrlRequest as QueryMenusSiteUrlRequestOriginal, type QueryMenusSiteUrlResponse as QueryMenusSiteUrlResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RunMenusMultiLocationMigrationRequest as RunMenusMultiLocationMigrationRequestOriginal, type RunMenusMultiLocationMigrationResponse as RunMenusMultiLocationMigrationResponseOriginal, type SeoSchema as SeoSchemaOriginal, type Settings as SettingsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncContentToMultilingualRequest as SyncContentToMultilingualRequestOriginal, type SyncContentToMultilingualResponse as SyncContentToMultilingualResponseOriginal, type Tag as TagOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UpdateBusinessLocationIdRequest as UpdateBusinessLocationIdRequestOriginal, type UpdateBusinessLocationIdResponse as UpdateBusinessLocationIdResponseOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateMenuRequest as UpdateMenuRequestOriginal, type UpdateMenuResponse as UpdateMenuResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, queryMenus, queryMenusSiteUrl, updateExtendedFields, updateMenu };
|
|
995
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateMenuResult as BulkCreateMenuResultOriginal, type BulkCreateMenusRequest as BulkCreateMenusRequestOriginal, type BulkCreateMenusResponse as BulkCreateMenusResponseOriginal, type BulkMenuResult as BulkMenuResultOriginal, type BulkUpdateMenuRequest as BulkUpdateMenuRequestOriginal, type BulkUpdateMenuResponse as BulkUpdateMenuResponseOriginal, type BusinessLocationDetails as BusinessLocationDetailsOriginal, type CloneMenusRequest as CloneMenusRequestOriginal, type CloneMenusResponse as CloneMenusResponseOriginal, type CreateMenuRequest as CreateMenuRequestOriginal, type CreateMenuResponse as CreateMenuResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteMenuRequest as DeleteMenuRequestOriginal, type DeleteMenuResponse as DeleteMenuResponseOriginal, type DeleteOrphanSections as DeleteOrphanSectionsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateMenuRequest as DuplicateMenuRequestOriginal, type DuplicateMenuResponse as DuplicateMenuResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReferenceInfo as ExternalReferenceInfoOriginal, type File as FileOriginal, type GetMenuRequest as GetMenuRequestOriginal, type GetMenuResponse as GetMenuResponseOriginal, type GetMenuSiteUrlRequest as GetMenuSiteUrlRequestOriginal, type GetMenuSiteUrlResponse as GetMenuSiteUrlResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadata as ItemMetadataOriginal, type Keyword as KeywordOriginal, type ListMenusRequest as ListMenusRequestOriginal, type ListMenusResponse as ListMenusResponseOriginal, type MaskedMenu as MaskedMenuOriginal, type Menu as MenuOriginal, type MenuSiteUrl as MenuSiteUrlOriginal, type MenusDataCloningCompleted as MenusDataCloningCompletedOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type QueryMenusRequest as QueryMenusRequestOriginal, type QueryMenusResponse as QueryMenusResponseOriginal, type QueryMenusSiteUrlRequest as QueryMenusSiteUrlRequestOriginal, type QueryMenusSiteUrlResponse as QueryMenusSiteUrlResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreMenusFromTrashRequest as RestoreMenusFromTrashRequestOriginal, type RestoreMenusFromTrashResponse as RestoreMenusFromTrashResponseOriginal, type RunMenusMultiLocationMigrationRequest as RunMenusMultiLocationMigrationRequestOriginal, type RunMenusMultiLocationMigrationResponse as RunMenusMultiLocationMigrationResponseOriginal, type SeoSchema as SeoSchemaOriginal, type Settings as SettingsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncContentToMultilingualRequest as SyncContentToMultilingualRequestOriginal, type SyncContentToMultilingualResponse as SyncContentToMultilingualResponseOriginal, type Tag as TagOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UpdateBusinessLocationIdRequest as UpdateBusinessLocationIdRequestOriginal, type UpdateBusinessLocationIdResponse as UpdateBusinessLocationIdResponseOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateMenuRequest as UpdateMenuRequestOriginal, type UpdateMenuResponse as UpdateMenuResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, queryMenus, queryMenusSiteUrl, updateExtendedFields, updateMenu };
|