@compassdigital/sdk.typescript 4.66.0 → 4.68.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 (88) hide show
  1. package/lib/index.d.ts +58 -85
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +503 -530
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/ai.d.ts +1 -1
  6. package/lib/interface/ai.d.ts.map +1 -1
  7. package/lib/interface/announcement.d.ts +1 -1
  8. package/lib/interface/announcement.d.ts.map +1 -1
  9. package/lib/interface/auth.d.ts +3 -3
  10. package/lib/interface/auth.d.ts.map +1 -1
  11. package/lib/interface/calendar.d.ts +2 -2
  12. package/lib/interface/calendar.d.ts.map +1 -1
  13. package/lib/interface/centricos.d.ts +11 -11
  14. package/lib/interface/centricos.d.ts.map +1 -1
  15. package/lib/interface/compassconnect.d.ts +1 -1
  16. package/lib/interface/compassconnect.d.ts.map +1 -1
  17. package/lib/interface/config.d.ts +1 -1
  18. package/lib/interface/config.d.ts.map +1 -1
  19. package/lib/interface/datalake.d.ts +1 -1
  20. package/lib/interface/datalake.d.ts.map +1 -1
  21. package/lib/interface/email.d.ts +1 -1
  22. package/lib/interface/email.d.ts.map +1 -1
  23. package/lib/interface/file.d.ts +2 -2
  24. package/lib/interface/file.d.ts.map +1 -1
  25. package/lib/interface/frictionless.d.ts +9 -9
  26. package/lib/interface/frictionless.d.ts.map +1 -1
  27. package/lib/interface/kds.d.ts +1 -1
  28. package/lib/interface/kds.d.ts.map +1 -1
  29. package/lib/interface/location.d.ts +5 -3
  30. package/lib/interface/location.d.ts.map +1 -1
  31. package/lib/interface/mealplan.d.ts +2 -1
  32. package/lib/interface/mealplan.d.ts.map +1 -1
  33. package/lib/interface/menu.d.ts +149 -109
  34. package/lib/interface/menu.d.ts.map +1 -1
  35. package/lib/interface/notification.d.ts +3 -3
  36. package/lib/interface/notification.d.ts.map +1 -1
  37. package/lib/interface/order.d.ts +7 -7
  38. package/lib/interface/order.d.ts.map +1 -1
  39. package/lib/interface/partner.d.ts +10 -10
  40. package/lib/interface/partner.d.ts.map +1 -1
  41. package/lib/interface/payment.d.ts +3 -3
  42. package/lib/interface/payment.d.ts.map +1 -1
  43. package/lib/interface/promo.d.ts +8 -8
  44. package/lib/interface/promo.d.ts.map +1 -1
  45. package/lib/interface/report.d.ts +10 -10
  46. package/lib/interface/report.d.ts.map +1 -1
  47. package/lib/interface/search.d.ts +8 -8
  48. package/lib/interface/search.d.ts.map +1 -1
  49. package/lib/interface/shoppingcart.d.ts +7 -7
  50. package/lib/interface/shoppingcart.d.ts.map +1 -1
  51. package/lib/interface/task.d.ts +8 -8
  52. package/lib/interface/task.d.ts.map +1 -1
  53. package/lib/interface/tax.d.ts +2 -2
  54. package/lib/interface/tax.d.ts.map +1 -1
  55. package/lib/interface/user.d.ts +16 -16
  56. package/lib/interface/user.d.ts.map +1 -1
  57. package/lib/interface/vendor.d.ts +6 -6
  58. package/lib/interface/vendor.d.ts.map +1 -1
  59. package/manifest.json +0 -4
  60. package/package.json +2 -2
  61. package/src/index.ts +10395 -10464
  62. package/src/interface/ai.ts +22 -22
  63. package/src/interface/announcement.ts +60 -60
  64. package/src/interface/auth.ts +68 -68
  65. package/src/interface/calendar.ts +94 -94
  66. package/src/interface/centricos.ts +145 -145
  67. package/src/interface/compassconnect.ts +59 -59
  68. package/src/interface/config.ts +166 -166
  69. package/src/interface/datalake.ts +13 -13
  70. package/src/interface/email.ts +13 -13
  71. package/src/interface/file.ts +18 -18
  72. package/src/interface/frictionless.ts +177 -177
  73. package/src/interface/kds.ts +49 -49
  74. package/src/interface/location.ts +771 -769
  75. package/src/interface/mealplan.ts +155 -154
  76. package/src/interface/menu.ts +4079 -4018
  77. package/src/interface/notification.ts +51 -51
  78. package/src/interface/order.ts +464 -464
  79. package/src/interface/partner.ts +823 -823
  80. package/src/interface/payment.ts +278 -278
  81. package/src/interface/promo.ts +373 -373
  82. package/src/interface/report.ts +348 -348
  83. package/src/interface/search.ts +135 -135
  84. package/src/interface/shoppingcart.ts +429 -429
  85. package/src/interface/task.ts +212 -212
  86. package/src/interface/tax.ts +69 -69
  87. package/src/interface/user.ts +410 -410
  88. package/src/interface/vendor.ts +215 -215
@@ -1,105 +1,105 @@
1
1
  /* eslint-disable */
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
3
 
4
- import { RequestQuery, BaseRequest } from "./util";
4
+ import { RequestQuery, BaseRequest } from './util';
5
5
 
