@deliverart/sdk-js-delivery 2.5.34 → 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.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 { DeliveryFeeType, deliveryFeeTypeSchema, deliveryFeeTypes } from '@deliverart/sdk-js-global-types';
4
3
  import { z } from 'zod';
5
4
  import { AbstractApiRequest } from '@deliverart/sdk-js-core';
@@ -521,7 +520,7 @@ declare const getDeliveriesQuerySchema: z.ZodObject<{
521
520
  type GetDeliveriesQueryParams = z.infer<typeof getDeliveriesQuerySchema>;
522
521
  declare const getDeliveriesInputSchema: z.ZodUndefined;
523
522
  type GetDeliveriesInput = z.infer<typeof getDeliveriesInputSchema>;
524
- declare const getDeliveriesResponseSchema: z.ZodObject<{
523
+ declare const getDeliveriesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
525
524
  data: z.ZodArray<z.ZodObject<{
526
525
  id: z.ZodString;
527
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>>;
@@ -540,14 +539,23 @@ declare const getDeliveriesResponseSchema: z.ZodObject<{
540
539
  currentPage: z.ZodCoercedNumber<unknown>;
541
540
  lastPage: z.ZodCoercedNumber<unknown>;
542
541
  }, z.core.$strip>;
543
- }, 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>>]>;
544
552
  type GetDeliveriesResponse = z.infer<typeof getDeliveriesResponseSchema>;
545
553
  declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInputSchema, typeof getDeliveriesResponseSchema, GetDeliveriesQueryParams> {
546
- readonly method = "GET";
547
- readonly contentType = "application/json";
548
- readonly accept = "application/json";
554
+ readonly method: "GET";
555
+ readonly contentType: "application/json";
556
+ readonly accept: "application/json";
549
557
  readonly inputSchema: z.ZodUndefined;
550
- readonly outputSchema: z.ZodObject<{
558
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
551
559
  data: z.ZodArray<z.ZodObject<{
552
560
  id: z.ZodString;
553
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>>;
@@ -566,7 +574,16 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
566
574
  currentPage: z.ZodCoercedNumber<unknown>;
567
575
  lastPage: z.ZodCoercedNumber<unknown>;
568
576
  }, z.core.$strip>;
569
- }, 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>>]>;
570
587
  readonly querySchema: z.ZodObject<{
571
588
  'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
572
589
  'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
@@ -610,11 +627,21 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
610
627
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
611
628
  }, z.core.$strip>;
612
629
  readonly headersSchema: undefined;
630
+ readonly listItemSchema: z.ZodObject<{
631
+ id: z.ZodString;
632
+ bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
633
+ 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>>;
634
+ 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>>;
635
+ startedAt: z.ZodNullable<z.ZodString>;
636
+ endedAt: z.ZodNullable<z.ZodString>;
637
+ createdAt: z.ZodString;
638
+ updatedAt: z.ZodString;
639
+ }, z.core.$strip>;
640
+ readonly paginationDefaultEnabled = true;
613
641
  constructor(options?: {
614
642
  query?: DeliveriesQueryParams;
615
643
  });
616
644
  getPath(): string;
617
- parseResponse(data: unknown, rawResponse: Response): Paginated<Delivery>;
618
645
  }
619
646
 
620
647
  declare const getDeliveriesFromUserQuerySchema: z.ZodObject<{
@@ -662,7 +689,7 @@ declare const getDeliveriesFromUserQuerySchema: z.ZodObject<{
662
689
  type GetDeliveriesFromUserQueryParams = z.infer<typeof getDeliveriesFromUserQuerySchema>;
663
690
  declare const getDeliveriesFromUserInputSchema: z.ZodUndefined;
664
691
  type GetDeliveriesFromUserInput = z.infer<typeof getDeliveriesFromUserInputSchema>;
665
- declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
692
+ declare const getDeliveriesFromUserResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
666
693
  data: z.ZodArray<z.ZodObject<{
667
694
  id: z.ZodString;
668
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>>;
@@ -681,14 +708,23 @@ declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
681
708
  currentPage: z.ZodCoercedNumber<unknown>;
682
709
  lastPage: z.ZodCoercedNumber<unknown>;
683
710
  }, z.core.$strip>;
684
- }, 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>>]>;
685
721
  type GetDeliveriesFromUserResponse = z.infer<typeof getDeliveriesFromUserResponseSchema>;
