@compassdigital/sdk.typescript 4.104.0 → 4.106.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/base.d.ts +1 -0
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +3 -0
- package/lib/base.js.map +1 -1
- package/lib/interface/discount.d.ts +17 -25
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/location.d.ts +1 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +47 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/base.ts +5 -0
- package/src/interface/announcement.ts +4 -4
- package/src/interface/discount.ts +27 -29
- package/src/interface/location.ts +8 -7
- package/src/interface/mealplan.ts +1 -1
- package/src/interface/menu.ts +51 -4
- package/src/interface/order.ts +13 -13
- package/src/interface/partner.ts +8 -8
- package/src/interface/shoppingcart.ts +1 -1
- package/src/interface/task.ts +1 -1
- package/src/interface/user.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compassdigital/sdk.typescript",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.106.0",
|
|
4
4
|
"description": "Compass Digital Labs TypeScript SDK",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@compassdigital/review": "^7.3.0",
|
|
49
|
-
"@compassdigital/sdk.typescript.cli": "^4.
|
|
49
|
+
"@compassdigital/sdk.typescript.cli": "^4.32.0",
|
|
50
50
|
"@swc/core": "^1.4.1",
|
|
51
51
|
"@swc/jest": "^0.2.36",
|
|
52
52
|
"@types/jest": "^29.2.4",
|
package/src/base.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface RequestOptions {
|
|
|
25
25
|
// https.Agent agent to use
|
|
26
26
|
// Note: we use 'any' type to remain browser compatible
|
|
27
27
|
agent?: any;
|
|
28
|
+
// flag to indicate internal requests
|
|
29
|
+
internal?: boolean;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
/**
|
|
@@ -484,6 +486,9 @@ export abstract class BaseServiceClient {
|
|
|
484
486
|
'Content-Type': 'application/json',
|
|
485
487
|
...options.headers,
|
|
486
488
|
};
|
|
489
|
+
if (options.internal) {
|
|
490
|
+
headers['X-Request-Type'] = 'internal';
|
|
491
|
+
}
|
|
487
492
|
if (options.token) {
|
|
488
493
|
headers.Authorization = `Bearer ${options.token}`;
|
|
489
494
|
}
|
|
@@ -24,7 +24,7 @@ export interface AnnouncementPostRequestBody {
|
|
|
24
24
|
is_global?: boolean;
|
|
25
25
|
allowed_resources?: string[];
|
|
26
26
|
position?: number;
|
|
27
|
-
|
|
27
|
+
// @deprecated
|
|
28
28
|
active?: boolean;
|
|
29
29
|
status?: Status;
|
|
30
30
|
// Announcement Properties
|
|
@@ -65,7 +65,7 @@ export interface AnnouncementPatchRequestBody {
|
|
|
65
65
|
is_global?: boolean;
|
|
66
66
|
allowed_resources?: string[];
|
|
67
67
|
position?: number;
|
|
68
|
-
|
|
68
|
+
// @deprecated
|
|
69
69
|
active?: boolean;
|
|
70
70
|
status?: Status;
|
|
71
71
|
// Announcement Properties
|
|
@@ -89,7 +89,7 @@ export interface Announcement {
|
|
|
89
89
|
// True if all the sites are linked
|
|
90
90
|
is_global: boolean;
|
|
91
91
|
allowed_resources: string[];
|
|
92
|
-
|
|
92
|
+
// @deprecated
|
|
93
93
|
active: boolean;
|
|
94
94
|
status?: Status;
|
|
95
95
|
schedule?: Schedule;
|
|
@@ -103,7 +103,7 @@ export interface Announcement {
|
|
|
103
103
|
en?: AnnouncementInfo;
|
|
104
104
|
fr?: AnnouncementInfo;
|
|
105
105
|
};
|
|
106
|
-
|
|
106
|
+
// @deprecated
|
|
107
107
|
date?: Record<string, any>;
|
|
108
108
|
author?: User;
|
|
109
109
|
edit_history?: EditHistory[];
|
|
@@ -37,16 +37,16 @@ export interface DiscountMeta {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface GetDiscountResponseDTO {
|
|
40
|
-
// user
|
|
41
|
-
createdBy
|
|
40
|
+
// user id of discount creator
|
|
41
|
+
createdBy: string;
|
|
42
|
+
// user id of most recent update
|
|
43
|
+
updatedBy: string;
|
|
42
44
|
id: string;
|
|
43
45
|
createdAt: string;
|
|
44
46
|
updatedAt: string;
|
|
45
|
-
|
|
46
|
-
name?: string;
|
|
47
|
+
name: string;
|
|
47
48
|
status?: DiscountStatus;
|
|
48
49
|
is?: DiscountIs;
|
|
49
|
-
app?: string;
|
|
50
50
|
meta?: DiscountMeta;
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -63,16 +63,16 @@ export interface NotFoundErrorDTO {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export interface DiscountDTO {
|
|
66
|
-
// user
|
|
67
|
-
createdBy
|
|
66
|
+
// user id of discount creator
|
|
67
|
+
createdBy: string;
|
|
68
|
+
// user id of most recent update
|
|
69
|
+
updatedBy: string;
|
|
68
70
|
id: string;
|
|
69
71
|
createdAt: string;
|
|
70
72
|
updatedAt: string;
|
|
71
|
-
|
|
72
|
-
name?: string;
|
|
73
|
+
name: string;
|
|
73
74
|
status?: DiscountStatus;
|
|
74
75
|
is?: DiscountIs;
|
|
75
|
-
app?: string;
|
|
76
76
|
meta?: DiscountMeta;
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -89,72 +89,70 @@ export interface BadRequestErrorDTO {
|
|
|
89
89
|
export interface PostDiscountRequestDTO {
|
|
90
90
|
createdBy: string;
|
|
91
91
|
name: string;
|
|
92
|
-
app: string;
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
export interface PostDiscountResponseDTO {
|
|
96
95
|
createdBy: string;
|
|
97
96
|
name: string;
|
|
98
|
-
app: string;
|
|
99
97
|
id: string;
|
|
100
98
|
createdAt: string;
|
|
101
99
|
updatedAt: string;
|
|
100
|
+
updatedBy: string;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
export interface PutDiscountRequestDTO {
|
|
104
|
+
// user id of most recent update
|
|
105
|
+
updatedBy: string;
|
|
105
106
|
taxonomy?: Record<string, any>;
|
|
106
|
-
|
|
107
|
-
name?: string;
|
|
107
|
+
name: string;
|
|
108
108
|
status?: DiscountStatus;
|
|
109
109
|
is?: DiscountIs;
|
|
110
|
-
app?: string;
|
|
111
110
|
meta?: DiscountMeta;
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
export interface PutDiscountResponseDTO {
|
|
115
|
-
// user
|
|
116
|
-
createdBy
|
|
114
|
+
// user id of discount creator
|
|
115
|
+
createdBy: string;
|
|
116
|
+
// user id of most recent update
|
|
117
|
+
updatedBy: string;
|
|
117
118
|
id: string;
|
|
118
119
|
createdAt: string;
|
|
119
120
|
updatedAt: string;
|
|
120
|
-
|
|
121
|
-
name?: string;
|
|
121
|
+
name: string;
|
|
122
122
|
status?: DiscountStatus;
|
|
123
123
|
is?: DiscountIs;
|
|
124
|
-
app?: string;
|
|
125
124
|
meta?: DiscountMeta;
|
|
126
125
|
}
|
|
127
126
|
|
|
128
127
|
export type InternalServerErrorException = Record<string, any>;
|
|
129
128
|
|
|
130
129
|
export interface PutDiscountPublishRequestDTO {
|
|
130
|
+
// user id of most recent update
|
|
131
|
+
updatedBy: string;
|
|
131
132
|
taxonomy?: Record<string, any>;
|
|
132
|
-
|
|
133
|
-
name?: string;
|
|
133
|
+
name: string;
|
|
134
134
|
status?: DiscountStatus;
|
|
135
135
|
is?: DiscountIs;
|
|
136
|
-
app?: string;
|
|
137
136
|
meta?: DiscountMeta;
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
export interface PutDiscountPublishResponseDTO {
|
|
141
|
-
// user
|
|
142
|
-
createdBy
|
|
140
|
+
// user id of discount creator
|
|
141
|
+
createdBy: string;
|
|
142
|
+
// user id of most recent update
|
|
143
|
+
updatedBy: string;
|
|
143
144
|
id: string;
|
|
144
145
|
createdAt: string;
|
|
145
146
|
updatedAt: string;
|
|
146
|
-
|
|
147
|
-
name?: string;
|
|
147
|
+
name: string;
|
|
148
148
|
status?: DiscountStatus;
|
|
149
149
|
is?: DiscountIs;
|
|
150
|
-
app?: string;
|
|
151
150
|
meta?: DiscountMeta;
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
export interface DeleteDiscountRequestDTO {
|
|
155
154
|
id: string;
|
|
156
155
|
meta?: DiscountMeta;
|
|
157
|
-
app?: string;
|
|
158
156
|
}
|
|
159
157
|
|
|
160
158
|
export interface DeleteDiscountResponseDTO {
|
|
@@ -83,9 +83,9 @@ export interface Brand {
|
|
|
83
83
|
};
|
|
84
84
|
timezone?: string;
|
|
85
85
|
description?: string;
|
|
86
|
-
|
|
86
|
+
// @deprecated
|
|
87
87
|
latitude?: number;
|
|
88
|
-
|
|
88
|
+
// @deprecated
|
|
89
89
|
longitude?: number;
|
|
90
90
|
address?: Address;
|
|
91
91
|
menus?: MenuHours[];
|
|
@@ -154,7 +154,7 @@ export interface Brand {
|
|
|
154
154
|
group?: string;
|
|
155
155
|
// The CDL id representing the payment provider of this brand
|
|
156
156
|
payment_provider?: string;
|
|
157
|
-
|
|
157
|
+
// @deprecated
|
|
158
158
|
location_description?: string;
|
|
159
159
|
// The CDL id representing the company of this brand
|
|
160
160
|
company?: string;
|
|
@@ -199,6 +199,7 @@ export interface Brand {
|
|
|
199
199
|
time2eat?: {
|
|
200
200
|
enabled?: boolean;
|
|
201
201
|
use_timeslots?: boolean;
|
|
202
|
+
ignore_station_hours?: boolean;
|
|
202
203
|
};
|
|
203
204
|
nextep?: {
|
|
204
205
|
mobile_app?: boolean;
|
|
@@ -368,7 +369,7 @@ export interface Locations {
|
|
|
368
369
|
}
|
|
369
370
|
|
|
370
371
|
export interface Multigroups {
|
|
371
|
-
|
|
372
|
+
// @deprecated
|
|
372
373
|
groups?: MultiGroup[];
|
|
373
374
|
multigroups?: MultiGroup[];
|
|
374
375
|
}
|
|
@@ -510,9 +511,9 @@ export interface PostLocationRequest extends BaseRequest {
|
|
|
510
511
|
// GET /location/search - Gets Location within a radius of the provided point
|
|
511
512
|
|
|
512
513
|
export interface GetLocationSearchQuery {
|
|
513
|
-
|
|
514
|
+
// @deprecated
|
|
514
515
|
lat?: number;
|
|
515
|
-
|
|
516
|
+
// @deprecated
|
|
516
517
|
long?: number;
|
|
517
518
|
// Operation id to be used
|
|
518
519
|
operation_id?: number;
|
|
@@ -767,7 +768,7 @@ export interface GetLocationGroupQuery {
|
|
|
767
768
|
non_market_places?: boolean;
|
|
768
769
|
// return only groups with non-scan & go locations/brands
|
|
769
770
|
non_scan_go?: boolean;
|
|
770
|
-
|
|
771
|
+
// @deprecated
|
|
771
772
|
include_estimated_wait_time?: boolean;
|
|
772
773
|
// Graphql query string
|
|
773
774
|
_query?: string;
|
package/src/interface/menu.ts
CHANGED
|
@@ -84,7 +84,7 @@ export interface Item {
|
|
|
84
84
|
ingredients?: Record<string, any>[];
|
|
85
85
|
amount_off_exclusions?: AmountOffExclusionTypes[];
|
|
86
86
|
nutrition?: {
|
|
87
|
-
|
|
87
|
+
// @deprecated
|
|
88
88
|
kcal?: number;
|
|
89
89
|
calories?: Nutrition;
|
|
90
90
|
serving_size?: Nutrition;
|
|
@@ -195,7 +195,7 @@ export interface Item {
|
|
|
195
195
|
secondary?: string;
|
|
196
196
|
};
|
|
197
197
|
};
|
|
198
|
-
|
|
198
|
+
// @deprecated
|
|
199
199
|
is_deleted?: boolean;
|
|
200
200
|
is?: {
|
|
201
201
|
disabled?: boolean;
|
|
@@ -215,7 +215,7 @@ export interface Group {
|
|
|
215
215
|
fr?: string;
|
|
216
216
|
};
|
|
217
217
|
items?: Item[];
|
|
218
|
-
|
|
218
|
+
// @deprecated
|
|
219
219
|
is_disabled?: boolean;
|
|
220
220
|
is?: {
|
|
221
221
|
disabled?: boolean;
|
|
@@ -270,7 +270,7 @@ export interface Option {
|
|
|
270
270
|
};
|
|
271
271
|
sku?: number;
|
|
272
272
|
nutrition?: {
|
|
273
|
-
|
|
273
|
+
// @deprecated
|
|
274
274
|
kcal?: number;
|
|
275
275
|
calories?: Nutrition;
|
|
276
276
|
};
|
|
@@ -424,6 +424,7 @@ export interface GlobalMenuGroupDTO {
|
|
|
424
424
|
is_active?: boolean;
|
|
425
425
|
posid_segment?: string;
|
|
426
426
|
auto_push_to_local?: boolean;
|
|
427
|
+
price_levels?: Record<string, any>;
|
|
427
428
|
id?: string;
|
|
428
429
|
permissions?: Record<string, any>;
|
|
429
430
|
[index: string]: any;
|
|
@@ -581,6 +582,7 @@ export interface LocalMenuGroupDTO {
|
|
|
581
582
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|
|
582
583
|
draft_brands?: DraftBrandDTO[];
|
|
583
584
|
published_brands?: PublishedBrandDTO[];
|
|
585
|
+
price_levels?: Record<string, any>;
|
|
584
586
|
id: string;
|
|
585
587
|
created_at?: string;
|
|
586
588
|
updated_at?: string;
|
|
@@ -694,6 +696,7 @@ export interface DraftItemDTO {
|
|
|
694
696
|
tax_jwo_code?: string;
|
|
695
697
|
unique_id?: number;
|
|
696
698
|
cpg_item_id?: string;
|
|
699
|
+
price_levels?: Record<string, any>;
|
|
697
700
|
applied_diff_snapshot?: Record<string, any>;
|
|
698
701
|
brand?: DraftBrandDTO;
|
|
699
702
|
categories?: Record<string, any>[];
|
|
@@ -799,6 +802,7 @@ export interface DraftModifierDTO {
|
|
|
799
802
|
tax_tag_code?: string;
|
|
800
803
|
tags?: string[];
|
|
801
804
|
unique_id?: number;
|
|
805
|
+
price_levels?: Record<string, any>;
|
|
802
806
|
applied_diff_snapshot?: Record<string, any>;
|
|
803
807
|
brand?: DraftBrandDTO;
|
|
804
808
|
changes?: ModifierChangeDTO[];
|
|
@@ -1147,6 +1151,7 @@ export interface PublishedItemDTO {
|
|
|
1147
1151
|
is_featured?: boolean;
|
|
1148
1152
|
tax_jwo_code?: string;
|
|
1149
1153
|
cpg_item_id?: string;
|
|
1154
|
+
price_levels?: Record<string, any>;
|
|
1150
1155
|
permissions?: Record<string, any>;
|
|
1151
1156
|
[index: string]: any;
|
|
1152
1157
|
}
|
|
@@ -1216,6 +1221,7 @@ export interface PublishedModifierDTO {
|
|
|
1216
1221
|
post_surcharge?: number;
|
|
1217
1222
|
tax_tag_code?: string;
|
|
1218
1223
|
tags?: string[];
|
|
1224
|
+
price_levels?: Record<string, any>;
|
|
1219
1225
|
permissions?: Record<string, any>;
|
|
1220
1226
|
[index: string]: any;
|
|
1221
1227
|
}
|
|
@@ -1511,6 +1517,7 @@ export interface DraftItemEntityDTO {
|
|
|
1511
1517
|
tax_jwo_code?: string;
|
|
1512
1518
|
unique_id?: number;
|
|
1513
1519
|
cpg_item_id?: string;
|
|
1520
|
+
price_levels?: Record<string, any>;
|
|
1514
1521
|
applied_diff_snapshot?: Record<string, any>;
|
|
1515
1522
|
version?: number;
|
|
1516
1523
|
brand?: DraftBrandDTO;
|
|
@@ -1561,6 +1568,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1561
1568
|
tax_tag_code?: string;
|
|
1562
1569
|
tags?: string[];
|
|
1563
1570
|
unique_id?: number;
|
|
1571
|
+
price_levels?: Record<string, any>;
|
|
1564
1572
|
applied_diff_snapshot?: Record<string, any>;
|
|
1565
1573
|
version?: number;
|
|
1566
1574
|
brand?: DraftBrandDTO;
|
|
@@ -2087,6 +2095,7 @@ export interface PostMenuV3LocalMenuGroupBody {
|
|
|
2087
2095
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|
|
2088
2096
|
draft_brands?: DraftBrandDTO[];
|
|
2089
2097
|
published_brands?: PublishedBrandDTO[];
|
|
2098
|
+
price_levels?: Record<string, any>;
|
|
2090
2099
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2091
2100
|
permissions?: Record<string, any>;
|
|
2092
2101
|
[index: string]: any;
|
|
@@ -2098,6 +2107,7 @@ export interface PostMenuV3LocalMenuGroupResponse {
|
|
|
2098
2107
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|
|
2099
2108
|
draft_brands?: DraftBrandDTO[];
|
|
2100
2109
|
published_brands?: PublishedBrandDTO[];
|
|
2110
|
+
price_levels?: Record<string, any>;
|
|
2101
2111
|
id: string;
|
|
2102
2112
|
created_at?: string;
|
|
2103
2113
|
updated_at?: string;
|
|
@@ -2133,6 +2143,7 @@ export interface GetMenuV3LocalMenuGroupResponse {
|
|
|
2133
2143
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|
|
2134
2144
|
draft_brands?: DraftBrandDTO[];
|
|
2135
2145
|
published_brands?: PublishedBrandDTO[];
|
|
2146
|
+
price_levels?: Record<string, any>;
|
|
2136
2147
|
id: string;
|
|
2137
2148
|
created_at?: string;
|
|
2138
2149
|
updated_at?: string;
|
|
@@ -2160,6 +2171,7 @@ export interface PatchMenuV3LocalMenuGroupBody {
|
|
|
2160
2171
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|
|
2161
2172
|
draft_brands?: DraftBrandDTO[];
|
|
2162
2173
|
published_brands?: PublishedBrandDTO[];
|
|
2174
|
+
price_levels?: Record<string, any>;
|
|
2163
2175
|
id?: string;
|
|
2164
2176
|
version?: number;
|
|
2165
2177
|
vendor_metadata?: VendorMetadataDTO[];
|
|
@@ -2173,6 +2185,7 @@ export interface PatchMenuV3LocalMenuGroupResponse {
|
|
|
2173
2185
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|
|
2174
2186
|
draft_brands?: DraftBrandDTO[];
|
|
2175
2187
|
published_brands?: PublishedBrandDTO[];
|
|
2188
|
+
price_levels?: Record<string, any>;
|
|
2176
2189
|
id: string;
|
|
2177
2190
|
created_at?: string;
|
|
2178
2191
|
updated_at?: string;
|
|
@@ -2206,6 +2219,7 @@ export interface DeleteMenuV3LocalMenuGroupResponse {
|
|
|
2206
2219
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|
|
2207
2220
|
draft_brands?: DraftBrandDTO[];
|
|
2208
2221
|
published_brands?: PublishedBrandDTO[];
|
|
2222
|
+
price_levels?: Record<string, any>;
|
|
2209
2223
|
id: string;
|
|
2210
2224
|
created_at?: string;
|
|
2211
2225
|
updated_at?: string;
|
|
@@ -2260,6 +2274,7 @@ export type PostMenuV3LocalMenuGroupsBody = {
|
|
|
2260
2274
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|
|
2261
2275
|
draft_brands?: DraftBrandDTO[];
|
|
2262
2276
|
published_brands?: PublishedBrandDTO[];
|
|
2277
|
+
price_levels?: Record<string, any>;
|
|
2263
2278
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2264
2279
|
permissions?: Record<string, any>;
|
|
2265
2280
|
[index: string]: any;
|
|
@@ -2639,6 +2654,7 @@ export interface PostMenuV3GlobalMenuGroupBody {
|
|
|
2639
2654
|
published_brands?: PublishedBrandDTO[];
|
|
2640
2655
|
posid_segment: string;
|
|
2641
2656
|
auto_push_to_local?: boolean;
|
|
2657
|
+
price_levels?: Record<string, any>;
|
|
2642
2658
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2643
2659
|
permissions?: Record<string, any>;
|
|
2644
2660
|
[index: string]: any;
|
|
@@ -2686,6 +2702,7 @@ export interface PatchMenuV3GlobalMenuGroupBody {
|
|
|
2686
2702
|
published_brands?: PublishedBrandDTO[];
|
|
2687
2703
|
posid_segment?: string;
|
|
2688
2704
|
auto_push_to_local?: boolean;
|
|
2705
|
+
price_levels?: Record<string, any>;
|
|
2689
2706
|
id?: string;
|
|
2690
2707
|
version?: number;
|
|
2691
2708
|
vendor_metadata?: VendorMetadataDTO[];
|
|
@@ -2720,6 +2737,7 @@ export interface DeleteMenuV3GlobalMenuGroupResponse {
|
|
|
2720
2737
|
published_brands?: PublishedBrandDTO[];
|
|
2721
2738
|
posid_segment: string;
|
|
2722
2739
|
auto_push_to_local?: boolean;
|
|
2740
|
+
price_levels?: Record<string, any>;
|
|
2723
2741
|
id: string;
|
|
2724
2742
|
created_at?: string;
|
|
2725
2743
|
updated_at?: string;
|
|
@@ -2776,6 +2794,7 @@ export type PostMenuV3GlobalMenuGroupsBody = {
|
|
|
2776
2794
|
published_brands?: PublishedBrandDTO[];
|
|
2777
2795
|
posid_segment: string;
|
|
2778
2796
|
auto_push_to_local?: boolean;
|
|
2797
|
+
price_levels?: Record<string, any>;
|
|
2779
2798
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2780
2799
|
permissions?: Record<string, any>;
|
|
2781
2800
|
[index: string]: any;
|
|
@@ -5053,6 +5072,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
5053
5072
|
tax_jwo_code?: string;
|
|
5054
5073
|
unique_id?: number;
|
|
5055
5074
|
cpg_item_id?: string;
|
|
5075
|
+
price_levels?: Record<string, any>;
|
|
5056
5076
|
applied_diff_snapshot?: Record<string, any>;
|
|
5057
5077
|
brand?: DraftBrandDTO;
|
|
5058
5078
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -5131,6 +5151,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
5131
5151
|
tax_jwo_code?: string;
|
|
5132
5152
|
unique_id?: number;
|
|
5133
5153
|
cpg_item_id?: string;
|
|
5154
|
+
price_levels?: Record<string, any>;
|
|
5134
5155
|
applied_diff_snapshot?: Record<string, any>;
|
|
5135
5156
|
version?: number;
|
|
5136
5157
|
brand?: DraftBrandDTO;
|
|
@@ -5248,6 +5269,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
5248
5269
|
tax_jwo_code?: string;
|
|
5249
5270
|
unique_id?: number;
|
|
5250
5271
|
cpg_item_id?: string;
|
|
5272
|
+
price_levels?: Record<string, any>;
|
|
5251
5273
|
applied_diff_snapshot?: Record<string, any>;
|
|
5252
5274
|
brand?: DraftBrandDTO;
|
|
5253
5275
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -5356,6 +5378,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
5356
5378
|
tax_jwo_code?: string;
|
|
5357
5379
|
unique_id?: number;
|
|
5358
5380
|
cpg_item_id?: string;
|
|
5381
|
+
price_levels?: Record<string, any>;
|
|
5359
5382
|
applied_diff_snapshot?: Record<string, any>;
|
|
5360
5383
|
brand?: DraftBrandDTO;
|
|
5361
5384
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -6489,6 +6512,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
6489
6512
|
tax_tag_code?: string;
|
|
6490
6513
|
tags?: string[];
|
|
6491
6514
|
unique_id?: number;
|
|
6515
|
+
price_levels?: Record<string, any>;
|
|
6492
6516
|
applied_diff_snapshot?: Record<string, any>;
|
|
6493
6517
|
brand?: DraftBrandDTO;
|
|
6494
6518
|
changes?: ModifierChangeDTO[];
|
|
@@ -6563,6 +6587,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
6563
6587
|
tax_tag_code?: string;
|
|
6564
6588
|
tags?: string[];
|
|
6565
6589
|
unique_id?: number;
|
|
6590
|
+
price_levels?: Record<string, any>;
|
|
6566
6591
|
applied_diff_snapshot?: Record<string, any>;
|
|
6567
6592
|
version?: number;
|
|
6568
6593
|
brand?: DraftBrandDTO;
|
|
@@ -6676,6 +6701,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
6676
6701
|
tax_tag_code?: string;
|
|
6677
6702
|
tags?: string[];
|
|
6678
6703
|
unique_id?: number;
|
|
6704
|
+
price_levels?: Record<string, any>;
|
|
6679
6705
|
applied_diff_snapshot?: Record<string, any>;
|
|
6680
6706
|
brand?: DraftBrandDTO;
|
|
6681
6707
|
changes?: ModifierChangeDTO[];
|
|
@@ -6780,6 +6806,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
6780
6806
|
tax_tag_code?: string;
|
|
6781
6807
|
tags?: string[];
|
|
6782
6808
|
unique_id?: number;
|
|
6809
|
+
price_levels?: Record<string, any>;
|
|
6783
6810
|
applied_diff_snapshot?: Record<string, any>;
|
|
6784
6811
|
brand?: DraftBrandDTO;
|
|
6785
6812
|
changes?: ModifierChangeDTO[];
|
|
@@ -7269,6 +7296,7 @@ export interface GetMenuV4BrandQuery {
|
|
|
7269
7296
|
}
|
|
7270
7297
|
|
|
7271
7298
|
export interface GetMenuV4BrandResponse {
|
|
7299
|
+
price_levels?: Record<string, any>;
|
|
7272
7300
|
parent?: DraftBrandDTO;
|
|
7273
7301
|
children?: DraftBrandDTO[];
|
|
7274
7302
|
menus?: DraftMenuDTO[];
|
|
@@ -8043,6 +8071,7 @@ export interface PostMenuV4ItemBody {
|
|
|
8043
8071
|
tax_jwo_code?: string;
|
|
8044
8072
|
unique_id?: number;
|
|
8045
8073
|
cpg_item_id?: string;
|
|
8074
|
+
price_levels?: Record<string, any>;
|
|
8046
8075
|
base_item_id?: string;
|
|
8047
8076
|
applied_diff_snapshot?: Record<string, any>;
|
|
8048
8077
|
brand?: DraftBrandDTO;
|
|
@@ -8091,6 +8120,7 @@ export interface PostMenuV4ItemResponse {
|
|
|
8091
8120
|
tax_jwo_code?: string;
|
|
8092
8121
|
unique_id?: number;
|
|
8093
8122
|
cpg_item_id?: string;
|
|
8123
|
+
price_levels?: Record<string, any>;
|
|
8094
8124
|
applied_diff_snapshot?: Record<string, any>;
|
|
8095
8125
|
version?: number;
|
|
8096
8126
|
brand?: DraftBrandDTO;
|
|
@@ -8141,6 +8171,7 @@ export type PostMenuV4ItemsBulkCreateBody = {
|
|
|
8141
8171
|
tax_jwo_code?: string;
|
|
8142
8172
|
unique_id?: number;
|
|
8143
8173
|
cpg_item_id?: string;
|
|
8174
|
+
price_levels?: Record<string, any>;
|
|
8144
8175
|
base_item_id?: string;
|
|
8145
8176
|
applied_diff_snapshot?: Record<string, any>;
|
|
8146
8177
|
brand?: DraftBrandDTO;
|
|
@@ -8209,6 +8240,7 @@ export interface GetMenuV4ItemResponse {
|
|
|
8209
8240
|
tax_jwo_code?: string;
|
|
8210
8241
|
unique_id?: number;
|
|
8211
8242
|
cpg_item_id?: string;
|
|
8243
|
+
price_levels?: Record<string, any>;
|
|
8212
8244
|
applied_diff_snapshot?: Record<string, any>;
|
|
8213
8245
|
version?: number;
|
|
8214
8246
|
brand?: DraftBrandDTO;
|
|
@@ -8265,6 +8297,7 @@ export interface PatchMenuV4ItemBody {
|
|
|
8265
8297
|
tax_jwo_code?: string;
|
|
8266
8298
|
unique_id?: number;
|
|
8267
8299
|
cpg_item_id?: string;
|
|
8300
|
+
price_levels?: Record<string, any>;
|
|
8268
8301
|
applied_diff_snapshot?: Record<string, any>;
|
|
8269
8302
|
brand?: DraftBrandDTO;
|
|
8270
8303
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -8312,6 +8345,7 @@ export interface PatchMenuV4ItemResponse {
|
|
|
8312
8345
|
tax_jwo_code?: string;
|
|
8313
8346
|
unique_id?: number;
|
|
8314
8347
|
cpg_item_id?: string;
|
|
8348
|
+
price_levels?: Record<string, any>;
|
|
8315
8349
|
applied_diff_snapshot?: Record<string, any>;
|
|
8316
8350
|
version?: number;
|
|
8317
8351
|
brand?: DraftBrandDTO;
|
|
@@ -8370,6 +8404,7 @@ export interface DeleteMenuV4ItemResponse {
|
|
|
8370
8404
|
tax_jwo_code?: string;
|
|
8371
8405
|
unique_id?: number;
|
|
8372
8406
|
cpg_item_id?: string;
|
|
8407
|
+
price_levels?: Record<string, any>;
|
|
8373
8408
|
applied_diff_snapshot?: Record<string, any>;
|
|
8374
8409
|
version?: number;
|
|
8375
8410
|
brand?: DraftBrandDTO;
|
|
@@ -8420,6 +8455,7 @@ export interface PatchMenuV4ItemsBulkUpdateBody {
|
|
|
8420
8455
|
tax_jwo_code?: string;
|
|
8421
8456
|
unique_id?: number;
|
|
8422
8457
|
cpg_item_id?: string;
|
|
8458
|
+
price_levels?: Record<string, any>;
|
|
8423
8459
|
applied_diff_snapshot?: Record<string, any>;
|
|
8424
8460
|
brand?: DraftBrandDTO;
|
|
8425
8461
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -8478,6 +8514,7 @@ export interface PostMenuV4ItemDuplicateBody {
|
|
|
8478
8514
|
tax_jwo_code?: string;
|
|
8479
8515
|
unique_id?: number;
|
|
8480
8516
|
cpg_item_id?: string;
|
|
8517
|
+
price_levels?: Record<string, any>;
|
|
8481
8518
|
applied_diff_snapshot?: Record<string, any>;
|
|
8482
8519
|
brand?: DraftBrandDTO;
|
|
8483
8520
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -8525,6 +8562,7 @@ export interface PostMenuV4ItemDuplicateResponse {
|
|
|
8525
8562
|
tax_jwo_code?: string;
|
|
8526
8563
|
unique_id?: number;
|
|
8527
8564
|
cpg_item_id?: string;
|
|
8565
|
+
price_levels?: Record<string, any>;
|
|
8528
8566
|
applied_diff_snapshot?: Record<string, any>;
|
|
8529
8567
|
version?: number;
|
|
8530
8568
|
brand?: DraftBrandDTO;
|
|
@@ -8573,6 +8611,7 @@ export interface PostMenuV4ModifierBody {
|
|
|
8573
8611
|
tax_tag_code?: string;
|
|
8574
8612
|
tags?: string[];
|
|
8575
8613
|
unique_id?: number;
|
|
8614
|
+
price_levels?: Record<string, any>;
|
|
8576
8615
|
applied_diff_snapshot?: Record<string, any>;
|
|
8577
8616
|
brand?: DraftBrandDTO;
|
|
8578
8617
|
changes?: ModifierChangeDTO[];
|
|
@@ -8616,6 +8655,7 @@ export interface PostMenuV4ModifierResponse {
|
|
|
8616
8655
|
tax_tag_code?: string;
|
|
8617
8656
|
tags?: string[];
|
|
8618
8657
|
unique_id?: number;
|
|
8658
|
+
price_levels?: Record<string, any>;
|
|
8619
8659
|
applied_diff_snapshot?: Record<string, any>;
|
|
8620
8660
|
version?: number;
|
|
8621
8661
|
brand?: DraftBrandDTO;
|
|
@@ -8675,6 +8715,7 @@ export interface GetMenuV4ModifierResponse {
|
|
|
8675
8715
|
tax_tag_code?: string;
|
|
8676
8716
|
tags?: string[];
|
|
8677
8717
|
unique_id?: number;
|
|
8718
|
+
price_levels?: Record<string, any>;
|
|
8678
8719
|
applied_diff_snapshot?: Record<string, any>;
|
|
8679
8720
|
version?: number;
|
|
8680
8721
|
brand?: DraftBrandDTO;
|
|
@@ -8726,6 +8767,7 @@ export interface PatchMenuV4ModifierBody {
|
|
|
8726
8767
|
tax_tag_code?: string;
|
|
8727
8768
|
tags?: string[];
|
|
8728
8769
|
unique_id?: number;
|
|
8770
|
+
price_levels?: Record<string, any>;
|
|
8729
8771
|
applied_diff_snapshot?: Record<string, any>;
|
|
8730
8772
|
brand?: DraftBrandDTO;
|
|
8731
8773
|
changes?: ModifierChangeDTO[];
|
|
@@ -8769,6 +8811,7 @@ export interface PatchMenuV4ModifierResponse {
|
|
|
8769
8811
|
tax_tag_code?: string;
|
|
8770
8812
|
tags?: string[];
|
|
8771
8813
|
unique_id?: number;
|
|
8814
|
+
price_levels?: Record<string, any>;
|
|
8772
8815
|
applied_diff_snapshot?: Record<string, any>;
|
|
8773
8816
|
version?: number;
|
|
8774
8817
|
brand?: DraftBrandDTO;
|
|
@@ -8823,6 +8866,7 @@ export interface DeleteMenuV4ModifierResponse {
|
|
|
8823
8866
|
tax_tag_code?: string;
|
|
8824
8867
|
tags?: string[];
|
|
8825
8868
|
unique_id?: number;
|
|
8869
|
+
price_levels?: Record<string, any>;
|
|
8826
8870
|
applied_diff_snapshot?: Record<string, any>;
|
|
8827
8871
|
version?: number;
|
|
8828
8872
|
brand?: DraftBrandDTO;
|
|
@@ -8871,6 +8915,7 @@ export interface PostMenuV4ModifierDuplicateBody {
|
|
|
8871
8915
|
tax_tag_code?: string;
|
|
8872
8916
|
tags?: string[];
|
|
8873
8917
|
unique_id?: number;
|
|
8918
|
+
price_levels?: Record<string, any>;
|
|
8874
8919
|
applied_diff_snapshot?: Record<string, any>;
|
|
8875
8920
|
brand?: DraftBrandDTO;
|
|
8876
8921
|
changes?: ModifierChangeDTO[];
|
|
@@ -8914,6 +8959,7 @@ export interface PostMenuV4ModifierDuplicateResponse {
|
|
|
8914
8959
|
tax_tag_code?: string;
|
|
8915
8960
|
tags?: string[];
|
|
8916
8961
|
unique_id?: number;
|
|
8962
|
+
price_levels?: Record<string, any>;
|
|
8917
8963
|
applied_diff_snapshot?: Record<string, any>;
|
|
8918
8964
|
version?: number;
|
|
8919
8965
|
brand?: DraftBrandDTO;
|
|
@@ -8964,6 +9010,7 @@ export interface PatchMenuV4ModifiersBulkUpdateBody {
|
|
|
8964
9010
|
tax_tag_code?: string;
|
|
8965
9011
|
tags?: string[];
|
|
8966
9012
|
unique_id?: number;
|
|
9013
|
+
price_levels?: Record<string, any>;
|
|
8967
9014
|
applied_diff_snapshot?: Record<string, any>;
|
|
8968
9015
|
brand?: DraftBrandDTO;
|
|
8969
9016
|
changes?: ModifierChangeDTO[];
|