@deliverart/sdk-js-delivery 2.6.1 → 2.6.3
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 +16 -152
- package/dist/index.d.ts +16 -152
- 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.createPaginatedSchema)(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.createPaginatedSchema)(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.createPaginatedSchema)(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.createPaginatedSchema)(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.
|
|
523
|
+
declare const getDeliveriesResponseSchema: 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,23 +539,14 @@ declare const getDeliveriesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
539
539
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
540
540
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
541
541
|
}, z.core.$strip>;
|
|
542
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
542
|
+
}, z.core.$strip>;
|
|
552
543
|
type GetDeliveriesResponse = z.infer<typeof getDeliveriesResponseSchema>;
|
|
553
544
|
declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInputSchema, typeof getDeliveriesResponseSchema, GetDeliveriesQueryParams> {
|
|
554
545
|
readonly method: "GET";
|
|
555
546
|
readonly contentType: "application/json";
|
|
556
547
|
readonly accept: "application/json";
|
|
557
548
|
readonly inputSchema: z.ZodUndefined;
|
|
558
|
-
readonly outputSchema: z.
|
|
549
|
+
readonly outputSchema: z.ZodObject<{
|
|
559
550
|
data: z.ZodArray<z.ZodObject<{
|
|
560
551
|
id: z.ZodString;
|
|
561
552
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -574,16 +565,7 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
|
|
|
574
565
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
575
566
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
576
567
|
}, z.core.$strip>;
|
|
577
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
568
|
+
}, z.core.$strip>;
|
|
587
569
|
readonly querySchema: z.ZodObject<{
|
|
588
570
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
589
571
|
'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -689,7 +671,7 @@ declare const getDeliveriesFromUserQuerySchema: z.ZodObject<{
|
|
|
689
671
|
type GetDeliveriesFromUserQueryParams = z.infer<typeof getDeliveriesFromUserQuerySchema>;
|
|
690
672
|
declare const getDeliveriesFromUserInputSchema: z.ZodUndefined;
|
|
691
673
|
type GetDeliveriesFromUserInput = z.infer<typeof getDeliveriesFromUserInputSchema>;
|
|
692
|
-
declare const getDeliveriesFromUserResponseSchema: z.
|
|
674
|
+
declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
693
675
|
data: z.ZodArray<z.ZodObject<{
|
|
694
676
|
id: z.ZodString;
|
|
695
677
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -708,23 +690,14 @@ declare const getDeliveriesFromUserResponseSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
708
690
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
709
691
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
710
692
|
}, z.core.$strip>;
|
|
711
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
693
|
+
}, z.core.$strip>;
|
|
721
694
|
type GetDeliveriesFromUserResponse = z.infer<typeof getDeliveriesFromUserResponseSchema>;
|
|
722
695
|
declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliveriesFromUserInputSchema, typeof getDeliveriesFromUserResponseSchema, GetDeliveriesFromUserQueryParams> {
|
|
723
696
|
readonly method: "GET";
|
|
724
697
|
readonly contentType: "application/json";
|
|
725
698
|
readonly accept: "application/json";
|
|
726
699
|
readonly inputSchema: z.ZodUndefined;
|
|
727
|
-
readonly outputSchema: z.
|
|
700
|
+
readonly outputSchema: z.ZodObject<{
|
|
728
701
|
data: z.ZodArray<z.ZodObject<{
|
|
729
702
|
id: z.ZodString;
|
|
730
703
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -743,16 +716,7 @@ declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliver
|
|
|
743
716
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
744
717
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
745
718
|
}, z.core.$strip>;
|
|
746
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
719
|
+
}, z.core.$strip>;
|
|
756
720
|
readonly querySchema: z.ZodObject<{
|
|
757
721
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
758
722
|
'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -1312,7 +1276,7 @@ declare const getDeliveryFeesQuerySchema: z.ZodObject<{
|
|
|
1312
1276
|
type GetDeliveryFeesQueryParams = z.infer<typeof getDeliveryFeesQuerySchema>;
|
|
1313
1277
|
declare const getDeliveryFeesInputSchema: z.ZodUndefined;
|
|
1314
1278
|
type GetDeliveryFeesInput = z.infer<typeof getDeliveryFeesInputSchema>;
|
|
1315
|
-
declare const getDeliveryFeesResponseSchema: z.
|
|
1279
|
+
declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
1316
1280
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1317
1281
|
amount: z.ZodDefault<z.ZodString>;
|
|
1318
1282
|
netAmount: z.ZodString;
|
|
@@ -1363,55 +1327,14 @@ declare const getDeliveryFeesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1363
1327
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1364
1328
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1365
1329
|
}, z.core.$strip>;
|
|
1366
|
-
}, z.core.$strip
|
|
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>]>>]>;
|
|
1330
|
+
}, z.core.$strip>;
|
|
1408
1331
|
type GetDeliveryFeesResponse = z.infer<typeof getDeliveryFeesResponseSchema>;
|
|
1409
1332
|
declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesInputSchema, typeof getDeliveryFeesResponseSchema, GetDeliveryFeesQueryParams> {
|
|
1410
1333
|
readonly method: "GET";
|
|
1411
1334
|
readonly contentType: "application/json";
|
|
1412
1335
|
readonly accept: "application/json";
|
|
1413
1336
|
readonly inputSchema: z.ZodUndefined;
|
|
1414
|
-
readonly outputSchema: z.
|
|
1337
|
+
readonly outputSchema: z.ZodObject<{
|
|
1415
1338
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1416
1339
|
amount: z.ZodDefault<z.ZodString>;
|
|
1417
1340
|
netAmount: z.ZodString;
|
|
@@ -1462,48 +1385,7 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1462
1385
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1463
1386
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1464
1387
|
}, z.core.$strip>;
|
|
1465
|
-
}, z.core.$strip
|
|
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>]>>]>;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1507
1389
|
readonly querySchema: z.ZodObject<{
|
|
1508
1390
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1509
1391
|
asc: "asc";
|
|
@@ -2088,7 +1970,7 @@ declare const getDeliveryPositionsQuerySchema: z.ZodObject<{
|
|
|
2088
1970
|
type GetDeliveryPositionsQueryParams = z.infer<typeof getDeliveryPositionsQuerySchema>;
|
|
2089
1971
|
declare const getDeliveryPositionsInputSchema: z.ZodUndefined;
|
|
2090
1972
|
type GetDeliveryPositionsInput = z.infer<typeof getDeliveryPositionsInputSchema>;
|
|
2091
|
-
declare const getDeliveryPositionsResponseSchema: z.
|
|
1973
|
+
declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
2092
1974
|
data: z.ZodArray<z.ZodObject<{
|
|
2093
1975
|
id: z.ZodString;
|
|
2094
1976
|
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
@@ -2107,23 +1989,14 @@ declare const getDeliveryPositionsResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
2107
1989
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2108
1990
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2109
1991
|
}, z.core.$strip>;
|
|
2110
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
1992
|
+
}, z.core.$strip>;
|
|
2120
1993
|
type GetDeliveryPositionsResponse = z.infer<typeof getDeliveryPositionsResponseSchema>;
|
|
2121
1994
|
declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDeliveryPositionsInputSchema, typeof getDeliveryPositionsResponseSchema, GetDeliveryPositionsQueryParams> {
|
|
2122
1995
|
readonly method: "GET";
|
|
2123
1996
|
readonly contentType: "application/json";
|
|
2124
1997
|
readonly accept: "application/json";
|
|
2125
1998
|
readonly inputSchema: z.ZodUndefined;
|
|
2126
|
-
readonly outputSchema: z.
|
|
1999
|
+
readonly outputSchema: z.ZodObject<{
|
|
2127
2000
|
data: z.ZodArray<z.ZodObject<{
|
|
2128
2001
|
id: z.ZodString;
|
|
2129
2002
|
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
@@ -2142,16 +2015,7 @@ declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDelivery
|
|
|
2142
2015
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2143
2016
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2144
2017
|
}, z.core.$strip>;
|
|
2145
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
2018
|
+
}, z.core.$strip>;
|
|
2155
2019
|
readonly querySchema: z.ZodObject<{
|
|
2156
2020
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2157
2021
|
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.
|
|
523
|
+
declare const getDeliveriesResponseSchema: 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,23 +539,14 @@ declare const getDeliveriesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
539
539
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
540
540
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
541
541
|
}, z.core.$strip>;
|
|
542
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
542
|
+
}, z.core.$strip>;
|
|
552
543
|
type GetDeliveriesResponse = z.infer<typeof getDeliveriesResponseSchema>;
|
|
553
544
|
declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInputSchema, typeof getDeliveriesResponseSchema, GetDeliveriesQueryParams> {
|
|
554
545
|
readonly method: "GET";
|
|
555
546
|
readonly contentType: "application/json";
|
|
556
547
|
readonly accept: "application/json";
|
|
557
548
|
readonly inputSchema: z.ZodUndefined;
|
|
558
|
-
readonly outputSchema: z.
|
|
549
|
+
readonly outputSchema: z.ZodObject<{
|
|
559
550
|
data: z.ZodArray<z.ZodObject<{
|
|
560
551
|
id: z.ZodString;
|
|
561
552
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -574,16 +565,7 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
|
|
|
574
565
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
575
566
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
576
567
|
}, z.core.$strip>;
|
|
577
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
568
|
+
}, z.core.$strip>;
|
|
587
569
|
readonly querySchema: z.ZodObject<{
|
|
588
570
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
589
571
|
'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -689,7 +671,7 @@ declare const getDeliveriesFromUserQuerySchema: z.ZodObject<{
|
|
|
689
671
|
type GetDeliveriesFromUserQueryParams = z.infer<typeof getDeliveriesFromUserQuerySchema>;
|
|
690
672
|
declare const getDeliveriesFromUserInputSchema: z.ZodUndefined;
|
|
691
673
|
type GetDeliveriesFromUserInput = z.infer<typeof getDeliveriesFromUserInputSchema>;
|
|
692
|
-
declare const getDeliveriesFromUserResponseSchema: z.
|
|
674
|
+
declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
693
675
|
data: z.ZodArray<z.ZodObject<{
|
|
694
676
|
id: z.ZodString;
|
|
695
677
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -708,23 +690,14 @@ declare const getDeliveriesFromUserResponseSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
708
690
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
709
691
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
710
692
|
}, z.core.$strip>;
|
|
711
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
693
|
+
}, z.core.$strip>;
|
|
721
694
|
type GetDeliveriesFromUserResponse = z.infer<typeof getDeliveriesFromUserResponseSchema>;
|
|
722
695
|
declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliveriesFromUserInputSchema, typeof getDeliveriesFromUserResponseSchema, GetDeliveriesFromUserQueryParams> {
|
|
723
696
|
readonly method: "GET";
|
|
724
697
|
readonly contentType: "application/json";
|
|
725
698
|
readonly accept: "application/json";
|
|
726
699
|
readonly inputSchema: z.ZodUndefined;
|
|
727
|
-
readonly outputSchema: z.
|
|
700
|
+
readonly outputSchema: z.ZodObject<{
|
|
728
701
|
data: z.ZodArray<z.ZodObject<{
|
|
729
702
|
id: z.ZodString;
|
|
730
703
|
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
@@ -743,16 +716,7 @@ declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliver
|
|
|
743
716
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
744
717
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
745
718
|
}, z.core.$strip>;
|
|
746
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
719
|
+
}, z.core.$strip>;
|
|
756
720
|
readonly querySchema: z.ZodObject<{
|
|
757
721
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
758
722
|
'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -1312,7 +1276,7 @@ declare const getDeliveryFeesQuerySchema: z.ZodObject<{
|
|
|
1312
1276
|
type GetDeliveryFeesQueryParams = z.infer<typeof getDeliveryFeesQuerySchema>;
|
|
1313
1277
|
declare const getDeliveryFeesInputSchema: z.ZodUndefined;
|
|
1314
1278
|
type GetDeliveryFeesInput = z.infer<typeof getDeliveryFeesInputSchema>;
|
|
1315
|
-
declare const getDeliveryFeesResponseSchema: z.
|
|
1279
|
+
declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
1316
1280
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1317
1281
|
amount: z.ZodDefault<z.ZodString>;
|
|
1318
1282
|
netAmount: z.ZodString;
|
|
@@ -1363,55 +1327,14 @@ declare const getDeliveryFeesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1363
1327
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1364
1328
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1365
1329
|
}, z.core.$strip>;
|
|
1366
|
-
}, z.core.$strip
|
|
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>]>>]>;
|
|
1330
|
+
}, z.core.$strip>;
|
|
1408
1331
|
type GetDeliveryFeesResponse = z.infer<typeof getDeliveryFeesResponseSchema>;
|
|
1409
1332
|
declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesInputSchema, typeof getDeliveryFeesResponseSchema, GetDeliveryFeesQueryParams> {
|
|
1410
1333
|
readonly method: "GET";
|
|
1411
1334
|
readonly contentType: "application/json";
|
|
1412
1335
|
readonly accept: "application/json";
|
|
1413
1336
|
readonly inputSchema: z.ZodUndefined;
|
|
1414
|
-
readonly outputSchema: z.
|
|
1337
|
+
readonly outputSchema: z.ZodObject<{
|
|
1415
1338
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1416
1339
|
amount: z.ZodDefault<z.ZodString>;
|
|
1417
1340
|
netAmount: z.ZodString;
|
|
@@ -1462,48 +1385,7 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1462
1385
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1463
1386
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1464
1387
|
}, z.core.$strip>;
|
|
1465
|
-
}, z.core.$strip
|
|
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>]>>]>;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1507
1389
|
readonly querySchema: z.ZodObject<{
|
|
1508
1390
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1509
1391
|
asc: "asc";
|
|
@@ -2088,7 +1970,7 @@ declare const getDeliveryPositionsQuerySchema: z.ZodObject<{
|
|
|
2088
1970
|
type GetDeliveryPositionsQueryParams = z.infer<typeof getDeliveryPositionsQuerySchema>;
|
|
2089
1971
|
declare const getDeliveryPositionsInputSchema: z.ZodUndefined;
|
|
2090
1972
|
type GetDeliveryPositionsInput = z.infer<typeof getDeliveryPositionsInputSchema>;
|
|
2091
|
-
declare const getDeliveryPositionsResponseSchema: z.
|
|
1973
|
+
declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
2092
1974
|
data: z.ZodArray<z.ZodObject<{
|
|
2093
1975
|
id: z.ZodString;
|
|
2094
1976
|
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
@@ -2107,23 +1989,14 @@ declare const getDeliveryPositionsResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
2107
1989
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2108
1990
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2109
1991
|
}, z.core.$strip>;
|
|
2110
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
1992
|
+
}, z.core.$strip>;
|
|
2120
1993
|
type GetDeliveryPositionsResponse = z.infer<typeof getDeliveryPositionsResponseSchema>;
|
|
2121
1994
|
declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDeliveryPositionsInputSchema, typeof getDeliveryPositionsResponseSchema, GetDeliveryPositionsQueryParams> {
|
|
2122
1995
|
readonly method: "GET";
|
|
2123
1996
|
readonly contentType: "application/json";
|
|
2124
1997
|
readonly accept: "application/json";
|
|
2125
1998
|
readonly inputSchema: z.ZodUndefined;
|
|
2126
|
-
readonly outputSchema: z.
|
|
1999
|
+
readonly outputSchema: z.ZodObject<{
|
|
2127
2000
|
data: z.ZodArray<z.ZodObject<{
|
|
2128
2001
|
id: z.ZodString;
|
|
2129
2002
|
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
@@ -2142,16 +2015,7 @@ declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDelivery
|
|
|
2142
2015
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2143
2016
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2144
2017
|
}, z.core.$strip>;
|
|
2145
|
-
}, z.core.$strip
|
|
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>>]>;
|
|
2018
|
+
}, z.core.$strip>;
|
|
2155
2019
|
readonly querySchema: z.ZodObject<{
|
|
2156
2020
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2157
2021
|
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 { createPaginatedSchema } from "@deliverart/sdk-js-global-types";
|
|
11430
11430
|
var getDeliveriesQuerySchema = deliveriesQuerySchema;
|
|
11431
11431
|
var getDeliveriesInputSchema = external_exports.undefined();
|
|
11432
|
-
var getDeliveriesResponseSchema =
|
|
11432
|
+
var getDeliveriesResponseSchema = createPaginatedSchema(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 { createPaginatedSchema as createPaginatedSchema2 } from "@deliverart/sdk-js-global-types";
|
|
11455
11455
|
var getDeliveriesFromUserQuerySchema = deliveriesQuerySchema;
|
|
11456
11456
|
var getDeliveriesFromUserInputSchema = external_exports.undefined();
|
|
11457
|
-
var getDeliveriesFromUserResponseSchema =
|
|
11457
|
+
var getDeliveriesFromUserResponseSchema = createPaginatedSchema2(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 { createPaginatedSchema as createPaginatedSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11651
11651
|
var getDeliveryFeesQuerySchema = deliveryFeesQuerySchema;
|
|
11652
11652
|
var getDeliveryFeesInputSchema = external_exports.undefined();
|
|
11653
|
-
var getDeliveryFeesResponseSchema =
|
|
11653
|
+
var getDeliveryFeesResponseSchema = createPaginatedSchema3(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 { createPaginatedSchema as createPaginatedSchema4 } from "@deliverart/sdk-js-global-types";
|
|
11783
11783
|
var getDeliveryPositionsQuerySchema = deliveryPositionsQuerySchema;
|
|
11784
11784
|
var getDeliveryPositionsInputSchema = external_exports.undefined();
|
|
11785
|
-
var getDeliveryPositionsResponseSchema =
|
|
11785
|
+
var getDeliveryPositionsResponseSchema = createPaginatedSchema4(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.3",
|
|
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-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-order": "2.6.
|
|
25
|
-
"@deliverart/sdk-js-user": "2.6.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.6.3",
|
|
22
|
+
"@deliverart/sdk-js-point-of-sale": "2.6.3",
|
|
23
|
+
"@deliverart/sdk-js-global-types": "2.6.3",
|
|
24
|
+
"@deliverart/sdk-js-order": "2.6.3",
|
|
25
|
+
"@deliverart/sdk-js-user": "2.6.3"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|