@deliverart/sdk-js-webhook 2.2.2 → 2.2.4

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.js CHANGED
@@ -11157,10 +11157,23 @@ config(en_default());
11157
11157
 
11158
11158
  // src/types.ts
11159
11159
  import { iriNullableSchema, iriSchema } from "@deliverart/sdk-js-global-types";
11160
- var webhookEvents = ["created", "updated", "deleted"];
11160
+ var webhookEvents = ["create", "update", "delete"];
11161
11161
  var webhookEventSchema = external_exports.enum(webhookEvents);
11162
11162
  var webhookLogStatuses = ["pending", "success", "failed", "timeout"];
11163
11163
  var webhookLogStatusSchema = external_exports.enum(webhookLogStatuses);
11164
+ var webhookEntities = [
11165
+ "App\\Entity\\Bundle",
11166
+ "App\\Entity\\Customer",
11167
+ "App\\Entity\\CustomerAddress",
11168
+ "App\\Entity\\CustomerBusinessProfile",
11169
+ "App\\Entity\\Delivery",
11170
+ "App\\Entity\\DeliveryPosition",
11171
+ "App\\Entity\\Integration",
11172
+ "App\\Entity\\IntegrationActivationRequest",
11173
+ "App\\Entity\\Order",
11174
+ "App\\Entity\\PointOfSale"
11175
+ ];
11176
+ var webhookEntitySchema = external_exports.enum(webhookEntities);
11164
11177
  var webhookConfigurationIriSchema = iriSchema("/webhooks/configurations/:id");
11165
11178
  var webhookConfigurationNullableIriSchema = iriNullableSchema(
11166
11179
  "/webhooks/configurations/:id"
@@ -11172,7 +11185,7 @@ var webhookLogNullableIriSchema = iriNullableSchema("/webhooks/logs/:id");
11172
11185
  var webhookConfigurationSchema = external_exports.object({
11173
11186
  id: external_exports.string(),
11174
11187
  pointOfSale: pointOfSaleIriSchema,
11175
- entityClass: external_exports.string().min(1, "entityClass.required"),
11188
+ entityClass: webhookEntitySchema,
11176
11189
  events: external_exports.array(webhookEventSchema).min(1, "events.required"),
11177
11190
  callbackUrl: external_exports.url("callbackUrl.invalid").min(1, "callbackUrl.required"),
11178
11191
  secretKey: external_exports.string().min(1, "secretKey.required"),
@@ -11509,6 +11522,8 @@ export {
11509
11522
  webhookConfigurationNullableIriSchema,
11510
11523
  webhookConfigurationSchema,
11511
11524
  webhookConfigurationsQuerySchema,
11525
+ webhookEntities,
11526
+ webhookEntitySchema,
11512
11527
  webhookEventSchema,
11513
11528
  webhookEvents,
11514
11529
  webhookLogIriSchema,
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.2",
4
+ "version": "2.2.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",