686
722
  declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliveriesFromUserInputSchema, typeof getDeliveriesFromUserResponseSchema, GetDeliveriesFromUserQueryParams> {
687
- readonly method = "GET";
688
- readonly contentType = "application/json";
689
- readonly accept = "application/json";
723
+ readonly method: "GET";
724
+ readonly contentType: "application/json";
725
+ readonly accept: "application/json";
690
726
  readonly inputSchema: z.ZodUndefined;
691
- readonly outputSchema: z.ZodObject<{
727
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
692
728
  data: z.ZodArray<z.ZodObject<{
693
729
  id: z.ZodString;
694
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>>;
@@ -707,7 +743,16 @@ declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliver
707
743
  currentPage: z.ZodCoercedNumber<unknown>;
708
744
  lastPage: z.ZodCoercedNumber<unknown>;
709
745
  }, z.core.$strip>;
710
- }, 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>>]>;
711
756
  readonly querySchema: z.ZodObject<{
712
757
  'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
713
758
  'exists[startedAt]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
@@ -751,12 +796,22 @@ declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliver
751
796
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
752
797
  }, z.core.$strip>;
753
798
  readonly headersSchema: undefined;
799
+ readonly listItemSchema: z.ZodObject<{
800
+ id: z.ZodString;
801
+ bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
802
+ 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>>;
803
+ 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>>;
804
+ startedAt: z.ZodNullable<z.ZodString>;
805
+ endedAt: z.ZodNullable<z.ZodString>;
806
+ createdAt: z.ZodString;
807
+ updatedAt: z.ZodString;
808
+ }, z.core.$strip>;
809
+ readonly paginationDefaultEnabled = true;
754
810
  private readonly userId;
755
811
  constructor(userId: string, options?: {
756
812
  query?: DeliveriesQueryParams;
757
813
  });
758
814
  getPath(): string;
759
- parseResponse(data: unknown, rawResponse: Response): Paginated<Delivery>;
760
815
  }
761
816
 
762
817
  declare const getDeliveryDetailsInputSchema: z.ZodUndefined;
@@ -1257,7 +1312,7 @@ declare const getDeliveryFeesQuerySchema: z.ZodObject<{
1257
1312
  type GetDeliveryFeesQueryParams = z.infer<typeof getDeliveryFeesQuerySchema>;
1258
1313
  declare const getDeliveryFeesInputSchema: z.ZodUndefined;
1259
1314
  type GetDeliveryFeesInput = z.infer<typeof getDeliveryFeesInputSchema>;
1260
- declare const getDeliveryFeesResponseSchema: z.ZodObject<{
1315
+ declare const getDeliveryFeesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1261
1316
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1262
1317
  amount: z.ZodDefault<z.ZodString>;
1263
1318
  netAmount: z.ZodString;
@@ -1308,14 +1363,55 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
1308
1363
  currentPage: z.ZodCoercedNumber<unknown>;
1309
1364
  lastPage: z.ZodCoercedNumber<unknown>;
1310
1365
  }, z.core.$strip>;
1311
- }, 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>]>>]>;
1312
1408
  type GetDeliveryFeesResponse = z.infer<typeof getDeliveryFeesResponseSchema>;
