@compassdigital/sdk.typescript 4.67.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 -57
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +503 -501
- 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/package.json +1 -1
- package/src/index.ts +10395 -10394
- 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
|
@@ -1,67 +1,67 @@
|
|
|
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 Error {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
error?: string;
|
|
8
|
+
code?: number;
|
|
9
|
+
data?: Record<string, any>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export interface Notification {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
// notification
|
|
14
|
+
id: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
text: string;
|
|
17
|
+
date_modified?: string;
|
|
18
|
+
status?: NotificationStatus;
|
|
19
|
+
release_date?: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface NotificationBody {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
title?: string;
|
|
24
|
+
text: string;
|
|
25
|
+
realm: 'cdl' | 'boost' | 'thrive' | 'nourish' | 'rogers' | 'jjkitchen';
|
|
26
|
+
// Recipient of the notifications. Example: specific realm, role or user id
|
|
27
|
+
target: string;
|
|
28
|
+
release_date?: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export interface PushNotificationBody {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
title: string;
|
|
33
|
+
text: string;
|
|
34
|
+
// Recipient of the notifications. Example: specific realm, role or user id
|
|
35
|
+
target: string;
|
|
36
|
+
data?: Record<string, any>;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface NotificationStatus {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
read?: boolean;
|
|
41
|
+
released?: boolean;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export interface Success {
|
|
45
|
-
|
|
45
|
+
success?: boolean;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// GET /notification - Get all notifications
|
|
49
49
|
|
|
50
50
|
export interface GetNotificationsQuery {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
// Realm of notifications
|
|
52
|
+
realm: 'cdl' | 'boost' | 'thrive' | 'nourish' | 'rogers' | 'jjkitchen';
|
|
53
|
+
// Recipient of the notifications. Can be the whole realm, role or user id
|
|
54
|
+
target: string;
|
|
55
|
+
// Start date of the notifications. If not provided will default to 90 days ago.
|
|
56
|
+
start?: string;
|
|
57
|
+
// End date of the notifications. If not provided will default to current date.
|
|
58
|
+
end?: string;
|
|
59
|
+
// Graphql query string
|
|
60
|
+
_query?: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export interface GetNotificationsResponse {
|
|
64
|
-
|
|
64
|
+
notifications?: Notification[];
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export interface GetNotificationsRequest extends BaseRequest, RequestQuery<GetNotificationsQuery> {}
|
|
@@ -73,14 +73,14 @@ export type PostNotificationBody = NotificationBody;
|
|
|
73
73
|
export type PostNotificationResponse = Notification;
|
|
74
74
|
|
|
75
75
|
export interface PostNotificationRequest extends BaseRequest {
|
|
76
|
-
|
|
76
|
+
body: PostNotificationBody;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
// PATCH /notification/{id} - Update a notification
|
|
80
80
|
|
|
81
81
|
export interface PatchNotificationPath {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
// Id of a notification
|
|
83
|
+
id: string;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export type PatchNotificationBody = NotificationBody;
|
|
@@ -88,14 +88,14 @@ export type PatchNotificationBody = NotificationBody;
|
|
|
88
88
|
export type PatchNotificationResponse = Notification;
|
|
89
89
|
|
|
90
90
|
export interface PatchNotificationRequest extends BaseRequest, PatchNotificationPath {
|
|
91
|
-
|
|
91
|
+
body: PatchNotificationBody;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
// DELETE /notification/{id} - Delete a notification
|
|
95
95
|
|
|
96
96
|
export interface DeleteNotificationPath {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
// Id of a notification
|
|
98
|
+
id: string;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export type DeleteNotificationResponse = Success;
|
|
@@ -105,8 +105,8 @@ export interface DeleteNotificationRequest extends BaseRequest, DeleteNotificati
|
|
|
105
105
|
// POST /notification/{id}/status - Set a notification status for request user
|
|
106
106
|
|
|
107
107
|
export interface PostNotificationStatusPath {
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
// Id of a notification
|
|
109
|
+
id: string;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export type PostNotificationStatusBody = NotificationStatus;
|
|
@@ -114,7 +114,7 @@ export type PostNotificationStatusBody = NotificationStatus;
|
|
|
114
114
|
export type PostNotificationStatusResponse = NotificationStatus;
|
|
115
115
|
|
|
116
116
|
export interface PostNotificationStatusRequest extends BaseRequest, PostNotificationStatusPath {
|
|
117
|
-
|
|
117
|
+
body: PostNotificationStatusBody;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
// POST /notification/device/push - Send a push notification to user's device
|
|
@@ -124,20 +124,20 @@ export type PostNotificationDevicePushBody = PushNotificationBody;
|
|
|
124
124
|
export type PostNotificationDevicePushResponse = Success;
|
|
125
125
|
|
|
126
126
|
export interface PostNotificationDevicePushRequest extends BaseRequest {
|
|
127
|
-
|
|
127
|
+
body: PostNotificationDevicePushBody;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
// GET /notification/swagger.json - Get a swagger for notification service
|
|
131
131
|
|
|
132
132
|
export interface GetNotificationSwaggerQuery {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
// Graphql query string
|
|
134
|
+
_query?: string;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
export interface GetNotificationSwaggerResponse {
|
|
138
|
-
|
|
138
|
+
[index: string]: any;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
export interface GetNotificationSwaggerRequest
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
extends BaseRequest,
|
|
143
|
+
RequestQuery<GetNotificationSwaggerQuery> {}
|