@deliverart/sdk-js-webhook 2.3.8 → 2.4.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 +11 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11336,8 +11336,9 @@ var CreateWebhookConfiguration = class extends import_sdk_js_core.AbstractApiReq
|
|
|
11336
11336
|
|
|
11337
11337
|
// src/requests/webhook-configurations/DeleteWebhookConfiguration.ts
|
|
11338
11338
|
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
11339
|
+
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
11339
11340
|
var deleteWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11340
|
-
var deleteWebhookConfigurationResponseSchema =
|
|
11341
|
+
var deleteWebhookConfigurationResponseSchema = import_sdk_js_global_types3.emptyResponseSchema;
|
|
11341
11342
|
var DeleteWebhookConfiguration = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
11342
11343
|
constructor(webhookConfigurationId) {
|
|
11343
11344
|
super(void 0);
|
|
@@ -11378,10 +11379,10 @@ var GetWebhookConfigurationDetails = class extends import_sdk_js_core3.AbstractA
|
|
|
11378
11379
|
|
|
11379
11380
|
// src/requests/webhook-configurations/GetWebhookConfigurations.ts
|
|
11380
11381
|
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
11381
|
-
var
|
|
11382
|
+
var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
|
|
11382
11383
|
var getWebhookConfigurationsQuerySchema = webhookConfigurationsQuerySchema;
|
|
11383
11384
|
var getWebhookConfigurationsInputSchema = external_exports.undefined();
|
|
11384
|
-
var getWebhookConfigurationsResponseSchema = (0,
|
|
11385
|
+
var getWebhookConfigurationsResponseSchema = (0, import_sdk_js_global_types4.createPaginatedSchema)(
|
|
11385
11386
|
webhookConfigurationListItemSchema
|
|
11386
11387
|
);
|
|
11387
11388
|
var GetWebhookConfigurations = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
@@ -11402,7 +11403,7 @@ var GetWebhookConfigurations = class extends import_sdk_js_core4.AbstractApiRequ
|
|
|
11402
11403
|
const webhookConfigurations = external_exports.array(webhookConfigurationSchema).parse(data);
|
|
11403
11404
|
return this.validateOutput({
|
|
11404
11405
|
data: webhookConfigurations,
|
|
11405
|
-
pagination: (0,
|
|
11406
|
+
pagination: (0, import_sdk_js_global_types4.responseToPagination)(rawResponse)
|
|
11406
11407
|
});
|
|
11407
11408
|
}
|
|
11408
11409
|
};
|
|
@@ -11485,10 +11486,10 @@ var GetWebhookLogDetails = class extends import_sdk_js_core7.AbstractApiRequest
|
|
|
11485
11486
|
|
|
11486
11487
|
// src/requests/webhook-logs/GetWebhookLogs.ts
|
|
11487
11488
|
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
11488
|
-
var
|
|
11489
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
11489
11490
|
var getWebhookLogsQuerySchema = webhookLogsQuerySchema;
|
|
11490
11491
|
var getWebhookLogsInputSchema = external_exports.undefined();
|
|
11491
|
-
var getWebhookLogsResponseSchema = (0,
|
|
11492
|
+
var getWebhookLogsResponseSchema = (0, import_sdk_js_global_types5.createPaginatedSchema)(webhookLogListItemSchema);
|
|
11492
11493
|
var GetWebhookLogs = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
11493
11494
|
constructor(options) {
|
|
11494
11495
|
super(void 0, options);
|
|
@@ -11507,17 +11508,17 @@ var GetWebhookLogs = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
|
11507
11508
|
const webhookLogs = external_exports.array(webhookLogSchema).parse(data);
|
|
11508
11509
|
return this.validateOutput({
|
|
11509
11510
|
data: webhookLogs,
|
|
11510
|
-
pagination: (0,
|
|
11511
|
+
pagination: (0, import_sdk_js_global_types5.responseToPagination)(rawResponse)
|
|
11511
11512
|
});
|
|
11512
11513
|
}
|
|
11513
11514
|
};
|
|
11514
11515
|
|
|
11515
11516
|
// src/requests/webhook-logs/GetWebhookLogsFromWebhookConfiguration.ts
|
|
11516
11517
|
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
11517
|
-
var
|
|
11518
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
11518
11519
|
var getWebhookLogsFromWebhookConfigurationQuerySchema = webhookLogsQuerySchema;
|
|
11519
11520
|
var getWebhookLogsFromWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11520
|
-
var getWebhookLogsFromWebhookConfigurationResponseSchema = (0,
|
|
11521
|
+
var getWebhookLogsFromWebhookConfigurationResponseSchema = (0, import_sdk_js_global_types6.createPaginatedSchema)(webhookLogListItemSchema);
|
|
11521
11522
|
var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
11522
11523
|
constructor(webhookConfigurationId, options) {
|
|
11523
11524
|
super(void 0, options);
|
|
@@ -11537,7 +11538,7 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
|
|
|
11537
11538
|
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11538
11539
|
return this.validateOutput({
|
|
11539
11540
|
data: webhookLogs,
|
|
11540
|
-
pagination: (0,
|
|
11541
|
+
pagination: (0, import_sdk_js_global_types6.responseToPagination)(rawResponse)
|
|
11541
11542
|
});
|
|
11542
11543
|
}
|
|
11543
11544
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -322,13 +322,13 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
declare const deleteWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
325
|
-
declare const deleteWebhookConfigurationResponseSchema: z.ZodUndefined
|
|
325
|
+
declare const deleteWebhookConfigurationResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
326
326
|
declare class DeleteWebhookConfiguration extends AbstractApiRequest<typeof deleteWebhookConfigurationInputSchema, typeof deleteWebhookConfigurationResponseSchema> {
|
|
327
327
|
readonly method = "DELETE";
|
|
328
328
|
readonly contentType = "application/json";
|
|
329
329
|
readonly accept = "application/json";
|
|
330
330
|
readonly inputSchema: z.ZodUndefined;
|
|
331
|
-
readonly outputSchema: z.ZodUndefined
|
|
331
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
332
332
|
readonly querySchema: undefined;
|
|
333
333
|
readonly headersSchema: undefined;
|
|
334
334
|
private readonly webhookConfigurationId;
|
package/dist/index.d.ts
CHANGED
|
@@ -322,13 +322,13 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
declare const deleteWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
325
|
-
declare const deleteWebhookConfigurationResponseSchema: z.ZodUndefined
|
|
325
|
+
declare const deleteWebhookConfigurationResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
326
326
|
declare class DeleteWebhookConfiguration extends AbstractApiRequest<typeof deleteWebhookConfigurationInputSchema, typeof deleteWebhookConfigurationResponseSchema> {
|
|
327
327
|
readonly method = "DELETE";
|
|
328
328
|
readonly contentType = "application/json";
|
|
329
329
|
readonly accept = "application/json";
|
|
330
330
|
readonly inputSchema: z.ZodUndefined;
|
|
331
|
-
readonly outputSchema: z.ZodUndefined
|
|
331
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
332
332
|
readonly querySchema: undefined;
|
|
333
333
|
readonly headersSchema: undefined;
|
|
334
334
|
private readonly webhookConfigurationId;
|
package/dist/index.js
CHANGED
|
@@ -11274,8 +11274,9 @@ var CreateWebhookConfiguration = class extends AbstractApiRequest {
|
|
|
11274
11274
|
|
|
11275
11275
|
// src/requests/webhook-configurations/DeleteWebhookConfiguration.ts
|
|
11276
11276
|
import { AbstractApiRequest as AbstractApiRequest2 } from "@deliverart/sdk-js-core";
|
|
11277
|
+
import { emptyResponseSchema } from "@deliverart/sdk-js-global-types";
|
|
11277
11278
|
var deleteWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11278
|
-
var deleteWebhookConfigurationResponseSchema =
|
|
11279
|
+
var deleteWebhookConfigurationResponseSchema = emptyResponseSchema;
|
|
11279
11280
|
var DeleteWebhookConfiguration = class extends AbstractApiRequest2 {
|
|
11280
11281
|
constructor(webhookConfigurationId) {
|
|
11281
11282
|
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.0",
|
|
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-global-types": "2.3.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.4.0",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.3.9",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.4.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|