@deliverart/sdk-js-webhook 2.2.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/dist/index.cjs +11573 -0
- package/dist/index.d.cts +967 -0
- package/dist/index.d.ts +967 -0
- package/dist/index.js +11521 -0
- package/package.json +32 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,967 @@
|
|
|
1
|
+
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
+
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
|
+
|
|
6
|
+
declare const webhookConfigurationSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
9
|
+
entityClass: z.ZodString;
|
|
10
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
11
|
+
created: "created";
|
|
12
|
+
updated: "updated";
|
|
13
|
+
deleted: "deleted";
|
|
14
|
+
}>>;
|
|
15
|
+
callbackUrl: z.ZodURL;
|
|
16
|
+
secretKey: z.ZodString;
|
|
17
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
19
|
+
createdAt: z.ZodString;
|
|
20
|
+
updatedAt: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
type WebhookConfiguration = z.infer<typeof webhookConfigurationSchema>;
|
|
23
|
+
declare const webhookConfigurationListItemSchema: z.ZodObject<{
|
|
24
|
+
createdAt: z.ZodString;
|
|
25
|
+
updatedAt: z.ZodString;
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
entityClass: z.ZodString;
|
|
28
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
29
|
+
created: "created";
|
|
30
|
+
updated: "updated";
|
|
31
|
+
deleted: "deleted";
|
|
32
|
+
}>>;
|
|
33
|
+
callbackUrl: z.ZodURL;
|
|
34
|
+
secretKey: z.ZodString;
|
|
35
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
type WebhookConfigurationListItem = z.infer<typeof webhookConfigurationListItemSchema>;
|
|
39
|
+
declare const webhookConfigurationsQuerySchema: z.ZodObject<{
|
|
40
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
41
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
42
|
+
created: "created";
|
|
43
|
+
updated: "updated";
|
|
44
|
+
deleted: "deleted";
|
|
45
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
46
|
+
created: "created";
|
|
47
|
+
updated: "updated";
|
|
48
|
+
deleted: "deleted";
|
|
49
|
+
}>>]>>;
|
|
50
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
asc: "asc";
|
|
52
|
+
desc: "desc";
|
|
53
|
+
}>>;
|
|
54
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
asc: "asc";
|
|
56
|
+
desc: "desc";
|
|
57
|
+
}>>;
|
|
58
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
59
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
60
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
61
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
62
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
63
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
64
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
65
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
66
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
type WebhookConfigurationsQueryParams = z.infer<typeof webhookConfigurationsQuerySchema>;
|
|
69
|
+
declare const webhookLogSchema: z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
72
|
+
entityClass: z.ZodString;
|
|
73
|
+
externalEntityId: z.ZodUUID;
|
|
74
|
+
event: z.ZodEnum<{
|
|
75
|
+
created: "created";
|
|
76
|
+
updated: "updated";
|
|
77
|
+
deleted: "deleted";
|
|
78
|
+
}>;
|
|
79
|
+
status: z.ZodEnum<{
|
|
80
|
+
pending: "pending";
|
|
81
|
+
success: "success";
|
|
82
|
+
failed: "failed";
|
|
83
|
+
timeout: "timeout";
|
|
84
|
+
}>;
|
|
85
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
86
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
87
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
89
|
+
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
90
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
91
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
92
|
+
createdAt: z.ZodString;
|
|
93
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
type WebhookLog = z.infer<typeof webhookLogSchema>;
|
|
96
|
+
declare const webhookLogListItemSchema: z.ZodObject<{
|
|
97
|
+
createdAt: z.ZodString;
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
entityClass: z.ZodString;
|
|
100
|
+
event: z.ZodEnum<{
|
|
101
|
+
created: "created";
|
|
102
|
+
updated: "updated";
|
|
103
|
+
deleted: "deleted";
|
|
104
|
+
}>;
|
|
105
|
+
status: z.ZodEnum<{
|
|
106
|
+
pending: "pending";
|
|
107
|
+
success: "success";
|
|
108
|
+
failed: "failed";
|
|
109
|
+
timeout: "timeout";
|
|
110
|
+
}>;
|
|
111
|
+
externalEntityId: z.ZodUUID;
|
|
112
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
113
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
114
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
115
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
116
|
+
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
117
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
118
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
119
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
type WebhookLogListItem = z.infer<typeof webhookLogListItemSchema>;
|
|
122
|
+
declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
123
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
124
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
125
|
+
created: "created";
|
|
126
|
+
updated: "updated";
|
|
127
|
+
deleted: "deleted";
|
|
128
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
129
|
+
created: "created";
|
|
130
|
+
updated: "updated";
|
|
131
|
+
deleted: "deleted";
|
|
132
|
+
}>>]>>;
|
|
133
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
asc: "asc";
|
|
135
|
+
desc: "desc";
|
|
136
|
+
}>>;
|
|
137
|
+
'order[completedAt]': z.ZodOptional<z.ZodEnum<{
|
|
138
|
+
asc: "asc";
|
|
139
|
+
desc: "desc";
|
|
140
|
+
}>>;
|
|
141
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
142
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
143
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
144
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
145
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
146
|
+
'completedAt[before]': z.ZodOptional<z.ZodString>;
|
|
147
|
+
'completedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
148
|
+
'completedAt[after]': z.ZodOptional<z.ZodString>;
|
|
149
|
+
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
type WebhookLogsQueryParams = z.infer<typeof webhookLogsQuerySchema>;
|
|
152
|
+
|
|
153
|
+
declare const createWebhookConfigurationInputSchema: z.ZodObject<{
|
|
154
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
155
|
+
entityClass: z.ZodNonOptional<z.ZodString>;
|
|
156
|
+
events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
157
|
+
created: "created";
|
|
158
|
+
updated: "updated";
|
|
159
|
+
deleted: "deleted";
|
|
160
|
+
}>>>;
|
|
161
|
+
callbackUrl: z.ZodNonOptional<z.ZodURL>;
|
|
162
|
+
secretKey: z.ZodNonOptional<z.ZodString>;
|
|
163
|
+
isActive: z.ZodNonOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
164
|
+
description: z.ZodNonOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
type CreateWebhookConfigurationInput = z.input<typeof createWebhookConfigurationInputSchema>;
|
|
167
|
+
declare const createWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
170
|
+
entityClass: z.ZodString;
|
|
171
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
172
|
+
created: "created";
|
|
173
|
+
updated: "updated";
|
|
174
|
+
deleted: "deleted";
|
|
175
|
+
}>>;
|
|
176
|
+
callbackUrl: z.ZodURL;
|
|
177
|
+
secretKey: z.ZodString;
|
|
178
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
179
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
180
|
+
createdAt: z.ZodString;
|
|
181
|
+
updatedAt: z.ZodString;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
type CreateWebhookConfigurationResponse = z.infer<typeof createWebhookConfigurationResponseSchema>;
|
|
184
|
+
declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof createWebhookConfigurationInputSchema, typeof createWebhookConfigurationResponseSchema> {
|
|
185
|
+
readonly method = "POST";
|
|
186
|
+
readonly contentType = "application/json";
|
|
187
|
+
readonly accept = "application/json";
|
|
188
|
+
readonly inputSchema: z.ZodObject<{
|
|
189
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
190
|
+
entityClass: z.ZodNonOptional<z.ZodString>;
|
|
191
|
+
events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
192
|
+
created: "created";
|
|
193
|
+
updated: "updated";
|
|
194
|
+
deleted: "deleted";
|
|
195
|
+
}>>>;
|
|
196
|
+
callbackUrl: z.ZodNonOptional<z.ZodURL>;
|
|
197
|
+
secretKey: z.ZodNonOptional<z.ZodString>;
|
|
198
|
+
isActive: z.ZodNonOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
199
|
+
description: z.ZodNonOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
readonly outputSchema: z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
204
|
+
entityClass: z.ZodString;
|
|
205
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
206
|
+
created: "created";
|
|
207
|
+
updated: "updated";
|
|
208
|
+
deleted: "deleted";
|
|
209
|
+
}>>;
|
|
210
|
+
callbackUrl: z.ZodURL;
|
|
211
|
+
secretKey: z.ZodString;
|
|
212
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
213
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
214
|
+
createdAt: z.ZodString;
|
|
215
|
+
updatedAt: z.ZodString;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
readonly querySchema: undefined;
|
|
218
|
+
readonly headersSchema: undefined;
|
|
219
|
+
constructor(input: CreateWebhookConfigurationInput);
|
|
220
|
+
getPath(): string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
declare const deleteWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
224
|
+
declare const deleteWebhookConfigurationResponseSchema: z.ZodUndefined;
|
|
225
|
+
declare class DeleteWebhookConfiguration extends AbstractApiRequest<typeof deleteWebhookConfigurationInputSchema, typeof deleteWebhookConfigurationResponseSchema> {
|
|
226
|
+
readonly method = "DELETE";
|
|
227
|
+
readonly contentType = "application/json";
|
|
228
|
+
readonly accept = "application/json";
|
|
229
|
+
readonly inputSchema: z.ZodUndefined;
|
|
230
|
+
readonly outputSchema: z.ZodUndefined;
|
|
231
|
+
readonly querySchema: undefined;
|
|
232
|
+
readonly headersSchema: undefined;
|
|
233
|
+
private readonly webhookConfigurationId;
|
|
234
|
+
constructor(webhookConfigurationId: string);
|
|
235
|
+
getPath(): string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
declare const getWebhookConfigurationDetailsInputSchema: z.ZodUndefined;
|
|
239
|
+
type GetWebhookConfigurationDetailsInput = z.input<typeof getWebhookConfigurationDetailsInputSchema>;
|
|
240
|
+
declare const getWebhookConfigurationDetailsResponseSchema: z.ZodObject<{
|
|
241
|
+
id: z.ZodString;
|
|
242
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
243
|
+
entityClass: z.ZodString;
|
|
244
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
245
|
+
created: "created";
|
|
246
|
+
updated: "updated";
|
|
247
|
+
deleted: "deleted";
|
|
248
|
+
}>>;
|
|
249
|
+
callbackUrl: z.ZodURL;
|
|
250
|
+
secretKey: z.ZodString;
|
|
251
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
252
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
253
|
+
createdAt: z.ZodString;
|
|
254
|
+
updatedAt: z.ZodString;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
type GetWebhookConfigurationDetailsResponse = z.infer<typeof getWebhookConfigurationDetailsResponseSchema>;
|
|
257
|
+
declare class GetWebhookConfigurationDetails extends AbstractApiRequest<typeof getWebhookConfigurationDetailsInputSchema, typeof getWebhookConfigurationDetailsResponseSchema> {
|
|
258
|
+
readonly method = "GET";
|
|
259
|
+
readonly contentType = "application/json";
|
|
260
|
+
readonly accept = "application/json";
|
|
261
|
+
readonly inputSchema: z.ZodUndefined;
|
|
262
|
+
readonly outputSchema: z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
265
|
+
entityClass: z.ZodString;
|
|
266
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
267
|
+
created: "created";
|
|
268
|
+
updated: "updated";
|
|
269
|
+
deleted: "deleted";
|
|
270
|
+
}>>;
|
|
271
|
+
callbackUrl: z.ZodURL;
|
|
272
|
+
secretKey: z.ZodString;
|
|
273
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
274
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
275
|
+
createdAt: z.ZodString;
|
|
276
|
+
updatedAt: z.ZodString;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
readonly querySchema: undefined;
|
|
279
|
+
readonly headersSchema: undefined;
|
|
280
|
+
private readonly webhookConfigurationId;
|
|
281
|
+
constructor(webhookConfigurationId: string);
|
|
282
|
+
getPath(): string;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare const getWebhookConfigurationsQuerySchema: z.ZodObject<{
|
|
286
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
287
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
288
|
+
created: "created";
|
|
289
|
+
updated: "updated";
|
|
290
|
+
deleted: "deleted";
|
|
291
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
292
|
+
created: "created";
|
|
293
|
+
updated: "updated";
|
|
294
|
+
deleted: "deleted";
|
|
295
|
+
}>>]>>;
|
|
296
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
297
|
+
asc: "asc";
|
|
298
|
+
desc: "desc";
|
|
299
|
+
}>>;
|
|
300
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
asc: "asc";
|
|
302
|
+
desc: "desc";
|
|
303
|
+
}>>;
|
|
304
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
305
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
306
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
307
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
308
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
309
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
310
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
311
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
312
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
type GetWebhookConfigurationsQueryParams = z.infer<typeof getWebhookConfigurationsQuerySchema>;
|
|
315
|
+
declare const getWebhookConfigurationsInputSchema: z.ZodUndefined;
|
|
316
|
+
type GetWebhookConfigurationsInput = z.infer<typeof getWebhookConfigurationsInputSchema>;
|
|
317
|
+
declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
318
|
+
data: z.ZodArray<z.ZodObject<{
|
|
319
|
+
createdAt: z.ZodString;
|
|
320
|
+
updatedAt: z.ZodString;
|
|
321
|
+
id: z.ZodString;
|
|
322
|
+
entityClass: z.ZodString;
|
|
323
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
324
|
+
created: "created";
|
|
325
|
+
updated: "updated";
|
|
326
|
+
deleted: "deleted";
|
|
327
|
+
}>>;
|
|
328
|
+
callbackUrl: z.ZodURL;
|
|
329
|
+
secretKey: z.ZodString;
|
|
330
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
331
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
332
|
+
}, z.core.$strip>>;
|
|
333
|
+
pagination: z.ZodObject<{
|
|
334
|
+
from: z.ZodNumber;
|
|
335
|
+
to: z.ZodNumber;
|
|
336
|
+
itemsPerPage: z.ZodNumber;
|
|
337
|
+
totalItems: z.ZodNumber;
|
|
338
|
+
currentPage: z.ZodNumber;
|
|
339
|
+
lastPage: z.ZodNumber;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
}, z.core.$strip>;
|
|
342
|
+
type GetWebhookConfigurationsResponse = z.infer<typeof getWebhookConfigurationsResponseSchema>;
|
|
343
|
+
declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebhookConfigurationsInputSchema, typeof getWebhookConfigurationsResponseSchema, GetWebhookConfigurationsQueryParams> {
|
|
344
|
+
readonly method = "GET";
|
|
345
|
+
readonly contentType = "application/json";
|
|
346
|
+
readonly accept = "application/json";
|
|
347
|
+
readonly inputSchema: z.ZodUndefined;
|
|
348
|
+
readonly outputSchema: z.ZodObject<{
|
|
349
|
+
data: z.ZodArray<z.ZodObject<{
|
|
350
|
+
createdAt: z.ZodString;
|
|
351
|
+
updatedAt: z.ZodString;
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
entityClass: z.ZodString;
|
|
354
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
355
|
+
created: "created";
|
|
356
|
+
updated: "updated";
|
|
357
|
+
deleted: "deleted";
|
|
358
|
+
}>>;
|
|
359
|
+
callbackUrl: z.ZodURL;
|
|
360
|
+
secretKey: z.ZodString;
|
|
361
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
362
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
363
|
+
}, z.core.$strip>>;
|
|
364
|
+
pagination: z.ZodObject<{
|
|
365
|
+
from: z.ZodNumber;
|
|
366
|
+
to: z.ZodNumber;
|
|
367
|
+
itemsPerPage: z.ZodNumber;
|
|
368
|
+
totalItems: z.ZodNumber;
|
|
369
|
+
currentPage: z.ZodNumber;
|
|
370
|
+
lastPage: z.ZodNumber;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
readonly querySchema: z.ZodObject<{
|
|
374
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
375
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
376
|
+
created: "created";
|
|
377
|
+
updated: "updated";
|
|
378
|
+
deleted: "deleted";
|
|
379
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
380
|
+
created: "created";
|
|
381
|
+
updated: "updated";
|
|
382
|
+
deleted: "deleted";
|
|
383
|
+
}>>]>>;
|
|
384
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
385
|
+
asc: "asc";
|
|
386
|
+
desc: "desc";
|
|
387
|
+
}>>;
|
|
388
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
389
|
+
asc: "asc";
|
|
390
|
+
desc: "desc";
|
|
391
|
+
}>>;
|
|
392
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
393
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
394
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
395
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
396
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
397
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
398
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
399
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
400
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
401
|
+
}, z.core.$strip>;
|
|
402
|
+
readonly headersSchema: undefined;
|
|
403
|
+
constructor(options?: {
|
|
404
|
+
query?: GetWebhookConfigurationsQueryParams;
|
|
405
|
+
});
|
|
406
|
+
getPath(): string;
|
|
407
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookConfigurationListItem>;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
declare const getWebhookConfigurationsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
411
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
412
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
413
|
+
created: "created";
|
|
414
|
+
updated: "updated";
|
|
415
|
+
deleted: "deleted";
|
|
416
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
417
|
+
created: "created";
|
|
418
|
+
updated: "updated";
|
|
419
|
+
deleted: "deleted";
|
|
420
|
+
}>>]>>;
|
|
421
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
422
|
+
asc: "asc";
|
|
423
|
+
desc: "desc";
|
|
424
|
+
}>>;
|
|
425
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
426
|
+
asc: "asc";
|
|
427
|
+
desc: "desc";
|
|
428
|
+
}>>;
|
|
429
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
430
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
431
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
432
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
433
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
434
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
435
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
436
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
437
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
438
|
+
}, z.core.$strip>;
|
|
439
|
+
type GetWebhookConfigurationsFromPointOfSaleQueryParams = z.infer<typeof getWebhookConfigurationsFromPointOfSaleQuerySchema>;
|
|
440
|
+
declare const getWebhookConfigurationsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
441
|
+
type GetWebhookConfigurationsFromPointOfSaleInput = z.input<typeof getWebhookConfigurationsFromPointOfSaleInputSchema>;
|
|
442
|
+
declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
|
|
443
|
+
createdAt: z.ZodString;
|
|
444
|
+
updatedAt: z.ZodString;
|
|
445
|
+
id: z.ZodString;
|
|
446
|
+
entityClass: z.ZodString;
|
|
447
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
448
|
+
created: "created";
|
|
449
|
+
updated: "updated";
|
|
450
|
+
deleted: "deleted";
|
|
451
|
+
}>>;
|
|
452
|
+
callbackUrl: z.ZodURL;
|
|
453
|
+
secretKey: z.ZodString;
|
|
454
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
455
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
type GetWebhookConfigurationsFromPointOfSaleResponse = z.infer<typeof getWebhookConfigurationsFromPointOfSaleResponseSchema>;
|
|
458
|
+
declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest<typeof getWebhookConfigurationsFromPointOfSaleInputSchema, typeof getWebhookConfigurationsFromPointOfSaleResponseSchema, GetWebhookConfigurationsFromPointOfSaleQueryParams> {
|
|
459
|
+
readonly method = "GET";
|
|
460
|
+
readonly contentType = "application/json";
|
|
461
|
+
readonly accept = "application/json";
|
|
462
|
+
readonly inputSchema: z.ZodUndefined;
|
|
463
|
+
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
464
|
+
createdAt: z.ZodString;
|
|
465
|
+
updatedAt: z.ZodString;
|
|
466
|
+
id: z.ZodString;
|
|
467
|
+
entityClass: z.ZodString;
|
|
468
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
469
|
+
created: "created";
|
|
470
|
+
updated: "updated";
|
|
471
|
+
deleted: "deleted";
|
|
472
|
+
}>>;
|
|
473
|
+
callbackUrl: z.ZodURL;
|
|
474
|
+
secretKey: z.ZodString;
|
|
475
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
476
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
477
|
+
}, z.core.$strip>>;
|
|
478
|
+
readonly querySchema: z.ZodObject<{
|
|
479
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
480
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
481
|
+
created: "created";
|
|
482
|
+
updated: "updated";
|
|
483
|
+
deleted: "deleted";
|
|
484
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
485
|
+
created: "created";
|
|
486
|
+
updated: "updated";
|
|
487
|
+
deleted: "deleted";
|
|
488
|
+
}>>]>>;
|
|
489
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
asc: "asc";
|
|
491
|
+
desc: "desc";
|
|
492
|
+
}>>;
|
|
493
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
494
|
+
asc: "asc";
|
|
495
|
+
desc: "desc";
|
|
496
|
+
}>>;
|
|
497
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
498
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
499
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
500
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
501
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
502
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
503
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
504
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
505
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
506
|
+
}, z.core.$strip>;
|
|
507
|
+
readonly headersSchema: undefined;
|
|
508
|
+
private readonly pointOfSaleId;
|
|
509
|
+
constructor(pointOfSaleId: string, options?: {
|
|
510
|
+
query?: GetWebhookConfigurationsFromPointOfSaleQueryParams;
|
|
511
|
+
});
|
|
512
|
+
getPath(): string;
|
|
513
|
+
parseResponse(data: unknown): WebhookConfigurationListItem[];
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
declare const updateWebhookConfigurationInputSchema: z.ZodObject<{
|
|
517
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
518
|
+
events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
519
|
+
created: "created";
|
|
520
|
+
updated: "updated";
|
|
521
|
+
deleted: "deleted";
|
|
522
|
+
}>>>;
|
|
523
|
+
callbackUrl: z.ZodOptional<z.ZodURL>;
|
|
524
|
+
secretKey: z.ZodOptional<z.ZodString>;
|
|
525
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
526
|
+
description: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>>;
|
|
527
|
+
}, z.core.$strip>;
|
|
528
|
+
type UpdateWebhookConfigurationInput = z.input<typeof updateWebhookConfigurationInputSchema>;
|
|
529
|
+
declare const updateWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
530
|
+
id: z.ZodString;
|
|
531
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
532
|
+
entityClass: z.ZodString;
|
|
533
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
534
|
+
created: "created";
|
|
535
|
+
updated: "updated";
|
|
536
|
+
deleted: "deleted";
|
|
537
|
+
}>>;
|
|
538
|
+
callbackUrl: z.ZodURL;
|
|
539
|
+
secretKey: z.ZodString;
|
|
540
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
541
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
542
|
+
createdAt: z.ZodString;
|
|
543
|
+
updatedAt: z.ZodString;
|
|
544
|
+
}, z.core.$strip>;
|
|
545
|
+
type UpdateWebhookConfigurationResponse = z.infer<typeof updateWebhookConfigurationResponseSchema>;
|
|
546
|
+
declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updateWebhookConfigurationInputSchema, typeof updateWebhookConfigurationResponseSchema> {
|
|
547
|
+
readonly method = "PATCH";
|
|
548
|
+
readonly contentType = "application/merge-patch+json";
|
|
549
|
+
readonly accept = "application/json";
|
|
550
|
+
readonly inputSchema: z.ZodObject<{
|
|
551
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
552
|
+
events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
553
|
+
created: "created";
|
|
554
|
+
updated: "updated";
|
|
555
|
+
deleted: "deleted";
|
|
556
|
+
}>>>;
|
|
557
|
+
callbackUrl: z.ZodOptional<z.ZodURL>;
|
|
558
|
+
secretKey: z.ZodOptional<z.ZodString>;
|
|
559
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
560
|
+
description: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>>;
|
|
561
|
+
}, z.core.$strip>;
|
|
562
|
+
readonly outputSchema: z.ZodObject<{
|
|
563
|
+
id: z.ZodString;
|
|
564
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
565
|
+
entityClass: z.ZodString;
|
|
566
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
567
|
+
created: "created";
|
|
568
|
+
updated: "updated";
|
|
569
|
+
deleted: "deleted";
|
|
570
|
+
}>>;
|
|
571
|
+
callbackUrl: z.ZodURL;
|
|
572
|
+
secretKey: z.ZodString;
|
|
573
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
574
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
575
|
+
createdAt: z.ZodString;
|
|
576
|
+
updatedAt: z.ZodString;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
readonly querySchema: undefined;
|
|
579
|
+
readonly headersSchema: undefined;
|
|
580
|
+
private readonly webhookConfigurationId;
|
|
581
|
+
constructor(webhookConfigurationId: string, input: UpdateWebhookConfigurationInput);
|
|
582
|
+
getPath(): string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
declare const getWebhookLogDetailsInputSchema: z.ZodUndefined;
|
|
586
|
+
type GetWebhookLogDetailsInput = z.input<typeof getWebhookLogDetailsInputSchema>;
|
|
587
|
+
declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
588
|
+
id: z.ZodString;
|
|
589
|
+
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
590
|
+
entityClass: z.ZodString;
|
|
591
|
+
externalEntityId: z.ZodUUID;
|
|
592
|
+
event: z.ZodEnum<{
|
|
593
|
+
created: "created";
|
|
594
|
+
updated: "updated";
|
|
595
|
+
deleted: "deleted";
|
|
596
|
+
}>;
|
|
597
|
+
status: z.ZodEnum<{
|
|
598
|
+
pending: "pending";
|
|
599
|
+
success: "success";
|
|
600
|
+
failed: "failed";
|
|
601
|
+
timeout: "timeout";
|
|
602
|
+
}>;
|
|
603
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
604
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
605
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
606
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
607
|
+
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
608
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
609
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
610
|
+
createdAt: z.ZodString;
|
|
611
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
612
|
+
}, z.core.$strip>;
|
|
613
|
+
type GetWebhookLogDetailsResponse = z.infer<typeof getWebhookLogDetailsResponseSchema>;
|
|
614
|
+
declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookLogDetailsInputSchema, typeof getWebhookLogDetailsResponseSchema> {
|
|
615
|
+
readonly method = "GET";
|
|
616
|
+
readonly contentType = "application/json";
|
|
617
|
+
readonly accept = "application/json";
|
|
618
|
+
readonly inputSchema: z.ZodUndefined;
|
|
619
|
+
readonly outputSchema: z.ZodObject<{
|
|
620
|
+
id: z.ZodString;
|
|
621
|
+
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
622
|
+
entityClass: z.ZodString;
|
|
623
|
+
externalEntityId: z.ZodUUID;
|
|
624
|
+
event: z.ZodEnum<{
|
|
625
|
+
created: "created";
|
|
626
|
+
updated: "updated";
|
|
627
|
+
deleted: "deleted";
|
|
628
|
+
}>;
|
|
629
|
+
status: z.ZodEnum<{
|
|
630
|
+
pending: "pending";
|
|
631
|
+
success: "success";
|
|
632
|
+
failed: "failed";
|
|
633
|
+
timeout: "timeout";
|
|
634
|
+
}>;
|
|
635
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
636
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
637
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
638
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
639
|
+
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
640
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
641
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
642
|
+
createdAt: z.ZodString;
|
|
643
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
644
|
+
}, z.core.$strip>;
|
|
645
|
+
readonly querySchema: undefined;
|
|
646
|
+
readonly headersSchema: undefined;
|
|
647
|
+
private readonly webhookLogId;
|
|
648
|
+
constructor(webhookLogId: string);
|
|
649
|
+
getPath(): string;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
653
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
654
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
655
|
+
created: "created";
|
|
656
|
+
updated: "updated";
|
|
657
|
+
deleted: "deleted";
|
|
658
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
659
|
+
created: "created";
|
|
660
|
+
updated: "updated";
|
|
661
|
+
deleted: "deleted";
|
|
662
|
+
}>>]>>;
|
|
663
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
664
|
+
asc: "asc";
|
|
665
|
+
desc: "desc";
|
|
666
|
+
}>>;
|
|
667
|
+
'order[completedAt]': z.ZodOptional<z.ZodEnum<{
|
|
668
|
+
asc: "asc";
|
|
669
|
+
desc: "desc";
|
|
670
|
+
}>>;
|
|
671
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
672
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
673
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
674
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
675
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
676
|
+
'completedAt[before]': z.ZodOptional<z.ZodString>;
|
|
677
|
+
'completedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
678
|
+
'completedAt[after]': z.ZodOptional<z.ZodString>;
|
|
679
|
+
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
680
|
+
}, z.core.$strip>;
|
|
681
|
+
type GetWebhookLogsQueryParams = z.infer<typeof getWebhookLogsQuerySchema>;
|
|
682
|
+
declare const getWebhookLogsInputSchema: z.ZodUndefined;
|
|
683
|
+
type GetWebhookLogsInput = z.infer<typeof getWebhookLogsInputSchema>;
|
|
684
|
+
declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
685
|
+
data: z.ZodArray<z.ZodObject<{
|
|
686
|
+
createdAt: z.ZodString;
|
|
687
|
+
id: z.ZodString;
|
|
688
|
+
entityClass: z.ZodString;
|
|
689
|
+
event: z.ZodEnum<{
|
|
690
|
+
created: "created";
|
|
691
|
+
updated: "updated";
|
|
692
|
+
deleted: "deleted";
|
|
693
|
+
}>;
|
|
694
|
+
status: z.ZodEnum<{
|
|
695
|
+
pending: "pending";
|
|
696
|
+
success: "success";
|
|
697
|
+
failed: "failed";
|
|
698
|
+
timeout: "timeout";
|
|
699
|
+
}>;
|
|
700
|
+
externalEntityId: z.ZodUUID;
|
|
701
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
702
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
703
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
704
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
705
|
+
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
706
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
707
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
708
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
709
|
+
}, z.core.$strip>>;
|
|
710
|
+
pagination: z.ZodObject<{
|
|
711
|
+
from: z.ZodNumber;
|
|
712
|
+
to: z.ZodNumber;
|
|
713
|
+
itemsPerPage: z.ZodNumber;
|
|
714
|
+
totalItems: z.ZodNumber;
|
|
715
|
+
currentPage: z.ZodNumber;
|
|
716
|
+
lastPage: z.ZodNumber;
|
|
717
|
+
}, z.core.$strip>;
|
|
718
|
+
}, z.core.$strip>;
|
|
719
|
+
type GetWebhookLogsResponse = z.infer<typeof getWebhookLogsResponseSchema>;
|
|
720
|
+
declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInputSchema, typeof getWebhookLogsResponseSchema, GetWebhookLogsQueryParams> {
|
|
721
|
+
readonly method = "GET";
|
|
722
|
+
readonly contentType = "application/json";
|
|
723
|
+
readonly accept = "application/json";
|
|
724
|
+
readonly inputSchema: z.ZodUndefined;
|
|
725
|
+
readonly outputSchema: z.ZodObject<{
|
|
726
|
+
data: z.ZodArray<z.ZodObject<{
|
|
727
|
+
createdAt: z.ZodString;
|
|
728
|
+
id: z.ZodString;
|
|
729
|
+
entityClass: z.ZodString;
|
|
730
|
+
event: z.ZodEnum<{
|
|
731
|
+
created: "created";
|
|
732
|
+
updated: "updated";
|
|
733
|
+
deleted: "deleted";
|
|
734
|
+
}>;
|
|
735
|
+
status: z.ZodEnum<{
|
|
736
|
+
pending: "pending";
|
|
737
|
+
success: "success";
|
|
738
|
+
failed: "failed";
|
|
739
|
+
timeout: "timeout";
|
|
740
|
+
}>;
|
|
741
|
+
externalEntityId: z.ZodUUID;
|
|
742
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
743
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
744
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
745
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
746
|
+
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
747
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
748
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
749
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
750
|
+
}, z.core.$strip>>;
|
|
751
|
+
pagination: z.ZodObject<{
|
|
752
|
+
from: z.ZodNumber;
|
|
753
|
+
to: z.ZodNumber;
|
|
754
|
+
itemsPerPage: z.ZodNumber;
|
|
755
|
+
totalItems: z.ZodNumber;
|
|
756
|
+
currentPage: z.ZodNumber;
|
|
757
|
+
lastPage: z.ZodNumber;
|
|
758
|
+
}, z.core.$strip>;
|
|
759
|
+
}, z.core.$strip>;
|
|
760
|
+
readonly querySchema: z.ZodObject<{
|
|
761
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
762
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
763
|
+
created: "created";
|
|
764
|
+
updated: "updated";
|
|
765
|
+
deleted: "deleted";
|
|
766
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
767
|
+
created: "created";
|
|
768
|
+
updated: "updated";
|
|
769
|
+
deleted: "deleted";
|
|
770
|
+
}>>]>>;
|
|
771
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
772
|
+
asc: "asc";
|
|
773
|
+
desc: "desc";
|
|
774
|
+
}>>;
|
|
775
|
+
'order[completedAt]': z.ZodOptional<z.ZodEnum<{
|
|
776
|
+
asc: "asc";
|
|
777
|
+
desc: "desc";
|
|
778
|
+
}>>;
|
|
779
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
780
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
781
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
782
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
783
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
784
|
+
'completedAt[before]': z.ZodOptional<z.ZodString>;
|
|
785
|
+
'completedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
786
|
+
'completedAt[after]': z.ZodOptional<z.ZodString>;
|
|
787
|
+
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
788
|
+
}, z.core.$strip>;
|
|
789
|
+
readonly headersSchema: undefined;
|
|
790
|
+
constructor(options?: {
|
|
791
|
+
query?: GetWebhookLogsQueryParams;
|
|
792
|
+
});
|
|
793
|
+
getPath(): string;
|
|
794
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
798
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
799
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
800
|
+
created: "created";
|
|
801
|
+
updated: "updated";
|
|
802
|
+
deleted: "deleted";
|
|
803
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
804
|
+
created: "created";
|
|
805
|
+
updated: "updated";
|
|
806
|
+
deleted: "deleted";
|
|
807
|
+
}>>]>>;
|
|
808
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
809
|
+
asc: "asc";
|
|
810
|
+
desc: "desc";
|
|
811
|
+
}>>;
|
|
812
|
+
'order[completedAt]': z.ZodOptional<z.ZodEnum<{
|
|
813
|
+
asc: "asc";
|
|
814
|
+
desc: "desc";
|
|
815
|
+
}>>;
|
|
816
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
817
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
818
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
819
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
820
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
821
|
+
'completedAt[before]': z.ZodOptional<z.ZodString>;
|
|
822
|
+
'completedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
823
|
+
'completedAt[after]': z.ZodOptional<z.ZodString>;
|
|
824
|
+
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
825
|
+
}, z.core.$strip>;
|
|
826
|
+
type GetWebhookLogsFromWebhookConfigurationQueryParams = z.infer<typeof getWebhookLogsFromWebhookConfigurationQuerySchema>;
|
|
827
|
+
declare const getWebhookLogsFromWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
828
|
+
type GetWebhookLogsFromWebhookConfigurationInput = z.input<typeof getWebhookLogsFromWebhookConfigurationInputSchema>;
|
|
829
|
+
declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
830
|
+
data: z.ZodArray<z.ZodObject<{
|
|
831
|
+
createdAt: z.ZodString;
|
|
832
|
+
id: z.ZodString;
|
|
833
|
+
entityClass: z.ZodString;
|
|
834
|
+
event: z.ZodEnum<{
|
|
835
|
+
created: "created";
|
|
836
|
+
updated: "updated";
|
|
837
|
+
deleted: "deleted";
|
|
838
|
+
}>;
|
|
839
|
+
status: z.ZodEnum<{
|
|
840
|
+
pending: "pending";
|
|
841
|
+
success: "success";
|
|
842
|
+
failed: "failed";
|
|
843
|
+
timeout: "timeout";
|
|
844
|
+
}>;
|
|
845
|
+
externalEntityId: z.ZodUUID;
|
|
846
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
847
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
848
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
849
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
850
|
+
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
851
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
852
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
853
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
854
|
+
}, z.core.$strip>>;
|
|
855
|
+
pagination: z.ZodObject<{
|
|
856
|
+
from: z.ZodNumber;
|
|
857
|
+
to: z.ZodNumber;
|
|
858
|
+
itemsPerPage: z.ZodNumber;
|
|
859
|
+
totalItems: z.ZodNumber;
|
|
860
|
+
currentPage: z.ZodNumber;
|
|
861
|
+
lastPage: z.ZodNumber;
|
|
862
|
+
}, z.core.$strip>;
|
|
863
|
+
}, z.core.$strip>;
|
|
864
|
+
type GetWebhookLogsFromWebhookConfigurationResponse = z.infer<typeof getWebhookLogsFromWebhookConfigurationResponseSchema>;
|
|
865
|
+
declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<typeof getWebhookLogsFromWebhookConfigurationInputSchema, typeof getWebhookLogsFromWebhookConfigurationResponseSchema, GetWebhookLogsFromWebhookConfigurationQueryParams> {
|
|
866
|
+
readonly method = "GET";
|
|
867
|
+
readonly contentType = "application/json";
|
|
868
|
+
readonly accept = "application/json";
|
|
869
|
+
readonly inputSchema: z.ZodUndefined;
|
|
870
|
+
readonly outputSchema: z.ZodObject<{
|
|
871
|
+
data: z.ZodArray<z.ZodObject<{
|
|
872
|
+
createdAt: z.ZodString;
|
|
873
|
+
id: z.ZodString;
|
|
874
|
+
entityClass: z.ZodString;
|
|
875
|
+
event: z.ZodEnum<{
|
|
876
|
+
created: "created";
|
|
877
|
+
updated: "updated";
|
|
878
|
+
deleted: "deleted";
|
|
879
|
+
}>;
|
|
880
|
+
status: z.ZodEnum<{
|
|
881
|
+
pending: "pending";
|
|
882
|
+
success: "success";
|
|
883
|
+
failed: "failed";
|
|
884
|
+
timeout: "timeout";
|
|
885
|
+
}>;
|
|
886
|
+
externalEntityId: z.ZodUUID;
|
|
887
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
888
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
889
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
890
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
891
|
+
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
892
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
893
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
894
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
895
|
+
}, z.core.$strip>>;
|
|
896
|
+
pagination: z.ZodObject<{
|
|
897
|
+
from: z.ZodNumber;
|
|
898
|
+
to: z.ZodNumber;
|
|
899
|
+
itemsPerPage: z.ZodNumber;
|
|
900
|
+
totalItems: z.ZodNumber;
|
|
901
|
+
currentPage: z.ZodNumber;
|
|
902
|
+
lastPage: z.ZodNumber;
|
|
903
|
+
}, z.core.$strip>;
|
|
904
|
+
}, z.core.$strip>;
|
|
905
|
+
readonly querySchema: z.ZodObject<{
|
|
906
|
+
entityClass: z.ZodOptional<z.ZodString>;
|
|
907
|
+
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
908
|
+
created: "created";
|
|
909
|
+
updated: "updated";
|
|
910
|
+
deleted: "deleted";
|
|
911
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
912
|
+
created: "created";
|
|
913
|
+
updated: "updated";
|
|
914
|
+
deleted: "deleted";
|
|
915
|
+
}>>]>>;
|
|
916
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
917
|
+
asc: "asc";
|
|
918
|
+
desc: "desc";
|
|
919
|
+
}>>;
|
|
920
|
+
'order[completedAt]': z.ZodOptional<z.ZodEnum<{
|
|
921
|
+
asc: "asc";
|
|
922
|
+
desc: "desc";
|
|
923
|
+
}>>;
|
|
924
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
925
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
926
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
927
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
928
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
929
|
+
'completedAt[before]': z.ZodOptional<z.ZodString>;
|
|
930
|
+
'completedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
931
|
+
'completedAt[after]': z.ZodOptional<z.ZodString>;
|
|
932
|
+
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
933
|
+
}, z.core.$strip>;
|
|
934
|
+
readonly headersSchema: undefined;
|
|
935
|
+
private readonly pointOfSaleId;
|
|
936
|
+
constructor(pointOfSaleId: string, options?: {
|
|
937
|
+
query?: GetWebhookLogsFromWebhookConfigurationQueryParams;
|
|
938
|
+
});
|
|
939
|
+
getPath(): string;
|
|
940
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
declare const webhookEvents: readonly ["created", "updated", "deleted"];
|
|
944
|
+
declare const webhookEventSchema: z.ZodEnum<{
|
|
945
|
+
created: "created";
|
|
946
|
+
updated: "updated";
|
|
947
|
+
deleted: "deleted";
|
|
948
|
+
}>;
|
|
949
|
+
type WebhookEvent = z.infer<typeof webhookEventSchema>;
|
|
950
|
+
declare const webhookLogStatuses: readonly ["pending", "success", "failed", "timeout"];
|
|
951
|
+
declare const webhookLogStatusSchema: z.ZodEnum<{
|
|
952
|
+
pending: "pending";
|
|
953
|
+
success: "success";
|
|
954
|
+
failed: "failed";
|
|
955
|
+
timeout: "timeout";
|
|
956
|
+
}>;
|
|
957
|
+
type WebhookLogStatus = z.infer<typeof webhookLogStatusSchema>;
|
|
958
|
+
declare const webhookConfigurationIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
959
|
+
type WebhookConfigurationIri = z.infer<typeof webhookConfigurationIriSchema>;
|
|
960
|
+
declare const webhookConfigurationNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id"> | null, unknown>>;
|
|
961
|
+
type WebhookConfigurationNullableIri = z.infer<typeof webhookConfigurationNullableIriSchema>;
|
|
962
|
+
declare const webhookLogIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/logs/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/logs/:id">, unknown>>;
|
|
963
|
+
type WebhookLogIri = z.infer<typeof webhookLogIriSchema>;
|
|
964
|
+
declare const webhookLogNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/logs/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/logs/:id"> | null, unknown>>;
|
|
965
|
+
type WebhookLogNullableIri = z.infer<typeof webhookLogNullableIriSchema>;
|
|
966
|
+
|
|
967
|
+
export { CreateWebhookConfiguration, type CreateWebhookConfigurationInput, type CreateWebhookConfigurationResponse, DeleteWebhookConfiguration, GetWebhookConfigurationDetails, type GetWebhookConfigurationDetailsInput, type GetWebhookConfigurationDetailsResponse, GetWebhookConfigurations, GetWebhookConfigurationsFromPointOfSale, type GetWebhookConfigurationsFromPointOfSaleInput, type GetWebhookConfigurationsFromPointOfSaleQueryParams, type GetWebhookConfigurationsFromPointOfSaleResponse, type GetWebhookConfigurationsInput, type GetWebhookConfigurationsQueryParams, type GetWebhookConfigurationsResponse, GetWebhookLogDetails, type GetWebhookLogDetailsInput, type GetWebhookLogDetailsResponse, GetWebhookLogs, GetWebhookLogsFromWebhookConfiguration, type GetWebhookLogsFromWebhookConfigurationInput, type GetWebhookLogsFromWebhookConfigurationQueryParams, type GetWebhookLogsFromWebhookConfigurationResponse, type GetWebhookLogsInput, type GetWebhookLogsQueryParams, type GetWebhookLogsResponse, UpdateWebhookConfiguration, type UpdateWebhookConfigurationInput, type UpdateWebhookConfigurationResponse, type WebhookConfiguration, type WebhookConfigurationIri, type WebhookConfigurationListItem, type WebhookConfigurationNullableIri, type WebhookConfigurationsQueryParams, type WebhookEvent, type WebhookLog, type WebhookLogIri, type WebhookLogListItem, type WebhookLogNullableIri, type WebhookLogStatus, type WebhookLogsQueryParams, createWebhookConfigurationInputSchema, createWebhookConfigurationResponseSchema, deleteWebhookConfigurationInputSchema, deleteWebhookConfigurationResponseSchema, getWebhookConfigurationDetailsInputSchema, getWebhookConfigurationDetailsResponseSchema, getWebhookConfigurationsFromPointOfSaleInputSchema, getWebhookConfigurationsFromPointOfSaleQuerySchema, getWebhookConfigurationsFromPointOfSaleResponseSchema, getWebhookConfigurationsInputSchema, getWebhookConfigurationsQuerySchema, getWebhookConfigurationsResponseSchema, getWebhookLogDetailsInputSchema, getWebhookLogDetailsResponseSchema, getWebhookLogsFromWebhookConfigurationInputSchema, getWebhookLogsFromWebhookConfigurationQuerySchema, getWebhookLogsFromWebhookConfigurationResponseSchema, getWebhookLogsInputSchema, getWebhookLogsQuerySchema, getWebhookLogsResponseSchema, updateWebhookConfigurationInputSchema, updateWebhookConfigurationResponseSchema, webhookConfigurationIriSchema, webhookConfigurationListItemSchema, webhookConfigurationNullableIriSchema, webhookConfigurationSchema, webhookConfigurationsQuerySchema, webhookEventSchema, webhookEvents, webhookLogIriSchema, webhookLogListItemSchema, webhookLogNullableIriSchema, webhookLogSchema, webhookLogStatusSchema, webhookLogStatuses, webhookLogsQuerySchema };
|