@compassdigital/sdk.typescript 4.469.0 → 4.471.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 +7 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +30 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +79 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/messages/events/DiscountCreatedEvent.d.ts +12 -0
- package/lib/messages/events/DiscountCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/DiscountDeactivatedEvent.d.ts +12 -0
- package/lib/messages/events/DiscountDeactivatedEvent.d.ts.map +1 -1
- package/lib/messages/events/DiscountDeletedEvent.d.ts +12 -0
- package/lib/messages/events/DiscountDeletedEvent.d.ts.map +1 -1
- package/lib/messages/events/DiscountPublishedEvent.d.ts +12 -0
- package/lib/messages/events/DiscountPublishedEvent.d.ts.map +1 -1
- package/lib/messages/events/DiscountUpdatedEvent.d.ts +12 -0
- package/lib/messages/events/DiscountUpdatedEvent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +19 -0
- package/src/interface/centricos.ts +40 -0
- package/src/interface/menu.ts +79 -0
- package/src/messages/events/DiscountCreatedEvent.ts +14 -0
- package/src/messages/events/DiscountDeactivatedEvent.ts +14 -0
- package/src/messages/events/DiscountDeletedEvent.ts +14 -0
- package/src/messages/events/DiscountPublishedEvent.ts +14 -0
- package/src/messages/events/DiscountUpdatedEvent.ts +14 -0
package/src/interface/menu.ts
CHANGED
|
@@ -754,6 +754,7 @@ export interface DraftMenuDTO {
|
|
|
754
754
|
updated_at?: string;
|
|
755
755
|
deleted_at?: string;
|
|
756
756
|
parent_id?: string;
|
|
757
|
+
draft_parent_id?: string;
|
|
757
758
|
name?: string;
|
|
758
759
|
brand_id?: string;
|
|
759
760
|
translation?: NameTranslation;
|
|
@@ -780,6 +781,7 @@ export interface DraftCategoryDTO {
|
|
|
780
781
|
updated_at?: string;
|
|
781
782
|
deleted_at?: string;
|
|
782
783
|
parent_id?: string;
|
|
784
|
+
draft_parent_id?: string;
|
|
783
785
|
name?: string;
|
|
784
786
|
label?: string;
|
|
785
787
|
sequence?: number;
|
|
@@ -835,6 +837,7 @@ export interface DraftItemDTO {
|
|
|
835
837
|
updated_at?: string;
|
|
836
838
|
deleted_at?: string;
|
|
837
839
|
parent_id?: string;
|
|
840
|
+
draft_parent_id?: string;
|
|
838
841
|
name?: string;
|
|
839
842
|
name_on_receipt?: string;
|
|
840
843
|
name_on_kds?: string;
|
|
@@ -910,6 +913,7 @@ export interface DraftModifierGroupDTO {
|
|
|
910
913
|
updated_at?: string;
|
|
911
914
|
deleted_at?: string;
|
|
912
915
|
parent_id?: string;
|
|
916
|
+
draft_parent_id?: string;
|
|
913
917
|
name?: string;
|
|
914
918
|
label?: string;
|
|
915
919
|
min?: number;
|
|
@@ -963,6 +967,7 @@ export interface DraftModifierDTO {
|
|
|
963
967
|
updated_at?: string;
|
|
964
968
|
deleted_at?: string;
|
|
965
969
|
parent_id?: string;
|
|
970
|
+
draft_parent_id?: string;
|
|
966
971
|
name?: string;
|
|
967
972
|
name_on_receipt?: string;
|
|
968
973
|
name_on_kds?: string;
|
|
@@ -1411,6 +1416,7 @@ export interface PublishedMenuDTO {
|
|
|
1411
1416
|
updated_at?: string;
|
|
1412
1417
|
deleted_at?: string;
|
|
1413
1418
|
parent_id?: string;
|
|
1419
|
+
draft_parent_id?: string;
|
|
1414
1420
|
name?: string;
|
|
1415
1421
|
brand_id?: string;
|
|
1416
1422
|
translation?: NameTranslation;
|
|
@@ -1425,6 +1431,7 @@ export interface PublishedCategoryDTO {
|
|
|
1425
1431
|
updated_at?: string;
|
|
1426
1432
|
deleted_at?: string;
|
|
1427
1433
|
parent_id?: string;
|
|
1434
|
+
draft_parent_id?: string;
|
|
1428
1435
|
name?: string;
|
|
1429
1436
|
label?: string;
|
|
1430
1437
|
sequence?: number;
|
|
@@ -1459,6 +1466,7 @@ export interface PublishedItemDTO {
|
|
|
1459
1466
|
updated_at?: string;
|
|
1460
1467
|
deleted_at?: string;
|
|
1461
1468
|
parent_id?: string;
|
|
1469
|
+
draft_parent_id?: string;
|
|
1462
1470
|
name?: string;
|
|
1463
1471
|
name_on_receipt?: string;
|
|
1464
1472
|
name_on_kds?: string;
|
|
@@ -1511,6 +1519,7 @@ export interface PublishedModifierGroupDTO {
|
|
|
1511
1519
|
updated_at?: string;
|
|
1512
1520
|
deleted_at?: string;
|
|
1513
1521
|
parent_id?: string;
|
|
1522
|
+
draft_parent_id?: string;
|
|
1514
1523
|
name?: string;
|
|
1515
1524
|
label?: string;
|
|
1516
1525
|
min?: number;
|
|
@@ -1550,6 +1559,7 @@ export interface PublishedModifierDTO {
|
|
|
1550
1559
|
updated_at?: string;
|
|
1551
1560
|
deleted_at?: string;
|
|
1552
1561
|
parent_id?: string;
|
|
1562
|
+
draft_parent_id?: string;
|
|
1553
1563
|
name?: string;
|
|
1554
1564
|
name_on_receipt?: string;
|
|
1555
1565
|
name_on_kds?: string;
|
|
@@ -1833,6 +1843,7 @@ export interface DraftItemEntityDTO {
|
|
|
1833
1843
|
updated_at?: string;
|
|
1834
1844
|
deleted_at?: string;
|
|
1835
1845
|
parent_id?: string;
|
|
1846
|
+
draft_parent_id?: string;
|
|
1836
1847
|
name: string;
|
|
1837
1848
|
name_on_receipt?: string;
|
|
1838
1849
|
name_on_kds?: string;
|
|
@@ -1889,6 +1900,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1889
1900
|
updated_at?: string;
|
|
1890
1901
|
deleted_at?: string;
|
|
1891
1902
|
parent_id?: string;
|
|
1903
|
+
draft_parent_id?: string;
|
|
1892
1904
|
name: string;
|
|
1893
1905
|
name_on_receipt?: string;
|
|
1894
1906
|
name_on_kds?: string;
|
|
@@ -1991,6 +2003,7 @@ export interface DraftModifierGroupEntityDTO {
|
|
|
1991
2003
|
updated_at?: string;
|
|
1992
2004
|
deleted_at?: string;
|
|
1993
2005
|
parent_id?: string;
|
|
2006
|
+
draft_parent_id?: string;
|
|
1994
2007
|
name: string;
|
|
1995
2008
|
label?: string;
|
|
1996
2009
|
min?: number;
|
|
@@ -2113,6 +2126,7 @@ export interface PartialItemDTO {
|
|
|
2113
2126
|
cpg_item?: UniversalItemDTO;
|
|
2114
2127
|
stocks?: StockDTO[];
|
|
2115
2128
|
parent_id?: string;
|
|
2129
|
+
draft_parent_id?: string;
|
|
2116
2130
|
name?: string;
|
|
2117
2131
|
name_on_receipt?: string;
|
|
2118
2132
|
name_on_kds?: string;
|
|
@@ -2159,6 +2173,7 @@ export interface PartialModifierDTO {
|
|
|
2159
2173
|
children?: DraftModifierDTO[];
|
|
2160
2174
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
2161
2175
|
parent_id?: string;
|
|
2176
|
+
draft_parent_id?: string;
|
|
2162
2177
|
name?: string;
|
|
2163
2178
|
name_on_receipt?: string;
|
|
2164
2179
|
name_on_kds?: string;
|
|
@@ -4697,6 +4712,7 @@ export interface PostMenuV3DraftMenuBody {
|
|
|
4697
4712
|
station_id?: string;
|
|
4698
4713
|
price_level_id?: string;
|
|
4699
4714
|
parent_id?: string;
|
|
4715
|
+
draft_parent_id?: string;
|
|
4700
4716
|
name: string;
|
|
4701
4717
|
brand_id: string;
|
|
4702
4718
|
translation?: NameTranslation;
|
|
@@ -4751,6 +4767,7 @@ export interface PatchMenuV3DraftMenuBody {
|
|
|
4751
4767
|
price_level_id?: string;
|
|
4752
4768
|
id?: string;
|
|
4753
4769
|
parent_id?: string;
|
|
4770
|
+
draft_parent_id?: string;
|
|
4754
4771
|
name?: string;
|
|
4755
4772
|
brand_id?: string;
|
|
4756
4773
|
translation?: NameTranslation;
|
|
@@ -4827,6 +4844,7 @@ export type PostMenuV3DraftMenusBody = {
|
|
|
4827
4844
|
station_id?: string;
|
|
4828
4845
|
price_level_id?: string;
|
|
4829
4846
|
parent_id?: string;
|
|
4847
|
+
draft_parent_id?: string;
|
|
4830
4848
|
name: string;
|
|
4831
4849
|
brand_id: string;
|
|
4832
4850
|
translation?: NameTranslation;
|
|
@@ -4964,6 +4982,7 @@ export interface PostMenuV3DraftMenuDuplicateResponse {
|
|
|
4964
4982
|
updated_at?: string;
|
|
4965
4983
|
deleted_at?: string;
|
|
4966
4984
|
parent_id?: string;
|
|
4985
|
+
draft_parent_id?: string;
|
|
4967
4986
|
name: string;
|
|
4968
4987
|
brand_id: string;
|
|
4969
4988
|
translation?: NameTranslation;
|
|
@@ -5158,6 +5177,7 @@ export interface PostMenuV3DraftCategoryBody {
|
|
|
5158
5177
|
parent?: DraftCategoryDTO;
|
|
5159
5178
|
children?: DraftCategoryDTO[];
|
|
5160
5179
|
parent_id?: string;
|
|
5180
|
+
draft_parent_id?: string;
|
|
5161
5181
|
name: string;
|
|
5162
5182
|
label?: string;
|
|
5163
5183
|
sequence?: number;
|
|
@@ -5214,6 +5234,7 @@ export interface PatchMenuV3DraftCategoryBody {
|
|
|
5214
5234
|
children?: DraftCategoryDTO[];
|
|
5215
5235
|
id?: string;
|
|
5216
5236
|
parent_id?: string;
|
|
5237
|
+
draft_parent_id?: string;
|
|
5217
5238
|
name?: string;
|
|
5218
5239
|
label?: string;
|
|
5219
5240
|
sequence?: number;
|
|
@@ -5279,6 +5300,7 @@ export type PostMenuV3DraftCategoriesBody = {
|
|
|
5279
5300
|
parent?: DraftCategoryDTO;
|
|
5280
5301
|
children?: DraftCategoryDTO[];
|
|
5281
5302
|
parent_id?: string;
|
|
5303
|
+
draft_parent_id?: string;
|
|
5282
5304
|
name: string;
|
|
5283
5305
|
label?: string;
|
|
5284
5306
|
sequence?: number;
|
|
@@ -5364,6 +5386,7 @@ export interface PostMenuV3DraftCategoryDuplicateResponse {
|
|
|
5364
5386
|
updated_at?: string;
|
|
5365
5387
|
deleted_at?: string;
|
|
5366
5388
|
parent_id?: string;
|
|
5389
|
+
draft_parent_id?: string;
|
|
5367
5390
|
name: string;
|
|
5368
5391
|
label?: string;
|
|
5369
5392
|
sequence?: number;
|
|
@@ -5759,6 +5782,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
5759
5782
|
cpg_item?: UniversalItemDTO;
|
|
5760
5783
|
stocks?: StockDTO[];
|
|
5761
5784
|
parent_id?: string;
|
|
5785
|
+
draft_parent_id?: string;
|
|
5762
5786
|
name: string;
|
|
5763
5787
|
name_on_receipt?: string;
|
|
5764
5788
|
name_on_kds?: string;
|
|
@@ -5841,6 +5865,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
5841
5865
|
stocks?: StockDTO[];
|
|
5842
5866
|
id?: string;
|
|
5843
5867
|
parent_id?: string;
|
|
5868
|
+
draft_parent_id?: string;
|
|
5844
5869
|
name?: string;
|
|
5845
5870
|
name_on_receipt?: string;
|
|
5846
5871
|
name_on_kds?: string;
|
|
@@ -5962,6 +5987,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
5962
5987
|
cpg_item?: UniversalItemDTO;
|
|
5963
5988
|
stocks?: StockDTO[];
|
|
5964
5989
|
parent_id?: string;
|
|
5990
|
+
draft_parent_id?: string;
|
|
5965
5991
|
name: string;
|
|
5966
5992
|
name_on_receipt?: string;
|
|
5967
5993
|
name_on_kds?: string;
|
|
@@ -6072,6 +6098,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
6072
6098
|
stocks?: StockDTO[];
|
|
6073
6099
|
id?: string;
|
|
6074
6100
|
parent_id?: string;
|
|
6101
|
+
draft_parent_id?: string;
|
|
6075
6102
|
name?: string;
|
|
6076
6103
|
name_on_receipt?: string;
|
|
6077
6104
|
name_on_kds?: string;
|
|
@@ -6559,6 +6586,7 @@ export interface PostMenuV3DraftModifierGroupBody {
|
|
|
6559
6586
|
modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6560
6587
|
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
6561
6588
|
parent_id?: string;
|
|
6589
|
+
draft_parent_id?: string;
|
|
6562
6590
|
name: string;
|
|
6563
6591
|
label?: string;
|
|
6564
6592
|
min?: number;
|
|
@@ -6618,6 +6646,7 @@ export interface PatchMenuV3DraftModifierGroupBody {
|
|
|
6618
6646
|
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
6619
6647
|
id?: string;
|
|
6620
6648
|
parent_id?: string;
|
|
6649
|
+
draft_parent_id?: string;
|
|
6621
6650
|
name?: string;
|
|
6622
6651
|
label?: string;
|
|
6623
6652
|
min?: number;
|
|
@@ -6701,6 +6730,7 @@ export type PostMenuV3DraftModifierGroupsBody = {
|
|
|
6701
6730
|
modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6702
6731
|
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
6703
6732
|
parent_id?: string;
|
|
6733
|
+
draft_parent_id?: string;
|
|
6704
6734
|
name: string;
|
|
6705
6735
|
label?: string;
|
|
6706
6736
|
min?: number;
|
|
@@ -6779,6 +6809,7 @@ export interface PostMenuV3DraftModifierGroupDuplicateResponse {
|
|
|
6779
6809
|
updated_at?: string;
|
|
6780
6810
|
deleted_at?: string;
|
|
6781
6811
|
parent_id?: string;
|
|
6812
|
+
draft_parent_id?: string;
|
|
6782
6813
|
name: string;
|
|
6783
6814
|
label?: string;
|
|
6784
6815
|
min?: number;
|
|
@@ -7173,6 +7204,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
7173
7204
|
children?: DraftModifierDTO[];
|
|
7174
7205
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
7175
7206
|
parent_id?: string;
|
|
7207
|
+
draft_parent_id?: string;
|
|
7176
7208
|
name: string;
|
|
7177
7209
|
name_on_receipt?: string;
|
|
7178
7210
|
name_on_kds?: string;
|
|
@@ -7250,6 +7282,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
7250
7282
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
7251
7283
|
id?: string;
|
|
7252
7284
|
parent_id?: string;
|
|
7285
|
+
draft_parent_id?: string;
|
|
7253
7286
|
name?: string;
|
|
7254
7287
|
name_on_receipt?: string;
|
|
7255
7288
|
name_on_kds?: string;
|
|
@@ -7366,6 +7399,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
7366
7399
|
children?: DraftModifierDTO[];
|
|
7367
7400
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
7368
7401
|
parent_id?: string;
|
|
7402
|
+
draft_parent_id?: string;
|
|
7369
7403
|
name: string;
|
|
7370
7404
|
name_on_receipt?: string;
|
|
7371
7405
|
name_on_kds?: string;
|
|
@@ -7471,6 +7505,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
7471
7505
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
7472
7506
|
id?: string;
|
|
7473
7507
|
parent_id?: string;
|
|
7508
|
+
draft_parent_id?: string;
|
|
7474
7509
|
name?: string;
|
|
7475
7510
|
name_on_receipt?: string;
|
|
7476
7511
|
name_on_kds?: string;
|
|
@@ -8216,6 +8251,7 @@ export interface PostMenuV4BrandMenuBody {
|
|
|
8216
8251
|
station_id?: string;
|
|
8217
8252
|
price_level_id?: string;
|
|
8218
8253
|
parent_id?: string;
|
|
8254
|
+
draft_parent_id?: string;
|
|
8219
8255
|
name: string;
|
|
8220
8256
|
brand_id: string;
|
|
8221
8257
|
translation?: NameTranslation;
|
|
@@ -8241,6 +8277,7 @@ export interface PostMenuV4BrandMenuResponse {
|
|
|
8241
8277
|
updated_at?: string;
|
|
8242
8278
|
deleted_at?: string;
|
|
8243
8279
|
parent_id?: string;
|
|
8280
|
+
draft_parent_id?: string;
|
|
8244
8281
|
name: string;
|
|
8245
8282
|
brand_id: string;
|
|
8246
8283
|
translation?: NameTranslation;
|
|
@@ -8275,6 +8312,7 @@ export interface PatchMenuV4BrandMenuBody {
|
|
|
8275
8312
|
price_level_id?: string;
|
|
8276
8313
|
id?: string;
|
|
8277
8314
|
parent_id?: string;
|
|
8315
|
+
draft_parent_id?: string;
|
|
8278
8316
|
name?: string;
|
|
8279
8317
|
brand_id?: string;
|
|
8280
8318
|
translation?: NameTranslation;
|
|
@@ -8301,6 +8339,7 @@ export interface PatchMenuV4BrandMenuResponse {
|
|
|
8301
8339
|
updated_at?: string;
|
|
8302
8340
|
deleted_at?: string;
|
|
8303
8341
|
parent_id?: string;
|
|
8342
|
+
draft_parent_id?: string;
|
|
8304
8343
|
name: string;
|
|
8305
8344
|
brand_id: string;
|
|
8306
8345
|
translation?: NameTranslation;
|
|
@@ -8338,6 +8377,7 @@ export interface DeleteMenuV4BrandMenuResponse {
|
|
|
8338
8377
|
updated_at?: string;
|
|
8339
8378
|
deleted_at?: string;
|
|
8340
8379
|
parent_id?: string;
|
|
8380
|
+
draft_parent_id?: string;
|
|
8341
8381
|
name: string;
|
|
8342
8382
|
brand_id: string;
|
|
8343
8383
|
translation?: NameTranslation;
|
|
@@ -8497,6 +8537,7 @@ export interface PostMenuV4BrandCategoryBody {
|
|
|
8497
8537
|
parent?: DraftCategoryDTO;
|
|
8498
8538
|
children?: DraftCategoryDTO[];
|
|
8499
8539
|
parent_id?: string;
|
|
8540
|
+
draft_parent_id?: string;
|
|
8500
8541
|
name: string;
|
|
8501
8542
|
label?: string;
|
|
8502
8543
|
sequence?: number;
|
|
@@ -8524,6 +8565,7 @@ export interface PostMenuV4BrandCategoryResponse {
|
|
|
8524
8565
|
updated_at?: string;
|
|
8525
8566
|
deleted_at?: string;
|
|
8526
8567
|
parent_id?: string;
|
|
8568
|
+
draft_parent_id?: string;
|
|
8527
8569
|
name: string;
|
|
8528
8570
|
label?: string;
|
|
8529
8571
|
sequence?: number;
|
|
@@ -8560,6 +8602,7 @@ export interface PatchMenuV4BrandCategoryBody {
|
|
|
8560
8602
|
children?: DraftCategoryDTO[];
|
|
8561
8603
|
id?: string;
|
|
8562
8604
|
parent_id?: string;
|
|
8605
|
+
draft_parent_id?: string;
|
|
8563
8606
|
name?: string;
|
|
8564
8607
|
label?: string;
|
|
8565
8608
|
sequence?: number;
|
|
@@ -8588,6 +8631,7 @@ export interface PatchMenuV4BrandCategoryResponse {
|
|
|
8588
8631
|
updated_at?: string;
|
|
8589
8632
|
deleted_at?: string;
|
|
8590
8633
|
parent_id?: string;
|
|
8634
|
+
draft_parent_id?: string;
|
|
8591
8635
|
name: string;
|
|
8592
8636
|
label?: string;
|
|
8593
8637
|
sequence?: number;
|
|
@@ -8627,6 +8671,7 @@ export interface DeleteMenuV4BrandCategoryResponse {
|
|
|
8627
8671
|
updated_at?: string;
|
|
8628
8672
|
deleted_at?: string;
|
|
8629
8673
|
parent_id?: string;
|
|
8674
|
+
draft_parent_id?: string;
|
|
8630
8675
|
name: string;
|
|
8631
8676
|
label?: string;
|
|
8632
8677
|
sequence?: number;
|
|
@@ -8753,6 +8798,7 @@ export interface PostMenuV4BrandCategoryDuplicateBody {
|
|
|
8753
8798
|
children?: DraftCategoryDTO[];
|
|
8754
8799
|
id?: string;
|
|
8755
8800
|
parent_id?: string;
|
|
8801
|
+
draft_parent_id?: string;
|
|
8756
8802
|
name?: string;
|
|
8757
8803
|
label?: string;
|
|
8758
8804
|
sequence?: number;
|
|
@@ -8781,6 +8827,7 @@ export interface PostMenuV4BrandCategoryDuplicateResponse {
|
|
|
8781
8827
|
updated_at?: string;
|
|
8782
8828
|
deleted_at?: string;
|
|
8783
8829
|
parent_id?: string;
|
|
8830
|
+
draft_parent_id?: string;
|
|
8784
8831
|
name: string;
|
|
8785
8832
|
label?: string;
|
|
8786
8833
|
sequence?: number;
|
|
@@ -8823,6 +8870,7 @@ export interface PostMenuV4BrandMenuDuplicateBody {
|
|
|
8823
8870
|
price_level_id?: string;
|
|
8824
8871
|
id?: string;
|
|
8825
8872
|
parent_id?: string;
|
|
8873
|
+
draft_parent_id?: string;
|
|
8826
8874
|
name?: string;
|
|
8827
8875
|
brand_id?: string;
|
|
8828
8876
|
translation?: NameTranslation;
|
|
@@ -8849,6 +8897,7 @@ export interface PostMenuV4BrandMenuDuplicateResponse {
|
|
|
8849
8897
|
updated_at?: string;
|
|
8850
8898
|
deleted_at?: string;
|
|
8851
8899
|
parent_id?: string;
|
|
8900
|
+
draft_parent_id?: string;
|
|
8852
8901
|
name: string;
|
|
8853
8902
|
brand_id: string;
|
|
8854
8903
|
translation?: NameTranslation;
|
|
@@ -8952,6 +9001,7 @@ export interface PostMenuV4ItemBody {
|
|
|
8952
9001
|
cpg_item?: UniversalItemDTO;
|
|
8953
9002
|
stocks?: StockDTO[];
|
|
8954
9003
|
parent_id?: string;
|
|
9004
|
+
draft_parent_id?: string;
|
|
8955
9005
|
name: string;
|
|
8956
9006
|
name_on_receipt?: string;
|
|
8957
9007
|
name_on_kds?: string;
|
|
@@ -9006,6 +9056,7 @@ export interface PostMenuV4ItemResponse {
|
|
|
9006
9056
|
updated_at?: string;
|
|
9007
9057
|
deleted_at?: string;
|
|
9008
9058
|
parent_id?: string;
|
|
9059
|
+
draft_parent_id?: string;
|
|
9009
9060
|
name: string;
|
|
9010
9061
|
name_on_receipt?: string;
|
|
9011
9062
|
name_on_kds?: string;
|
|
@@ -9062,6 +9113,7 @@ export type PostMenuV4ItemsBulkCreateBody = {
|
|
|
9062
9113
|
cpg_item?: UniversalItemDTO;
|
|
9063
9114
|
stocks?: StockDTO[];
|
|
9064
9115
|
parent_id?: string;
|
|
9116
|
+
draft_parent_id?: string;
|
|
9065
9117
|
name: string;
|
|
9066
9118
|
name_on_receipt?: string;
|
|
9067
9119
|
name_on_kds?: string;
|
|
@@ -9135,6 +9187,7 @@ export interface GetMenuV4ItemResponse {
|
|
|
9135
9187
|
updated_at?: string;
|
|
9136
9188
|
deleted_at?: string;
|
|
9137
9189
|
parent_id?: string;
|
|
9190
|
+
draft_parent_id?: string;
|
|
9138
9191
|
name: string;
|
|
9139
9192
|
name_on_receipt?: string;
|
|
9140
9193
|
name_on_kds?: string;
|
|
@@ -9197,6 +9250,7 @@ export interface PatchMenuV4ItemBody {
|
|
|
9197
9250
|
cpg_item?: UniversalItemDTO;
|
|
9198
9251
|
stocks?: StockDTO[];
|
|
9199
9252
|
parent_id?: string;
|
|
9253
|
+
draft_parent_id?: string;
|
|
9200
9254
|
name?: string;
|
|
9201
9255
|
name_on_receipt?: string;
|
|
9202
9256
|
name_on_kds?: string;
|
|
@@ -9250,6 +9304,7 @@ export interface PatchMenuV4ItemResponse {
|
|
|
9250
9304
|
updated_at?: string;
|
|
9251
9305
|
deleted_at?: string;
|
|
9252
9306
|
parent_id?: string;
|
|
9307
|
+
draft_parent_id?: string;
|
|
9253
9308
|
name: string;
|
|
9254
9309
|
name_on_receipt?: string;
|
|
9255
9310
|
name_on_kds?: string;
|
|
@@ -9314,6 +9369,7 @@ export interface DeleteMenuV4ItemResponse {
|
|
|
9314
9369
|
updated_at?: string;
|
|
9315
9370
|
deleted_at?: string;
|
|
9316
9371
|
parent_id?: string;
|
|
9372
|
+
draft_parent_id?: string;
|
|
9317
9373
|
name: string;
|
|
9318
9374
|
name_on_receipt?: string;
|
|
9319
9375
|
name_on_kds?: string;
|
|
@@ -9370,6 +9426,7 @@ export interface PatchMenuV4ItemsBulkUpdateBody {
|
|
|
9370
9426
|
stocks?: StockDTO[];
|
|
9371
9427
|
id?: string;
|
|
9372
9428
|
parent_id?: string;
|
|
9429
|
+
draft_parent_id?: string;
|
|
9373
9430
|
name?: string;
|
|
9374
9431
|
name_on_receipt?: string;
|
|
9375
9432
|
name_on_kds?: string;
|
|
@@ -9433,6 +9490,7 @@ export interface PatchMenuV4ItemsBulkPriceUpdateBody {
|
|
|
9433
9490
|
stocks?: StockDTO[];
|
|
9434
9491
|
id?: string;
|
|
9435
9492
|
parent_id?: string;
|
|
9493
|
+
draft_parent_id?: string;
|
|
9436
9494
|
name?: string;
|
|
9437
9495
|
name_on_receipt?: string;
|
|
9438
9496
|
name_on_kds?: string;
|
|
@@ -9506,6 +9564,7 @@ export interface PostMenuV4ItemDuplicateResponse {
|
|
|
9506
9564
|
updated_at?: string;
|
|
9507
9565
|
deleted_at?: string;
|
|
9508
9566
|
parent_id?: string;
|
|
9567
|
+
draft_parent_id?: string;
|
|
9509
9568
|
name: string;
|
|
9510
9569
|
name_on_receipt?: string;
|
|
9511
9570
|
name_on_kds?: string;
|
|
@@ -9649,6 +9708,7 @@ export interface PostMenuV4ModifierBody {
|
|
|
9649
9708
|
children?: DraftModifierDTO[];
|
|
9650
9709
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
9651
9710
|
parent_id?: string;
|
|
9711
|
+
draft_parent_id?: string;
|
|
9652
9712
|
name: string;
|
|
9653
9713
|
name_on_receipt?: string;
|
|
9654
9714
|
name_on_kds?: string;
|
|
@@ -9697,6 +9757,7 @@ export interface PostMenuV4ModifierResponse {
|
|
|
9697
9757
|
updated_at?: string;
|
|
9698
9758
|
deleted_at?: string;
|
|
9699
9759
|
parent_id?: string;
|
|
9760
|
+
draft_parent_id?: string;
|
|
9700
9761
|
name: string;
|
|
9701
9762
|
name_on_receipt?: string;
|
|
9702
9763
|
name_on_kds?: string;
|
|
@@ -9760,6 +9821,7 @@ export interface GetMenuV4ModifierResponse {
|
|
|
9760
9821
|
updated_at?: string;
|
|
9761
9822
|
deleted_at?: string;
|
|
9762
9823
|
parent_id?: string;
|
|
9824
|
+
draft_parent_id?: string;
|
|
9763
9825
|
name: string;
|
|
9764
9826
|
name_on_receipt?: string;
|
|
9765
9827
|
name_on_kds?: string;
|
|
@@ -9816,6 +9878,7 @@ export interface PatchMenuV4ModifierBody {
|
|
|
9816
9878
|
children?: DraftModifierDTO[];
|
|
9817
9879
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
9818
9880
|
parent_id?: string;
|
|
9881
|
+
draft_parent_id?: string;
|
|
9819
9882
|
name?: string;
|
|
9820
9883
|
name_on_receipt?: string;
|
|
9821
9884
|
name_on_kds?: string;
|
|
@@ -9864,6 +9927,7 @@ export interface PatchMenuV4ModifierResponse {
|
|
|
9864
9927
|
updated_at?: string;
|
|
9865
9928
|
deleted_at?: string;
|
|
9866
9929
|
parent_id?: string;
|
|
9930
|
+
draft_parent_id?: string;
|
|
9867
9931
|
name: string;
|
|
9868
9932
|
name_on_receipt?: string;
|
|
9869
9933
|
name_on_kds?: string;
|
|
@@ -9923,6 +9987,7 @@ export interface DeleteMenuV4ModifierResponse {
|
|
|
9923
9987
|
updated_at?: string;
|
|
9924
9988
|
deleted_at?: string;
|
|
9925
9989
|
parent_id?: string;
|
|
9990
|
+
draft_parent_id?: string;
|
|
9926
9991
|
name: string;
|
|
9927
9992
|
name_on_receipt?: string;
|
|
9928
9993
|
name_on_kds?: string;
|
|
@@ -9986,6 +10051,7 @@ export interface PostMenuV4ModifierDuplicateResponse {
|
|
|
9986
10051
|
updated_at?: string;
|
|
9987
10052
|
deleted_at?: string;
|
|
9988
10053
|
parent_id?: string;
|
|
10054
|
+
draft_parent_id?: string;
|
|
9989
10055
|
name: string;
|
|
9990
10056
|
name_on_receipt?: string;
|
|
9991
10057
|
name_on_kds?: string;
|
|
@@ -10041,6 +10107,7 @@ export interface PatchMenuV4ModifiersBulkUpdateBody {
|
|
|
10041
10107
|
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
10042
10108
|
id?: string;
|
|
10043
10109
|
parent_id?: string;
|
|
10110
|
+
draft_parent_id?: string;
|
|
10044
10111
|
name?: string;
|
|
10045
10112
|
name_on_receipt?: string;
|
|
10046
10113
|
name_on_kds?: string;
|
|
@@ -10132,6 +10199,7 @@ export interface PostMenuV4ModifierGroupBody {
|
|
|
10132
10199
|
modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
10133
10200
|
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
10134
10201
|
parent_id?: string;
|
|
10202
|
+
draft_parent_id?: string;
|
|
10135
10203
|
name: string;
|
|
10136
10204
|
label?: string;
|
|
10137
10205
|
min?: number;
|
|
@@ -10162,6 +10230,7 @@ export interface PostMenuV4ModifierGroupResponse {
|
|
|
10162
10230
|
updated_at?: string;
|
|
10163
10231
|
deleted_at?: string;
|
|
10164
10232
|
parent_id?: string;
|
|
10233
|
+
draft_parent_id?: string;
|
|
10165
10234
|
name: string;
|
|
10166
10235
|
label?: string;
|
|
10167
10236
|
min?: number;
|
|
@@ -10207,6 +10276,7 @@ export interface GetMenuV4ModifierGroupResponse {
|
|
|
10207
10276
|
updated_at?: string;
|
|
10208
10277
|
deleted_at?: string;
|
|
10209
10278
|
parent_id?: string;
|
|
10279
|
+
draft_parent_id?: string;
|
|
10210
10280
|
name: string;
|
|
10211
10281
|
label?: string;
|
|
10212
10282
|
min?: number;
|
|
@@ -10245,6 +10315,7 @@ export interface PatchMenuV4ModifierGroupBody {
|
|
|
10245
10315
|
modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
10246
10316
|
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
10247
10317
|
parent_id?: string;
|
|
10318
|
+
draft_parent_id?: string;
|
|
10248
10319
|
name?: string;
|
|
10249
10320
|
label?: string;
|
|
10250
10321
|
min?: number;
|
|
@@ -10275,6 +10346,7 @@ export interface PatchMenuV4ModifierGroupResponse {
|
|
|
10275
10346
|
updated_at?: string;
|
|
10276
10347
|
deleted_at?: string;
|
|
10277
10348
|
parent_id?: string;
|
|
10349
|
+
draft_parent_id?: string;
|
|
10278
10350
|
name: string;
|
|
10279
10351
|
label?: string;
|
|
10280
10352
|
min?: number;
|
|
@@ -10316,6 +10388,7 @@ export interface DeleteMenuV4ModifierGroupResponse {
|
|
|
10316
10388
|
updated_at?: string;
|
|
10317
10389
|
deleted_at?: string;
|
|
10318
10390
|
parent_id?: string;
|
|
10391
|
+
draft_parent_id?: string;
|
|
10319
10392
|
name: string;
|
|
10320
10393
|
label?: string;
|
|
10321
10394
|
min?: number;
|
|
@@ -10391,6 +10464,7 @@ export interface PostMenuV4ModifierGroupDuplicateBody {
|
|
|
10391
10464
|
modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
10392
10465
|
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
10393
10466
|
parent_id?: string;
|
|
10467
|
+
draft_parent_id?: string;
|
|
10394
10468
|
name?: string;
|
|
10395
10469
|
label?: string;
|
|
10396
10470
|
min?: number;
|
|
@@ -10421,6 +10495,7 @@ export interface PostMenuV4ModifierGroupDuplicateResponse {
|
|
|
10421
10495
|
updated_at?: string;
|
|
10422
10496
|
deleted_at?: string;
|
|
10423
10497
|
parent_id?: string;
|
|
10498
|
+
draft_parent_id?: string;
|
|
10424
10499
|
name: string;
|
|
10425
10500
|
label?: string;
|
|
10426
10501
|
min?: number;
|
|
@@ -10703,6 +10778,7 @@ export interface PostMenuV4ScheduleMenuResponse {
|
|
|
10703
10778
|
updated_at?: string;
|
|
10704
10779
|
deleted_at?: string;
|
|
10705
10780
|
parent_id?: string;
|
|
10781
|
+
draft_parent_id?: string;
|
|
10706
10782
|
name: string;
|
|
10707
10783
|
brand_id: string;
|
|
10708
10784
|
translation?: NameTranslation;
|
|
@@ -10741,6 +10817,7 @@ export interface PostMenuV4UnscheduleMenuResponse {
|
|
|
10741
10817
|
updated_at?: string;
|
|
10742
10818
|
deleted_at?: string;
|
|
10743
10819
|
parent_id?: string;
|
|
10820
|
+
draft_parent_id?: string;
|
|
10744
10821
|
name: string;
|
|
10745
10822
|
brand_id: string;
|
|
10746
10823
|
translation?: NameTranslation;
|
|
@@ -10781,6 +10858,7 @@ export interface GetMenuV4MenuResponse {
|
|
|
10781
10858
|
updated_at?: string;
|
|
10782
10859
|
deleted_at?: string;
|
|
10783
10860
|
parent_id?: string;
|
|
10861
|
+
draft_parent_id?: string;
|
|
10784
10862
|
name: string;
|
|
10785
10863
|
brand_id?: string;
|
|
10786
10864
|
translation?: NameTranslation;
|
|
@@ -10861,6 +10939,7 @@ export interface GetMenuV4CategoryResponse {
|
|
|
10861
10939
|
updated_at?: string;
|
|
10862
10940
|
deleted_at?: string;
|
|
10863
10941
|
parent_id?: string;
|
|
10942
|
+
draft_parent_id?: string;
|
|
10864
10943
|
name: string;
|
|
10865
10944
|
label?: string;
|
|
10866
10945
|
sequence?: number;
|
|
@@ -66,6 +66,7 @@ export interface DiscountAssociation {
|
|
|
66
66
|
site?: string;
|
|
67
67
|
brand?: string;
|
|
68
68
|
providerData?: ProviderData;
|
|
69
|
+
meta: DiscountAssociationMeta;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
export interface ProviderData {
|
|
@@ -75,11 +76,24 @@ export interface ProviderData {
|
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
78
|
|
|
79
|
+
export interface DiscountAssociationMeta {
|
|
80
|
+
appName: string;
|
|
81
|
+
name: string;
|
|
82
|
+
siteOfBrand?: SiteOrBrand;
|
|
83
|
+
brandsOfSite?: SiteOrBrand[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface SiteOrBrand {
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
78
91
|
export interface ChannelConfig {
|
|
79
92
|
thrive: boolean;
|
|
80
93
|
boost: boolean;
|
|
81
94
|
genius: boolean;
|
|
82
95
|
agilysys: boolean;
|
|
96
|
+
volante: boolean;
|
|
83
97
|
}
|
|
84
98
|
|
|
85
99
|
export type AppliesTo = 'order' | 'items';
|
|
@@ -8,6 +8,7 @@ export interface DiscountAssociation {
|
|
|
8
8
|
site?: string;
|
|
9
9
|
brand?: string;
|
|
10
10
|
providerData?: ProviderData;
|
|
11
|
+
meta: DiscountAssociationMeta;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export interface ProviderData {
|
|
@@ -17,11 +18,24 @@ export interface ProviderData {
|
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
export interface DiscountAssociationMeta {
|
|
22
|
+
appName: string;
|
|
23
|
+
name: string;
|
|
24
|
+
siteOfBrand?: SiteOrBrand;
|
|
25
|
+
brandsOfSite?: SiteOrBrand[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface SiteOrBrand {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
20
33
|
export interface ChannelConfig {
|
|
21
34
|
thrive: boolean;
|
|
22
35
|
boost: boolean;
|
|
23
36
|
genius: boolean;
|
|
24
37
|
agilysys: boolean;
|
|
38
|
+
volante: boolean;
|
|
25
39
|
}
|
|
26
40
|
|
|
27
41
|
export interface DiscountDeactivatedEvent {
|
|
@@ -8,6 +8,7 @@ export interface DiscountAssociation {
|
|
|
8
8
|
site?: string;
|
|
9
9
|
brand?: string;
|
|
10
10
|
providerData?: ProviderData;
|
|
11
|
+
meta: DiscountAssociationMeta;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export interface ProviderData {
|
|
@@ -17,11 +18,24 @@ export interface ProviderData {
|
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
export interface DiscountAssociationMeta {
|
|
22
|
+
appName: string;
|
|
23
|
+
name: string;
|
|
24
|
+
siteOfBrand?: SiteOrBrand;
|
|
25
|
+
brandsOfSite?: SiteOrBrand[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface SiteOrBrand {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
20
33
|
export interface ChannelConfig {
|
|
21
34
|
thrive: boolean;
|
|
22
35
|
boost: boolean;
|
|
23
36
|
genius: boolean;
|
|
24
37
|
agilysys: boolean;
|
|
38
|
+
volante: boolean;
|
|
25
39
|
}
|
|
26
40
|
|
|
27
41
|
export interface DiscountDeletedEvent {
|