@deliverart/sdk-js-webhook 2.2.5 → 2.2.7
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 +5 -2
- package/dist/index.d.cts +161 -8
- package/dist/index.d.ts +161 -8
- package/dist/index.js +5 -2
- package/package.json +3 -3
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,
|
|
@@ -11288,7 +11288,10 @@ var webhookLogListItemSchema = webhookLogSchema.omit({
|
|
|
11288
11288
|
});
|
|
11289
11289
|
var webhookLogsQuerySchema = external_exports.object({
|
|
11290
11290
|
entityClass: external_exports.string().optional(),
|
|
11291
|
+
externalEntityId: external_exports.string().optional(),
|
|
11292
|
+
"exists[completedAt]": external_exports.coerce.boolean().optional(),
|
|
11291
11293
|
events: external_exports.union([webhookEventSchema, external_exports.array(webhookEventSchema)]).optional(),
|
|
11294
|
+
status: external_exports.union([webhookLogStatusSchema, external_exports.array(webhookLogStatusSchema)]).optional(),
|
|
11292
11295
|
"order[createdAt]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
11293
11296
|
"order[completedAt]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
11294
11297
|
page: external_exports.coerce.number().optional()
|
|
@@ -11531,7 +11534,7 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
|
|
|
11531
11534
|
return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
|
|
11532
11535
|
}
|
|
11533
11536
|
parseResponse(data, rawResponse) {
|
|
11534
|
-
const webhookLogs = external_exports.array(
|
|
11537
|
+
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11535
11538
|
return this.validateOutput({
|
|
11536
11539
|
data: webhookLogs,
|
|
11537
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<{
|
|
@@ -143,6 +165,8 @@ declare const webhookLogListItemSchema: z.ZodObject<{
|
|
|
143
165
|
type WebhookLogListItem = z.infer<typeof webhookLogListItemSchema>;
|
|
144
166
|
declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
145
167
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
168
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
169
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
146
170
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
147
171
|
create: "create";
|
|
148
172
|
update: "update";
|
|
@@ -152,6 +176,17 @@ declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
|
152
176
|
update: "update";
|
|
153
177
|
delete: "delete";
|
|
154
178
|
}>>]>>;
|
|
179
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
180
|
+
pending: "pending";
|
|
181
|
+
success: "success";
|
|
182
|
+
failed: "failed";
|
|
183
|
+
timeout: "timeout";
|
|
184
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
185
|
+
pending: "pending";
|
|
186
|
+
success: "success";
|
|
187
|
+
failed: "failed";
|
|
188
|
+
timeout: "timeout";
|
|
189
|
+
}>>]>>;
|
|
155
190
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
156
191
|
asc: "asc";
|
|
157
192
|
desc: "desc";
|
|
@@ -763,7 +798,18 @@ type GetWebhookLogDetailsInput = z.input<typeof getWebhookLogDetailsInputSchema>
|
|
|
763
798
|
declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
764
799
|
id: z.ZodString;
|
|
765
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>>;
|
|
766
|
-
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
|
+
}>;
|
|
767
813
|
externalEntityId: z.ZodUUID;
|
|
768
814
|
event: z.ZodEnum<{
|
|
769
815
|
create: "create";
|
|
@@ -795,7 +841,18 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
795
841
|
readonly outputSchema: z.ZodObject<{
|
|
796
842
|
id: z.ZodString;
|
|
797
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>>;
|
|
798
|
-
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
|
+
}>;
|
|
799
856
|
externalEntityId: z.ZodUUID;
|
|
800
857
|
event: z.ZodEnum<{
|
|
801
858
|
create: "create";
|
|
@@ -827,6 +884,8 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
827
884
|
|
|
828
885
|
declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
829
886
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
887
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
888
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
830
889
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
831
890
|
create: "create";
|
|
832
891
|
update: "update";
|
|
@@ -836,6 +895,17 @@ declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
|
836
895
|
update: "update";
|
|
837
896
|
delete: "delete";
|
|
838
897
|
}>>]>>;
|
|
898
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
899
|
+
pending: "pending";
|
|
900
|
+
success: "success";
|
|
901
|
+
failed: "failed";
|
|
902
|
+
timeout: "timeout";
|
|
903
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
904
|
+
pending: "pending";
|
|
905
|
+
success: "success";
|
|
906
|
+
failed: "failed";
|
|
907
|
+
timeout: "timeout";
|
|
908
|
+
}>>]>>;
|
|
839
909
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
840
910
|
asc: "asc";
|
|
841
911
|
desc: "desc";
|
|
@@ -859,7 +929,18 @@ declare const getWebhookLogsInputSchema: z.ZodUndefined;
|
|
|
859
929
|
type GetWebhookLogsInput = z.infer<typeof getWebhookLogsInputSchema>;
|
|
860
930
|
declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
861
931
|
data: z.ZodArray<z.ZodObject<{
|
|
862
|
-
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
|
+
}>;
|
|
863
944
|
createdAt: z.ZodString;
|
|
864
945
|
id: z.ZodString;
|
|
865
946
|
event: z.ZodEnum<{
|
|
@@ -900,7 +981,18 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
900
981
|
readonly inputSchema: z.ZodUndefined;
|
|
901
982
|
readonly outputSchema: z.ZodObject<{
|
|
902
983
|
data: z.ZodArray<z.ZodObject<{
|
|
903
|
-
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
|
+
}>;
|
|
904
996
|
createdAt: z.ZodString;
|
|
905
997
|
id: z.ZodString;
|
|
906
998
|
event: z.ZodEnum<{
|
|
@@ -935,6 +1027,8 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
935
1027
|
}, z.core.$strip>;
|
|
936
1028
|
readonly querySchema: z.ZodObject<{
|
|
937
1029
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
938
1032
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
939
1033
|
create: "create";
|
|
940
1034
|
update: "update";
|
|
@@ -944,6 +1038,17 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
944
1038
|
update: "update";
|
|
945
1039
|
delete: "delete";
|
|
946
1040
|
}>>]>>;
|
|
1041
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1042
|
+
pending: "pending";
|
|
1043
|
+
success: "success";
|
|
1044
|
+
failed: "failed";
|
|
1045
|
+
timeout: "timeout";
|
|
1046
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1047
|
+
pending: "pending";
|
|
1048
|
+
success: "success";
|
|
1049
|
+
failed: "failed";
|
|
1050
|
+
timeout: "timeout";
|
|
1051
|
+
}>>]>>;
|
|
947
1052
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
948
1053
|
asc: "asc";
|
|
949
1054
|
desc: "desc";
|
|
@@ -972,6 +1077,8 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
972
1077
|
|
|
973
1078
|
declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
974
1079
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
1080
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
975
1082
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
976
1083
|
create: "create";
|
|
977
1084
|
update: "update";
|
|
@@ -981,6 +1088,17 @@ declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
|
981
1088
|
update: "update";
|
|
982
1089
|
delete: "delete";
|
|
983
1090
|
}>>]>>;
|
|
1091
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1092
|
+
pending: "pending";
|
|
1093
|
+
success: "success";
|
|
1094
|
+
failed: "failed";
|
|
1095
|
+
timeout: "timeout";
|
|
1096
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1097
|
+
pending: "pending";
|
|
1098
|
+
success: "success";
|
|
1099
|
+
failed: "failed";
|
|
1100
|
+
timeout: "timeout";
|
|
1101
|
+
}>>]>>;
|
|
984
1102
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
985
1103
|
asc: "asc";
|
|
986
1104
|
desc: "desc";
|
|
@@ -1004,7 +1122,18 @@ declare const getWebhookLogsFromWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
|
1004
1122
|
type GetWebhookLogsFromWebhookConfigurationInput = z.input<typeof getWebhookLogsFromWebhookConfigurationInputSchema>;
|
|
1005
1123
|
declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
1006
1124
|
data: z.ZodArray<z.ZodObject<{
|
|
1007
|
-
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
|
+
}>;
|
|
1008
1137
|
createdAt: z.ZodString;
|
|
1009
1138
|
id: z.ZodString;
|
|
1010
1139
|
event: z.ZodEnum<{
|
|
@@ -1045,7 +1174,18 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1045
1174
|
readonly inputSchema: z.ZodUndefined;
|
|
1046
1175
|
readonly outputSchema: z.ZodObject<{
|
|
1047
1176
|
data: z.ZodArray<z.ZodObject<{
|
|
1048
|
-
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
|
+
}>;
|
|
1049
1189
|
createdAt: z.ZodString;
|
|
1050
1190
|
id: z.ZodString;
|
|
1051
1191
|
event: z.ZodEnum<{
|
|
@@ -1080,6 +1220,8 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1080
1220
|
}, z.core.$strip>;
|
|
1081
1221
|
readonly querySchema: z.ZodObject<{
|
|
1082
1222
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
1223
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
1083
1225
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1084
1226
|
create: "create";
|
|
1085
1227
|
update: "update";
|
|
@@ -1089,6 +1231,17 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1089
1231
|
update: "update";
|
|
1090
1232
|
delete: "delete";
|
|
1091
1233
|
}>>]>>;
|
|
1234
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1235
|
+
pending: "pending";
|
|
1236
|
+
success: "success";
|
|
1237
|
+
failed: "failed";
|
|
1238
|
+
timeout: "timeout";
|
|
1239
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1240
|
+
pending: "pending";
|
|
1241
|
+
success: "success";
|
|
1242
|
+
failed: "failed";
|
|
1243
|
+
timeout: "timeout";
|
|
1244
|
+
}>>]>>;
|
|
1092
1245
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1093
1246
|
asc: "asc";
|
|
1094
1247
|
desc: "desc";
|
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<{
|
|
@@ -143,6 +165,8 @@ declare const webhookLogListItemSchema: z.ZodObject<{
|
|
|
143
165
|
type WebhookLogListItem = z.infer<typeof webhookLogListItemSchema>;
|
|
144
166
|
declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
145
167
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
168
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
169
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
146
170
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
147
171
|
create: "create";
|
|
148
172
|
update: "update";
|
|
@@ -152,6 +176,17 @@ declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
|
152
176
|
update: "update";
|
|
153
177
|
delete: "delete";
|
|
154
178
|
}>>]>>;
|
|
179
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
180
|
+
pending: "pending";
|
|
181
|
+
success: "success";
|
|
182
|
+
failed: "failed";
|
|
183
|
+
timeout: "timeout";
|
|
184
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
185
|
+
pending: "pending";
|
|
186
|
+
success: "success";
|
|
187
|
+
failed: "failed";
|
|
188
|
+
timeout: "timeout";
|
|
189
|
+
}>>]>>;
|
|
155
190
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
156
191
|
asc: "asc";
|
|
157
192
|
desc: "desc";
|
|
@@ -763,7 +798,18 @@ type GetWebhookLogDetailsInput = z.input<typeof getWebhookLogDetailsInputSchema>
|
|
|
763
798
|
declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
764
799
|
id: z.ZodString;
|
|
765
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>>;
|
|
766
|
-
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
|
+
}>;
|
|
767
813
|
externalEntityId: z.ZodUUID;
|
|
768
814
|
event: z.ZodEnum<{
|
|
769
815
|
create: "create";
|
|
@@ -795,7 +841,18 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
795
841
|
readonly outputSchema: z.ZodObject<{
|
|
796
842
|
id: z.ZodString;
|
|
797
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>>;
|
|
798
|
-
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
|
+
}>;
|
|
799
856
|
externalEntityId: z.ZodUUID;
|
|
800
857
|
event: z.ZodEnum<{
|
|
801
858
|
create: "create";
|
|
@@ -827,6 +884,8 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
827
884
|
|
|
828
885
|
declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
829
886
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
887
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
888
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
830
889
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
831
890
|
create: "create";
|
|
832
891
|
update: "update";
|
|
@@ -836,6 +895,17 @@ declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
|
836
895
|
update: "update";
|
|
837
896
|
delete: "delete";
|
|
838
897
|
}>>]>>;
|
|
898
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
899
|
+
pending: "pending";
|
|
900
|
+
success: "success";
|
|
901
|
+
failed: "failed";
|
|
902
|
+
timeout: "timeout";
|
|
903
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
904
|
+
pending: "pending";
|
|
905
|
+
success: "success";
|
|
906
|
+
failed: "failed";
|
|
907
|
+
timeout: "timeout";
|
|
908
|
+
}>>]>>;
|
|
839
909
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
840
910
|
asc: "asc";
|
|
841
911
|
desc: "desc";
|
|
@@ -859,7 +929,18 @@ declare const getWebhookLogsInputSchema: z.ZodUndefined;
|
|
|
859
929
|
type GetWebhookLogsInput = z.infer<typeof getWebhookLogsInputSchema>;
|
|
860
930
|
declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
861
931
|
data: z.ZodArray<z.ZodObject<{
|
|
862
|
-
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
|
+
}>;
|
|
863
944
|
createdAt: z.ZodString;
|
|
864
945
|
id: z.ZodString;
|
|
865
946
|
event: z.ZodEnum<{
|
|
@@ -900,7 +981,18 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
900
981
|
readonly inputSchema: z.ZodUndefined;
|
|
901
982
|
readonly outputSchema: z.ZodObject<{
|
|
902
983
|
data: z.ZodArray<z.ZodObject<{
|
|
903
|
-
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
|
+
}>;
|
|
904
996
|
createdAt: z.ZodString;
|
|
905
997
|
id: z.ZodString;
|
|
906
998
|
event: z.ZodEnum<{
|
|
@@ -935,6 +1027,8 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
935
1027
|
}, z.core.$strip>;
|
|
936
1028
|
readonly querySchema: z.ZodObject<{
|
|
937
1029
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
938
1032
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
939
1033
|
create: "create";
|
|
940
1034
|
update: "update";
|
|
@@ -944,6 +1038,17 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
944
1038
|
update: "update";
|
|
945
1039
|
delete: "delete";
|
|
946
1040
|
}>>]>>;
|
|
1041
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1042
|
+
pending: "pending";
|
|
1043
|
+
success: "success";
|
|
1044
|
+
failed: "failed";
|
|
1045
|
+
timeout: "timeout";
|
|
1046
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1047
|
+
pending: "pending";
|
|
1048
|
+
success: "success";
|
|
1049
|
+
failed: "failed";
|
|
1050
|
+
timeout: "timeout";
|
|
1051
|
+
}>>]>>;
|
|
947
1052
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
948
1053
|
asc: "asc";
|
|
949
1054
|
desc: "desc";
|
|
@@ -972,6 +1077,8 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
972
1077
|
|
|
973
1078
|
declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
974
1079
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
1080
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
975
1082
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
976
1083
|
create: "create";
|
|
977
1084
|
update: "update";
|
|
@@ -981,6 +1088,17 @@ declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
|
981
1088
|
update: "update";
|
|
982
1089
|
delete: "delete";
|
|
983
1090
|
}>>]>>;
|
|
1091
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1092
|
+
pending: "pending";
|
|
1093
|
+
success: "success";
|
|
1094
|
+
failed: "failed";
|
|
1095
|
+
timeout: "timeout";
|
|
1096
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1097
|
+
pending: "pending";
|
|
1098
|
+
success: "success";
|
|
1099
|
+
failed: "failed";
|
|
1100
|
+
timeout: "timeout";
|
|
1101
|
+
}>>]>>;
|
|
984
1102
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
985
1103
|
asc: "asc";
|
|
986
1104
|
desc: "desc";
|
|
@@ -1004,7 +1122,18 @@ declare const getWebhookLogsFromWebhookConfigurationInputSchema: z.ZodUndefined;
|
|
|
1004
1122
|
type GetWebhookLogsFromWebhookConfigurationInput = z.input<typeof getWebhookLogsFromWebhookConfigurationInputSchema>;
|
|
1005
1123
|
declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
1006
1124
|
data: z.ZodArray<z.ZodObject<{
|
|
1007
|
-
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
|
+
}>;
|
|
1008
1137
|
createdAt: z.ZodString;
|
|
1009
1138
|
id: z.ZodString;
|
|
1010
1139
|
event: z.ZodEnum<{
|
|
@@ -1045,7 +1174,18 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1045
1174
|
readonly inputSchema: z.ZodUndefined;
|
|
1046
1175
|
readonly outputSchema: z.ZodObject<{
|
|
1047
1176
|
data: z.ZodArray<z.ZodObject<{
|
|
1048
|
-
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
|
+
}>;
|
|
1049
1189
|
createdAt: z.ZodString;
|
|
1050
1190
|
id: z.ZodString;
|
|
1051
1191
|
event: z.ZodEnum<{
|
|
@@ -1080,6 +1220,8 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1080
1220
|
}, z.core.$strip>;
|
|
1081
1221
|
readonly querySchema: z.ZodObject<{
|
|
1082
1222
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
1223
|
+
externalEntityId: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
'exists[completedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
1083
1225
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1084
1226
|
create: "create";
|
|
1085
1227
|
update: "update";
|
|
@@ -1089,6 +1231,17 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1089
1231
|
update: "update";
|
|
1090
1232
|
delete: "delete";
|
|
1091
1233
|
}>>]>>;
|
|
1234
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1235
|
+
pending: "pending";
|
|
1236
|
+
success: "success";
|
|
1237
|
+
failed: "failed";
|
|
1238
|
+
timeout: "timeout";
|
|
1239
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1240
|
+
pending: "pending";
|
|
1241
|
+
success: "success";
|
|
1242
|
+
failed: "failed";
|
|
1243
|
+
timeout: "timeout";
|
|
1244
|
+
}>>]>>;
|
|
1092
1245
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1093
1246
|
asc: "asc";
|
|
1094
1247
|
desc: "desc";
|
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,
|
|
@@ -11226,7 +11226,10 @@ var webhookLogListItemSchema = webhookLogSchema.omit({
|
|
|
11226
11226
|
});
|
|
11227
11227
|
var webhookLogsQuerySchema = external_exports.object({
|
|
11228
11228
|
entityClass: external_exports.string().optional(),
|
|
11229
|
+
externalEntityId: external_exports.string().optional(),
|
|
11230
|
+
"exists[completedAt]": external_exports.coerce.boolean().optional(),
|
|
11229
11231
|
events: external_exports.union([webhookEventSchema, external_exports.array(webhookEventSchema)]).optional(),
|
|
11232
|
+
status: external_exports.union([webhookLogStatusSchema, external_exports.array(webhookLogStatusSchema)]).optional(),
|
|
11230
11233
|
"order[createdAt]": sortDirSchema.optional(),
|
|
11231
11234
|
"order[completedAt]": sortDirSchema.optional(),
|
|
11232
11235
|
page: external_exports.coerce.number().optional()
|
|
@@ -11478,7 +11481,7 @@ var GetWebhookLogsFromWebhookConfiguration = class extends AbstractApiRequest9 {
|
|
|
11478
11481
|
return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
|
|
11479
11482
|
}
|
|
11480
11483
|
parseResponse(data, rawResponse) {
|
|
11481
|
-
const webhookLogs = external_exports.array(
|
|
11484
|
+
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11482
11485
|
return this.validateOutput({
|
|
11483
11486
|
data: webhookLogs,
|
|
11484
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.2.
|
|
4
|
+
"version": "2.2.7",
|
|
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-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.1.57",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.1.57"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|