@compassdigital/sdk.typescript 4.16.0 → 4.16.1
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/base.d.ts +11 -1
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +21 -3
- package/lib/base.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 +2 -2
- 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 +1 -1
- 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 +5 -5
- 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 +12 -21
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/location.js +0 -12
- package/lib/interface/location.js.map +1 -1
- package/lib/interface/mealplan.d.ts +1 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +249 -254
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/menu.js +0 -6
- package/lib/interface/menu.js.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 +18 -26
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/partner.js +0 -11
- package/lib/interface/partner.js.map +1 -1
- package/lib/interface/payment.d.ts +1 -1
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +5 -12
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/promo.js +0 -8
- package/lib/interface/promo.js.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 +8 -12
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/shoppingcart.js +0 -5
- package/lib/interface/shoppingcart.js.map +1 -1
- package/lib/interface/task.d.ts +6 -14
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/task.js +0 -9
- package/lib/interface/task.js.map +1 -1
- package/lib/interface/user.d.ts +4 -4
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +0 -19
- package/lib/interface/util.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +1 -1
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/base.ts +25 -6
- 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 +2 -2
- package/src/interface/datalake.ts +2 -2
- package/src/interface/delivery.ts +1 -1
- package/src/interface/email.ts +2 -2
- package/src/interface/file.ts +1 -1
- package/src/interface/frictionless.ts +5 -5
- package/src/interface/kds.ts +1 -1
- package/src/interface/location.ts +12 -20
- package/src/interface/mealplan.ts +1 -1
- package/src/interface/menu.ts +249 -253
- package/src/interface/notification.ts +2 -2
- package/src/interface/order.ts +3 -3
- package/src/interface/partner.ts +18 -25
- package/src/interface/payment.ts +1 -1
- package/src/interface/promo.ts +5 -11
- package/src/interface/report.ts +1 -1
- package/src/interface/shoppingcart.ts +8 -11
- package/src/interface/task.ts +12 -13
- package/src/interface/user.ts +4 -4
- package/src/interface/util.ts +0 -21
- package/src/interface/vendor.ts +1 -1
|
@@ -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,
|
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
|
@@ -39,13 +39,13 @@ export interface AmazonJWOIdentityKeysResponseDTO {
|
|
|
39
39
|
export interface BadRequestErrorDTO {
|
|
40
40
|
message: string;
|
|
41
41
|
code: number;
|
|
42
|
-
data: any
|
|
42
|
+
data: Record<string, any>;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export interface UnauthorizedErrorDTO {
|
|
46
46
|
message: string;
|
|
47
47
|
code: number;
|
|
48
|
-
data: any
|
|
48
|
+
data: Record<string, any>;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export interface ShoppingTrip {
|
|
@@ -100,13 +100,13 @@ export interface FrictionlessSupportResponse {
|
|
|
100
100
|
export interface ForbiddenErrorDTO {
|
|
101
101
|
message: string;
|
|
102
102
|
code: number;
|
|
103
|
-
data: any
|
|
103
|
+
data: Record<string, any>;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
export interface NotFoundErrorDTO {
|
|
107
107
|
message: string;
|
|
108
108
|
code: number;
|
|
109
|
-
data: any
|
|
109
|
+
data: Record<string, any>;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export interface MealplanDTO {
|
|
@@ -245,7 +245,7 @@ export interface GetFrictionlessBrandFrictionlessStatusRequest
|
|
|
245
245
|
|
|
246
246
|
export type PostFrictionlessQrCodeBody = CreateFrictionlessQRCodeCommand;
|
|
247
247
|
|
|
248
|
-
export type PostFrictionlessQrCodeResponse =
|
|
248
|
+
export type PostFrictionlessQrCodeResponse = QRCodeCreationResponse;
|
|
249
249
|
|
|
250
250
|
export interface PostFrictionlessQrCodeRequest extends BaseRequest {
|
|
251
251
|
body: PostFrictionlessQrCodeBody;
|
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;
|
|
@@ -145,8 +145,8 @@ export interface Brand {
|
|
|
145
145
|
// company
|
|
146
146
|
company?: string;
|
|
147
147
|
config?: {
|
|
148
|
-
private?: any
|
|
149
|
-
public?: any
|
|
148
|
+
private?: Record<string, any>;
|
|
149
|
+
public?: Record<string, any>;
|
|
150
150
|
};
|
|
151
151
|
tax_rate?: number;
|
|
152
152
|
meta?: {
|
|
@@ -254,8 +254,8 @@ export interface Location {
|
|
|
254
254
|
en?: string;
|
|
255
255
|
fr?: string;
|
|
256
256
|
};
|
|
257
|
-
hours?: any
|
|
258
|
-
deliveryHours?: any
|
|
257
|
+
hours?: Record<string, any>;
|
|
258
|
+
deliveryHours?: Record<string, any>;
|
|
259
259
|
service_fee?: {
|
|
260
260
|
type?: string;
|
|
261
261
|
value?: number;
|
|
@@ -280,7 +280,7 @@ export interface Group {
|
|
|
280
280
|
meta?: {
|
|
281
281
|
[index: string]: any;
|
|
282
282
|
};
|
|
283
|
-
style?: any
|
|
283
|
+
style?: Record<string, any>;
|
|
284
284
|
[index: string]: any;
|
|
285
285
|
}
|
|
286
286
|
|
|
@@ -299,7 +299,7 @@ export interface success {
|
|
|
299
299
|
export interface Error {
|
|
300
300
|
error?: string;
|
|
301
301
|
code?: number;
|
|
302
|
-
data?: any
|
|
302
|
+
data?: Record<string, any>;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
export interface Sector {
|
|
@@ -418,11 +418,7 @@ export interface BadRequest {
|
|
|
418
418
|
error?: string;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
|
|
422
|
-
AWAIT_PARTNER = "await_partner",
|
|
423
|
-
AWAIT_SCOUT = "await_scout",
|
|
424
|
-
COMPLETED = "completed",
|
|
425
|
-
}
|
|
421
|
+
export type PartnerStatus = "await_partner" | "await_scout" | "completed";
|
|
426
422
|
|
|
427
423
|
export interface WaitTime {
|
|
428
424
|
// maxium wait time to the next time slot in minutes
|
|
@@ -433,11 +429,7 @@ export interface WaitTime {
|
|
|
433
429
|
ready_time: number;
|
|
434
430
|
}
|
|
435
431
|
|
|
436
|
-
|
|
437
|
-
OPEN = "open",
|
|
438
|
-
CLOSED = "closed",
|
|
439
|
-
PREORDER = "preorder",
|
|
440
|
-
}
|
|
432
|
+
export type BrandOrMenuState = "open" | "closed" | "preorder";
|
|
441
433
|
|
|
442
434
|
export interface MenuAssociations {
|
|
443
435
|
menu_associations?: MenuAssociation[];
|
|
@@ -507,7 +499,7 @@ export interface GetLocationQuery {
|
|
|
507
499
|
// When fetching location, brands will come with private and public configs
|
|
508
500
|
include_brands_config?: boolean;
|
|
509
501
|
// active cafes
|
|
510
|
-
active_cafes?: any[];
|
|
502
|
+
active_cafes?: Record<string, any>[];
|
|
511
503
|
// show additional hidden properties/entities
|
|
512
504
|
extended?: boolean;
|
|
513
505
|
// Graphql query string
|
|
@@ -1223,7 +1215,7 @@ export interface PostLocationCompanyBody {
|
|
|
1223
1215
|
name: string;
|
|
1224
1216
|
// sector
|
|
1225
1217
|
sector: string;
|
|
1226
|
-
label?: any
|
|
1218
|
+
label?: Record<string, any>;
|
|
1227
1219
|
is?: {
|
|
1228
1220
|
global_images_enabled?: boolean;
|
|
1229
1221
|
};
|