@compassdigital/sdk.typescript 4.99.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.99.0",
3
+ "version": "4.101.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1075,6 +1075,8 @@ import {
1075
1075
  GetCentricosSitesResponse,
1076
1076
  GetReviewOrderItemsQuery,
1077
1077
  GetReviewOrderItemsResponse,
1078
+ GetCentricosStationQuery,
1079
+ GetCentricosStationResponse,
1078
1080
  } from './interface/centricos';
1079
1081
 
1080
1082
  import {
@@ -10941,7 +10943,7 @@ export class ServiceClient extends BaseServiceClient {
10941
10943
  /**
10942
10944
  * GET /consumer/customer-orders/{userId} - Get customer orders
10943
10945
  *
10944
- * @param userId - TODO: add parameter to swagger.json
10946
+ * @param userId - a valid CDL user id
10945
10947
  * @param options - additional request options
10946
10948
  */
10947
10949
  get_customer_orders(
@@ -11249,6 +11251,28 @@ export class ServiceClient extends BaseServiceClient {
11249
11251
  );
11250
11252
  }
11251
11253
 
11254
+ /**
11255
+ * GET /centricos/station/{station_id} - Get station details
11256
+ *
11257
+ * @param station_id - TODO: add parameter to swagger.json
11258
+ * @param options - additional request options
11259
+ */
11260
+ get_centricos_station(
11261
+ station_id: string,
11262
+ options?: {
11263
+ query?: GetCentricosStationQuery;
11264
+ } & RequestOptions,
11265
+ ): ResponsePromise<GetCentricosStationResponse> {
11266
+ return this.request(
11267
+ 'centricos',
11268
+ '/centricos/station/{station_id}',
11269
+ 'get',
11270
+ `/centricos/station/${station_id}`,
11271
+ null,
11272
+ options,
11273
+ );
11274
+ }
11275
+
11252
11276
  /**
11253
11277
  * GET /tax/v1/health-check - Health Check
11254
11278
  *
@@ -107,9 +107,64 @@ 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: Record<string, any>[][];
125
+ reviews: ReviewOrderItem[];
126
+ }
127
+
128
+ export interface Toggle {
129
+ name: string;
130
+ label: string;
131
+ value: boolean;
132
+ }
133
+
134
+ export interface Data {
135
+ name: string;
136
+ label: string;
137
+ value: string;
138
+ }
139
+
140
+ export interface Content {
141
+ label: string;
142
+ toggles?: Toggle[];
143
+ data?: Data[];
144
+ }
145
+
146
+ export interface Integration {
147
+ id: string;
148
+ label: string;
149
+ is_integrated: boolean;
150
+ is_enabled: boolean;
151
+ content: Content;
152
+ }
153
+
154
+ export interface Integrations {
155
+ thrive: Integration;
156
+ boost: Integration;
157
+ nextep: Integration;
158
+ volante: Integration;
159
+ agilysys: Integration;
160
+ }
161
+
162
+ export interface GetStationResponse {
163
+ id: string;
164
+ name: string;
165
+ station_location: string;
166
+ business_unit: string;
167
+ integrations: Integrations;
113
168
  }
114
169
 
115
170
  // POST /centricos/ai/item/description - Generate item description
@@ -322,3 +377,22 @@ export interface GetReviewOrderItemsRequest
322
377
  extends BaseRequest,
323
378
  RequestQuery<GetReviewOrderItemsQuery>,
324
379
  GetReviewOrderItemsPath {}
380
+
381
+ // GET /centricos/station/{station_id} - Get station details
382
+
383
+ export interface GetCentricosStationPath {
384
+ // TODO: add parameter to swagger.json
385
+ station_id: string;
386
+ }
387
+
388
+ export interface GetCentricosStationQuery {
389
+ // Graphql query string
390
+ _query?: string;
391
+ }
392
+
393
+ export type GetCentricosStationResponse = GetStationResponse;
394
+
395
+ export interface GetCentricosStationRequest
396
+ extends BaseRequest,
397
+ RequestQuery<GetCentricosStationQuery>,
398
+ GetCentricosStationPath {}
@@ -438,9 +438,13 @@ export interface OrderItemReview {
438
438
  reason?: string[];
439
439
  }
440
440
 
441
+ export interface DisputedReason {
442
+ name: string;
443
+ isSelected: boolean;
444
+ }
445
+
441
446
  export interface Disputed {
442
- reasons?: string[];
443
- isSelected?: boolean;
447
+ reasons?: DisputedReason[];
444
448
  }
445
449
 
446
450
  export interface ShoppingcartItem {
@@ -789,7 +793,7 @@ export interface GetPaymentListByBrandRequest
789
793
  // GET /consumer/customer-orders/{userId} - Get customer orders
790
794
 
791
795
  export interface GetCustomerOrdersPath {
792
- // TODO: add parameter to swagger.json
796
+ // a valid CDL user id
793
797
  userId: string;
794
798
  }
795
799
 
@@ -108,7 +108,7 @@ export interface Brand {
108
108
  {
109
109
  device_type: string;
110
110
  site_device_id: string;
111
- business_units: string[];
111
+ business_units?: string[];
112
112
  }[]
113
113
  >;
114
114
  timeslots?: {
@@ -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,6 +312,7 @@ export interface Group {
305
312
  alt_logo?: string | null;
306
313
  };
307
314
  timezone?: string;
315
+ device_mapping?: Record<string, DeviceMapping[]>;
308
316
  [index: string]: any;
309
317
  }
310
318
 
@@ -481,6 +489,12 @@ export interface WaitTimeResponse {
481
489
  }[];
482
490
  }
483
491
 
492
+ export interface DeviceMapping {
493
+ device_type?: string;
494
+ site_device_id?: string;
495
+ name?: string;
496
+ }
497
+
484
498
  // POST /location - Create a new location
485
499
 
486
500
  export type PostLocationBody = Location;
@@ -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;