@wix/auto_sdk_restaurants_menus 1.0.29 → 1.0.31

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,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { Menu, BulkCreateMenusOptions, BulkCreateMenusResponse, ListMenusOptions, ListMenusResponse, MenusQueryBuilder, UpdateMenu, MaskedMenu, BulkUpdateMenuOptions, BulkUpdateMenuResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, GetMenuSiteUrlResponse, QueryMenusSiteUrlOptions, QueryMenusSiteUrlResponse, DuplicateMenuOptions, DuplicateMenuResponse, MenuCreatedEnvelope, MenuDeletedEnvelope, MenuUpdatedEnvelope } from './index.typings.js';
3
- export { ActionEvent, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateMenuResult, BulkCreateMenusRequest, BulkMenuResult, BulkUpdateMenuRequest, BusinessLocationDetails, CloneMenusRequest, CloneMenusResponse, CreateMenuRequest, CreateMenuResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DeleteMenuRequest, DeleteMenuResponse, DeleteOrphanSections, DomainEvent, DomainEventBodyOneOf, DuplicateMenuRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, GetMenuRequest, GetMenuResponse, GetMenuSiteUrlRequest, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, Keyword, ListMenusRequest, MenuSiteUrl, MenusDataCloningCompleted, MenusQueryResult, MessageEnvelope, Page, QueryMenusRequest, QueryMenusResponse, QueryMenusSiteUrlRequest, RestoreInfo, RunMenusMultiLocationMigrationRequest, RunMenusMultiLocationMigrationResponse, SeoSchema, Settings, SortOrder, Sorting, Tag, URI, UpdateBusinessLocationIdRequest, UpdateBusinessLocationIdResponse, UpdateExtendedFieldsRequest, UpdateMenuRequest, UpdateMenuResponse, WebhookIdentityType } from './index.typings.js';
3
+ export { ActionEvent, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateMenuResult, BulkCreateMenusRequest, BulkMenuResult, BulkUpdateMenuRequest, BusinessLocationDetails, CloneMenusRequest, CloneMenusResponse, CreateMenuRequest, CreateMenuResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DeleteMenuRequest, DeleteMenuResponse, DeleteOrphanSections, DomainEvent, DomainEventBodyOneOf, DuplicateMenuRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReferenceInfo, File, GetMenuRequest, GetMenuResponse, GetMenuSiteUrlRequest, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, Keyword, ListMenusRequest, MenuSiteUrl, MenusDataCloningCompleted, MenusQueryResult, MessageEnvelope, Page, QueryMenusRequest, QueryMenusResponse, QueryMenusSiteUrlRequest, RestoreInfo, RunMenusMultiLocationMigrationRequest, RunMenusMultiLocationMigrationResponse, SeoSchema, Settings, SortOrder, Sorting, Tag, URI, UpdateBusinessLocationIdRequest, UpdateBusinessLocationIdResponse, UpdateExtendedFieldsRequest, UpdateMenuRequest, UpdateMenuResponse, WebhookIdentityType } from './index.typings.js';
4
4
 
5
5
  type MenuNonNullablePaths = `name` | `sectionIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`;
6
6
  declare function createMenu$1(httpClient: HttpClient): CreateMenuSignature;
@@ -349,7 +349,11 @@ function createMenu(payload) {
349
349
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
350
350
  {
351
351
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
352
- paths: [{ path: "menu.createdDate" }, { path: "menu.updatedDate" }]
352
+ paths: [
353
+ { path: "menu.createdDate" },
354
+ { path: "menu.updatedDate" },
355
+ { path: "menu.externalReferenceInfo.lastSyncDate" }
356
+ ]
353
357
  }
354
358
  ]);
355
359
  const metadata = {
@@ -366,7 +370,11 @@ function createMenu(payload) {
366
370
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
367
371
  {
368
372
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
369
- paths: [{ path: "menu.createdDate" }, { path: "menu.updatedDate" }]
373
+ paths: [
374
+ { path: "menu.createdDate" },
375
+ { path: "menu.updatedDate" },
376
+ { path: "menu.externalReferenceInfo.lastSyncDate" }
377
+ ]
370
378
  }
371
379
  ])
372
380
  };
@@ -379,7 +387,11 @@ function bulkCreateMenus(payload) {
379
387
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
380
388
  {
381
389
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
382
- paths: [{ path: "menus.createdDate" }, { path: "menus.updatedDate" }]
390
+ paths: [
391
+ { path: "menus.createdDate" },
392
+ { path: "menus.updatedDate" },
393
+ { path: "menus.externalReferenceInfo.lastSyncDate" }
394
+ ]
383
395
  }
384
396
  ]);
