@wix/auto_sdk_restaurants_menus 1.0.94 → 1.0.95

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.
@@ -1,4 +1,4 @@
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';
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.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface Menu {
@@ -266,297 +266,6 @@ interface ExternalReferenceInfo {
266
266
  /** Whether the connection to the external system is currently active. */
267
267
  connected?: boolean | null;
268
268
  }
269
- interface DuplicateMenuRequest {
270
- /**
271
- * Menu id to be duplicated.
272
- * @format GUID
273
- */
274
- id: string;
275
- /**
276
- * Business location ids to duplicate the menu to.
277
- * @format GUID
278
- * @maxSize 100
279
- */
280
- businessLocationIds?: string[] | null;
281
- /** Indicates whether sub-entities (such as items) should be duplicated as well. */
282
- duplicateSubEntities?: boolean | null;
283
- /**
284
- * The new name of the duplicated menu.
285
- * @maxLength 500
286
- */
287
- menuName?: string | null;
288
- }
289
- interface DuplicateMenuResponse {
290
- /** @format GUID */
291
- menuIds?: string[];
292
- }
293
- interface DomainEvent extends DomainEventBodyOneOf {
294
- createdEvent?: EntityCreatedEvent;
295
- updatedEvent?: EntityUpdatedEvent;
296
- deletedEvent?: EntityDeletedEvent;
297
- actionEvent?: ActionEvent;
298
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
299
- id?: string;
300
- /**
301
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
302
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
303
- */
304
- entityFqdn?: string;
305
- /**
306
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
307
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
308
- */
309
- slug?: string;
310
- /** ID of the entity associated with the event. */
311
- entityId?: string;
312
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
313
- eventTime?: Date | null;
314
- /**
315
- * Whether the event was triggered as a result of a privacy regulation application
316
- * (for example, GDPR).
317
- */
318
- triggeredByAnonymizeRequest?: boolean | null;
319
- /** If present, indicates the action that triggered the event. */
320
- originatedFrom?: string | null;
321
- /**
322
- * 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.
323
- * 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.
324
- */
325
- entityEventSequence?: string | null;
326
- }
327
- /** @oneof */
328
- interface DomainEventBodyOneOf {
329
- createdEvent?: EntityCreatedEvent;
330
- updatedEvent?: EntityUpdatedEvent;
331
- deletedEvent?: EntityDeletedEvent;
332
- actionEvent?: ActionEvent;
333
- }
334
- interface EntityCreatedEvent {
335
- entityAsJson?: string;
336
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
337
- restoreInfo?: RestoreInfo;
338
- }
339
- interface RestoreInfo {
340
- deletedDate?: Date | null;
341
- }
342
- interface EntityUpdatedEvent {
343
- /**
344
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
345
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
346
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
347
- */
348
- currentEntityAsJson?: string;
349
- }
350
- interface EntityDeletedEvent {
351
- /** Entity that was deleted. */
352
- deletedEntityAsJson?: string | null;
353
- }
354
- interface ActionEvent {
355
- bodyAsJson?: string;
356
- }
357
- interface MessageEnvelope {
358
- /**
359
- * App instance ID.
360
- * @format GUID
361
- */
362
- instanceId?: string | null;
363
- /**
364
- * Event type.
365
- * @maxLength 150
366
- */
367
- eventType?: string;
368
- /** The identification type and identity data. */
369
- identity?: IdentificationData;
370
- /** Stringify payload. */
371
- data?: string;
372
- /** Details related to the account */
373
- accountInfo?: AccountInfo;
374
- }
375
- interface IdentificationData extends IdentificationDataIdOneOf {
376
- /**
377
- * ID of a site visitor that has not logged in to the site.
378
- * @format GUID
379
- */
380
- anonymousVisitorId?: string;
381
- /**
382
- * ID of a site visitor that has logged in to the site.
383
- * @format GUID
384
- */
385
- memberId?: string;
386
- /**
387
- * ID of a Wix user (site owner, contributor, etc.).
388
- * @format GUID
389
- */
390
- wixUserId?: string;
391
- /**
392
- * ID of an app.
393
- * @format GUID
394
- */
395
- appId?: string;
396
- /** @readonly */
397
- identityType?: WebhookIdentityTypeWithLiterals;
398
- }
399
- /** @oneof */
400
- interface IdentificationDataIdOneOf {
401
- /**
402
- * ID of a site visitor that has not logged in to the site.
403
- * @format GUID
404
- */
405
- anonymousVisitorId?: string;
406
- /**
407
- * ID of a site visitor that has logged in to the site.
408
- * @format GUID
409
- */
410
- memberId?: string;
411
- /**
412
- * ID of a Wix user (site owner, contributor, etc.).
413
- * @format GUID
414
- */
415
- wixUserId?: string;
416
- /**
417
- * ID of an app.
418
- * @format GUID
419
- */
420
- appId?: string;
421
- }
422
- declare enum WebhookIdentityType {
423
- UNKNOWN = "UNKNOWN",
424
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
425
- MEMBER = "MEMBER",
426
- WIX_USER = "WIX_USER",
427
- APP = "APP"
428
- }
429
- /** @enumType */
430
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
431
- interface AccountInfo {
432
- /**
433
- * ID of the Wix account associated with the event.
434
- * @format GUID
435
- */
436
- accountId?: string | null;
437
- /**
438
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
439
- * @format GUID
440
- */
441
- parentAccountId?: string | null;
442
- /**
443
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
444
- * @format GUID
445
- */
446
- siteId?: string | null;
447
- }
448
- interface GetMenuSiteUrlRequest {
449
- /**
450
- * Menu ID.
451
- * @format GUID
452
- * @readonly
453
- */
454
- id: string | null;
455
- }
456
- interface GetMenuSiteUrlResponse {
457
- /** Retrieved menuInfo with path url. */
458
- menuSiteUrl?: MenuSiteUrl;
459
- }
460
- interface MenuSiteUrl {
461
- /**
462
- * Path URL.
463
- * @minLength 1
464
- * @maxLength 1000
465
- */
466
- path?: string;
467
- }
468
- interface QueryMenusSiteUrlRequest {
469
- /** Query options */
470
- query?: CursorQuery;
471
- }
472
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
473
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
474
- cursorPaging?: CursorPaging;
475
- /**
476
- * Filter object in the following format:
477
- * `"filter" : {
478
- * "fieldName1": "value1",
479
- * "fieldName2":{"$operator":"value2"}
480
- * }`
481
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
482
- */
483
- filter?: Record<string, any> | null;
484
- /**
485
- * Sort object in the following format:
486
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
487
- */
488
- sort?: Sorting[];
489
- }
490
- /** @oneof */
491
- interface CursorQueryPagingMethodOneOf {
492
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
493
- cursorPaging?: CursorPaging;
494
- }
495
- interface Sorting {
496
- /**
497
- * Name of the field to sort by.
498
- * @maxLength 512
499
- */
500
- fieldName?: string;
501
- /** Sort order. */
502
- order?: SortOrderWithLiterals;
503
- /**
504
- * Origin point for geo-distance sorting on a GEO field
505
- * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
506
- */
507
- origin?: AddressLocation;
508
- }
509
- declare enum SortOrder {
510
- ASC = "ASC",
511
- DESC = "DESC"
512
- }
513
- /** @enumType */
514
- type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
515
- interface AddressLocation {
516
- /** Address latitude. */
517
- latitude?: number | null;
518
- /** Address longitude. */
519
- longitude?: number | null;
520
- }
521
- interface CursorPaging {
522
- /**
523
- * Number of items to load.
524
- * @max 500
525
- */
526
- limit?: number | null;
527
- /**
528
- * Pointer to the next or previous page in the list of results.
529
- *
530
- * You can get the relevant cursor token
531
- * from the `pagingMetadata` object in the previous call's response.
532
- * Not relevant for the first request.
533
- */
534
- cursor?: string | null;
535
- }
536
- interface QueryMenusSiteUrlResponse {
537
- /** Retrieved menuInfos with path urls. */
538
- menuSiteUrls?: MenuSiteUrl[];
539
- /** The metadata of the paginated results. */
540
- pagingMetadata?: CursorPagingMetadata;
541
- }
542
- interface CursorPagingMetadata {
543
- /** Number of items returned in the response. */
544
- count?: number | null;
545
- /** Offset that was requested. */
546
- cursors?: Cursors;
547
- /**
548
- * Indicates if there are more results after the current page.
549
- * If `true`, another page of results can be retrieved.
550
- * If `false`, this is the last page.
551
- */
552
- hasNext?: boolean | null;
553
- }
554
- interface Cursors {
555
- /** Cursor pointing to next page in the list of results. */
556
- next?: string | null;
557
- /** Cursor pointing to previous page in the list of results. */
558
- prev?: string | null;
559
- }
560
269
  interface InvalidateCache extends InvalidateCacheGetByOneOf {
561
270
  /**
562
271
  * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
@@ -788,25 +497,107 @@ interface GetMenuResponse {
788
497
  }
789
498
  interface ListMenusRequest {
790
499
  /**
791
- * Menu IDs.
792
- * @format GUID
793
- * @maxSize 500
500
+ * Menu IDs.
501
+ * @format GUID
502
+ * @maxSize 500
503
+ */
504
+ menuIds?: string[];
505
+ /** The metadata of the paginated results. */
506
+ paging?: CursorPaging;
507
+ /** Whether to return only menus that are visible to site visitors. */
508
+ onlyVisible?: boolean | null;
509
+ }
510
+ interface CursorPaging {
511
+ /**
512
+ * Number of items to load.
513
+ * @max 500
514
+ */
515
+ limit?: number | null;
516
+ /**
517
+ * Pointer to the next or previous page in the list of results.
518
+ *
519
+ * You can get the relevant cursor token
520
+ * from the `pagingMetadata` object in the previous call's response.
521
+ * Not relevant for the first request.
522
+ */
523
+ cursor?: string | null;
524
+ }
525
+ interface ListMenusResponse {
526
+ /** Retrieved menus. */
527
+ menus?: Menu[];
528
+ /** The metadata of the paginated results. */
529
+ pagingMetadata?: CursorPagingMetadata;
530
+ }
531
+ interface CursorPagingMetadata {
532
+ /** Number of items returned in the response. */
533
+ count?: number | null;
534
+ /** Offset that was requested. */
535
+ cursors?: Cursors;
536
+ /**
537
+ * Indicates if there are more results after the current page.
538
+ * If `true`, another page of results can be retrieved.
539
+ * If `false`, this is the last page.
540
+ */
541
+ hasNext?: boolean | null;
542
+ }
543
+ interface Cursors {
544
+ /** Cursor pointing to next page in the list of results. */
545
+ next?: string | null;
546
+ /** Cursor pointing to previous page in the list of results. */
547
+ prev?: string | null;
548
+ }
549
+ interface QueryMenusRequest {
550
+ /** Query options. */
551
+ query?: CursorQuery;
552
+ }
553
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
554
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
555
+ cursorPaging?: CursorPaging;
556
+ /**
557
+ * Filter object in the following format:
558
+ * `"filter" : {
559
+ * "fieldName1": "value1",
560
+ * "fieldName2":{"$operator":"value2"}
561
+ * }`
562
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
563
+ */
564
+ filter?: Record<string, any> | null;
565
+ /**
566
+ * Sort object in the following format:
567
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
568
+ */
569
+ sort?: Sorting[];
570
+ }
571
+ /** @oneof */
572
+ interface CursorQueryPagingMethodOneOf {
573
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
574
+ cursorPaging?: CursorPaging;
575
+ }
576
+ interface Sorting {
577
+ /**
578
+ * Name of the field to sort by.
579
+ * @maxLength 512
580
+ */
581
+ fieldName?: string;
582
+ /** Sort order. */
583
+ order?: SortOrderWithLiterals;
584
+ /**
585
+ * Origin point for geo-distance sorting on a GEO field
586
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
794
587
  */
795
- menuIds?: string[];
796
- /** The metadata of the paginated results. */
797
- paging?: CursorPaging;
798
- /** Whether to return only menus that are visible to site visitors. */
799
- onlyVisible?: boolean | null;
588
+ origin?: AddressLocation;
800
589
  }
