@compassdigital/sdk.typescript 4.82.0 → 4.84.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 +25 -16
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +21 -12
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +36 -15
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +1 -3
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +1 -3
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/location.d.ts +9 -19
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +6 -3
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +126 -7
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +4 -9
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +7 -13
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +5 -15
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/search.d.ts +1 -3
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +4 -12
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +1 -0
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +9 -2
- package/lib/interface/util.d.ts.map +1 -1
- package/manifest.json +1 -1
- package/package.json +2 -2
- package/src/index.ts +51 -40
- package/src/interface/announcement.ts +56 -30
- package/src/interface/centricos.ts +1 -3
- package/src/interface/datalake.ts +1 -3
- package/src/interface/location.ts +9 -16
- package/src/interface/mealplan.ts +7 -3
- package/src/interface/menu.ts +159 -6
- package/src/interface/order.ts +5 -9
- package/src/interface/partner.ts +7 -10
- package/src/interface/promo.ts +5 -15
- package/src/interface/search.ts +1 -3
- package/src/interface/shoppingcart.ts +3 -0
- package/src/interface/task.ts +4 -12
- package/src/interface/user.ts +2 -0
- package/src/interface/util.ts +16 -2
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compassdigital/sdk.typescript",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.84.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.30.0",
|
|
50
50
|
"@swc/core": "^1.4.1",
|
|
51
51
|
"@swc/jest": "^0.2.36",
|
|
52
52
|
"@types/jest": "^29.2.4",
|
package/src/index.ts
CHANGED
|
@@ -336,10 +336,8 @@ import {
|
|
|
336
336
|
import {
|
|
337
337
|
PostAnnouncementBody,
|
|
338
338
|
PostAnnouncementResponse,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
GetAnnouncementResourcesQuery,
|
|
342
|
-
GetAnnouncementResourcesResponse,
|
|
339
|
+
GetAnnouncementsQuery,
|
|
340
|
+
GetAnnouncementsResponse,
|
|
343
341
|
GetAnnouncementQuery,
|
|
344
342
|
GetAnnouncementResponse,
|
|
345
343
|
PutAnnouncementBody,
|
|
@@ -594,6 +592,7 @@ import {
|
|
|
594
592
|
GetMenuV3DraftBrandItemsTagsResponse,
|
|
595
593
|
GetMenuV3DraftBrandModifiersTagsQuery,
|
|
596
594
|
GetMenuV3DraftBrandModifiersTagsResponse,
|
|
595
|
+
PostMenuV3DraftBrandPublishQuery,
|
|
597
596
|
PostMenuV3DraftBrandPublishResponse,
|
|
598
597
|
PostMenuV3DraftBrandDiffGenerateResponse,
|
|
599
598
|
GetMenuV3DraftBrandDiffsQuery,
|
|
@@ -866,6 +865,10 @@ import {
|
|
|
866
865
|
PostMenuV3UniversalItemsVerifyBody,
|
|
867
866
|
PostMenuV3UniversalItemsVerifyResponse,
|
|
868
867
|
PostMenuV3TriggerUpdateResponse,
|
|
868
|
+
PostMenuV4BrandBody,
|
|
869
|
+
PostMenuV4BrandResponse,
|
|
870
|
+
GetMenuV4BrandQuery,
|
|
871
|
+
GetMenuV4BrandResponse,
|
|
869
872
|
} from './interface/menu';
|
|
870
873
|
|
|
871
874
|
import {
|
|
@@ -3871,45 +3874,16 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3871
3874
|
}
|
|
3872
3875
|
|
|
3873
3876
|
/**
|
|
3874
|
-
* GET /announcement
|
|
3875
|
-
*
|
|
3876
|
-
* @param id - Id of the entity to which announcement is specifically related.
|
|
3877
|
-
* @param options - additional request options
|
|
3878
|
-
*/
|
|
3879
|
-
get_announcement_resource(
|
|
3880
|
-
id: string,
|
|
3881
|
-
options?: {
|
|
3882
|
-
query?: GetAnnouncementResourceQuery;
|
|
3883
|
-
} & RequestOptions,
|
|
3884
|
-
): ResponsePromise<GetAnnouncementResourceResponse> {
|
|
3885
|
-
return this.request(
|
|
3886
|
-
'announcement',
|
|
3887
|
-
'/announcement/resource/{id}',
|
|
3888
|
-
'get',
|
|
3889
|
-
`/announcement/resource/${id}`,
|
|
3890
|
-
null,
|
|
3891
|
-
options,
|
|
3892
|
-
);
|
|
3893
|
-
}
|
|
3894
|
-
|
|
3895
|
-
/**
|
|
3896
|
-
* GET /announcement/resource - Get Announcements
|
|
3877
|
+
* GET /announcement - Get Announcements
|
|
3897
3878
|
*
|
|
3898
3879
|
* @param options - additional request options
|
|
3899
3880
|
*/
|
|
3900
|
-
|
|
3901
|
-
options
|
|
3902
|
-
query
|
|
3881
|
+
get_announcements(
|
|
3882
|
+
options: {
|
|
3883
|
+
query: GetAnnouncementsQuery;
|
|
3903
3884
|
} & RequestOptions,
|
|
3904
|
-
): ResponsePromise<
|
|
3905
|
-
return this.request(
|
|
3906
|
-
'announcement',
|
|
3907
|
-
'/announcement/resource',
|
|
3908
|
-
'get',
|
|
3909
|
-
`/announcement/resource`,
|
|
3910
|
-
null,
|
|
3911
|
-
options,
|
|
3912
|
-
);
|
|
3885
|
+
): ResponsePromise<GetAnnouncementsResponse> {
|
|
3886
|
+
return this.request('announcement', '/announcement', 'get', `/announcement`, null, options);
|
|
3913
3887
|
}
|
|
3914
3888
|
|
|
3915
3889
|
/**
|
|
@@ -6282,7 +6256,9 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6282
6256
|
*/
|
|
6283
6257
|
post_menu_v3_draft_brand_publish(
|
|
6284
6258
|
id: string,
|
|
6285
|
-
options?:
|
|
6259
|
+
options?: {
|
|
6260
|
+
query?: PostMenuV3DraftBrandPublishQuery;
|
|
6261
|
+
} & RequestOptions,
|
|
6286
6262
|
): ResponsePromise<PostMenuV3DraftBrandPublishResponse> {
|
|
6287
6263
|
return this.request(
|
|
6288
6264
|
'menu',
|
|
@@ -9169,6 +9145,41 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
9169
9145
|
);
|
|
9170
9146
|
}
|
|
9171
9147
|
|
|
9148
|
+
/**
|
|
9149
|
+
* POST /menu/v4/brand
|
|
9150
|
+
*
|
|
9151
|
+
* @param body
|
|
9152
|
+
* @param options - additional request options
|
|
9153
|
+
*/
|
|
9154
|
+
post_menu_v4_brand(
|
|
9155
|
+
body: PostMenuV4BrandBody,
|
|
9156
|
+
options?: RequestOptions,
|
|
9157
|
+
): ResponsePromise<PostMenuV4BrandResponse> {
|
|
9158
|
+
return this.request('menu', '/menu/v4/brand', 'post', `/menu/v4/brand`, body, options);
|
|
9159
|
+
}
|
|
9160
|
+
|
|
9161
|
+
/**
|
|
9162
|
+
* GET /menu/v4/brand/{id}
|
|
9163
|
+
*
|
|
9164
|
+
* @param id
|
|
9165
|
+
* @param options - additional request options
|
|
9166
|
+
*/
|
|
9167
|
+
get_menu_v4_brand(
|
|
9168
|
+
id: string,
|
|
9169
|
+
options?: {
|
|
9170
|
+
query?: GetMenuV4BrandQuery;
|
|
9171
|
+
} & RequestOptions,
|
|
9172
|
+
): ResponsePromise<GetMenuV4BrandResponse> {
|
|
9173
|
+
return this.request(
|
|
9174
|
+
'menu',
|
|
9175
|
+
'/menu/v4/brand/{id}',
|
|
9176
|
+
'get',
|
|
9177
|
+
`/menu/v4/brand/${id}`,
|
|
9178
|
+
null,
|
|
9179
|
+
options,
|
|
9180
|
+
);
|
|
9181
|
+
}
|
|
9182
|
+
|
|
9172
9183
|
/**
|
|
9173
9184
|
* GET /notification - Get all notifications
|
|
9174
9185
|
*
|
|
@@ -18,6 +18,10 @@ export interface Announcement {
|
|
|
18
18
|
id?: string;
|
|
19
19
|
// Name of Announcement
|
|
20
20
|
name?: string;
|
|
21
|
+
// Date created
|
|
22
|
+
created_at?: string;
|
|
23
|
+
// Date modified
|
|
24
|
+
last_modified?: string;
|
|
21
25
|
// Announcement Type
|
|
22
26
|
type?: string;
|
|
23
27
|
key?: string;
|
|
@@ -33,7 +37,21 @@ export interface Announcement {
|
|
|
33
37
|
en?: Announcement_info;
|
|
34
38
|
fr?: Announcement_info;
|
|
35
39
|
};
|
|
40
|
+
// Schedule details
|
|
41
|
+
schedule?: {
|
|
42
|
+
// If true, refer to `sites`, if false, refer to start/end times below
|
|
43
|
+
variable?: boolean;
|
|
44
|
+
start_datetime?: string;
|
|
45
|
+
end_datetime?: string;
|
|
46
|
+
sites?: {
|
|
47
|
+
// group
|
|
48
|
+
id: string;
|
|
49
|
+
start_datetime: string;
|
|
50
|
+
end_datetime: string;
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
36
53
|
date?: Record<string, any>;
|
|
54
|
+
author?: Author;
|
|
37
55
|
[index: string]: any;
|
|
38
56
|
}
|
|
39
57
|
|
|
@@ -49,6 +67,14 @@ export interface Announcement_info {
|
|
|
49
67
|
button_text?: string;
|
|
50
68
|
}
|
|
51
69
|
|
|
70
|
+
export interface Author {
|
|
71
|
+
id: string;
|
|
72
|
+
name: {
|
|
73
|
+
first?: string;
|
|
74
|
+
last?: string;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
52
78
|
// POST /announcement - Create Announcement
|
|
53
79
|
|
|
54
80
|
export type PostAnnouncementBody = Announcement;
|
|
@@ -59,41 +85,41 @@ export interface PostAnnouncementRequest extends BaseRequest {
|
|
|
59
85
|
body: PostAnnouncementBody;
|
|
60
86
|
}
|
|
61
87
|
|
|
62
|
-
// GET /announcement
|
|
63
|
-
|
|
64
|
-
export interface
|
|
65
|
-
//
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
//
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
//
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
// GET /announcement - Get Announcements
|
|
89
|
+
|
|
90
|
+
export interface GetAnnouncementsQuery {
|
|
91
|
+
// Filter by earliest creation date
|
|
92
|
+
created_at_start?: string;
|
|
93
|
+
// Filter by latest creation date
|
|
94
|
+
created_at_end?: string;
|
|
95
|
+
// Filter by earliest modified date
|
|
96
|
+
last_modified_start: string;
|
|
97
|
+
// Filter by latest modified date
|
|
98
|
+
last_modified_end?: string;
|
|
99
|
+
// Filter by earliest start date
|
|
100
|
+
start_date_start?: string;
|
|
101
|
+
// Filter by latest start date
|
|
102
|
+
start_date_end?: string;
|
|
103
|
+
// Filter by earliest end date
|
|
104
|
+
end_date_start?: string;
|
|
105
|
+
// Filter by latest end date
|
|
106
|
+
end_date_end?: string;
|
|
107
|
+
realm?: string;
|
|
108
|
+
// Filter by announcement name
|
|
109
|
+
name?: string;
|
|
110
|
+
// Filter by announcement position
|
|
111
|
+
position?: number;
|
|
112
|
+
// Filter by announcement enabled status
|
|
113
|
+
enabled?: boolean;
|
|
114
|
+
// Filter by announcement purpose
|
|
115
|
+
purpose?: string;
|
|
88
116
|
// Graphql query string
|
|
89
117
|
_query?: string;
|
|
90
118
|
}
|
|
91
119
|
|
|
92
|
-
export type
|
|
120
|
+
export type GetAnnouncementsResponse = Announcements;
|
|
93
121
|
|
|
94
|
-
export interface
|
|
95
|
-
extends BaseRequest,
|
|
96
|
-
RequestQuery<GetAnnouncementResourcesQuery> {}
|
|
122
|
+
export interface GetAnnouncementsRequest extends BaseRequest, RequestQuery<GetAnnouncementsQuery> {}
|
|
97
123
|
|
|
98
124
|
// GET /announcement/{id} - Get Announcement
|
|
99
125
|
|
|
@@ -18,9 +18,7 @@ export interface QueryBody {
|
|
|
18
18
|
export type PostDatalakeSqlBody = QueryBody;
|
|
19
19
|
|
|
20
20
|
export interface PostDatalakeSqlResponse {
|
|
21
|
-
rows?:
|
|
22
|
-
[index: string]: any;
|
|
23
|
-
}[];
|
|
21
|
+
rows?: Record<string, any>[];
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
export interface PostDatalakeSqlRequest extends BaseRequest {
|
|
@@ -106,13 +106,14 @@ export interface Brand {
|
|
|
106
106
|
// pos
|
|
107
107
|
pos?: string;
|
|
108
108
|
terminals?: Record<string, any>[];
|
|
109
|
-
device_mapping?:
|
|
110
|
-
|
|
109
|
+
device_mapping?: Record<
|
|
110
|
+
string,
|
|
111
|
+
{
|
|
111
112
|
device_type: string;
|
|
112
113
|
site_device_id: string;
|
|
113
114
|
business_units: string[];
|
|
114
|
-
}[]
|
|
115
|
-
|
|
115
|
+
}[]
|
|
116
|
+
>;
|
|
116
117
|
timeslots?: {
|
|
117
118
|
time?: string;
|
|
118
119
|
averagePrepTime?: string;
|
|
@@ -235,9 +236,7 @@ export interface Location {
|
|
|
235
236
|
latitude?: number;
|
|
236
237
|
longitude?: number;
|
|
237
238
|
brands?: Brand[];
|
|
238
|
-
meta?:
|
|
239
|
-
[index: string]: any;
|
|
240
|
-
};
|
|
239
|
+
meta?: Record<string, any>;
|
|
241
240
|
phone?: string;
|
|
242
241
|
// group
|
|
243
242
|
location_group?: string;
|
|
@@ -297,9 +296,7 @@ export interface Group {
|
|
|
297
296
|
distance?: number;
|
|
298
297
|
locations?: Location[];
|
|
299
298
|
address?: Address;
|
|
300
|
-
meta?:
|
|
301
|
-
[index: string]: any;
|
|
302
|
-
};
|
|
299
|
+
meta?: Record<string, any>;
|
|
303
300
|
style?: {
|
|
304
301
|
logo?: string | null;
|
|
305
302
|
main_logo?: string | null;
|
|
@@ -336,9 +333,7 @@ export interface Sector {
|
|
|
336
333
|
fr?: string;
|
|
337
334
|
};
|
|
338
335
|
companies?: Company[];
|
|
339
|
-
meta?:
|
|
340
|
-
[index: string]: any;
|
|
341
|
-
};
|
|
336
|
+
meta?: Record<string, any>;
|
|
342
337
|
}
|
|
343
338
|
|
|
344
339
|
export interface Company {
|
|
@@ -355,9 +350,7 @@ export interface Company {
|
|
|
355
350
|
is?: {
|
|
356
351
|
global_images_enabled?: boolean;
|
|
357
352
|
};
|
|
358
|
-
meta?:
|
|
359
|
-
[index: string]: any;
|
|
360
|
-
};
|
|
353
|
+
meta?: Record<string, any>;
|
|
361
354
|
}
|
|
362
355
|
|
|
363
356
|
export interface Locations {
|
|
@@ -32,6 +32,11 @@ export interface TendersAndAuth {
|
|
|
32
32
|
auth?: AuthPayload;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
export interface DrainedTender {
|
|
36
|
+
name?: string;
|
|
37
|
+
amount?: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
35
40
|
export interface VerifyEmail {
|
|
36
41
|
email?: string;
|
|
37
42
|
}
|
|
@@ -45,9 +50,7 @@ export interface AuthPayload {
|
|
|
45
50
|
url?: string;
|
|
46
51
|
method?: string;
|
|
47
52
|
encoding?: string;
|
|
48
|
-
body?:
|
|
49
|
-
[index: string]: any;
|
|
50
|
-
};
|
|
53
|
+
body?: Record<string, any>;
|
|
51
54
|
};
|
|
52
55
|
direct?: {
|
|
53
56
|
name?: {
|
|
@@ -233,6 +236,7 @@ export interface DeleteMealplanTenderResponse {
|
|
|
233
236
|
currency?: string;
|
|
234
237
|
transaction_amount?: number;
|
|
235
238
|
drained_tender_name?: string;
|
|
239
|
+
drained_tender_breakdown?: DrainedTender[];
|
|
236
240
|
}
|
|
237
241
|
|
|
238
242
|
export interface DeleteMealplanTenderRequest extends BaseRequest, DeleteMealplanTenderPath {
|
package/src/interface/menu.ts
CHANGED
|
@@ -153,6 +153,26 @@ export interface Item {
|
|
|
153
153
|
tax_rate?: number;
|
|
154
154
|
tax_amount?: number;
|
|
155
155
|
};
|
|
156
|
+
recipe?: {
|
|
157
|
+
// menuworks mrn
|
|
158
|
+
mrn?: string;
|
|
159
|
+
// menuworks unit id
|
|
160
|
+
unit_id?: string;
|
|
161
|
+
// menuworks portion quantity
|
|
162
|
+
portion_quantity?: string;
|
|
163
|
+
// menuworks portion unit name
|
|
164
|
+
portion_unit_name?: string;
|
|
165
|
+
// menuworks grams
|
|
166
|
+
grams?: string;
|
|
167
|
+
// menuworks cost (per serving)
|
|
168
|
+
cost?: string;
|
|
169
|
+
// menuworks ingredients
|
|
170
|
+
ingredients?: string[];
|
|
171
|
+
// menuworks smart tags
|
|
172
|
+
smart_tags?: string[];
|
|
173
|
+
// menuworks allergen tags
|
|
174
|
+
allergen_tags?: string[];
|
|
175
|
+
};
|
|
156
176
|
[index: string]: any;
|
|
157
177
|
};
|
|
158
178
|
category?: {
|
|
@@ -280,6 +300,26 @@ export interface Option {
|
|
|
280
300
|
tax?: {
|
|
281
301
|
tax_tag_code?: string;
|
|
282
302
|
};
|
|
303
|
+
recipe?: {
|
|
304
|
+
// menuworks mrn
|
|
305
|
+
mrn?: string;
|
|
306
|
+
// menuworks unit id
|
|
307
|
+
unit_id?: string;
|
|
308
|
+
// menuworks portion quantity
|
|
309
|
+
portion_quantity?: string;
|
|
310
|
+
// menuworks portion unit name
|
|
311
|
+
portion_unit_name?: string;
|
|
312
|
+
// menuworks grams
|
|
313
|
+
grams?: string;
|
|
314
|
+
// menuworks cost (per serving)
|
|
315
|
+
cost?: string;
|
|
316
|
+
// menuworks ingredients
|
|
317
|
+
ingredients?: string[];
|
|
318
|
+
// menuworks smart tags
|
|
319
|
+
smart_tags?: string[];
|
|
320
|
+
// menuworks allergen tags
|
|
321
|
+
allergen_tags?: string[];
|
|
322
|
+
};
|
|
283
323
|
[index: string]: any;
|
|
284
324
|
};
|
|
285
325
|
is?: {
|
|
@@ -336,9 +376,7 @@ export interface CreateOptionsGroup {
|
|
|
336
376
|
hidden?: boolean;
|
|
337
377
|
out_of_stock?: boolean;
|
|
338
378
|
};
|
|
339
|
-
meta?:
|
|
340
|
-
[index: string]: any;
|
|
341
|
-
};
|
|
379
|
+
meta?: Record<string, any>;
|
|
342
380
|
// company
|
|
343
381
|
company: string;
|
|
344
382
|
}
|
|
@@ -793,6 +831,9 @@ export interface MenuWorksDTO {
|
|
|
793
831
|
portion_unit_name?: string;
|
|
794
832
|
grams?: number;
|
|
795
833
|
cost?: number;
|
|
834
|
+
ingredients?: string[];
|
|
835
|
+
smart_tags?: string[];
|
|
836
|
+
allergen_tags?: string[];
|
|
796
837
|
[index: string]: any;
|
|
797
838
|
}
|
|
798
839
|
|
|
@@ -886,6 +927,7 @@ export interface AuditDTO {
|
|
|
886
927
|
id?: string;
|
|
887
928
|
data?: Record<string, any>;
|
|
888
929
|
s3_link?: string;
|
|
930
|
+
email?: string;
|
|
889
931
|
brand?: DraftBrandDTO;
|
|
890
932
|
permissions?: Record<string, any>;
|
|
891
933
|
[index: string]: any;
|
|
@@ -930,6 +972,7 @@ export interface AuditListDraftItemDTO {
|
|
|
930
972
|
deleted_at?: string;
|
|
931
973
|
data?: Record<string, any>;
|
|
932
974
|
s3_link?: string;
|
|
975
|
+
email?: string;
|
|
933
976
|
version?: number;
|
|
934
977
|
brand?: DraftBrandDTO;
|
|
935
978
|
permissions?: Record<string, any>;
|
|
@@ -1295,9 +1338,7 @@ export interface V2ModifierGroupDTO {
|
|
|
1295
1338
|
min?: number;
|
|
1296
1339
|
max?: number;
|
|
1297
1340
|
is?: Record<string, any>;
|
|
1298
|
-
meta?:
|
|
1299
|
-
[index: string]: any;
|
|
1300
|
-
};
|
|
1341
|
+
meta?: Record<string, any>;
|
|
1301
1342
|
}
|
|
1302
1343
|
|
|
1303
1344
|
export interface V2ModifierDTO {
|
|
@@ -3204,12 +3245,17 @@ export interface PostMenuV3DraftBrandPublishPath {
|
|
|
3204
3245
|
id: string;
|
|
3205
3246
|
}
|
|
3206
3247
|
|
|
3248
|
+
export interface PostMenuV3DraftBrandPublishQuery {
|
|
3249
|
+
process_id?: string;
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3207
3252
|
export interface PostMenuV3DraftBrandPublishResponse {
|
|
3208
3253
|
status?: string;
|
|
3209
3254
|
}
|
|
3210
3255
|
|
|
3211
3256
|
export interface PostMenuV3DraftBrandPublishRequest
|
|
3212
3257
|
extends BaseRequest,
|
|
3258
|
+
RequestQuery<PostMenuV3DraftBrandPublishQuery>,
|
|
3213
3259
|
PostMenuV3DraftBrandPublishPath {}
|
|
3214
3260
|
|
|
3215
3261
|
// POST /menu/v3/draft/brand/{id}/diff/generate
|
|
@@ -6593,11 +6639,16 @@ export interface GetMenuV3MenuworksQuery {
|
|
|
6593
6639
|
export interface GetMenuV3MenuworksResponse {
|
|
6594
6640
|
calories?: number;
|
|
6595
6641
|
unit_id?: string;
|
|
6642
|
+
name?: string;
|
|
6643
|
+
description?: string;
|
|
6596
6644
|
MRN?: string;
|
|
6597
6645
|
portion_quantity?: number;
|
|
6598
6646
|
portion_unit_name?: string;
|
|
6599
6647
|
grams?: number;
|
|
6600
6648
|
cost?: number;
|
|
6649
|
+
ingredients?: string[];
|
|
6650
|
+
smart_tags?: string[];
|
|
6651
|
+
allergen_tags?: string[];
|
|
6601
6652
|
[index: string]: any;
|
|
6602
6653
|
}
|
|
6603
6654
|
|
|
@@ -6739,3 +6790,105 @@ export interface PostMenuV3TriggerUpdateResponse {
|
|
|
6739
6790
|
}
|
|
6740
6791
|
|
|
6741
6792
|
export interface PostMenuV3TriggerUpdateRequest extends BaseRequest {}
|
|
6793
|
+
|
|
6794
|
+
// POST /menu/v4/brand
|
|
6795
|
+
|
|
6796
|
+
export interface PostMenuV4BrandBody {
|
|
6797
|
+
name?: string;
|
|
6798
|
+
}
|
|
6799
|
+
|
|
6800
|
+
export interface PostMenuV4BrandResponse {
|
|
6801
|
+
parent?: DraftBrandDTO;
|
|
6802
|
+
children?: DraftBrandDTO[];
|
|
6803
|
+
menus?: DraftMenuDTO[];
|
|
6804
|
+
categories?: DraftCategoryDTO[];
|
|
6805
|
+
category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
|
|
6806
|
+
items?: DraftItemDTO[];
|
|
6807
|
+
item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
|
|
6808
|
+
modifier_groups?: DraftModifierGroupDTO[];
|
|
6809
|
+
modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6810
|
+
modifiers?: DraftModifierDTO[];
|
|
6811
|
+
statuses?: BrandStatusDTO[];
|
|
6812
|
+
audit_logs?: AuditDTO[];
|
|
6813
|
+
id: string;
|
|
6814
|
+
created_at?: string;
|
|
6815
|
+
updated_at?: string;
|
|
6816
|
+
deleted_at?: string;
|
|
6817
|
+
name: string;
|
|
6818
|
+
description?: string;
|
|
6819
|
+
is_active?: boolean;
|
|
6820
|
+
type?: 'global' | 'local';
|
|
6821
|
+
parent_id?: string;
|
|
6822
|
+
local_menu_group_id?: string;
|
|
6823
|
+
global_menu_group_id?: string;
|
|
6824
|
+
posid_segment?: string;
|
|
6825
|
+
is_simplified_view?: boolean;
|
|
6826
|
+
frictionless_partner?: string;
|
|
6827
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6828
|
+
version?: number;
|
|
6829
|
+
changes?: BrandChangeDTO[];
|
|
6830
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
6831
|
+
global_menu_group?: GlobalMenuGroupDTO;
|
|
6832
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6833
|
+
attachments?: FileAttachmentsDTO;
|
|
6834
|
+
permissions?: Record<string, any>;
|
|
6835
|
+
[index: string]: any;
|
|
6836
|
+
}
|
|
6837
|
+
|
|
6838
|
+
export interface PostMenuV4BrandRequest extends BaseRequest {
|
|
6839
|
+
body: PostMenuV4BrandBody;
|
|
6840
|
+
}
|
|
6841
|
+
|
|
6842
|
+
// GET /menu/v4/brand/{id}
|
|
6843
|
+
|
|
6844
|
+
export interface GetMenuV4BrandPath {
|
|
6845
|
+
id: string;
|
|
6846
|
+
}
|
|
6847
|
+
|
|
6848
|
+
export interface GetMenuV4BrandQuery {
|
|
6849
|
+
// Graphql query string
|
|
6850
|
+
_query?: string;
|
|
6851
|
+
}
|
|
6852
|
+
|
|
6853
|
+
export interface GetMenuV4BrandResponse {
|
|
6854
|
+
parent?: DraftBrandDTO;
|
|
6855
|
+
children?: DraftBrandDTO[];
|
|
6856
|
+
menus?: DraftMenuDTO[];
|
|
6857
|
+
categories?: DraftCategoryDTO[];
|
|
6858
|
+
category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
|
|
6859
|
+
items?: DraftItemDTO[];
|
|
6860
|
+
item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
|
|
6861
|
+
modifier_groups?: DraftModifierGroupDTO[];
|
|
6862
|
+
modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6863
|
+
modifiers?: DraftModifierDTO[];
|
|
6864
|
+
statuses?: BrandStatusDTO[];
|
|
6865
|
+
audit_logs?: AuditDTO[];
|
|
6866
|
+
id: string;
|
|
6867
|
+
created_at?: string;
|
|
6868
|
+
updated_at?: string;
|
|
6869
|
+
deleted_at?: string;
|
|
6870
|
+
name: string;
|
|
6871
|
+
description?: string;
|
|
6872
|
+
is_active?: boolean;
|
|
6873
|
+
type?: 'global' | 'local';
|
|
6874
|
+
parent_id?: string;
|
|
6875
|
+
local_menu_group_id?: string;
|
|
6876
|
+
global_menu_group_id?: string;
|
|
6877
|
+
posid_segment?: string;
|
|
6878
|
+
is_simplified_view?: boolean;
|
|
6879
|
+
frictionless_partner?: string;
|
|
6880
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6881
|
+
version?: number;
|
|
6882
|
+
changes?: BrandChangeDTO[];
|
|
6883
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
6884
|
+
global_menu_group?: GlobalMenuGroupDTO;
|
|
6885
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6886
|
+
attachments?: FileAttachmentsDTO;
|
|
6887
|
+
permissions?: Record<string, any>;
|
|
6888
|
+
[index: string]: any;
|
|
6889
|
+
}
|
|
6890
|
+
|
|
6891
|
+
export interface GetMenuV4BrandRequest
|
|
6892
|
+
extends BaseRequest,
|
|
6893
|
+
RequestQuery<GetMenuV4BrandQuery>,
|
|
6894
|
+
GetMenuV4BrandPath {}
|
package/src/interface/order.ts
CHANGED
|
@@ -62,9 +62,7 @@ export interface Issue {
|
|
|
62
62
|
id?: string;
|
|
63
63
|
type?: string;
|
|
64
64
|
//@deprecated
|
|
65
|
-
item?:
|
|
66
|
-
[index: string]: any;
|
|
67
|
-
};
|
|
65
|
+
item?: Record<string, any>;
|
|
68
66
|
// Array of Items with issues
|
|
69
67
|
items?: ItemsWithIssue[];
|
|
70
68
|
// Optional additional explanation for issue: 5,10,15 for late issues, SOLD_OUT, MODIFICATION, DIETARY_RESTRICTION for see kitchen issues
|
|
@@ -213,6 +211,8 @@ export interface Order {
|
|
|
213
211
|
code?: string;
|
|
214
212
|
[index: string]: any;
|
|
215
213
|
};
|
|
214
|
+
// The type of kds that the brand uses
|
|
215
|
+
type_of_kds?: string;
|
|
216
216
|
[index: string]: any;
|
|
217
217
|
};
|
|
218
218
|
issue?: Issue;
|
|
@@ -302,9 +302,7 @@ export interface OrderIssue {
|
|
|
302
302
|
// Type of issue
|
|
303
303
|
type?: string;
|
|
304
304
|
//@deprecated
|
|
305
|
-
item?:
|
|
306
|
-
[index: string]: any;
|
|
307
|
-
};
|
|
305
|
+
item?: Record<string, any>;
|
|
308
306
|
// Array of Items with issues
|
|
309
307
|
items?: ItemsWithIssue[];
|
|
310
308
|
// Optional additional explanation for issue: 5,10,15 for late issues, SOLD_OUT, MODIFICATION, DIETARY_RESTRICTION for see kitchen issues
|
|
@@ -331,9 +329,7 @@ export interface OrderedItem {
|
|
|
331
329
|
_promo?: {
|
|
332
330
|
amount?: number;
|
|
333
331
|
};
|
|
334
|
-
meta?:
|
|
335
|
-
[index: string]: any;
|
|
336
|
-
};
|
|
332
|
+
meta?: Record<string, any>;
|
|
337
333
|
options?: {
|
|
338
334
|
label?: {
|
|
339
335
|
en?: string;
|