@compassdigital/sdk.typescript 4.143.0 → 4.145.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.
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +13 -18
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +82 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/timeslots.d.ts +34 -0
- package/lib/interface/timeslots.d.ts.map +1 -0
- package/lib/interface/timeslots.js +5 -0
- package/lib/interface/timeslots.js.map +1 -0
- package/lib/messages/events/DiscountCreatedEvent.d.ts +68 -0
- package/lib/messages/events/DiscountCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/DiscountCreatedEvent.js +4 -0
- package/lib/messages/events/DiscountCreatedEvent.js.map +1 -0
- package/lib/messages/events/index.d.ts +1 -0
- package/lib/messages/events/index.d.ts.map +1 -1
- package/manifest.json +7 -0
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/consumer.ts +17 -19
- package/src/interface/menu.ts +83 -0
- package/src/interface/timeslots.ts +62 -0
- package/src/messages/events/DiscountCreatedEvent.ts +80 -0
- package/src/messages/events/index.ts +2 -0
package/src/interface/menu.ts
CHANGED
|
@@ -468,6 +468,7 @@ export interface BrandMeta {
|
|
|
468
468
|
export interface SupportedLanguages {
|
|
469
469
|
fr?: string;
|
|
470
470
|
kvi?: string;
|
|
471
|
+
es?: string;
|
|
471
472
|
}
|
|
472
473
|
|
|
473
474
|
export interface PublishedBrandDTO {
|
|
@@ -648,6 +649,7 @@ export interface DraftMenuDTO {
|
|
|
648
649
|
parent_id?: string;
|
|
649
650
|
name?: string;
|
|
650
651
|
brand_id?: string;
|
|
652
|
+
translation?: NameTranslation;
|
|
651
653
|
applied_diff_snapshot?: Record<string, any>;
|
|
652
654
|
version?: number;
|
|
653
655
|
brand?: DraftBrandDTO;
|
|
@@ -657,6 +659,10 @@ export interface DraftMenuDTO {
|
|
|
657
659
|
[index: string]: any;
|
|
658
660
|
}
|
|
659
661
|
|
|
662
|
+
export interface NameTranslation {
|
|
663
|
+
name?: SupportedLanguages;
|
|
664
|
+
}
|
|
665
|
+
|
|
660
666
|
export interface DraftCategoryDTO {
|
|
661
667
|
parent?: Record<string, any>;
|
|
662
668
|
children?: Record<string, any>[];
|
|
@@ -671,6 +677,7 @@ export interface DraftCategoryDTO {
|
|
|
671
677
|
is_active?: boolean;
|
|
672
678
|
brand_id?: string;
|
|
673
679
|
menu_id?: string;
|
|
680
|
+
translation?: Record<string, any>;
|
|
674
681
|
applied_diff_snapshot?: Record<string, any>;
|
|
675
682
|
version?: number;
|
|
676
683
|
menu?: Record<string, any>;
|
|
@@ -743,6 +750,7 @@ export interface DraftItemDTO {
|
|
|
743
750
|
unique_id?: number;
|
|
744
751
|
cpg_item_id?: string;
|
|
745
752
|
price_levels?: Record<string, any>;
|
|
753
|
+
translation?: Record<string, any>;
|
|
746
754
|
applied_diff_snapshot?: Record<string, any>;
|
|
747
755
|
version?: number;
|
|
748
756
|
brand?: DraftBrandDTO;
|
|
@@ -799,6 +807,7 @@ export interface DraftModifierGroupDTO {
|
|
|
799
807
|
sizing?: string;
|
|
800
808
|
is_out_of_stock?: boolean;
|
|
801
809
|
is_incremental?: boolean;
|
|
810
|
+
translation?: Record<string, any>;
|
|
802
811
|
applied_diff_snapshot?: Record<string, any>;
|
|
803
812
|
version?: number;
|
|
804
813
|
brand?: DraftBrandDTO;
|
|
@@ -865,6 +874,7 @@ export interface DraftModifierDTO {
|
|
|
865
874
|
tags?: string[];
|
|
866
875
|
unique_id?: number;
|
|
867
876
|
price_levels?: Record<string, any>;
|
|
877
|
+
translation?: Record<string, any>;
|
|
868
878
|
applied_diff_snapshot?: Record<string, any>;
|
|
869
879
|
version?: number;
|
|
870
880
|
brand?: DraftBrandDTO;
|
|
@@ -1231,6 +1241,7 @@ export interface PublishedMenuDTO {
|
|
|
1231
1241
|
parent_id?: string;
|
|
1232
1242
|
name?: string;
|
|
1233
1243
|
brand_id?: string;
|
|
1244
|
+
translation?: NameTranslation;
|
|
1234
1245
|
version?: number;
|
|
1235
1246
|
permissions?: Record<string, any>;
|
|
1236
1247
|
[index: string]: any;
|
|
@@ -1248,6 +1259,7 @@ export interface PublishedCategoryDTO {
|
|
|
1248
1259
|
is_active?: boolean;
|
|
1249
1260
|
brand_id?: string;
|
|
1250
1261
|
menu_id?: string;
|
|
1262
|
+
translation?: NameTranslation;
|
|
1251
1263
|
version?: number;
|
|
1252
1264
|
permissions?: Record<string, any>;
|
|
1253
1265
|
[index: string]: any;
|
|
@@ -1297,6 +1309,7 @@ export interface PublishedItemDTO {
|
|
|
1297
1309
|
tax_jwo_code?: string;
|
|
1298
1310
|
cpg_item_id?: string;
|
|
1299
1311
|
price_levels?: Record<string, any>;
|
|
1312
|
+
translation?: Record<string, any>;
|
|
1300
1313
|
version?: number;
|
|
1301
1314
|
permissions?: Record<string, any>;
|
|
1302
1315
|
[index: string]: any;
|
|
@@ -1334,6 +1347,7 @@ export interface PublishedModifierGroupDTO {
|
|
|
1334
1347
|
sizing?: string;
|
|
1335
1348
|
is_out_of_stock?: boolean;
|
|
1336
1349
|
is_incremental?: boolean;
|
|
1350
|
+
translation?: NameTranslation;
|
|
1337
1351
|
version?: number;
|
|
1338
1352
|
permissions?: Record<string, any>;
|
|
1339
1353
|
[index: string]: any;
|
|
@@ -1383,6 +1397,7 @@ export interface PublishedModifierDTO {
|
|
|
1383
1397
|
tax_tag_code?: string;
|
|
1384
1398
|
tags?: string[];
|
|
1385
1399
|
price_levels?: Record<string, any>;
|
|
1400
|
+
translation?: Record<string, any>;
|
|
1386
1401
|
version?: number;
|
|
1387
1402
|
permissions?: Record<string, any>;
|
|
1388
1403
|
[index: string]: any;
|
|
@@ -1665,6 +1680,7 @@ export interface DraftItemEntityDTO {
|
|
|
1665
1680
|
unique_id?: number;
|
|
1666
1681
|
cpg_item_id?: string;
|
|
1667
1682
|
price_levels?: Record<string, any>;
|
|
1683
|
+
translation?: Record<string, any>;
|
|
1668
1684
|
applied_diff_snapshot?: Record<string, any>;
|
|
1669
1685
|
version?: number;
|
|
1670
1686
|
brand?: DraftBrandDTO;
|
|
@@ -1716,6 +1732,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1716
1732
|
tags?: string[];
|
|
1717
1733
|
unique_id?: number;
|
|
1718
1734
|
price_levels?: Record<string, any>;
|
|
1735
|
+
translation?: Record<string, any>;
|
|
1719
1736
|
applied_diff_snapshot?: Record<string, any>;
|
|
1720
1737
|
version?: number;
|
|
1721
1738
|
brand?: DraftBrandDTO;
|
|
@@ -1793,6 +1810,7 @@ export interface DraftModifierGroupEntityDTO {
|
|
|
1793
1810
|
sizing?: string;
|
|
1794
1811
|
is_out_of_stock?: boolean;
|
|
1795
1812
|
is_incremental?: boolean;
|
|
1813
|
+
translation?: NameTranslation;
|
|
1796
1814
|
applied_diff_snapshot?: Record<string, any>;
|
|
1797
1815
|
version?: number;
|
|
1798
1816
|
brand?: DraftBrandDTO;
|
|
@@ -4180,6 +4198,7 @@ export interface PostMenuV3DraftMenuBody {
|
|
|
4180
4198
|
parent_id?: string;
|
|
4181
4199
|
name: string;
|
|
4182
4200
|
brand_id: string;
|
|
4201
|
+
translation?: NameTranslation;
|
|
4183
4202
|
applied_diff_snapshot?: Record<string, any>;
|
|
4184
4203
|
brand?: DraftBrandDTO;
|
|
4185
4204
|
changes?: MenuChangeDTO[];
|
|
@@ -4233,6 +4252,7 @@ export interface PatchMenuV3DraftMenuBody {
|
|
|
4233
4252
|
parent_id?: string;
|
|
4234
4253
|
name?: string;
|
|
4235
4254
|
brand_id?: string;
|
|
4255
|
+
translation?: NameTranslation;
|
|
4236
4256
|
applied_diff_snapshot?: Record<string, any>;
|
|
4237
4257
|
version?: number;
|
|
4238
4258
|
brand?: DraftBrandDTO;
|
|
@@ -4308,6 +4328,7 @@ export type PostMenuV3DraftMenusBody = {
|
|
|
4308
4328
|
parent_id?: string;
|
|
4309
4329
|
name: string;
|
|
4310
4330
|
brand_id: string;
|
|
4331
|
+
translation?: NameTranslation;
|
|
4311
4332
|
applied_diff_snapshot?: Record<string, any>;
|
|
4312
4333
|
brand?: DraftBrandDTO;
|
|
4313
4334
|
changes?: MenuChangeDTO[];
|
|
@@ -4447,6 +4468,7 @@ export interface PostMenuV3DraftMenuDuplicateResponse {
|
|
|
4447
4468
|
parent_id?: string;
|
|
4448
4469
|
name: string;
|
|
4449
4470
|
brand_id: string;
|
|
4471
|
+
translation?: NameTranslation;
|
|
4450
4472
|
applied_diff_snapshot?: Record<string, any>;
|
|
4451
4473
|
version?: number;
|
|
4452
4474
|
brand?: DraftBrandDTO;
|
|
@@ -4630,6 +4652,7 @@ export interface PostMenuV3DraftCategoryBody {
|
|
|
4630
4652
|
is_active?: boolean;
|
|
4631
4653
|
brand_id: string;
|
|
4632
4654
|
menu_id: string;
|
|
4655
|
+
translation?: NameTranslation;
|
|
4633
4656
|
applied_diff_snapshot?: Record<string, any>;
|
|
4634
4657
|
menu?: DraftMenuDTO;
|
|
4635
4658
|
items?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -4686,6 +4709,7 @@ export interface PatchMenuV3DraftCategoryBody {
|
|
|
4686
4709
|
is_active?: boolean;
|
|
4687
4710
|
brand_id?: string;
|
|
4688
4711
|
menu_id?: string;
|
|
4712
|
+
translation?: NameTranslation;
|
|
4689
4713
|
applied_diff_snapshot?: Record<string, any>;
|
|
4690
4714
|
version?: number;
|
|
4691
4715
|
menu?: DraftMenuDTO;
|
|
@@ -4751,6 +4775,7 @@ export type PostMenuV3DraftCategoriesBody = {
|
|
|
4751
4775
|
is_active?: boolean;
|
|
4752
4776
|
brand_id: string;
|
|
4753
4777
|
menu_id: string;
|
|
4778
|
+
translation?: NameTranslation;
|
|
4754
4779
|
applied_diff_snapshot?: Record<string, any>;
|
|
4755
4780
|
menu?: DraftMenuDTO;
|
|
4756
4781
|
items?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -4833,6 +4858,7 @@ export interface PostMenuV3DraftCategoryDuplicateResponse {
|
|
|
4833
4858
|
is_active?: boolean;
|
|
4834
4859
|
brand_id: string;
|
|
4835
4860
|
menu_id: string;
|
|
4861
|
+
translation?: NameTranslation;
|
|
4836
4862
|
applied_diff_snapshot?: Record<string, any>;
|
|
4837
4863
|
version?: number;
|
|
4838
4864
|
menu?: DraftMenuDTO;
|
|
@@ -5263,6 +5289,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
5263
5289
|
unique_id?: number;
|
|
5264
5290
|
cpg_item_id?: string;
|
|
5265
5291
|
price_levels?: Record<string, any>;
|
|
5292
|
+
translation?: Record<string, any>;
|
|
5266
5293
|
applied_diff_snapshot?: Record<string, any>;
|
|
5267
5294
|
brand?: DraftBrandDTO;
|
|
5268
5295
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -5342,6 +5369,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
5342
5369
|
unique_id?: number;
|
|
5343
5370
|
cpg_item_id?: string;
|
|
5344
5371
|
price_levels?: Record<string, any>;
|
|
5372
|
+
translation?: Record<string, any>;
|
|
5345
5373
|
applied_diff_snapshot?: Record<string, any>;
|
|
5346
5374
|
version?: number;
|
|
5347
5375
|
brand?: DraftBrandDTO;
|
|
@@ -5460,6 +5488,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
5460
5488
|
unique_id?: number;
|
|
5461
5489
|
cpg_item_id?: string;
|
|
5462
5490
|
price_levels?: Record<string, any>;
|
|
5491
|
+
translation?: Record<string, any>;
|
|
5463
5492
|
applied_diff_snapshot?: Record<string, any>;
|
|
5464
5493
|
brand?: DraftBrandDTO;
|
|
5465
5494
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -5569,6 +5598,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
5569
5598
|
unique_id?: number;
|
|
5570
5599
|
cpg_item_id?: string;
|
|
5571
5600
|
price_levels?: Record<string, any>;
|
|
5601
|
+
translation?: Record<string, any>;
|
|
5572
5602
|
applied_diff_snapshot?: Record<string, any>;
|
|
5573
5603
|
brand?: DraftBrandDTO;
|
|
5574
5604
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -6055,6 +6085,7 @@ export interface PostMenuV3DraftModifierGroupBody {
|
|
|
6055
6085
|
sizing?: string;
|
|
6056
6086
|
is_out_of_stock?: boolean;
|
|
6057
6087
|
is_incremental?: boolean;
|
|
6088
|
+
translation?: NameTranslation;
|
|
6058
6089
|
applied_diff_snapshot?: Record<string, any>;
|
|
6059
6090
|
brand?: DraftBrandDTO;
|
|
6060
6091
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -6115,6 +6146,7 @@ export interface PatchMenuV3DraftModifierGroupBody {
|
|
|
6115
6146
|
sizing?: string;
|
|
6116
6147
|
is_out_of_stock?: boolean;
|
|
6117
6148
|
is_incremental?: boolean;
|
|
6149
|
+
translation?: NameTranslation;
|
|
6118
6150
|
applied_diff_snapshot?: Record<string, any>;
|
|
6119
6151
|
version?: number;
|
|
6120
6152
|
brand?: DraftBrandDTO;
|
|
@@ -6199,6 +6231,7 @@ export type PostMenuV3DraftModifierGroupsBody = {
|
|
|
6199
6231
|
sizing?: string;
|
|
6200
6232
|
is_out_of_stock?: boolean;
|
|
6201
6233
|
is_incremental?: boolean;
|
|
6234
|
+
translation?: NameTranslation;
|
|
6202
6235
|
applied_diff_snapshot?: Record<string, any>;
|
|
6203
6236
|
brand?: DraftBrandDTO;
|
|
6204
6237
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -6278,6 +6311,7 @@ export interface PostMenuV3DraftModifierGroupDuplicateResponse {
|
|
|
6278
6311
|
sizing?: string;
|
|
6279
6312
|
is_out_of_stock?: boolean;
|
|
6280
6313
|
is_incremental?: boolean;
|
|
6314
|
+
translation?: NameTranslation;
|
|
6281
6315
|
applied_diff_snapshot?: Record<string, any>;
|
|
6282
6316
|
version?: number;
|
|
6283
6317
|
brand?: DraftBrandDTO;
|
|
@@ -6703,6 +6737,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
6703
6737
|
tags?: string[];
|
|
6704
6738
|
unique_id?: number;
|
|
6705
6739
|
price_levels?: Record<string, any>;
|
|
6740
|
+
translation?: Record<string, any>;
|
|
6706
6741
|
applied_diff_snapshot?: Record<string, any>;
|
|
6707
6742
|
brand?: DraftBrandDTO;
|
|
6708
6743
|
changes?: ModifierChangeDTO[];
|
|
@@ -6778,6 +6813,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
6778
6813
|
tags?: string[];
|
|
6779
6814
|
unique_id?: number;
|
|
6780
6815
|
price_levels?: Record<string, any>;
|
|
6816
|
+
translation?: Record<string, any>;
|
|
6781
6817
|
applied_diff_snapshot?: Record<string, any>;
|
|
6782
6818
|
version?: number;
|
|
6783
6819
|
brand?: DraftBrandDTO;
|
|
@@ -6892,6 +6928,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
6892
6928
|
tags?: string[];
|
|
6893
6929
|
unique_id?: number;
|
|
6894
6930
|
price_levels?: Record<string, any>;
|
|
6931
|
+
translation?: Record<string, any>;
|
|
6895
6932
|
applied_diff_snapshot?: Record<string, any>;
|
|
6896
6933
|
brand?: DraftBrandDTO;
|
|
6897
6934
|
changes?: ModifierChangeDTO[];
|
|
@@ -6997,6 +7034,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
6997
7034
|
tags?: string[];
|
|
6998
7035
|
unique_id?: number;
|
|
6999
7036
|
price_levels?: Record<string, any>;
|
|
7037
|
+
translation?: Record<string, any>;
|
|
7000
7038
|
applied_diff_snapshot?: Record<string, any>;
|
|
7001
7039
|
brand?: DraftBrandDTO;
|
|
7002
7040
|
changes?: ModifierChangeDTO[];
|
|
@@ -7608,6 +7646,7 @@ export interface PostMenuV4BrandMenuBody {
|
|
|
7608
7646
|
parent_id?: string;
|
|
7609
7647
|
name: string;
|
|
7610
7648
|
brand_id: string;
|
|
7649
|
+
translation?: NameTranslation;
|
|
7611
7650
|
applied_diff_snapshot?: Record<string, any>;
|
|
7612
7651
|
brand?: DraftBrandDTO;
|
|
7613
7652
|
changes?: MenuChangeDTO[];
|
|
@@ -7630,6 +7669,7 @@ export interface PostMenuV4BrandMenuResponse {
|
|
|
7630
7669
|
parent_id?: string;
|
|
7631
7670
|
name: string;
|
|
7632
7671
|
brand_id: string;
|
|
7672
|
+
translation?: NameTranslation;
|
|
7633
7673
|
applied_diff_snapshot?: Record<string, any>;
|
|
7634
7674
|
version?: number;
|
|
7635
7675
|
brand?: DraftBrandDTO;
|
|
@@ -7661,6 +7701,7 @@ export interface PatchMenuV4BrandMenuBody {
|
|
|
7661
7701
|
parent_id?: string;
|
|
7662
7702
|
name?: string;
|
|
7663
7703
|
brand_id?: string;
|
|
7704
|
+
translation?: NameTranslation;
|
|
7664
7705
|
applied_diff_snapshot?: Record<string, any>;
|
|
7665
7706
|
version?: number;
|
|
7666
7707
|
brand?: DraftBrandDTO;
|
|
@@ -7684,6 +7725,7 @@ export interface PatchMenuV4BrandMenuResponse {
|
|
|
7684
7725
|
parent_id?: string;
|
|
7685
7726
|
name: string;
|
|
7686
7727
|
brand_id: string;
|
|
7728
|
+
translation?: NameTranslation;
|
|
7687
7729
|
applied_diff_snapshot?: Record<string, any>;
|
|
7688
7730
|
version?: number;
|
|
7689
7731
|
brand?: DraftBrandDTO;
|
|
@@ -7718,6 +7760,7 @@ export interface DeleteMenuV4BrandMenuResponse {
|
|
|
7718
7760
|
parent_id?: string;
|
|
7719
7761
|
name: string;
|
|
7720
7762
|
brand_id: string;
|
|
7763
|
+
translation?: NameTranslation;
|
|
7721
7764
|
applied_diff_snapshot?: Record<string, any>;
|
|
7722
7765
|
version?: number;
|
|
7723
7766
|
brand?: DraftBrandDTO;
|
|
@@ -7886,6 +7929,7 @@ export interface PostMenuV4BrandCategoryBody {
|
|
|
7886
7929
|
is_active?: boolean;
|
|
7887
7930
|
brand_id: string;
|
|
7888
7931
|
menu_id: string;
|
|
7932
|
+
translation?: NameTranslation;
|
|
7889
7933
|
applied_diff_snapshot?: Record<string, any>;
|
|
7890
7934
|
menu?: DraftMenuDTO;
|
|
7891
7935
|
items?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -7911,6 +7955,7 @@ export interface PostMenuV4BrandCategoryResponse {
|
|
|
7911
7955
|
is_active?: boolean;
|
|
7912
7956
|
brand_id: string;
|
|
7913
7957
|
menu_id: string;
|
|
7958
|
+
translation?: NameTranslation;
|
|
7914
7959
|
applied_diff_snapshot?: Record<string, any>;
|
|
7915
7960
|
version?: number;
|
|
7916
7961
|
menu?: DraftMenuDTO;
|
|
@@ -7945,6 +7990,7 @@ export interface PatchMenuV4BrandCategoryBody {
|
|
|
7945
7990
|
is_active?: boolean;
|
|
7946
7991
|
brand_id?: string;
|
|
7947
7992
|
menu_id?: string;
|
|
7993
|
+
translation?: NameTranslation;
|
|
7948
7994
|
applied_diff_snapshot?: Record<string, any>;
|
|
7949
7995
|
version?: number;
|
|
7950
7996
|
menu?: DraftMenuDTO;
|
|
@@ -7967,6 +8013,7 @@ export interface PatchMenuV4BrandCategoryResponse {
|
|
|
7967
8013
|
is_active?: boolean;
|
|
7968
8014
|
brand_id: string;
|
|
7969
8015
|
menu_id: string;
|
|
8016
|
+
translation?: NameTranslation;
|
|
7970
8017
|
applied_diff_snapshot?: Record<string, any>;
|
|
7971
8018
|
menu?: DraftMenuDTO;
|
|
7972
8019
|
items?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -8003,6 +8050,7 @@ export interface DeleteMenuV4BrandCategoryResponse {
|
|
|
8003
8050
|
is_active?: boolean;
|
|
8004
8051
|
brand_id: string;
|
|
8005
8052
|
menu_id: string;
|
|
8053
|
+
translation?: NameTranslation;
|
|
8006
8054
|
applied_diff_snapshot?: Record<string, any>;
|
|
8007
8055
|
version?: number;
|
|
8008
8056
|
menu?: DraftMenuDTO;
|
|
@@ -8102,6 +8150,7 @@ export interface PostMenuV4BrandCategoryDuplicateBody {
|
|
|
8102
8150
|
is_active?: boolean;
|
|
8103
8151
|
brand_id?: string;
|
|
8104
8152
|
menu_id?: string;
|
|
8153
|
+
translation?: NameTranslation;
|
|
8105
8154
|
applied_diff_snapshot?: Record<string, any>;
|
|
8106
8155
|
version?: number;
|
|
8107
8156
|
menu?: DraftMenuDTO;
|
|
@@ -8128,6 +8177,7 @@ export interface PostMenuV4BrandCategoryDuplicateResponse {
|
|
|
8128
8177
|
is_active?: boolean;
|
|
8129
8178
|
brand_id: string;
|
|
8130
8179
|
menu_id: string;
|
|
8180
|
+
translation?: NameTranslation;
|
|
8131
8181
|
applied_diff_snapshot?: Record<string, any>;
|
|
8132
8182
|
version?: number;
|
|
8133
8183
|
menu?: DraftMenuDTO;
|
|
@@ -8164,6 +8214,7 @@ export interface PostMenuV4BrandMenuDuplicateBody {
|
|
|
8164
8214
|
parent_id?: string;
|
|
8165
8215
|
name?: string;
|
|
8166
8216
|
brand_id?: string;
|
|
8217
|
+
translation?: NameTranslation;
|
|
8167
8218
|
applied_diff_snapshot?: Record<string, any>;
|
|
8168
8219
|
version?: number;
|
|
8169
8220
|
brand?: DraftBrandDTO;
|
|
@@ -8187,6 +8238,7 @@ export interface PostMenuV4BrandMenuDuplicateResponse {
|
|
|
8187
8238
|
parent_id?: string;
|
|
8188
8239
|
name: string;
|
|
8189
8240
|
brand_id: string;
|
|
8241
|
+
translation?: NameTranslation;
|
|
8190
8242
|
applied_diff_snapshot?: Record<string, any>;
|
|
8191
8243
|
version?: number;
|
|
8192
8244
|
brand?: DraftBrandDTO;
|
|
@@ -8257,6 +8309,7 @@ export interface PostMenuV4ItemBody {
|
|
|
8257
8309
|
unique_id?: number;
|
|
8258
8310
|
cpg_item_id?: string;
|
|
8259
8311
|
price_levels?: Record<string, any>;
|
|
8312
|
+
translation?: Record<string, any>;
|
|
8260
8313
|
base_item_id?: string;
|
|
8261
8314
|
applied_diff_snapshot?: Record<string, any>;
|
|
8262
8315
|
brand?: DraftBrandDTO;
|
|
@@ -8306,6 +8359,7 @@ export interface PostMenuV4ItemResponse {
|
|
|
8306
8359
|
unique_id?: number;
|
|
8307
8360
|
cpg_item_id?: string;
|
|
8308
8361
|
price_levels?: Record<string, any>;
|
|
8362
|
+
translation?: Record<string, any>;
|
|
8309
8363
|
applied_diff_snapshot?: Record<string, any>;
|
|
8310
8364
|
version?: number;
|
|
8311
8365
|
brand?: DraftBrandDTO;
|
|
@@ -8357,6 +8411,7 @@ export type PostMenuV4ItemsBulkCreateBody = {
|
|
|
8357
8411
|
unique_id?: number;
|
|
8358
8412
|
cpg_item_id?: string;
|
|
8359
8413
|
price_levels?: Record<string, any>;
|
|
8414
|
+
translation?: Record<string, any>;
|
|
8360
8415
|
base_item_id?: string;
|
|
8361
8416
|
applied_diff_snapshot?: Record<string, any>;
|
|
8362
8417
|
brand?: DraftBrandDTO;
|
|
@@ -8427,6 +8482,7 @@ export interface GetMenuV4ItemResponse {
|
|
|
8427
8482
|
unique_id?: number;
|
|
8428
8483
|
cpg_item_id?: string;
|
|
8429
8484
|
price_levels?: Record<string, any>;
|
|
8485
|
+
translation?: Record<string, any>;
|
|
8430
8486
|
applied_diff_snapshot?: Record<string, any>;
|
|
8431
8487
|
version?: number;
|
|
8432
8488
|
brand?: DraftBrandDTO;
|
|
@@ -8484,6 +8540,7 @@ export interface PatchMenuV4ItemBody {
|
|
|
8484
8540
|
unique_id?: number;
|
|
8485
8541
|
cpg_item_id?: string;
|
|
8486
8542
|
price_levels?: Record<string, any>;
|
|
8543
|
+
translation?: Record<string, any>;
|
|
8487
8544
|
applied_diff_snapshot?: Record<string, any>;
|
|
8488
8545
|
brand?: DraftBrandDTO;
|
|
8489
8546
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -8532,6 +8589,7 @@ export interface PatchMenuV4ItemResponse {
|
|
|
8532
8589
|
unique_id?: number;
|
|
8533
8590
|
cpg_item_id?: string;
|
|
8534
8591
|
price_levels?: Record<string, any>;
|
|
8592
|
+
translation?: Record<string, any>;
|
|
8535
8593
|
applied_diff_snapshot?: Record<string, any>;
|
|
8536
8594
|
version?: number;
|
|
8537
8595
|
brand?: DraftBrandDTO;
|
|
@@ -8591,6 +8649,7 @@ export interface DeleteMenuV4ItemResponse {
|
|
|
8591
8649
|
unique_id?: number;
|
|
8592
8650
|
cpg_item_id?: string;
|
|
8593
8651
|
price_levels?: Record<string, any>;
|
|
8652
|
+
translation?: Record<string, any>;
|
|
8594
8653
|
applied_diff_snapshot?: Record<string, any>;
|
|
8595
8654
|
version?: number;
|
|
8596
8655
|
brand?: DraftBrandDTO;
|
|
@@ -8642,6 +8701,7 @@ export interface PatchMenuV4ItemsBulkUpdateBody {
|
|
|
8642
8701
|
unique_id?: number;
|
|
8643
8702
|
cpg_item_id?: string;
|
|
8644
8703
|
price_levels?: Record<string, any>;
|
|
8704
|
+
translation?: Record<string, any>;
|
|
8645
8705
|
applied_diff_snapshot?: Record<string, any>;
|
|
8646
8706
|
brand?: DraftBrandDTO;
|
|
8647
8707
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -8701,6 +8761,7 @@ export interface PostMenuV4ItemDuplicateBody {
|
|
|
8701
8761
|
unique_id?: number;
|
|
8702
8762
|
cpg_item_id?: string;
|
|
8703
8763
|
price_levels?: Record<string, any>;
|
|
8764
|
+
translation?: Record<string, any>;
|
|
8704
8765
|
applied_diff_snapshot?: Record<string, any>;
|
|
8705
8766
|
brand?: DraftBrandDTO;
|
|
8706
8767
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -8749,6 +8810,7 @@ export interface PostMenuV4ItemDuplicateResponse {
|
|
|
8749
8810
|
unique_id?: number;
|
|
8750
8811
|
cpg_item_id?: string;
|
|
8751
8812
|
price_levels?: Record<string, any>;
|
|
8813
|
+
translation?: Record<string, any>;
|
|
8752
8814
|
applied_diff_snapshot?: Record<string, any>;
|
|
8753
8815
|
version?: number;
|
|
8754
8816
|
brand?: DraftBrandDTO;
|
|
@@ -8871,6 +8933,7 @@ export interface PostMenuV4ModifierBody {
|
|
|
8871
8933
|
tags?: string[];
|
|
8872
8934
|
unique_id?: number;
|
|
8873
8935
|
price_levels?: Record<string, any>;
|
|
8936
|
+
translation?: Record<string, any>;
|
|
8874
8937
|
applied_diff_snapshot?: Record<string, any>;
|
|
8875
8938
|
brand?: DraftBrandDTO;
|
|
8876
8939
|
changes?: ModifierChangeDTO[];
|
|
@@ -8915,6 +8978,7 @@ export interface PostMenuV4ModifierResponse {
|
|
|
8915
8978
|
tags?: string[];
|
|
8916
8979
|
unique_id?: number;
|
|
8917
8980
|
price_levels?: Record<string, any>;
|
|
8981
|
+
translation?: Record<string, any>;
|
|
8918
8982
|
applied_diff_snapshot?: Record<string, any>;
|
|
8919
8983
|
version?: number;
|
|
8920
8984
|
brand?: DraftBrandDTO;
|
|
@@ -8976,6 +9040,7 @@ export interface GetMenuV4ModifierResponse {
|
|
|
8976
9040
|
tags?: string[];
|
|
8977
9041
|
unique_id?: number;
|
|
8978
9042
|
price_levels?: Record<string, any>;
|
|
9043
|
+
translation?: Record<string, any>;
|
|
8979
9044
|
applied_diff_snapshot?: Record<string, any>;
|
|
8980
9045
|
version?: number;
|
|
8981
9046
|
brand?: DraftBrandDTO;
|
|
@@ -9028,6 +9093,7 @@ export interface PatchMenuV4ModifierBody {
|
|
|
9028
9093
|
tags?: string[];
|
|
9029
9094
|
unique_id?: number;
|
|
9030
9095
|
price_levels?: Record<string, any>;
|
|
9096
|
+
translation?: Record<string, any>;
|
|
9031
9097
|
applied_diff_snapshot?: Record<string, any>;
|
|
9032
9098
|
brand?: DraftBrandDTO;
|
|
9033
9099
|
changes?: ModifierChangeDTO[];
|
|
@@ -9072,6 +9138,7 @@ export interface PatchMenuV4ModifierResponse {
|
|
|
9072
9138
|
tags?: string[];
|
|
9073
9139
|
unique_id?: number;
|
|
9074
9140
|
price_levels?: Record<string, any>;
|
|
9141
|
+
translation?: Record<string, any>;
|
|
9075
9142
|
applied_diff_snapshot?: Record<string, any>;
|
|
9076
9143
|
version?: number;
|
|
9077
9144
|
brand?: DraftBrandDTO;
|
|
@@ -9127,6 +9194,7 @@ export interface DeleteMenuV4ModifierResponse {
|
|
|
9127
9194
|
tags?: string[];
|
|
9128
9195
|
unique_id?: number;
|
|
9129
9196
|
price_levels?: Record<string, any>;
|
|
9197
|
+
translation?: Record<string, any>;
|
|
9130
9198
|
applied_diff_snapshot?: Record<string, any>;
|
|
9131
9199
|
version?: number;
|
|
9132
9200
|
brand?: DraftBrandDTO;
|
|
@@ -9176,6 +9244,7 @@ export interface PostMenuV4ModifierDuplicateBody {
|
|
|
9176
9244
|
tags?: string[];
|
|
9177
9245
|
unique_id?: number;
|
|
9178
9246
|
price_levels?: Record<string, any>;
|
|
9247
|
+
translation?: Record<string, any>;
|
|
9179
9248
|
applied_diff_snapshot?: Record<string, any>;
|
|
9180
9249
|
brand?: DraftBrandDTO;
|
|
9181
9250
|
changes?: ModifierChangeDTO[];
|
|
@@ -9220,6 +9289,7 @@ export interface PostMenuV4ModifierDuplicateResponse {
|
|
|
9220
9289
|
tags?: string[];
|
|
9221
9290
|
unique_id?: number;
|
|
9222
9291
|
price_levels?: Record<string, any>;
|
|
9292
|
+
translation?: Record<string, any>;
|
|
9223
9293
|
applied_diff_snapshot?: Record<string, any>;
|
|
9224
9294
|
version?: number;
|
|
9225
9295
|
brand?: DraftBrandDTO;
|
|
@@ -9271,6 +9341,7 @@ export interface PatchMenuV4ModifiersBulkUpdateBody {
|
|
|
9271
9341
|
tags?: string[];
|
|
9272
9342
|
unique_id?: number;
|
|
9273
9343
|
price_levels?: Record<string, any>;
|
|
9344
|
+
translation?: Record<string, any>;
|
|
9274
9345
|
applied_diff_snapshot?: Record<string, any>;
|
|
9275
9346
|
brand?: DraftBrandDTO;
|
|
9276
9347
|
changes?: ModifierChangeDTO[];
|
|
@@ -9328,6 +9399,7 @@ export interface PostMenuV4ModifierGroupBody {
|
|
|
9328
9399
|
sizing?: string;
|
|
9329
9400
|
is_out_of_stock?: boolean;
|
|
9330
9401
|
is_incremental?: boolean;
|
|
9402
|
+
translation?: NameTranslation;
|
|
9331
9403
|
applied_diff_snapshot?: Record<string, any>;
|
|
9332
9404
|
brand?: DraftBrandDTO;
|
|
9333
9405
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -9357,6 +9429,7 @@ export interface PostMenuV4ModifierGroupResponse {
|
|
|
9357
9429
|
sizing?: string;
|
|
9358
9430
|
is_out_of_stock?: boolean;
|
|
9359
9431
|
is_incremental?: boolean;
|
|
9432
|
+
translation?: NameTranslation;
|
|
9360
9433
|
applied_diff_snapshot?: Record<string, any>;
|
|
9361
9434
|
version?: number;
|
|
9362
9435
|
brand?: DraftBrandDTO;
|
|
@@ -9403,6 +9476,7 @@ export interface GetMenuV4ModifierGroupResponse {
|
|
|
9403
9476
|
sizing?: string;
|
|
9404
9477
|
is_out_of_stock?: boolean;
|
|
9405
9478
|
is_incremental?: boolean;
|
|
9479
|
+
translation?: NameTranslation;
|
|
9406
9480
|
applied_diff_snapshot?: Record<string, any>;
|
|
9407
9481
|
version?: number;
|
|
9408
9482
|
brand?: DraftBrandDTO;
|
|
@@ -9440,6 +9514,7 @@ export interface PatchMenuV4ModifierGroupBody {
|
|
|
9440
9514
|
sizing?: string;
|
|
9441
9515
|
is_out_of_stock?: boolean;
|
|
9442
9516
|
is_incremental?: boolean;
|
|
9517
|
+
translation?: NameTranslation;
|
|
9443
9518
|
applied_diff_snapshot?: Record<string, any>;
|
|
9444
9519
|
brand?: DraftBrandDTO;
|
|
9445
9520
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -9469,6 +9544,7 @@ export interface PatchMenuV4ModifierGroupResponse {
|
|
|
9469
9544
|
sizing?: string;
|
|
9470
9545
|
is_out_of_stock?: boolean;
|
|
9471
9546
|
is_incremental?: boolean;
|
|
9547
|
+
translation?: NameTranslation;
|
|
9472
9548
|
applied_diff_snapshot?: Record<string, any>;
|
|
9473
9549
|
version?: number;
|
|
9474
9550
|
brand?: DraftBrandDTO;
|
|
@@ -9509,6 +9585,7 @@ export interface DeleteMenuV4ModifierGroupResponse {
|
|
|
9509
9585
|
sizing?: string;
|
|
9510
9586
|
is_out_of_stock?: boolean;
|
|
9511
9587
|
is_incremental?: boolean;
|
|
9588
|
+
translation?: NameTranslation;
|
|
9512
9589
|
applied_diff_snapshot?: Record<string, any>;
|
|
9513
9590
|
version?: number;
|
|
9514
9591
|
brand?: DraftBrandDTO;
|
|
@@ -9583,6 +9660,7 @@ export interface PostMenuV4ModifierGroupDuplicateBody {
|
|
|
9583
9660
|
sizing?: string;
|
|
9584
9661
|
is_out_of_stock?: boolean;
|
|
9585
9662
|
is_incremental?: boolean;
|
|
9663
|
+
translation?: NameTranslation;
|
|
9586
9664
|
applied_diff_snapshot?: Record<string, any>;
|
|
9587
9665
|
brand?: DraftBrandDTO;
|
|
9588
9666
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -9612,6 +9690,7 @@ export interface PostMenuV4ModifierGroupDuplicateResponse {
|
|
|
9612
9690
|
sizing?: string;
|
|
9613
9691
|
is_out_of_stock?: boolean;
|
|
9614
9692
|
is_incremental?: boolean;
|
|
9693
|
+
translation?: NameTranslation;
|
|
9615
9694
|
applied_diff_snapshot?: Record<string, any>;
|
|
9616
9695
|
version?: number;
|
|
9617
9696
|
brand?: DraftBrandDTO;
|
|
@@ -9855,6 +9934,7 @@ export interface PostMenuV4ScheduleMenuResponse {
|
|
|
9855
9934
|
parent_id?: string;
|
|
9856
9935
|
name: string;
|
|
9857
9936
|
brand_id: string;
|
|
9937
|
+
translation?: NameTranslation;
|
|
9858
9938
|
applied_diff_snapshot?: Record<string, any>;
|
|
9859
9939
|
version?: number;
|
|
9860
9940
|
brand?: DraftBrandDTO;
|
|
@@ -9890,6 +9970,7 @@ export interface PostMenuV4UnscheduleMenuResponse {
|
|
|
9890
9970
|
parent_id?: string;
|
|
9891
9971
|
name: string;
|
|
9892
9972
|
brand_id: string;
|
|
9973
|
+
translation?: NameTranslation;
|
|
9893
9974
|
applied_diff_snapshot?: Record<string, any>;
|
|
9894
9975
|
version?: number;
|
|
9895
9976
|
brand?: DraftBrandDTO;
|
|
@@ -9929,6 +10010,7 @@ export interface GetMenuV4MenuResponse {
|
|
|
9929
10010
|
parent_id?: string;
|
|
9930
10011
|
name: string;
|
|
9931
10012
|
brand_id?: string;
|
|
10013
|
+
translation?: NameTranslation;
|
|
9932
10014
|
applied_diff_snapshot?: Record<string, any>;
|
|
9933
10015
|
version?: number;
|
|
9934
10016
|
brand?: DraftBrandDTO;
|
|
@@ -9969,6 +10051,7 @@ export interface GetMenuV4CategoryResponse {
|
|
|
9969
10051
|
is_active?: boolean;
|
|
9970
10052
|
brand_id?: string;
|
|
9971
10053
|
menu_id: string;
|
|
10054
|
+
translation?: NameTranslation;
|
|
9972
10055
|
applied_diff_snapshot?: Record<string, any>;
|
|
9973
10056
|
version?: number;
|
|
9974
10057
|
menu?: DraftMenuDTO;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
|
+
|
|
4
|
+
import { RequestQuery, BaseRequest } from './util';
|
|
5
|
+
|
|
6
|
+
export interface Timeslot {
|
|
7
|
+
// Start time of the timeslot
|
|
8
|
+
start_time: string;
|
|
9
|
+
// Number of orders in the timeslot
|
|
10
|
+
number_orders: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface GetTimeslotResponse {
|
|
14
|
+
// List of available timeslots for the brand
|
|
15
|
+
timeslots: Timeslot[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ErrorDisplayMessage {
|
|
19
|
+
// user message title
|
|
20
|
+
title: string;
|
|
21
|
+
// user message description
|
|
22
|
+
description: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ErrorData {
|
|
26
|
+
// http status code
|
|
27
|
+
statusCode: number;
|
|
28
|
+
// http status text
|
|
29
|
+
statusText: string;
|
|
30
|
+
timestamp: string;
|
|
31
|
+
displayMessage: ErrorDisplayMessage;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface Error {
|
|
35
|
+
// business error code
|
|
36
|
+
code: number;
|
|
37
|
+
// business error description
|
|
38
|
+
message: string;
|
|
39
|
+
data: ErrorData;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// GET /timeslots/brand/{brandId} - Get timeslots for brand
|
|
43
|
+
|
|
44
|
+
export interface GetTimeslotsBrandPath {
|
|
45
|
+
// brandId
|
|
46
|
+
brandId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface GetTimeslotsBrandQuery {
|
|
50
|
+
// timeslot length
|
|
51
|
+
duration: number;
|
|
52
|
+
// timeslot type
|
|
53
|
+
type: 'pickup' | 'delivery';
|
|
54
|
+
// start time
|
|
55
|
+
startTime: string;
|
|
56
|
+
// end_time
|
|
57
|
+
endTime: string;
|
|
58
|
+
// Graphql query string
|
|
59
|
+
_query?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type GetTimeslotsBrandResponse = GetTimeslotResponse;
|