@compassdigital/sdk.typescript 4.5.0 → 4.7.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 +96 -29
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +103 -28
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +3 -3
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/announcement.d.ts +2 -2
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +1 -1
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +3 -3
- 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 +77 -17
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +2 -2
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/delivery.d.ts +3 -3
- package/lib/interface/delivery.d.ts.map +1 -1
- package/lib/interface/email.d.ts +2 -2
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +1 -1
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +132 -33
- 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 +10 -10
- 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 +324 -261
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +2 -2
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +3 -3
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +16 -16
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +12 -4
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +4 -4
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +1 -1
- package/lib/interface/report.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 +5 -5
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +4 -4
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +1 -1
- package/lib/interface/vendor.d.ts.map +1 -1
- package/manifest.json +2 -2
- package/package.json +2 -2
- package/src/index.ts +261 -71
- package/src/interface/ai.ts +3 -3
- package/src/interface/announcement.ts +2 -2
- package/src/interface/calendar.ts +1 -1
- package/src/interface/centricos.ts +3 -3
- package/src/interface/compassconnect.ts +1 -1
- package/src/interface/config.ts +83 -17
- package/src/interface/datalake.ts +2 -2
- package/src/interface/delivery.ts +3 -3
- package/src/interface/email.ts +2 -2
- package/src/interface/file.ts +1 -1
- package/src/interface/frictionless.ts +193 -43
- package/src/interface/kds.ts +1 -1
- package/src/interface/location.ts +10 -10
- package/src/interface/mealplan.ts +2 -1
- package/src/interface/menu.ts +357 -268
- package/src/interface/notification.ts +2 -2
- package/src/interface/order.ts +3 -3
- package/src/interface/partner.ts +16 -16
- package/src/interface/payment.ts +17 -4
- package/src/interface/promo.ts +4 -4
- package/src/interface/report.ts +1 -1
- package/src/interface/shoppingcart.ts +7 -7
- package/src/interface/task.ts +5 -5
- package/src/interface/user.ts +4 -4
- package/src/interface/vendor.ts +1 -1
package/src/interface/config.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { RequestQuery, BaseRequest } from "./util";
|
|
5
5
|
|
|
6
|
-
export type CreateConfig = any
|
|
6
|
+
export type CreateConfig = Record<string, any>;
|
|
7
7
|
|
|
8
8
|
export interface Config {
|
|
9
9
|
[index: string]: any;
|
|
@@ -12,7 +12,7 @@ export interface Config {
|
|
|
12
12
|
export interface Error {
|
|
13
13
|
error?: string;
|
|
14
14
|
code?: number;
|
|
15
|
-
data?: any
|
|
15
|
+
data?: Record<string, any>;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface Success {
|
|
@@ -42,7 +42,7 @@ export interface PublicBrandConfig {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export interface PublicLocationConfig {
|
|
45
|
-
mealplan?:
|
|
45
|
+
mealplan?: PublicMealplanConfig[];
|
|
46
46
|
badge_pay?: {
|
|
47
47
|
id?: string;
|
|
48
48
|
type?: string;
|
|
@@ -75,7 +75,13 @@ export interface AppConfig {
|
|
|
75
75
|
export interface PrivateConfig {
|
|
76
76
|
payment?: {
|
|
77
77
|
refund?: boolean;
|
|
78
|
-
freedompay?:
|
|
78
|
+
freedompay?: {
|
|
79
|
+
id?: string;
|
|
80
|
+
// backwards compatibility placeholder for mobile
|
|
81
|
+
freedompay_store_id?: string;
|
|
82
|
+
// backwards compatibility placeholder for mobile
|
|
83
|
+
freedompay_terminal_id?: string;
|
|
84
|
+
};
|
|
79
85
|
};
|
|
80
86
|
loyalty?: {
|
|
81
87
|
provider_id?: string;
|
|
@@ -84,26 +90,86 @@ export interface PrivateConfig {
|
|
|
84
90
|
email?: string;
|
|
85
91
|
}[];
|
|
86
92
|
};
|
|
87
|
-
mealplan?:
|
|
93
|
+
mealplan?: PrivateMealplanConfig[];
|
|
94
|
+
keystore?: {
|
|
95
|
+
schema?: Keystore;
|
|
96
|
+
};
|
|
88
97
|
[index: string]: any;
|
|
89
98
|
}
|
|
90
99
|
|
|
91
|
-
export interface
|
|
100
|
+
export interface PublicMealplanConfig {
|
|
92
101
|
id?: string;
|
|
93
102
|
type?: string;
|
|
94
103
|
name?: string;
|
|
95
|
-
tenders?:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
tenders?: Tender[];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface PrivateMealplanConfig {
|
|
108
|
+
id?: string;
|
|
109
|
+
name?: string;
|
|
110
|
+
type?: string;
|
|
111
|
+
version?: number;
|
|
112
|
+
config?: {
|
|
113
|
+
tenders?: Tender[];
|
|
114
|
+
terminal_id?: string;
|
|
115
|
+
version?: string;
|
|
116
|
+
};
|
|
117
|
+
keystore?: {
|
|
118
|
+
API_URL?: string;
|
|
119
|
+
api_url?: string;
|
|
120
|
+
key?: string;
|
|
121
|
+
operator_id?: string;
|
|
122
|
+
operator_password?: string;
|
|
123
|
+
certificate?: {
|
|
124
|
+
name?: string;
|
|
125
|
+
encoded_file?: string;
|
|
126
|
+
password?: string;
|
|
127
|
+
};
|
|
128
|
+
device_id?: number;
|
|
129
|
+
endpoint?: string;
|
|
130
|
+
vendor_id?: string;
|
|
131
|
+
webview?: string;
|
|
132
|
+
aes_key?: string;
|
|
133
|
+
host?: string;
|
|
134
|
+
manual_id_entry?: string;
|
|
135
|
+
port?: number;
|
|
136
|
+
vendor_number?: number;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface Keystore {
|
|
141
|
+
mealplan?: CbordMealplanConfig;
|
|
142
|
+
payment?: {
|
|
143
|
+
freedompay?: {
|
|
144
|
+
id?: string;
|
|
145
|
+
freedompay_store_id?: string;
|
|
146
|
+
freedompay_terminal_id?: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface CbordMealplanConfig {
|
|
152
|
+
auth_type?: number;
|
|
153
|
+
auth_url?: string;
|
|
154
|
+
name?: string;
|
|
155
|
+
type?: string;
|
|
156
|
+
uuid?: string;
|
|
157
|
+
short_name?: string;
|
|
158
|
+
primary_color?: string;
|
|
159
|
+
[index: string]: any;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface Tender {
|
|
163
|
+
max_swipes_per_transaction?: number;
|
|
164
|
+
name?: string;
|
|
165
|
+
rates?: {
|
|
166
|
+
amount?: number;
|
|
167
|
+
hours?: string;
|
|
106
168
|
}[];
|
|
169
|
+
tender_number?: string;
|
|
170
|
+
type?: string;
|
|
171
|
+
id?: string;
|
|
172
|
+
tax_exempt?: boolean;
|
|
107
173
|
}
|
|
108
174
|
|
|
109
175
|
// GET /config/appconfig - get appconfig - an object with data for clients including minimum versions apps (boost, thrive, J&J) should be running and a link to the respective app store
|
|
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
|
|
|
6
6
|
export interface Error {
|
|
7
7
|
error?: string;
|
|
8
8
|
code?: number;
|
|
9
|
-
data?: any
|
|
9
|
+
data?: Record<string, any>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export interface QueryBody {
|
|
@@ -34,7 +34,7 @@ export interface GetDatalakeSwaggerQuery {
|
|
|
34
34
|
_query?: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export type GetDatalakeSwaggerResponse = any
|
|
37
|
+
export type GetDatalakeSwaggerResponse = Record<string, any>;
|
|
38
38
|
|
|
39
39
|
export interface GetDatalakeSwaggerRequest
|
|
40
40
|
extends BaseRequest,
|
|
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
|
|
|
6
6
|
export interface Error {
|
|
7
7
|
message?: string;
|
|
8
8
|
code?: number;
|
|
9
|
-
data?: any
|
|
9
|
+
data?: Record<string, any>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export interface Delivery {
|
|
@@ -81,8 +81,8 @@ export interface Available {
|
|
|
81
81
|
|
|
82
82
|
export interface PostAvailabilityBody {
|
|
83
83
|
destination: {
|
|
84
|
-
latitude: any
|
|
85
|
-
longitude: any
|
|
84
|
+
latitude: Record<string, any>;
|
|
85
|
+
longitude: Record<string, any>;
|
|
86
86
|
};
|
|
87
87
|
brand_id: string;
|
|
88
88
|
}
|
package/src/interface/email.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
|
|
|
6
6
|
export interface Error {
|
|
7
7
|
message?: string;
|
|
8
8
|
code?: number;
|
|
9
|
-
data?: any
|
|
9
|
+
data?: Record<string, any>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export interface Success {
|
|
@@ -20,7 +20,7 @@ export interface EmailPayload {
|
|
|
20
20
|
// Text of an email instead of template_id/data
|
|
21
21
|
text?: string;
|
|
22
22
|
template_id?: string;
|
|
23
|
-
data?: any
|
|
23
|
+
data?: Record<string, any>;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// POST /email - Send an email
|
package/src/interface/file.ts
CHANGED
|
@@ -11,31 +11,102 @@ export interface StandardCognitionEvent {
|
|
|
11
11
|
order_id: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export interface AmazonJWOAuthEventDTO {
|
|
15
|
+
id: string;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
location: "ENTRY" | "EXIT";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface AmazonJWOIdentityKeysRequestDTO {
|
|
21
|
+
authEvent: AmazonJWOAuthEventDTO;
|
|
22
|
+
identityKey: string;
|
|
23
|
+
requestId: string;
|
|
24
|
+
storeId: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface VisitDetailsDTO {
|
|
28
|
+
id: string;
|
|
29
|
+
type: "SHOPPER" | "ASSOCIATE" | "CASH_SHOPPER";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface AmazonJWOIdentityKeysResponseDTO {
|
|
33
|
+
visitDetails: VisitDetailsDTO;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface BadRequestErrorDTO {
|
|
37
|
+
message: string;
|
|
38
|
+
code: number;
|
|
39
|
+
data: Record<string, any>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface UnauthorizedErrorDTO {
|
|
43
|
+
message: string;
|
|
44
|
+
code: number;
|
|
45
|
+
data: Record<string, any>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface ShoppingTrip {
|
|
49
|
+
startTime: string;
|
|
50
|
+
endTime: string;
|
|
51
|
+
authEvents: AmazonJWOAuthEventDTO[];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface Quantity {
|
|
55
|
+
value: string;
|
|
56
|
+
unit: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface CartItem {
|
|
60
|
+
id: string;
|
|
61
|
+
type: string;
|
|
62
|
+
quantity: Quantity;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface ShopperIdentity {
|
|
66
|
+
id: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AmazonJWOOrderingRequestDTO {
|
|
70
|
+
requestId: string;
|
|
71
|
+
idempotentShoppingTripId: string;
|
|
72
|
+
storeId: string;
|
|
73
|
+
shoppingTrip: ShoppingTrip;
|
|
74
|
+
cartItems: CartItem[];
|
|
75
|
+
shopperIdentity: ShopperIdentity;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface AmazonJWOOrderingResponseDTO {
|
|
79
|
+
purchaseId: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
14
82
|
export interface FrictionlessSupportResponse {
|
|
15
83
|
supported: boolean;
|
|
16
84
|
version?: "NFC" | "QR";
|
|
17
85
|
}
|
|
18
86
|
|
|
19
87
|
export interface ForbiddenErrorDTO {
|
|
20
|
-
statusCode: number;
|
|
21
|
-
timestamp: string;
|
|
22
88
|
message: string;
|
|
89
|
+
code: number;
|
|
90
|
+
data: Record<string, any>;
|
|
23
91
|
}
|
|
24
92
|
|
|
25
93
|
export interface NotFoundErrorDTO {
|
|
26
|
-
statusCode: number;
|
|
27
|
-
timestamp: string;
|
|
28
94
|
message: string;
|
|
95
|
+
code: number;
|
|
96
|
+
data: Record<string, any>;
|
|
29
97
|
}
|
|
30
98
|
|
|
31
|
-
export
|
|
99
|
+
export interface MealplanDTO {
|
|
100
|
+
tenderID: string;
|
|
101
|
+
name: string;
|
|
102
|
+
}
|
|
32
103
|
|
|
33
104
|
export interface CreditCardDTO {
|
|
34
105
|
cardType: string;
|
|
35
106
|
last4: string;
|
|
36
107
|
}
|
|
37
108
|
|
|
38
|
-
export interface
|
|
109
|
+
export interface PaymentMethodDTO {
|
|
39
110
|
mealplan?: MealplanDTO;
|
|
40
111
|
creditCard?: CreditCardDTO;
|
|
41
112
|
token: string;
|
|
@@ -44,7 +115,7 @@ export interface PaymentMethod {
|
|
|
44
115
|
export interface CreateFrictionlessQRCodeCommand {
|
|
45
116
|
brandID: string;
|
|
46
117
|
userID: string;
|
|
47
|
-
paymentMethod:
|
|
118
|
+
paymentMethod: PaymentMethodDTO;
|
|
48
119
|
}
|
|
49
120
|
|
|
50
121
|
export interface QRCodeCreationResponse {
|
|
@@ -53,10 +124,22 @@ export interface QRCodeCreationResponse {
|
|
|
53
124
|
id: string;
|
|
54
125
|
}
|
|
55
126
|
|
|
56
|
-
export interface
|
|
57
|
-
|
|
127
|
+
export interface DisplayMessageDTO {
|
|
128
|
+
title: string;
|
|
129
|
+
description: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface ErrorDataDTO {
|
|
133
|
+
description: string;
|
|
58
134
|
timestamp: string;
|
|
135
|
+
statusCode: number;
|
|
136
|
+
displayMessage: DisplayMessageDTO;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface UnprocessableEntityErrorDTO {
|
|
140
|
+
code: number;
|
|
59
141
|
message: string;
|
|
142
|
+
data: ErrorDataDTO;
|
|
60
143
|
}
|
|
61
144
|
|
|
62
145
|
export interface FailedCheckInDTO {
|
|
@@ -66,90 +149,157 @@ export interface FailedCheckInDTO {
|
|
|
66
149
|
reason: string;
|
|
67
150
|
}
|
|
68
151
|
|
|
69
|
-
export interface
|
|
70
|
-
status:
|
|
152
|
+
export interface GetCheckInStatusResponseDTO {
|
|
153
|
+
status:
|
|
154
|
+
| "CREATING"
|
|
155
|
+
| "ACTIVE"
|
|
156
|
+
| "ERROR"
|
|
157
|
+
| "CANCELED"
|
|
158
|
+
| "PROCESSING"
|
|
159
|
+
| "UPDATE_PAYMENT_REQUIRED"
|
|
160
|
+
| "COMPLETED";
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface CheckInPaymentRequiredDTO {
|
|
164
|
+
id: string;
|
|
71
165
|
}
|
|
72
166
|
|
|
73
167
|
// POST /frictionless/webhook/standardcognition - Receive frictionless standard cognition events
|
|
74
168
|
|
|
75
|
-
export type
|
|
169
|
+
export type PostFrictionlessWebhookStandardcognitionBody = StandardCognitionEvent;
|
|
170
|
+
|
|
171
|
+
export type PostFrictionlessWebhookStandardcognitionResponse = {};
|
|
172
|
+
|
|
173
|
+
export interface PostFrictionlessWebhookStandardcognitionRequest extends BaseRequest {
|
|
174
|
+
body: PostFrictionlessWebhookStandardcognitionBody;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// POST /frictionless/amazon-jwo-connector/v1/identity/identity-keys - Amazon JWO Identity Key Connector
|
|
178
|
+
|
|
179
|
+
export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody =
|
|
180
|
+
AmazonJWOIdentityKeysRequestDTO;
|
|
181
|
+
|
|
182
|
+
export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse =
|
|
183
|
+
AmazonJWOIdentityKeysResponseDTO;
|
|
184
|
+
|
|
185
|
+
export interface PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysRequest
|
|
186
|
+
extends BaseRequest {
|
|
187
|
+
body: PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// POST /frictionless/amazon-jwo-connector/v1/order/purchases - Amazon JWO Ordering Connector
|
|
191
|
+
|
|
192
|
+
export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody = AmazonJWOOrderingRequestDTO;
|
|
76
193
|
|
|
77
|
-
export type
|
|
194
|
+
export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse =
|
|
195
|
+
AmazonJWOOrderingResponseDTO;
|
|
78
196
|
|
|
79
|
-
export interface
|
|
80
|
-
body:
|
|
197
|
+
export interface PostFrictionlessAmazonJwoConnectorV1OrderPurchasesRequest extends BaseRequest {
|
|
198
|
+
body: PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody;
|
|
81
199
|
}
|
|
82
200
|
|
|
83
201
|
// GET /frictionless/brand/{id_brand}/frictionless-status - Check frictionless support of a given brand
|
|
84
202
|
|
|
85
|
-
export interface
|
|
203
|
+
export interface GetFrictionlessBrandFrictionlessStatusPath {
|
|
86
204
|
// Brand ID as Encoded CDL ID
|
|
87
205
|
id_brand: string;
|
|
88
206
|
}
|
|
89
207
|
|
|
90
|
-
export interface
|
|
208
|
+
export interface GetFrictionlessBrandFrictionlessStatusQuery {
|
|
91
209
|
// Graphql query string
|
|
92
210
|
_query?: string;
|
|
93
211
|
}
|
|
94
212
|
|
|
95
|
-
export type
|
|
213
|
+
export type GetFrictionlessBrandFrictionlessStatusResponse = FrictionlessSupportResponse;
|
|
96
214
|
|
|
97
|
-
export interface
|
|
215
|
+
export interface GetFrictionlessBrandFrictionlessStatusRequest
|
|
98
216
|
extends BaseRequest,
|
|
99
|
-
RequestQuery<
|
|
100
|
-
|
|
217
|
+
RequestQuery<GetFrictionlessBrandFrictionlessStatusQuery>,
|
|
218
|
+
GetFrictionlessBrandFrictionlessStatusPath {}
|
|
101
219
|
|
|
102
220
|
// POST /frictionless/qrcode - Create Frictionless QR Code to make user able to check in
|
|
103
221
|
|
|
104
|
-
export type
|
|
222
|
+
export type PostFrictionlessQrCodeBody = CreateFrictionlessQRCodeCommand;
|
|
105
223
|
|
|
106
|
-
export type
|
|
224
|
+
export type PostFrictionlessQrCodeResponse = {};
|
|
107
225
|
|
|
108
|
-
export interface
|
|
109
|
-
body:
|
|
226
|
+
export interface PostFrictionlessQrCodeRequest extends BaseRequest {
|
|
227
|
+
body: PostFrictionlessQrCodeBody;
|
|
110
228
|
}
|
|
111
229
|
|
|
112
230
|
// GET /frictionless/failed-checkins - List check-ins on error
|
|
113
231
|
|
|
114
|
-
export interface
|
|
232
|
+
export interface GetFrictionlessFailedCheckinsQuery {
|
|
115
233
|
// Graphql query string
|
|
116
234
|
_query?: string;
|
|
117
235
|
}
|
|
118
236
|
|
|
119
|
-
export type
|
|
237
|
+
export type GetFrictionlessFailedCheckinsResponse = FailedCheckInDTO[];
|
|
120
238
|
|
|
121
|
-
export interface
|
|
239
|
+
export interface GetFrictionlessFailedCheckinsRequest
|
|
122
240
|
extends BaseRequest,
|
|
123
|
-
RequestQuery<
|
|
241
|
+
RequestQuery<GetFrictionlessFailedCheckinsQuery> {}
|
|
124
242
|
|
|
125
|
-
// POST /frictionless/
|
|
243
|
+
// POST /frictionless/checkins/{id_checkin}/reprocess - Reprocess checkin on error
|
|
126
244
|
|
|
127
|
-
export interface
|
|
128
|
-
// TODO: add parameter to swagger.json
|
|
245
|
+
export interface PostFrictionlessCheckinsReprocessPath {
|
|
129
246
|
id_checkin: string;
|
|
130
247
|
}
|
|
131
248
|
|
|
132
|
-
export type
|
|
249
|
+
export type PostFrictionlessCheckinsReprocessResponse = {};
|
|
133
250
|
|
|
134
|
-
export interface
|
|
251
|
+
export interface PostFrictionlessCheckinsReprocessRequest
|
|
135
252
|
extends BaseRequest,
|
|
136
|
-
|
|
253
|
+
PostFrictionlessCheckinsReprocessPath {}
|
|
137
254
|
|
|
138
|
-
// GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn
|
|
255
|
+
// GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn Status
|
|
139
256
|
|
|
140
|
-
export interface
|
|
141
|
-
// TODO: add parameter to swagger.json
|
|
257
|
+
export interface GetFrictionlessCheckinStatusPath {
|
|
142
258
|
id_checkin: string;
|
|
143
259
|
}
|
|
144
260
|
|
|
145
|
-
export interface
|
|
261
|
+
export interface GetFrictionlessCheckinStatusQuery {
|
|
146
262
|
// Graphql query string
|
|
147
263
|
_query?: string;
|
|
148
264
|
}
|
|
149
265
|
|
|
150
|
-
export type
|
|
266
|
+
export type GetFrictionlessCheckinStatusResponse = GetCheckInStatusResponseDTO;
|
|
151
267
|
|
|
152
|
-
export interface
|
|
268
|
+
export interface GetFrictionlessCheckinStatusRequest
|
|
153
269
|
extends BaseRequest,
|
|
154
|
-
RequestQuery<
|
|
155
|
-
|
|
270
|
+
RequestQuery<GetFrictionlessCheckinStatusQuery>,
|
|
271
|
+
GetFrictionlessCheckinStatusPath {}
|
|
272
|
+
|
|
273
|
+
// GET /frictionless/users/{user_id}/checkins/payment-issues - List check-ins with update payment required per user
|
|
274
|
+
|
|
275
|
+
export interface GetFrictionlessUsersPaymentIssuesPath {
|
|
276
|
+
user_id: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface GetFrictionlessUsersPaymentIssuesQuery {
|
|
280
|
+
// Graphql query string
|
|
281
|
+
_query?: string;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export type GetFrictionlessUsersPaymentIssuesResponse = CheckInPaymentRequiredDTO[];
|
|
285
|
+
|
|
286
|
+
export interface GetFrictionlessUsersPaymentIssuesRequest
|
|
287
|
+
extends BaseRequest,
|
|
288
|
+
RequestQuery<GetFrictionlessUsersPaymentIssuesQuery>,
|
|
289
|
+
GetFrictionlessUsersPaymentIssuesPath {}
|
|
290
|
+
|
|
291
|
+
// POST /frictionless/checkins/{checkin_id}/reprocess-payment - Update payment at checkin and trigger reprocessing
|
|
292
|
+
|
|
293
|
+
export interface PostFrictionlessCheckinReprocessPaymentPath {
|
|
294
|
+
checkin_id: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export type PostFrictionlessCheckinReprocessPaymentBody = PaymentMethodDTO;
|
|
298
|
+
|
|
299
|
+
export type PostFrictionlessCheckinReprocessPaymentResponse = {};
|
|
300
|
+
|
|
301
|
+
export interface PostFrictionlessCheckinReprocessPaymentRequest
|
|
302
|
+
extends BaseRequest,
|
|
303
|
+
PostFrictionlessCheckinReprocessPaymentPath {
|
|
304
|
+
body: PostFrictionlessCheckinReprocessPaymentBody;
|
|
305
|
+
}
|
package/src/interface/kds.ts
CHANGED
|
@@ -95,10 +95,10 @@ export interface Brand {
|
|
|
95
95
|
};
|
|
96
96
|
hours?: Hours[];
|
|
97
97
|
deliveryHours?: DeliveryHours[];
|
|
98
|
-
style?: any
|
|
98
|
+
style?: Record<string, any>;
|
|
99
99
|
// pos
|
|
100
100
|
pos?: string;
|
|
101
|
-
terminals?: any[];
|
|
101
|
+
terminals?: Record<string, any>[];
|
|
102
102
|
timeslots?: {
|
|
103
103
|
time?: string;
|
|
104
104
|
averagePrepTime?: string;
|
|
@@ -143,8 +143,8 @@ export interface Brand {
|
|
|
143
143
|
// company
|
|
144
144
|
company?: string;
|
|
145
145
|
config?: {
|
|
146
|
-
private?: any
|
|
147
|
-
public?: any
|
|
146
|
+
private?: Record<string, any>;
|
|
147
|
+
public?: Record<string, any>;
|
|
148
148
|
};
|
|
149
149
|
tax_rate?: number;
|
|
150
150
|
meta?: {
|
|
@@ -252,8 +252,8 @@ export interface Location {
|
|
|
252
252
|
en?: string;
|
|
253
253
|
fr?: string;
|
|
254
254
|
};
|
|
255
|
-
hours?: any
|
|
256
|
-
deliveryHours?: any
|
|
255
|
+
hours?: Record<string, any>;
|
|
256
|
+
deliveryHours?: Record<string, any>;
|
|
257
257
|
service_fee?: {
|
|
258
258
|
type?: string;
|
|
259
259
|
value?: number;
|
|
@@ -278,7 +278,7 @@ export interface Group {
|
|
|
278
278
|
meta?: {
|
|
279
279
|
[index: string]: any;
|
|
280
280
|
};
|
|
281
|
-
style?: any
|
|
281
|
+
style?: Record<string, any>;
|
|
282
282
|
[index: string]: any;
|
|
283
283
|
}
|
|
284
284
|
|
|
@@ -297,7 +297,7 @@ export interface success {
|
|
|
297
297
|
export interface Error {
|
|
298
298
|
error?: string;
|
|
299
299
|
code?: number;
|
|
300
|
-
data?: any
|
|
300
|
+
data?: Record<string, any>;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
export interface Sector {
|
|
@@ -497,7 +497,7 @@ export interface GetLocationQuery {
|
|
|
497
497
|
// When fetching location, brands will come with private and public configs
|
|
498
498
|
include_brands_config?: boolean;
|
|
499
499
|
// active cafes
|
|
500
|
-
active_cafes?: any[];
|
|
500
|
+
active_cafes?: Record<string, any>[];
|
|
501
501
|
// show additional hidden properties/entities
|
|
502
502
|
extended?: boolean;
|
|
503
503
|
// Graphql query string
|
|
@@ -1211,7 +1211,7 @@ export interface PostLocationCompanyBody {
|
|
|
1211
1211
|
name: string;
|
|
1212
1212
|
// sector
|
|
1213
1213
|
sector: string;
|
|
1214
|
-
label?: any
|
|
1214
|
+
label?: Record<string, any>;
|
|
1215
1215
|
is?: {
|
|
1216
1216
|
global_images_enabled?: boolean;
|
|
1217
1217
|
};
|
|
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
|
|
|
6
6
|
export interface Error {
|
|
7
7
|
code?: number;
|
|
8
8
|
message?: string;
|
|
9
|
-
data?: any
|
|
9
|
+
data?: Record<string, any>;
|
|
10
10
|
headers?: {
|
|
11
11
|
Location?: string;
|
|
12
12
|
};
|
|
@@ -81,6 +81,7 @@ export interface PostMealplanBody {
|
|
|
81
81
|
password?: string;
|
|
82
82
|
// Used for email domain validation, if enabled for current mealplan.
|
|
83
83
|
email?: string;
|
|
84
|
+
lang?: string;
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
export interface PostMealplanResponse {
|