@deliverart/sdk-js-webhook 2.2.4 → 2.2.5

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 CHANGED
@@ -11516,7 +11516,7 @@ var getWebhookLogsFromWebhookConfigurationQuerySchema = webhookLogsQuerySchema;
11516
11516
  var getWebhookLogsFromWebhookConfigurationInputSchema = external_exports.undefined();
11517
11517
  var getWebhookLogsFromWebhookConfigurationResponseSchema = (0, import_sdk_js_global_types5.createPaginatedSchema)(webhookLogListItemSchema);
11518
11518
  var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.AbstractApiRequest {
11519
- constructor(pointOfSaleId, options) {
11519
+ constructor(webhookConfigurationId, options) {
11520
11520
  super(void 0, options);
11521
11521
  this.method = "GET";
11522
11522
  this.contentType = "application/json";
@@ -11525,10 +11525,10 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
11525
11525
  this.outputSchema = getWebhookLogsFromWebhookConfigurationResponseSchema;
11526
11526
  this.querySchema = getWebhookLogsFromWebhookConfigurationQuerySchema;
11527
11527
  this.headersSchema = void 0;
11528
- this.pointOfSaleId = pointOfSaleId;
11528
+ this.webhookConfigurationId = webhookConfigurationId;
11529
11529
  }
11530
11530
  getPath() {
11531
- return `/point_of_sales/${this.pointOfSaleId}/webhooks/logs`;
11531
+ return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
11532
11532
  }
11533
11533
  parseResponse(data, rawResponse) {
11534
11534
  const webhookLogs = external_exports.array(webhookLogSchema).parse(data);
package/dist/index.d.cts CHANGED
@@ -1108,8 +1108,8 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
1108
1108
  'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1109
1109
  }, z.core.$strip>;
1110
1110
  readonly headersSchema: undefined;
1111
- private readonly pointOfSaleId;
1112
- constructor(pointOfSaleId: string, options?: {
1111
+ private readonly webhookConfigurationId;
1112
+ constructor(webhookConfigurationId: string, options?: {
1113
1113
  query?: GetWebhookLogsFromWebhookConfigurationQueryParams;
1114
1114
  });
1115
1115
  getPath(): string;
package/dist/index.d.ts CHANGED
@@ -1108,8 +1108,8 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
1108
1108
  'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1109
1109
  }, z.core.$strip>;
1110
1110
  readonly headersSchema: undefined;
1111
- private readonly pointOfSaleId;
1112
- constructor(pointOfSaleId: string, options?: {
1111
+ private readonly webhookConfigurationId;
1112
+ constructor(webhookConfigurationId: string, options?: {
1113
1113
  query?: GetWebhookLogsFromWebhookConfigurationQueryParams;
1114
1114
  });
1115
1115
  getPath(): string;
package/dist/index.js CHANGED
@@ -11463,7 +11463,7 @@ var getWebhookLogsFromWebhookConfigurationQuerySchema = webhookLogsQuerySchema;
11463
11463
  var getWebhookLogsFromWebhookConfigurationInputSchema = external_exports.undefined();
11464
11464
  var getWebhookLogsFromWebhookConfigurationResponseSchema = createPaginatedSchema3(webhookLogListItemSchema);
11465
11465
  var GetWebhookLogsFromWebhookConfiguration = class extends AbstractApiRequest9 {
11466
- constructor(pointOfSaleId, options) {
11466
+ constructor(webhookConfigurationId, options) {
11467
11467
  super(void 0, options);
11468
11468
  this.method = "GET";
11469
11469
  this.contentType = "application/json";
@@ -11472,10 +11472,10 @@ var GetWebhookLogsFromWebhookConfiguration = class extends AbstractApiRequest9 {
11472
11472
  this.outputSchema = getWebhookLogsFromWebhookConfigurationResponseSchema;
11473
11473
  this.querySchema = getWebhookLogsFromWebhookConfigurationQuerySchema;
11474
11474
  this.headersSchema = void 0;
11475
- this.pointOfSaleId = pointOfSaleId;
11475
+ this.webhookConfigurationId = webhookConfigurationId;
11476
11476
  }
11477
11477
  getPath() {
11478
- return `/point_of_sales/${this.pointOfSaleId}/webhooks/logs`;
11478
+ return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
11479
11479
  }
11480
11480
  parseResponse(data, rawResponse) {
11481
11481
  const webhookLogs = external_exports.array(webhookLogSchema).parse(data);
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.2.4",
4
+ "version": "2.2.5",
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.1.57",
22
- "@deliverart/sdk-js-global-types": "2.1.57",
23
- "@deliverart/sdk-js-point-of-sale": "2.1.57"
22
+ "@deliverart/sdk-js-point-of-sale": "2.1.57",
23
+ "@deliverart/sdk-js-global-types": "2.1.57"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"