@compassdigital/sdk.typescript 3.49.0 → 3.51.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.
@@ -28,6 +28,7 @@ export interface ShoppingCartResponse {
28
28
  percent_off?: MonetaryValue;
29
29
  amount?: MonetaryValue;
30
30
  app?: string;
31
+ discount?: any;
31
32
  };
32
33
  //@deprecated
33
34
  loyalty?: {
@@ -45,23 +46,28 @@ export interface ShoppingCartResponse {
45
46
  amount_off?: MonetaryValue;
46
47
  percent_off?: MonetaryValue;
47
48
  amount?: MonetaryValue;
49
+ discount?: any;
48
50
  };
49
51
  payment_method?: {
50
52
  email?: string;
53
+ // Mealplan payment details
51
54
  mealplan?: {
52
55
  id?: string;
53
56
  tender?: string;
54
57
  total?: MonetaryValue;
55
58
  };
59
+ // Credit Cart payment details
56
60
  credit_card?: {
57
61
  card_type?: string;
58
62
  last4?: string;
59
63
  total?: MonetaryValue;
60
64
  };
65
+ // Digital Wallet Pay payment details
61
66
  digital_wallet_pay?: {
62
67
  wallet_type?: string;
63
68
  total?: MonetaryValue;
64
69
  };
70
+ // Meal Swipes payment details
65
71
  meal_swipes?: {
66
72
  id?: string;
67
73
  tender?: string;
@@ -71,6 +77,7 @@ export interface ShoppingCartResponse {
71
77
  rate?: MonetaryValue;
72
78
  total?: MonetaryValue;
73
79
  };
80
+ // Meal Exchange payment details
74
81
  meal_exchange?: {
75
82
  id?: string;
76
83
  tender?: string;
@@ -188,6 +195,7 @@ export interface ItemResponse {
188
195
  meal_value?: IntegerValue;
189
196
  category?: Label;
190
197
  tax_rate?: MonetaryValue;
198
+ label?: Label;
191
199
  }
192
200
 
193
201
  export type MonetaryValue = number;
@@ -806,8 +814,6 @@ export interface PostPartnerStandardcognitionMenuBody {
806
814
  sector: string;
807
815
  // CDL location brand ID
808
816
  location_brand: string;
809
- // jsonfile
810
- jsonfile?: string;
811
817
  // Link for S3 menu file provided by Standard Cognition
812
818
  s3_link: string;
813
819
  }
@@ -847,3 +853,29 @@ export interface GetPartnerSwaggerResponse {
847
853
  export interface GetPartnerSwaggerRequest
848
854
  extends BaseRequest,
849
855
  RequestQuery<GetPartnerSwaggerQuery> {}
856
+
857
+ // POST /partner/{id}/menu - Create a Partner menu from files(only xls for now)
858
+
859
+ export interface PostPartnerMenuPath {
860
+ // partner
861
+ id: string;
862
+ }
863
+
864
+ export interface PostPartnerMenuBody {
865
+ // Link for S3 menu file(file is uploaded to S3 before it gets processed)
866
+ s3_link: string;
867
+ // CDL Id of a location group units of which being updated
868
+ location_group: string;
869
+ // Should make items visible in local menu by default
870
+ default_items_visible?: boolean;
871
+ }
872
+
873
+ export interface PostPartnerMenuResponse {
874
+ menus?: {
875
+ id: string;
876
+ }[];
877
+ }
878
+
879
+ export interface PostPartnerMenuRequest extends BaseRequest, PostPartnerMenuPath {
880
+ body: PostPartnerMenuBody;
881
+ }
@@ -139,14 +139,18 @@ export interface Error {
139
139
  code?: number;
140
140
  }
141
141
 
142
- export interface BadgePayTender {
142
+ export interface CashlessTender {
143
143
  balance?: number;
144
144
  // ID('payment', '<provider>', 'tender', <timestamp via Data.now()>
145
145
  id?: string;
146
146
  // name associated with badgepay tender, stored in site public config
147
147
  name?: string;
148
+ // account type associated with badgepay tender, stored in site public config
149
+ type?: string;
148
150
  }
149
151
 
152
+ export type BadgePayTender = CashlessTender;
153
+
150
154
  // POST /payment/{id}/transaction
151
155
 
152
156
  export interface PostPaymentTransactionPath {
@@ -202,6 +206,8 @@ export interface GetPaymentClienttokenPath {
202
206
  }
203
207
 
204
208
  export interface GetPaymentClienttokenQuery {
209
+ // hCaptcha response key
210
+ captchaResponseKey: string;
205
211
  // Graphql query string
206
212
  _query?: string;
207
213
  }
@@ -394,63 +400,63 @@ export interface GetPaymentHpcResponse {
394
400
 
395
401
  export interface GetPaymentHpcRequest extends BaseRequest, RequestQuery<GetPaymentHpcQuery> {}
396
402
 
397
- // GET /payment/{id}/badgepay
403
+ // GET /payment/{id}/cashless
398
404
 
399
- export interface GetPaymentBadgepayPath {
405
+ export interface GetPaymentCashlessPath {
400
406
  // TODO: add parameter to swagger.json
401
407
  id: string;
402
408
  }
403
409
 
404
- export interface GetPaymentBadgepayQuery {
410
+ export interface GetPaymentCashlessQuery {
405
411
  // Graphql query string
406
412
  _query?: string;
407
413
  }
408
414
 
409
- export interface GetPaymentBadgepayResponse {
410
- tenders?: BadgePayTender[];
415
+ export interface GetPaymentCashlessResponse {
416
+ tenders?: CashlessTender[];
411
417
  }
412
418
 
413
- export interface GetPaymentBadgepayRequest
419
+ export interface GetPaymentCashlessRequest
414
420
  extends BaseRequest,
415
- RequestQuery<GetPaymentBadgepayQuery>,
416
- GetPaymentBadgepayPath {}
421
+ RequestQuery<GetPaymentCashlessQuery>,
422
+ GetPaymentCashlessPath {}
417
423
 
418
- // POST /payment/{id}/badgepay
424
+ // POST /payment/{id}/cashless
419
425
 
420
- export interface PostPaymentBadgepayPath {
426
+ export interface PostPaymentCashlessPath {
421
427
  // TODO: add parameter to swagger.json
422
428
  id: string;
423
429
  }
424
430
 
425
- export interface PostPaymentBadgepayBody {
431
+ export interface PostPaymentCashlessBody {
426
432
  // The reference ID returned from FP account confirmation
427
433
  token: string;
428
434
  }
429
435
 
430
- export interface PostPaymentBadgepayResponse {
431
- tenders?: BadgePayTender[];
436
+ export interface PostPaymentCashlessResponse {
437
+ tenders?: CashlessTender[];
432
438
  }
433
439
 
434
- export interface PostPaymentBadgepayRequest extends BaseRequest, PostPaymentBadgepayPath {
435
- body: PostPaymentBadgepayBody;
440
+ export interface PostPaymentCashlessRequest extends BaseRequest, PostPaymentCashlessPath {
441
+ body: PostPaymentCashlessBody;
436
442
  }
437
443
 
438
- // DELETE /payment/{id}/badgepay
444
+ // DELETE /payment/{id}/cashless
439
445
 
440
- export interface DeletePaymentBadgepayPath {
446
+ export interface DeletePaymentCashlessPath {
441
447
  // TODO: add parameter to swagger.json
442
448
  id: string;
443
449
  }
444
450
 
445
- export interface DeletePaymentBadgepayBody {
451
+ export interface DeletePaymentCashlessBody {
446
452
  // An optional array of tenders to delete
447
453
  tenders?: string[];
448
454
  }
449
455
 
450
- export interface DeletePaymentBadgepayResponse {
451
- tenders?: BadgePayTender[];
456
+ export interface DeletePaymentCashlessResponse {
457
+ tenders?: CashlessTender[];
452
458
  }
453
459
 
454
- export interface DeletePaymentBadgepayRequest extends BaseRequest, DeletePaymentBadgepayPath {
455
- body: DeletePaymentBadgepayBody;
460
+ export interface DeletePaymentCashlessRequest extends BaseRequest, DeletePaymentCashlessPath {
461
+ body: DeletePaymentCashlessBody;
456
462
  }
@@ -306,6 +306,13 @@ export interface P2AnalyticsReport {
306
306
  }[];
307
307
  }
308
308
 
309
+ export interface EODItemReport {
310
+ // Base64 encoded file
311
+ file?: string;
312
+ // Base64 encoded file format
313
+ format?: string;
314
+ }
315
+
309
316
  // GET /report/analytics/group/{location_group}/{report_type}
310
317
 
311
318
  export interface GetReportAnalyticsGroupPath {
@@ -443,3 +450,32 @@ export interface PutReportEodGroupSubscribersRequest
443
450
  PutReportEodGroupSubscribersPath {
444
451
  body: PutReportEodGroupSubscribersBody;
445
452
  }
453
+
454
+ // GET /report/eod/group/{id}/items - Get items sales report for selected location group
455
+
456
+ export interface GetReportEodGroupItemsPath {
457
+ id: string;
458
+ }
459
+
460
+ export interface GetReportEodGroupItemsQuery {
461
+ // Report start date in ISO 8601 format
462
+ start: string;
463
+ // Report end date in ISO 8601 format
464
+ end: string;
465
+ // Output format
466
+ format: string;
467
+ // Partner name for specific formatting
468
+ partner: string;
469
+ // Location IDs, comma-separated
470
+ locations: string;
471
+ // Graphql query string
472
+ _query?: string;
473
+ nocache?: boolean;
474
+ }
475
+
476
+ export type GetReportEodGroupItemsResponse = EODItemReport;
477
+
478
+ export interface GetReportEodGroupItemsRequest
479
+ extends BaseRequest,
480
+ RequestQuery<GetReportEodGroupItemsQuery>,
481
+ GetReportEodGroupItemsPath {}
@@ -81,6 +81,7 @@ export interface ItemResponse {
81
81
 
82
82
  export interface ModifierGroupRequest {
83
83
  label?: Label;
84
+ id?: string;
84
85
  items?: ModifierRequest[];
85
86
  }
86
87
 
@@ -39,6 +39,11 @@ export interface User {
39
39
  send_emails_date_updated?: string;
40
40
  };
41
41
  mealplan_added_date?: string;
42
+ // limit set to prevent too many login attempts with incorrect password
43
+ login_limit?: {
44
+ login_attempts?: number;
45
+ last_attempt_date?: string;
46
+ };
42
47
  // forgot password verification details
43
48
  password_verification?: {
44
49
  attempts?: number;
@@ -55,6 +60,8 @@ export interface User {
55
60
  };
56
61
  is?: {
57
62
  disabled?: boolean;
63
+ // User locked out status
64
+ locked_out?: boolean;
58
65
  // If the users email is verified
59
66
  verified?: boolean;
60
67
  // User phone number verification