@compassdigital/sdk.typescript 4.160.0 → 4.162.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.
Files changed (44) hide show
  1. package/lib/interface/ai.d.ts.map +1 -1
  2. package/lib/interface/auth.d.ts.map +1 -1
  3. package/lib/interface/catalog.d.ts.map +1 -1
  4. package/lib/interface/centricos.d.ts +3 -9
  5. package/lib/interface/centricos.d.ts.map +1 -1
  6. package/lib/interface/consumer.d.ts +11 -31
  7. package/lib/interface/consumer.d.ts.map +1 -1
  8. package/lib/interface/discount.d.ts.map +1 -1
  9. package/lib/interface/frictionless.d.ts.map +1 -1
  10. package/lib/interface/menu.d.ts +2 -0
  11. package/lib/interface/menu.d.ts.map +1 -1
  12. package/lib/interface/order.d.ts +2 -2
  13. package/lib/interface/order.d.ts.map +1 -1
  14. package/lib/interface/review.d.ts.map +1 -1
  15. package/lib/interface/tax.d.ts.map +1 -1
  16. package/lib/interface/timeslots.d.ts.map +1 -1
  17. package/lib/messages/legacy/CheckinProcessingFailedEvent.d.ts +1 -1
  18. package/lib/messages/legacy/CheckinProcessingFailedEvent.d.ts.map +1 -1
  19. package/lib/messages/legacy/FrictionlessCheckinExecutedEvent.d.ts +1 -1
  20. package/lib/messages/legacy/FrictionlessCheckinExecutedEvent.d.ts.map +1 -1
  21. package/lib/messages/legacy/FrictionlessThirdPartyWebhookReceivedEvent.d.ts +1 -1
  22. package/lib/messages/legacy/FrictionlessThirdPartyWebhookReceivedEvent.d.ts.map +1 -1
  23. package/lib/messages/legacy/ReprocessCheckinCommandArrivedEvent.d.ts +1 -1
  24. package/lib/messages/legacy/ReprocessCheckinCommandArrivedEvent.d.ts.map +1 -1
  25. package/lib/messages/legacy/UpdateCheckInPaymentRequiredEvent.d.ts +1 -1
  26. package/lib/messages/legacy/UpdateCheckInPaymentRequiredEvent.d.ts.map +1 -1
  27. package/package.json +2 -2
  28. package/src/interface/ai.ts +2 -0
  29. package/src/interface/auth.ts +2 -0
  30. package/src/interface/catalog.ts +2 -0
  31. package/src/interface/centricos.ts +14 -9
  32. package/src/interface/consumer.ts +55 -31
  33. package/src/interface/discount.ts +4 -0
  34. package/src/interface/frictionless.ts +4 -0
  35. package/src/interface/menu.ts +2 -0
  36. package/src/interface/order.ts +2 -2
  37. package/src/interface/review.ts +2 -0
  38. package/src/interface/tax.ts +5 -0
  39. package/src/interface/timeslots.ts +2 -0
  40. package/src/messages/legacy/CheckinProcessingFailedEvent.ts +1 -1
  41. package/src/messages/legacy/FrictionlessCheckinExecutedEvent.ts +1 -1
  42. package/src/messages/legacy/FrictionlessThirdPartyWebhookReceivedEvent.ts +1 -1
  43. package/src/messages/legacy/ReprocessCheckinCommandArrivedEvent.ts +1 -1
  44. package/src/messages/legacy/UpdateCheckInPaymentRequiredEvent.ts +1 -1
@@ -29,10 +29,12 @@ export interface VoucherifyMetaData {
29
29
  }
30
30
 
31
31
  export interface MetaProvider {
32
+ // Voucherify metadata
32
33
  voucherify?: VoucherifyMetaData;
33
34
  }
34
35
 
35
36
  export interface DiscountMeta {
37
+ // discount 3rd party provider metadata
36
38
  provider: MetaProvider;
37
39
  }
38
40
 
@@ -66,6 +68,7 @@ export interface ErrorData {
66
68
  // http status text
67
69
  statusText: string;
68
70
  timestamp: string;
71
+ // user friendly error message
69
72
  displayMessage: ErrorDisplayMessage;
70
73
  }
71
74
 
@@ -74,6 +77,7 @@ export interface Error {
74
77
  code: number;
75
78
  // business error description
76
79
  message: string;
80
+ // additional error data
77
81
  data: ErrorData;
78
82
  }
79
83
 
@@ -23,6 +23,7 @@ export interface ErrorData {
23
23
  // http status text
24
24
  statusText: string;
25
25
  timestamp: string;
26
+ // user friendly error message
26
27
  displayMessage: ErrorDisplayMessage;
27
28
  }
28
29
 
@@ -31,6 +32,7 @@ export interface Error {
31
32
  code: number;
32
33
  // business error description
33
34
  message: string;
35
+ // additional error data
34
36
  data: ErrorData;
35
37
  }
36
38
 
@@ -49,7 +51,9 @@ export interface CreditCardDTO {
49
51
  }
50
52
 