1313
1409
  declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesInputSchema, typeof getDeliveryFeesResponseSchema, GetDeliveryFeesQueryParams> {
1314
- readonly method = "GET";
1315
- readonly contentType = "application/json";
1316
- readonly accept = "application/json";
1410
+ readonly method: "GET";
1411
+ readonly contentType: "application/json";
1412
+ readonly accept: "application/json";
1317
1413
  readonly inputSchema: z.ZodUndefined;
1318
- readonly outputSchema: z.ZodObject<{
1414
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1319
1415
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1320
1416
  amount: z.ZodDefault<z.ZodString>;
1321
1417
  netAmount: z.ZodString;
@@ -1366,7 +1462,48 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
1366
1462
  currentPage: z.ZodCoercedNumber<unknown>;
1367
1463
  lastPage: z.ZodCoercedNumber<unknown>;
1368
1464
  }, z.core.$strip>;
1369
- }, 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>]>>]>;
1370
1507
  readonly querySchema: z.ZodObject<{
1371
1508
  'order[createdAt]': z.ZodOptional<z.ZodEnum<{
1372
1509
  asc: "asc";
@@ -1409,11 +1546,53 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
1409
1546
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1410
1547
  }, z.core.$strip>;
1411
1548
  readonly headersSchema: undefined;
1549
+ readonly listItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1550
+ amount: z.ZodDefault<z.ZodString>;
1551
+ netAmount: z.ZodString;
1552
+ taxAmount: z.ZodString;
1553
+ taxRate: z.ZodCoercedNumber<unknown>;
1554
+ createdAt: z.ZodString;
1555
+ updatedAt: z.ZodString;
1556
+ id: z.ZodString;
1557
+ 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>>>;
1558
+ type: z.ZodLiteral<"amount">;
1559
+ settings: z.ZodObject<{
1560
+ min: z.ZodCoercedNumber<unknown>;
1561
+ max: z.ZodCoercedNumber<unknown>;
1562
+ }, z.core.$strip>;
1563
+ }, z.core.$strip>, z.ZodObject<{
1564
+ amount: z.ZodDefault<z.ZodString>;
1565
+ netAmount: z.ZodString;
1566
+ taxAmount: z.ZodString;
1567
+ taxRate: z.ZodCoercedNumber<unknown>;
1568
+ createdAt: z.ZodString;
1569
+ updatedAt: z.ZodString;
1570
+ id: z.ZodString;
1571
+ 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>>>;
1572
+ type: z.ZodLiteral<"distance">;
1573
+ settings: z.ZodObject<{
1574
+ min: z.ZodCoercedNumber<unknown>;
1575
+ max: z.ZodCoercedNumber<unknown>;
1576
+ }, z.core.$strip>;
1577
+ }, z.core.$strip>, z.ZodObject<{
1578
+ amount: z.ZodDefault<z.ZodString>;
1579
+ netAmount: z.ZodString;
1580
+ taxAmount: z.ZodString;
1581
+ taxRate: z.ZodCoercedNumber<unknown>;
1582
+ createdAt: z.ZodString;
1583
+ updatedAt: z.ZodString;
1584
+ id: z.ZodString;
1585
+ 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>>>;
1586
+ type: z.ZodLiteral<"postal_code">;
1587
+ settings: z.ZodObject<{
1588
+ values: z.ZodArray<z.ZodString>;
1589
+ }, z.core.$strip>;
1590
+ }, z.core.$strip>]>;
1591
+ readonly paginationDefaultEnabled = true;
1412
1592
  constructor(options?: {
1413
1593
  query?: DeliveryFeesQueryParams;
1414
1594
  });
1415
1595
  getPath(): string;
1416
- parseResponse(data: unknown, rawResponse: Response): Paginated<DeliveryFeeListItem>;
1417
1596
  }
1418
1597
 
1419
1598
  declare const getDeliveryFeesFromPointOfSaleQuerySchema: z.ZodObject<{
@@ -1504,9 +1683,9 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
1504
1683
  }, z.core.$strip>]>>;
1505
1684
  type GetDeliveryFeesFromPointOfSaleResponse = z.infer<typeof getDeliveryFeesFromPointOfSaleResponseSchema>;
1506
1685
  declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof getDeliveryFeesFromPointOfSaleInputSchema, typeof getDeliveryFeesFromPointOfSaleResponseSchema, GetDeliveryFeesFromPointOfSaleQueryParams> {
1507
- readonly method = "GET";
1508
- readonly contentType = "application/json";
1509
- readonly accept = "application/json";
1686
+ readonly method: "GET";
1687
+ readonly contentType: "application/json";
1688
+ readonly accept: "application/json";
1510
1689
  readonly inputSchema: z.ZodUndefined;
1511
1690
  readonly outputSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1512
1691
  amount: z.ZodDefault<z.ZodString>;
@@ -1592,12 +1771,54 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
1592
1771
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1593
1772
  }, z.core.$strip>;
