@deliverart/sdk-js-webhook 2.3.9 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -11
- package/dist/index.d.cts +2 -7
- package/dist/index.d.ts +2 -7
- package/dist/index.js +4 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11257,7 +11257,8 @@ var webhookConfigurationSchema = external_exports.object({
|
|
|
11257
11257
|
updatedAt: import_sdk_js_global_types2.datetimeSchema
|
|
11258
11258
|
});
|
|
11259
11259
|
var webhookConfigurationListItemSchema = webhookConfigurationSchema.omit({
|
|
11260
|
-
pointOfSale: true
|
|
11260
|
+
pointOfSale: true,
|
|
11261
|
+
secretKey: true
|
|
11261
11262
|
});
|
|
11262
11263
|
var webhookConfigurationsQuerySchema = external_exports.object({
|
|
11263
11264
|
entityClass: external_exports.string().optional(),
|
|
@@ -11336,8 +11337,9 @@ var CreateWebhookConfiguration = class extends import_sdk_js_core.AbstractApiReq
|
|
|
11336
11337
|
|
|
11337
11338
|
// src/requests/webhook-configurations/DeleteWebhookConfiguration.ts
|
|
11338
11339
|
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
11340
|
+
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
11339
11341
|
var deleteWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11340
|
-
var deleteWebhookConfigurationResponseSchema =
|
|
11342
|
+
var deleteWebhookConfigurationResponseSchema = import_sdk_js_global_types3.emptyResponseSchema;
|
|
11341
11343
|
var DeleteWebhookConfiguration = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
11342
11344
|
constructor(webhookConfigurationId) {
|
|
11343
11345
|
super(void 0);
|
|
@@ -11378,10 +11380,10 @@ var GetWebhookConfigurationDetails = class extends import_sdk_js_core3.AbstractA
|
|
|
11378
11380
|
|
|
11379
11381
|
// src/requests/webhook-configurations/GetWebhookConfigurations.ts
|
|
11380
11382
|
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
11381
|
-
var
|
|
11383
|
+
var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
|
|
11382
11384
|
var getWebhookConfigurationsQuerySchema = webhookConfigurationsQuerySchema;
|
|
11383
11385
|
var getWebhookConfigurationsInputSchema = external_exports.undefined();
|
|
11384
|
-
var getWebhookConfigurationsResponseSchema = (0,
|
|
11386
|
+
var getWebhookConfigurationsResponseSchema = (0, import_sdk_js_global_types4.createPaginatedSchema)(
|
|
11385
11387
|
webhookConfigurationListItemSchema
|
|
11386
11388
|
);
|
|
11387
11389
|
var GetWebhookConfigurations = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
@@ -11402,7 +11404,7 @@ var GetWebhookConfigurations = class extends import_sdk_js_core4.AbstractApiRequ
|
|
|
11402
11404
|
const webhookConfigurations = external_exports.array(webhookConfigurationSchema).parse(data);
|
|
11403
11405
|
return this.validateOutput({
|
|
11404
11406
|
data: webhookConfigurations,
|
|
11405
|
-
pagination: (0,
|
|
11407
|
+
pagination: (0, import_sdk_js_global_types4.responseToPagination)(rawResponse)
|
|
11406
11408
|
});
|
|
11407
11409
|
}
|
|
11408
11410
|
};
|
|
@@ -11485,10 +11487,10 @@ var GetWebhookLogDetails = class extends import_sdk_js_core7.AbstractApiRequest
|
|
|
11485
11487
|
|
|
11486
11488
|
// src/requests/webhook-logs/GetWebhookLogs.ts
|
|
11487
11489
|
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
11488
|
-
var
|
|
11490
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
11489
11491
|
var getWebhookLogsQuerySchema = webhookLogsQuerySchema;
|
|
11490
11492
|
var getWebhookLogsInputSchema = external_exports.undefined();
|
|
11491
|
-
var getWebhookLogsResponseSchema = (0,
|
|
11493
|
+
var getWebhookLogsResponseSchema = (0, import_sdk_js_global_types5.createPaginatedSchema)(webhookLogListItemSchema);
|
|
11492
11494
|
var GetWebhookLogs = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
11493
11495
|
constructor(options) {
|
|
11494
11496
|
super(void 0, options);
|
|
@@ -11507,17 +11509,17 @@ var GetWebhookLogs = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
|
11507
11509
|
const webhookLogs = external_exports.array(webhookLogSchema).parse(data);
|
|
11508
11510
|
return this.validateOutput({
|
|
11509
11511
|
data: webhookLogs,
|
|
11510
|
-
pagination: (0,
|
|
11512
|
+
pagination: (0, import_sdk_js_global_types5.responseToPagination)(rawResponse)
|
|
11511
11513
|
});
|
|
11512
11514
|
}
|
|
11513
11515
|
};
|
|
11514
11516
|
|
|
11515
11517
|
// src/requests/webhook-logs/GetWebhookLogsFromWebhookConfiguration.ts
|
|
11516
11518
|
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
11517
|
-
var
|
|
11519
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
11518
11520
|
var getWebhookLogsFromWebhookConfigurationQuerySchema = webhookLogsQuerySchema;
|
|
11519
11521
|
var getWebhookLogsFromWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11520
|
-
var getWebhookLogsFromWebhookConfigurationResponseSchema = (0,
|
|
11522
|
+
var getWebhookLogsFromWebhookConfigurationResponseSchema = (0, import_sdk_js_global_types6.createPaginatedSchema)(webhookLogListItemSchema);
|
|
11521
11523
|
var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
11522
11524
|
constructor(webhookConfigurationId, options) {
|
|
11523
11525
|
super(void 0, options);
|
|
@@ -11537,7 +11539,7 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
|
|
|
11537
11539
|
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11538
11540
|
return this.validateOutput({
|
|
11539
11541
|
data: webhookLogs,
|
|
11540
|
-
pagination: (0,
|
|
11542
|
+
pagination: (0, import_sdk_js_global_types6.responseToPagination)(rawResponse)
|
|
11541
11543
|
});
|
|
11542
11544
|
}
|
|
11543
11545
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -53,7 +53,6 @@ declare const webhookConfigurationListItemSchema: z.ZodObject<{
|
|
|
53
53
|
delete: "delete";
|
|
54
54
|
}>>;
|
|
55
55
|
callbackUrl: z.ZodURL;
|
|
56
|
-
secretKey: z.ZodString;
|
|
57
56
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
58
57
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
59
58
|
}, z.core.$strip>;
|
|
@@ -322,13 +321,13 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
|
|
|
322
321
|
}
|
|
323
322
|
|
|
324
323
|
declare const deleteWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
325
|
-
declare const deleteWebhookConfigurationResponseSchema: z.ZodUndefined
|
|
324
|
+
declare const deleteWebhookConfigurationResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
326
325
|
declare class DeleteWebhookConfiguration extends AbstractApiRequest<typeof deleteWebhookConfigurationInputSchema, typeof deleteWebhookConfigurationResponseSchema> {
|
|
327
326
|
readonly method = "DELETE";
|
|
328
327
|
readonly contentType = "application/json";
|
|
329
328
|
readonly accept = "application/json";
|
|
330
329
|
readonly inputSchema: z.ZodUndefined;
|
|
331
|
-
readonly outputSchema: z.ZodUndefined
|
|
330
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
332
331
|
readonly querySchema: undefined;
|
|
333
332
|
readonly headersSchema: undefined;
|
|
334
333
|
private readonly webhookConfigurationId;
|
|
@@ -460,7 +459,6 @@ declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
|
460
459
|
delete: "delete";
|
|
461
460
|
}>>;
|
|
462
461
|
callbackUrl: z.ZodURL;
|
|
463
|
-
secretKey: z.ZodString;
|
|
464
462
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
465
463
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
466
464
|
}, z.core.$strip>>;
|
|
@@ -502,7 +500,6 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
502
500
|
delete: "delete";
|
|
503
501
|
}>>;
|
|
504
502
|
callbackUrl: z.ZodURL;
|
|
505
|
-
secretKey: z.ZodString;
|
|
506
503
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
507
504
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
508
505
|
}, z.core.$strip>>;
|
|
@@ -606,7 +603,6 @@ declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<
|
|
|
606
603
|
delete: "delete";
|
|
607
604
|
}>>;
|
|
608
605
|
callbackUrl: z.ZodURL;
|
|
609
|
-
secretKey: z.ZodString;
|
|
610
606
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
611
607
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
612
608
|
}, z.core.$strip>>;
|
|
@@ -638,7 +634,6 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
638
634
|
delete: "delete";
|
|
639
635
|
}>>;
|
|
640
636
|
callbackUrl: z.ZodURL;
|
|
641
|
-
secretKey: z.ZodString;
|
|
642
637
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
643
638
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
644
639
|
}, z.core.$strip>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -53,7 +53,6 @@ declare const webhookConfigurationListItemSchema: z.ZodObject<{
|
|
|
53
53
|
delete: "delete";
|
|
54
54
|
}>>;
|
|
55
55
|
callbackUrl: z.ZodURL;
|
|
56
|
-
secretKey: z.ZodString;
|
|
57
56
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
58
57
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
59
58
|
}, z.core.$strip>;
|
|
@@ -322,13 +321,13 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
|
|
|
322
321
|
}
|
|
323
322
|
|
|
324
323
|
declare const deleteWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
325
|
-
declare const deleteWebhookConfigurationResponseSchema: z.ZodUndefined
|
|
324
|
+
declare const deleteWebhookConfigurationResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
326
325
|
declare class DeleteWebhookConfiguration extends AbstractApiRequest<typeof deleteWebhookConfigurationInputSchema, typeof deleteWebhookConfigurationResponseSchema> {
|
|
327
326
|
readonly method = "DELETE";
|
|
328
327
|
readonly contentType = "application/json";
|
|
329
328
|
readonly accept = "application/json";
|
|
330
329
|
readonly inputSchema: z.ZodUndefined;
|
|
331
|
-
readonly outputSchema: z.ZodUndefined
|
|
330
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
332
331
|
readonly querySchema: undefined;
|
|
333
332
|
readonly headersSchema: undefined;
|
|
334
333
|
private readonly webhookConfigurationId;
|
|
@@ -460,7 +459,6 @@ declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
|
460
459
|
delete: "delete";
|
|
461
460
|
}>>;
|
|
462
461
|
callbackUrl: z.ZodURL;
|
|
463
|
-
secretKey: z.ZodString;
|
|
464
462
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
465
463
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
466
464
|
}, z.core.$strip>>;
|
|
@@ -502,7 +500,6 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
502
500
|
delete: "delete";
|
|
503
501
|
}>>;
|
|
504
502
|
callbackUrl: z.ZodURL;
|
|
505
|
-
secretKey: z.ZodString;
|
|
506
503
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
507
504
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
508
505
|
}, z.core.$strip>>;
|
|
@@ -606,7 +603,6 @@ declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<
|
|
|
606
603
|
delete: "delete";
|
|
607
604
|
}>>;
|
|
608
605
|
callbackUrl: z.ZodURL;
|
|
609
|
-
secretKey: z.ZodString;
|
|
610
606
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
611
607
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
612
608
|
}, z.core.$strip>>;
|
|
@@ -638,7 +634,6 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
638
634
|
delete: "delete";
|
|
639
635
|
}>>;
|
|
640
636
|
callbackUrl: z.ZodURL;
|
|
641
|
-
secretKey: z.ZodString;
|
|
642
637
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
643
638
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
644
639
|
}, z.core.$strip>>;
|
package/dist/index.js
CHANGED
|
@@ -11195,7 +11195,8 @@ var webhookConfigurationSchema = external_exports.object({
|
|
|
11195
11195
|
updatedAt: datetimeSchema
|
|
11196
11196
|
});
|
|
11197
11197
|
var webhookConfigurationListItemSchema = webhookConfigurationSchema.omit({
|
|
11198
|
-
pointOfSale: true
|
|
11198
|
+
pointOfSale: true,
|
|
11199
|
+
secretKey: true
|
|
11199
11200
|
});
|
|
11200
11201
|
var webhookConfigurationsQuerySchema = external_exports.object({
|
|
11201
11202
|
entityClass: external_exports.string().optional(),
|
|
@@ -11274,8 +11275,9 @@ var CreateWebhookConfiguration = class extends AbstractApiRequest {
|
|
|
11274
11275
|
|
|
11275
11276
|
// src/requests/webhook-configurations/DeleteWebhookConfiguration.ts
|
|
11276
11277
|
import { AbstractApiRequest as AbstractApiRequest2 } from "@deliverart/sdk-js-core";
|
|
11278
|
+
import { emptyResponseSchema } from "@deliverart/sdk-js-global-types";
|
|
11277
11279
|
var deleteWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11278
|
-
var deleteWebhookConfigurationResponseSchema =
|
|
11280
|
+
var deleteWebhookConfigurationResponseSchema = emptyResponseSchema;
|
|
11279
11281
|
var DeleteWebhookConfiguration = class extends AbstractApiRequest2 {
|
|
11280
11282
|
constructor(webhookConfigurationId) {
|
|
11281
11283
|
super(void 0);
|
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.4.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.4.1",
|
|
22
|
+
"@deliverart/sdk-js-point-of-sale": "2.4.1",
|
|
23
|
+
"@deliverart/sdk-js-global-types": "2.3.10"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|