@compassdigital/sdk.typescript 4.100.0 → 4.101.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 +1 -1
- package/lib/index.js +1 -1
- package/lib/interface/centricos.d.ts +9 -1
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/location.d.ts +13 -5
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +16 -12
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/interface/centricos.ts +15 -1
- package/src/interface/consumer.ts +1 -1
- package/src/interface/location.ts +14 -8
- package/src/interface/menu.ts +16 -12
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -10943,7 +10943,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10943
10943
|
/**
|
|
10944
10944
|
* GET /consumer/customer-orders/{userId} - Get customer orders
|
|
10945
10945
|
*
|
|
10946
|
-
* @param userId -
|
|
10946
|
+
* @param userId - a valid CDL user id
|
|
10947
10947
|
* @param options - additional request options
|
|
10948
10948
|
*/
|
|
10949
10949
|
get_customer_orders(
|
|
@@ -107,9 +107,22 @@ export interface GetSitesResponse {
|
|
|
107
107
|
results: Site[];
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
export interface ReviewOrderItem {
|
|
111
|
+
// Order id
|
|
112
|
+
id: string;
|
|
113
|
+
// Taxonomy
|
|
114
|
+
taxonomy: Record<string, any>;
|
|
115
|
+
// Rating score
|
|
116
|
+
score: number;
|
|
117
|
+
// Review comment
|
|
118
|
+
comment?: string;
|
|
119
|
+
// Review tags
|
|
120
|
+
reason?: ('Freshness' | 'Value for money' | 'Taste' | 'Temperature' | 'Portion')[];
|
|
121
|
+
}
|
|
122
|
+
|
|
110
123
|
export interface ReviewOrderItemsResponseDTO {
|
|
111
124
|
// List of reviews
|
|
112
|
-
reviews:
|
|
125
|
+
reviews: ReviewOrderItem[];
|
|
113
126
|
}
|
|
114
127
|
|
|
115
128
|
export interface Toggle {
|
|
@@ -143,6 +156,7 @@ export interface Integrations {
|
|
|
143
156
|
boost: Integration;
|
|
144
157
|
nextep: Integration;
|
|
145
158
|
volante: Integration;
|
|
159
|
+
agilysys: Integration;
|
|
146
160
|
}
|
|
147
161
|
|
|
148
162
|
export interface GetStationResponse {
|
|
@@ -793,7 +793,7 @@ export interface GetPaymentListByBrandRequest
|
|
|
793
793
|
// GET /consumer/customer-orders/{userId} - Get customer orders
|
|
794
794
|
|
|
795
795
|
export interface GetCustomerOrdersPath {
|
|
796
|
-
//
|
|
796
|
+
// a valid CDL user id
|
|
797
797
|
userId: string;
|
|
798
798
|
}
|
|
799
799
|
|
|
@@ -203,6 +203,13 @@ export interface Brand {
|
|
|
203
203
|
mobile_app?: boolean;
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
|
+
type_of_kds?: {
|
|
207
|
+
cdl?: boolean;
|
|
208
|
+
nextep?: boolean;
|
|
209
|
+
volante?: boolean;
|
|
210
|
+
agilysys?: boolean;
|
|
211
|
+
[index: string]: any;
|
|
212
|
+
};
|
|
206
213
|
[index: string]: any;
|
|
207
214
|
};
|
|
208
215
|
descriptions?: {
|
|
@@ -305,14 +312,7 @@ export interface Group {
|
|
|
305
312
|
alt_logo?: string | null;
|
|
306
313
|
};
|
|
307
314
|
timezone?: string;
|
|
308
|
-
device_mapping?: Record<
|
|
309
|
-
string,
|
|
310
|
-
{
|
|
311
|
-
device_type?: string;
|
|
312
|
-
site_device_id?: string;
|
|
313
|
-
name?: string;
|
|
314
|
-
}[]
|
|
315
|
-
>;
|
|
315
|
+
device_mapping?: Record<string, DeviceMapping[]>;
|
|
316
316
|
[index: string]: any;
|
|
317
317
|
}
|
|
318
318
|
|
|
@@ -489,6 +489,12 @@ export interface WaitTimeResponse {
|
|
|
489
489
|
}[];
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
+
export interface DeviceMapping {
|
|
493
|
+
device_type?: string;
|
|
494
|
+
site_device_id?: string;
|
|
495
|
+
name?: string;
|
|
496
|
+
}
|
|
497
|
+
|
|
492
498
|
// POST /location - Create a new location
|
|
493
499
|
|
|
494
500
|
export type PostLocationBody = Location;
|
package/src/interface/menu.ts
CHANGED
|
@@ -430,6 +430,8 @@ export interface GlobalMenuGroupDTO {
|
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
export interface DraftBrandDTO {
|
|
433
|
+
catalog_id?: number;
|
|
434
|
+
published_catalog_id?: number;
|
|
433
435
|
id?: string;
|
|
434
436
|
name?: string;
|
|
435
437
|
description?: string;
|
|
@@ -441,7 +443,6 @@ export interface DraftBrandDTO {
|
|
|
441
443
|
posid_segment?: string;
|
|
442
444
|
is_simplified_view?: boolean;
|
|
443
445
|
frictionless_partner?: string;
|
|
444
|
-
catalog_id?: number;
|
|
445
446
|
meta?: BrandMeta;
|
|
446
447
|
applied_diff_snapshot?: Record<string, any>;
|
|
447
448
|
permissions?: Record<string, any>;
|
|
@@ -464,7 +465,6 @@ export interface PublishedBrandDTO {
|
|
|
464
465
|
posid_segment?: string;
|
|
465
466
|
is_simplified_view?: boolean;
|
|
466
467
|
frictionless_partner?: string;
|
|
467
|
-
catalog_id?: number;
|
|
468
468
|
meta?: Record<string, any>;
|
|
469
469
|
permissions?: Record<string, any>;
|
|
470
470
|
[index: string]: any;
|
|
@@ -2867,6 +2867,8 @@ export interface PostMenuV3DraftBrandBody {
|
|
|
2867
2867
|
modifiers?: DraftModifierDTO[];
|
|
2868
2868
|
statuses?: BrandStatusDTO[];
|
|
2869
2869
|
audit_logs?: AuditDTO[];
|
|
2870
|
+
catalog_id?: number;
|
|
2871
|
+
published_catalog_id?: number;
|
|
2870
2872
|
name: string;
|
|
2871
2873
|
description?: string;
|
|
2872
2874
|
is_active?: boolean;
|
|
@@ -2877,7 +2879,6 @@ export interface PostMenuV3DraftBrandBody {
|
|
|
2877
2879
|
posid_segment?: string;
|
|
2878
2880
|
is_simplified_view?: boolean;
|
|
2879
2881
|
frictionless_partner?: string;
|
|
2880
|
-
catalog_id?: number;
|
|
2881
2882
|
meta?: BrandMeta;
|
|
2882
2883
|
applied_diff_snapshot?: Record<string, any>;
|
|
2883
2884
|
changes?: BrandChangeDTO[];
|
|
@@ -2936,6 +2937,8 @@ export interface PatchMenuV3DraftBrandBody {
|
|
|
2936
2937
|
modifiers?: DraftModifierDTO[];
|
|
2937
2938
|
statuses?: BrandStatusDTO[];
|
|
2938
2939
|
audit_logs?: AuditDTO[];
|
|
2940
|
+
catalog_id?: number;
|
|
2941
|
+
published_catalog_id?: number;
|
|
2939
2942
|
id?: string;
|
|
2940
2943
|
name?: string;
|
|
2941
2944
|
description?: string;
|
|
@@ -2947,7 +2950,6 @@ export interface PatchMenuV3DraftBrandBody {
|
|
|
2947
2950
|
posid_segment?: string;
|
|
2948
2951
|
is_simplified_view?: boolean;
|
|
2949
2952
|
frictionless_partner?: string;
|
|
2950
|
-
catalog_id?: number;
|
|
2951
2953
|
meta?: BrandMeta;
|
|
2952
2954
|
applied_diff_snapshot?: Record<string, any>;
|
|
2953
2955
|
version?: number;
|
|
@@ -3029,6 +3031,8 @@ export type PostMenuV3DraftBrandsBody = {
|
|
|
3029
3031
|
modifiers?: DraftModifierDTO[];
|
|
3030
3032
|
statuses?: BrandStatusDTO[];
|
|
3031
3033
|
audit_logs?: AuditDTO[];
|
|
3034
|
+
catalog_id?: number;
|
|
3035
|
+
published_catalog_id?: number;
|
|
3032
3036
|
name: string;
|
|
3033
3037
|
description?: string;
|
|
3034
3038
|
is_active?: boolean;
|
|
@@ -3039,7 +3043,6 @@ export type PostMenuV3DraftBrandsBody = {
|
|
|
3039
3043
|
posid_segment?: string;
|
|
3040
3044
|
is_simplified_view?: boolean;
|
|
3041
3045
|
frictionless_partner?: string;
|
|
3042
|
-
catalog_id?: number;
|
|
3043
3046
|
meta?: BrandMeta;
|
|
3044
3047
|
applied_diff_snapshot?: Record<string, any>;
|
|
3045
3048
|
changes?: BrandChangeDTO[];
|
|
@@ -3529,7 +3532,6 @@ export interface PostMenuV3BrandBody {
|
|
|
3529
3532
|
posid_segment?: string;
|
|
3530
3533
|
is_simplified_view?: boolean;
|
|
3531
3534
|
frictionless_partner?: string;
|
|
3532
|
-
catalog_id?: number;
|
|
3533
3535
|
meta?: BrandMeta;
|
|
3534
3536
|
local_menu_group?: LocalMenuGroupDTO;
|
|
3535
3537
|
global_menu_group?: GlobalMenuGroupDTO;
|
|
@@ -3599,7 +3601,6 @@ export interface PatchMenuV3BrandBody {
|
|
|
3599
3601
|
posid_segment?: string;
|
|
3600
3602
|
is_simplified_view?: boolean;
|
|
3601
3603
|
frictionless_partner?: string;
|
|
3602
|
-
catalog_id?: number;
|
|
3603
3604
|
meta?: BrandMeta;
|
|
3604
3605
|
version?: number;
|
|
3605
3606
|
local_menu_group?: LocalMenuGroupDTO;
|
|
@@ -3693,7 +3694,6 @@ export type PostMenuV3BrandsBody = {
|
|
|
3693
3694
|
posid_segment?: string;
|
|
3694
3695
|
is_simplified_view?: boolean;
|
|
3695
3696
|
frictionless_partner?: string;
|
|
3696
|
-
catalog_id?: number;
|
|
3697
3697
|
meta?: BrandMeta;
|
|
3698
3698
|
local_menu_group?: LocalMenuGroupDTO;
|
|
3699
3699
|
global_menu_group?: GlobalMenuGroupDTO;
|
|
@@ -7099,6 +7099,8 @@ export interface PostMenuV4BrandBody {
|
|
|
7099
7099
|
modifiers?: DraftModifierDTO[];
|
|
7100
7100
|
statuses?: BrandStatusDTO[];
|
|
7101
7101
|
audit_logs?: AuditDTO[];
|
|
7102
|
+
catalog_id?: number;
|
|
7103
|
+
published_catalog_id?: number;
|
|
7102
7104
|
name: string;
|
|
7103
7105
|
description?: string;
|
|
7104
7106
|
is_active?: boolean;
|
|
@@ -7109,7 +7111,6 @@ export interface PostMenuV4BrandBody {
|
|
|
7109
7111
|
posid_segment?: string;
|
|
7110
7112
|
is_simplified_view?: boolean;
|
|
7111
7113
|
frictionless_partner?: string;
|
|
7112
|
-
catalog_id?: number;
|
|
7113
7114
|
meta?: BrandMeta;
|
|
7114
7115
|
applied_diff_snapshot?: Record<string, any>;
|
|
7115
7116
|
changes?: BrandChangeDTO[];
|
|
@@ -7134,6 +7135,8 @@ export interface PostMenuV4BrandResponse {
|
|
|
7134
7135
|
modifiers?: DraftModifierDTO[];
|
|
7135
7136
|
statuses?: BrandStatusDTO[];
|
|
7136
7137
|
audit_logs?: AuditDTO[];
|
|
7138
|
+
catalog_id?: number;
|
|
7139
|
+
published_catalog_id?: number;
|
|
7137
7140
|
id: string;
|
|
7138
7141
|
created_at?: string;
|
|
7139
7142
|
updated_at?: string;
|
|
@@ -7148,7 +7151,6 @@ export interface PostMenuV4BrandResponse {
|
|
|
7148
7151
|
posid_segment?: string;
|
|
7149
7152
|
is_simplified_view?: boolean;
|
|
7150
7153
|
frictionless_partner?: string;
|
|
7151
|
-
catalog_id?: number;
|
|
7152
7154
|
meta?: BrandMeta;
|
|
7153
7155
|
applied_diff_snapshot?: Record<string, any>;
|
|
7154
7156
|
version?: number;
|
|
@@ -7189,6 +7191,8 @@ export interface GetMenuV4BrandResponse {
|
|
|
7189
7191
|
modifiers?: DraftModifierDTO[];
|
|
7190
7192
|
statuses?: BrandStatusDTO[];
|
|
7191
7193
|
audit_logs?: AuditDTO[];
|
|
7194
|
+
catalog_id?: number;
|
|
7195
|
+
published_catalog_id?: number;
|
|
7192
7196
|
id: string;
|
|
7193
7197
|
created_at?: string;
|
|
7194
7198
|
updated_at?: string;
|
|
@@ -7203,7 +7207,6 @@ export interface GetMenuV4BrandResponse {
|
|
|
7203
7207
|
posid_segment?: string;
|
|
7204
7208
|
is_simplified_view?: boolean;
|
|
7205
7209
|
frictionless_partner?: string;
|
|
7206
|
-
catalog_id?: number;
|
|
7207
7210
|
meta?: BrandMeta;
|
|
7208
7211
|
applied_diff_snapshot?: Record<string, any>;
|
|
7209
7212
|
version?: number;
|
|
@@ -7240,6 +7243,8 @@ export interface DeleteMenuV4BrandResponse {
|
|
|
7240
7243
|
modifiers?: DraftModifierDTO[];
|
|
7241
7244
|
statuses?: BrandStatusDTO[];
|
|
7242
7245
|
audit_logs?: AuditDTO[];
|
|
7246
|
+
catalog_id?: number;
|
|
7247
|
+
published_catalog_id?: number;
|
|
7243
7248
|
id: string;
|
|
7244
7249
|
created_at?: string;
|
|
7245
7250
|
updated_at?: string;
|
|
@@ -7254,7 +7259,6 @@ export interface DeleteMenuV4BrandResponse {
|
|
|
7254
7259
|
posid_segment?: string;
|
|
7255
7260
|
is_simplified_view?: boolean;
|
|
7256
7261
|
frictionless_partner?: string;
|
|
7257
|
-
catalog_id?: number;
|
|
7258
7262
|
meta?: BrandMeta;
|
|
7259
7263
|
applied_diff_snapshot?: Record<string, any>;
|
|
7260
7264
|
version?: number;
|