celitech-sdk 1.3.43 → 1.3.44
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/README.md +3 -3
- package/dist/index.d.ts +142 -168
- package/dist/index.js +71 -74
- package/dist/index.mjs +71 -74
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Celitech TypeScript SDK 1.3.
|
1
|
+
# Celitech TypeScript SDK 1.3.44
|
2
2
|
|
3
3
|
Welcome to the Celitech SDK documentation. This guide will help you get started with integrating and using the Celitech SDK in your project.
|
4
4
|
|
@@ -6,8 +6,8 @@ Welcome to the Celitech SDK documentation. This guide will help you get started
|
|
6
6
|
|
7
7
|
## Versions
|
8
8
|
|
9
|
-
- API version: `1.3.
|
10
|
-
- SDK version: `1.3.
|
9
|
+
- API version: `1.3.44`
|
10
|
+
- SDK version: `1.3.44`
|
11
11
|
|
12
12
|
## About the API
|
13
13
|
|
package/dist/index.d.ts
CHANGED
@@ -447,8 +447,6 @@ interface ListPackagesParams {
|
|
447
447
|
destination?: string;
|
448
448
|
startDate?: string;
|
449
449
|
endDate?: string;
|
450
|
-
dataLimitInGb?: number;
|
451
|
-
includeUnlimited?: boolean;
|
452
450
|
afterCursor?: string;
|
453
451
|
limit?: number;
|
454
452
|
startTime?: number;
|
@@ -458,25 +456,18 @@ interface ListPackagesParams {
|
|
458
456
|
|
459
457
|
declare class PackagesService extends BaseService {
|
460
458
|
/**
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
* @param {number} [params.limit] - Maximum number of packages to be returned in the response. The value must be greater than 0 and less than or equal to 160. If not provided, the default value is 20
|
474
|
-
* @param {number} [params.startTime] - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months
|
475
|
-
* @param {number} [params.endTime] - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time
|
476
|
-
* @param {number} [params.duration] - Duration in seconds for the package's validity. If this parameter is present, it will override the startTime and endTime parameters. The maximum duration for a package's validity period is 90 days
|
477
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
478
|
-
* @returns {Promise<HttpResponse<ListPackagesOkResponse>>} Successful Response
|
479
|
-
*/
|
459
|
+
* List Packages
|
460
|
+
* @param {string} [params.destination] - ISO representation of the package's destination.
|
461
|
+
* @param {string} [params.startDate] - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
|
462
|
+
* @param {string} [params.endDate] - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
|
463
|
+
* @param {string} [params.afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
|
464
|
+
* @param {number} [params.limit] - Maximum number of packages to be returned in the response. The value must be greater than 0 and less than or equal to 160. If not provided, the default value is 20
|
465
|
+
* @param {number} [params.startTime] - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months
|
466
|
+
* @param {number} [params.endTime] - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time
|
467
|
+
* @param {number} [params.duration] - Duration in seconds for the package's validity. If this parameter is present, it will override the startTime and endTime parameters. The maximum duration for a package's validity period is 90 days
|
468
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
469
|
+
* @returns {Promise<HttpResponse<ListPackagesOkResponse>>} Successful Response
|
470
|
+
*/
|
480
471
|
listPackages(params?: ListPackagesParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListPackagesOkResponse>>;
|
481
472
|
}
|
482
473
|
|
@@ -510,8 +501,7 @@ declare const packages: z.ZodLazy<z.ZodObject<{
|
|
510
501
|
* @typedef {Packages} packages
|
511
502
|
* @property {string} - ID of the package
|
512
503
|
* @property {string} - ISO representation of the package's destination.
|
513
|
-
* @property {number} - Size of the package in
|
514
|
-
|
504
|
+
* @property {number} - Size of the package in Bytes
|
515
505
|
* @property {number} - Min number of days for the package
|
516
506
|
* @property {number} - Max number of days for the package
|
517
507
|
* @property {number} - Price of the package in cents
|
@@ -538,6 +528,8 @@ declare class _3 extends ThrowableError {
|
|
538
528
|
declare const createPurchaseV2Request: z.ZodLazy<z.ZodObject<{
|
539
529
|
destination: z.ZodString;
|
540
530
|
dataLimitInGb: z.ZodNumber;
|
531
|
+
startDate: z.ZodString;
|
532
|
+
endDate: z.ZodString;
|
541
533
|
quantity: z.ZodNumber;
|
542
534
|
email: z.ZodOptional<z.ZodString>;
|
543
535
|
referenceId: z.ZodOptional<z.ZodString>;
|
@@ -545,6 +537,8 @@ declare const createPurchaseV2Request: z.ZodLazy<z.ZodObject<{
|
|
545
537
|
emailBrand: z.ZodOptional<z.ZodString>;
|
546
538
|
}, "strip", z.ZodTypeAny, {
|
547
539
|
destination: string;
|
540
|
+
startDate: string;
|
541
|
+
endDate: string;
|
548
542
|
dataLimitInGb: number;
|
549
543
|
quantity: number;
|
550
544
|
email?: string | undefined;
|
@@ -553,6 +547,8 @@ declare const createPurchaseV2Request: z.ZodLazy<z.ZodObject<{
|
|
553
547
|
emailBrand?: string | undefined;
|
554
548
|
}, {
|
555
549
|
destination: string;
|
550
|
+
startDate: string;
|
551
|
+
endDate: string;
|
556
552
|
dataLimitInGb: number;
|
557
553
|
quantity: number;
|
558
554
|
email?: string | undefined;
|
@@ -564,12 +560,9 @@ declare const createPurchaseV2Request: z.ZodLazy<z.ZodObject<{
|
|
564
560
|
*
|
565
561
|
* @typedef {CreatePurchaseV2Request} createPurchaseV2Request
|
566
562
|
* @property {string} - ISO representation of the package's destination.
|
567
|
-
* @property {number} - Size of the package in GB.
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
For ``unlimited packages`` (available to Region-3), please use ``-1`` as an identifier (supports `duration` only).
|
572
|
-
|
563
|
+
* @property {number} - Size of the package in GB. The available options are 0.5, 1, 2, 3, 5, 8, 20GB
|
564
|
+
* @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
|
565
|
+
* @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
|
573
566
|
* @property {number} - Number of eSIMs to purchase.
|
574
567
|
* @property {string} - Email address where the purchase confirmation email will be sent (including QR Code & activation steps)
|
575
568
|
* @property {string} - An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes.
|
@@ -645,12 +638,11 @@ type CreatePurchaseV2OkResponse = z.infer<typeof createPurchaseV2OkResponse>;
|
|
645
638
|
declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
646
639
|
purchases: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
647
640
|
id: z.ZodOptional<z.ZodString>;
|
648
|
-
startDate: z.
|
649
|
-
endDate: z.
|
650
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
641
|
+
startDate: z.ZodOptional<z.ZodString>;
|
642
|
+
endDate: z.ZodOptional<z.ZodString>;
|
651
643
|
createdDate: z.ZodOptional<z.ZodString>;
|
652
|
-
startTime: z.
|
653
|
-
endTime: z.
|
644
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
645
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
654
646
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
655
647
|
package: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
656
648
|
id: z.ZodOptional<z.ZodString>;
|
@@ -683,12 +675,11 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
683
675
|
referenceId: z.ZodOptional<z.ZodString>;
|
684
676
|
}, "strip", z.ZodTypeAny, {
|
685
677
|
id?: string | undefined;
|
686
|
-
startDate?: string |
|
687
|
-
endDate?: string |
|
688
|
-
duration?: number | null | undefined;
|
678
|
+
startDate?: string | undefined;
|
679
|
+
endDate?: string | undefined;
|
689
680
|
createdDate?: string | undefined;
|
690
|
-
startTime?: number |
|
691
|
-
endTime?: number |
|
681
|
+
startTime?: number | undefined;
|
682
|
+
endTime?: number | undefined;
|
692
683
|
createdAt?: number | undefined;
|
693
684
|
package?: {
|
694
685
|
id?: string | undefined;
|
@@ -705,12 +696,11 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
705
696
|
referenceId?: string | undefined;
|
706
697
|
}, {
|
707
698
|
id?: string | undefined;
|
708
|
-
startDate?: string |
|
709
|
-
endDate?: string |
|
710
|
-
duration?: number | null | undefined;
|
699
|
+
startDate?: string | undefined;
|
700
|
+
endDate?: string | undefined;
|
711
701
|
createdDate?: string | undefined;
|
712
|
-
startTime?: number |
|
713
|
-
endTime?: number |
|
702
|
+
startTime?: number | undefined;
|
703
|
+
endTime?: number | undefined;
|
714
704
|
createdAt?: number | undefined;
|
715
705
|
package?: {
|
716
706
|
id?: string | undefined;
|
@@ -730,12 +720,11 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
730
720
|
}, "strip", z.ZodTypeAny, {
|
731
721
|
purchases?: {
|
732
722
|
id?: string | undefined;
|
733
|
-
startDate?: string |
|
734
|
-
endDate?: string |
|
735
|
-
duration?: number | null | undefined;
|
723
|
+
startDate?: string | undefined;
|
724
|
+
endDate?: string | undefined;
|
736
725
|
createdDate?: string | undefined;
|
737
|
-
startTime?: number |
|
738
|
-
endTime?: number |
|
726
|
+
startTime?: number | undefined;
|
727
|
+
endTime?: number | undefined;
|
739
728
|
createdAt?: number | undefined;
|
740
729
|
package?: {
|
741
730
|
id?: string | undefined;
|
@@ -755,12 +744,11 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
755
744
|
}, {
|
756
745
|
purchases?: {
|
757
746
|
id?: string | undefined;
|
758
|
-
startDate?: string |
|
759
|
-
endDate?: string |
|
760
|
-
duration?: number | null | undefined;
|
747
|
+
startDate?: string | undefined;
|
748
|
+
endDate?: string | undefined;
|
761
749
|
createdDate?: string | undefined;
|
762
|
-
startTime?: number |
|
763
|
-
endTime?: number |
|
750
|
+
startTime?: number | undefined;
|
751
|
+
endTime?: number | undefined;
|
764
752
|
createdAt?: number | undefined;
|
765
753
|
package?: {
|
766
754
|
id?: string | undefined;
|
@@ -857,27 +845,27 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
|
857
845
|
purchase: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
858
846
|
id: z.ZodOptional<z.ZodString>;
|
859
847
|
packageId: z.ZodOptional<z.ZodString>;
|
860
|
-
startDate: z.
|
861
|
-
endDate: z.
|
848
|
+
startDate: z.ZodOptional<z.ZodString>;
|
849
|
+
endDate: z.ZodOptional<z.ZodString>;
|
862
850
|
createdDate: z.ZodOptional<z.ZodString>;
|
863
|
-
startTime: z.
|
864
|
-
endTime: z.
|
851
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
852
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
865
853
|
}, "strip", z.ZodTypeAny, {
|
866
854
|
id?: string | undefined;
|
867
855
|
packageId?: string | undefined;
|
868
|
-
startDate?: string |
|
869
|
-
endDate?: string |
|
856
|
+
startDate?: string | undefined;
|
857
|
+
endDate?: string | undefined;
|
870
858
|
createdDate?: string | undefined;
|
871
|
-
startTime?: number |
|
872
|
-
endTime?: number |
|
859
|
+
startTime?: number | undefined;
|
860
|
+
endTime?: number | undefined;
|
873
861
|
}, {
|
874
862
|
id?: string | undefined;
|
875
863
|
packageId?: string | undefined;
|
876
|
-
startDate?: string |
|
877
|
-
endDate?: string |
|
864
|
+
startDate?: string | undefined;
|
865
|
+
endDate?: string | undefined;
|
878
866
|
createdDate?: string | undefined;
|
879
|
-
startTime?: number |
|
880
|
-
endTime?: number |
|
867
|
+
startTime?: number | undefined;
|
868
|
+
endTime?: number | undefined;
|
881
869
|
}>>>;
|
882
870
|
profile: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
883
871
|
iccid: z.ZodOptional<z.ZodString>;
|
@@ -896,11 +884,11 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
|
896
884
|
purchase?: {
|
897
885
|
id?: string | undefined;
|
898
886
|
packageId?: string | undefined;
|
899
|
-
startDate?: string |
|
900
|
-
endDate?: string |
|
887
|
+
startDate?: string | undefined;
|
888
|
+
endDate?: string | undefined;
|
901
889
|
createdDate?: string | undefined;
|
902
|
-
startTime?: number |
|
903
|
-
endTime?: number |
|
890
|
+
startTime?: number | undefined;
|
891
|
+
endTime?: number | undefined;
|
904
892
|
} | undefined;
|
905
893
|
profile?: {
|
906
894
|
iccid?: string | undefined;
|
@@ -911,11 +899,11 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
|
911
899
|
purchase?: {
|
912
900
|
id?: string | undefined;
|
913
901
|
packageId?: string | undefined;
|
914
|
-
startDate?: string |
|
915
|
-
endDate?: string |
|
902
|
+
startDate?: string | undefined;
|
903
|
+
endDate?: string | undefined;
|
916
904
|
createdDate?: string | undefined;
|
917
|
-
startTime?: number |
|
918
|
-
endTime?: number |
|
905
|
+
startTime?: number | undefined;
|
906
|
+
endTime?: number | undefined;
|
919
907
|
} | undefined;
|
920
908
|
profile?: {
|
921
909
|
iccid?: string | undefined;
|
@@ -937,12 +925,16 @@ type CreatePurchaseOkResponse = z.infer<typeof createPurchaseOkResponse>;
|
|
937
925
|
declare const topUpEsimRequest: z.ZodLazy<z.ZodObject<{
|
938
926
|
iccid: z.ZodString;
|
939
927
|
dataLimitInGb: z.ZodNumber;
|
928
|
+
startDate: z.ZodString;
|
929
|
+
endDate: z.ZodString;
|
940
930
|
email: z.ZodOptional<z.ZodString>;
|
941
931
|
referenceId: z.ZodOptional<z.ZodString>;
|
942
932
|
emailBrand: z.ZodOptional<z.ZodString>;
|
943
933
|
startTime: z.ZodOptional<z.ZodNumber>;
|
944
934
|
endTime: z.ZodOptional<z.ZodNumber>;
|
945
935
|
}, "strip", z.ZodTypeAny, {
|
936
|
+
startDate: string;
|
937
|
+
endDate: string;
|
946
938
|
dataLimitInGb: number;
|
947
939
|
iccid: string;
|
948
940
|
email?: string | undefined;
|
@@ -951,6 +943,8 @@ declare const topUpEsimRequest: z.ZodLazy<z.ZodObject<{
|
|
951
943
|
startTime?: number | undefined;
|
952
944
|
endTime?: number | undefined;
|
953
945
|
}, {
|
946
|
+
startDate: string;
|
947
|
+
endDate: string;
|
954
948
|
dataLimitInGb: number;
|
955
949
|
iccid: string;
|
956
950
|
email?: string | undefined;
|
@@ -963,12 +957,9 @@ declare const topUpEsimRequest: z.ZodLazy<z.ZodObject<{
|
|
963
957
|
*
|
964
958
|
* @typedef {TopUpEsimRequest} topUpEsimRequest
|
965
959
|
* @property {string} - ID of the eSIM
|
966
|
-
* @property {number} - Size of the package in GB.
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
For ``unlimited packages`` (available to Region-3), please use ``-1`` as an identifier (supports `duration` only).
|
971
|
-
|
960
|
+
* @property {number} - Size of the package in GB. The available options are 0.5, 1, 2, 3, 5, 8, 20GB
|
961
|
+
* @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
|
962
|
+
* @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
|
972
963
|
* @property {string} - Email address where the purchase confirmation email will be sent (excluding QR Code & activation steps).
|
973
964
|
* @property {string} - An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes.
|
974
965
|
* @property {string} - Customize the email subject brand. The `emailBrand` parameter cannot exceed 25 characters in length and must contain only letters, numbers, and spaces. This feature is available to platforms with Diamond tier only.
|
@@ -984,30 +975,27 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
984
975
|
purchase: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
985
976
|
id: z.ZodOptional<z.ZodString>;
|
986
977
|
packageId: z.ZodOptional<z.ZodString>;
|
987
|
-
startDate: z.
|
988
|
-
endDate: z.
|
989
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
978
|
+
startDate: z.ZodOptional<z.ZodString>;
|
979
|
+
endDate: z.ZodOptional<z.ZodString>;
|
990
980
|
createdDate: z.ZodOptional<z.ZodString>;
|
991
|
-
startTime: z.
|
992
|
-
endTime: z.
|
981
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
982
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
993
983
|
}, "strip", z.ZodTypeAny, {
|
994
984
|
id?: string | undefined;
|
995
985
|
packageId?: string | undefined;
|
996
|
-
startDate?: string |
|
997
|
-
endDate?: string |
|
998
|
-
duration?: number | null | undefined;
|
986
|
+
startDate?: string | undefined;
|
987
|
+
endDate?: string | undefined;
|
999
988
|
createdDate?: string | undefined;
|
1000
|
-
startTime?: number |
|
1001
|
-
endTime?: number |
|
989
|
+
startTime?: number | undefined;
|
990
|
+
endTime?: number | undefined;
|
1002
991
|
}, {
|
1003
992
|
id?: string | undefined;
|
1004
993
|
packageId?: string | undefined;
|
1005
|
-
startDate?: string |
|
1006
|
-
endDate?: string |
|
1007
|
-
duration?: number | null | undefined;
|
994
|
+
startDate?: string | undefined;
|
995
|
+
endDate?: string | undefined;
|
1008
996
|
createdDate?: string | undefined;
|
1009
|
-
startTime?: number |
|
1010
|
-
endTime?: number |
|
997
|
+
startTime?: number | undefined;
|
998
|
+
endTime?: number | undefined;
|
1011
999
|
}>>>;
|
1012
1000
|
profile: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
1013
1001
|
iccid: z.ZodOptional<z.ZodString>;
|
@@ -1020,12 +1008,11 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1020
1008
|
purchase?: {
|
1021
1009
|
id?: string | undefined;
|
1022
1010
|
packageId?: string | undefined;
|
1023
|
-
startDate?: string |
|
1024
|
-
endDate?: string |
|
1025
|
-
duration?: number | null | undefined;
|
1011
|
+
startDate?: string | undefined;
|
1012
|
+
endDate?: string | undefined;
|
1026
1013
|
createdDate?: string | undefined;
|
1027
|
-
startTime?: number |
|
1028
|
-
endTime?: number |
|
1014
|
+
startTime?: number | undefined;
|
1015
|
+
endTime?: number | undefined;
|
1029
1016
|
} | undefined;
|
1030
1017
|
profile?: {
|
1031
1018
|
iccid?: string | undefined;
|
@@ -1034,12 +1021,11 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1034
1021
|
purchase?: {
|
1035
1022
|
id?: string | undefined;
|
1036
1023
|
packageId?: string | undefined;
|
1037
|
-
startDate?: string |
|
1038
|
-
endDate?: string |
|
1039
|
-
duration?: number | null | undefined;
|
1024
|
+
startDate?: string | undefined;
|
1025
|
+
endDate?: string | undefined;
|
1040
1026
|
createdDate?: string | undefined;
|
1041
|
-
startTime?: number |
|
1042
|
-
endTime?: number |
|
1027
|
+
startTime?: number | undefined;
|
1028
|
+
endTime?: number | undefined;
|
1043
1029
|
} | undefined;
|
1044
1030
|
profile?: {
|
1045
1031
|
iccid?: string | undefined;
|
@@ -1091,22 +1077,22 @@ type EditPurchaseRequest = z.infer<typeof editPurchaseRequest>;
|
|
1091
1077
|
*/
|
1092
1078
|
declare const editPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
1093
1079
|
purchaseId: z.ZodOptional<z.ZodString>;
|
1094
|
-
newStartDate: z.
|
1095
|
-
newEndDate: z.
|
1096
|
-
newStartTime: z.
|
1097
|
-
newEndTime: z.
|
1080
|
+
newStartDate: z.ZodOptional<z.ZodString>;
|
1081
|
+
newEndDate: z.ZodOptional<z.ZodString>;
|
1082
|
+
newStartTime: z.ZodOptional<z.ZodNumber>;
|
1083
|
+
newEndTime: z.ZodOptional<z.ZodNumber>;
|
1098
1084
|
}, "strip", z.ZodTypeAny, {
|
1099
1085
|
purchaseId?: string | undefined;
|
1100
|
-
newStartDate?: string |
|
1101
|
-
newEndDate?: string |
|
1102
|
-
newStartTime?: number |
|
1103
|
-
newEndTime?: number |
|
1086
|
+
newStartDate?: string | undefined;
|
1087
|
+
newEndDate?: string | undefined;
|
1088
|
+
newStartTime?: number | undefined;
|
1089
|
+
newEndTime?: number | undefined;
|
1104
1090
|
}, {
|
1105
1091
|
purchaseId?: string | undefined;
|
1106
|
-
newStartDate?: string |
|
1107
|
-
newEndDate?: string |
|
1108
|
-
newStartTime?: number |
|
1109
|
-
newEndTime?: number |
|
1092
|
+
newStartDate?: string | undefined;
|
1093
|
+
newEndDate?: string | undefined;
|
1094
|
+
newStartTime?: number | undefined;
|
1095
|
+
newEndTime?: number | undefined;
|
1110
1096
|
}>>;
|
1111
1097
|
/**
|
1112
1098
|
*
|
@@ -1135,10 +1121,7 @@ declare const getPurchaseConsumptionOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1135
1121
|
/**
|
1136
1122
|
*
|
1137
1123
|
* @typedef {GetPurchaseConsumptionOkResponse} getPurchaseConsumptionOkResponse
|
1138
|
-
* @property {number} - Remaining balance of the package in
|
1139
|
-
For ``limited packages``, this field indicates the remaining data in bytes.
|
1140
|
-
For ``unlimited packages``, it will return ``-1`` as an identifier.
|
1141
|
-
|
1124
|
+
* @property {number} - Remaining balance of the package in bytes
|
1142
1125
|
* @property {string} - Status of the connectivity, possible values are 'ACTIVE' or 'NOT_ACTIVE'
|
1143
1126
|
*/
|
1144
1127
|
type GetPurchaseConsumptionOkResponse = z.infer<typeof getPurchaseConsumptionOkResponse>;
|
@@ -1177,7 +1160,7 @@ declare class PurchasesService extends BaseService {
|
|
1177
1160
|
*/
|
1178
1161
|
topUpEsim(body: TopUpEsimRequest, requestConfig?: RequestConfig): Promise<HttpResponse<TopUpEsimOkResponse>>;
|
1179
1162
|
/**
|
1180
|
-
* This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency.
|
1163
|
+
* This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency.
|
1181
1164
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
1182
1165
|
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
1183
1166
|
*/
|
@@ -1246,12 +1229,11 @@ type CreatePurchaseV2OkResponseProfile = z.infer<typeof createPurchaseV2OkRespon
|
|
1246
1229
|
*/
|
1247
1230
|
declare const purchases: z.ZodLazy<z.ZodObject<{
|
1248
1231
|
id: z.ZodOptional<z.ZodString>;
|
1249
|
-
startDate: z.
|
1250
|
-
endDate: z.
|
1251
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1232
|
+
startDate: z.ZodOptional<z.ZodString>;
|
1233
|
+
endDate: z.ZodOptional<z.ZodString>;
|
1252
1234
|
createdDate: z.ZodOptional<z.ZodString>;
|
1253
|
-
startTime: z.
|
1254
|
-
endTime: z.
|
1235
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
1236
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
1255
1237
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
1256
1238
|
package: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
1257
1239
|
id: z.ZodOptional<z.ZodString>;
|
@@ -1284,12 +1266,11 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
|
|
1284
1266
|
referenceId: z.ZodOptional<z.ZodString>;
|
1285
1267
|
}, "strip", z.ZodTypeAny, {
|
1286
1268
|
id?: string | undefined;
|
1287
|
-
startDate?: string |
|
1288
|
-
endDate?: string |
|
1289
|
-
duration?: number | null | undefined;
|
1269
|
+
startDate?: string | undefined;
|
1270
|
+
endDate?: string | undefined;
|
1290
1271
|
createdDate?: string | undefined;
|
1291
|
-
startTime?: number |
|
1292
|
-
endTime?: number |
|
1272
|
+
startTime?: number | undefined;
|
1273
|
+
endTime?: number | undefined;
|
1293
1274
|
createdAt?: number | undefined;
|
1294
1275
|
package?: {
|
1295
1276
|
id?: string | undefined;
|
@@ -1306,12 +1287,11 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
|
|
1306
1287
|
referenceId?: string | undefined;
|
1307
1288
|
}, {
|
1308
1289
|
id?: string | undefined;
|
1309
|
-
startDate?: string |
|
1310
|
-
endDate?: string |
|
1311
|
-
duration?: number | null | undefined;
|
1290
|
+
startDate?: string | undefined;
|
1291
|
+
endDate?: string | undefined;
|
1312
1292
|
createdDate?: string | undefined;
|
1313
|
-
startTime?: number |
|
1314
|
-
endTime?: number |
|
1293
|
+
startTime?: number | undefined;
|
1294
|
+
endTime?: number | undefined;
|
1315
1295
|
createdAt?: number | undefined;
|
1316
1296
|
package?: {
|
1317
1297
|
id?: string | undefined;
|
@@ -1333,7 +1313,6 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
|
|
1333
1313
|
* @property {string} - ID of the purchase
|
1334
1314
|
* @property {string} - Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
1335
1315
|
* @property {string} - End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
1336
|
-
* @property {number} - It designates the number of days the eSIM is valid for within 90-day validity from issuance date.
|
1337
1316
|
* @property {string} - Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
1338
1317
|
* @property {number} - Epoch value representing the start time of the package's validity
|
1339
1318
|
* @property {number} - Epoch value representing the end time of the package's validity
|
@@ -1372,8 +1351,7 @@ declare const package_: z.ZodLazy<z.ZodObject<{
|
|
1372
1351
|
*
|
1373
1352
|
* @typedef {Package_} package_
|
1374
1353
|
* @property {string} - ID of the package
|
1375
|
-
* @property {number} - Size of the package in
|
1376
|
-
|
1354
|
+
* @property {number} - Size of the package in Bytes
|
1377
1355
|
* @property {string} - ISO representation of the package's destination.
|
1378
1356
|
* @property {string} - Name of the package's destination
|
1379
1357
|
* @property {number} - Price of the package in cents
|
@@ -1403,27 +1381,27 @@ type PurchasesEsim = z.infer<typeof purchasesEsim>;
|
|
1403
1381
|
declare const createPurchaseOkResponsePurchase: z.ZodLazy<z.ZodObject<{
|
1404
1382
|
id: z.ZodOptional<z.ZodString>;
|
1405
1383
|
packageId: z.ZodOptional<z.ZodString>;
|
1406
|
-
startDate: z.
|
1407
|
-
endDate: z.
|
1384
|
+
startDate: z.ZodOptional<z.ZodString>;
|
1385
|
+
endDate: z.ZodOptional<z.ZodString>;
|
1408
1386
|
createdDate: z.ZodOptional<z.ZodString>;
|
1409
|
-
startTime: z.
|
1410
|
-
endTime: z.
|
1387
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
1388
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
1411
1389
|
}, "strip", z.ZodTypeAny, {
|
1412
1390
|
id?: string | undefined;
|
1413
1391
|
packageId?: string | undefined;
|
1414
|
-
startDate?: string |
|
1415
|
-
endDate?: string |
|
1392
|
+
startDate?: string | undefined;
|
1393
|
+
endDate?: string | undefined;
|
1416
1394
|
createdDate?: string | undefined;
|
1417
|
-
startTime?: number |
|
1418
|
-
endTime?: number |
|
1395
|
+
startTime?: number | undefined;
|
1396
|
+
endTime?: number | undefined;
|
1419
1397
|
}, {
|
1420
1398
|
id?: string | undefined;
|
1421
1399
|
packageId?: string | undefined;
|
1422
|
-
startDate?: string |
|
1423
|
-
endDate?: string |
|
1400
|
+
startDate?: string | undefined;
|
1401
|
+
endDate?: string | undefined;
|
1424
1402
|
createdDate?: string | undefined;
|
1425
|
-
startTime?: number |
|
1426
|
-
endTime?: number |
|
1403
|
+
startTime?: number | undefined;
|
1404
|
+
endTime?: number | undefined;
|
1427
1405
|
}>>;
|
1428
1406
|
/**
|
1429
1407
|
*
|
@@ -1469,30 +1447,27 @@ type CreatePurchaseOkResponseProfile = z.infer<typeof createPurchaseOkResponsePr
|
|
1469
1447
|
declare const topUpEsimOkResponsePurchase: z.ZodLazy<z.ZodObject<{
|
1470
1448
|
id: z.ZodOptional<z.ZodString>;
|
1471
1449
|
packageId: z.ZodOptional<z.ZodString>;
|
1472
|
-
startDate: z.
|
1473
|
-
endDate: z.
|
1474
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1450
|
+
startDate: z.ZodOptional<z.ZodString>;
|
1451
|
+
endDate: z.ZodOptional<z.ZodString>;
|
1475
1452
|
createdDate: z.ZodOptional<z.ZodString>;
|
1476
|
-
startTime: z.
|
1477
|
-
endTime: z.
|
1453
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
1454
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
1478
1455
|
}, "strip", z.ZodTypeAny, {
|
1479
1456
|
id?: string | undefined;
|
1480
1457
|
packageId?: string | undefined;
|
1481
|
-
startDate?: string |
|
1482
|
-
endDate?: string |
|
1483
|
-
duration?: number | null | undefined;
|
1458
|
+
startDate?: string | undefined;
|
1459
|
+
endDate?: string | undefined;
|
1484
1460
|
createdDate?: string | undefined;
|
1485
|
-
startTime?: number |
|
1486
|
-
endTime?: number |
|
1461
|
+
startTime?: number | undefined;
|
1462
|
+
endTime?: number | undefined;
|
1487
1463
|
}, {
|
1488
1464
|
id?: string | undefined;
|
1489
1465
|
packageId?: string | undefined;
|
1490
|
-
startDate?: string |
|
1491
|
-
endDate?: string |
|
1492
|
-
duration?: number | null | undefined;
|
1466
|
+
startDate?: string | undefined;
|
1467
|
+
endDate?: string | undefined;
|
1493
1468
|
createdDate?: string | undefined;
|
1494
|
-
startTime?: number |
|
1495
|
-
endTime?: number |
|
1469
|
+
startTime?: number | undefined;
|
1470
|
+
endTime?: number | undefined;
|
1496
1471
|
}>>;
|
1497
1472
|
/**
|
1498
1473
|
*
|
@@ -1501,7 +1476,6 @@ declare const topUpEsimOkResponsePurchase: z.ZodLazy<z.ZodObject<{
|
|
1501
1476
|
* @property {string} - ID of the package
|
1502
1477
|
* @property {string} - Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
1503
1478
|
* @property {string} - End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
1504
|
-
* @property {number} - It designates the number of days the eSIM is valid for within 90-day validity from issuance date.
|
1505
1479
|
* @property {string} - Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
1506
1480
|
* @property {number} - Epoch value representing the start time of the package's validity
|
1507
1481
|
* @property {number} - Epoch value representing the end time of the package's validity
|
package/dist/index.js
CHANGED
@@ -1145,8 +1145,8 @@ var RequestBuilder = class {
|
|
1145
1145
|
requestSchema: import_zod3.default.any(),
|
1146
1146
|
requestContentType: "json" /* Json */,
|
1147
1147
|
retry: {
|
1148
|
-
attempts:
|
1149
|
-
delayMs:
|
1148
|
+
attempts: 3,
|
1149
|
+
delayMs: 150
|
1150
1150
|
},
|
1151
1151
|
validation: {
|
1152
1152
|
responseValidation: true
|
@@ -1755,13 +1755,6 @@ var PackagesService = class extends BaseService {
|
|
1755
1755
|
* @param {string} [params.destination] - ISO representation of the package's destination.
|
1756
1756
|
* @param {string} [params.startDate] - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
|
1757
1757
|
* @param {string} [params.endDate] - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
|
1758
|
-
* @param {number} [params.dataLimitInGb] - Size of the package in GB.
|
1759
|
-
|
1760
|
-
For **limited packages**, the available options are: **0.5, 1, 2, 3, 5, 8, 20GB**.
|
1761
|
-
|
1762
|
-
For **unlimited packages** (available to Region-3), please use **-1** as an identifier.
|
1763
|
-
|
1764
|
-
* @param {boolean} [params.includeUnlimited] - A boolean flag to include the **unlimited packages** in the response. The flag is false by default.
|
1765
1758
|
* @param {string} [params.afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
|
1766
1759
|
* @param {number} [params.limit] - Maximum number of packages to be returned in the response. The value must be greater than 0 and less than or equal to 160. If not provided, the default value is 20
|
1767
1760
|
* @param {number} [params.startTime] - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months
|
@@ -1792,12 +1785,6 @@ var PackagesService = class extends BaseService {
|
|
1792
1785
|
}).addQueryParam({
|
1793
1786
|
key: "endDate",
|
1794
1787
|
value: params == null ? void 0 : params.endDate
|
1795
|
-
}).addQueryParam({
|
1796
|
-
key: "dataLimitInGB",
|
1797
|
-
value: params == null ? void 0 : params.dataLimitInGb
|
1798
|
-
}).addQueryParam({
|
1799
|
-
key: "includeUnlimited",
|
1800
|
-
value: params == null ? void 0 : params.includeUnlimited
|
1801
1788
|
}).addQueryParam({
|
1802
1789
|
key: "afterCursor",
|
1803
1790
|
value: params == null ? void 0 : params.afterCursor
|
@@ -1827,6 +1814,8 @@ var createPurchaseV2Request = import_zod16.z.lazy(() => {
|
|
1827
1814
|
return import_zod16.z.object({
|
1828
1815
|
destination: import_zod16.z.string(),
|
1829
1816
|
dataLimitInGb: import_zod16.z.number(),
|
1817
|
+
startDate: import_zod16.z.string(),
|
1818
|
+
endDate: import_zod16.z.string(),
|
1830
1819
|
quantity: import_zod16.z.number().gte(1).lte(5),
|
1831
1820
|
email: import_zod16.z.string().optional(),
|
1832
1821
|
referenceId: import_zod16.z.string().optional(),
|
@@ -1838,6 +1827,8 @@ var createPurchaseV2RequestResponse = import_zod16.z.lazy(() => {
|
|
1838
1827
|
return import_zod16.z.object({
|
1839
1828
|
destination: import_zod16.z.string(),
|
1840
1829
|
dataLimitInGB: import_zod16.z.number(),
|
1830
|
+
startDate: import_zod16.z.string(),
|
1831
|
+
endDate: import_zod16.z.string(),
|
1841
1832
|
quantity: import_zod16.z.number().gte(1).lte(5),
|
1842
1833
|
email: import_zod16.z.string().optional(),
|
1843
1834
|
referenceId: import_zod16.z.string().optional(),
|
@@ -1846,6 +1837,8 @@ var createPurchaseV2RequestResponse = import_zod16.z.lazy(() => {
|
|
1846
1837
|
}).transform((data) => ({
|
1847
1838
|
destination: data["destination"],
|
1848
1839
|
dataLimitInGb: data["dataLimitInGB"],
|
1840
|
+
startDate: data["startDate"],
|
1841
|
+
endDate: data["endDate"],
|
1849
1842
|
quantity: data["quantity"],
|
1850
1843
|
email: data["email"],
|
1851
1844
|
referenceId: data["referenceId"],
|
@@ -1857,6 +1850,8 @@ var createPurchaseV2RequestRequest = import_zod16.z.lazy(() => {
|
|
1857
1850
|
return import_zod16.z.object({
|
1858
1851
|
destination: import_zod16.z.string(),
|
1859
1852
|
dataLimitInGb: import_zod16.z.number(),
|
1853
|
+
startDate: import_zod16.z.string(),
|
1854
|
+
endDate: import_zod16.z.string(),
|
1860
1855
|
quantity: import_zod16.z.number().gte(1).lte(5),
|
1861
1856
|
email: import_zod16.z.string().optional(),
|
1862
1857
|
referenceId: import_zod16.z.string().optional(),
|
@@ -1865,6 +1860,8 @@ var createPurchaseV2RequestRequest = import_zod16.z.lazy(() => {
|
|
1865
1860
|
}).transform((data) => ({
|
1866
1861
|
destination: data["destination"],
|
1867
1862
|
dataLimitInGB: data["dataLimitInGb"],
|
1863
|
+
startDate: data["startDate"],
|
1864
|
+
endDate: data["endDate"],
|
1868
1865
|
quantity: data["quantity"],
|
1869
1866
|
email: data["email"],
|
1870
1867
|
referenceId: data["referenceId"],
|
@@ -2084,12 +2081,11 @@ var purchasesEsimRequest = import_zod23.z.lazy(() => {
|
|
2084
2081
|
var purchases = import_zod24.z.lazy(() => {
|
2085
2082
|
return import_zod24.z.object({
|
2086
2083
|
id: import_zod24.z.string().optional(),
|
2087
|
-
startDate: import_zod24.z.string().optional()
|
2088
|
-
endDate: import_zod24.z.string().optional()
|
2089
|
-
duration: import_zod24.z.number().optional().nullable(),
|
2084
|
+
startDate: import_zod24.z.string().optional(),
|
2085
|
+
endDate: import_zod24.z.string().optional(),
|
2090
2086
|
createdDate: import_zod24.z.string().optional(),
|
2091
|
-
startTime: import_zod24.z.number().optional()
|
2092
|
-
endTime: import_zod24.z.number().optional()
|
2087
|
+
startTime: import_zod24.z.number().optional(),
|
2088
|
+
endTime: import_zod24.z.number().optional(),
|
2093
2089
|
createdAt: import_zod24.z.number().optional(),
|
2094
2090
|
package: package_.optional(),
|
2095
2091
|
esim: purchasesEsim.optional(),
|
@@ -2101,12 +2097,11 @@ var purchases = import_zod24.z.lazy(() => {
|
|
2101
2097
|
var purchasesResponse = import_zod24.z.lazy(() => {
|
2102
2098
|
return import_zod24.z.object({
|
2103
2099
|
id: import_zod24.z.string().optional(),
|
2104
|
-
startDate: import_zod24.z.string().optional()
|
2105
|
-
endDate: import_zod24.z.string().optional()
|
2106
|
-
duration: import_zod24.z.number().optional().nullable(),
|
2100
|
+
startDate: import_zod24.z.string().optional(),
|
2101
|
+
endDate: import_zod24.z.string().optional(),
|
2107
2102
|
createdDate: import_zod24.z.string().optional(),
|
2108
|
-
startTime: import_zod24.z.number().optional()
|
2109
|
-
endTime: import_zod24.z.number().optional()
|
2103
|
+
startTime: import_zod24.z.number().optional(),
|
2104
|
+
endTime: import_zod24.z.number().optional(),
|
2110
2105
|
createdAt: import_zod24.z.number().optional(),
|
2111
2106
|
package: packageResponse.optional(),
|
2112
2107
|
esim: purchasesEsimResponse.optional(),
|
@@ -2117,7 +2112,6 @@ var purchasesResponse = import_zod24.z.lazy(() => {
|
|
2117
2112
|
id: data["id"],
|
2118
2113
|
startDate: data["startDate"],
|
2119
2114
|
endDate: data["endDate"],
|
2120
|
-
duration: data["duration"],
|
2121
2115
|
createdDate: data["createdDate"],
|
2122
2116
|
startTime: data["startTime"],
|
2123
2117
|
endTime: data["endTime"],
|
@@ -2132,12 +2126,11 @@ var purchasesResponse = import_zod24.z.lazy(() => {
|
|
2132
2126
|
var purchasesRequest = import_zod24.z.lazy(() => {
|
2133
2127
|
return import_zod24.z.object({
|
2134
2128
|
id: import_zod24.z.string().optional(),
|
2135
|
-
startDate: import_zod24.z.string().optional()
|
2136
|
-
endDate: import_zod24.z.string().optional()
|
2137
|
-
duration: import_zod24.z.number().optional().nullable(),
|
2129
|
+
startDate: import_zod24.z.string().optional(),
|
2130
|
+
endDate: import_zod24.z.string().optional(),
|
2138
2131
|
createdDate: import_zod24.z.string().optional(),
|
2139
|
-
startTime: import_zod24.z.number().optional()
|
2140
|
-
endTime: import_zod24.z.number().optional()
|
2132
|
+
startTime: import_zod24.z.number().optional(),
|
2133
|
+
endTime: import_zod24.z.number().optional(),
|
2141
2134
|
createdAt: import_zod24.z.number().optional(),
|
2142
2135
|
package: packageRequest.optional(),
|
2143
2136
|
esim: purchasesEsimRequest.optional(),
|
@@ -2148,7 +2141,6 @@ var purchasesRequest = import_zod24.z.lazy(() => {
|
|
2148
2141
|
id: data["id"],
|
2149
2142
|
startDate: data["startDate"],
|
2150
2143
|
endDate: data["endDate"],
|
2151
|
-
duration: data["duration"],
|
2152
2144
|
createdDate: data["createdDate"],
|
2153
2145
|
startTime: data["startTime"],
|
2154
2146
|
endTime: data["endTime"],
|
@@ -2307,22 +2299,22 @@ var createPurchaseOkResponsePurchase = import_zod29.z.lazy(() => {
|
|
2307
2299
|
return import_zod29.z.object({
|
2308
2300
|
id: import_zod29.z.string().optional(),
|
2309
2301
|
packageId: import_zod29.z.string().optional(),
|
2310
|
-
startDate: import_zod29.z.string().optional()
|
2311
|
-
endDate: import_zod29.z.string().optional()
|
2302
|
+
startDate: import_zod29.z.string().optional(),
|
2303
|
+
endDate: import_zod29.z.string().optional(),
|
2312
2304
|
createdDate: import_zod29.z.string().optional(),
|
2313
|
-
startTime: import_zod29.z.number().optional()
|
2314
|
-
endTime: import_zod29.z.number().optional()
|
2305
|
+
startTime: import_zod29.z.number().optional(),
|
2306
|
+
endTime: import_zod29.z.number().optional()
|
2315
2307
|
});
|
2316
2308
|
});
|
2317
2309
|
var createPurchaseOkResponsePurchaseResponse = import_zod29.z.lazy(() => {
|
2318
2310
|
return import_zod29.z.object({
|
2319
2311
|
id: import_zod29.z.string().optional(),
|
2320
2312
|
packageId: import_zod29.z.string().optional(),
|
2321
|
-
startDate: import_zod29.z.string().optional()
|
2322
|
-
endDate: import_zod29.z.string().optional()
|
2313
|
+
startDate: import_zod29.z.string().optional(),
|
2314
|
+
endDate: import_zod29.z.string().optional(),
|
2323
2315
|
createdDate: import_zod29.z.string().optional(),
|
2324
|
-
startTime: import_zod29.z.number().optional()
|
2325
|
-
endTime: import_zod29.z.number().optional()
|
2316
|
+
startTime: import_zod29.z.number().optional(),
|
2317
|
+
endTime: import_zod29.z.number().optional()
|
2326
2318
|
}).transform((data) => ({
|
2327
2319
|
id: data["id"],
|
2328
2320
|
packageId: data["packageId"],
|
@@ -2337,11 +2329,11 @@ var createPurchaseOkResponsePurchaseRequest = import_zod29.z.lazy(() => {
|
|
2337
2329
|
return import_zod29.z.object({
|
2338
2330
|
id: import_zod29.z.string().optional(),
|
2339
2331
|
packageId: import_zod29.z.string().optional(),
|
2340
|
-
startDate: import_zod29.z.string().optional()
|
2341
|
-
endDate: import_zod29.z.string().optional()
|
2332
|
+
startDate: import_zod29.z.string().optional(),
|
2333
|
+
endDate: import_zod29.z.string().optional(),
|
2342
2334
|
createdDate: import_zod29.z.string().optional(),
|
2343
|
-
startTime: import_zod29.z.number().optional()
|
2344
|
-
endTime: import_zod29.z.number().optional()
|
2335
|
+
startTime: import_zod29.z.number().optional(),
|
2336
|
+
endTime: import_zod29.z.number().optional()
|
2345
2337
|
}).transform((data) => ({
|
2346
2338
|
id: data["id"],
|
2347
2339
|
packageId: data["packageId"],
|
@@ -2461,6 +2453,8 @@ var topUpEsimRequest = import_zod34.z.lazy(() => {
|
|
2461
2453
|
return import_zod34.z.object({
|
2462
2454
|
iccid: import_zod34.z.string().min(18).max(22),
|
2463
2455
|
dataLimitInGb: import_zod34.z.number(),
|
2456
|
+
startDate: import_zod34.z.string(),
|
2457
|
+
endDate: import_zod34.z.string(),
|
2464
2458
|
email: import_zod34.z.string().optional(),
|
2465
2459
|
referenceId: import_zod34.z.string().optional(),
|
2466
2460
|
emailBrand: import_zod34.z.string().optional(),
|
@@ -2472,6 +2466,8 @@ var topUpEsimRequestResponse = import_zod34.z.lazy(() => {
|
|
2472
2466
|
return import_zod34.z.object({
|
2473
2467
|
iccid: import_zod34.z.string().min(18).max(22),
|
2474
2468
|
dataLimitInGB: import_zod34.z.number(),
|
2469
|
+
startDate: import_zod34.z.string(),
|
2470
|
+
endDate: import_zod34.z.string(),
|
2475
2471
|
email: import_zod34.z.string().optional(),
|
2476
2472
|
referenceId: import_zod34.z.string().optional(),
|
2477
2473
|
emailBrand: import_zod34.z.string().optional(),
|
@@ -2480,6 +2476,8 @@ var topUpEsimRequestResponse = import_zod34.z.lazy(() => {
|
|
2480
2476
|
}).transform((data) => ({
|
2481
2477
|
iccid: data["iccid"],
|
2482
2478
|
dataLimitInGb: data["dataLimitInGB"],
|
2479
|
+
startDate: data["startDate"],
|
2480
|
+
endDate: data["endDate"],
|
2483
2481
|
email: data["email"],
|
2484
2482
|
referenceId: data["referenceId"],
|
2485
2483
|
emailBrand: data["emailBrand"],
|
@@ -2491,6 +2489,8 @@ var topUpEsimRequestRequest = import_zod34.z.lazy(() => {
|
|
2491
2489
|
return import_zod34.z.object({
|
2492
2490
|
iccid: import_zod34.z.string().min(18).max(22),
|
2493
2491
|
dataLimitInGb: import_zod34.z.number(),
|
2492
|
+
startDate: import_zod34.z.string(),
|
2493
|
+
endDate: import_zod34.z.string(),
|
2494
2494
|
email: import_zod34.z.string().optional(),
|
2495
2495
|
referenceId: import_zod34.z.string().optional(),
|
2496
2496
|
emailBrand: import_zod34.z.string().optional(),
|
@@ -2499,6 +2499,8 @@ var topUpEsimRequestRequest = import_zod34.z.lazy(() => {
|
|
2499
2499
|
}).transform((data) => ({
|
2500
2500
|
iccid: data["iccid"],
|
2501
2501
|
dataLimitInGB: data["dataLimitInGb"],
|
2502
|
+
startDate: data["startDate"],
|
2503
|
+
endDate: data["endDate"],
|
2502
2504
|
email: data["email"],
|
2503
2505
|
referenceId: data["referenceId"],
|
2504
2506
|
emailBrand: data["emailBrand"],
|
@@ -2516,30 +2518,27 @@ var topUpEsimOkResponsePurchase = import_zod35.z.lazy(() => {
|
|
2516
2518
|
return import_zod35.z.object({
|
2517
2519
|
id: import_zod35.z.string().optional(),
|
2518
2520
|
packageId: import_zod35.z.string().optional(),
|
2519
|
-
startDate: import_zod35.z.string().optional()
|
2520
|
-
endDate: import_zod35.z.string().optional()
|
2521
|
-
duration: import_zod35.z.number().optional().nullable(),
|
2521
|
+
startDate: import_zod35.z.string().optional(),
|
2522
|
+
endDate: import_zod35.z.string().optional(),
|
2522
2523
|
createdDate: import_zod35.z.string().optional(),
|
2523
|
-
startTime: import_zod35.z.number().optional()
|
2524
|
-
endTime: import_zod35.z.number().optional()
|
2524
|
+
startTime: import_zod35.z.number().optional(),
|
2525
|
+
endTime: import_zod35.z.number().optional()
|
2525
2526
|
});
|
2526
2527
|
});
|
2527
2528
|
var topUpEsimOkResponsePurchaseResponse = import_zod35.z.lazy(() => {
|
2528
2529
|
return import_zod35.z.object({
|
2529
2530
|
id: import_zod35.z.string().optional(),
|
2530
2531
|
packageId: import_zod35.z.string().optional(),
|
2531
|
-
startDate: import_zod35.z.string().optional()
|
2532
|
-
endDate: import_zod35.z.string().optional()
|
2533
|
-
duration: import_zod35.z.number().optional().nullable(),
|
2532
|
+
startDate: import_zod35.z.string().optional(),
|
2533
|
+
endDate: import_zod35.z.string().optional(),
|
2534
2534
|
createdDate: import_zod35.z.string().optional(),
|
2535
|
-
startTime: import_zod35.z.number().optional()
|
2536
|
-
endTime: import_zod35.z.number().optional()
|
2535
|
+
startTime: import_zod35.z.number().optional(),
|
2536
|
+
endTime: import_zod35.z.number().optional()
|
2537
2537
|
}).transform((data) => ({
|
2538
2538
|
id: data["id"],
|
2539
2539
|
packageId: data["packageId"],
|
2540
2540
|
startDate: data["startDate"],
|
2541
2541
|
endDate: data["endDate"],
|
2542
|
-
duration: data["duration"],
|
2543
2542
|
createdDate: data["createdDate"],
|
2544
2543
|
startTime: data["startTime"],
|
2545
2544
|
endTime: data["endTime"]
|
@@ -2549,18 +2548,16 @@ var topUpEsimOkResponsePurchaseRequest = import_zod35.z.lazy(() => {
|
|
2549
2548
|
return import_zod35.z.object({
|
2550
2549
|
id: import_zod35.z.string().optional(),
|
2551
2550
|
packageId: import_zod35.z.string().optional(),
|
2552
|
-
startDate: import_zod35.z.string().optional()
|
2553
|
-
endDate: import_zod35.z.string().optional()
|
2554
|
-
duration: import_zod35.z.number().optional().nullable(),
|
2551
|
+
startDate: import_zod35.z.string().optional(),
|
2552
|
+
endDate: import_zod35.z.string().optional(),
|
2555
2553
|
createdDate: import_zod35.z.string().optional(),
|
2556
|
-
startTime: import_zod35.z.number().optional()
|
2557
|
-
endTime: import_zod35.z.number().optional()
|
2554
|
+
startTime: import_zod35.z.number().optional(),
|
2555
|
+
endTime: import_zod35.z.number().optional()
|
2558
2556
|
}).transform((data) => ({
|
2559
2557
|
id: data["id"],
|
2560
2558
|
packageId: data["packageId"],
|
2561
2559
|
startDate: data["startDate"],
|
2562
2560
|
endDate: data["endDate"],
|
2563
|
-
duration: data["duration"],
|
2564
2561
|
createdDate: data["createdDate"],
|
2565
2562
|
startTime: data["startTime"],
|
2566
2563
|
endTime: data["endTime"]
|
@@ -2706,19 +2703,19 @@ var import_zod41 = require("zod");
|
|
2706
2703
|
var editPurchaseOkResponse = import_zod41.z.lazy(() => {
|
2707
2704
|
return import_zod41.z.object({
|
2708
2705
|
purchaseId: import_zod41.z.string().optional(),
|
2709
|
-
newStartDate: import_zod41.z.string().optional()
|
2710
|
-
newEndDate: import_zod41.z.string().optional()
|
2711
|
-
newStartTime: import_zod41.z.number().optional()
|
2712
|
-
newEndTime: import_zod41.z.number().optional()
|
2706
|
+
newStartDate: import_zod41.z.string().optional(),
|
2707
|
+
newEndDate: import_zod41.z.string().optional(),
|
2708
|
+
newStartTime: import_zod41.z.number().optional(),
|
2709
|
+
newEndTime: import_zod41.z.number().optional()
|
2713
2710
|
});
|
2714
2711
|
});
|
2715
2712
|
var editPurchaseOkResponseResponse = import_zod41.z.lazy(() => {
|
2716
2713
|
return import_zod41.z.object({
|
2717
2714
|
purchaseId: import_zod41.z.string().optional(),
|
2718
|
-
newStartDate: import_zod41.z.string().optional()
|
2719
|
-
newEndDate: import_zod41.z.string().optional()
|
2720
|
-
newStartTime: import_zod41.z.number().optional()
|
2721
|
-
newEndTime: import_zod41.z.number().optional()
|
2715
|
+
newStartDate: import_zod41.z.string().optional(),
|
2716
|
+
newEndDate: import_zod41.z.string().optional(),
|
2717
|
+
newStartTime: import_zod41.z.number().optional(),
|
2718
|
+
newEndTime: import_zod41.z.number().optional()
|
2722
2719
|
}).transform((data) => ({
|
2723
2720
|
purchaseId: data["purchaseId"],
|
2724
2721
|
newStartDate: data["newStartDate"],
|
@@ -2730,10 +2727,10 @@ var editPurchaseOkResponseResponse = import_zod41.z.lazy(() => {
|
|
2730
2727
|
var editPurchaseOkResponseRequest = import_zod41.z.lazy(() => {
|
2731
2728
|
return import_zod41.z.object({
|
2732
2729
|
purchaseId: import_zod41.z.string().optional(),
|
2733
|
-
newStartDate: import_zod41.z.string().optional()
|
2734
|
-
newEndDate: import_zod41.z.string().optional()
|
2735
|
-
newStartTime: import_zod41.z.number().optional()
|
2736
|
-
newEndTime: import_zod41.z.number().optional()
|
2730
|
+
newStartDate: import_zod41.z.string().optional(),
|
2731
|
+
newEndDate: import_zod41.z.string().optional(),
|
2732
|
+
newStartTime: import_zod41.z.number().optional(),
|
2733
|
+
newEndTime: import_zod41.z.number().optional()
|
2737
2734
|
}).transform((data) => ({
|
2738
2735
|
purchaseId: data["purchaseId"],
|
2739
2736
|
newStartDate: data["newStartDate"],
|
@@ -2977,7 +2974,7 @@ var PurchasesService = class extends BaseService {
|
|
2977
2974
|
return this.client.call(request);
|
2978
2975
|
}
|
2979
2976
|
/**
|
2980
|
-
* This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency.
|
2977
|
+
* This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency.
|
2981
2978
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
2982
2979
|
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
2983
2980
|
*/
|
package/dist/index.mjs
CHANGED
@@ -1101,8 +1101,8 @@ var RequestBuilder = class {
|
|
1101
1101
|
requestSchema: z.any(),
|
1102
1102
|
requestContentType: "json" /* Json */,
|
1103
1103
|
retry: {
|
1104
|
-
attempts:
|
1105
|
-
delayMs:
|
1104
|
+
attempts: 3,
|
1105
|
+
delayMs: 150
|
1106
1106
|
},
|
1107
1107
|
validation: {
|
1108
1108
|
responseValidation: true
|
@@ -1711,13 +1711,6 @@ var PackagesService = class extends BaseService {
|
|
1711
1711
|
* @param {string} [params.destination] - ISO representation of the package's destination.
|
1712
1712
|
* @param {string} [params.startDate] - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
|
1713
1713
|
* @param {string} [params.endDate] - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
|
1714
|
-
* @param {number} [params.dataLimitInGb] - Size of the package in GB.
|
1715
|
-
|
1716
|
-
For **limited packages**, the available options are: **0.5, 1, 2, 3, 5, 8, 20GB**.
|
1717
|
-
|
1718
|
-
For **unlimited packages** (available to Region-3), please use **-1** as an identifier.
|
1719
|
-
|
1720
|
-
* @param {boolean} [params.includeUnlimited] - A boolean flag to include the **unlimited packages** in the response. The flag is false by default.
|
1721
1714
|
* @param {string} [params.afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
|
1722
1715
|
* @param {number} [params.limit] - Maximum number of packages to be returned in the response. The value must be greater than 0 and less than or equal to 160. If not provided, the default value is 20
|
1723
1716
|
* @param {number} [params.startTime] - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months
|
@@ -1748,12 +1741,6 @@ var PackagesService = class extends BaseService {
|
|
1748
1741
|
}).addQueryParam({
|
1749
1742
|
key: "endDate",
|
1750
1743
|
value: params == null ? void 0 : params.endDate
|
1751
|
-
}).addQueryParam({
|
1752
|
-
key: "dataLimitInGB",
|
1753
|
-
value: params == null ? void 0 : params.dataLimitInGb
|
1754
|
-
}).addQueryParam({
|
1755
|
-
key: "includeUnlimited",
|
1756
|
-
value: params == null ? void 0 : params.includeUnlimited
|
1757
1744
|
}).addQueryParam({
|
1758
1745
|
key: "afterCursor",
|
1759
1746
|
value: params == null ? void 0 : params.afterCursor
|
@@ -1783,6 +1770,8 @@ var createPurchaseV2Request = z14.lazy(() => {
|
|
1783
1770
|
return z14.object({
|
1784
1771
|
destination: z14.string(),
|
1785
1772
|
dataLimitInGb: z14.number(),
|
1773
|
+
startDate: z14.string(),
|
1774
|
+
endDate: z14.string(),
|
1786
1775
|
quantity: z14.number().gte(1).lte(5),
|
1787
1776
|
email: z14.string().optional(),
|
1788
1777
|
referenceId: z14.string().optional(),
|
@@ -1794,6 +1783,8 @@ var createPurchaseV2RequestResponse = z14.lazy(() => {
|
|
1794
1783
|
return z14.object({
|
1795
1784
|
destination: z14.string(),
|
1796
1785
|
dataLimitInGB: z14.number(),
|
1786
|
+
startDate: z14.string(),
|
1787
|
+
endDate: z14.string(),
|
1797
1788
|
quantity: z14.number().gte(1).lte(5),
|
1798
1789
|
email: z14.string().optional(),
|
1799
1790
|
referenceId: z14.string().optional(),
|
@@ -1802,6 +1793,8 @@ var createPurchaseV2RequestResponse = z14.lazy(() => {
|
|
1802
1793
|
}).transform((data) => ({
|
1803
1794
|
destination: data["destination"],
|
1804
1795
|
dataLimitInGb: data["dataLimitInGB"],
|
1796
|
+
startDate: data["startDate"],
|
1797
|
+
endDate: data["endDate"],
|
1805
1798
|
quantity: data["quantity"],
|
1806
1799
|
email: data["email"],
|
1807
1800
|
referenceId: data["referenceId"],
|
@@ -1813,6 +1806,8 @@ var createPurchaseV2RequestRequest = z14.lazy(() => {
|
|
1813
1806
|
return z14.object({
|
1814
1807
|
destination: z14.string(),
|
1815
1808
|
dataLimitInGb: z14.number(),
|
1809
|
+
startDate: z14.string(),
|
1810
|
+
endDate: z14.string(),
|
1816
1811
|
quantity: z14.number().gte(1).lte(5),
|
1817
1812
|
email: z14.string().optional(),
|
1818
1813
|
referenceId: z14.string().optional(),
|
@@ -1821,6 +1816,8 @@ var createPurchaseV2RequestRequest = z14.lazy(() => {
|
|
1821
1816
|
}).transform((data) => ({
|
1822
1817
|
destination: data["destination"],
|
1823
1818
|
dataLimitInGB: data["dataLimitInGb"],
|
1819
|
+
startDate: data["startDate"],
|
1820
|
+
endDate: data["endDate"],
|
1824
1821
|
quantity: data["quantity"],
|
1825
1822
|
email: data["email"],
|
1826
1823
|
referenceId: data["referenceId"],
|
@@ -2040,12 +2037,11 @@ var purchasesEsimRequest = z21.lazy(() => {
|
|
2040
2037
|
var purchases = z22.lazy(() => {
|
2041
2038
|
return z22.object({
|
2042
2039
|
id: z22.string().optional(),
|
2043
|
-
startDate: z22.string().optional()
|
2044
|
-
endDate: z22.string().optional()
|
2045
|
-
duration: z22.number().optional().nullable(),
|
2040
|
+
startDate: z22.string().optional(),
|
2041
|
+
endDate: z22.string().optional(),
|
2046
2042
|
createdDate: z22.string().optional(),
|
2047
|
-
startTime: z22.number().optional()
|
2048
|
-
endTime: z22.number().optional()
|
2043
|
+
startTime: z22.number().optional(),
|
2044
|
+
endTime: z22.number().optional(),
|
2049
2045
|
createdAt: z22.number().optional(),
|
2050
2046
|
package: package_.optional(),
|
2051
2047
|
esim: purchasesEsim.optional(),
|
@@ -2057,12 +2053,11 @@ var purchases = z22.lazy(() => {
|
|
2057
2053
|
var purchasesResponse = z22.lazy(() => {
|
2058
2054
|
return z22.object({
|
2059
2055
|
id: z22.string().optional(),
|
2060
|
-
startDate: z22.string().optional()
|
2061
|
-
endDate: z22.string().optional()
|
2062
|
-
duration: z22.number().optional().nullable(),
|
2056
|
+
startDate: z22.string().optional(),
|
2057
|
+
endDate: z22.string().optional(),
|
2063
2058
|
createdDate: z22.string().optional(),
|
2064
|
-
startTime: z22.number().optional()
|
2065
|
-
endTime: z22.number().optional()
|
2059
|
+
startTime: z22.number().optional(),
|
2060
|
+
endTime: z22.number().optional(),
|
2066
2061
|
createdAt: z22.number().optional(),
|
2067
2062
|
package: packageResponse.optional(),
|
2068
2063
|
esim: purchasesEsimResponse.optional(),
|
@@ -2073,7 +2068,6 @@ var purchasesResponse = z22.lazy(() => {
|
|
2073
2068
|
id: data["id"],
|
2074
2069
|
startDate: data["startDate"],
|
2075
2070
|
endDate: data["endDate"],
|
2076
|
-
duration: data["duration"],
|
2077
2071
|
createdDate: data["createdDate"],
|
2078
2072
|
startTime: data["startTime"],
|
2079
2073
|
endTime: data["endTime"],
|
@@ -2088,12 +2082,11 @@ var purchasesResponse = z22.lazy(() => {
|
|
2088
2082
|
var purchasesRequest = z22.lazy(() => {
|
2089
2083
|
return z22.object({
|
2090
2084
|
id: z22.string().optional(),
|
2091
|
-
startDate: z22.string().optional()
|
2092
|
-
endDate: z22.string().optional()
|
2093
|
-
duration: z22.number().optional().nullable(),
|
2085
|
+
startDate: z22.string().optional(),
|
2086
|
+
endDate: z22.string().optional(),
|
2094
2087
|
createdDate: z22.string().optional(),
|
2095
|
-
startTime: z22.number().optional()
|
2096
|
-
endTime: z22.number().optional()
|
2088
|
+
startTime: z22.number().optional(),
|
2089
|
+
endTime: z22.number().optional(),
|
2097
2090
|
createdAt: z22.number().optional(),
|
2098
2091
|
package: packageRequest.optional(),
|
2099
2092
|
esim: purchasesEsimRequest.optional(),
|
@@ -2104,7 +2097,6 @@ var purchasesRequest = z22.lazy(() => {
|
|
2104
2097
|
id: data["id"],
|
2105
2098
|
startDate: data["startDate"],
|
2106
2099
|
endDate: data["endDate"],
|
2107
|
-
duration: data["duration"],
|
2108
2100
|
createdDate: data["createdDate"],
|
2109
2101
|
startTime: data["startTime"],
|
2110
2102
|
endTime: data["endTime"],
|
@@ -2263,22 +2255,22 @@ var createPurchaseOkResponsePurchase = z27.lazy(() => {
|
|
2263
2255
|
return z27.object({
|
2264
2256
|
id: z27.string().optional(),
|
2265
2257
|
packageId: z27.string().optional(),
|
2266
|
-
startDate: z27.string().optional()
|
2267
|
-
endDate: z27.string().optional()
|
2258
|
+
startDate: z27.string().optional(),
|
2259
|
+
endDate: z27.string().optional(),
|
2268
2260
|
createdDate: z27.string().optional(),
|
2269
|
-
startTime: z27.number().optional()
|
2270
|
-
endTime: z27.number().optional()
|
2261
|
+
startTime: z27.number().optional(),
|
2262
|
+
endTime: z27.number().optional()
|
2271
2263
|
});
|
2272
2264
|
});
|
2273
2265
|
var createPurchaseOkResponsePurchaseResponse = z27.lazy(() => {
|
2274
2266
|
return z27.object({
|
2275
2267
|
id: z27.string().optional(),
|
2276
2268
|
packageId: z27.string().optional(),
|
2277
|
-
startDate: z27.string().optional()
|
2278
|
-
endDate: z27.string().optional()
|
2269
|
+
startDate: z27.string().optional(),
|
2270
|
+
endDate: z27.string().optional(),
|
2279
2271
|
createdDate: z27.string().optional(),
|
2280
|
-
startTime: z27.number().optional()
|
2281
|
-
endTime: z27.number().optional()
|
2272
|
+
startTime: z27.number().optional(),
|
2273
|
+
endTime: z27.number().optional()
|
2282
2274
|
}).transform((data) => ({
|
2283
2275
|
id: data["id"],
|
2284
2276
|
packageId: data["packageId"],
|
@@ -2293,11 +2285,11 @@ var createPurchaseOkResponsePurchaseRequest = z27.lazy(() => {
|
|
2293
2285
|
return z27.object({
|
2294
2286
|
id: z27.string().optional(),
|
2295
2287
|
packageId: z27.string().optional(),
|
2296
|
-
startDate: z27.string().optional()
|
2297
|
-
endDate: z27.string().optional()
|
2288
|
+
startDate: z27.string().optional(),
|
2289
|
+
endDate: z27.string().optional(),
|
2298
2290
|
createdDate: z27.string().optional(),
|
2299
|
-
startTime: z27.number().optional()
|
2300
|
-
endTime: z27.number().optional()
|
2291
|
+
startTime: z27.number().optional(),
|
2292
|
+
endTime: z27.number().optional()
|
2301
2293
|
}).transform((data) => ({
|
2302
2294
|
id: data["id"],
|
2303
2295
|
packageId: data["packageId"],
|
@@ -2417,6 +2409,8 @@ var topUpEsimRequest = z32.lazy(() => {
|
|
2417
2409
|
return z32.object({
|
2418
2410
|
iccid: z32.string().min(18).max(22),
|
2419
2411
|
dataLimitInGb: z32.number(),
|
2412
|
+
startDate: z32.string(),
|
2413
|
+
endDate: z32.string(),
|
2420
2414
|
email: z32.string().optional(),
|
2421
2415
|
referenceId: z32.string().optional(),
|
2422
2416
|
emailBrand: z32.string().optional(),
|
@@ -2428,6 +2422,8 @@ var topUpEsimRequestResponse = z32.lazy(() => {
|
|
2428
2422
|
return z32.object({
|
2429
2423
|
iccid: z32.string().min(18).max(22),
|
2430
2424
|
dataLimitInGB: z32.number(),
|
2425
|
+
startDate: z32.string(),
|
2426
|
+
endDate: z32.string(),
|
2431
2427
|
email: z32.string().optional(),
|
2432
2428
|
referenceId: z32.string().optional(),
|
2433
2429
|
emailBrand: z32.string().optional(),
|
@@ -2436,6 +2432,8 @@ var topUpEsimRequestResponse = z32.lazy(() => {
|
|
2436
2432
|
}).transform((data) => ({
|
2437
2433
|
iccid: data["iccid"],
|
2438
2434
|
dataLimitInGb: data["dataLimitInGB"],
|
2435
|
+
startDate: data["startDate"],
|
2436
|
+
endDate: data["endDate"],
|
2439
2437
|
email: data["email"],
|
2440
2438
|
referenceId: data["referenceId"],
|
2441
2439
|
emailBrand: data["emailBrand"],
|
@@ -2447,6 +2445,8 @@ var topUpEsimRequestRequest = z32.lazy(() => {
|
|
2447
2445
|
return z32.object({
|
2448
2446
|
iccid: z32.string().min(18).max(22),
|
2449
2447
|
dataLimitInGb: z32.number(),
|
2448
|
+
startDate: z32.string(),
|
2449
|
+
endDate: z32.string(),
|
2450
2450
|
email: z32.string().optional(),
|
2451
2451
|
referenceId: z32.string().optional(),
|
2452
2452
|
emailBrand: z32.string().optional(),
|
@@ -2455,6 +2455,8 @@ var topUpEsimRequestRequest = z32.lazy(() => {
|
|
2455
2455
|
}).transform((data) => ({
|
2456
2456
|
iccid: data["iccid"],
|
2457
2457
|
dataLimitInGB: data["dataLimitInGb"],
|
2458
|
+
startDate: data["startDate"],
|
2459
|
+
endDate: data["endDate"],
|
2458
2460
|
email: data["email"],
|
2459
2461
|
referenceId: data["referenceId"],
|
2460
2462
|
emailBrand: data["emailBrand"],
|
@@ -2472,30 +2474,27 @@ var topUpEsimOkResponsePurchase = z33.lazy(() => {
|
|
2472
2474
|
return z33.object({
|
2473
2475
|
id: z33.string().optional(),
|
2474
2476
|
packageId: z33.string().optional(),
|
2475
|
-
startDate: z33.string().optional()
|
2476
|
-
endDate: z33.string().optional()
|
2477
|
-
duration: z33.number().optional().nullable(),
|
2477
|
+
startDate: z33.string().optional(),
|
2478
|
+
endDate: z33.string().optional(),
|
2478
2479
|
createdDate: z33.string().optional(),
|
2479
|
-
startTime: z33.number().optional()
|
2480
|
-
endTime: z33.number().optional()
|
2480
|
+
startTime: z33.number().optional(),
|
2481
|
+
endTime: z33.number().optional()
|
2481
2482
|
});
|
2482
2483
|
});
|
2483
2484
|
var topUpEsimOkResponsePurchaseResponse = z33.lazy(() => {
|
2484
2485
|
return z33.object({
|
2485
2486
|
id: z33.string().optional(),
|
2486
2487
|
packageId: z33.string().optional(),
|
2487
|
-
startDate: z33.string().optional()
|
2488
|
-
endDate: z33.string().optional()
|
2489
|
-
duration: z33.number().optional().nullable(),
|
2488
|
+
startDate: z33.string().optional(),
|
2489
|
+
endDate: z33.string().optional(),
|
2490
2490
|
createdDate: z33.string().optional(),
|
2491
|
-
startTime: z33.number().optional()
|
2492
|
-
endTime: z33.number().optional()
|
2491
|
+
startTime: z33.number().optional(),
|
2492
|
+
endTime: z33.number().optional()
|
2493
2493
|
}).transform((data) => ({
|
2494
2494
|
id: data["id"],
|
2495
2495
|
packageId: data["packageId"],
|
2496
2496
|
startDate: data["startDate"],
|
2497
2497
|
endDate: data["endDate"],
|
2498
|
-
duration: data["duration"],
|
2499
2498
|
createdDate: data["createdDate"],
|
2500
2499
|
startTime: data["startTime"],
|
2501
2500
|
endTime: data["endTime"]
|
@@ -2505,18 +2504,16 @@ var topUpEsimOkResponsePurchaseRequest = z33.lazy(() => {
|
|
2505
2504
|
return z33.object({
|
2506
2505
|
id: z33.string().optional(),
|
2507
2506
|
packageId: z33.string().optional(),
|
2508
|
-
startDate: z33.string().optional()
|
2509
|
-
endDate: z33.string().optional()
|
2510
|
-
duration: z33.number().optional().nullable(),
|
2507
|
+
startDate: z33.string().optional(),
|
2508
|
+
endDate: z33.string().optional(),
|
2511
2509
|
createdDate: z33.string().optional(),
|
2512
|
-
startTime: z33.number().optional()
|
2513
|
-
endTime: z33.number().optional()
|
2510
|
+
startTime: z33.number().optional(),
|
2511
|
+
endTime: z33.number().optional()
|
2514
2512
|
}).transform((data) => ({
|
2515
2513
|
id: data["id"],
|
2516
2514
|
packageId: data["packageId"],
|
2517
2515
|
startDate: data["startDate"],
|
2518
2516
|
endDate: data["endDate"],
|
2519
|
-
duration: data["duration"],
|
2520
2517
|
createdDate: data["createdDate"],
|
2521
2518
|
startTime: data["startTime"],
|
2522
2519
|
endTime: data["endTime"]
|
@@ -2662,19 +2659,19 @@ import { z as z39 } from "zod";
|
|
2662
2659
|
var editPurchaseOkResponse = z39.lazy(() => {
|
2663
2660
|
return z39.object({
|
2664
2661
|
purchaseId: z39.string().optional(),
|
2665
|
-
newStartDate: z39.string().optional()
|
2666
|
-
newEndDate: z39.string().optional()
|
2667
|
-
newStartTime: z39.number().optional()
|
2668
|
-
newEndTime: z39.number().optional()
|
2662
|
+
newStartDate: z39.string().optional(),
|
2663
|
+
newEndDate: z39.string().optional(),
|
2664
|
+
newStartTime: z39.number().optional(),
|
2665
|
+
newEndTime: z39.number().optional()
|
2669
2666
|
});
|
2670
2667
|
});
|
2671
2668
|
var editPurchaseOkResponseResponse = z39.lazy(() => {
|
2672
2669
|
return z39.object({
|
2673
2670
|
purchaseId: z39.string().optional(),
|
2674
|
-
newStartDate: z39.string().optional()
|
2675
|
-
newEndDate: z39.string().optional()
|
2676
|
-
newStartTime: z39.number().optional()
|
2677
|
-
newEndTime: z39.number().optional()
|
2671
|
+
newStartDate: z39.string().optional(),
|
2672
|
+
newEndDate: z39.string().optional(),
|
2673
|
+
newStartTime: z39.number().optional(),
|
2674
|
+
newEndTime: z39.number().optional()
|
2678
2675
|
}).transform((data) => ({
|
2679
2676
|
purchaseId: data["purchaseId"],
|
2680
2677
|
newStartDate: data["newStartDate"],
|
@@ -2686,10 +2683,10 @@ var editPurchaseOkResponseResponse = z39.lazy(() => {
|
|
2686
2683
|
var editPurchaseOkResponseRequest = z39.lazy(() => {
|
2687
2684
|
return z39.object({
|
2688
2685
|
purchaseId: z39.string().optional(),
|
2689
|
-
newStartDate: z39.string().optional()
|
2690
|
-
newEndDate: z39.string().optional()
|
2691
|
-
newStartTime: z39.number().optional()
|
2692
|
-
newEndTime: z39.number().optional()
|
2686
|
+
newStartDate: z39.string().optional(),
|
2687
|
+
newEndDate: z39.string().optional(),
|
2688
|
+
newStartTime: z39.number().optional(),
|
2689
|
+
newEndTime: z39.number().optional()
|
2693
2690
|
}).transform((data) => ({
|
2694
2691
|
purchaseId: data["purchaseId"],
|
2695
2692
|
newStartDate: data["newStartDate"],
|
@@ -2933,7 +2930,7 @@ var PurchasesService = class extends BaseService {
|
|
2933
2930
|
return this.client.call(request);
|
2934
2931
|
}
|
2935
2932
|
/**
|
2936
|
-
* This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency.
|
2933
|
+
* This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency.
|
2937
2934
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
2938
2935
|
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
2939
2936
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "celitech-sdk",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.44",
|
4
4
|
"description": "Welcome to the CELITECH API documentation! Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/)",
|
5
5
|
"source": "./src/index.ts",
|
6
6
|
"main": "./dist/index.js",
|