@deliverart/sdk-js-delivery 2.1.7 → 2.1.9
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 +195 -10
- package/dist/index.d.cts +414 -1
- package/dist/index.d.ts +414 -1
- package/dist/index.js +180 -10
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -380,6 +380,148 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
|
|
|
380
380
|
parseResponse(data: unknown, rawResponse: Response): Paginated<Delivery>;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
+
declare const getDeliveriesFromUserQuerySchema: z.ZodObject<{
|
|
384
|
+
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
385
|
+
'exists[startedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
386
|
+
'exists[endedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
387
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
388
|
+
asc: "asc";
|
|
389
|
+
desc: "desc";
|
|
390
|
+
}>>;
|
|
391
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
392
|
+
asc: "asc";
|
|
393
|
+
desc: "desc";
|
|
394
|
+
}>>;
|
|
395
|
+
'order[startedAt]': z.ZodOptional<z.ZodEnum<{
|
|
396
|
+
asc: "asc";
|
|
397
|
+
desc: "desc";
|
|
398
|
+
}>>;
|
|
399
|
+
'order[endedAt]': z.ZodOptional<z.ZodEnum<{
|
|
400
|
+
asc: "asc";
|
|
401
|
+
desc: "desc";
|
|
402
|
+
}>>;
|
|
403
|
+
'startedAt[before]': z.ZodOptional<z.ZodString>;
|
|
404
|
+
'startedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
405
|
+
'startedAt[after]': z.ZodOptional<z.ZodString>;
|
|
406
|
+
'startedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
407
|
+
'endedAt[before]': z.ZodOptional<z.ZodString>;
|
|
408
|
+
'endedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
409
|
+
'endedAt[after]': z.ZodOptional<z.ZodString>;
|
|
410
|
+
'endedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
411
|
+
'preparationTime[before]': z.ZodOptional<z.ZodString>;
|
|
412
|
+
'preparationTime[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
413
|
+
'preparationTime[after]': z.ZodOptional<z.ZodString>;
|
|
414
|
+
'preparationTime[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
415
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
416
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
417
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
418
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
419
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
420
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
421
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
422
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
423
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
424
|
+
}, z.core.$strip>;
|
|
425
|
+
type GetDeliveriesFromUserQueryParams = z.infer<typeof getDeliveriesFromUserQuerySchema>;
|
|
426
|
+
declare const getDeliveriesFromUserInputSchema: z.ZodUndefined;
|
|
427
|
+
type GetDeliveriesFromUserInput = z.infer<typeof getDeliveriesFromUserInputSchema>;
|
|
428
|
+
declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
429
|
+
data: z.ZodArray<z.ZodObject<{
|
|
430
|
+
id: z.ZodString;
|
|
431
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
432
|
+
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>>;
|
|
433
|
+
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>>;
|
|
434
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
435
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
436
|
+
createdAt: z.ZodString;
|
|
437
|
+
updatedAt: z.ZodString;
|
|
438
|
+
}, z.core.$strip>>;
|
|
439
|
+
pagination: z.ZodObject<{
|
|
440
|
+
from: z.ZodNumber;
|
|
441
|
+
to: z.ZodNumber;
|
|
442
|
+
itemsPerPage: z.ZodNumber;
|
|
443
|
+
totalItems: z.ZodNumber;
|
|
444
|
+
currentPage: z.ZodNumber;
|
|
445
|
+
lastPage: z.ZodNumber;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
}, z.core.$strip>;
|
|
448
|
+
type GetDeliveriesFromUserResponse = z.infer<typeof getDeliveriesFromUserResponseSchema>;
|
|
449
|
+
declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliveriesFromUserInputSchema, typeof getDeliveriesFromUserResponseSchema, GetDeliveriesFromUserQueryParams> {
|
|
450
|
+
readonly method = "GET";
|
|
451
|
+
readonly contentType = "application/json";
|
|
452
|
+
readonly accept = "application/json";
|
|
453
|
+
readonly inputSchema: z.ZodUndefined;
|
|
454
|
+
readonly outputSchema: z.ZodObject<{
|
|
455
|
+
data: z.ZodArray<z.ZodObject<{
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id">, unknown>>;
|
|
458
|
+
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>>;
|
|
459
|
+
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>>;
|
|
460
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
461
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
462
|
+
createdAt: z.ZodString;
|
|
463
|
+
updatedAt: z.ZodString;
|
|
464
|
+
}, z.core.$strip>>;
|
|
465
|
+
pagination: z.ZodObject<{
|
|
466
|
+
from: z.ZodNumber;
|
|
467
|
+
to: z.ZodNumber;
|
|
468
|
+
itemsPerPage: z.ZodNumber;
|
|
469
|
+
totalItems: z.ZodNumber;
|
|
470
|
+
currentPage: z.ZodNumber;
|
|
471
|
+
lastPage: z.ZodNumber;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
}, z.core.$strip>;
|
|
474
|
+
readonly querySchema: z.ZodObject<{
|
|
475
|
+
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
476
|
+
'exists[startedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
477
|
+
'exists[endedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
478
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
479
|
+
asc: "asc";
|
|
480
|
+
desc: "desc";
|
|
481
|
+
}>>;
|
|
482
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
asc: "asc";
|
|
484
|
+
desc: "desc";
|
|
485
|
+
}>>;
|
|
486
|
+
'order[startedAt]': z.ZodOptional<z.ZodEnum<{
|
|
487
|
+
asc: "asc";
|
|
488
|
+
desc: "desc";
|
|
489
|
+
}>>;
|
|
490
|
+
'order[endedAt]': z.ZodOptional<z.ZodEnum<{
|
|
491
|
+
asc: "asc";
|
|
492
|
+
desc: "desc";
|
|
493
|
+
}>>;
|
|
494
|
+
'startedAt[before]': z.ZodOptional<z.ZodString>;
|
|
495
|
+
'startedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
496
|
+
'startedAt[after]': z.ZodOptional<z.ZodString>;
|
|
497
|
+
'startedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
498
|
+
'endedAt[before]': z.ZodOptional<z.ZodString>;
|
|
499
|
+
'endedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
500
|
+
'endedAt[after]': z.ZodOptional<z.ZodString>;
|
|
501
|
+
'endedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
502
|
+
'preparationTime[before]': z.ZodOptional<z.ZodString>;
|
|
503
|
+
'preparationTime[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
504
|
+
'preparationTime[after]': z.ZodOptional<z.ZodString>;
|
|
505
|
+
'preparationTime[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
506
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
507
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
508
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
509
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
510
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
511
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
512
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
513
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
514
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
readonly headersSchema: undefined;
|
|
517
|
+
private readonly userId;
|
|
518
|
+
constructor(userId: string, options?: {
|
|
519
|
+
query?: DeliveriesQueryParams;
|
|
520
|
+
});
|
|
521
|
+
getPath(): string;
|
|
522
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<Delivery>;
|
|
523
|
+
}
|
|
524
|
+
|
|
383
525
|
declare const getDeliveryDetailsInputSchema: z.ZodUndefined;
|
|
384
526
|
type GetDeliveryDetailsInput = z.infer<typeof getDeliveryDetailsInputSchema>;
|
|
385
527
|
declare const getDeliveryDetailsResponseSchema: z.ZodObject<{
|
|
@@ -560,6 +702,277 @@ declare class UpdateDelivery extends AbstractApiRequest<typeof updateDeliveryInp
|
|
|
560
702
|
getPath(): string;
|
|
561
703
|
}
|
|
562
704
|
|
|
705
|
+
declare const createDeliveryPositionInputSchema: z.ZodObject<{
|
|
706
|
+
delivery: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>>;
|
|
707
|
+
positionData: z.ZodNonOptional<z.ZodObject<{
|
|
708
|
+
lat: z.ZodNumber;
|
|
709
|
+
lng: z.ZodNumber;
|
|
710
|
+
}, z.core.$strip>>;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
type CreateDeliveryPositionInput = z.input<typeof createDeliveryPositionInputSchema>;
|
|
713
|
+
declare const createDeliveryPositionResponseSchema: z.ZodObject<{
|
|
714
|
+
id: z.ZodString;
|
|
715
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
716
|
+
position: z.ZodObject<{
|
|
717
|
+
latitude: z.ZodNumber;
|
|
718
|
+
longitude: z.ZodNumber;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
createdAt: z.ZodString;
|
|
721
|
+
updatedAt: z.ZodString;
|
|
722
|
+
createdBy: 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>>;
|
|
723
|
+
}, z.core.$strip>;
|
|
724
|
+
type CreateDeliveryPositionResponse = z.output<typeof createDeliveryPositionResponseSchema>;
|
|
725
|
+
declare class CreateDeliveryPositionPosition extends AbstractApiRequest<typeof createDeliveryPositionInputSchema, typeof createDeliveryPositionResponseSchema> {
|
|
726
|
+
readonly method = "POST";
|
|
727
|
+
readonly contentType = "application/json";
|
|
728
|
+
readonly accept = "application/json";
|
|
729
|
+
readonly inputSchema: z.ZodObject<{
|
|
730
|
+
delivery: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>>;
|
|
731
|
+
positionData: z.ZodNonOptional<z.ZodObject<{
|
|
732
|
+
lat: z.ZodNumber;
|
|
733
|
+
lng: z.ZodNumber;
|
|
734
|
+
}, z.core.$strip>>;
|
|
735
|
+
}, z.core.$strip>;
|
|
736
|
+
readonly outputSchema: z.ZodObject<{
|
|
737
|
+
id: z.ZodString;
|
|
738
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
739
|
+
position: z.ZodObject<{
|
|
740
|
+
latitude: z.ZodNumber;
|
|
741
|
+
longitude: z.ZodNumber;
|
|
742
|
+
}, z.core.$strip>;
|
|
743
|
+
createdAt: z.ZodString;
|
|
744
|
+
updatedAt: z.ZodString;
|
|
745
|
+
createdBy: 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>>;
|
|
746
|
+
}, z.core.$strip>;
|
|
747
|
+
readonly querySchema: undefined;
|
|
748
|
+
readonly headersSchema: undefined;
|
|
749
|
+
constructor(input: CreateDeliveryPositionInput);
|
|
750
|
+
getPath(): string;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
declare const deleteDeliveryPositionInputSchema: z.ZodUndefined;
|
|
754
|
+
declare const deleteDeliveryPositionResponseSchema: z.ZodUndefined;
|
|
755
|
+
declare class DeleteDeliveryPositionPosition extends AbstractApiRequest<typeof deleteDeliveryPositionInputSchema, typeof deleteDeliveryPositionResponseSchema> {
|
|
756
|
+
readonly method = "DELETE";
|
|
757
|
+
readonly contentType = "application/json";
|
|
758
|
+
readonly accept = "application/json";
|
|
759
|
+
readonly inputSchema: z.ZodUndefined;
|
|
760
|
+
readonly outputSchema: z.ZodUndefined;
|
|
761
|
+
readonly querySchema: undefined;
|
|
762
|
+
readonly headersSchema: undefined;
|
|
763
|
+
private readonly deliveryPositionId;
|
|
764
|
+
constructor(deliveryPositionId: string);
|
|
765
|
+
getPath(): string;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
declare const getDeliveryPositionDetailsInputSchema: z.ZodUndefined;
|
|
769
|
+
type GetDeliveryPositionDetailsInput = z.infer<typeof getDeliveryPositionDetailsInputSchema>;
|
|
770
|
+
declare const getDeliveryPositionDetailsResponseSchema: z.ZodObject<{
|
|
771
|
+
id: z.ZodString;
|
|
772
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
773
|
+
position: z.ZodObject<{
|
|
774
|
+
latitude: z.ZodNumber;
|
|
775
|
+
longitude: z.ZodNumber;
|
|
776
|
+
}, z.core.$strip>;
|
|
777
|
+
createdAt: z.ZodString;
|
|
778
|
+
updatedAt: z.ZodString;
|
|
779
|
+
createdBy: 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>>;
|
|
780
|
+
}, z.core.$strip>;
|
|
781
|
+
type GetDeliveryPositionDetailsResponse = z.output<typeof getDeliveryPositionDetailsResponseSchema>;
|
|
782
|
+
declare class GetDeliveryPositionPositionDetails extends AbstractApiRequest<typeof getDeliveryPositionDetailsInputSchema, typeof getDeliveryPositionDetailsResponseSchema> {
|
|
783
|
+
readonly method = "GET";
|
|
784
|
+
readonly contentType = "application/json";
|
|
785
|
+
readonly accept = "application/json";
|
|
786
|
+
readonly inputSchema: z.ZodUndefined;
|
|
787
|
+
readonly outputSchema: z.ZodObject<{
|
|
788
|
+
id: z.ZodString;
|
|
789
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
790
|
+
position: z.ZodObject<{
|
|
791
|
+
latitude: z.ZodNumber;
|
|
792
|
+
longitude: z.ZodNumber;
|
|
793
|
+
}, z.core.$strip>;
|
|
794
|
+
createdAt: z.ZodString;
|
|
795
|
+
updatedAt: z.ZodString;
|
|
796
|
+
createdBy: 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>>;
|
|
797
|
+
}, z.core.$strip>;
|
|
798
|
+
readonly querySchema: undefined;
|
|
799
|
+
readonly headersSchema: undefined;
|
|
800
|
+
private readonly deliveryPositionId;
|
|
801
|
+
constructor(deliveryPositionId: string);
|
|
802
|
+
getPath(): string;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
declare const getDeliveryPositionsQuerySchema: z.ZodObject<{
|
|
806
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
807
|
+
asc: "asc";
|
|
808
|
+
desc: "desc";
|
|
809
|
+
}>>;
|
|
810
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
811
|
+
asc: "asc";
|
|
812
|
+
desc: "desc";
|
|
813
|
+
}>>;
|
|
814
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
815
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
816
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
817
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
818
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
819
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
820
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
821
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
822
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
823
|
+
}, z.core.$strip>;
|
|
824
|
+
type GetDeliveryPositionsQueryParams = z.infer<typeof getDeliveryPositionsQuerySchema>;
|
|
825
|
+
declare const getDeliveryPositionsInputSchema: z.ZodUndefined;
|
|
826
|
+
type GetDeliveryPositionsInput = z.infer<typeof getDeliveryPositionsInputSchema>;
|
|
827
|
+
declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
828
|
+
data: z.ZodArray<z.ZodObject<{
|
|
829
|
+
id: z.ZodString;
|
|
830
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
831
|
+
position: z.ZodObject<{
|
|
832
|
+
latitude: z.ZodNumber;
|
|
833
|
+
longitude: z.ZodNumber;
|
|
834
|
+
}, z.core.$strip>;
|
|
835
|
+
createdAt: z.ZodString;
|
|
836
|
+
updatedAt: z.ZodString;
|
|
837
|
+
}, z.core.$strip>>;
|
|
838
|
+
pagination: z.ZodObject<{
|
|
839
|
+
from: z.ZodNumber;
|
|
840
|
+
to: z.ZodNumber;
|
|
841
|
+
itemsPerPage: z.ZodNumber;
|
|
842
|
+
totalItems: z.ZodNumber;
|
|
843
|
+
currentPage: z.ZodNumber;
|
|
844
|
+
lastPage: z.ZodNumber;
|
|
845
|
+
}, z.core.$strip>;
|
|
846
|
+
}, z.core.$strip>;
|
|
847
|
+
type GetDeliveryPositionsResponse = z.infer<typeof getDeliveryPositionsResponseSchema>;
|
|
848
|
+
declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDeliveryPositionsInputSchema, typeof getDeliveryPositionsResponseSchema, GetDeliveryPositionsQueryParams> {
|
|
849
|
+
readonly method = "GET";
|
|
850
|
+
readonly contentType = "application/json";
|
|
851
|
+
readonly accept = "application/json";
|
|
852
|
+
readonly inputSchema: z.ZodUndefined;
|
|
853
|
+
readonly outputSchema: z.ZodObject<{
|
|
854
|
+
data: z.ZodArray<z.ZodObject<{
|
|
855
|
+
id: z.ZodString;
|
|
856
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
857
|
+
position: z.ZodObject<{
|
|
858
|
+
latitude: z.ZodNumber;
|
|
859
|
+
longitude: z.ZodNumber;
|
|
860
|
+
}, z.core.$strip>;
|
|
861
|
+
createdAt: z.ZodString;
|
|
862
|
+
updatedAt: z.ZodString;
|
|
863
|
+
}, z.core.$strip>>;
|
|
864
|
+
pagination: z.ZodObject<{
|
|
865
|
+
from: z.ZodNumber;
|
|
866
|
+
to: z.ZodNumber;
|
|
867
|
+
itemsPerPage: z.ZodNumber;
|
|
868
|
+
totalItems: z.ZodNumber;
|
|
869
|
+
currentPage: z.ZodNumber;
|
|
870
|
+
lastPage: z.ZodNumber;
|
|
871
|
+
}, z.core.$strip>;
|
|
872
|
+
}, z.core.$strip>;
|
|
873
|
+
readonly querySchema: z.ZodObject<{
|
|
874
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
875
|
+
asc: "asc";
|
|
876
|
+
desc: "desc";
|
|
877
|
+
}>>;
|
|
878
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
879
|
+
asc: "asc";
|
|
880
|
+
desc: "desc";
|
|
881
|
+
}>>;
|
|
882
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
883
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
884
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
885
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
886
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
887
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
888
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
889
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
890
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
891
|
+
}, z.core.$strip>;
|
|
892
|
+
readonly headersSchema: undefined;
|
|
893
|
+
constructor(options?: {
|
|
894
|
+
query?: DeliveryPositionsQueryParams;
|
|
895
|
+
});
|
|
896
|
+
getPath(): string;
|
|
897
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<DeliveryPosition>;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
declare const getDeliveryPositionsFromDeliveryQuerySchema: z.ZodObject<{
|
|
901
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
902
|
+
asc: "asc";
|
|
903
|
+
desc: "desc";
|
|
904
|
+
}>>;
|
|
905
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
906
|
+
asc: "asc";
|
|
907
|
+
desc: "desc";
|
|
908
|
+
}>>;
|
|
909
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
910
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
911
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
912
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
913
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
914
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
915
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
916
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
917
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
918
|
+
}, z.core.$strip>;
|
|
919
|
+
type GetDeliveryPositionsFromDeliveryQueryParams = z.infer<typeof getDeliveryPositionsFromDeliveryQuerySchema>;
|
|
920
|
+
declare const getDeliveryPositionsFromDeliveryInputSchema: z.ZodUndefined;
|
|
921
|
+
type GetDeliveryPositionsFromDeliveryInput = z.infer<typeof getDeliveryPositionsFromDeliveryInputSchema>;
|
|
922
|
+
declare const getDeliveryPositionsFromDeliveryResponseSchema: z.ZodArray<z.ZodObject<{
|
|
923
|
+
id: z.ZodString;
|
|
924
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
925
|
+
position: z.ZodObject<{
|
|
926
|
+
latitude: z.ZodNumber;
|
|
927
|
+
longitude: z.ZodNumber;
|
|
928
|
+
}, z.core.$strip>;
|
|
929
|
+
createdAt: z.ZodString;
|
|
930
|
+
updatedAt: z.ZodString;
|
|
931
|
+
}, z.core.$strip>>;
|
|
932
|
+
type GetDeliveryPositionsFromDeliveryResponse = z.infer<typeof getDeliveryPositionsFromDeliveryResponseSchema>;
|
|
933
|
+
declare class GetDeliveryPositionsFromDelivery extends AbstractApiRequest<typeof getDeliveryPositionsFromDeliveryInputSchema, typeof getDeliveryPositionsFromDeliveryResponseSchema, GetDeliveryPositionsFromDeliveryQueryParams> {
|
|
934
|
+
readonly method = "GET";
|
|
935
|
+
readonly contentType = "application/json";
|
|
936
|
+
readonly accept = "application/json";
|
|
937
|
+
readonly inputSchema: z.ZodUndefined;
|
|
938
|
+
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
939
|
+
id: z.ZodString;
|
|
940
|
+
delivery: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>;
|
|
941
|
+
position: z.ZodObject<{
|
|
942
|
+
latitude: z.ZodNumber;
|
|
943
|
+
longitude: z.ZodNumber;
|
|
944
|
+
}, z.core.$strip>;
|
|
945
|
+
createdAt: z.ZodString;
|
|
946
|
+
updatedAt: z.ZodString;
|
|
947
|
+
}, z.core.$strip>>;
|
|
948
|
+
readonly querySchema: z.ZodObject<{
|
|
949
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
950
|
+
asc: "asc";
|
|
951
|
+
desc: "desc";
|
|
952
|
+
}>>;
|
|
953
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
954
|
+
asc: "asc";
|
|
955
|
+
desc: "desc";
|
|
956
|
+
}>>;
|
|
957
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
958
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
959
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
960
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
961
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
962
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
963
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
964
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
965
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
966
|
+
}, z.core.$strip>;
|
|
967
|
+
readonly headersSchema: undefined;
|
|
968
|
+
private readonly deliveryId;
|
|
969
|
+
constructor(deliveryId: string, options?: {
|
|
970
|
+
query?: DeliveryPositionsQueryParams;
|
|
971
|
+
});
|
|
972
|
+
getPath(): string;
|
|
973
|
+
parseResponse(data: unknown): DeliveryPosition[];
|
|
974
|
+
}
|
|
975
|
+
|
|
563
976
|
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>>;
|
|
564
977
|
type DeliveryIri = z.infer<typeof deliveryIriSchema>;
|
|
565
978
|
declare const deliveryNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id"> | null, unknown>>;
|
|
@@ -569,4 +982,4 @@ type DeliveryPositionIri = z.infer<typeof deliveryPositionIriSchema>;
|
|
|
569
982
|
declare const deliveryPositionNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/positions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/positions/:id"> | null, unknown>>;
|
|
570
983
|
type DeliveryPositionNullableIri = z.infer<typeof deliveryPositionNullableIriSchema>;
|
|
571
984
|
|
|
572
|
-
export { CreateDelivery, type CreateDeliveryInput, type CreateDeliveryResponse, DeleteDelivery, DeliverCurrentOrder, type DeliverCurrentOrderInput, type DeliverCurrentOrderResponse, type DeliveriesQueryParams, type Delivery, type DeliveryIri, type DeliveryNullableIri, type DeliveryPosition, type DeliveryPositionDetails, type DeliveryPositionIri, type DeliveryPositionNullableIri, type DeliveryPositionsQueryParams, EndDelivery, type EndDeliveryInput, type EndDeliveryResponse, GetDeliveries, type GetDeliveriesInput, type GetDeliveriesQueryParams, type GetDeliveriesResponse, GetDeliveryDetails, GetDeliveryDetailsFromBundle, type GetDeliveryDetailsFromBundleInput, type GetDeliveryDetailsFromBundleResponse, type GetDeliveryDetailsInput, type GetDeliveryDetailsResponse, StartDelivery, type StartDeliveryInput, StartDeliveryOrder, type StartDeliveryOrderInput, type StartDeliveryOrderResponse, type StartDeliveryResponse, UpdateDelivery, type UpdateDeliveryInput, type UpdateDeliveryResponse, type WritableDelivery, type WritableDeliveryPosition, createDeliveryInputSchema, createDeliveryResponseSchema, deleteDeliveryInputSchema, deleteDeliveryResponseSchema, deliverCurrentOrderInputSchema, deliverCurrentOrderResponseSchema, deliveriesQuerySchema, deliveryIriSchema, deliveryNullableIriSchema, deliveryPositionDetailsSchema, deliveryPositionIriSchema, deliveryPositionNullableIriSchema, deliveryPositionSchema, deliveryPositionsQuerySchema, deliverySchema, endDeliveryInputSchema, endDeliveryResponseSchema, getDeliveriesInputSchema, getDeliveriesQuerySchema, getDeliveriesResponseSchema, getDeliveryDetailsFromBundleInputSchema, getDeliveryDetailsFromBundleResponseSchema, getDeliveryDetailsInputSchema, getDeliveryDetailsResponseSchema, startDeliveryInputSchema, startDeliveryOrderInputSchema, startDeliveryOrderResponseSchema, startDeliveryResponseSchema, updateDeliveryInputSchema, updateDeliveryResponseSchema, writableDeliveryPositionSchema, writableDeliverySchema };
|
|
985
|
+
export { CreateDelivery, type CreateDeliveryInput, type CreateDeliveryPositionInput, CreateDeliveryPositionPosition, type CreateDeliveryPositionResponse, type CreateDeliveryResponse, DeleteDelivery, DeleteDeliveryPositionPosition, DeliverCurrentOrder, type DeliverCurrentOrderInput, type DeliverCurrentOrderResponse, type DeliveriesQueryParams, type Delivery, type DeliveryIri, type DeliveryNullableIri, type DeliveryPosition, type DeliveryPositionDetails, type DeliveryPositionIri, type DeliveryPositionNullableIri, type DeliveryPositionsQueryParams, EndDelivery, type EndDeliveryInput, type EndDeliveryResponse, GetDeliveries, GetDeliveriesFromUser, type GetDeliveriesFromUserInput, type GetDeliveriesFromUserQueryParams, type GetDeliveriesFromUserResponse, type GetDeliveriesInput, type GetDeliveriesQueryParams, type GetDeliveriesResponse, GetDeliveryDetails, GetDeliveryDetailsFromBundle, type GetDeliveryDetailsFromBundleInput, type GetDeliveryDetailsFromBundleResponse, type GetDeliveryDetailsInput, type GetDeliveryDetailsResponse, type GetDeliveryPositionDetailsInput, type GetDeliveryPositionDetailsResponse, GetDeliveryPositionPositionDetails, GetDeliveryPositions, GetDeliveryPositionsFromDelivery, type GetDeliveryPositionsFromDeliveryInput, type GetDeliveryPositionsFromDeliveryQueryParams, type GetDeliveryPositionsFromDeliveryResponse, type GetDeliveryPositionsInput, type GetDeliveryPositionsQueryParams, type GetDeliveryPositionsResponse, StartDelivery, type StartDeliveryInput, StartDeliveryOrder, type StartDeliveryOrderInput, type StartDeliveryOrderResponse, type StartDeliveryResponse, UpdateDelivery, type UpdateDeliveryInput, type UpdateDeliveryResponse, type WritableDelivery, type WritableDeliveryPosition, createDeliveryInputSchema, createDeliveryPositionInputSchema, createDeliveryPositionResponseSchema, createDeliveryResponseSchema, deleteDeliveryInputSchema, deleteDeliveryPositionInputSchema, deleteDeliveryPositionResponseSchema, deleteDeliveryResponseSchema, deliverCurrentOrderInputSchema, deliverCurrentOrderResponseSchema, deliveriesQuerySchema, deliveryIriSchema, deliveryNullableIriSchema, deliveryPositionDetailsSchema, deliveryPositionIriSchema, deliveryPositionNullableIriSchema, deliveryPositionSchema, deliveryPositionsQuerySchema, deliverySchema, endDeliveryInputSchema, endDeliveryResponseSchema, getDeliveriesFromUserInputSchema, getDeliveriesFromUserQuerySchema, getDeliveriesFromUserResponseSchema, getDeliveriesInputSchema, getDeliveriesQuerySchema, getDeliveriesResponseSchema, getDeliveryDetailsFromBundleInputSchema, getDeliveryDetailsFromBundleResponseSchema, getDeliveryDetailsInputSchema, getDeliveryDetailsResponseSchema, getDeliveryPositionDetailsInputSchema, getDeliveryPositionDetailsResponseSchema, getDeliveryPositionsFromDeliveryInputSchema, getDeliveryPositionsFromDeliveryQuerySchema, getDeliveryPositionsFromDeliveryResponseSchema, getDeliveryPositionsInputSchema, getDeliveryPositionsQuerySchema, getDeliveryPositionsResponseSchema, startDeliveryInputSchema, startDeliveryOrderInputSchema, startDeliveryOrderResponseSchema, startDeliveryResponseSchema, updateDeliveryInputSchema, updateDeliveryResponseSchema, writableDeliveryPositionSchema, writableDeliverySchema };
|