@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.cjs +19 -2
- package/dist/index.d.cts +348 -158
- package/dist/index.d.ts +348 -158
- package/dist/index.js +17 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -56,6 +56,8 @@ __export(index_exports, {
|
|
|
56
56
|
webhookConfigurationNullableIriSchema: () => webhookConfigurationNullableIriSchema,
|
|
57
57
|
webhookConfigurationSchema: () => webhookConfigurationSchema,
|
|
58
58
|
webhookConfigurationsQuerySchema: () => webhookConfigurationsQuerySchema,
|
|
59
|
+
webhookEntities: () => webhookEntities,
|
|
60
|
+
webhookEntitySchema: () => webhookEntitySchema,
|
|
59
61
|
webhookEventSchema: () => webhookEventSchema,
|
|
60
62
|
webhookEvents: () => webhookEvents,
|
|
61
63
|
webhookLogIriSchema: () => webhookLogIriSchema,
|
|
@@ -11217,10 +11219,23 @@ config(en_default());
|
|
|
11217
11219
|
|
|
11218
11220
|
// src/types.ts
|
|
11219
11221
|
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
11220
|
-
var webhookEvents = ["
|
|
11222
|
+
var webhookEvents = ["create", "update", "delete"];
|
|
11221
11223
|
var webhookEventSchema = external_exports.enum(webhookEvents);
|
|
11222
11224
|
var webhookLogStatuses = ["pending", "success", "failed", "timeout"];
|
|
11223
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);
|
|
11224
11239
|
var webhookConfigurationIriSchema = (0, import_sdk_js_global_types.iriSchema)("/webhooks/configurations/:id");
|
|
11225
11240
|
var webhookConfigurationNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
11226
11241
|
"/webhooks/configurations/:id"
|
|
@@ -11232,7 +11247,7 @@ var webhookLogNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSche
|
|
|
11232
11247
|
var webhookConfigurationSchema = external_exports.object({
|
|
11233
11248
|
id: external_exports.string(),
|
|
11234
11249
|
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
11235
|
-
entityClass:
|
|
11250
|
+
entityClass: webhookEntitySchema,
|
|
11236
11251
|
events: external_exports.array(webhookEventSchema).min(1, "events.required"),
|
|
11237
11252
|
callbackUrl: external_exports.url("callbackUrl.invalid").min(1, "callbackUrl.required"),
|
|
11238
11253
|
secretKey: external_exports.string().min(1, "secretKey.required"),
|
|
@@ -11561,6 +11576,8 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
|
|
|
11561
11576
|
webhookConfigurationNullableIriSchema,
|
|
11562
11577
|
webhookConfigurationSchema,
|
|
11563
11578
|
webhookConfigurationsQuerySchema,
|
|
11579
|
+
webhookEntities,
|
|
11580
|
+
webhookEntitySchema,
|
|
11564
11581
|
webhookEventSchema,
|
|
11565
11582
|
webhookEvents,
|
|
11566
11583
|
webhookLogIriSchema,
|