1594
1773
  readonly headersSchema: undefined;
1774
+ readonly listItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1775
+ amount: z.ZodDefault<z.ZodString>;
1776
+ netAmount: z.ZodString;
1777
+ taxAmount: z.ZodString;
1778
+ taxRate: z.ZodCoercedNumber<unknown>;
1779
+ createdAt: z.ZodString;
1780
+ updatedAt: z.ZodString;
1781
+ id: z.ZodString;
1782
+ 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>>>;
1783
+ type: z.ZodLiteral<"amount">;
1784
+ settings: z.ZodObject<{
1785
+ min: z.ZodCoercedNumber<unknown>;
1786
+ max: z.ZodCoercedNumber<unknown>;
1787
+ }, z.core.$strip>;
1788
+ }, z.core.$strip>, z.ZodObject<{
1789
+ amount: z.ZodDefault<z.ZodString>;
1790
+ netAmount: z.ZodString;
1791
+ taxAmount: z.ZodString;
1792
+ taxRate: z.ZodCoercedNumber<unknown>;
1793
+ createdAt: z.ZodString;
1794
+ updatedAt: z.ZodString;
1795
+ id: z.ZodString;
1796
+ 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>>>;
1797
+ type: z.ZodLiteral<"distance">;
1798
+ settings: z.ZodObject<{
1799
+ min: z.ZodCoercedNumber<unknown>;
1800
+ max: z.ZodCoercedNumber<unknown>;
1801
+ }, z.core.$strip>;
1802
+ }, z.core.$strip>, z.ZodObject<{
1803
+ amount: z.ZodDefault<z.ZodString>;
1804
+ netAmount: z.ZodString;
1805
+ taxAmount: z.ZodString;
1806
+ taxRate: z.ZodCoercedNumber<unknown>;
1807
+ createdAt: z.ZodString;
1808
+ updatedAt: z.ZodString;
1809
+ id: z.ZodString;
1810
+ 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>>>;
1811
+ type: z.ZodLiteral<"postal_code">;
1812
+ settings: z.ZodObject<{
1813
+ values: z.ZodArray<z.ZodString>;
1814
+ }, z.core.$strip>;
1815
+ }, z.core.$strip>]>;
1816
+ readonly paginationDefaultEnabled = false;
1595
1817
  private readonly pointOfSaleId;
1596
1818
  constructor(pointOfSaleId: string, options?: {
1597
1819
  query?: DeliveryFeesQueryParams;
1598
1820
  });
1599
1821
  getPath(): string;
1600
- parseResponse(data: unknown): DeliveryFeeListItem[];
1601
1822
  }
1602
1823
 
1603
1824
  declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1867,7 +2088,7 @@ declare const getDeliveryPositionsQuerySchema: z.ZodObject<{
1867
2088
  type GetDeliveryPositionsQueryParams = z.infer<typeof getDeliveryPositionsQuerySchema>;
1868
2089
  declare const getDeliveryPositionsInputSchema: z.ZodUndefined;
1869
2090
  type GetDeliveryPositionsInput = z.infer<typeof getDeliveryPositionsInputSchema>;
1870
- declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
2091
+ declare const getDeliveryPositionsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1871
2092
  data: z.ZodArray<z.ZodObject<{
1872
2093
  id: z.ZodString;
1873
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>>;
@@ -1886,14 +2107,23 @@ declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
1886
2107
  currentPage: z.ZodCoercedNumber<unknown>;
1887
2108
  lastPage: z.ZodCoercedNumber<unknown>;
1888
2109
  }, z.core.$strip>;
1889
- }, 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>>]>;
1890
2120
  type GetDeliveryPositionsResponse = z.infer<typeof getDeliveryPositionsResponseSchema>;