6
6
  export interface TaxLocationData {
7
- // unique location identifier
8
- id: string;
9
- // country of transaction
10
- country: string;
11
- // state or province of transaction
12
- stateOrProvince: string;
13
- // city of transaction
14
- city: string;
15
- // postal code of transaction
16
- postalCode: string;
17
- // street address of transaction
18
- streetAddress: string;
7
+ // unique location identifier
8
+ id: string;
9
+ // country of transaction
10
+ country: string;
11
+ // state or province of transaction
12
+ stateOrProvince: string;
13
+ // city of transaction
14
+ city: string;
15
+ // postal code of transaction
16
+ postalCode: string;
17
+ // street address of transaction
18
+ streetAddress: string;
19
19
  }
20
20
 
21
21
  export interface TaxItemDTO {
22
- // unique item identifier
23
- id: string;
24
- // indicates a tax rule for an item
25
- taxTagCode: string;
26
- // amount of an item
27
- quantity: number;
28
- // decimal price of an item
29
- price: number;
30
- // amount of tax charged on an item after funds are captured
31
- taxedAmount?: number;
22
+ // unique item identifier
23
+ id: string;
24
+ // indicates a tax rule for an item
25
+ taxTagCode: string;
26
+ // amount of an item
27
+ quantity: number;
28
+ // decimal price of an item
29
+ price: number;
30
+ // amount of tax charged on an item after funds are captured
31
+ taxedAmount?: number;
32
32
  }
33
33
 
34
34
  export interface TaxRefund {
35
- // unique identifier of the refunded item
36
- refundItemId: string;
37
- // quantity amount of the item to be refunded
38
- refundItemQuantity: number;
35
+ // unique identifier of the refunded item
36
+ refundItemId: string;
37
+ // quantity amount of the item to be refunded
38
+ refundItemQuantity: number;
39
39
  }
40
40
 
41
41
  export interface TaxRequestDTO {
42
- // a unique identifier representing the transaction
43
- id: string;
44
- // the app to associate the transaction with
45
- appName: string;
46
- // the order fulfillment type
47
- transactionType: "pickup" | "delivery";
48
- // numeric value of service fee
49
- serviceFee?: number;
50
- // numeric value of delivery fee
51
- deliveryFee?: number;
52
- locationData: TaxLocationData;
53
- // items to calculate tax on
54
- items: TaxItemDTO[];
55
- // iso timstamp of transaction date
56
- transactionDate?: string;
57
- // an array of items to refund
58
- refunds?: TaxRefund[];
42
+ // a unique identifier representing the transaction
43
+ id: string;
44
+ // the app to associate the transaction with
45
+ appName: string;
46
+ // the order fulfillment type
47
+ transactionType: 'pickup' | 'delivery';
48
+ // numeric value of service fee
49
+ serviceFee?: number;
50
+ // numeric value of delivery fee
51
+ deliveryFee?: number;
52
+ locationData: TaxLocationData;
53
+ // items to calculate tax on
54
+ items: TaxItemDTO[];
55
+ // iso timstamp of transaction date
56
+ transactionDate?: string;
57
+ // an array of items to refund
58
+ refunds?: TaxRefund[];
59
59
  }
60
60
 
61
61
  export interface TaxBreakdownDTO {
62
- // amount of the total that is taxable (not tax exempt)
63
- taxable_amount: number;
64
- // canadian value: goods and services tax
65
- gst?: number;
66
- // canadian value: provincial sales tax
67
- pst?: number;
68
- // canadian value: quebec sales tax
69
- qst?: number;
62
+ // amount of the total that is taxable (not tax exempt)
63
+ taxable_amount: number;
64
+ // canadian value: goods and services tax
65
+ gst?: number;
66
+ // canadian value: provincial sales tax
67
+ pst?: number;
68
+ // canadian value: quebec sales tax
69
+ qst?: number;
70
70
  }
71
71
 
72
72
  export interface TaxResponseDTO {
73
- // the total tax calculated on a transaction
74
- amount: number;
75
- // the total tax rate applied to the items to determine the total tax of the transaction
76
- rate: number;
77
- breakdown: TaxBreakdownDTO;
73
+ // the total tax calculated on a transaction
74
+ amount: number;
75
+ // the total tax rate applied to the items to determine the total tax of the transaction
76
+ rate: number;
77
+ breakdown: TaxBreakdownDTO;
78
78
  }
79
79
 
80
80
  export interface BadRequestErrorDTO {
81
- message: string;
82
- code: number;
83
- data: Record<string, any>;
81
+ message: string;
82
+ code: number;
83
+ data: Record<string, any>;
84
84
  }
85
85
 
86
86
  export interface UnauthorizedErrorDTO {
87
- message: string;
88
- code: number;
89
- data: Record<string, any>;
87
+ message: string;
88
+ code: number;
89
+ data: Record<string, any>;
90
90
  }
91
91
 
92
92
  export interface ServiceUnavailableErrorDTO {
93
- message: string;
94
- code: number;
95
- data: Record<string, any>;
93
+ message: string;
94
+ code: number;
95
+ data: Record<string, any>;
96
96
  }
97
97
 
98
98
  // GET /tax/v1/health-check - Health Check
99
99
 
100
100
  export interface TaxHealthCheckQuery {
101
- // Graphql query string
102
- _query?: string;
101
+ // Graphql query string
102
+ _query?: string;
103
103
  }
104
104
 
105
105
  export type TaxHealthCheckResponse = {};
@@ -113,5 +113,5 @@ export type PostQuoteTaxBody = TaxRequestDTO;
113
113
  export type PostQuoteTaxResponse = TaxResponseDTO;
114
114
 
115
115
  export interface PostQuoteTaxRequest extends BaseRequest {
116
- body: PostQuoteTaxBody;
116
+ body: PostQuoteTaxBody;
117
117
  }