@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.
- package/lib/index.d.ts +58 -85
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +503 -530
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +1 -1
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/announcement.d.ts +1 -1
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/auth.d.ts +3 -3
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +2 -2
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +11 -11
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +1 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +1 -1
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +1 -1
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +1 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +2 -2
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +9 -9
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +1 -1
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +5 -3
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +2 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +149 -109
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +3 -3
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +7 -7
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +10 -10
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +3 -3
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +8 -8
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +10 -10
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/search.d.ts +8 -8
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +7 -7
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +8 -8
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +2 -2
- package/lib/interface/tax.d.ts.map +1 -1
- package/lib/interface/user.d.ts +16 -16
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +6 -6
- package/lib/interface/vendor.d.ts.map +1 -1
- package/manifest.json +0 -4
- package/package.json +2 -2
- package/src/index.ts +10395 -10464
- package/src/interface/ai.ts +22 -22
- package/src/interface/announcement.ts +60 -60
- package/src/interface/auth.ts +68 -68
- package/src/interface/calendar.ts +94 -94
- package/src/interface/centricos.ts +145 -145
- package/src/interface/compassconnect.ts +59 -59
- package/src/interface/config.ts +166 -166
- package/src/interface/datalake.ts +13 -13
- package/src/interface/email.ts +13 -13
- package/src/interface/file.ts +18 -18
- package/src/interface/frictionless.ts +177 -177
- package/src/interface/kds.ts +49 -49
- package/src/interface/location.ts +771 -769
- package/src/interface/mealplan.ts +155 -154
- package/src/interface/menu.ts +4079 -4018
- package/src/interface/notification.ts +51 -51
- package/src/interface/order.ts +464 -464
- package/src/interface/partner.ts +823 -823
- package/src/interface/payment.ts +278 -278
- package/src/interface/promo.ts +373 -373
- package/src/interface/report.ts +348 -348
- package/src/interface/search.ts +135 -135
- package/src/interface/shoppingcart.ts +429 -429
- package/src/interface/task.ts +212 -212
- package/src/interface/tax.ts +69 -69
- package/src/interface/user.ts +410 -410
- package/src/interface/vendor.ts +215 -215
package/src/interface/tax.ts
CHANGED
|
@@ -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
|
|
4
|
+
import { RequestQuery, BaseRequest } from './util';
|
|
5
5
|
|
|
6
6
|
export interface TaxLocationData {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
message: string;
|
|
82
|
+
code: number;
|
|
83
|
+
data: Record<string, any>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export interface UnauthorizedErrorDTO {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
message: string;
|
|
88
|
+
code: number;
|
|
89
|
+
data: Record<string, any>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
export interface ServiceUnavailableErrorDTO {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
102
|
-
|
|
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
|
-
|
|
116
|
+
body: PostQuoteTaxBody;
|
|
117
117
|
}
|