801
- interface ListMenusResponse {
802
- /** Retrieved menus. */
803
- menus?: Menu[];
804
- /** The metadata of the paginated results. */
805
- pagingMetadata?: CursorPagingMetadata;
590
+ declare enum SortOrder {
591
+ ASC = "ASC",
592
+ DESC = "DESC"
806
593
  }
807
- interface QueryMenusRequest {
808
- /** Query options. */
809
- query?: CursorQuery;
594
+ /** @enumType */
595
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
596
+ interface AddressLocation {
597
+ /** Address latitude. */
598
+ latitude?: number | null;
599
+ /** Address longitude. */
600
+ longitude?: number | null;
810
601
  }
811
602
  interface QueryMenusResponse {
812
603
  /** Retrieved menus. */
@@ -905,6 +696,70 @@ interface CloneMenusRequest {
905
696
  }
906
697
  interface CloneMenusResponse {
907
698
  }
699
+ interface DomainEvent extends DomainEventBodyOneOf {
700
+ createdEvent?: EntityCreatedEvent;
701
+ updatedEvent?: EntityUpdatedEvent;
702
+ deletedEvent?: EntityDeletedEvent;
703
+ actionEvent?: ActionEvent;
704
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
705
+ id?: string;
706
+ /**
707
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
708
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
709
+ */
710
+ entityFqdn?: string;
711
+ /**
712
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
713
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
714
+ */
715
+ slug?: string;
716
+ /** ID of the entity associated with the event. */
717
+ entityId?: string;
718
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
719
+ eventTime?: Date | null;
720
+ /**
721
+ * Whether the event was triggered as a result of a privacy regulation application
722
+ * (for example, GDPR).
723
+ */
724
+ triggeredByAnonymizeRequest?: boolean | null;
725
+ /** If present, indicates the action that triggered the event. */
726
+ originatedFrom?: string | null;
727
+ /**
728
+ * 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.
729
+ * 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.
730
+ */
731
+ entityEventSequence?: string | null;
732
+ }
733
+ /** @oneof */
734
+ interface DomainEventBodyOneOf {
735
+ createdEvent?: EntityCreatedEvent;
736
+ updatedEvent?: EntityUpdatedEvent;
737
+ deletedEvent?: EntityDeletedEvent;
738
+ actionEvent?: ActionEvent;
739
+ }
740
+ interface EntityCreatedEvent {
741
+ entityAsJson?: string;
742
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
743
+ restoreInfo?: RestoreInfo;
744
+ }
745
+ interface RestoreInfo {
746
+ deletedDate?: Date | null;
747
+ }
748
+ interface EntityUpdatedEvent {
749
+ /**
750
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
751
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
752
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
753
+ */
754
+ currentEntityAsJson?: string;
755
+ }
756
+ interface EntityDeletedEvent {
757
+ /** Entity that was deleted. */
758
+ deletedEntityAsJson?: string | null;
759
+ }
760
+ interface ActionEvent {
761
+ bodyAsJson?: string;
762
+ }
908
763
  interface Empty {
909
764
  }
910
765
  interface SyncContentToMultilingualRequest {
@@ -916,6 +771,151 @@ interface SyncContentToMultilingualRequest {
916
771
  }
917
772
  interface SyncContentToMultilingualResponse {
918
773
  }
774
+ interface MessageEnvelope {
775
+ /**
776
+ * App instance ID.
777
+ * @format GUID
778
+ */
779
+ instanceId?: string | null;
780
+ /**
781
+ * Event type.
782
+ * @maxLength 150
783
+ */
784
+ eventType?: string;
785
+ /** The identification type and identity data. */
786
+ identity?: IdentificationData;
787
+ /** Stringify payload. */
788
+ data?: string;
789
+ /** Details related to the account */
790
+ accountInfo?: AccountInfo;
791
+ }
792
+ interface IdentificationData extends IdentificationDataIdOneOf {
793
+ /**
794
+ * ID of a site visitor that has not logged in to the site.
795
+ * @format GUID
796
+ */
797
+ anonymousVisitorId?: string;
798
+ /**
799
+ * ID of a site visitor that has logged in to the site.
800
+ * @format GUID
801
+ */
802
+ memberId?: string;
803
+ /**
804
+ * ID of a Wix user (site owner, contributor, etc.).
805
+ * @format GUID
806
+ */
807
+ wixUserId?: string;
808
+ /**
809
+ * ID of an app.
810
+ * @format GUID
811
+ */
812
+ appId?: string;
813
+ /** @readonly */
814
+ identityType?: WebhookIdentityTypeWithLiterals;
815
+ }
816
+ /** @oneof */
817
+ interface IdentificationDataIdOneOf {
818
+ /**
819
+ * ID of a site visitor that has not logged in to the site.
820
+ * @format GUID
821
+ */
822
+ anonymousVisitorId?: string;
823
+ /**
824
+ * ID of a site visitor that has logged in to the site.
825
+ * @format GUID
826
+ */
827
+ memberId?: string;
828
+ /**
829
+ * ID of a Wix user (site owner, contributor, etc.).
830
+ * @format GUID
831
+ */
832
+ wixUserId?: string;
833
+ /**
834
+ * ID of an app.
835
+ * @format GUID
836
+ */
837
+ appId?: string;
838
+ }
839
+ declare enum WebhookIdentityType {
840
+ UNKNOWN = "UNKNOWN",
841
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
842
+ MEMBER = "MEMBER",
843
+ WIX_USER = "WIX_USER",
844
+ APP = "APP"
845
+ }
846
+ /** @enumType */
847
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
848
+ interface AccountInfo {
849
+ /**
850
+ * ID of the Wix account associated with the event.
851
+ * @format GUID
852
+ */
853
+ accountId?: string | null;
854
+ /**
855
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
856
+ * @format GUID
857
+ */
858
+ parentAccountId?: string | null;
859
+ /**
860
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
861
+ * @format GUID
862
+ */
863
+ siteId?: string | null;
864
+ }
865
+ interface DuplicateMenuRequest {
866
+ /**
867
+ * Menu id to be duplicated.
868
+ * @format GUID
869
+ */
870
+ id: string;
871
+ /**
872
+ * Business location ids to duplicate the menu to.
873
+ * @format GUID
874
+ * @maxSize 100
875
+ */
876
+ businessLocationIds?: string[] | null;
877
+ /** Indicates whether sub-entities (such as items) should be duplicated as well. */
878
+ duplicateSubEntities?: boolean | null;
879
+ /**
880
+ * The new name of the duplicated menu.
881
+ * @maxLength 500
882
+ */
883
+ menuName?: string | null;
884
+ }
885
+ interface DuplicateMenuResponse {
886
+ /** @format GUID */
887
+ menuIds?: string[];
888
+ }
889
+ interface GetMenuSiteUrlRequest {
890
+ /**
891
+ * Menu ID.
892
+ * @format GUID
893
+ * @readonly
894
+ */
895
+ id: string | null;
896
+ }
897
+ interface GetMenuSiteUrlResponse {
898
+ /** Retrieved menuInfo with path url. */
899
+ menuSiteUrl?: MenuSiteUrl;
900
+ }
901
+ interface MenuSiteUrl {
902
+ /**
903
+ * Path URL.
904
+ * @minLength 1
905
+ * @maxLength 1000
906
+ */
907
+ path?: string;
908
+ }
909
+ interface QueryMenusSiteUrlRequest {
910
+ /** Query options */
911
+ query?: CursorQuery;
912
+ }
913
+ interface QueryMenusSiteUrlResponse {
914
+ /** Retrieved menuInfos with path urls. */
915
+ menuSiteUrls?: MenuSiteUrl[];
916
+ /** The metadata of the paginated results. */
917
+ pagingMetadata?: CursorPagingMetadata;
918
+ }
919
919
 
920
920
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
921
921
  getUrl: (context: any) => string;
@@ -927,13 +927,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
927
927
  __responseType: Q;
928
928
  __originalResponseType: R;
929
929
  };
930
- declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
931
- id: string;
932
- }, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
933
- declare function getMenuSiteUrl(): __PublicMethodMetaInfo<'GET', {
934
- id: string;
935
- }, GetMenuSiteUrlRequest$1, GetMenuSiteUrlRequest, GetMenuSiteUrlResponse$1, GetMenuSiteUrlResponse>;
936
- declare function queryMenusSiteUrl(): __PublicMethodMetaInfo<'POST', {}, QueryMenusSiteUrlRequest$1, QueryMenusSiteUrlRequest, QueryMenusSiteUrlResponse$1, QueryMenusSiteUrlResponse>;
937
930
  declare function createMenu(): __PublicMethodMetaInfo<'POST', {}, CreateMenuRequest$1, CreateMenuRequest, CreateMenuResponse$1, CreateMenuResponse>;
938
931
  declare function bulkCreateMenus(): __PublicMethodMetaInfo<'POST', {}, BulkCreateMenusRequest$1, BulkCreateMenusRequest, BulkCreateMenusResponse$1, BulkCreateMenusResponse>;
939
932
  declare function getMenu(): __PublicMethodMetaInfo<'GET', {
@@ -951,5 +944,12 @@ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
951
944
  declare function deleteMenu(): __PublicMethodMetaInfo<'DELETE', {
952
945
  menuId: string;
953
946
  }, DeleteMenuRequest$1, DeleteMenuRequest, DeleteMenuResponse$1, DeleteMenuResponse>;
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
954
 
955
955
  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 };