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