@deliverart/sdk-js-webhook 2.4.22 → 2.5.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 +37 -53
- package/dist/index.d.cts +20 -48
- package/dist/index.d.ts +20 -48
- package/dist/index.js +8 -17
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -56,22 +56,22 @@ __export(index_exports, {
|
|
|
56
56
|
webhookConfigurationNullableIriSchema: () => webhookConfigurationNullableIriSchema,
|
|
57
57
|
webhookConfigurationSchema: () => webhookConfigurationSchema,
|
|
58
58
|
webhookConfigurationsQuerySchema: () => webhookConfigurationsQuerySchema,
|
|
59
|
-
webhookEntities: () => webhookEntities,
|
|
60
|
-
webhookEntitySchema: () => webhookEntitySchema,
|
|
61
|
-
webhookEventSchema: () => webhookEventSchema,
|
|
62
|
-
webhookEvents: () => webhookEvents,
|
|
59
|
+
webhookEntities: () => import_sdk_js_global_types2.webhookEntities,
|
|
60
|
+
webhookEntitySchema: () => import_sdk_js_global_types2.webhookEntitySchema,
|
|
61
|
+
webhookEventSchema: () => import_sdk_js_global_types2.webhookEventSchema,
|
|
62
|
+
webhookEvents: () => import_sdk_js_global_types2.webhookEvents,
|
|
63
63
|
webhookLogIriSchema: () => webhookLogIriSchema,
|
|
64
64
|
webhookLogListItemSchema: () => webhookLogListItemSchema,
|
|
65
65
|
webhookLogNullableIriSchema: () => webhookLogNullableIriSchema,
|
|
66
66
|
webhookLogSchema: () => webhookLogSchema,
|
|
67
|
-
webhookLogStatusSchema: () => webhookLogStatusSchema,
|
|
68
|
-
webhookLogStatuses: () => webhookLogStatuses,
|
|
67
|
+
webhookLogStatusSchema: () => import_sdk_js_global_types2.webhookLogStatusSchema,
|
|
68
|
+
webhookLogStatuses: () => import_sdk_js_global_types2.webhookLogStatuses,
|
|
69
69
|
webhookLogsQuerySchema: () => webhookLogsQuerySchema
|
|
70
70
|
});
|
|
71
71
|
module.exports = __toCommonJS(index_exports);
|
|
72
72
|
|
|
73
73
|
// src/models.ts
|
|
74
|
-
var
|
|
74
|
+
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
75
75
|
var import_sdk_js_point_of_sale = require("@deliverart/sdk-js-point-of-sale");
|
|
76
76
|
|
|
77
77
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/external.js
|
|
@@ -11219,23 +11219,7 @@ config(en_default());
|
|
|
11219
11219
|
|
|
11220
11220
|
// src/types.ts
|
|
11221
11221
|
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
11222
|
-
var
|
|
11223
|
-
var webhookEventSchema = external_exports.enum(webhookEvents);
|
|
11224
|
-
var webhookLogStatuses = ["pending", "success", "failed", "timeout"];
|
|
11225
|
-
var webhookLogStatusSchema = external_exports.enum(webhookLogStatuses);
|
|
11226
|
-
var webhookEntities = [
|
|
11227
|
-
"App\\Entity\\Bundle",
|
|
11228
|
-
"App\\Entity\\Customer",
|
|
11229
|
-
"App\\Entity\\CustomerAddress",
|
|
11230
|
-
"App\\Entity\\CustomerBusinessProfile",
|
|
11231
|
-
"App\\Entity\\Delivery",
|
|
11232
|
-
"App\\Entity\\DeliveryPosition",
|
|
11233
|
-
"App\\Entity\\Integration",
|
|
11234
|
-
"App\\Entity\\IntegrationActivationRequest",
|
|
11235
|
-
"App\\Entity\\Order",
|
|
11236
|
-
"App\\Entity\\PointOfSale"
|
|
11237
|
-
];
|
|
11238
|
-
var webhookEntitySchema = external_exports.enum(webhookEntities);
|
|
11222
|
+
var import_sdk_js_global_types2 = require("@deliverart/sdk-js-global-types");
|
|
11239
11223
|
var webhookConfigurationIriSchema = (0, import_sdk_js_global_types.iriSchema)("/webhooks/configurations/:id");
|
|
11240
11224
|
var webhookConfigurationNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
11241
11225
|
"/webhooks/configurations/:id"
|
|
@@ -11247,14 +11231,14 @@ var webhookLogNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSche
|
|
|
11247
11231
|
var webhookConfigurationSchema = external_exports.object({
|
|
11248
11232
|
id: external_exports.string(),
|
|
11249
11233
|
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
11250
|
-
entityClass: webhookEntitySchema,
|
|
11251
|
-
events: external_exports.array(webhookEventSchema).min(1, "events.required"),
|
|
11234
|
+
entityClass: import_sdk_js_global_types2.webhookEntitySchema,
|
|
11235
|
+
events: external_exports.array(import_sdk_js_global_types2.webhookEventSchema).min(1, "events.required"),
|
|
11252
11236
|
callbackUrl: external_exports.url("callbackUrl.invalid").min(1, "callbackUrl.required"),
|
|
11253
11237
|
secretKey: external_exports.string().min(1, "secretKey.required"),
|
|
11254
11238
|
isActive: external_exports.boolean().default(true),
|
|
11255
11239
|
description: external_exports.string().optional().nullable().default(null),
|
|
11256
|
-
createdAt:
|
|
11257
|
-
updatedAt:
|
|
11240
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11241
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
11258
11242
|
});
|
|
11259
11243
|
var webhookConfigurationListItemSchema = webhookConfigurationSchema.omit({
|
|
11260
11244
|
pointOfSale: true,
|
|
@@ -11262,18 +11246,18 @@ var webhookConfigurationListItemSchema = webhookConfigurationSchema.omit({
|
|
|
11262
11246
|
});
|
|
11263
11247
|
var webhookConfigurationsQuerySchema = external_exports.object({
|
|
11264
11248
|
entityClass: external_exports.string().optional(),
|
|
11265
|
-
events: external_exports.union([webhookEventSchema, external_exports.array(webhookEventSchema)]).optional(),
|
|
11266
|
-
"order[createdAt]":
|
|
11267
|
-
"order[updatedAt]":
|
|
11249
|
+
events: external_exports.union([import_sdk_js_global_types2.webhookEventSchema, external_exports.array(import_sdk_js_global_types2.webhookEventSchema)]).optional(),
|
|
11250
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
11251
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
11268
11252
|
page: external_exports.coerce.number().optional()
|
|
11269
|
-
}).extend(
|
|
11253
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
11270
11254
|
var webhookLogSchema = external_exports.object({
|
|
11271
11255
|
id: external_exports.string(),
|
|
11272
11256
|
configuration: webhookConfigurationIriSchema,
|
|
11273
|
-
entityClass: webhookEntitySchema,
|
|
11257
|
+
entityClass: import_sdk_js_global_types2.webhookEntitySchema,
|
|
11274
11258
|
externalEntityId: external_exports.uuid(),
|
|
11275
|
-
event: webhookEventSchema,
|
|
11276
|
-
status: webhookLogStatusSchema,
|
|
11259
|
+
event: import_sdk_js_global_types2.webhookEventSchema,
|
|
11260
|
+
status: import_sdk_js_global_types2.webhookLogStatusSchema,
|
|
11277
11261
|
requestS3Key: external_exports.string().nullable(),
|
|
11278
11262
|
responseS3Key: external_exports.string().nullable(),
|
|
11279
11263
|
httpStatusCode: external_exports.coerce.number().nullable(),
|
|
@@ -11281,8 +11265,8 @@ var webhookLogSchema = external_exports.object({
|
|
|
11281
11265
|
responseTimeMs: external_exports.coerce.number().nullable(),
|
|
11282
11266
|
requestFileUrl: external_exports.url().nullable(),
|
|
11283
11267
|
responseFileUrl: external_exports.url().nullable(),
|
|
11284
|
-
createdAt:
|
|
11285
|
-
completedAt:
|
|
11268
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11269
|
+
completedAt: import_sdk_js_global_types3.datetimeSchema.nullable()
|
|
11286
11270
|
});
|
|
11287
11271
|
var webhookLogListItemSchema = webhookLogSchema.omit({
|
|
11288
11272
|
configuration: true
|
|
@@ -11290,11 +11274,11 @@ var webhookLogListItemSchema = webhookLogSchema.omit({
|
|
|
11290
11274
|
var webhookLogsQuerySchema = external_exports.object({
|
|
11291
11275
|
entityClass: external_exports.string().optional(),
|
|
11292
11276
|
externalEntityId: external_exports.string().optional(),
|
|
11293
|
-
"exists[completedAt]":
|
|
11294
|
-
events: external_exports.union([webhookEventSchema, external_exports.array(webhookEventSchema)]).optional(),
|
|
11295
|
-
status: external_exports.union([webhookLogStatusSchema, external_exports.array(webhookLogStatusSchema)]).optional(),
|
|
11296
|
-
"order[createdAt]":
|
|
11297
|
-
"order[completedAt]":
|
|
11277
|
+
"exists[completedAt]": import_sdk_js_global_types3.booleanSchema.optional(),
|
|
11278
|
+
events: external_exports.union([import_sdk_js_global_types2.webhookEventSchema, external_exports.array(import_sdk_js_global_types2.webhookEventSchema)]).optional(),
|
|
11279
|
+
status: external_exports.union([import_sdk_js_global_types2.webhookLogStatusSchema, external_exports.array(import_sdk_js_global_types2.webhookLogStatusSchema)]).optional(),
|
|
11280
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
11281
|
+
"order[completedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
11298
11282
|
page: external_exports.coerce.number().optional()
|
|
11299
11283
|
}).extend({
|
|
11300
11284
|
"createdAt[before]": external_exports.string().optional(),
|
|
@@ -11337,9 +11321,9 @@ var CreateWebhookConfiguration = class extends import_sdk_js_core.AbstractApiReq
|
|
|
11337
11321
|
|
|
11338
11322
|
// src/requests/webhook-configurations/DeleteWebhookConfiguration.ts
|
|
11339
11323
|
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
11340
|
-
var
|
|
11324
|
+
var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
|
|
11341
11325
|
var deleteWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11342
|
-
var deleteWebhookConfigurationResponseSchema =
|
|
11326
|
+
var deleteWebhookConfigurationResponseSchema = import_sdk_js_global_types4.emptyResponseSchema;
|
|
11343
11327
|
var DeleteWebhookConfiguration = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
11344
11328
|
constructor(webhookConfigurationId) {
|
|
11345
11329
|
super(void 0);
|
|
@@ -11380,10 +11364,10 @@ var GetWebhookConfigurationDetails = class extends import_sdk_js_core3.AbstractA
|
|
|
11380
11364
|
|
|
11381
11365
|
// src/requests/webhook-configurations/GetWebhookConfigurations.ts
|
|
11382
11366
|
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
11383
|
-
var
|
|
11367
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
11384
11368
|
var getWebhookConfigurationsQuerySchema = webhookConfigurationsQuerySchema;
|
|
11385
11369
|
var getWebhookConfigurationsInputSchema = external_exports.undefined();
|
|
11386
|
-
var getWebhookConfigurationsResponseSchema = (0,
|
|
11370
|
+
var getWebhookConfigurationsResponseSchema = (0, import_sdk_js_global_types5.createPaginatedSchema)(
|
|
11387
11371
|
webhookConfigurationListItemSchema
|
|
11388
11372
|
);
|
|
11389
11373
|
var GetWebhookConfigurations = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
@@ -11404,7 +11388,7 @@ var GetWebhookConfigurations = class extends import_sdk_js_core4.AbstractApiRequ
|
|
|
11404
11388
|
const webhookConfigurations = external_exports.array(webhookConfigurationSchema).parse(data);
|
|
11405
11389
|
return this.validateOutput({
|
|
11406
11390
|
data: webhookConfigurations,
|
|
11407
|
-
pagination: (0,
|
|
11391
|
+
pagination: (0, import_sdk_js_global_types5.responseToPagination)(rawResponse)
|
|
11408
11392
|
});
|
|
11409
11393
|
}
|
|
11410
11394
|
};
|
|
@@ -11487,10 +11471,10 @@ var GetWebhookLogDetails = class extends import_sdk_js_core7.AbstractApiRequest
|
|
|
11487
11471
|
|
|
11488
11472
|
// src/requests/webhook-logs/GetWebhookLogs.ts
|
|
11489
11473
|
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
11490
|
-
var
|
|
11474
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
11491
11475
|
var getWebhookLogsQuerySchema = webhookLogsQuerySchema;
|
|
11492
11476
|
var getWebhookLogsInputSchema = external_exports.undefined();
|
|
11493
|
-
var getWebhookLogsResponseSchema = (0,
|
|
11477
|
+
var getWebhookLogsResponseSchema = (0, import_sdk_js_global_types6.createPaginatedSchema)(webhookLogListItemSchema);
|
|
11494
11478
|
var GetWebhookLogs = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
11495
11479
|
constructor(options) {
|
|
11496
11480
|
super(void 0, options);
|
|
@@ -11509,17 +11493,17 @@ var GetWebhookLogs = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
|
11509
11493
|
const webhookLogs = external_exports.array(webhookLogSchema).parse(data);
|
|
11510
11494
|
return this.validateOutput({
|
|
11511
11495
|
data: webhookLogs,
|
|
11512
|
-
pagination: (0,
|
|
11496
|
+
pagination: (0, import_sdk_js_global_types6.responseToPagination)(rawResponse)
|
|
11513
11497
|
});
|
|
11514
11498
|
}
|
|
11515
11499
|
};
|
|
11516
11500
|
|
|
11517
11501
|
// src/requests/webhook-logs/GetWebhookLogsFromWebhookConfiguration.ts
|
|
11518
11502
|
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
11519
|
-
var
|
|
11503
|
+
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
11520
11504
|
var getWebhookLogsFromWebhookConfigurationQuerySchema = webhookLogsQuerySchema;
|
|
11521
11505
|
var getWebhookLogsFromWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11522
|
-
var getWebhookLogsFromWebhookConfigurationResponseSchema = (0,
|
|
11506
|
+
var getWebhookLogsFromWebhookConfigurationResponseSchema = (0, import_sdk_js_global_types7.createPaginatedSchema)(webhookLogListItemSchema);
|
|
11523
11507
|
var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
11524
11508
|
constructor(webhookConfigurationId, options) {
|
|
11525
11509
|
super(void 0, options);
|
|
@@ -11539,7 +11523,7 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
|
|
|
11539
11523
|
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11540
11524
|
return this.validateOutput({
|
|
11541
11525
|
data: webhookLogs,
|
|
11542
|
-
pagination: (0,
|
|
11526
|
+
pagination: (0, import_sdk_js_global_types7.responseToPagination)(rawResponse)
|
|
11543
11527
|
});
|
|
11544
11528
|
}
|
|
11545
11529
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
2
|
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
|
+
export { WebhookEntity, WebhookEvent, WebhookLogStatus, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses } from '@deliverart/sdk-js-global-types';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
6
|
|
|
@@ -109,8 +110,8 @@ declare const webhookLogSchema: z.ZodObject<{
|
|
|
109
110
|
delete: "delete";
|
|
110
111
|
}>;
|
|
111
112
|
status: z.ZodEnum<{
|
|
112
|
-
pending: "pending";
|
|
113
113
|
success: "success";
|
|
114
|
+
pending: "pending";
|
|
114
115
|
failed: "failed";
|
|
115
116
|
timeout: "timeout";
|
|
116
117
|
}>;
|
|
@@ -146,8 +147,8 @@ declare const webhookLogListItemSchema: z.ZodObject<{
|
|
|
146
147
|
delete: "delete";
|
|
147
148
|
}>;
|
|
148
149
|
status: z.ZodEnum<{
|
|
149
|
-
pending: "pending";
|
|
150
150
|
success: "success";
|
|
151
|
+
pending: "pending";
|
|
151
152
|
failed: "failed";
|
|
152
153
|
timeout: "timeout";
|
|
153
154
|
}>;
|
|
@@ -176,13 +177,13 @@ declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
|
176
177
|
delete: "delete";
|
|
177
178
|
}>>]>>;
|
|
178
179
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
179
|
-
pending: "pending";
|
|
180
180
|
success: "success";
|
|
181
|
+
pending: "pending";
|
|
181
182
|
failed: "failed";
|
|
182
183
|
timeout: "timeout";
|
|
183
184
|
}>, z.ZodArray<z.ZodEnum<{
|
|
184
|
-
pending: "pending";
|
|
185
185
|
success: "success";
|
|
186
|
+
pending: "pending";
|
|
186
187
|
failed: "failed";
|
|
187
188
|
timeout: "timeout";
|
|
188
189
|
}>>]>>;
|
|
@@ -812,8 +813,8 @@ declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
|
812
813
|
delete: "delete";
|
|
813
814
|
}>;
|
|
814
815
|
status: z.ZodEnum<{
|
|
815
|
-
pending: "pending";
|
|
816
816
|
success: "success";
|
|
817
|
+
pending: "pending";
|
|
817
818
|
failed: "failed";
|
|
818
819
|
timeout: "timeout";
|
|
819
820
|
}>;
|
|
@@ -855,8 +856,8 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
855
856
|
delete: "delete";
|
|
856
857
|
}>;
|
|
857
858
|
status: z.ZodEnum<{
|
|
858
|
-
pending: "pending";
|
|
859
859
|
success: "success";
|
|
860
|
+
pending: "pending";
|
|
860
861
|
failed: "failed";
|
|
861
862
|
timeout: "timeout";
|
|
862
863
|
}>;
|
|
@@ -891,13 +892,13 @@ declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
|
891
892
|
delete: "delete";
|
|
892
893
|
}>>]>>;
|
|
893
894
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
894
|
-
pending: "pending";
|
|
895
895
|
success: "success";
|
|
896
|
+
pending: "pending";
|
|
896
897
|
failed: "failed";
|
|
897
898
|
timeout: "timeout";
|
|
898
899
|
}>, z.ZodArray<z.ZodEnum<{
|
|
899
|
-
pending: "pending";
|
|
900
900
|
success: "success";
|
|
901
|
+
pending: "pending";
|
|
901
902
|
failed: "failed";
|
|
902
903
|
timeout: "timeout";
|
|
903
904
|
}>>]>>;
|
|
@@ -944,8 +945,8 @@ declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
|
944
945
|
delete: "delete";
|
|
945
946
|
}>;
|
|
946
947
|
status: z.ZodEnum<{
|
|
947
|
-
pending: "pending";
|
|
948
948
|
success: "success";
|
|
949
|
+
pending: "pending";
|
|
949
950
|
failed: "failed";
|
|
950
951
|
timeout: "timeout";
|
|
951
952
|
}>;
|
|
@@ -996,8 +997,8 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
996
997
|
delete: "delete";
|
|
997
998
|
}>;
|
|
998
999
|
status: z.ZodEnum<{
|
|
999
|
-
pending: "pending";
|
|
1000
1000
|
success: "success";
|
|
1001
|
+
pending: "pending";
|
|
1001
1002
|
failed: "failed";
|
|
1002
1003
|
timeout: "timeout";
|
|
1003
1004
|
}>;
|
|
@@ -1034,13 +1035,13 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
1034
1035
|
delete: "delete";
|
|
1035
1036
|
}>>]>>;
|
|
1036
1037
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1037
|
-
pending: "pending";
|
|
1038
1038
|
success: "success";
|
|
1039
|
+
pending: "pending";
|
|
1039
1040
|
failed: "failed";
|
|
1040
1041
|
timeout: "timeout";
|
|
1041
1042
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1042
|
-
pending: "pending";
|
|
1043
1043
|
success: "success";
|
|
1044
|
+
pending: "pending";
|
|
1044
1045
|
failed: "failed";
|
|
1045
1046
|
timeout: "timeout";
|
|
1046
1047
|
}>>]>>;
|
|
@@ -1084,13 +1085,13 @@ declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
|
1084
1085
|
delete: "delete";
|
|
1085
1086
|
}>>]>>;
|
|
1086
1087
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1087
|
-
pending: "pending";
|
|
1088
1088
|
success: "success";
|
|
1089
|
+
pending: "pending";
|
|
1089
1090
|
failed: "failed";
|
|
1090
1091
|
timeout: "timeout";
|
|
1091
1092
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1092
|
-
pending: "pending";
|
|
1093
1093
|
success: "success";
|
|
1094
|
+
pending: "pending";
|
|
1094
1095
|
failed: "failed";
|
|
1095
1096
|
timeout: "timeout";
|
|
1096
1097
|
}>>]>>;
|
|
@@ -1137,8 +1138,8 @@ declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<
|
|
|
1137
1138
|
delete: "delete";
|
|
1138
1139
|
}>;
|
|
1139
1140
|
status: z.ZodEnum<{
|
|
1140
|
-
pending: "pending";
|
|
1141
1141
|
success: "success";
|
|
1142
|
+
pending: "pending";
|
|
1142
1143
|
failed: "failed";
|
|
1143
1144
|
timeout: "timeout";
|
|
1144
1145
|
}>;
|
|
@@ -1189,8 +1190,8 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1189
1190
|
delete: "delete";
|
|
1190
1191
|
}>;
|
|
1191
1192
|
status: z.ZodEnum<{
|
|
1192
|
-
pending: "pending";
|
|
1193
1193
|
success: "success";
|
|
1194
|
+
pending: "pending";
|
|
1194
1195
|
failed: "failed";
|
|
1195
1196
|
timeout: "timeout";
|
|
1196
1197
|
}>;
|
|
@@ -1227,13 +1228,13 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1227
1228
|
delete: "delete";
|
|
1228
1229
|
}>>]>>;
|
|
1229
1230
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1230
|
-
pending: "pending";
|
|
1231
1231
|
success: "success";
|
|
1232
|
+
pending: "pending";
|
|
1232
1233
|
failed: "failed";
|
|
1233
1234
|
timeout: "timeout";
|
|
1234
1235
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1235
|
-
pending: "pending";
|
|
1236
1236
|
success: "success";
|
|
1237
|
+
pending: "pending";
|
|
1237
1238
|
failed: "failed";
|
|
1238
1239
|
timeout: "timeout";
|
|
1239
1240
|
}>>]>>;
|
|
@@ -1264,35 +1265,6 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1264
1265
|
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
1265
1266
|
}
|
|
1266
1267
|
|
|
1267
|
-
declare const webhookEvents: readonly ["create", "update", "delete"];
|
|
1268
|
-
declare const webhookEventSchema: z.ZodEnum<{
|
|
1269
|
-
create: "create";
|
|
1270
|
-
update: "update";
|
|
1271
|
-
delete: "delete";
|
|
1272
|
-
}>;
|
|
1273
|
-
type WebhookEvent = z.infer<typeof webhookEventSchema>;
|
|
1274
|
-
declare const webhookLogStatuses: readonly ["pending", "success", "failed", "timeout"];
|
|
1275
|
-
declare const webhookLogStatusSchema: z.ZodEnum<{
|
|
1276
|
-
pending: "pending";
|
|
1277
|
-
success: "success";
|
|
1278
|
-
failed: "failed";
|
|
1279
|
-
timeout: "timeout";
|
|
1280
|
-
}>;
|
|
1281
|
-
type WebhookLogStatus = z.infer<typeof webhookLogStatusSchema>;
|
|
1282
|
-
declare const webhookEntities: readonly ["App\\Entity\\Bundle", "App\\Entity\\Customer", "App\\Entity\\CustomerAddress", "App\\Entity\\CustomerBusinessProfile", "App\\Entity\\Delivery", "App\\Entity\\DeliveryPosition", "App\\Entity\\Integration", "App\\Entity\\IntegrationActivationRequest", "App\\Entity\\Order", "App\\Entity\\PointOfSale"];
|
|
1283
|
-
declare const webhookEntitySchema: z.ZodEnum<{
|
|
1284
|
-
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1285
|
-
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1286
|
-
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1287
|
-
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1288
|
-
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1289
|
-
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1290
|
-
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1291
|
-
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1292
|
-
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1293
|
-
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1294
|
-
}>;
|
|
1295
|
-
type WebhookEntity = z.infer<typeof webhookEntitySchema>;
|
|
1296
1268
|
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>>;
|
|
1297
1269
|
type WebhookConfigurationIri = z.infer<typeof webhookConfigurationIriSchema>;
|
|
1298
1270
|
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>>;
|
|
@@ -1302,4 +1274,4 @@ type WebhookLogIri = z.infer<typeof webhookLogIriSchema>;
|
|
|
1302
1274
|
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>>;
|
|
1303
1275
|
type WebhookLogNullableIri = z.infer<typeof webhookLogNullableIriSchema>;
|
|
1304
1276
|
|
|
1305
|
-
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
|
|
1277
|
+
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 WebhookLog, type WebhookLogIri, type WebhookLogListItem, type WebhookLogNullableIri, 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, webhookLogIriSchema, webhookLogListItemSchema, webhookLogNullableIriSchema, webhookLogSchema, webhookLogsQuerySchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
2
|
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
|
+
export { WebhookEntity, WebhookEvent, WebhookLogStatus, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses } from '@deliverart/sdk-js-global-types';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
6
|
|
|
@@ -109,8 +110,8 @@ declare const webhookLogSchema: z.ZodObject<{
|
|
|
109
110
|
delete: "delete";
|
|
110
111
|
}>;
|
|
111
112
|
status: z.ZodEnum<{
|
|
112
|
-
pending: "pending";
|
|
113
113
|
success: "success";
|
|
114
|
+
pending: "pending";
|
|
114
115
|
failed: "failed";
|
|
115
116
|
timeout: "timeout";
|
|
116
117
|
}>;
|
|
@@ -146,8 +147,8 @@ declare const webhookLogListItemSchema: z.ZodObject<{
|
|
|
146
147
|
delete: "delete";
|
|
147
148
|
}>;
|
|
148
149
|
status: z.ZodEnum<{
|
|
149
|
-
pending: "pending";
|
|
150
150
|
success: "success";
|
|
151
|
+
pending: "pending";
|
|
151
152
|
failed: "failed";
|
|
152
153
|
timeout: "timeout";
|
|
153
154
|
}>;
|
|
@@ -176,13 +177,13 @@ declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
|
176
177
|
delete: "delete";
|
|
177
178
|
}>>]>>;
|
|
178
179
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
179
|
-
pending: "pending";
|
|
180
180
|
success: "success";
|
|
181
|
+
pending: "pending";
|
|
181
182
|
failed: "failed";
|
|
182
183
|
timeout: "timeout";
|
|
183
184
|
}>, z.ZodArray<z.ZodEnum<{
|
|
184
|
-
pending: "pending";
|
|
185
185
|
success: "success";
|
|
186
|
+
pending: "pending";
|
|
186
187
|
failed: "failed";
|
|
187
188
|
timeout: "timeout";
|
|
188
189
|
}>>]>>;
|
|
@@ -812,8 +813,8 @@ declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
|
812
813
|
delete: "delete";
|
|
813
814
|
}>;
|
|
814
815
|
status: z.ZodEnum<{
|
|
815
|
-
pending: "pending";
|
|
816
816
|
success: "success";
|
|
817
|
+
pending: "pending";
|
|
817
818
|
failed: "failed";
|
|
818
819
|
timeout: "timeout";
|
|
819
820
|
}>;
|
|
@@ -855,8 +856,8 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
855
856
|
delete: "delete";
|
|
856
857
|
}>;
|
|
857
858
|
status: z.ZodEnum<{
|
|
858
|
-
pending: "pending";
|
|
859
859
|
success: "success";
|
|
860
|
+
pending: "pending";
|
|
860
861
|
failed: "failed";
|
|
861
862
|
timeout: "timeout";
|
|
862
863
|
}>;
|
|
@@ -891,13 +892,13 @@ declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
|
891
892
|
delete: "delete";
|
|
892
893
|
}>>]>>;
|
|
893
894
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
894
|
-
pending: "pending";
|
|
895
895
|
success: "success";
|
|
896
|
+
pending: "pending";
|
|
896
897
|
failed: "failed";
|
|
897
898
|
timeout: "timeout";
|
|
898
899
|
}>, z.ZodArray<z.ZodEnum<{
|
|
899
|
-
pending: "pending";
|
|
900
900
|
success: "success";
|
|
901
|
+
pending: "pending";
|
|
901
902
|
failed: "failed";
|
|
902
903
|
timeout: "timeout";
|
|
903
904
|
}>>]>>;
|
|
@@ -944,8 +945,8 @@ declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
|
944
945
|
delete: "delete";
|
|
945
946
|
}>;
|
|
946
947
|
status: z.ZodEnum<{
|
|
947
|
-
pending: "pending";
|
|
948
948
|
success: "success";
|
|
949
|
+
pending: "pending";
|
|
949
950
|
failed: "failed";
|
|
950
951
|
timeout: "timeout";
|
|
951
952
|
}>;
|
|
@@ -996,8 +997,8 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
996
997
|
delete: "delete";
|
|
997
998
|
}>;
|
|
998
999
|
status: z.ZodEnum<{
|
|
999
|
-
pending: "pending";
|
|
1000
1000
|
success: "success";
|
|
1001
|
+
pending: "pending";
|
|
1001
1002
|
failed: "failed";
|
|
1002
1003
|
timeout: "timeout";
|
|
1003
1004
|
}>;
|
|
@@ -1034,13 +1035,13 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
1034
1035
|
delete: "delete";
|
|
1035
1036
|
}>>]>>;
|
|
1036
1037
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1037
|
-
pending: "pending";
|
|
1038
1038
|
success: "success";
|
|
1039
|
+
pending: "pending";
|
|
1039
1040
|
failed: "failed";
|
|
1040
1041
|
timeout: "timeout";
|
|
1041
1042
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1042
|
-
pending: "pending";
|
|
1043
1043
|
success: "success";
|
|
1044
|
+
pending: "pending";
|
|
1044
1045
|
failed: "failed";
|
|
1045
1046
|
timeout: "timeout";
|
|
1046
1047
|
}>>]>>;
|
|
@@ -1084,13 +1085,13 @@ declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
|
1084
1085
|
delete: "delete";
|
|
1085
1086
|
}>>]>>;
|
|
1086
1087
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1087
|
-
pending: "pending";
|
|
1088
1088
|
success: "success";
|
|
1089
|
+
pending: "pending";
|
|
1089
1090
|
failed: "failed";
|
|
1090
1091
|
timeout: "timeout";
|
|
1091
1092
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1092
|
-
pending: "pending";
|
|
1093
1093
|
success: "success";
|
|
1094
|
+
pending: "pending";
|
|
1094
1095
|
failed: "failed";
|
|
1095
1096
|
timeout: "timeout";
|
|
1096
1097
|
}>>]>>;
|
|
@@ -1137,8 +1138,8 @@ declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<
|
|
|
1137
1138
|
delete: "delete";
|
|
1138
1139
|
}>;
|
|
1139
1140
|
status: z.ZodEnum<{
|
|
1140
|
-
pending: "pending";
|
|
1141
1141
|
success: "success";
|
|
1142
|
+
pending: "pending";
|
|
1142
1143
|
failed: "failed";
|
|
1143
1144
|
timeout: "timeout";
|
|
1144
1145
|
}>;
|
|
@@ -1189,8 +1190,8 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1189
1190
|
delete: "delete";
|
|
1190
1191
|
}>;
|
|
1191
1192
|
status: z.ZodEnum<{
|
|
1192
|
-
pending: "pending";
|
|
1193
1193
|
success: "success";
|
|
1194
|
+
pending: "pending";
|
|
1194
1195
|
failed: "failed";
|
|
1195
1196
|
timeout: "timeout";
|
|
1196
1197
|
}>;
|
|
@@ -1227,13 +1228,13 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1227
1228
|
delete: "delete";
|
|
1228
1229
|
}>>]>>;
|
|
1229
1230
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1230
|
-
pending: "pending";
|
|
1231
1231
|
success: "success";
|
|
1232
|
+
pending: "pending";
|
|
1232
1233
|
failed: "failed";
|
|
1233
1234
|
timeout: "timeout";
|
|
1234
1235
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1235
|
-
pending: "pending";
|
|
1236
1236
|
success: "success";
|
|
1237
|
+
pending: "pending";
|
|
1237
1238
|
failed: "failed";
|
|
1238
1239
|
timeout: "timeout";
|
|
1239
1240
|
}>>]>>;
|
|
@@ -1264,35 +1265,6 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1264
1265
|
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
1265
1266
|
}
|
|
1266
1267
|
|
|
1267
|
-
declare const webhookEvents: readonly ["create", "update", "delete"];
|
|
1268
|
-
declare const webhookEventSchema: z.ZodEnum<{
|
|
1269
|
-
create: "create";
|
|
1270
|
-
update: "update";
|
|
1271
|
-
delete: "delete";
|
|
1272
|
-
}>;
|
|
1273
|
-
type WebhookEvent = z.infer<typeof webhookEventSchema>;
|
|
1274
|
-
declare const webhookLogStatuses: readonly ["pending", "success", "failed", "timeout"];
|
|
1275
|
-
declare const webhookLogStatusSchema: z.ZodEnum<{
|
|
1276
|
-
pending: "pending";
|
|
1277
|
-
success: "success";
|
|
1278
|
-
failed: "failed";
|
|
1279
|
-
timeout: "timeout";
|
|
1280
|
-
}>;
|
|
1281
|
-
type WebhookLogStatus = z.infer<typeof webhookLogStatusSchema>;
|
|
1282
|
-
declare const webhookEntities: readonly ["App\\Entity\\Bundle", "App\\Entity\\Customer", "App\\Entity\\CustomerAddress", "App\\Entity\\CustomerBusinessProfile", "App\\Entity\\Delivery", "App\\Entity\\DeliveryPosition", "App\\Entity\\Integration", "App\\Entity\\IntegrationActivationRequest", "App\\Entity\\Order", "App\\Entity\\PointOfSale"];
|
|
1283
|
-
declare const webhookEntitySchema: z.ZodEnum<{
|
|
1284
|
-
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1285
|
-
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1286
|
-
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1287
|
-
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1288
|
-
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1289
|
-
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1290
|
-
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1291
|
-
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1292
|
-
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1293
|
-
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1294
|
-
}>;
|
|
1295
|
-
type WebhookEntity = z.infer<typeof webhookEntitySchema>;
|
|
1296
1268
|
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>>;
|
|
1297
1269
|
type WebhookConfigurationIri = z.infer<typeof webhookConfigurationIriSchema>;
|
|
1298
1270
|
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>>;
|
|
@@ -1302,4 +1274,4 @@ type WebhookLogIri = z.infer<typeof webhookLogIriSchema>;
|
|
|
1302
1274
|
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>>;
|
|
1303
1275
|
type WebhookLogNullableIri = z.infer<typeof webhookLogNullableIriSchema>;
|
|
1304
1276
|
|
|
1305
|
-
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
|
|
1277
|
+
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 WebhookLog, type WebhookLogIri, type WebhookLogListItem, type WebhookLogNullableIri, 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, webhookLogIriSchema, webhookLogListItemSchema, webhookLogNullableIriSchema, webhookLogSchema, webhookLogsQuerySchema };
|
package/dist/index.js
CHANGED
|
@@ -11158,23 +11158,14 @@ config(en_default());
|
|
|
11158
11158
|
|
|
11159
11159
|
// src/types.ts
|
|
11160
11160
|
import { iriNullableSchema, iriSchema } from "@deliverart/sdk-js-global-types";
|
|
11161
|
-
|
|
11162
|
-
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
"App\\Entity\\CustomerBusinessProfile",
|
|
11170
|
-
"App\\Entity\\Delivery",
|
|
11171
|
-
"App\\Entity\\DeliveryPosition",
|
|
11172
|
-
"App\\Entity\\Integration",
|
|
11173
|
-
"App\\Entity\\IntegrationActivationRequest",
|
|
11174
|
-
"App\\Entity\\Order",
|
|
11175
|
-
"App\\Entity\\PointOfSale"
|
|
11176
|
-
];
|
|
11177
|
-
var webhookEntitySchema = external_exports.enum(webhookEntities);
|
|
11161
|
+
import {
|
|
11162
|
+
webhookEntities,
|
|
11163
|
+
webhookEntitySchema,
|
|
11164
|
+
webhookEvents,
|
|
11165
|
+
webhookEventSchema,
|
|
11166
|
+
webhookLogStatuses,
|
|
11167
|
+
webhookLogStatusSchema
|
|
11168
|
+
} from "@deliverart/sdk-js-global-types";
|
|
11178
11169
|
var webhookConfigurationIriSchema = iriSchema("/webhooks/configurations/:id");
|
|
11179
11170
|
var webhookConfigurationNullableIriSchema = iriNullableSchema(
|
|
11180
11171
|
"/webhooks/configurations/:id"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-webhook",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Webhook Management",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.5.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@deliverart/sdk-js-core": "2.4.21",
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.5.0",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.5.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|