@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/vendor.ts
CHANGED
|
@@ -1,201 +1,201 @@
|
|
|
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
|
+
message?: string;
|
|
8
|
+
code?: number;
|
|
9
|
+
data?: Record<string, any>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export interface ApplicationPostBody {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
name: string;
|
|
14
|
+
phone: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
email: string;
|
|
17
|
+
// Property to store any additional data
|
|
18
|
+
meta?: {
|
|
19
|
+
website?: string;
|
|
20
|
+
// Contact info
|
|
21
|
+
contact?: {
|
|
22
|
+
first_name?: string;
|
|
23
|
+
last_name?: string;
|
|
24
|
+
phone_number?: string;
|
|
25
|
+
};
|
|
26
|
+
[index: string]: any;
|
|
27
|
+
};
|
|
28
|
+
captcha_token: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export interface ApplicationPatchBody {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
32
|
+
// application
|
|
33
|
+
id?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
email?: string;
|
|
37
|
+
phone?: string;
|
|
38
|
+
// Property to store any additional data
|
|
39
|
+
meta?: {
|
|
40
|
+
website?: string;
|
|
41
|
+
// Contact info
|
|
42
|
+
contact?: {
|
|
43
|
+
first_name?: string;
|
|
44
|
+
last_name?: string;
|
|
45
|
+
phone_number?: string;
|
|
46
|
+
};
|
|
47
|
+
[index: string]: any;
|
|
48
|
+
};
|
|
49
|
+
status?: 'pending' | 'approved' | 'rejected';
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export interface Application {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
53
|
+
// application
|
|
54
|
+
id?: string;
|
|
55
|
+
date_created?: string;
|
|
56
|
+
date_modified?: string;
|
|
57
|
+
name?: string;
|
|
58
|
+
description?: string;
|
|
59
|
+
email?: string;
|
|
60
|
+
phone?: string;
|
|
61
|
+
// Property to store any additional data
|
|
62
|
+
meta?: {
|
|
63
|
+
website?: string;
|
|
64
|
+
// Contact info
|
|
65
|
+
contact?: {
|
|
66
|
+
first_name?: string;
|
|
67
|
+
last_name?: string;
|
|
68
|
+
phone_number?: string;
|
|
69
|
+
};
|
|
70
|
+
// vendor
|
|
71
|
+
vendor_id?: string;
|
|
72
|
+
[index: string]: any;
|
|
73
|
+
};
|
|
74
|
+
status?: 'pending' | 'approved' | 'rejected';
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export interface Applications {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
last_evaluated_key?: string;
|
|
79
|
+
applications: Application[];
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export interface Vendor {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
83
|
+
// vendor
|
|
84
|
+
id?: string;
|
|
85
|
+
name?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
email?: string;
|
|
88
|
+
phone?: string;
|
|
89
|
+
// Property to store any additional data
|
|
90
|
+
meta?: {
|
|
91
|
+
legacy_token?: {
|
|
92
|
+
dev?: string;
|
|
93
|
+
staging?: string;
|
|
94
|
+
v1?: string;
|
|
95
|
+
};
|
|
96
|
+
website?: string;
|
|
97
|
+
// Contact info
|
|
98
|
+
contact?: {
|
|
99
|
+
first_name?: string;
|
|
100
|
+
last_name?: string;
|
|
101
|
+
phone_number?: string;
|
|
102
|
+
};
|
|
103
|
+
reset_token?: string;
|
|
104
|
+
[index: string]: any;
|
|
105
|
+
};
|
|
106
|
+
domain?: string;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
export interface VendorPostBody {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
110
|
+
name: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
email: string;
|
|
113
|
+
domain?: string;
|
|
114
|
+
phone?: string;
|
|
115
|
+
// Property to store any additional data
|
|
116
|
+
meta?: {
|
|
117
|
+
legacy_token?: {
|
|
118
|
+
dev?: string;
|
|
119
|
+
staging?: string;
|
|
120
|
+
v1?: string;
|
|
121
|
+
};
|
|
122
|
+
website?: string;
|
|
123
|
+
reset_token?: string;
|
|
124
|
+
// Contact info
|
|
125
|
+
contact?: {
|
|
126
|
+
first_name?: string;
|
|
127
|
+
last_name?: string;
|
|
128
|
+
phone_number?: string;
|
|
129
|
+
};
|
|
130
|
+
[index: string]: any;
|
|
131
|
+
};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export interface Vendors {
|
|
135
|
-
|
|
135
|
+
vendors: Vendor[];
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export interface Key {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
139
|
+
// key
|
|
140
|
+
id: string;
|
|
141
|
+
date_created?: string;
|
|
142
|
+
date_modified?: string;
|
|
143
|
+
// Unique client id for this key. Will remain same on rotation
|
|
144
|
+
client_id?: string;
|
|
145
|
+
// Unique password for this key.
|
|
146
|
+
client_password?: string;
|
|
147
|
+
// Date the key becomes expired
|
|
148
|
+
date_expires?: string;
|
|
149
|
+
environment?: 'dev' | 'staging' | 'v1';
|
|
150
|
+
permissions?: string[];
|
|
151
|
+
// Flag identifying if the key is latest
|
|
152
|
+
active?: boolean;
|
|
153
|
+
domain?: string;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
export interface KeyPostBody {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
157
|
+
// vendor
|
|
158
|
+
vendor_id: string;
|
|
159
|
+
// Date the key becomes expired
|
|
160
|
+
date_expires: string;
|
|
161
|
+
environment: 'dev' | 'staging' | 'v1';
|
|
162
|
+
permissions: string[];
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
export interface KeyPatchBody {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
// Date the key becomes expired
|
|
167
|
+
date_expires?: string;
|
|
168
|
+
permissions?: string[];
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
export interface Keys {
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
last_evaluated_key?: string;
|
|
173
|
+
keys: Key[];
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
export interface Success {
|
|
177
|
-
|
|
177
|
+
success?: boolean;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
export interface Auth {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
181
|
+
access: {
|
|
182
|
+
token?: string;
|
|
183
|
+
expires?: string;
|
|
184
|
+
};
|
|
185
|
+
refresh: {
|
|
186
|
+
token?: string;
|
|
187
|
+
expires?: string;
|
|
188
|
+
};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
export interface RefreshPayload {
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
access_token: string;
|
|
193
|
+
refresh_token: string;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
export interface ResetPassword {
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
reset_token: string;
|
|
198
|
+
password: string;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
// POST /vendor/application - Create a new application for review
|
|
@@ -205,29 +205,29 @@ export type PostVendorApplicationBody = ApplicationPostBody;
|
|
|
205
205
|
export type PostVendorApplicationResponse = Application;
|
|
206
206
|
|
|
207
207
|
export interface PostVendorApplicationRequest extends BaseRequest {
|
|
208
|
-
|
|
208
|
+
body: PostVendorApplicationBody;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
// GET /vendor/application - Get a list of all applications
|
|
212
212
|
|
|
213
213
|
export interface GetVendorApplicationQuery {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
214
|
+
status?: 'pending' | 'approved' | 'rejected';
|
|
215
|
+
// Pagination token to start query from
|
|
216
|
+
last_evaluated_key?: string;
|
|
217
|
+
// Graphql query string
|
|
218
|
+
_query?: string;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
export type GetVendorApplicationResponse = Applications;
|
|
222
222
|
|
|
223
223
|
export interface GetVendorApplicationRequest
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
extends BaseRequest,
|
|
225
|
+
RequestQuery<GetVendorApplicationQuery> {}
|
|
226
226
|
|
|
227
227
|
// PATCH /vendor/application/{id} - Update an application (or update status)
|
|
228
228
|
|
|
229
229
|
export interface PatchVendorApplicationPath {
|
|
230
|
-
|
|
230
|
+
id: string;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
export type PatchVendorApplicationBody = ApplicationPatchBody;
|
|
@@ -235,7 +235,7 @@ export type PatchVendorApplicationBody = ApplicationPatchBody;
|
|
|
235
235
|
export type PatchVendorApplicationResponse = Application;
|
|
236
236
|
|
|
237
237
|
export interface PatchVendorApplicationRequest extends BaseRequest, PatchVendorApplicationPath {
|
|
238
|
-
|
|
238
|
+
body: PatchVendorApplicationBody;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
// POST /vendor - Create new vendor
|
|
@@ -245,14 +245,14 @@ export type PostVendorBody = VendorPostBody;
|
|
|
245
245
|
export type PostVendorResponse = Vendor;
|
|
246
246
|
|
|
247
247
|
export interface PostVendorRequest extends BaseRequest {
|
|
248
|
-
|
|
248
|
+
body: PostVendorBody;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
// GET /vendor - Get all Vendors
|
|
252
252
|
|
|
253
253
|
export interface GetVendorsQuery {
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
// Graphql query string
|
|
255
|
+
_query?: string;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
export type GetVendorsResponse = Vendors;
|
|
@@ -262,27 +262,27 @@ export interface GetVendorsRequest extends BaseRequest, RequestQuery<GetVendorsQ
|
|
|
262
262
|
// GET /vendor/{id} - Get info about the Vendor
|
|
263
263
|
|
|
264
264
|
export interface GetVendorPath {
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
// vendor
|
|
266
|
+
id: string;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
export interface GetVendorQuery {
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
// Graphql query string
|
|
271
|
+
_query?: string;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
export type GetVendorResponse = Vendor;
|
|
275
275
|
|
|
276
276
|
export interface GetVendorRequest
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
extends BaseRequest,
|
|
278
|
+
RequestQuery<GetVendorQuery>,
|
|
279
|
+
GetVendorPath {}
|
|
280
280
|
|
|
281
281
|
// PATCH /vendor/{id} - Update info about the Vendor
|
|
282
282
|
|
|
283
283
|
export interface PatchVendorPath {
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
// vendor
|
|
285
|
+
id: string;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
export type PatchVendorBody = Vendor;
|
|
@@ -290,14 +290,14 @@ export type PatchVendorBody = Vendor;
|
|
|
290
290
|
export type PatchVendorResponse = Vendor;
|
|
291
291
|
|
|
292
292
|
export interface PatchVendorRequest extends BaseRequest, PatchVendorPath {
|
|
293
|
-
|
|
293
|
+
body: PatchVendorBody;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
// GET /vendor/auth - Get access/refresh tokens for accessing our APIs
|
|
297
297
|
|
|
298
298
|
export interface GetVendorAuthQuery {
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
// Graphql query string
|
|
300
|
+
_query?: string;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
export type GetVendorAuthResponse = Auth;
|
|
@@ -311,33 +311,33 @@ export type PostVendorAuthBody = RefreshPayload;
|
|
|
311
311
|
export type PostVendorAuthResponse = Auth;
|
|
312
312
|
|
|
313
313
|
export interface PostVendorAuthRequest extends BaseRequest {
|
|
314
|
-
|
|
314
|
+
body: PostVendorAuthBody;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
// GET /vendor/{id}/key - Get list of Vendor keys
|
|
318
318
|
|
|
319
319
|
export interface GetVendorKeysPath {
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
// vendor
|
|
321
|
+
id: string;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
export interface GetVendorKeysQuery {
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
// Graphql query string
|
|
326
|
+
_query?: string;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
export type GetVendorKeysResponse = Keys;
|
|
330
330
|
|
|
331
331
|
export interface GetVendorKeysRequest
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
extends BaseRequest,
|
|
333
|
+
RequestQuery<GetVendorKeysQuery>,
|
|
334
|
+
GetVendorKeysPath {}
|
|
335
335
|
|
|
336
336
|
// POST /vendor/{id}/key - Create new key for the vendor
|
|
337
337
|
|
|
338
338
|
export interface PostVendorKeyPath {
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
// vendor
|
|
340
|
+
id: string;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
export type PostVendorKeyBody = KeyPostBody;
|
|
@@ -345,39 +345,39 @@ export type PostVendorKeyBody = KeyPostBody;
|
|
|
345
345
|
export type PostVendorKeyResponse = Key;
|
|
346
346
|
|
|
347
347
|
export interface PostVendorKeyRequest extends BaseRequest, PostVendorKeyPath {
|
|
348
|
-
|
|
348
|
+
body: PostVendorKeyBody;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
// GET /vendor/{id}/key/{key} - Get info about vendor key
|
|
352
352
|
|
|
353
353
|
export interface GetVendorKeyPath {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
354
|
+
// vendor
|
|
355
|
+
id: string;
|
|
356
|
+
// key
|
|
357
|
+
key: string;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
export interface GetVendorKeyQuery {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
// Pagination token to start query from
|
|
362
|
+
last_evaluated_key?: string;
|
|
363
|
+
// Graphql query string
|
|
364
|
+
_query?: string;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
export type GetVendorKeyResponse = Key;
|
|
368
368
|
|
|
369
369
|
export interface GetVendorKeyRequest
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
370
|
+
extends BaseRequest,
|
|
371
|
+
RequestQuery<GetVendorKeyQuery>,
|
|
372
|
+
GetVendorKeyPath {}
|
|
373
373
|
|
|
374
374
|
// PATCH /vendor/{id}/key/{key} - Update info for vendor key
|
|
375
375
|
|
|
376
376
|
export interface PatchVendorKeyPath {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
// vendor
|
|
378
|
+
id: string;
|
|
379
|
+
// key
|
|
380
|
+
key: string;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
export type PatchVendorKeyBody = KeyPatchBody;
|
|
@@ -385,16 +385,16 @@ export type PatchVendorKeyBody = KeyPatchBody;
|
|
|
385
385
|
export type PatchVendorKeyResponse = Key;
|
|
386
386
|
|
|
387
387
|
export interface PatchVendorKeyRequest extends BaseRequest, PatchVendorKeyPath {
|
|
388
|
-
|
|
388
|
+
body: PatchVendorKeyBody;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
// DELETE /vendor/{id}/key/{key} - Mark key as expired
|
|
392
392
|
|
|
393
393
|
export interface DeleteVendorKeyPath {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
394
|
+
// vendor
|
|
395
|
+
id: string;
|
|
396
|
+
// key
|
|
397
|
+
key: string;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
export type DeleteVendorKeyResponse = Key;
|
|
@@ -404,28 +404,28 @@ export interface DeleteVendorKeyRequest extends BaseRequest, DeleteVendorKeyPath
|
|
|
404
404
|
// POST /vendor/{id}/key/{key}/rotate - Rotate vendor key
|
|
405
405
|
|
|
406
406
|
export interface PostVendorKeyRotatePath {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
407
|
+
// vendor
|
|
408
|
+
id: string;
|
|
409
|
+
// key
|
|
410
|
+
key: string;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
export interface PostVendorKeyRotateQuery {
|
|
414
|
-
|
|
414
|
+
date_expires?: string;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
export type PostVendorKeyRotateResponse = Success;
|
|
418
418
|
|
|
419
419
|
export interface PostVendorKeyRotateRequest
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
420
|
+
extends BaseRequest,
|
|
421
|
+
RequestQuery<PostVendorKeyRotateQuery>,
|
|
422
|
+
PostVendorKeyRotatePath {}
|
|
423
423
|
|
|
424
424
|
// POST /vendor/{id}/reset/password - Reset the existing password for vendor
|
|
425
425
|
|
|
426
426
|
export interface PostVendorResetPasswordPath {
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
// vendor
|
|
428
|
+
id: string;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
export type PostVendorResetPasswordBody = ResetPassword;
|
|
@@ -433,5 +433,5 @@ export type PostVendorResetPasswordBody = ResetPassword;
|
|
|
433
433
|
export type PostVendorResetPasswordResponse = Success;
|
|
434
434
|
|
|
435
435
|
export interface PostVendorResetPasswordRequest extends BaseRequest, PostVendorResetPasswordPath {
|
|
436
|
-
|
|
436
|
+
body: PostVendorResetPasswordBody;
|
|
437
437
|
}
|