1891
2121
  declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDeliveryPositionsInputSchema, typeof getDeliveryPositionsResponseSchema, GetDeliveryPositionsQueryParams> {
1892
- readonly method = "GET";
1893
- readonly contentType = "application/json";
1894
- readonly accept = "application/json";
2122
+ readonly method: "GET";
2123
+ readonly contentType: "application/json";
2124
+ readonly accept: "application/json";
1895
2125
  readonly inputSchema: z.ZodUndefined;
1896
- readonly outputSchema: z.ZodObject<{
2126
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1897
2127
  data: z.ZodArray<z.ZodObject<{
1898
2128
  id: z.ZodString;
1899
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>>;
@@ -1912,7 +2142,16 @@ declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDelivery
1912
2142
  currentPage: z.ZodCoercedNumber<unknown>;
1913
2143
  lastPage: z.ZodCoercedNumber<unknown>;
1914
2144
  }, z.core.$strip>;
1915
- }, 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>>]>;
1916
2155
  readonly querySchema: z.ZodObject<{
1917
2156
  'order[createdAt]': z.ZodOptional<z.ZodEnum<{
1918
2157
  asc: "asc";
@@ -1933,11 +2172,21 @@ declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDelivery
1933
2172
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1934
2173
  }, z.core.$strip>;
1935
2174
  readonly headersSchema: undefined;
2175
+ readonly listItemSchema: z.ZodObject<{
2176
+ id: z.ZodString;
2177
+ delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
2178
+ position: z.ZodObject<{
2179
+ latitude: z.ZodNumber;
2180
+ longitude: z.ZodNumber;
2181
+ }, z.core.$strip>;
2182
+ createdAt: z.ZodString;
2183
+ updatedAt: z.ZodString;
2184
+ }, z.core.$strip>;
2185
+ readonly paginationDefaultEnabled = true;
1936
2186
  constructor(options?: {
1937
2187
  query?: DeliveryPositionsQueryParams;
1938
2188
  });
1939
2189
  getPath(): string;
1940
- parseResponse(data: unknown, rawResponse: Response): Paginated<DeliveryPosition>;
1941
2190
  }
1942
2191
 
1943
2192
  declare const getDeliveryPositionsFromDeliveryQuerySchema: z.ZodObject<{
@@ -1974,9 +2223,9 @@ declare const getDeliveryPositionsFromDeliveryResponseSchema: z.ZodArray<z.ZodOb
1974
2223
  }, z.core.$strip>>;
1975
2224
  type GetDeliveryPositionsFromDeliveryResponse = z.infer<typeof getDeliveryPositionsFromDeliveryResponseSchema>;
1976
2225
  declare class GetDeliveryPositionsFromDelivery extends AbstractApiRequest<typeof getDeliveryPositionsFromDeliveryInputSchema, typeof getDeliveryPositionsFromDeliveryResponseSchema, GetDeliveryPositionsFromDeliveryQueryParams> {
1977
- readonly method = "GET";
1978
- readonly contentType = "application/json";
1979
- readonly accept = "application/json";
2226
+ readonly method: "GET";
2227
+ readonly contentType: "application/json";
2228
+ readonly accept: "application/json";
1980
2229
  readonly inputSchema: z.ZodUndefined;
1981
2230
  readonly outputSchema: z.ZodArray<z.ZodObject<{
1982
2231
  id: z.ZodString;
@@ -2008,12 +2257,22 @@ declare class GetDeliveryPositionsFromDelivery extends AbstractApiRequest<typeof
2008
2257
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
2009
2258
  }, z.core.$strip>;
2010
2259
  readonly headersSchema: undefined;
2260
+ readonly listItemSchema: z.ZodObject<{
2261
+ id: z.ZodString;
2262
+ delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
2263
+ position: z.ZodObject<{
2264
+ latitude: z.ZodNumber;
2265
+ longitude: z.ZodNumber;
2266
+ }, z.core.$strip>;
2267
+ createdAt: z.ZodString;
2268
+ updatedAt: z.ZodString;
2269
+ }, z.core.$strip>;
2270
+ readonly paginationDefaultEnabled = false;
2011
2271
  private readonly deliveryId;
2012
2272
  constructor(deliveryId: string, options?: {
2013
2273
  query?: DeliveryPositionsQueryParams;
2014
2274
  });
2015
2275
  getPath(): string;
2016
- parseResponse(data: unknown): DeliveryPosition[];
2017
2276
  }
2018
2277
 
2019
2278
  declare const deliveryIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;