@compassdigital/sdk.typescript 3.75.0 → 3.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -395,6 +395,12 @@ export interface NotFoundErrorDTO {
395
395
  [index: string]: any;
396
396
  }
397
397
 
398
+ export interface VersionMismatchErrorDTO {
399
+ number: number;
400
+ message: string;
401
+ [index: string]: any;
402
+ }
403
+
398
404
  export interface FilterFieldDTO {
399
405
  // Alternatively you can pass in the value directly (like '{ key: value }' instead of '{ key : { $equal : value } }
400
406
  $equals?: string;
@@ -685,7 +691,7 @@ export interface FileAttachmentsDTO {
685
691
  }
686
692
 
687
693
  export interface WeightDTO {
688
- unit?: string;
694
+ unit?: FilterFieldDTO;
689
695
  amount?: FilterFieldDTO;
690
696
  id?: any;
691
697
  [index: string]: any;
@@ -708,6 +714,7 @@ export interface DraftModifierDTO {
708
714
  posid?: FilterFieldDTO;
709
715
  reporting?: any;
710
716
  brand_id?: string;
717
+ applied_diff_snapshot?: FilterFieldDTO;
711
718
  brand?: any;
712
719
  changes?: ModifierChangeDTO[];
713
720
  vendor_metadata?: VendorMetadataDTO[];
@@ -725,6 +732,7 @@ export interface DraftModifierGroupToModifierRelationshipDTO {
725
732
  modifier_group_id?: string;
726
733
  brand_id?: FilterFieldDTO;
727
734
  sequence?: number;
735
+ applied_diff_snapshot?: FilterFieldDTO;
728
736
  modifier?: any;
729
737
  modifier_group?: DraftModifierGroupDTO;
730
738
  brand?: any;
@@ -747,6 +755,7 @@ export interface DraftModifierGroupDTO {
747
755
  max?: number;
748
756
  is_active?: boolean;
749
757
  brand_id?: string;
758
+ applied_diff_snapshot?: FilterFieldDTO;
750
759
  brand?: any;
751
760
  changes?: ModifierGroupChangeDTO[];
752
761
  vendor_metadata?: VendorMetadataDTO[];
@@ -763,6 +772,7 @@ export interface DraftItemToModifierGroupRelationshipDTO {
763
772
  item_id?: string;
764
773
  brand_id?: FilterFieldDTO;
765
774
  sequence?: number;
775
+ applied_diff_snapshot?: FilterFieldDTO;
766
776
  item?: DraftItemDTO;
767
777
  modifier_group?: any;
768
778
  brand?: any;
@@ -791,6 +801,7 @@ export interface DraftItemDTO {
791
801
  tax_tags?: FilterFieldDTO[];
792
802
  brand_id?: string;
793
803
  line_route?: FilterFieldDTO;
804
+ applied_diff_snapshot?: FilterFieldDTO;
794
805
  brand?: any;
795
806
  categories?: DraftCategoryToItemRelationshipDTO[];
796
807
  changes?: ItemChangeDTO[];
@@ -810,6 +821,7 @@ export interface DraftCategoryToItemRelationshipDTO {
810
821
  category_id?: string;
811
822
  brand_id?: FilterFieldDTO;
812
823
  sequence?: number;
824
+ applied_diff_snapshot?: FilterFieldDTO;
813
825
  category?: DraftCategoryDTO;
814
826
  item?: any;
815
827
  brand?: any;
@@ -830,6 +842,7 @@ export interface DraftCategoryDTO {
830
842
  is_active?: boolean;
831
843
  brand_id?: string;
832
844
  menu_id?: string;
845
+ applied_diff_snapshot?: FilterFieldDTO;
833
846
  menu?: DraftMenuDTO;
834
847
  items?: any[];
835
848
  brand?: any;
@@ -847,6 +860,7 @@ export interface DraftMenuDTO {
847
860
  parent_id?: string;
848
861
  name?: string;
849
862
  brand_id?: string;
863
+ applied_diff_snapshot?: FilterFieldDTO;
850
864
  brand?: any;
851
865
  changes?: MenuChangeDTO[];
852
866
  vendor_metadata?: VendorMetadataDTO[];
@@ -945,6 +959,7 @@ export interface BrandStatusDTO {
945
959
  }
946
960
 
947
961
  export interface DraftMenuDraftMenuDTO {
962
+ applied_diff_snapshot?: FilterFieldDTO;
948
963
  parent_id?: FilterFieldDTO;
949
964
  name?: FilterFieldDTO;
950
965
  brand_id?: FilterFieldDTO;
@@ -964,6 +979,7 @@ export interface DraftMenuDraftMenuDTO {
964
979
  }
965
980
 
966
981
  export interface DraftModifierDraftModifierDTO {
982
+ applied_diff_snapshot?: FilterFieldDTO;
967
983
  parent_id?: FilterFieldDTO;
968
984
  name?: FilterFieldDTO;
969
985
  label?: FilterFieldDTO;
@@ -993,6 +1009,7 @@ export interface DraftModifierDraftModifierDTO {
993
1009
  }
994
1010
 
995
1011
  export interface DraftModifierGroupDraftModifierGroupDTO {
1012
+ applied_diff_snapshot?: FilterFieldDTO;
996
1013
  parent_id?: FilterFieldDTO;
997
1014
  name?: FilterFieldDTO;
998
1015
  label?: FilterFieldDTO;
@@ -1017,6 +1034,7 @@ export interface DraftModifierGroupDraftModifierGroupDTO {
1017
1034
  }
1018
1035
 
1019
1036
  export interface DraftItemDraftItemDTO {
1037
+ applied_diff_snapshot?: FilterFieldDTO;
1020
1038
  parent_id?: FilterFieldDTO;
1021
1039
  name?: FilterFieldDTO;
1022
1040
  label?: FilterFieldDTO;
@@ -1069,6 +1087,7 @@ export interface GlobalDiffGlobalDiffDTO {
1069
1087
  entity_type?: FilterFieldDTO;
1070
1088
  local_id?: FilterFieldDTO;
1071
1089
  changes?: FilterFieldDTO;
1090
+ local_changes?: FilterFieldDTO;
1072
1091
  local_snapshot?: FilterFieldDTO;
1073
1092
  global_id?: FilterFieldDTO;
1074
1093
  global_snapshot?: FilterFieldDTO;
@@ -1096,6 +1115,7 @@ export interface DiffDTO {
1096
1115
  entity_type?: string;
1097
1116
  local_id?: string;
1098
1117
  changes?: any;
1118
+ local_changes?: any;
1099
1119
  local_snapshot?: any;
1100
1120
  global_id?: string;
1101
1121
  global_snapshot?: any;
@@ -1108,6 +1128,12 @@ export interface DiffDTO {
1108
1128
  [index: string]: any;
1109
1129
  }
1110
1130
 
1131
+ export interface ApplyDiffDTO {
1132
+ overwrite?: boolean;
1133
+ id: string;
1134
+ [index: string]: any;
1135
+ }
1136
+
1111
1137
  export interface PublishedBrandPublishedBrandDTO {
1112
1138
  name?: FilterFieldDTO;
1113
1139
  description?: FilterFieldDTO;
@@ -1140,6 +1166,7 @@ export interface PublishedBrandPublishedBrandDTO {
1140
1166
  }
1141
1167
 
1142
1168
  export interface DraftCategoryDraftCategoryDTO {
1169
+ applied_diff_snapshot?: FilterFieldDTO;
1143
1170
  parent_id?: FilterFieldDTO;
1144
1171
  name?: FilterFieldDTO;
1145
1172
  label?: FilterFieldDTO;
@@ -1203,6 +1230,7 @@ export interface PublishedCategoryPublishedCategoryDTO {
1203
1230
  }
1204
1231
 
1205
1232
  export interface DraftCategoryToItemRelationshipDraftCategoryToItemRelationshipDTO {
1233
+ applied_diff_snapshot?: FilterFieldDTO;
1206
1234
  parent_id?: FilterFieldDTO;
1207
1235
  deleted_at?: FilterFieldDTO;
1208
1236
  item_id?: FilterFieldDTO;
@@ -1244,6 +1272,40 @@ export interface PublishedCategoryToItemRelationshipPublishedCategoryToItemRelat
1244
1272
  [index: string]: any;
1245
1273
  }
1246
1274
 
1275
+ export interface DraftItemEntityDTO {
1276
+ parent?: DraftItemDTO;
1277
+ children?: DraftItemDTO[];
1278
+ posid_segment?: POSIDSegmentDTO;
1279
+ modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
1280
+ id?: string;
1281
+ created_at?: string;
1282
+ updated_at?: string;
1283
+ deleted_at?: string;
1284
+ parent_id?: string;
1285
+ name: string;
1286
+ label?: string;
1287
+ description?: string;
1288
+ reporting: ReportingMetadataDTO;
1289
+ price: number;
1290
+ barcode?: string;
1291
+ calories?: number;
1292
+ is_active?: boolean;
1293
+ posid?: string;
1294
+ tax_tags?: any[];
1295
+ brand_id: string;
1296
+ line_route?: string;
1297
+ applied_diff_snapshot?: any;
1298
+ version?: number;
1299
+ brand?: DraftBrandDTO;
1300
+ categories?: DraftCategoryToItemRelationshipDTO[];
1301
+ changes?: ItemChangeDTO[];
1302
+ vendor_metadata?: VendorMetadataDTO[];
1303
+ attachments?: FileAttachmentsDTO;
1304
+ weight?: WeightDTO;
1305
+ permissions?: any;
1306
+ [index: string]: any;
1307
+ }
1308
+
1247
1309
  export interface PublishedItemPublishedItemDTO {
1248
1310
  parent_id?: FilterFieldDTO;
1249
1311
  name?: FilterFieldDTO;
@@ -1276,6 +1338,7 @@ export interface PublishedItemPublishedItemDTO {
1276
1338
  }
1277
1339
 
1278
1340
  export interface DraftItemToModifierGroupRelationshipDraftItemToModifierGroupRelationshipDTO {
1341
+ applied_diff_snapshot?: FilterFieldDTO;
1279
1342
  parent_id?: FilterFieldDTO;
1280
1343
  deleted_at?: FilterFieldDTO;
1281
1344
  modifier_group_id?: FilterFieldDTO;
@@ -1340,6 +1403,7 @@ export interface PublishedModifierGroupPublishedModifierGroupDTO {
1340
1403
  }
1341
1404
 
1342
1405
  export interface DraftModifierGroupToModifierRelationshipDraftModifierGroupToModifierRelationshipDTO {
1406
+ applied_diff_snapshot?: FilterFieldDTO;
1343
1407
  parent_id?: FilterFieldDTO;
1344
1408
  deleted_at?: FilterFieldDTO;
1345
1409
  modifier_id?: FilterFieldDTO;
@@ -1381,6 +1445,36 @@ export interface PublishedModifierGroupToModifierRelationshipPublishedModifierGr
1381
1445
  [index: string]: any;
1382
1446
  }
1383
1447
 
1448
+ export interface DraftModifierEntityDTO {
1449
+ parent?: DraftModifierDTO;
1450
+ children?: DraftModifierDTO[];
1451
+ posid_segment?: POSIDSegmentDTO;
1452
+ modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
1453
+ id?: string;
1454
+ created_at?: string;
1455
+ updated_at?: string;
1456
+ deleted_at?: string;
1457
+ parent_id?: string;
1458
+ name: string;
1459
+ label?: string;
1460
+ description?: string;
1461
+ price: number;
1462
+ calories?: number;
1463
+ tax_tags?: any[];
1464
+ is_active?: boolean;
1465
+ posid?: string;
1466
+ reporting: ReportingMetadataDTO;
1467
+ brand_id: string;
1468
+ applied_diff_snapshot?: any;
1469
+ version?: number;
1470
+ brand?: DraftBrandDTO;
1471
+ changes?: ModifierChangeDTO[];
1472
+ vendor_metadata?: VendorMetadataDTO[];
1473
+ weight?: WeightDTO;
1474
+ permissions?: any;
1475
+ [index: string]: any;
1476
+ }
1477
+
1384
1478
  export interface PublishedModifierPublishedModifierDTO {
1385
1479
  parent_id?: FilterFieldDTO;
1386
1480
  name?: FilterFieldDTO;
@@ -1417,6 +1511,7 @@ export interface GlobalDiffDTO {
1417
1511
  entity_type?: string;
1418
1512
  local_id?: string;
1419
1513
  changes?: any;
1514
+ local_changes?: any;
1420
1515
  local_snapshot?: any;
1421
1516
  global_id?: string;
1422
1517
  global_snapshot?: any;
@@ -2024,6 +2119,7 @@ export interface PatchMenuV3LocalMenuGroupBody {
2024
2119
  draft_brands?: DraftBrandDTO[];
2025
2120
  published_brands?: PublishedBrandDTO[];
2026
2121
  id?: string;
2122
+ version?: number;
2027
2123
  vendor_metadata?: VendorMetadataDTO[];
2028
2124
  permissions?: any;
2029
2125
  [index: string]: any;
@@ -2349,6 +2445,7 @@ export interface PatchMenuV3GlobalMenuGroupBody {
2349
2445
  published_brands?: PublishedBrandDTO[];
2350
2446
  posid_segment?: POSIDSegmentDTO;
2351
2447
  id?: string;
2448
+ version?: number;
2352
2449
  vendor_metadata?: VendorMetadataDTO[];
2353
2450
  permissions?: any;
2354
2451
  [index: string]: any;
@@ -2627,6 +2724,7 @@ export interface PatchMenuV3DraftBrandBody {
2627
2724
  parent_id?: string;
2628
2725
  local_menu_group_id?: string;
2629
2726
  global_menu_group_id?: string;
2727
+ version?: number;
2630
2728
  changes?: BrandChangeDTO[];
2631
2729
  local_menu_group?: LocalMenuGroupDTO;
2632
2730
  global_menu_group?: GlobalMenuGroupDTO;
@@ -2998,7 +3096,7 @@ export interface PostMenuV3DraftBrandGlobalDiffsApplyPath {
2998
3096
  }
2999
3097
 
3000
3098
  export interface PostMenuV3DraftBrandGlobalDiffsApplyQuery {
3001
- "body.diff_ids"?: any[];
3099
+ "body.diffs"?: ApplyDiffDTO[];
3002
3100
  }
3003
3101
 
3004
3102
  export interface PostMenuV3DraftBrandGlobalDiffsApplyResponse {
@@ -3122,6 +3220,7 @@ export interface PatchMenuV3BrandBody {
3122
3220
  parent_id?: string;
3123
3221
  local_menu_group_id?: string;
3124
3222
  global_menu_group_id?: string;
3223
+ version?: number;
3125
3224
  local_menu_group?: LocalMenuGroupDTO;
3126
3225
  global_menu_group?: GlobalMenuGroupDTO;
3127
3226
  attachments?: FileAttachmentsDTO;
@@ -3454,6 +3553,7 @@ export interface PostMenuV3DraftMenuBody {
3454
3553
  name: string;
3455
3554
  brand_id: string;
3456
3555
  id?: any;
3556
+ applied_diff_snapshot?: any;
3457
3557
  brand?: DraftBrandDTO;
3458
3558
  changes?: MenuChangeDTO[];
3459
3559
  vendor_metadata?: VendorMetadataDTO[];
@@ -3503,6 +3603,8 @@ export interface PatchMenuV3DraftMenuBody {
3503
3603
  parent_id?: string;
3504
3604
  name?: string;
3505
3605
  brand_id?: string;
3606
+ applied_diff_snapshot?: any;
3607
+ version?: number;
3506
3608
  brand?: DraftBrandDTO;
3507
3609
  changes?: MenuChangeDTO[];
3508
3610
  vendor_metadata?: VendorMetadataDTO[];
@@ -3567,6 +3669,7 @@ export type PostMenuV3DraftMenusBody = {
3567
3669
  name: string;
3568
3670
  brand_id: string;
3569
3671
  id?: any;
3672
+ applied_diff_snapshot?: any;
3570
3673
  brand?: DraftBrandDTO;
3571
3674
  changes?: MenuChangeDTO[];
3572
3675
  vendor_metadata?: VendorMetadataDTO[];
@@ -3774,6 +3877,7 @@ export interface PostMenuV3DraftCategoryBody {
3774
3877
  brand_id: string;
3775
3878
  menu_id: string;
3776
3879
  id?: any;
3880
+ applied_diff_snapshot?: any;
3777
3881
  menu?: DraftMenuDTO;
3778
3882
  items?: DraftCategoryToItemRelationshipDTO[];
3779
3883
  brand?: DraftBrandDTO;
@@ -3828,6 +3932,8 @@ export interface PatchMenuV3DraftCategoryBody {
3828
3932
  is_active?: boolean;
3829
3933
  brand_id?: string;
3830
3934
  menu_id?: string;
3935
+ applied_diff_snapshot?: any;
3936
+ version?: number;
3831
3937
  menu?: DraftMenuDTO;
3832
3938
  items?: DraftCategoryToItemRelationshipDTO[];
3833
3939
  brand?: DraftBrandDTO;
@@ -3886,6 +3992,7 @@ export type PostMenuV3DraftCategoriesBody = {
3886
3992
  brand_id: string;
3887
3993
  menu_id: string;
3888
3994
  id?: any;
3995
+ applied_diff_snapshot?: any;
3889
3996
  menu?: DraftMenuDTO;
3890
3997
  items?: DraftCategoryToItemRelationshipDTO[];
3891
3998
  brand?: DraftBrandDTO;
@@ -3955,9 +4062,10 @@ export interface PostMenuV3DraftCategoryRelationshipsItemBody {
3955
4062
  parent_id?: string;
3956
4063
  item_id: string;
3957
4064
  category_id: string;
3958
- brand_id?: string;
4065
+ brand_id: string;
3959
4066
  sequence?: number;
3960
4067
  id?: any;
4068
+ applied_diff_snapshot?: any;
3961
4069
  category?: DraftCategoryDTO;
3962
4070
  item?: DraftItemDTO;
3963
4071
  brand?: DraftBrandDTO;
@@ -4010,6 +4118,8 @@ export interface PatchMenuV3DraftCategoryRelationshipsItemBody {
4010
4118
  category_id?: string;
4011
4119
  brand_id?: string;
4012
4120
  sequence?: number;
4121
+ applied_diff_snapshot?: any;
4122
+ version?: number;
4013
4123
  category?: DraftCategoryDTO;
4014
4124
  item?: DraftItemDTO;
4015
4125
  brand?: DraftBrandDTO;
@@ -4078,9 +4188,10 @@ export type PostMenuV3DraftCategoryRelationshipsItemsBody = {
4078
4188
  parent_id?: string;
4079
4189
  item_id: string;
4080
4190
  category_id: string;
4081
- brand_id?: string;
4191
+ brand_id: string;
4082
4192
  sequence?: number;
4083
4193
  id?: any;
4194
+ applied_diff_snapshot?: any;
4084
4195
  category?: DraftCategoryDTO;
4085
4196
  item?: DraftItemDTO;
4086
4197
  brand?: DraftBrandDTO;
@@ -4214,6 +4325,7 @@ export interface PostMenuV3DraftItemBody {
4214
4325
  brand_id: string;
4215
4326
  line_route?: string;
4216
4327
  id?: any;
4328
+ applied_diff_snapshot?: any;
4217
4329
  brand?: DraftBrandDTO;
4218
4330
  categories?: DraftCategoryToItemRelationshipDTO[];
4219
4331
  changes?: ItemChangeDTO[];
@@ -4277,6 +4389,8 @@ export interface PatchMenuV3DraftItemBody {
4277
4389
  tax_tags?: any[];
4278
4390
  brand_id?: string;
4279
4391
  line_route?: string;
4392
+ applied_diff_snapshot?: any;
4393
+ version?: number;
4280
4394
  brand?: DraftBrandDTO;
4281
4395
  categories?: DraftCategoryToItemRelationshipDTO[];
4282
4396
  changes?: ItemChangeDTO[];
@@ -4355,6 +4469,7 @@ export type PostMenuV3DraftItemsBody = {
4355
4469
  brand_id: string;
4356
4470
  line_route?: string;
4357
4471
  id?: any;
4472
+ applied_diff_snapshot?: any;
4358
4473
  brand?: DraftBrandDTO;
4359
4474
  categories?: DraftCategoryToItemRelationshipDTO[];
4360
4475
  changes?: ItemChangeDTO[];
@@ -4415,6 +4530,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
4415
4530
  tax_tags?: any[];
4416
4531
  brand_id?: string;
4417
4532
  line_route?: string;
4533
+ applied_diff_snapshot?: any;
4418
4534
  brand?: DraftBrandDTO;
4419
4535
  categories?: DraftCategoryToItemRelationshipDTO[];
4420
4536
  changes?: ItemChangeDTO[];
@@ -4426,8 +4542,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
4426
4542
  }
4427
4543
 
4428
4544
  export interface PatchMenuV3DraftItemsBulkUpdateResponse {
4429
- results: any[];
4430
- [index: string]: any;
4545
+ results?: DraftItemEntityDTO[];
4431
4546
  }
4432
4547
 
4433
4548
  export interface PatchMenuV3DraftItemsBulkUpdateRequest extends BaseRequest {
@@ -4462,8 +4577,7 @@ export interface PostMenuV3ItemsImportQuery {
4462
4577
  }
4463
4578
 
4464
4579
  export interface PostMenuV3ItemsImportResponse {
4465
- results: any[];
4466
- [index: string]: any;
4580
+ results?: DraftItemEntityDTO[];
4467
4581
  }
4468
4582
 
4469
4583
  export interface PostMenuV3ItemsImportRequest
@@ -4550,9 +4664,10 @@ export interface PostMenuV3DraftItemRelationshipsModifierGroupBody {
4550
4664
  parent_id?: string;
4551
4665
  modifier_group_id: string;
4552
4666
  item_id: string;
4553
- brand_id?: string;
4667
+ brand_id: string;
4554
4668
  sequence?: number;
4555
4669
  id?: any;
4670
+ applied_diff_snapshot?: any;
4556
4671
  item?: DraftItemDTO;
4557
4672
  modifier_group?: DraftModifierGroupDTO;
4558
4673
  brand?: DraftBrandDTO;
@@ -4607,6 +4722,8 @@ export interface PatchMenuV3DraftItemRelationshipsModifierGroupBody {
4607
4722
  item_id?: string;
4608
4723
  brand_id?: string;
4609
4724
  sequence?: number;
4725
+ applied_diff_snapshot?: any;
4726
+ version?: number;
4610
4727
  item?: DraftItemDTO;
4611
4728
  modifier_group?: DraftModifierGroupDTO;
4612
4729
  brand?: DraftBrandDTO;
@@ -4677,9 +4794,10 @@ export type PostMenuV3DraftItemRelationshipsModifierGroupsBody = {
4677
4794
  parent_id?: string;
4678
4795
  modifier_group_id: string;
4679
4796
  item_id: string;
4680
- brand_id?: string;
4797
+ brand_id: string;
4681
4798
  sequence?: number;
4682
4799
  id?: any;
4800
+ applied_diff_snapshot?: any;
4683
4801
  item?: DraftItemDTO;
4684
4802
  modifier_group?: DraftModifierGroupDTO;
4685
4803
  brand?: DraftBrandDTO;
@@ -4807,6 +4925,7 @@ export interface PostMenuV3DraftModifierGroupBody {
4807
4925
  is_active?: boolean;
4808
4926
  brand_id: string;
4809
4927
  id?: any;
4928
+ applied_diff_snapshot?: any;
4810
4929
  brand?: DraftBrandDTO;
4811
4930
  changes?: ModifierGroupChangeDTO[];
4812
4931
  vendor_metadata?: VendorMetadataDTO[];
@@ -4861,6 +4980,8 @@ export interface PatchMenuV3DraftModifierGroupBody {
4861
4980
  max?: number;
4862
4981
  is_active?: boolean;
4863
4982
  brand_id?: string;
4983
+ applied_diff_snapshot?: any;
4984
+ version?: number;
4864
4985
  brand?: DraftBrandDTO;
4865
4986
  changes?: ModifierGroupChangeDTO[];
4866
4987
  vendor_metadata?: VendorMetadataDTO[];
@@ -4934,6 +5055,7 @@ export type PostMenuV3DraftModifierGroupsBody = {
4934
5055
  is_active?: boolean;
4935
5056
  brand_id: string;
4936
5057
  id?: any;
5058
+ applied_diff_snapshot?: any;
4937
5059
  brand?: DraftBrandDTO;
4938
5060
  changes?: ModifierGroupChangeDTO[];
4939
5061
  vendor_metadata?: VendorMetadataDTO[];
@@ -5051,9 +5173,10 @@ export interface PostMenuV3DraftModifierGroupRelationshipsModifierBody {
5051
5173
  parent_id?: string;
5052
5174
  modifier_id: string;
5053
5175
  modifier_group_id: string;
5054
- brand_id?: string;
5176
+ brand_id: string;
5055
5177
  sequence?: number;
5056
5178
  id?: any;
5179
+ applied_diff_snapshot?: any;
5057
5180
  modifier?: DraftModifierDTO;
5058
5181
  modifier_group?: DraftModifierGroupDTO;
5059
5182
  brand?: DraftBrandDTO;
@@ -5108,6 +5231,8 @@ export interface PatchMenuV3DraftModifierGroupRelationshipsModifierBody {
5108
5231
  modifier_group_id?: string;
5109
5232
  brand_id?: string;
5110
5233
  sequence?: number;
5234
+ applied_diff_snapshot?: any;
5235
+ version?: number;
5111
5236
  modifier?: DraftModifierDTO;
5112
5237
  modifier_group?: DraftModifierGroupDTO;
5113
5238
  brand?: DraftBrandDTO;
@@ -5178,9 +5303,10 @@ export type PostMenuV3DraftModifierGroupRelationshipsModifiersBody = {
5178
5303
  parent_id?: string;
5179
5304
  modifier_id: string;
5180
5305
  modifier_group_id: string;
5181
- brand_id?: string;
5306
+ brand_id: string;
5182
5307
  sequence?: number;
5183
5308
  id?: any;
5309
+ applied_diff_snapshot?: any;
5184
5310
  modifier?: DraftModifierDTO;
5185
5311
  modifier_group?: DraftModifierGroupDTO;
5186
5312
  brand?: DraftBrandDTO;
@@ -5312,6 +5438,7 @@ export interface PostMenuV3DraftModifierBody {
5312
5438
  reporting: ReportingMetadataDTO;
5313
5439
  brand_id: string;
5314
5440
  id?: any;
5441
+ applied_diff_snapshot?: any;
5315
5442
  brand?: DraftBrandDTO;
5316
5443
  changes?: ModifierChangeDTO[];
5317
5444
  vendor_metadata?: VendorMetadataDTO[];
@@ -5371,6 +5498,8 @@ export interface PatchMenuV3DraftModifierBody {
5371
5498
  posid?: string;
5372
5499
  reporting?: ReportingMetadataDTO;
5373
5500
  brand_id?: string;
5501
+ applied_diff_snapshot?: any;
5502
+ version?: number;
5374
5503
  brand?: DraftBrandDTO;
5375
5504
  changes?: ModifierChangeDTO[];
5376
5505
  vendor_metadata?: VendorMetadataDTO[];
@@ -5447,6 +5576,7 @@ export type PostMenuV3DraftModifiersBody = {
5447
5576
  reporting: ReportingMetadataDTO;
5448
5577
  brand_id: string;
5449
5578
  id?: any;
5579
+ applied_diff_snapshot?: any;
5450
5580
  brand?: DraftBrandDTO;
5451
5581
  changes?: ModifierChangeDTO[];
5452
5582
  vendor_metadata?: VendorMetadataDTO[];
@@ -5503,6 +5633,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
5503
5633
  posid?: string;
5504
5634
  reporting?: ReportingMetadataDTO;
5505
5635
  brand_id?: string;
5636
+ applied_diff_snapshot?: any;
5506
5637
  brand?: DraftBrandDTO;
5507
5638
  changes?: ModifierChangeDTO[];
5508
5639
  vendor_metadata?: VendorMetadataDTO[];
@@ -5512,8 +5643,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
5512
5643
  }
5513
5644
 
5514
5645
  export interface PatchMenuV3DraftModifiersBulkUpdateResponse {
5515
- results: any[];
5516
- [index: string]: any;
5646
+ results?: DraftModifierEntityDTO[];
5517
5647
  }
5518
5648
 
5519
5649
  export interface PatchMenuV3DraftModifiersBulkUpdateRequest extends BaseRequest {
@@ -5633,6 +5763,7 @@ export interface GetMenuV3GlobalDiffResponse {
5633
5763
  entity_type?: string;
5634
5764
  local_id?: string;
5635
5765
  changes?: any;
5766
+ local_changes?: any;
5636
5767
  local_snapshot?: any;
5637
5768
  global_id?: string;
5638
5769
  global_snapshot?: any;
@@ -1,4 +1,4 @@
1
- /* eslint-disable */
1
+ // /* eslint-disable */
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
3
 
4
4
  import { RequestQuery, BaseRequest } from "./util";
@@ -7,8 +7,18 @@ export interface Transaction {
7
7
  success?: boolean;
8
8
  // the total amount available for refund on the transaction - the transaction remainder amount
9
9
  amount?: string;
10
+ requestDateTime?: string;
10
11
  // cdl encoded transaction id
11
12
  id?: string;
13
+ reasonCode?: number;
14
+ decision?: string;
15
+ status?: string;
16
+ creditCard?: {
17
+ cardType?: string;
18
+ last4?: string;
19
+ };
20
+ digital_wallet_pay?: DigitalWalletPay;
21
+ requestID?: string;
12
22
  [index: string]: any;
13
23
  }
14
24
 
@@ -130,6 +140,7 @@ export interface Options {
130
140
  payment_type?: string;
131
141
  // ID('payment', '<provider>', 'tender', <timestamp via Data.now()>
132
142
  tender?: string;
143
+ digital_wallet_pay?: DigitalWalletPay;
133
144
  }
134
145
 
135
146
  export interface Success {
@@ -154,6 +165,11 @@ export interface CashlessTender {
154
165
 
155
166
  export type BadgePayTender = CashlessTender;
156
167
 
168
+ export interface DigitalWalletPay {
169
+ wallet_type?: string;
170
+ total?: number;
171
+ }
172
+
157
173
  // POST /payment/{id}/transaction
158
174
 
159
175
  export interface PostPaymentTransactionPath {
@@ -169,6 +185,21 @@ export interface PostPaymentTransactionBody {
169
185
  options?: Options;
170
186
  // The braintree merchant account id to use
171
187
  merchant_account_id?: string;
188
+ digital_wallet_token?: string;
189
+ account_number?: string;
190
+ cv_number?: string;
191
+ expiration_month?: string;
192
+ expiration_year?: string;
193
+ cart_items?: {
194
+ id?: string;
195
+ label?: {
196
+ en?: string;
197
+ };
198
+ price?: {
199
+ amount?: number;
200
+ };
201
+ quantity?: number;
202
+ }[];
172
203
  }
173
204
 
174
205
  export type PostPaymentTransactionResponse = Transaction;
@@ -266,6 +266,7 @@ export interface ShoppingCartResponse {
266
266
  amount?: MonetaryValue;
267
267
  app?: string;
268
268
  discount?: any;
269
+ provider_data?: FPValidationData;
269
270
  };
270
271
  //@deprecated
271
272
  loyalty?: {
@@ -285,6 +286,7 @@ export interface ShoppingCartResponse {
285
286
  percent_off?: MonetaryValue;
286
287
  amount?: MonetaryValue;
287
288
  discount?: any;
289
+ provider_data?: FPValidationData;
288
290
  };
289
291
  payment_method?: {
290
292
  mealplan?: Mealplan;
@@ -415,6 +417,17 @@ export type Quantity = IntegerValue;
415
417
 
416
418
  export type PaymentType = string;
417
419
 
420
+ export interface FPValidationData {
421
+ discountIncentives?: {
422
+ id?: string;
423
+ program?: {
424
+ code?: string;
425
+ };
426
+ [index: string]: any;
427
+ }[];
428
+ [index: string]: any;
429
+ }
430
+
418
431
  // POST /shoppingcart/ - Create a new ShoppingCart
419
432
 
420
433
  export type PostShoppingcartCartBody = ShoppingCartRequest;