385
397
  const metadata = {
@@ -398,7 +410,8 @@ function bulkCreateMenus(payload) {
398
410
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
399
411
  paths: [
400
412
  { path: "results.menu.createdDate" },
401
- { path: "results.menu.updatedDate" }
413
+ { path: "results.menu.updatedDate" },
414
+ { path: "results.menu.externalReferenceInfo.lastSyncDate" }
402
415
  ]
403
416
  }
404
417
  ])
@@ -423,7 +436,11 @@ function getMenu(payload) {
423
436
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
424
437
  {
425
438
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
426
- paths: [{ path: "menu.createdDate" }, { path: "menu.updatedDate" }]
439
+ paths: [
440
+ { path: "menu.createdDate" },
441
+ { path: "menu.updatedDate" },
442
+ { path: "menu.externalReferenceInfo.lastSyncDate" }
443
+ ]
427
444
  }
428
445
  ])
429
446
  };
@@ -449,7 +466,8 @@ function listMenus(payload) {
449
466
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
450
467
  paths: [
451
468
  { path: "menus.createdDate" },
452
- { path: "menus.updatedDate" }
469
+ { path: "menus.updatedDate" },
470
+ { path: "menus.externalReferenceInfo.lastSyncDate" }
453
471
  ]
454
472
  }
455
473
  ])
@@ -476,7 +494,8 @@ function queryMenus(payload) {
476
494
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
477
495
  paths: [
478
496
  { path: "menus.createdDate" },
479
- { path: "menus.updatedDate" }
497
+ { path: "menus.updatedDate" },
498
+ { path: "menus.externalReferenceInfo.lastSyncDate" }
480
499
  ]
481
500
  }
482
501
  ])
@@ -494,7 +513,11 @@ function updateMenu(payload) {
494
513
  },
495
514
  {
496
515
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
497
- paths: [{ path: "menu.createdDate" }, { path: "menu.updatedDate" }]
516
+ paths: [
517
+ { path: "menu.createdDate" },
518
+ { path: "menu.updatedDate" },
519
+ { path: "menu.externalReferenceInfo.lastSyncDate" }
520
+ ]
498
521
  }
499
522
  ]);
500
523
  const metadata = {
@@ -511,7 +534,11 @@ function updateMenu(payload) {
511
534
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
512
535
  {
513
536
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
514
- paths: [{ path: "menu.createdDate" }, { path: "menu.updatedDate" }]
537
+ paths: [
538
+ { path: "menu.createdDate" },
539
+ { path: "menu.updatedDate" },
540
+ { path: "menu.externalReferenceInfo.lastSyncDate" }
541
+ ]
515
542
  }
516
543
  ])
517
544
  };
@@ -530,7 +557,8 @@ function bulkUpdateMenu(payload) {
530
557
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
531
558
  paths: [
532
559
  { path: "menus.menu.createdDate" },
533
- { path: "menus.menu.updatedDate" }
560
+ { path: "menus.menu.updatedDate" },
561
+ { path: "menus.menu.externalReferenceInfo.lastSyncDate" }
534
562
  ]
535
563
  }
536
564
  ]);
@@ -550,7 +578,8 @@ function bulkUpdateMenu(payload) {
550
578
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
551
579
  paths: [
552
580
  { path: "results.menu.createdDate" },
553
- { path: "results.menu.updatedDate" }
581
+ { path: "results.menu.updatedDate" },
582
+ { path: "results.menu.externalReferenceInfo.lastSyncDate" }
554
583
  ]
555
584
  }
556
585
  ])
@@ -1097,6 +1126,7 @@ var onMenuCreated = (0, import_sdk_types.EventDefinition)(
1097
1126
  paths: [
1098
1127
  { path: "entity.createdDate" },
1099
1128
  { path: "entity.updatedDate" },
1129
+ { path: "entity.externalReferenceInfo.lastSyncDate" },
1100
1130
  { path: "metadata.eventTime" }
1101
1131
  ]
1102
1132
  }
@@ -1113,6 +1143,7 @@ var onMenuDeleted = (0, import_sdk_types.EventDefinition)(
1113
1143
  paths: [
1114
1144
  { path: "undefined.createdDate" },
1115
1145
  { path: "undefined.updatedDate" },
1146
+ { path: "undefined.externalReferenceInfo.lastSyncDate" },
1116
1147
  { path: "metadata.eventTime" }
1117
1148
  ]
1118
1149
  }
@@ -1129,6 +1160,7 @@ var onMenuUpdated = (0, import_sdk_types.EventDefinition)(
1129
1160
  paths: [
1130
1161
  { path: "entity.createdDate" },
1131
1162
  { path: "entity.updatedDate" },
1163
+ { path: "entity.externalReferenceInfo.lastSyncDate" },
1132
1164
  { path: "metadata.eventTime" }
1133
1165
  ]
1134
1166
  }