@deliverart/sdk-js-webhook 2.5.34 → 2.6.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 +8 -24
- package/dist/index.d.cts +138 -17
- package/dist/index.d.ts +138 -17
- package/dist/index.js +11 -36
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11380,17 +11380,12 @@ var GetWebhookConfigurations = class extends import_sdk_js_core4.AbstractApiRequ
|
|
|
11380
11380
|
this.outputSchema = getWebhookConfigurationsResponseSchema;
|
|
11381
11381
|
this.querySchema = getWebhookConfigurationsQuerySchema;
|
|
11382
11382
|
this.headersSchema = void 0;
|
|
11383
|
+
this.listItemSchema = webhookConfigurationListItemSchema;
|
|
11384
|
+
this.paginationDefaultEnabled = true;
|
|
11383
11385
|
}
|
|
11384
11386
|
getPath() {
|
|
11385
11387
|
return "/webhooks/configurations";
|
|
11386
11388
|
}
|
|
11387
|
-
parseResponse(data, rawResponse) {
|
|
11388
|
-
const webhookConfigurations = external_exports.array(webhookConfigurationSchema).parse(data);
|
|
11389
|
-
return this.validateOutput({
|
|
11390
|
-
data: webhookConfigurations,
|
|
11391
|
-
pagination: (0, import_sdk_js_global_types5.responseToPagination)(rawResponse)
|
|
11392
|
-
});
|
|
11393
|
-
}
|
|
11394
11389
|
};
|
|
11395
11390
|
|
|
11396
11391
|
// src/requests/webhook-configurations/GetWebhookConfigurationsFromPointOfSale.ts
|
|
@@ -11410,14 +11405,13 @@ var GetWebhookConfigurationsFromPointOfSale = class extends import_sdk_js_core5.
|
|
|
11410
11405
|
this.outputSchema = getWebhookConfigurationsFromPointOfSaleResponseSchema;
|
|
11411
11406
|
this.querySchema = getWebhookConfigurationsFromPointOfSaleQuerySchema;
|
|
11412
11407
|
this.headersSchema = void 0;
|
|
11408
|
+
this.listItemSchema = webhookConfigurationListItemSchema;
|
|
11409
|
+
this.paginationDefaultEnabled = false;
|
|
11413
11410
|
this.pointOfSaleId = pointOfSaleId;
|
|
11414
11411
|
}
|
|
11415
11412
|
getPath() {
|
|
11416
11413
|
return `/point_of_sales/${this.pointOfSaleId}/webhooks/configurations`;
|
|
11417
11414
|
}
|
|
11418
|
-
parseResponse(data) {
|
|
11419
|
-
return external_exports.array(webhookConfigurationListItemSchema).parse(data);
|
|
11420
|
-
}
|
|
11421
11415
|
};
|
|
11422
11416
|
|
|
11423
11417
|
// src/requests/webhook-configurations/UpdateWebhookConfiguration.ts
|
|
@@ -11485,17 +11479,12 @@ var GetWebhookLogs = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
|
11485
11479
|
this.outputSchema = getWebhookLogsResponseSchema;
|
|
11486
11480
|
this.querySchema = getWebhookLogsQuerySchema;
|
|
11487
11481
|
this.headersSchema = void 0;
|
|
11482
|
+
this.listItemSchema = webhookLogListItemSchema;
|
|
11483
|
+
this.paginationDefaultEnabled = true;
|
|
11488
11484
|
}
|
|
11489
11485
|
getPath() {
|
|
11490
11486
|
return "/webhooks/logs";
|
|
11491
11487
|
}
|
|
11492
|
-
parseResponse(data, rawResponse) {
|
|
11493
|
-
const webhookLogs = external_exports.array(webhookLogSchema).parse(data);
|
|
11494
|
-
return this.validateOutput({
|
|
11495
|
-
data: webhookLogs,
|
|
11496
|
-
pagination: (0, import_sdk_js_global_types6.responseToPagination)(rawResponse)
|
|
11497
|
-
});
|
|
11498
|
-
}
|
|
11499
11488
|
};
|
|
11500
11489
|
|
|
11501
11490
|
// src/requests/webhook-logs/GetWebhookLogsFromWebhookConfiguration.ts
|
|
@@ -11514,18 +11503,13 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
|
|
|
11514
11503
|
this.outputSchema = getWebhookLogsFromWebhookConfigurationResponseSchema;
|
|
11515
11504
|
this.querySchema = getWebhookLogsFromWebhookConfigurationQuerySchema;
|
|
11516
11505
|
this.headersSchema = void 0;
|
|
11506
|
+
this.listItemSchema = webhookLogListItemSchema;
|
|
11507
|
+
this.paginationDefaultEnabled = true;
|
|
11517
11508
|
this.webhookConfigurationId = webhookConfigurationId;
|
|
11518
11509
|
}
|
|
11519
11510
|
getPath() {
|
|
11520
11511
|
return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
|
|
11521
11512
|
}
|
|
11522
|
-
parseResponse(data, rawResponse) {
|
|
11523
|
-
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11524
|
-
return this.validateOutput({
|
|
11525
|
-
data: webhookLogs,
|
|
11526
|
-
pagination: (0, import_sdk_js_global_types7.responseToPagination)(rawResponse)
|
|
11527
|
-
});
|
|
11528
|
-
}
|
|
11529
11513
|
};
|
|
11530
11514
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11531
11515
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
2
|
export { WebhookEntity, WebhookEvent, WebhookLogStatus, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses } from '@deliverart/sdk-js-global-types';
|
|
4
3
|
import { z } from 'zod';
|
|
5
4
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
@@ -474,9 +473,9 @@ declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
|
474
473
|
}, z.core.$strip>;
|
|
475
474
|
type GetWebhookConfigurationsResponse = z.infer<typeof getWebhookConfigurationsResponseSchema>;
|
|
476
475
|
declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebhookConfigurationsInputSchema, typeof getWebhookConfigurationsResponseSchema, GetWebhookConfigurationsQueryParams> {
|
|
477
|
-
readonly method
|
|
478
|
-
readonly contentType
|
|
479
|
-
readonly accept
|
|
476
|
+
readonly method: "GET";
|
|
477
|
+
readonly contentType: "application/json";
|
|
478
|
+
readonly accept: "application/json";
|
|
480
479
|
readonly inputSchema: z.ZodUndefined;
|
|
481
480
|
readonly outputSchema: z.ZodObject<{
|
|
482
481
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -543,11 +542,36 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
543
542
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
544
543
|
}, z.core.$strip>;
|
|
545
544
|
readonly headersSchema: undefined;
|
|
545
|
+
readonly listItemSchema: z.ZodObject<{
|
|
546
|
+
entityClass: z.ZodEnum<{
|
|
547
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
548
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
549
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
550
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
551
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
552
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
553
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
554
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
555
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
556
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
557
|
+
}>;
|
|
558
|
+
createdAt: z.ZodString;
|
|
559
|
+
updatedAt: z.ZodString;
|
|
560
|
+
id: z.ZodString;
|
|
561
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
562
|
+
create: "create";
|
|
563
|
+
update: "update";
|
|
564
|
+
delete: "delete";
|
|
565
|
+
}>>;
|
|
566
|
+
callbackUrl: z.ZodURL;
|
|
567
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
568
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
readonly paginationDefaultEnabled = true;
|
|
546
571
|
constructor(options?: {
|
|
547
572
|
query?: GetWebhookConfigurationsQueryParams;
|
|
548
573
|
});
|
|
549
574
|
getPath(): string;
|
|
550
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookConfigurationListItem>;
|
|
551
575
|
}
|
|
552
576
|
|
|
553
577
|
declare const getWebhookConfigurationsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -609,9 +633,9 @@ declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<
|
|
|
609
633
|
}, z.core.$strip>>;
|
|
610
634
|
type GetWebhookConfigurationsFromPointOfSaleResponse = z.infer<typeof getWebhookConfigurationsFromPointOfSaleResponseSchema>;
|
|
611
635
|
declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest<typeof getWebhookConfigurationsFromPointOfSaleInputSchema, typeof getWebhookConfigurationsFromPointOfSaleResponseSchema, GetWebhookConfigurationsFromPointOfSaleQueryParams> {
|
|
612
|
-
readonly method
|
|
613
|
-
readonly contentType
|
|
614
|
-
readonly accept
|
|
636
|
+
readonly method: "GET";
|
|
637
|
+
readonly contentType: "application/json";
|
|
638
|
+
readonly accept: "application/json";
|
|
615
639
|
readonly inputSchema: z.ZodUndefined;
|
|
616
640
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
617
641
|
entityClass: z.ZodEnum<{
|
|
@@ -668,12 +692,37 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
668
692
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
669
693
|
}, z.core.$strip>;
|
|
670
694
|
readonly headersSchema: undefined;
|
|
695
|
+
readonly listItemSchema: z.ZodObject<{
|
|
696
|
+
entityClass: z.ZodEnum<{
|
|
697
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
698
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
699
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
700
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
701
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
702
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
703
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
704
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
705
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
706
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
707
|
+
}>;
|
|
708
|
+
createdAt: z.ZodString;
|
|
709
|
+
updatedAt: z.ZodString;
|
|
710
|
+
id: z.ZodString;
|
|
711
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
712
|
+
create: "create";
|
|
713
|
+
update: "update";
|
|
714
|
+
delete: "delete";
|
|
715
|
+
}>>;
|
|
716
|
+
callbackUrl: z.ZodURL;
|
|
717
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
718
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
readonly paginationDefaultEnabled = false;
|
|
671
721
|
private readonly pointOfSaleId;
|
|
672
722
|
constructor(pointOfSaleId: string, options?: {
|
|
673
723
|
query?: GetWebhookConfigurationsFromPointOfSaleQueryParams;
|
|
674
724
|
});
|
|
675
725
|
getPath(): string;
|
|
676
|
-
parseResponse(data: unknown): WebhookConfigurationListItem[];
|
|
677
726
|
}
|
|
678
727
|
|
|
679
728
|
declare const updateWebhookConfigurationInputSchema: z.ZodObject<{
|
|
@@ -971,9 +1020,9 @@ declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
|
971
1020
|
}, z.core.$strip>;
|
|
972
1021
|
type GetWebhookLogsResponse = z.infer<typeof getWebhookLogsResponseSchema>;
|
|
973
1022
|
declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInputSchema, typeof getWebhookLogsResponseSchema, GetWebhookLogsQueryParams> {
|
|
974
|
-
readonly method
|
|
975
|
-
readonly contentType
|
|
976
|
-
readonly accept
|
|
1023
|
+
readonly method: "GET";
|
|
1024
|
+
readonly contentType: "application/json";
|
|
1025
|
+
readonly accept: "application/json";
|
|
977
1026
|
readonly inputSchema: z.ZodUndefined;
|
|
978
1027
|
readonly outputSchema: z.ZodObject<{
|
|
979
1028
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -1064,11 +1113,47 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
1064
1113
|
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1065
1114
|
}, z.core.$strip>;
|
|
1066
1115
|
readonly headersSchema: undefined;
|
|
1116
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1117
|
+
entityClass: z.ZodEnum<{
|
|
1118
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1119
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1120
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1121
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1122
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1123
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1124
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1125
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1126
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1127
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1128
|
+
}>;
|
|
1129
|
+
createdAt: z.ZodString;
|
|
1130
|
+
id: z.ZodString;
|
|
1131
|
+
event: z.ZodEnum<{
|
|
1132
|
+
create: "create";
|
|
1133
|
+
update: "update";
|
|
1134
|
+
delete: "delete";
|
|
1135
|
+
}>;
|
|
1136
|
+
status: z.ZodEnum<{
|
|
1137
|
+
pending: "pending";
|
|
1138
|
+
failed: "failed";
|
|
1139
|
+
success: "success";
|
|
1140
|
+
timeout: "timeout";
|
|
1141
|
+
}>;
|
|
1142
|
+
externalEntityId: z.ZodUUID;
|
|
1143
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
1144
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
1145
|
+
httpStatusCode: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1146
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1147
|
+
responseTimeMs: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1148
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
1149
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
1150
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1151
|
+
}, z.core.$strip>;
|
|
1152
|
+
readonly paginationDefaultEnabled = true;
|
|
1067
1153
|
constructor(options?: {
|
|
1068
1154
|
query?: GetWebhookLogsQueryParams;
|
|
1069
1155
|
});
|
|
1070
1156
|
getPath(): string;
|
|
1071
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
1072
1157
|
}
|
|
1073
1158
|
|
|
1074
1159
|
declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
@@ -1164,9 +1249,9 @@ declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<
|
|
|
1164
1249
|
}, z.core.$strip>;
|
|
1165
1250
|
type GetWebhookLogsFromWebhookConfigurationResponse = z.infer<typeof getWebhookLogsFromWebhookConfigurationResponseSchema>;
|
|
1166
1251
|
declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<typeof getWebhookLogsFromWebhookConfigurationInputSchema, typeof getWebhookLogsFromWebhookConfigurationResponseSchema, GetWebhookLogsFromWebhookConfigurationQueryParams> {
|
|
1167
|
-
readonly method
|
|
1168
|
-
readonly contentType
|
|
1169
|
-
readonly accept
|
|
1252
|
+
readonly method: "GET";
|
|
1253
|
+
readonly contentType: "application/json";
|
|
1254
|
+
readonly accept: "application/json";
|
|
1170
1255
|
readonly inputSchema: z.ZodUndefined;
|
|
1171
1256
|
readonly outputSchema: z.ZodObject<{
|
|
1172
1257
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -1257,12 +1342,48 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1257
1342
|
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1258
1343
|
}, z.core.$strip>;
|
|
1259
1344
|
readonly headersSchema: undefined;
|
|
1345
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1346
|
+
entityClass: z.ZodEnum<{
|
|
1347
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1348
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1349
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1350
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1351
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1352
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1353
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1354
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1355
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1356
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1357
|
+
}>;
|
|
1358
|
+
createdAt: z.ZodString;
|
|
1359
|
+
id: z.ZodString;
|
|
1360
|
+
event: z.ZodEnum<{
|
|
1361
|
+
create: "create";
|
|
1362
|
+
update: "update";
|
|
1363
|
+
delete: "delete";
|
|
1364
|
+
}>;
|
|
1365
|
+
status: z.ZodEnum<{
|
|
1366
|
+
pending: "pending";
|
|
1367
|
+
failed: "failed";
|
|
1368
|
+
success: "success";
|
|
1369
|
+
timeout: "timeout";
|
|
1370
|
+
}>;
|
|
1371
|
+
externalEntityId: z.ZodUUID;
|
|
1372
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
1373
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
1374
|
+
httpStatusCode: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1375
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1376
|
+
responseTimeMs: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1377
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
1378
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
1379
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1380
|
+
}, z.core.$strip>;
|
|
1381
|
+
readonly paginationDefaultEnabled = true;
|
|
1260
1382
|
private readonly webhookConfigurationId;
|
|
1261
1383
|
constructor(webhookConfigurationId: string, options?: {
|
|
1262
1384
|
query?: GetWebhookLogsFromWebhookConfigurationQueryParams;
|
|
1263
1385
|
});
|
|
1264
1386
|
getPath(): string;
|
|
1265
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
1266
1387
|
}
|
|
1267
1388
|
|
|
1268
1389
|
declare const webhookConfigurationIriSchema: 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>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
2
|
export { WebhookEntity, WebhookEvent, WebhookLogStatus, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses } from '@deliverart/sdk-js-global-types';
|
|
4
3
|
import { z } from 'zod';
|
|
5
4
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
@@ -474,9 +473,9 @@ declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
|
474
473
|
}, z.core.$strip>;
|
|
475
474
|
type GetWebhookConfigurationsResponse = z.infer<typeof getWebhookConfigurationsResponseSchema>;
|
|
476
475
|
declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebhookConfigurationsInputSchema, typeof getWebhookConfigurationsResponseSchema, GetWebhookConfigurationsQueryParams> {
|
|
477
|
-
readonly method
|
|
478
|
-
readonly contentType
|
|
479
|
-
readonly accept
|
|
476
|
+
readonly method: "GET";
|
|
477
|
+
readonly contentType: "application/json";
|
|
478
|
+
readonly accept: "application/json";
|
|
480
479
|
readonly inputSchema: z.ZodUndefined;
|
|
481
480
|
readonly outputSchema: z.ZodObject<{
|
|
482
481
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -543,11 +542,36 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
543
542
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
544
543
|
}, z.core.$strip>;
|
|
545
544
|
readonly headersSchema: undefined;
|
|
545
|
+
readonly listItemSchema: z.ZodObject<{
|
|
546
|
+
entityClass: z.ZodEnum<{
|
|
547
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
548
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
549
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
550
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
551
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
552
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
553
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
554
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
555
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
556
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
557
|
+
}>;
|
|
558
|
+
createdAt: z.ZodString;
|
|
559
|
+
updatedAt: z.ZodString;
|
|
560
|
+
id: z.ZodString;
|
|
561
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
562
|
+
create: "create";
|
|
563
|
+
update: "update";
|
|
564
|
+
delete: "delete";
|
|
565
|
+
}>>;
|
|
566
|
+
callbackUrl: z.ZodURL;
|
|
567
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
568
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
readonly paginationDefaultEnabled = true;
|
|
546
571
|
constructor(options?: {
|
|
547
572
|
query?: GetWebhookConfigurationsQueryParams;
|
|
548
573
|
});
|
|
549
574
|
getPath(): string;
|
|
550
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookConfigurationListItem>;
|
|
551
575
|
}
|
|
552
576
|
|
|
553
577
|
declare const getWebhookConfigurationsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -609,9 +633,9 @@ declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<
|
|
|
609
633
|
}, z.core.$strip>>;
|
|
610
634
|
type GetWebhookConfigurationsFromPointOfSaleResponse = z.infer<typeof getWebhookConfigurationsFromPointOfSaleResponseSchema>;
|
|
611
635
|
declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest<typeof getWebhookConfigurationsFromPointOfSaleInputSchema, typeof getWebhookConfigurationsFromPointOfSaleResponseSchema, GetWebhookConfigurationsFromPointOfSaleQueryParams> {
|
|
612
|
-
readonly method
|
|
613
|
-
readonly contentType
|
|
614
|
-
readonly accept
|
|
636
|
+
readonly method: "GET";
|
|
637
|
+
readonly contentType: "application/json";
|
|
638
|
+
readonly accept: "application/json";
|
|
615
639
|
readonly inputSchema: z.ZodUndefined;
|
|
616
640
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
617
641
|
entityClass: z.ZodEnum<{
|
|
@@ -668,12 +692,37 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
668
692
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
669
693
|
}, z.core.$strip>;
|
|
670
694
|
readonly headersSchema: undefined;
|
|
695
|
+
readonly listItemSchema: z.ZodObject<{
|
|
696
|
+
entityClass: z.ZodEnum<{
|
|
697
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
698
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
699
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
700
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
701
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
702
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
703
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
704
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
705
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
706
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
707
|
+
}>;
|
|
708
|
+
createdAt: z.ZodString;
|
|
709
|
+
updatedAt: z.ZodString;
|
|
710
|
+
id: z.ZodString;
|
|
711
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
712
|
+
create: "create";
|
|
713
|
+
update: "update";
|
|
714
|
+
delete: "delete";
|
|
715
|
+
}>>;
|
|
716
|
+
callbackUrl: z.ZodURL;
|
|
717
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
718
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
readonly paginationDefaultEnabled = false;
|
|
671
721
|
private readonly pointOfSaleId;
|
|
672
722
|
constructor(pointOfSaleId: string, options?: {
|
|
673
723
|
query?: GetWebhookConfigurationsFromPointOfSaleQueryParams;
|
|
674
724
|
});
|
|
675
725
|
getPath(): string;
|
|
676
|
-
parseResponse(data: unknown): WebhookConfigurationListItem[];
|
|
677
726
|
}
|
|
678
727
|
|
|
679
728
|
declare const updateWebhookConfigurationInputSchema: z.ZodObject<{
|
|
@@ -971,9 +1020,9 @@ declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
|
971
1020
|
}, z.core.$strip>;
|
|
972
1021
|
type GetWebhookLogsResponse = z.infer<typeof getWebhookLogsResponseSchema>;
|
|
973
1022
|
declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInputSchema, typeof getWebhookLogsResponseSchema, GetWebhookLogsQueryParams> {
|
|
974
|
-
readonly method
|
|
975
|
-
readonly contentType
|
|
976
|
-
readonly accept
|
|
1023
|
+
readonly method: "GET";
|
|
1024
|
+
readonly contentType: "application/json";
|
|
1025
|
+
readonly accept: "application/json";
|
|
977
1026
|
readonly inputSchema: z.ZodUndefined;
|
|
978
1027
|
readonly outputSchema: z.ZodObject<{
|
|
979
1028
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -1064,11 +1113,47 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
1064
1113
|
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1065
1114
|
}, z.core.$strip>;
|
|
1066
1115
|
readonly headersSchema: undefined;
|
|
1116
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1117
|
+
entityClass: z.ZodEnum<{
|
|
1118
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1119
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1120
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1121
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1122
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1123
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1124
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1125
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1126
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1127
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1128
|
+
}>;
|
|
1129
|
+
createdAt: z.ZodString;
|
|
1130
|
+
id: z.ZodString;
|
|
1131
|
+
event: z.ZodEnum<{
|
|
1132
|
+
create: "create";
|
|
1133
|
+
update: "update";
|
|
1134
|
+
delete: "delete";
|
|
1135
|
+
}>;
|
|
1136
|
+
status: z.ZodEnum<{
|
|
1137
|
+
pending: "pending";
|
|
1138
|
+
failed: "failed";
|
|
1139
|
+
success: "success";
|
|
1140
|
+
timeout: "timeout";
|
|
1141
|
+
}>;
|
|
1142
|
+
externalEntityId: z.ZodUUID;
|
|
1143
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
1144
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
1145
|
+
httpStatusCode: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1146
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1147
|
+
responseTimeMs: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1148
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
1149
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
1150
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1151
|
+
}, z.core.$strip>;
|
|
1152
|
+
readonly paginationDefaultEnabled = true;
|
|
1067
1153
|
constructor(options?: {
|
|
1068
1154
|
query?: GetWebhookLogsQueryParams;
|
|
1069
1155
|
});
|
|
1070
1156
|
getPath(): string;
|
|
1071
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
1072
1157
|
}
|
|
1073
1158
|
|
|
1074
1159
|
declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
@@ -1164,9 +1249,9 @@ declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<
|
|
|
1164
1249
|
}, z.core.$strip>;
|
|
1165
1250
|
type GetWebhookLogsFromWebhookConfigurationResponse = z.infer<typeof getWebhookLogsFromWebhookConfigurationResponseSchema>;
|
|
1166
1251
|
declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<typeof getWebhookLogsFromWebhookConfigurationInputSchema, typeof getWebhookLogsFromWebhookConfigurationResponseSchema, GetWebhookLogsFromWebhookConfigurationQueryParams> {
|
|
1167
|
-
readonly method
|
|
1168
|
-
readonly contentType
|
|
1169
|
-
readonly accept
|
|
1252
|
+
readonly method: "GET";
|
|
1253
|
+
readonly contentType: "application/json";
|
|
1254
|
+
readonly accept: "application/json";
|
|
1170
1255
|
readonly inputSchema: z.ZodUndefined;
|
|
1171
1256
|
readonly outputSchema: z.ZodObject<{
|
|
1172
1257
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -1257,12 +1342,48 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
1257
1342
|
'completedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1258
1343
|
}, z.core.$strip>;
|
|
1259
1344
|
readonly headersSchema: undefined;
|
|
1345
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1346
|
+
entityClass: z.ZodEnum<{
|
|
1347
|
+
"App\\Entity\\Bundle": "App\\Entity\\Bundle";
|
|
1348
|
+
"App\\Entity\\Customer": "App\\Entity\\Customer";
|
|
1349
|
+
"App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
|
|
1350
|
+
"App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
|
|
1351
|
+
"App\\Entity\\Delivery": "App\\Entity\\Delivery";
|
|
1352
|
+
"App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
|
|
1353
|
+
"App\\Entity\\Integration": "App\\Entity\\Integration";
|
|
1354
|
+
"App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
|
|
1355
|
+
"App\\Entity\\Order": "App\\Entity\\Order";
|
|
1356
|
+
"App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
|
|
1357
|
+
}>;
|
|
1358
|
+
createdAt: z.ZodString;
|
|
1359
|
+
id: z.ZodString;
|
|
1360
|
+
event: z.ZodEnum<{
|
|
1361
|
+
create: "create";
|
|
1362
|
+
update: "update";
|
|
1363
|
+
delete: "delete";
|
|
1364
|
+
}>;
|
|
1365
|
+
status: z.ZodEnum<{
|
|
1366
|
+
pending: "pending";
|
|
1367
|
+
failed: "failed";
|
|
1368
|
+
success: "success";
|
|
1369
|
+
timeout: "timeout";
|
|
1370
|
+
}>;
|
|
1371
|
+
externalEntityId: z.ZodUUID;
|
|
1372
|
+
requestS3Key: z.ZodNullable<z.ZodString>;
|
|
1373
|
+
responseS3Key: z.ZodNullable<z.ZodString>;
|
|
1374
|
+
httpStatusCode: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1375
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
1376
|
+
responseTimeMs: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1377
|
+
requestFileUrl: z.ZodNullable<z.ZodURL>;
|
|
1378
|
+
responseFileUrl: z.ZodNullable<z.ZodURL>;
|
|
1379
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1380
|
+
}, z.core.$strip>;
|
|
1381
|
+
readonly paginationDefaultEnabled = true;
|
|
1260
1382
|
private readonly webhookConfigurationId;
|
|
1261
1383
|
constructor(webhookConfigurationId: string, options?: {
|
|
1262
1384
|
query?: GetWebhookLogsFromWebhookConfigurationQueryParams;
|
|
1263
1385
|
});
|
|
1264
1386
|
getPath(): string;
|
|
1265
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
1266
1387
|
}
|
|
1267
1388
|
|
|
1268
1389
|
declare const webhookConfigurationIriSchema: 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>>;
|
package/dist/index.js
CHANGED
|
@@ -11310,10 +11310,7 @@ var GetWebhookConfigurationDetails = class extends AbstractApiRequest3 {
|
|
|
11310
11310
|
|
|
11311
11311
|
// src/requests/webhook-configurations/GetWebhookConfigurations.ts
|
|
11312
11312
|
import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
|
|
11313
|
-
import {
|
|
11314
|
-
createPaginatedSchema,
|
|
11315
|
-
responseToPagination
|
|
11316
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11313
|
+
import { createPaginatedSchema } from "@deliverart/sdk-js-global-types";
|
|
11317
11314
|
var getWebhookConfigurationsQuerySchema = webhookConfigurationsQuerySchema;
|
|
11318
11315
|
var getWebhookConfigurationsInputSchema = external_exports.undefined();
|
|
11319
11316
|
var getWebhookConfigurationsResponseSchema = createPaginatedSchema(
|
|
@@ -11329,17 +11326,12 @@ var GetWebhookConfigurations = class extends AbstractApiRequest4 {
|
|
|
11329
11326
|
this.outputSchema = getWebhookConfigurationsResponseSchema;
|
|
11330
11327
|
this.querySchema = getWebhookConfigurationsQuerySchema;
|
|
11331
11328
|
this.headersSchema = void 0;
|
|
11329
|
+
this.listItemSchema = webhookConfigurationListItemSchema;
|
|
11330
|
+
this.paginationDefaultEnabled = true;
|
|
11332
11331
|
}
|
|
11333
11332
|
getPath() {
|
|
11334
11333
|
return "/webhooks/configurations";
|
|
11335
11334
|
}
|
|
11336
|
-
parseResponse(data, rawResponse) {
|
|
11337
|
-
const webhookConfigurations = external_exports.array(webhookConfigurationSchema).parse(data);
|
|
11338
|
-
return this.validateOutput({
|
|
11339
|
-
data: webhookConfigurations,
|
|
11340
|
-
pagination: responseToPagination(rawResponse)
|
|
11341
|
-
});
|
|
11342
|
-
}
|
|
11343
11335
|
};
|
|
11344
11336
|
|
|
11345
11337
|
// src/requests/webhook-configurations/GetWebhookConfigurationsFromPointOfSale.ts
|
|
@@ -11359,14 +11351,13 @@ var GetWebhookConfigurationsFromPointOfSale = class extends AbstractApiRequest5
|
|
|
11359
11351
|
this.outputSchema = getWebhookConfigurationsFromPointOfSaleResponseSchema;
|
|
11360
11352
|
this.querySchema = getWebhookConfigurationsFromPointOfSaleQuerySchema;
|
|
11361
11353
|
this.headersSchema = void 0;
|
|
11354
|
+
this.listItemSchema = webhookConfigurationListItemSchema;
|
|
11355
|
+
this.paginationDefaultEnabled = false;
|
|
11362
11356
|
this.pointOfSaleId = pointOfSaleId;
|
|
11363
11357
|
}
|
|
11364
11358
|
getPath() {
|
|
11365
11359
|
return `/point_of_sales/${this.pointOfSaleId}/webhooks/configurations`;
|
|
11366
11360
|
}
|
|
11367
|
-
parseResponse(data) {
|
|
11368
|
-
return external_exports.array(webhookConfigurationListItemSchema).parse(data);
|
|
11369
|
-
}
|
|
11370
11361
|
};
|
|
11371
11362
|
|
|
11372
11363
|
// src/requests/webhook-configurations/UpdateWebhookConfiguration.ts
|
|
@@ -11420,10 +11411,7 @@ var GetWebhookLogDetails = class extends AbstractApiRequest7 {
|
|
|
11420
11411
|
|
|
11421
11412
|
// src/requests/webhook-logs/GetWebhookLogs.ts
|
|
11422
11413
|
import { AbstractApiRequest as AbstractApiRequest8 } from "@deliverart/sdk-js-core";
|
|
11423
|
-
import {
|
|
11424
|
-
createPaginatedSchema as createPaginatedSchema2,
|
|
11425
|
-
responseToPagination as responseToPagination2
|
|
11426
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11414
|
+
import { createPaginatedSchema as createPaginatedSchema2 } from "@deliverart/sdk-js-global-types";
|
|
11427
11415
|
var getWebhookLogsQuerySchema = webhookLogsQuerySchema;
|
|
11428
11416
|
var getWebhookLogsInputSchema = external_exports.undefined();
|
|
11429
11417
|
var getWebhookLogsResponseSchema = createPaginatedSchema2(webhookLogListItemSchema);
|
|
@@ -11437,25 +11425,17 @@ var GetWebhookLogs = class extends AbstractApiRequest8 {
|
|
|
11437
11425
|
this.outputSchema = getWebhookLogsResponseSchema;
|
|
11438
11426
|
this.querySchema = getWebhookLogsQuerySchema;
|
|
11439
11427
|
this.headersSchema = void 0;
|
|
11428
|
+
this.listItemSchema = webhookLogListItemSchema;
|
|
11429
|
+
this.paginationDefaultEnabled = true;
|
|
11440
11430
|
}
|
|
11441
11431
|
getPath() {
|
|
11442
11432
|
return "/webhooks/logs";
|
|
11443
11433
|
}
|
|
11444
|
-
parseResponse(data, rawResponse) {
|
|
11445
|
-
const webhookLogs = external_exports.array(webhookLogSchema).parse(data);
|
|
11446
|
-
return this.validateOutput({
|
|
11447
|
-
data: webhookLogs,
|
|
11448
|
-
pagination: responseToPagination2(rawResponse)
|
|
11449
|
-
});
|
|
11450
|
-
}
|
|
11451
11434
|
};
|
|
11452
11435
|
|
|
11453
11436
|
// src/requests/webhook-logs/GetWebhookLogsFromWebhookConfiguration.ts
|
|
11454
11437
|
import { AbstractApiRequest as AbstractApiRequest9 } from "@deliverart/sdk-js-core";
|
|
11455
|
-
import {
|
|
11456
|
-
createPaginatedSchema as createPaginatedSchema3,
|
|
11457
|
-
responseToPagination as responseToPagination3
|
|
11458
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11438
|
+
import { createPaginatedSchema as createPaginatedSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11459
11439
|
var getWebhookLogsFromWebhookConfigurationQuerySchema = webhookLogsQuerySchema;
|
|
11460
11440
|
var getWebhookLogsFromWebhookConfigurationInputSchema = external_exports.undefined();
|
|
11461
11441
|
var getWebhookLogsFromWebhookConfigurationResponseSchema = createPaginatedSchema3(webhookLogListItemSchema);
|
|
@@ -11469,18 +11449,13 @@ var GetWebhookLogsFromWebhookConfiguration = class extends AbstractApiRequest9 {
|
|
|
11469
11449
|
this.outputSchema = getWebhookLogsFromWebhookConfigurationResponseSchema;
|
|
11470
11450
|
this.querySchema = getWebhookLogsFromWebhookConfigurationQuerySchema;
|
|
11471
11451
|
this.headersSchema = void 0;
|
|
11452
|
+
this.listItemSchema = webhookLogListItemSchema;
|
|
11453
|
+
this.paginationDefaultEnabled = true;
|
|
11472
11454
|
this.webhookConfigurationId = webhookConfigurationId;
|
|
11473
11455
|
}
|
|
11474
11456
|
getPath() {
|
|
11475
11457
|
return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
|
|
11476
11458
|
}
|
|
11477
|
-
parseResponse(data, rawResponse) {
|
|
11478
|
-
const webhookLogs = external_exports.array(webhookLogListItemSchema).parse(data);
|
|
11479
|
-
return this.validateOutput({
|
|
11480
|
-
data: webhookLogs,
|
|
11481
|
-
pagination: responseToPagination3(rawResponse)
|
|
11482
|
-
});
|
|
11483
|
-
}
|
|
11484
11459
|
};
|
|
11485
11460
|
export {
|
|
11486
11461
|
CreateWebhookConfiguration,
|
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.6.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-
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.6.0",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.6.0",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.6.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|