@deliverart/sdk-js-delivery 2.6.0 → 2.6.1
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 +4 -4
- package/dist/index.d.cts +152 -16
- package/dist/index.d.ts +152 -16
- package/dist/index.js +8 -8
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -11532,7 +11532,7 @@ var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
|
11532
11532
|
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
11533
11533
|
var getDeliveriesQuerySchema = deliveriesQuerySchema;
|
|
11534
11534
|
var getDeliveriesInputSchema = external_exports.undefined();
|
|
11535
|
-
var getDeliveriesResponseSchema = (0, import_sdk_js_global_types5.
|
|
11535
|
+
var getDeliveriesResponseSchema = (0, import_sdk_js_global_types5.mixedPaginationSchema)(deliverySchema);
|
|
11536
11536
|
var GetDeliveries = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
11537
11537
|
constructor(options) {
|
|
11538
11538
|
super(void 0, options);
|
|
@@ -11557,7 +11557,7 @@ var import_sdk_js_core6 = require("@deliverart/sdk-js-core");
|
|
|
11557
11557
|
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
11558
11558
|
var getDeliveriesFromUserQuerySchema = deliveriesQuerySchema;
|
|
11559
11559
|
var getDeliveriesFromUserInputSchema = external_exports.undefined();
|
|
11560
|
-
var getDeliveriesFromUserResponseSchema = (0, import_sdk_js_global_types6.
|
|
11560
|
+
var getDeliveriesFromUserResponseSchema = (0, import_sdk_js_global_types6.mixedPaginationSchema)(deliverySchema);
|
|
11561
11561
|
var GetDeliveriesFromUser = class extends import_sdk_js_core6.AbstractApiRequest {
|
|
11562
11562
|
constructor(userId, options) {
|
|
11563
11563
|
super(void 0, options);
|
|
@@ -11753,7 +11753,7 @@ var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
|
11753
11753
|
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
11754
11754
|
var getDeliveryFeesQuerySchema = deliveryFeesQuerySchema;
|
|
11755
11755
|
var getDeliveryFeesInputSchema = external_exports.undefined();
|
|
11756
|
-
var getDeliveryFeesResponseSchema = (0, import_sdk_js_global_types8.
|
|
11756
|
+
var getDeliveryFeesResponseSchema = (0, import_sdk_js_global_types8.mixedPaginationSchema)(deliveryFeeListItemSchema);
|
|
11757
11757
|
var GetDeliveryFees = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
11758
11758
|
constructor(options) {
|
|
11759
11759
|
super(void 0, options);
|
|
@@ -11885,7 +11885,7 @@ var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
|
11885
11885
|
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
11886
11886
|
var getDeliveryPositionsQuerySchema = deliveryPositionsQuerySchema;
|
|
11887
11887
|
var getDeliveryPositionsInputSchema = external_exports.undefined();
|
|
11888
|
-
var getDeliveryPositionsResponseSchema = (0, import_sdk_js_global_types10.
|
|
11888
|
+
var getDeliveryPositionsResponseSchema = (0, import_sdk_js_global_types10.mixedPaginationSchema)(deliveryPositionSchema);
|
|
11889
11889
|
var GetDeliveryPositions = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
11890
11890
|
constructor(options) {
|
|
11891
11891
|
super(void 0, options);
|
package/dist/index.d.cts
CHANGED
|
@@ -520,7 +520,7 @@ declare const getDeliveriesQuerySchema: z.ZodObject<{
|
|
|
520
520
|
type GetDeliveriesQueryParams = z.infer<typeof getDeliveriesQuerySchema>;
|
|
521
521
|
declare const getDeliveriesInputSchema: z.ZodUndefined;
|
|
522
522
|
type GetDeliveriesInput = z.infer<typeof getDeliveriesInputSchema>;
|
|
523
|
-
declare const getDeliveriesResponseSchema: z.ZodObject<{
|
|
523
|
+
declare const getDeliveriesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
524
524
|
data: z.ZodArray<z.ZodObject<{
|
|
525
525
|
id: z.ZodString;
|
|
526
526
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -539,14 +539,23 @@ declare const getDeliveriesResponseSchema: z.ZodObject<{
|
|
|
539
539
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
540
540
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
541
541
|
}, z.core.$strip>;
|
|
542
|
-
}, z.core.$strip
|
|
542
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
543
|
+
id: z.ZodString;
|
|
544
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
545
|
+
deliveryUser: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
546
|
+
currentOrder: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown>>;
|
|
547
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
548
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
549
|
+
createdAt: z.ZodString;
|
|
550
|
+
updatedAt: z.ZodString;
|
|
551
|
+
}, z.core.$strip>>]>;
|
|
543
552
|
type GetDeliveriesResponse = z.infer<typeof getDeliveriesResponseSchema>;
|
|
544
553
|
declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInputSchema, typeof getDeliveriesResponseSchema, GetDeliveriesQueryParams> {
|
|
545
554
|
readonly method: "GET";
|
|
546
555
|
readonly contentType: "application/json";
|
|
547
556
|
readonly accept: "application/json";
|
|
548
557
|
readonly inputSchema: z.ZodUndefined;
|
|
549
|
-
readonly outputSchema: z.ZodObject<{
|
|
558
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
550
559
|
data: z.ZodArray<z.ZodObject<{
|
|
551
560
|
id: z.ZodString;
|
|
552
561
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -565,7 +574,16 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
|
|
|
565
574
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
566
575
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
567
576
|
}, z.core.$strip>;
|
|
568
|
-
}, z.core.$strip
|
|
577
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
578
|
+
id: z.ZodString;
|
|
579
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
580
|
+
deliveryUser: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
581
|
+
currentOrder: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown>>;
|
|
582
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
583
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
584
|
+
createdAt: z.ZodString;
|
|
585
|
+
updatedAt: z.ZodString;
|
|
586
|
+
}, z.core.$strip>>]>;
|
|
569
587
|
readonly querySchema: z.ZodObject<{
|
|
570
588
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
571
589
|
'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -671,7 +689,7 @@ declare const getDeliveriesFromUserQuerySchema: z.ZodObject<{
|
|
|
671
689
|
type GetDeliveriesFromUserQueryParams = z.infer<typeof getDeliveriesFromUserQuerySchema>;
|
|
672
690
|
declare const getDeliveriesFromUserInputSchema: z.ZodUndefined;
|
|
673
691
|
type GetDeliveriesFromUserInput = z.infer<typeof getDeliveriesFromUserInputSchema>;
|
|
674
|
-
declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
692
|
+
declare const getDeliveriesFromUserResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
675
693
|
data: z.ZodArray<z.ZodObject<{
|
|
676
694
|
id: z.ZodString;
|
|
677
695
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -690,14 +708,23 @@ declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
|
690
708
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
691
709
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
692
710
|
}, z.core.$strip>;
|
|
693
|
-
}, z.core.$strip
|
|
711
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
712
|
+
id: z.ZodString;
|
|
713
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
714
|
+
deliveryUser: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
715
|
+
currentOrder: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown>>;
|
|
716
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
717
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
718
|
+
createdAt: z.ZodString;
|
|
719
|
+
updatedAt: z.ZodString;
|
|
720
|
+
}, z.core.$strip>>]>;
|
|
694
721
|
type GetDeliveriesFromUserResponse = z.infer<typeof getDeliveriesFromUserResponseSchema>;
|
|
695
722
|
declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliveriesFromUserInputSchema, typeof getDeliveriesFromUserResponseSchema, GetDeliveriesFromUserQueryParams> {
|
|
696
723
|
readonly method: "GET";
|
|
697
724
|
readonly contentType: "application/json";
|
|
698
725
|
readonly accept: "application/json";
|
|
699
726
|
readonly inputSchema: z.ZodUndefined;
|
|
700
|
-
readonly outputSchema: z.ZodObject<{
|
|
727
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
701
728
|
data: z.ZodArray<z.ZodObject<{
|
|
702
729
|
id: z.ZodString;
|
|
703
730
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -716,7 +743,16 @@ declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliver
|
|
|
716
743
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
717
744
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
718
745
|
}, z.core.$strip>;
|
|
719
|
-
}, z.core.$strip
|
|
746
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
747
|
+
id: z.ZodString;
|
|
748
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
749
|
+
deliveryUser: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
750
|
+
currentOrder: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown>>;
|
|
751
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
752
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
753
|
+
createdAt: z.ZodString;
|
|
754
|
+
updatedAt: z.ZodString;
|
|
755
|
+
}, z.core.$strip>>]>;
|
|
720
756
|
readonly querySchema: z.ZodObject<{
|
|
721
757
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
722
758
|
'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -1276,7 +1312,7 @@ declare const getDeliveryFeesQuerySchema: z.ZodObject<{
|
|
|
1276
1312
|
type GetDeliveryFeesQueryParams = z.infer<typeof getDeliveryFeesQuerySchema>;
|
|
1277
1313
|
declare const getDeliveryFeesInputSchema: z.ZodUndefined;
|
|
1278
1314
|
type GetDeliveryFeesInput = z.infer<typeof getDeliveryFeesInputSchema>;
|
|
1279
|
-
declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
1315
|
+
declare const getDeliveryFeesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1280
1316
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1281
1317
|
amount: z.ZodDefault<z.ZodString>;
|
|
1282
1318
|
netAmount: z.ZodString;
|
|
@@ -1327,14 +1363,55 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1327
1363
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1328
1364
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1329
1365
|
}, z.core.$strip>;
|
|
1330
|
-
}, z.core.$strip
|
|
1366
|
+
}, z.core.$strip>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1367
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1368
|
+
netAmount: z.ZodString;
|
|
1369
|
+
taxAmount: z.ZodString;
|
|
1370
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1371
|
+
createdAt: z.ZodString;
|
|
1372
|
+
updatedAt: z.ZodString;
|
|
1373
|
+
id: z.ZodString;
|
|
1374
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1375
|
+
type: z.ZodLiteral<"amount">;
|
|
1376
|
+
settings: z.ZodObject<{
|
|
1377
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1378
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1379
|
+
}, z.core.$strip>;
|
|
1380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1381
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1382
|
+
netAmount: z.ZodString;
|
|
1383
|
+
taxAmount: z.ZodString;
|
|
1384
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1385
|
+
createdAt: z.ZodString;
|
|
1386
|
+
updatedAt: z.ZodString;
|
|
1387
|
+
id: z.ZodString;
|
|
1388
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1389
|
+
type: z.ZodLiteral<"distance">;
|
|
1390
|
+
settings: z.ZodObject<{
|
|
1391
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1392
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1393
|
+
}, z.core.$strip>;
|
|
1394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1395
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1396
|
+
netAmount: z.ZodString;
|
|
1397
|
+
taxAmount: z.ZodString;
|
|
1398
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1399
|
+
createdAt: z.ZodString;
|
|
1400
|
+
updatedAt: z.ZodString;
|
|
1401
|
+
id: z.ZodString;
|
|
1402
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1403
|
+
type: z.ZodLiteral<"postal_code">;
|
|
1404
|
+
settings: z.ZodObject<{
|
|
1405
|
+
values: z.ZodArray<z.ZodString>;
|
|
1406
|
+
}, z.core.$strip>;
|
|
1407
|
+
}, z.core.$strip>]>>]>;
|
|
1331
1408
|
type GetDeliveryFeesResponse = z.infer<typeof getDeliveryFeesResponseSchema>;
|
|
1332
1409
|
declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesInputSchema, typeof getDeliveryFeesResponseSchema, GetDeliveryFeesQueryParams> {
|
|
1333
1410
|
readonly method: "GET";
|
|
1334
1411
|
readonly contentType: "application/json";
|
|
1335
1412
|
readonly accept: "application/json";
|
|
1336
1413
|
readonly inputSchema: z.ZodUndefined;
|
|
1337
|
-
readonly outputSchema: z.ZodObject<{
|
|
1414
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1338
1415
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1339
1416
|
amount: z.ZodDefault<z.ZodString>;
|
|
1340
1417
|
netAmount: z.ZodString;
|
|
@@ -1385,7 +1462,48 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1385
1462
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1386
1463
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1387
1464
|
}, z.core.$strip>;
|
|
1388
|
-
}, z.core.$strip
|
|
1465
|
+
}, z.core.$strip>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1466
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1467
|
+
netAmount: z.ZodString;
|
|
1468
|
+
taxAmount: z.ZodString;
|
|
1469
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1470
|
+
createdAt: z.ZodString;
|
|
1471
|
+
updatedAt: z.ZodString;
|
|
1472
|
+
id: z.ZodString;
|
|
1473
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1474
|
+
type: z.ZodLiteral<"amount">;
|
|
1475
|
+
settings: z.ZodObject<{
|
|
1476
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1477
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1478
|
+
}, z.core.$strip>;
|
|
1479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1480
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1481
|
+
netAmount: z.ZodString;
|
|
1482
|
+
taxAmount: z.ZodString;
|
|
1483
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1484
|
+
createdAt: z.ZodString;
|
|
1485
|
+
updatedAt: z.ZodString;
|
|
1486
|
+
id: z.ZodString;
|
|
1487
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1488
|
+
type: z.ZodLiteral<"distance">;
|
|
1489
|
+
settings: z.ZodObject<{
|
|
1490
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1491
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1492
|
+
}, z.core.$strip>;
|
|
1493
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1494
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1495
|
+
netAmount: z.ZodString;
|
|
1496
|
+
taxAmount: z.ZodString;
|
|
1497
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1498
|
+
createdAt: z.ZodString;
|
|
1499
|
+
updatedAt: z.ZodString;
|
|
1500
|
+
id: z.ZodString;
|
|
1501
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1502
|
+
type: z.ZodLiteral<"postal_code">;
|
|
1503
|
+
settings: z.ZodObject<{
|
|
1504
|
+
values: z.ZodArray<z.ZodString>;
|
|
1505
|
+
}, z.core.$strip>;
|
|
1506
|
+
}, z.core.$strip>]>>]>;
|
|
1389
1507
|
readonly querySchema: z.ZodObject<{
|
|
1390
1508
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1391
1509
|
asc: "asc";
|
|
@@ -1970,7 +2088,7 @@ declare const getDeliveryPositionsQuerySchema: z.ZodObject<{
|
|
|
1970
2088
|
type GetDeliveryPositionsQueryParams = z.infer<typeof getDeliveryPositionsQuerySchema>;
|
|
1971
2089
|
declare const getDeliveryPositionsInputSchema: z.ZodUndefined;
|
|
1972
2090
|
type GetDeliveryPositionsInput = z.infer<typeof getDeliveryPositionsInputSchema>;
|
|
1973
|
-
declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
2091
|
+
declare const getDeliveryPositionsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1974
2092
|
data: z.ZodArray<z.ZodObject<{
|
|
1975
2093
|
id: z.ZodString;
|
|
1976
2094
|
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
@@ -1989,14 +2107,23 @@ declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
|
1989
2107
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1990
2108
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1991
2109
|
}, z.core.$strip>;
|
|
1992
|
-
}, z.core.$strip
|
|
2110
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2111
|
+
id: z.ZodString;
|
|
2112
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
2113
|
+
position: z.ZodObject<{
|
|
2114
|
+
latitude: z.ZodNumber;
|
|
2115
|
+
longitude: z.ZodNumber;
|
|
2116
|
+
}, z.core.$strip>;
|
|
2117
|
+
createdAt: z.ZodString;
|
|
2118
|
+
updatedAt: z.ZodString;
|
|
2119
|
+
}, z.core.$strip>>]>;
|
|
1993
2120
|
type GetDeliveryPositionsResponse = z.infer<typeof getDeliveryPositionsResponseSchema>;
|
|
1994
2121
|
declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDeliveryPositionsInputSchema, typeof getDeliveryPositionsResponseSchema, GetDeliveryPositionsQueryParams> {
|
|
1995
2122
|
readonly method: "GET";
|
|
1996
2123
|
readonly contentType: "application/json";
|
|
1997
2124
|
readonly accept: "application/json";
|
|
1998
2125
|
readonly inputSchema: z.ZodUndefined;
|
|
1999
|
-
readonly outputSchema: z.ZodObject<{
|
|
2126
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2000
2127
|
data: z.ZodArray<z.ZodObject<{
|
|
2001
2128
|
id: z.ZodString;
|
|
2002
2129
|
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
@@ -2015,7 +2142,16 @@ declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDelivery
|
|
|
2015
2142
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2016
2143
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2017
2144
|
}, z.core.$strip>;
|
|
2018
|
-
}, z.core.$strip
|
|
2145
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2146
|
+
id: z.ZodString;
|
|
2147
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
2148
|
+
position: z.ZodObject<{
|
|
2149
|
+
latitude: z.ZodNumber;
|
|
2150
|
+
longitude: z.ZodNumber;
|
|
2151
|
+
}, z.core.$strip>;
|
|
2152
|
+
createdAt: z.ZodString;
|
|
2153
|
+
updatedAt: z.ZodString;
|
|
2154
|
+
}, z.core.$strip>>]>;
|
|
2019
2155
|
readonly querySchema: z.ZodObject<{
|
|
2020
2156
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2021
2157
|
asc: "asc";
|
package/dist/index.d.ts
CHANGED
|
@@ -520,7 +520,7 @@ declare const getDeliveriesQuerySchema: z.ZodObject<{
|
|
|
520
520
|
type GetDeliveriesQueryParams = z.infer<typeof getDeliveriesQuerySchema>;
|
|
521
521
|
declare const getDeliveriesInputSchema: z.ZodUndefined;
|
|
522
522
|
type GetDeliveriesInput = z.infer<typeof getDeliveriesInputSchema>;
|
|
523
|
-
declare const getDeliveriesResponseSchema: z.ZodObject<{
|
|
523
|
+
declare const getDeliveriesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
524
524
|
data: z.ZodArray<z.ZodObject<{
|
|
525
525
|
id: z.ZodString;
|
|
526
526
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -539,14 +539,23 @@ declare const getDeliveriesResponseSchema: z.ZodObject<{
|
|
|
539
539
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
540
540
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
541
541
|
}, z.core.$strip>;
|
|
542
|
-
}, z.core.$strip
|
|
542
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
543
|
+
id: z.ZodString;
|
|
544
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
545
|
+
deliveryUser: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
546
|
+
currentOrder: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown>>;
|
|
547
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
548
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
549
|
+
createdAt: z.ZodString;
|
|
550
|
+
updatedAt: z.ZodString;
|
|
551
|
+
}, z.core.$strip>>]>;
|
|
543
552
|
type GetDeliveriesResponse = z.infer<typeof getDeliveriesResponseSchema>;
|
|
544
553
|
declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInputSchema, typeof getDeliveriesResponseSchema, GetDeliveriesQueryParams> {
|
|
545
554
|
readonly method: "GET";
|
|
546
555
|
readonly contentType: "application/json";
|
|
547
556
|
readonly accept: "application/json";
|
|
548
557
|
readonly inputSchema: z.ZodUndefined;
|
|
549
|
-
readonly outputSchema: z.ZodObject<{
|
|
558
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
550
559
|
data: z.ZodArray<z.ZodObject<{
|
|
551
560
|
id: z.ZodString;
|
|
552
561
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -565,7 +574,16 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
|
|
|
565
574
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
566
575
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
567
576
|
}, z.core.$strip>;
|
|
568
|
-
}, z.core.$strip
|
|
577
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
578
|
+
id: z.ZodString;
|
|
579
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
580
|
+
deliveryUser: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
581
|
+
currentOrder: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown>>;
|
|
582
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
583
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
584
|
+
createdAt: z.ZodString;
|
|
585
|
+
updatedAt: z.ZodString;
|
|
586
|
+
}, z.core.$strip>>]>;
|
|
569
587
|
readonly querySchema: z.ZodObject<{
|
|
570
588
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
571
589
|
'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -671,7 +689,7 @@ declare const getDeliveriesFromUserQuerySchema: z.ZodObject<{
|
|
|
671
689
|
type GetDeliveriesFromUserQueryParams = z.infer<typeof getDeliveriesFromUserQuerySchema>;
|
|
672
690
|
declare const getDeliveriesFromUserInputSchema: z.ZodUndefined;
|
|
673
691
|
type GetDeliveriesFromUserInput = z.infer<typeof getDeliveriesFromUserInputSchema>;
|
|
674
|
-
declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
692
|
+
declare const getDeliveriesFromUserResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
675
693
|
data: z.ZodArray<z.ZodObject<{
|
|
676
694
|
id: z.ZodString;
|
|
677
695
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -690,14 +708,23 @@ declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
|
690
708
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
691
709
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
692
710
|
}, z.core.$strip>;
|
|
693
|
-
}, z.core.$strip
|
|
711
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
712
|
+
id: z.ZodString;
|
|
713
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
714
|
+
deliveryUser: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
715
|
+
currentOrder: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown>>;
|
|
716
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
717
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
718
|
+
createdAt: z.ZodString;
|
|
719
|
+
updatedAt: z.ZodString;
|
|
720
|
+
}, z.core.$strip>>]>;
|
|
694
721
|
type GetDeliveriesFromUserResponse = z.infer<typeof getDeliveriesFromUserResponseSchema>;
|
|
695
722
|
declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliveriesFromUserInputSchema, typeof getDeliveriesFromUserResponseSchema, GetDeliveriesFromUserQueryParams> {
|
|
696
723
|
readonly method: "GET";
|
|
697
724
|
readonly contentType: "application/json";
|
|
698
725
|
readonly accept: "application/json";
|
|
699
726
|
readonly inputSchema: z.ZodUndefined;
|
|
700
|
-
readonly outputSchema: z.ZodObject<{
|
|
727
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
701
728
|
data: z.ZodArray<z.ZodObject<{
|
|
702
729
|
id: z.ZodString;
|
|
703
730
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -716,7 +743,16 @@ declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliver
|
|
|
716
743
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
717
744
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
718
745
|
}, z.core.$strip>;
|
|
719
|
-
}, z.core.$strip
|
|
746
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
747
|
+
id: z.ZodString;
|
|
748
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
749
|
+
deliveryUser: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
750
|
+
currentOrder: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/:id"> | null, unknown>>;
|
|
751
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
752
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
753
|
+
createdAt: z.ZodString;
|
|
754
|
+
updatedAt: z.ZodString;
|
|
755
|
+
}, z.core.$strip>>]>;
|
|
720
756
|
readonly querySchema: z.ZodObject<{
|
|
721
757
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
722
758
|
'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -1276,7 +1312,7 @@ declare const getDeliveryFeesQuerySchema: z.ZodObject<{
|
|
|
1276
1312
|
type GetDeliveryFeesQueryParams = z.infer<typeof getDeliveryFeesQuerySchema>;
|
|
1277
1313
|
declare const getDeliveryFeesInputSchema: z.ZodUndefined;
|
|
1278
1314
|
type GetDeliveryFeesInput = z.infer<typeof getDeliveryFeesInputSchema>;
|
|
1279
|
-
declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
1315
|
+
declare const getDeliveryFeesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1280
1316
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1281
1317
|
amount: z.ZodDefault<z.ZodString>;
|
|
1282
1318
|
netAmount: z.ZodString;
|
|
@@ -1327,14 +1363,55 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1327
1363
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1328
1364
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1329
1365
|
}, z.core.$strip>;
|
|
1330
|
-
}, z.core.$strip
|
|
1366
|
+
}, z.core.$strip>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1367
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1368
|
+
netAmount: z.ZodString;
|
|
1369
|
+
taxAmount: z.ZodString;
|
|
1370
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1371
|
+
createdAt: z.ZodString;
|
|
1372
|
+
updatedAt: z.ZodString;
|
|
1373
|
+
id: z.ZodString;
|
|
1374
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1375
|
+
type: z.ZodLiteral<"amount">;
|
|
1376
|
+
settings: z.ZodObject<{
|
|
1377
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1378
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1379
|
+
}, z.core.$strip>;
|
|
1380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1381
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1382
|
+
netAmount: z.ZodString;
|
|
1383
|
+
taxAmount: z.ZodString;
|
|
1384
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1385
|
+
createdAt: z.ZodString;
|
|
1386
|
+
updatedAt: z.ZodString;
|
|
1387
|
+
id: z.ZodString;
|
|
1388
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1389
|
+
type: z.ZodLiteral<"distance">;
|
|
1390
|
+
settings: z.ZodObject<{
|
|
1391
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1392
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1393
|
+
}, z.core.$strip>;
|
|
1394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1395
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1396
|
+
netAmount: z.ZodString;
|
|
1397
|
+
taxAmount: z.ZodString;
|
|
1398
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1399
|
+
createdAt: z.ZodString;
|
|
1400
|
+
updatedAt: z.ZodString;
|
|
1401
|
+
id: z.ZodString;
|
|
1402
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1403
|
+
type: z.ZodLiteral<"postal_code">;
|
|
1404
|
+
settings: z.ZodObject<{
|
|
1405
|
+
values: z.ZodArray<z.ZodString>;
|
|
1406
|
+
}, z.core.$strip>;
|
|
1407
|
+
}, z.core.$strip>]>>]>;
|
|
1331
1408
|
type GetDeliveryFeesResponse = z.infer<typeof getDeliveryFeesResponseSchema>;
|
|
1332
1409
|
declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesInputSchema, typeof getDeliveryFeesResponseSchema, GetDeliveryFeesQueryParams> {
|
|
1333
1410
|
readonly method: "GET";
|
|
1334
1411
|
readonly contentType: "application/json";
|
|
1335
1412
|
readonly accept: "application/json";
|
|
1336
1413
|
readonly inputSchema: z.ZodUndefined;
|
|
1337
|
-
readonly outputSchema: z.ZodObject<{
|
|
1414
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1338
1415
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1339
1416
|
amount: z.ZodDefault<z.ZodString>;
|
|
1340
1417
|
netAmount: z.ZodString;
|
|
@@ -1385,7 +1462,48 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1385
1462
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1386
1463
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1387
1464
|
}, z.core.$strip>;
|
|
1388
|
-
}, z.core.$strip
|
|
1465
|
+
}, z.core.$strip>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1466
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1467
|
+
netAmount: z.ZodString;
|
|
1468
|
+
taxAmount: z.ZodString;
|
|
1469
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1470
|
+
createdAt: z.ZodString;
|
|
1471
|
+
updatedAt: z.ZodString;
|
|
1472
|
+
id: z.ZodString;
|
|
1473
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1474
|
+
type: z.ZodLiteral<"amount">;
|
|
1475
|
+
settings: z.ZodObject<{
|
|
1476
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1477
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1478
|
+
}, z.core.$strip>;
|
|
1479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1480
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1481
|
+
netAmount: z.ZodString;
|
|
1482
|
+
taxAmount: z.ZodString;
|
|
1483
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1484
|
+
createdAt: z.ZodString;
|
|
1485
|
+
updatedAt: z.ZodString;
|
|
1486
|
+
id: z.ZodString;
|
|
1487
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1488
|
+
type: z.ZodLiteral<"distance">;
|
|
1489
|
+
settings: z.ZodObject<{
|
|
1490
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1491
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1492
|
+
}, z.core.$strip>;
|
|
1493
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1494
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1495
|
+
netAmount: z.ZodString;
|
|
1496
|
+
taxAmount: z.ZodString;
|
|
1497
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1498
|
+
createdAt: z.ZodString;
|
|
1499
|
+
updatedAt: z.ZodString;
|
|
1500
|
+
id: z.ZodString;
|
|
1501
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1502
|
+
type: z.ZodLiteral<"postal_code">;
|
|
1503
|
+
settings: z.ZodObject<{
|
|
1504
|
+
values: z.ZodArray<z.ZodString>;
|
|
1505
|
+
}, z.core.$strip>;
|
|
1506
|
+
}, z.core.$strip>]>>]>;
|
|
1389
1507
|
readonly querySchema: z.ZodObject<{
|
|
1390
1508
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1391
1509
|
asc: "asc";
|
|
@@ -1970,7 +2088,7 @@ declare const getDeliveryPositionsQuerySchema: z.ZodObject<{
|
|
|
1970
2088
|
type GetDeliveryPositionsQueryParams = z.infer<typeof getDeliveryPositionsQuerySchema>;
|
|
1971
2089
|
declare const getDeliveryPositionsInputSchema: z.ZodUndefined;
|
|
1972
2090
|
type GetDeliveryPositionsInput = z.infer<typeof getDeliveryPositionsInputSchema>;
|
|
1973
|
-
declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
2091
|
+
declare const getDeliveryPositionsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1974
2092
|
data: z.ZodArray<z.ZodObject<{
|
|
1975
2093
|
id: z.ZodString;
|
|
1976
2094
|
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
@@ -1989,14 +2107,23 @@ declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
|
1989
2107
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1990
2108
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1991
2109
|
}, z.core.$strip>;
|
|
1992
|
-
}, z.core.$strip
|
|
2110
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2111
|
+
id: z.ZodString;
|
|
2112
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
2113
|
+
position: z.ZodObject<{
|
|
2114
|
+
latitude: z.ZodNumber;
|
|
2115
|
+
longitude: z.ZodNumber;
|
|
2116
|
+
}, z.core.$strip>;
|
|
2117
|
+
createdAt: z.ZodString;
|
|
2118
|
+
updatedAt: z.ZodString;
|
|
2119
|
+
}, z.core.$strip>>]>;
|
|
1993
2120
|
type GetDeliveryPositionsResponse = z.infer<typeof getDeliveryPositionsResponseSchema>;
|
|
1994
2121
|
declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDeliveryPositionsInputSchema, typeof getDeliveryPositionsResponseSchema, GetDeliveryPositionsQueryParams> {
|
|
1995
2122
|
readonly method: "GET";
|
|
1996
2123
|
readonly contentType: "application/json";
|
|
1997
2124
|
readonly accept: "application/json";
|
|
1998
2125
|
readonly inputSchema: z.ZodUndefined;
|
|
1999
|
-
readonly outputSchema: z.ZodObject<{
|
|
2126
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2000
2127
|
data: z.ZodArray<z.ZodObject<{
|
|
2001
2128
|
id: z.ZodString;
|
|
2002
2129
|
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
@@ -2015,7 +2142,16 @@ declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDelivery
|
|
|
2015
2142
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2016
2143
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2017
2144
|
}, z.core.$strip>;
|
|
2018
|
-
}, z.core.$strip
|
|
2145
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2146
|
+
id: z.ZodString;
|
|
2147
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
2148
|
+
position: z.ZodObject<{
|
|
2149
|
+
latitude: z.ZodNumber;
|
|
2150
|
+
longitude: z.ZodNumber;
|
|
2151
|
+
}, z.core.$strip>;
|
|
2152
|
+
createdAt: z.ZodString;
|
|
2153
|
+
updatedAt: z.ZodString;
|
|
2154
|
+
}, z.core.$strip>>]>;
|
|
2019
2155
|
readonly querySchema: z.ZodObject<{
|
|
2020
2156
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2021
2157
|
asc: "asc";
|
package/dist/index.js
CHANGED
|
@@ -11426,10 +11426,10 @@ var EndDelivery = class extends AbstractApiRequest4 {
|
|
|
11426
11426
|
|
|
11427
11427
|
// src/requests/deliveries/GetDeliveries.ts
|
|
11428
11428
|
import { AbstractApiRequest as AbstractApiRequest5 } from "@deliverart/sdk-js-core";
|
|
11429
|
-
import {
|
|
11429
|
+
import { mixedPaginationSchema } from "@deliverart/sdk-js-global-types";
|
|
11430
11430
|
var getDeliveriesQuerySchema = deliveriesQuerySchema;
|
|
11431
11431
|
var getDeliveriesInputSchema = external_exports.undefined();
|
|
11432
|
-
var getDeliveriesResponseSchema =
|
|
11432
|
+
var getDeliveriesResponseSchema = mixedPaginationSchema(deliverySchema);
|
|
11433
11433
|
var GetDeliveries = class extends AbstractApiRequest5 {
|
|
11434
11434
|
constructor(options) {
|
|
11435
11435
|
super(void 0, options);
|
|
@@ -11451,10 +11451,10 @@ var GetDeliveries = class extends AbstractApiRequest5 {
|
|
|
11451
11451
|
|
|
11452
11452
|
// src/requests/deliveries/GetDeliveriesFromUser.ts
|
|
11453
11453
|
import { AbstractApiRequest as AbstractApiRequest6 } from "@deliverart/sdk-js-core";
|
|
11454
|
-
import {
|
|
11454
|
+
import { mixedPaginationSchema as mixedPaginationSchema2 } from "@deliverart/sdk-js-global-types";
|
|
11455
11455
|
var getDeliveriesFromUserQuerySchema = deliveriesQuerySchema;
|
|
11456
11456
|
var getDeliveriesFromUserInputSchema = external_exports.undefined();
|
|
11457
|
-
var getDeliveriesFromUserResponseSchema =
|
|
11457
|
+
var getDeliveriesFromUserResponseSchema = mixedPaginationSchema2(deliverySchema);
|
|
11458
11458
|
var GetDeliveriesFromUser = class extends AbstractApiRequest6 {
|
|
11459
11459
|
constructor(userId, options) {
|
|
11460
11460
|
super(void 0, options);
|
|
@@ -11647,10 +11647,10 @@ var GetDeliveryFeeDetails = class extends AbstractApiRequest14 {
|
|
|
11647
11647
|
|
|
11648
11648
|
// src/requests/delivery_fees/GetDeliveryFees.ts
|
|
11649
11649
|
import { AbstractApiRequest as AbstractApiRequest15 } from "@deliverart/sdk-js-core";
|
|
11650
|
-
import {
|
|
11650
|
+
import { mixedPaginationSchema as mixedPaginationSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11651
11651
|
var getDeliveryFeesQuerySchema = deliveryFeesQuerySchema;
|
|
11652
11652
|
var getDeliveryFeesInputSchema = external_exports.undefined();
|
|
11653
|
-
var getDeliveryFeesResponseSchema =
|
|
11653
|
+
var getDeliveryFeesResponseSchema = mixedPaginationSchema3(deliveryFeeListItemSchema);
|
|
11654
11654
|
var GetDeliveryFees = class extends AbstractApiRequest15 {
|
|
11655
11655
|
constructor(options) {
|
|
11656
11656
|
super(void 0, options);
|
|
@@ -11779,10 +11779,10 @@ var GetDeliveryPositionDetails = class extends AbstractApiRequest20 {
|
|
|
11779
11779
|
|
|
11780
11780
|
// src/requests/delivery_positions/GetDeliveryPositions.ts
|
|
11781
11781
|
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
11782
|
-
import {
|
|
11782
|
+
import { mixedPaginationSchema as mixedPaginationSchema4 } from "@deliverart/sdk-js-global-types";
|
|
11783
11783
|
var getDeliveryPositionsQuerySchema = deliveryPositionsQuerySchema;
|
|
11784
11784
|
var getDeliveryPositionsInputSchema = external_exports.undefined();
|
|
11785
|
-
var getDeliveryPositionsResponseSchema =
|
|
11785
|
+
var getDeliveryPositionsResponseSchema = mixedPaginationSchema4(deliveryPositionSchema);
|
|
11786
11786
|
var GetDeliveryPositions = class extends AbstractApiRequest21 {
|
|
11787
11787
|
constructor(options) {
|
|
11788
11788
|
super(void 0, options);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-delivery",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Delivery Management",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.6.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.6.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.6.
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.6.1",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.6.1",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.6.1",
|
|
24
|
+
"@deliverart/sdk-js-order": "2.6.1",
|
|
25
|
+
"@deliverart/sdk-js-user": "2.6.1"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|