@deliverart/sdk-js-webhook 2.2.6 → 2.3.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 +2 -2
- package/dist/index.d.cts +132 -44
- package/dist/index.d.ts +132 -44
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11269,7 +11269,7 @@ var webhookConfigurationsQuerySchema = external_exports.object({
|
|
|
11269
11269
|
var webhookLogSchema = external_exports.object({
|
|
11270
11270
|
id: external_exports.string(),
|
|
11271
11271
|
configuration: webhookConfigurationIriSchema,
|
|
11272
|
-
entityClass:
|
|
11272
|
+
entityClass: webhookEntitySchema,
|
|
11273
11273
|
externalEntityId: external_exports.uuid(),
|
|
11274
11274
|
event: webhookEventSchema,
|
|
11275
11275
|
status: webhookLogStatusSchema,
|
|
@@ -11534,7 +11534,7 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
|
|
|
11534
11534
|
return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
|
|
11535
11535
|
}
|
|
11536
11536
|
parseResponse(data, rawResponse) {
|
|
11537
|
-
const webhookLogs = external_exports.array(
|
|
11537
|
+
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11538
11538
|
return this.validateOutput({
|
|
11539
11539
|
data: webhookLogs,
|
|
11540
11540
|
pagination: (0, import_sdk_js_global_types5.responseToPagination)(rawResponse)
|
package/dist/index.d.cts
CHANGED
|
@@ -91,7 +91,18 @@ type WebhookConfigurationsQueryParams = z.infer<typeof webhookConfigurationsQuer
|
|
|
91
91
|
declare const webhookLogSchema: z.ZodObject<{
|
|
92
92
|
id: z.ZodString;
|
|
93
93
|
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
94
|
-
entityClass: z.
|
|
94
|
+
entityClass: z.ZodEnum<{
|
|
95
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
96
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
97
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
98
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
99
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
100
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
101
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
102
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
103
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
104
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
105
|
+
}>;
|
|
95
106
|
externalEntityId: z.ZodUUID;
|
|
96
107
|
event: z.ZodEnum<{
|
|
97
108
|
create: "create";
|
|
@@ -116,7 +127,18 @@ declare const webhookLogSchema: z.ZodObject<{
|
|
|
116
127
|
}, z.core.$strip>;
|
|
117
128
|
type WebhookLog = z.infer<typeof webhookLogSchema>;
|
|
118
129
|
declare const webhookLogListItemSchema: z.ZodObject<{
|
|
119
|
-
entityClass: z.
|
|
130
|
+
entityClass: z.ZodEnum<{
|
|
131
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
132
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
133
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
134
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
135
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
136
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
137
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
138
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
139
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
140
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
141
|
+
}>;
|
|
120
142
|
createdAt: z.ZodString;
|
|
121
143
|
id: z.ZodString;
|
|
122
144
|
event: z.ZodEnum<{
|
|
@@ -443,12 +465,12 @@ declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
|
443
465
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
444
466
|
}, z.core.$strip>>;
|
|
445
467
|
pagination: z.ZodObject<{
|
|
446
|
-
from: z.
|
|
447
|
-
to: z.
|
|
448
|
-
itemsPerPage: z.
|
|
449
|
-
totalItems: z.
|
|
450
|
-
currentPage: z.
|
|
451
|
-
lastPage: z.
|
|
468
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
469
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
470
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
471
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
472
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
473
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
452
474
|
}, z.core.$strip>;
|
|
453
475
|
}, z.core.$strip>;
|
|
454
476
|
type GetWebhookConfigurationsResponse = z.infer<typeof getWebhookConfigurationsResponseSchema>;
|
|
@@ -485,12 +507,12 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
485
507
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
486
508
|
}, z.core.$strip>>;
|
|
487
509
|
pagination: z.ZodObject<{
|
|
488
|
-
from: z.
|
|
489
|
-
to: z.
|
|
490
|
-
itemsPerPage: z.
|
|
491
|
-
totalItems: z.
|
|
492
|
-
currentPage: z.
|
|
493
|
-
lastPage: z.
|
|
510
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
511
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
512
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
513
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
514
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
515
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
494
516
|
}, z.core.$strip>;
|
|
495
517
|
}, z.core.$strip>;
|
|
496
518
|
readonly querySchema: z.ZodObject<{
|
|
@@ -776,7 +798,18 @@ type GetWebhookLogDetailsInput = z.input<typeof getWebhookLogDetailsInputSchema>
|
|
|
776
798
|
declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
777
799
|
id: z.ZodString;
|
|
778
800
|
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
779
|
-
entityClass: z.
|
|
801
|
+
entityClass: z.ZodEnum<{
|
|
802
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
803
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
804
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
805
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
806
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
807
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
808
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
809
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
810
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
811
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
812
|
+
}>;
|
|
780
813
|
externalEntityId: z.ZodUUID;
|
|
781
814
|
event: z.ZodEnum<{
|
|
782
815
|
create: "create";
|
|
@@ -808,7 +841,18 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
808
841
|
readonly outputSchema: z.ZodObject<{
|
|
809
842
|
id: z.ZodString;
|
|
810
843
|
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
811
|
-
entityClass: z.
|
|
844
|
+
entityClass: z.ZodEnum<{
|
|
845
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
846
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
847
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
848
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
849
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
850
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
851
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
852
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
853
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
854
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
855
|
+
}>;
|
|
812
856
|
externalEntityId: z.ZodUUID;
|
|
813
857
|
event: z.ZodEnum<{
|
|
814
858
|
create: "create";
|
|
@@ -885,7 +929,18 @@ declare const getWebhookLogsInputSchema: z.ZodUndefined;
|
|
|
885
929
|
type GetWebhookLogsInput = z.infer<typeof getWebhookLogsInputSchema>;
|
|
886
930
|
declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
887
931
|
data: z.ZodArray<z.ZodObject<{
|
|
888
|
-
entityClass: z.
|
|
932
|
+
entityClass: z.ZodEnum<{
|
|
933
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
934
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
935
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
936
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
937
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
938
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
939
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
940
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
941
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
942
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
943
|
+
}>;
|
|
889
944
|
createdAt: z.ZodString;
|
|
890
945
|
id: z.ZodString;
|
|
891
946
|
event: z.ZodEnum<{
|
|
@@ -910,12 +965,12 @@ declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
|
910
965
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
911
966
|
}, z.core.$strip>>;
|
|
912
967
|
pagination: z.ZodObject<{
|
|
913
|
-
from: z.
|
|
914
|
-
to: z.
|
|
915
|
-
itemsPerPage: z.
|
|
916
|
-
totalItems: z.
|
|
917
|
-
currentPage: z.
|
|
918
|
-
lastPage: z.
|
|
968
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
969
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
970
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
971
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
972
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
973
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
919
974
|
}, z.core.$strip>;
|
|
920
975
|
}, z.core.$strip>;
|
|
921
976
|
type GetWebhookLogsResponse = z.infer<typeof getWebhookLogsResponseSchema>;
|
|
@@ -926,7 +981,18 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
926
981
|
readonly inputSchema: z.ZodUndefined;
|
|
927
982
|
readonly outputSchema: z.ZodObject<{
|
|
928
983
|
data: z.ZodArray<z.ZodObject<{
|
|
929
|
-
entityClass: z.
|
|
984
|
+
entityClass: z.ZodEnum<{
|
|
985
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
986
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
987
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
988
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
989
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
990
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
991
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
992
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
993
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
994
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
995
|
+
}>;
|
|
930
996
|
createdAt: z.ZodString;
|
|
931
997
|
id: z.ZodString;
|
|
932
998
|
event: z.ZodEnum<{
|
|
@@ -951,12 +1017,12 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
951
1017
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
952
1018
|
}, z.core.$strip>>;
|
|
953
1019
|
pagination: z.ZodObject<{
|
|
954
|
-
from: z.
|
|
955
|
-
to: z.
|
|
956
|
-
itemsPerPage: z.
|
|
957
|
-
totalItems: z.
|
|
958
|
-
currentPage: z.
|
|
959
|
-
lastPage: z.
|
|
1020
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1021
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1022
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1023
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1024
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1025
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
960
1026
|
}, z.core.$strip>;
|
|
961
1027
|
}, z.core.$strip>;
|
|
962
1028
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1056,7 +1122,18 @@ declare const getWebhookLogsFromWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
|
1056
1122
|
type GetWebhookLogsFromWebhookConfigurationInput = z.input<typeof getWebhookLogsFromWebhookConfigurationInputSchema>;
|
|
1057
1123
|
declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
1058
1124
|
data: z.ZodArray<z.ZodObject<{
|
|
1059
|
-
entityClass: z.
|
|
1125
|
+
entityClass: z.ZodEnum<{
|
|
1126
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1127
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1128
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1129
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1130
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1131
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1132
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1133
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1134
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1135
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1136
|
+
}>;
|
|
1060
1137
|
createdAt: z.ZodString;
|
|
1061
1138
|
id: z.ZodString;
|
|
1062
1139
|
event: z.ZodEnum<{
|
|
@@ -1081,12 +1158,12 @@ declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<
|
|
|
1081
1158
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1082
1159
|
}, z.core.$strip>>;
|
|
1083
1160
|
pagination: z.ZodObject<{
|
|
1084
|
-
from: z.
|
|
1085
|
-
to: z.
|
|
1086
|
-
itemsPerPage: z.
|
|
1087
|
-
totalItems: z.
|
|
1088
|
-
currentPage: z.
|
|
1089
|
-
lastPage: z.
|
|
1161
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1162
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1163
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1164
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1165
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1166
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1090
1167
|
}, z.core.$strip>;
|
|
1091
1168
|
}, z.core.$strip>;
|
|
1092
1169
|
type GetWebhookLogsFromWebhookConfigurationResponse = z.infer<typeof getWebhookLogsFromWebhookConfigurationResponseSchema>;
|
|
@@ -1097,7 +1174,18 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1097
1174
|
readonly inputSchema: z.ZodUndefined;
|
|
1098
1175
|
readonly outputSchema: z.ZodObject<{
|
|
1099
1176
|
data: z.ZodArray<z.ZodObject<{
|
|
1100
|
-
entityClass: z.
|
|
1177
|
+
entityClass: z.ZodEnum<{
|
|
1178
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1179
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1180
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1181
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1182
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1183
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1184
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1185
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1186
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1187
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1188
|
+
}>;
|
|
1101
1189
|
createdAt: z.ZodString;
|
|
1102
1190
|
id: z.ZodString;
|
|
1103
1191
|
event: z.ZodEnum<{
|
|
@@ -1122,12 +1210,12 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1122
1210
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1123
1211
|
}, z.core.$strip>>;
|
|
1124
1212
|
pagination: z.ZodObject<{
|
|
1125
|
-
from: z.
|
|
1126
|
-
to: z.
|
|
1127
|
-
itemsPerPage: z.
|
|
1128
|
-
totalItems: z.
|
|
1129
|
-
currentPage: z.
|
|
1130
|
-
lastPage: z.
|
|
1213
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1214
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1215
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1216
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1217
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1218
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1131
1219
|
}, z.core.$strip>;
|
|
1132
1220
|
}, z.core.$strip>;
|
|
1133
1221
|
readonly querySchema: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,18 @@ type WebhookConfigurationsQueryParams = z.infer<typeof webhookConfigurationsQuer
|
|
|
91
91
|
declare const webhookLogSchema: z.ZodObject<{
|
|
92
92
|
id: z.ZodString;
|
|
93
93
|
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
94
|
-
entityClass: z.
|
|
94
|
+
entityClass: z.ZodEnum<{
|
|
95
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
96
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
97
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
98
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
99
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
100
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
101
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
102
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
103
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
104
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
105
|
+
}>;
|
|
95
106
|
externalEntityId: z.ZodUUID;
|
|
96
107
|
event: z.ZodEnum<{
|
|
97
108
|
create: "create";
|
|
@@ -116,7 +127,18 @@ declare const webhookLogSchema: z.ZodObject<{
|
|
|
116
127
|
}, z.core.$strip>;
|
|
117
128
|
type WebhookLog = z.infer<typeof webhookLogSchema>;
|
|
118
129
|
declare const webhookLogListItemSchema: z.ZodObject<{
|
|
119
|
-
entityClass: z.
|
|
130
|
+
entityClass: z.ZodEnum<{
|
|
131
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
132
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
133
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
134
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
135
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
136
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
137
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
138
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
139
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
140
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
141
|
+
}>;
|
|
120
142
|
createdAt: z.ZodString;
|
|
121
143
|
id: z.ZodString;
|
|
122
144
|
event: z.ZodEnum<{
|
|
@@ -443,12 +465,12 @@ declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
|
443
465
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
444
466
|
}, z.core.$strip>>;
|
|
445
467
|
pagination: z.ZodObject<{
|
|
446
|
-
from: z.
|
|
447
|
-
to: z.
|
|
448
|
-
itemsPerPage: z.
|
|
449
|
-
totalItems: z.
|
|
450
|
-
currentPage: z.
|
|
451
|
-
lastPage: z.
|
|
468
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
469
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
470
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
471
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
472
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
473
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
452
474
|
}, z.core.$strip>;
|
|
453
475
|
}, z.core.$strip>;
|
|
454
476
|
type GetWebhookConfigurationsResponse = z.infer<typeof getWebhookConfigurationsResponseSchema>;
|
|
@@ -485,12 +507,12 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
485
507
|
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
486
508
|
}, z.core.$strip>>;
|
|
487
509
|
pagination: z.ZodObject<{
|
|
488
|
-
from: z.
|
|
489
|
-
to: z.
|
|
490
|
-
itemsPerPage: z.
|
|
491
|
-
totalItems: z.
|
|
492
|
-
currentPage: z.
|
|
493
|
-
lastPage: z.
|
|
510
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
511
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
512
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
513
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
514
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
515
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
494
516
|
}, z.core.$strip>;
|
|
495
517
|
}, z.core.$strip>;
|
|
496
518
|
readonly querySchema: z.ZodObject<{
|
|
@@ -776,7 +798,18 @@ type GetWebhookLogDetailsInput = z.input<typeof getWebhookLogDetailsInputSchema>
|
|
|
776
798
|
declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
777
799
|
id: z.ZodString;
|
|
778
800
|
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
779
|
-
entityClass: z.
|
|
801
|
+
entityClass: z.ZodEnum<{
|
|
802
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
803
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
804
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
805
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
806
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
807
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
808
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
809
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
810
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
811
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
812
|
+
}>;
|
|
780
813
|
externalEntityId: z.ZodUUID;
|
|
781
814
|
event: z.ZodEnum<{
|
|
782
815
|
create: "create";
|
|
@@ -808,7 +841,18 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
808
841
|
readonly outputSchema: z.ZodObject<{
|
|
809
842
|
id: z.ZodString;
|
|
810
843
|
configuration: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
|
|
811
|
-
entityClass: z.
|
|
844
|
+
entityClass: z.ZodEnum<{
|
|
845
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
846
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
847
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
848
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
849
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
850
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
851
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
852
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
853
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
854
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
855
|
+
}>;
|
|
812
856
|
externalEntityId: z.ZodUUID;
|
|
813
857
|
event: z.ZodEnum<{
|
|
814
858
|
create: "create";
|
|
@@ -885,7 +929,18 @@ declare const getWebhookLogsInputSchema: z.ZodUndefined;
|
|
|
885
929
|
type GetWebhookLogsInput = z.infer<typeof getWebhookLogsInputSchema>;
|
|
886
930
|
declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
887
931
|
data: z.ZodArray<z.ZodObject<{
|
|
888
|
-
entityClass: z.
|
|
932
|
+
entityClass: z.ZodEnum<{
|
|
933
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
934
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
935
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
936
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
937
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
938
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
939
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
940
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
941
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
942
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
943
|
+
}>;
|
|
889
944
|
createdAt: z.ZodString;
|
|
890
945
|
id: z.ZodString;
|
|
891
946
|
event: z.ZodEnum<{
|
|
@@ -910,12 +965,12 @@ declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
|
910
965
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
911
966
|
}, z.core.$strip>>;
|
|
912
967
|
pagination: z.ZodObject<{
|
|
913
|
-
from: z.
|
|
914
|
-
to: z.
|
|
915
|
-
itemsPerPage: z.
|
|
916
|
-
totalItems: z.
|
|
917
|
-
currentPage: z.
|
|
918
|
-
lastPage: z.
|
|
968
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
969
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
970
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
971
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
972
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
973
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
919
974
|
}, z.core.$strip>;
|
|
920
975
|
}, z.core.$strip>;
|
|
921
976
|
type GetWebhookLogsResponse = z.infer<typeof getWebhookLogsResponseSchema>;
|
|
@@ -926,7 +981,18 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
926
981
|
readonly inputSchema: z.ZodUndefined;
|
|
927
982
|
readonly outputSchema: z.ZodObject<{
|
|
928
983
|
data: z.ZodArray<z.ZodObject<{
|
|
929
|
-
entityClass: z.
|
|
984
|
+
entityClass: z.ZodEnum<{
|
|
985
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
986
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
987
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
988
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
989
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
990
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
991
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
992
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
993
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
994
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
995
|
+
}>;
|
|
930
996
|
createdAt: z.ZodString;
|
|
931
997
|
id: z.ZodString;
|
|
932
998
|
event: z.ZodEnum<{
|
|
@@ -951,12 +1017,12 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
951
1017
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
952
1018
|
}, z.core.$strip>>;
|
|
953
1019
|
pagination: z.ZodObject<{
|
|
954
|
-
from: z.
|
|
955
|
-
to: z.
|
|
956
|
-
itemsPerPage: z.
|
|
957
|
-
totalItems: z.
|
|
958
|
-
currentPage: z.
|
|
959
|
-
lastPage: z.
|
|
1020
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1021
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1022
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1023
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1024
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1025
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
960
1026
|
}, z.core.$strip>;
|
|
961
1027
|
}, z.core.$strip>;
|
|
962
1028
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1056,7 +1122,18 @@ declare const getWebhookLogsFromWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
|
1056
1122
|
type GetWebhookLogsFromWebhookConfigurationInput = z.input<typeof getWebhookLogsFromWebhookConfigurationInputSchema>;
|
|
1057
1123
|
declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
1058
1124
|
data: z.ZodArray<z.ZodObject<{
|
|
1059
|
-
entityClass: z.
|
|
1125
|
+
entityClass: z.ZodEnum<{
|
|
1126
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1127
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1128
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1129
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1130
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1131
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1132
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1133
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1134
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1135
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1136
|
+
}>;
|
|
1060
1137
|
createdAt: z.ZodString;
|
|
1061
1138
|
id: z.ZodString;
|
|
1062
1139
|
event: z.ZodEnum<{
|
|
@@ -1081,12 +1158,12 @@ declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<
|
|
|
1081
1158
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1082
1159
|
}, z.core.$strip>>;
|
|
1083
1160
|
pagination: z.ZodObject<{
|
|
1084
|
-
from: z.
|
|
1085
|
-
to: z.
|
|
1086
|
-
itemsPerPage: z.
|
|
1087
|
-
totalItems: z.
|
|
1088
|
-
currentPage: z.
|
|
1089
|
-
lastPage: z.
|
|
1161
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1162
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1163
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1164
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1165
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1166
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1090
1167
|
}, z.core.$strip>;
|
|
1091
1168
|
}, z.core.$strip>;
|
|
1092
1169
|
type GetWebhookLogsFromWebhookConfigurationResponse = z.infer<typeof getWebhookLogsFromWebhookConfigurationResponseSchema>;
|
|
@@ -1097,7 +1174,18 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1097
1174
|
readonly inputSchema: z.ZodUndefined;
|
|
1098
1175
|
readonly outputSchema: z.ZodObject<{
|
|
1099
1176
|
data: z.ZodArray<z.ZodObject<{
|
|
1100
|
-
entityClass: z.
|
|
1177
|
+
entityClass: z.ZodEnum<{
|
|
1178
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1179
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1180
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1181
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1182
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1183
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1184
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1185
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1186
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1187
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1188
|
+
}>;
|
|
1101
1189
|
createdAt: z.ZodString;
|
|
1102
1190
|
id: z.ZodString;
|
|
1103
1191
|
event: z.ZodEnum<{
|
|
@@ -1122,12 +1210,12 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1122
1210
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1123
1211
|
}, z.core.$strip>>;
|
|
1124
1212
|
pagination: z.ZodObject<{
|
|
1125
|
-
from: z.
|
|
1126
|
-
to: z.
|
|
1127
|
-
itemsPerPage: z.
|
|
1128
|
-
totalItems: z.
|
|
1129
|
-
currentPage: z.
|
|
1130
|
-
lastPage: z.
|
|
1213
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1214
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1215
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1216
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1217
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1218
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1131
1219
|
}, z.core.$strip>;
|
|
1132
1220
|
}, z.core.$strip>;
|
|
1133
1221
|
readonly querySchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -11207,7 +11207,7 @@ var webhookConfigurationsQuerySchema = external_exports.object({
|
|
|
11207
11207
|
var webhookLogSchema = external_exports.object({
|
|
11208
11208
|
id: external_exports.string(),
|
|
11209
11209
|
configuration: webhookConfigurationIriSchema,
|
|
11210
|
-
entityClass:
|
|
11210
|
+
entityClass: webhookEntitySchema,
|
|
11211
11211
|
externalEntityId: external_exports.uuid(),
|
|
11212
11212
|
event: webhookEventSchema,
|
|
11213
11213
|
status: webhookLogStatusSchema,
|
|
@@ -11481,7 +11481,7 @@ var GetWebhookLogsFromWebhookConfiguration = class extends AbstractApiRequest9 {
|
|
|
11481
11481
|
return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
|
|
11482
11482
|
}
|
|
11483
11483
|
parseResponse(data, rawResponse) {
|
|
11484
|
-
const webhookLogs = external_exports.array(
|
|
11484
|
+
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11485
11485
|
return this.validateOutput({
|
|
11486
11486
|
data: webhookLogs,
|
|
11487
11487
|
pagination: responseToPagination3(rawResponse)
|
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.3.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-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.3.0",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.3.0",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.3.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|