51
53
  export interface PaymentMethodDTO {
54
+ // The mealplan information
52
55
  mealplan?: MealplanDTO;
56
+ // The credit card information
53
57
  creditCard?: CreditCardDTO;
54
58
  // Token used for identify the payment method
55
59
  token: string;
@@ -4451,6 +4451,7 @@ export interface PostMenuV3DraftMenuDuplicatePath {
4451
4451
 
4452
4452
  export interface PostMenuV3DraftMenuDuplicateBody {
4453
4453
  name?: string;
4454
+ translation?: NameTranslation;
4454
4455
  [index: string]: any;
4455
4456
  }
4456
4457
 
@@ -4841,6 +4842,7 @@ export interface PostMenuV3DraftCategoryDuplicateBody {
4841
4842
  sequence?: number;
4842
4843
  is_active?: boolean;
4843
4844
  menu_id?: string;
4845
+ translation?: NameTranslation;
4844
4846
  [index: string]: any;
4845
4847
  }
4846
4848
 
@@ -378,9 +378,9 @@ export interface Orders {
378
378
  };
379
379
  }
380
380
 
381
- export interface ItemsWithIssue extends OrderedItem {
381
+ export type ItemsWithIssue = OrderedItem & {
382
382
  reason?: string;
383
- }
383
+ };
384
384
 
385
385
  export interface ActionResponse {
386
386
  success?: boolean;
@@ -30,6 +30,7 @@ export interface ErrorData {
30
30
  // http status text
31
31
  statusText: string;
32
32
  timestamp: string;
33
+ // user friendly error message
33
34
  displayMessage: ErrorDisplayMessage;
34
35
  }
35
36
 
@@ -38,6 +39,7 @@ export interface Error {
38
39
  code: number;
39
40
  // business error description
40
41
  message: string;
42
+ // additional error data
41
43
  data: ErrorData;
42
44
  }
43
45
 
@@ -45,11 +45,13 @@ export interface TaxRequestDTO {
45
45
  id: string;
46
46
  // the app to associate the transaction with
47
47
  appName: string;
48
+ // the order fulfillment type
48
49
  transactionType: TransactionType;
49
50
  // numeric value of service fee
50
51
  serviceFee?: number;
51
52
  // numeric value of delivery fee
52
53
  deliveryFee?: number;
54
+ // location data of the transaction
53
55
  locationData: TaxLocationData;
54
56
  // items to calculate tax on
55
57
  items: TaxItemDTO[];
@@ -75,6 +77,7 @@ export interface TaxResponseDTO {
75
77
  amount: number;
76
78
  // the total tax rate applied to the items to determine the total tax of the transaction
77
79
  rate: number;
80
+ // tax breakdown containing amount for state/province and total taxable amount
78
81
  breakdown: TaxBreakdownDTO;
79
82
  // the name of the tax provider
80
83
  provider: string;
@@ -93,6 +96,7 @@ export interface ErrorData {
93
96
  // http status text
94
97
  statusText: string;
95
98
  timestamp: string;
99
+ // user friendly error message
96
100
  displayMessage: ErrorDisplayMessage;
97
101
  }
98
102
 
@@ -101,6 +105,7 @@ export interface Error {
101
105
  code: number;
102
106
  // business error description
103
107
  message: string;
108
+ // additional error data
104
109
  data: ErrorData;
105
110
  }
106
111
 
@@ -28,6 +28,7 @@ export interface ErrorData {
28
28
  // http status text
29
29
  statusText: string;
30
30
  timestamp: string;
31
+ // user friendly error message
31
32
  displayMessage: ErrorDisplayMessage;
32
33
  }
33
34
 
@@ -36,6 +37,7 @@ export interface Error {
36
37
  code: number;
37
38
  // business error description
38
39
  message: string;
40
+ // additional error data
39
41
  data: ErrorData;
40
42
  }
41
43
 
@@ -5,7 +5,7 @@
5
5
  * Create a new message type respecting the new standards
6
6
  */
7
7
  export interface CheckinProcessingFailedEvent {
8
- name: string;
8
+ name: 'checkin-processing-failed-event';
9
9
  correlationID: string;
10
10
  checkin: {
11
11
  id: string;
@@ -5,7 +5,7 @@
5
5
  * Create a new message type respecting the new standards
6
6
  */
7
7
  export interface FrictionlessCheckinExecutedEvent {
8
- name: string;
8
+ name: 'frictionless-checkin-executed-event';
9
9
  correlationID: string;
10
10
  checkinID: string;
11
11
  thirdPartyCorrelatedID: string;
@@ -5,7 +5,7 @@
5
5
  * Create a new message type respecting the new standards
6
6
  */
7
7
  export interface FrictionlessThirdPartyWebhookReceivedEvent {
8
- name: string;
8
+ name: 'frictionless-third-party-webhook-received-event';
9
9
  correlationID: string;
10
10
  webhook: {
11
11
  id: string;
@@ -5,7 +5,7 @@
5
5
  * Create a new message type respecting the new standards
6
6
  */
7
7
  export interface ReprocessCheckinCommandArrivedEvent {
8
- name: string;
8
+ name: 'reprocess-checkin-command-arrived-event';
9
9
  checkinID: string;
10
10
  correlationID: string;
11
11
  type: 'ReprocessCheckinCommandArrivedEvent';
@@ -5,7 +5,7 @@
5
5
  * Create a new message type respecting the new standards
6
6
  */
7
7
  export interface UpdateCheckInPaymentRequiredEvent {
8
- name: string;
8
+ name: 'update-checkin-payment-required-event';
9
9
  correlationID: string;
10
10
  checkin: {
11
11
  id: string;