celitech-sdk 1.3.57 → 1.3.59
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 +41 -52
- package/dist/index.d.ts +144 -365
- package/dist/index.js +544 -1141
- package/dist/index.mjs +544 -1141
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
@@ -323,20 +323,6 @@ declare const destinations: z.ZodLazy<z.ZodObject<{
|
|
323
323
|
*/
|
324
324
|
type Destinations = z.infer<typeof destinations>;
|
325
325
|
|
326
|
-
declare class __ extends ThrowableError {
|
327
|
-
message: string;
|
328
|
-
protected response?: unknown;
|
329
|
-
constructor(message: string, response?: unknown);
|
330
|
-
throw(): void;
|
331
|
-
}
|
332
|
-
|
333
|
-
declare class _1 extends ThrowableError {
|
334
|
-
message: string;
|
335
|
-
protected response?: unknown;
|
336
|
-
constructor(message: string, response?: unknown);
|
337
|
-
throw(): void;
|
338
|
-
}
|
339
|
-
|
340
326
|
/**
|
341
327
|
* The shape of the model inside the application code - what the users use
|
342
328
|
*/
|
@@ -467,20 +453,6 @@ declare const packages: z.ZodLazy<z.ZodObject<{
|
|
467
453
|
*/
|
468
454
|
type Packages = z.infer<typeof packages>;
|
469
455
|
|
470
|
-
declare class _2 extends ThrowableError {
|
471
|
-
message: string;
|
472
|
-
protected response?: unknown;
|
473
|
-
constructor(message: string, response?: unknown);
|
474
|
-
throw(): void;
|
475
|
-
}
|
476
|
-
|
477
|
-
declare class _3 extends ThrowableError {
|
478
|
-
message: string;
|
479
|
-
protected response?: unknown;
|
480
|
-
constructor(message: string, response?: unknown);
|
481
|
-
throw(): void;
|
482
|
-
}
|
483
|
-
|
484
456
|
/**
|
485
457
|
* The shape of the model inside the application code - what the users use
|
486
458
|
*/
|
@@ -597,11 +569,11 @@ type CreatePurchaseV2OkResponse = z.infer<typeof createPurchaseV2OkResponse>;
|
|
597
569
|
declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
598
570
|
purchases: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
599
571
|
id: z.ZodString;
|
600
|
-
startDate: z.ZodString
|
601
|
-
endDate: z.ZodString
|
572
|
+
startDate: z.ZodNullable<z.ZodString>;
|
573
|
+
endDate: z.ZodNullable<z.ZodString>;
|
602
574
|
createdDate: z.ZodString;
|
603
|
-
startTime: z.ZodOptional<z.ZodNumber
|
604
|
-
endTime: z.ZodOptional<z.ZodNumber
|
575
|
+
startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
576
|
+
endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
605
577
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
606
578
|
package: z.ZodLazy<z.ZodObject<{
|
607
579
|
id: z.ZodString;
|
@@ -637,8 +609,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
637
609
|
referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
638
610
|
}, "strip", z.ZodTypeAny, {
|
639
611
|
id: string;
|
640
|
-
startDate: string;
|
641
|
-
endDate: string;
|
612
|
+
startDate: string | null;
|
613
|
+
endDate: string | null;
|
642
614
|
createdDate: string;
|
643
615
|
package: {
|
644
616
|
destination: string;
|
@@ -653,14 +625,14 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
653
625
|
};
|
654
626
|
source: string;
|
655
627
|
purchaseType: string;
|
656
|
-
startTime?: number | undefined;
|
657
|
-
endTime?: number | undefined;
|
628
|
+
startTime?: number | null | undefined;
|
629
|
+
endTime?: number | null | undefined;
|
658
630
|
createdAt?: number | undefined;
|
659
631
|
referenceId?: string | null | undefined;
|
660
632
|
}, {
|
661
633
|
id: string;
|
662
|
-
startDate: string;
|
663
|
-
endDate: string;
|
634
|
+
startDate: string | null;
|
635
|
+
endDate: string | null;
|
664
636
|
createdDate: string;
|
665
637
|
package: {
|
666
638
|
destination: string;
|
@@ -675,8 +647,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
675
647
|
};
|
676
648
|
source: string;
|
677
649
|
purchaseType: string;
|
678
|
-
startTime?: number | undefined;
|
679
|
-
endTime?: number | undefined;
|
650
|
+
startTime?: number | null | undefined;
|
651
|
+
endTime?: number | null | undefined;
|
680
652
|
createdAt?: number | undefined;
|
681
653
|
referenceId?: string | null | undefined;
|
682
654
|
}>>, "many">;
|
@@ -685,8 +657,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
685
657
|
afterCursor: string | null;
|
686
658
|
purchases: {
|
687
659
|
id: string;
|
688
|
-
startDate: string;
|
689
|
-
endDate: string;
|
660
|
+
startDate: string | null;
|
661
|
+
endDate: string | null;
|
690
662
|
createdDate: string;
|
691
663
|
package: {
|
692
664
|
destination: string;
|
@@ -701,8 +673,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
701
673
|
};
|
702
674
|
source: string;
|
703
675
|
purchaseType: string;
|
704
|
-
startTime?: number | undefined;
|
705
|
-
endTime?: number | undefined;
|
676
|
+
startTime?: number | null | undefined;
|
677
|
+
endTime?: number | null | undefined;
|
706
678
|
createdAt?: number | undefined;
|
707
679
|
referenceId?: string | null | undefined;
|
708
680
|
}[];
|
@@ -710,8 +682,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
710
682
|
afterCursor: string | null;
|
711
683
|
purchases: {
|
712
684
|
id: string;
|
713
|
-
startDate: string;
|
714
|
-
endDate: string;
|
685
|
+
startDate: string | null;
|
686
|
+
endDate: string | null;
|
715
687
|
createdDate: string;
|
716
688
|
package: {
|
717
689
|
destination: string;
|
@@ -726,8 +698,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
726
698
|
};
|
727
699
|
source: string;
|
728
700
|
purchaseType: string;
|
729
|
-
startTime?: number | undefined;
|
730
|
-
endTime?: number | undefined;
|
701
|
+
startTime?: number | null | undefined;
|
702
|
+
endTime?: number | null | undefined;
|
731
703
|
createdAt?: number | undefined;
|
732
704
|
referenceId?: string | null | undefined;
|
733
705
|
}[];
|
@@ -812,27 +784,27 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
|
812
784
|
purchase: z.ZodLazy<z.ZodObject<{
|
813
785
|
id: z.ZodString;
|
814
786
|
packageId: z.ZodString;
|
815
|
-
startDate: z.ZodString
|
816
|
-
endDate: z.ZodString
|
787
|
+
startDate: z.ZodNullable<z.ZodString>;
|
788
|
+
endDate: z.ZodNullable<z.ZodString>;
|
817
789
|
createdDate: z.ZodString;
|
818
|
-
startTime: z.ZodOptional<z.ZodNumber
|
819
|
-
endTime: z.ZodOptional<z.ZodNumber
|
790
|
+
startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
791
|
+
endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
820
792
|
}, "strip", z.ZodTypeAny, {
|
821
793
|
id: string;
|
822
|
-
startDate: string;
|
823
|
-
endDate: string;
|
794
|
+
startDate: string | null;
|
795
|
+
endDate: string | null;
|
824
796
|
packageId: string;
|
825
797
|
createdDate: string;
|
826
|
-
startTime?: number | undefined;
|
827
|
-
endTime?: number | undefined;
|
798
|
+
startTime?: number | null | undefined;
|
799
|
+
endTime?: number | null | undefined;
|
828
800
|
}, {
|
829
801
|
id: string;
|
830
|
-
startDate: string;
|
831
|
-
endDate: string;
|
802
|
+
startDate: string | null;
|
803
|
+
endDate: string | null;
|
832
804
|
packageId: string;
|
833
805
|
createdDate: string;
|
834
|
-
startTime?: number | undefined;
|
835
|
-
endTime?: number | undefined;
|
806
|
+
startTime?: number | null | undefined;
|
807
|
+
endTime?: number | null | undefined;
|
836
808
|
}>>;
|
837
809
|
profile: z.ZodLazy<z.ZodObject<{
|
838
810
|
iccid: z.ZodString;
|
@@ -850,12 +822,12 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
|
850
822
|
}, "strip", z.ZodTypeAny, {
|
851
823
|
purchase: {
|
852
824
|
id: string;
|
853
|
-
startDate: string;
|
854
|
-
endDate: string;
|
825
|
+
startDate: string | null;
|
826
|
+
endDate: string | null;
|
855
827
|
packageId: string;
|
856
828
|
createdDate: string;
|
857
|
-
startTime?: number | undefined;
|
858
|
-
endTime?: number | undefined;
|
829
|
+
startTime?: number | null | undefined;
|
830
|
+
endTime?: number | null | undefined;
|
859
831
|
};
|
860
832
|
profile: {
|
861
833
|
iccid: string;
|
@@ -865,12 +837,12 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
|
865
837
|
}, {
|
866
838
|
purchase: {
|
867
839
|
id: string;
|
868
|
-
startDate: string;
|
869
|
-
endDate: string;
|
840
|
+
startDate: string | null;
|
841
|
+
endDate: string | null;
|
870
842
|
packageId: string;
|
871
843
|
createdDate: string;
|
872
|
-
startTime?: number | undefined;
|
873
|
-
endTime?: number | undefined;
|
844
|
+
startTime?: number | null | undefined;
|
845
|
+
endTime?: number | null | undefined;
|
874
846
|
};
|
875
847
|
profile: {
|
876
848
|
iccid: string;
|
@@ -942,27 +914,27 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
942
914
|
purchase: z.ZodLazy<z.ZodObject<{
|
943
915
|
id: z.ZodString;
|
944
916
|
packageId: z.ZodString;
|
945
|
-
startDate: z.ZodString
|
946
|
-
endDate: z.ZodString
|
917
|
+
startDate: z.ZodNullable<z.ZodString>;
|
918
|
+
endDate: z.ZodNullable<z.ZodString>;
|
947
919
|
createdDate: z.ZodString;
|
948
|
-
startTime: z.ZodOptional<z.ZodNumber
|
949
|
-
endTime: z.ZodOptional<z.ZodNumber
|
920
|
+
startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
921
|
+
endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
950
922
|
}, "strip", z.ZodTypeAny, {
|
951
923
|
id: string;
|
952
|
-
startDate: string;
|
953
|
-
endDate: string;
|
924
|
+
startDate: string | null;
|
925
|
+
endDate: string | null;
|
954
926
|
packageId: string;
|
955
927
|
createdDate: string;
|
956
|
-
startTime?: number | undefined;
|
957
|
-
endTime?: number | undefined;
|
928
|
+
startTime?: number | null | undefined;
|
929
|
+
endTime?: number | null | undefined;
|
958
930
|
}, {
|
959
931
|
id: string;
|
960
|
-
startDate: string;
|
961
|
-
endDate: string;
|
932
|
+
startDate: string | null;
|
933
|
+
endDate: string | null;
|
962
934
|
packageId: string;
|
963
935
|
createdDate: string;
|
964
|
-
startTime?: number | undefined;
|
965
|
-
endTime?: number | undefined;
|
936
|
+
startTime?: number | null | undefined;
|
937
|
+
endTime?: number | null | undefined;
|
966
938
|
}>>;
|
967
939
|
profile: z.ZodLazy<z.ZodObject<{
|
968
940
|
iccid: z.ZodString;
|
@@ -974,12 +946,12 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
974
946
|
}, "strip", z.ZodTypeAny, {
|
975
947
|
purchase: {
|
976
948
|
id: string;
|
977
|
-
startDate: string;
|
978
|
-
endDate: string;
|
949
|
+
startDate: string | null;
|
950
|
+
endDate: string | null;
|
979
951
|
packageId: string;
|
980
952
|
createdDate: string;
|
981
|
-
startTime?: number | undefined;
|
982
|
-
endTime?: number | undefined;
|
953
|
+
startTime?: number | null | undefined;
|
954
|
+
endTime?: number | null | undefined;
|
983
955
|
};
|
984
956
|
profile: {
|
985
957
|
iccid: string;
|
@@ -987,12 +959,12 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
987
959
|
}, {
|
988
960
|
purchase: {
|
989
961
|
id: string;
|
990
|
-
startDate: string;
|
991
|
-
endDate: string;
|
962
|
+
startDate: string | null;
|
963
|
+
endDate: string | null;
|
992
964
|
packageId: string;
|
993
965
|
createdDate: string;
|
994
|
-
startTime?: number | undefined;
|
995
|
-
endTime?: number | undefined;
|
966
|
+
startTime?: number | null | undefined;
|
967
|
+
endTime?: number | null | undefined;
|
996
968
|
};
|
997
969
|
profile: {
|
998
970
|
iccid: string;
|
@@ -1044,22 +1016,22 @@ type EditPurchaseRequest = z.infer<typeof editPurchaseRequest>;
|
|
1044
1016
|
*/
|
1045
1017
|
declare const editPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
1046
1018
|
purchaseId: z.ZodString;
|
1047
|
-
newStartDate: z.ZodString
|
1048
|
-
newEndDate: z.ZodString
|
1049
|
-
newStartTime: z.ZodOptional<z.ZodNumber
|
1050
|
-
newEndTime: z.ZodOptional<z.ZodNumber
|
1019
|
+
newStartDate: z.ZodNullable<z.ZodString>;
|
1020
|
+
newEndDate: z.ZodNullable<z.ZodString>;
|
1021
|
+
newStartTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1022
|
+
newEndTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1051
1023
|
}, "strip", z.ZodTypeAny, {
|
1052
1024
|
purchaseId: string;
|
1053
|
-
newStartDate: string;
|
1054
|
-
newEndDate: string;
|
1055
|
-
newStartTime?: number | undefined;
|
1056
|
-
newEndTime?: number | undefined;
|
1025
|
+
newStartDate: string | null;
|
1026
|
+
newEndDate: string | null;
|
1027
|
+
newStartTime?: number | null | undefined;
|
1028
|
+
newEndTime?: number | null | undefined;
|
1057
1029
|
}, {
|
1058
1030
|
purchaseId: string;
|
1059
|
-
newStartDate: string;
|
1060
|
-
newEndDate: string;
|
1061
|
-
newStartTime?: number | undefined;
|
1062
|
-
newEndTime?: number | undefined;
|
1031
|
+
newStartDate: string | null;
|
1032
|
+
newEndDate: string | null;
|
1033
|
+
newStartTime?: number | null | undefined;
|
1034
|
+
newEndTime?: number | null | undefined;
|
1063
1035
|
}>>;
|
1064
1036
|
/**
|
1065
1037
|
*
|
@@ -1128,10 +1100,17 @@ declare class PurchasesService extends BaseService {
|
|
1128
1100
|
*/
|
1129
1101
|
topUpEsim(body: TopUpEsimRequest, requestConfig?: RequestConfig): Promise<HttpResponse<TopUpEsimOkResponse>>;
|
1130
1102
|
/**
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1103
|
+
* This endpoint allows you to modify the validity dates of an existing purchase.
|
1104
|
+
**Behavior:**
|
1105
|
+
- If the purchase has **not yet been activated**, both the start and end dates can be updated.
|
1106
|
+
- If the purchase is **already active**, only the **end date** can be updated, while the **start date must remain unchanged** (and should be passed as originally set).
|
1107
|
+
- Updates must comply with the same pricing structure; the modification cannot alter the package size or change its duration category.
|
1108
|
+
|
1109
|
+
The end date can be extended or shortened as long as it adheres to the same pricing category and does not exceed the allowed duration limits.
|
1110
|
+
|
1111
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
1112
|
+
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
1113
|
+
*/
|
1135
1114
|
editPurchase(body: EditPurchaseRequest, requestConfig?: RequestConfig): Promise<HttpResponse<EditPurchaseOkResponse>>;
|
1136
1115
|
/**
|
1137
1116
|
* This endpoint can be called for consumption notifications (e.g. every 1 hour or when the user clicks a button). It returns the data balance (consumption) of purchased packages.
|
@@ -1197,11 +1176,11 @@ type CreatePurchaseV2OkResponseProfile = z.infer<typeof createPurchaseV2OkRespon
|
|
1197
1176
|
*/
|
1198
1177
|
declare const purchases: z.ZodLazy<z.ZodObject<{
|
1199
1178
|
id: z.ZodString;
|
1200
|
-
startDate: z.ZodString
|
1201
|
-
endDate: z.ZodString
|
1179
|
+
startDate: z.ZodNullable<z.ZodString>;
|
1180
|
+
endDate: z.ZodNullable<z.ZodString>;
|
1202
1181
|
createdDate: z.ZodString;
|
1203
|
-
startTime: z.ZodOptional<z.ZodNumber
|
1204
|
-
endTime: z.ZodOptional<z.ZodNumber
|
1182
|
+
startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1183
|
+
endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1205
1184
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
1206
1185
|
package: z.ZodLazy<z.ZodObject<{
|
1207
1186
|
id: z.ZodString;
|
@@ -1237,8 +1216,8 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
|
|
1237
1216
|
referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
1238
1217
|
}, "strip", z.ZodTypeAny, {
|
1239
1218
|
id: string;
|
1240
|
-
startDate: string;
|
1241
|
-
endDate: string;
|
1219
|
+
startDate: string | null;
|
1220
|
+
endDate: string | null;
|
1242
1221
|
createdDate: string;
|
1243
1222
|
package: {
|
1244
1223
|
destination: string;
|
@@ -1253,14 +1232,14 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
|
|
1253
1232
|
};
|
1254
1233
|
source: string;
|
1255
1234
|
purchaseType: string;
|
1256
|
-
startTime?: number | undefined;
|
1257
|
-
endTime?: number | undefined;
|
1235
|
+
startTime?: number | null | undefined;
|
1236
|
+
endTime?: number | null | undefined;
|
1258
1237
|
createdAt?: number | undefined;
|
1259
1238
|
referenceId?: string | null | undefined;
|
1260
1239
|
}, {
|
1261
1240
|
id: string;
|
1262
|
-
startDate: string;
|
1263
|
-
endDate: string;
|
1241
|
+
startDate: string | null;
|
1242
|
+
endDate: string | null;
|
1264
1243
|
createdDate: string;
|
1265
1244
|
package: {
|
1266
1245
|
destination: string;
|
@@ -1275,8 +1254,8 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
|
|
1275
1254
|
};
|
1276
1255
|
source: string;
|
1277
1256
|
purchaseType: string;
|
1278
|
-
startTime?: number | undefined;
|
1279
|
-
endTime?: number | undefined;
|
1257
|
+
startTime?: number | null | undefined;
|
1258
|
+
endTime?: number | null | undefined;
|
1280
1259
|
createdAt?: number | undefined;
|
1281
1260
|
referenceId?: string | null | undefined;
|
1282
1261
|
}>>;
|
@@ -1358,27 +1337,27 @@ type PurchasesEsim = z.infer<typeof purchasesEsim>;
|
|
1358
1337
|
declare const createPurchaseOkResponsePurchase: z.ZodLazy<z.ZodObject<{
|
1359
1338
|
id: z.ZodString;
|
1360
1339
|
packageId: z.ZodString;
|
1361
|
-
startDate: z.ZodString
|
1362
|
-
endDate: z.ZodString
|
1340
|
+
startDate: z.ZodNullable<z.ZodString>;
|
1341
|
+
endDate: z.ZodNullable<z.ZodString>;
|
1363
1342
|
createdDate: z.ZodString;
|
1364
|
-
startTime: z.ZodOptional<z.ZodNumber
|
1365
|
-
endTime: z.ZodOptional<z.ZodNumber
|
1343
|
+
startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1344
|
+
endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1366
1345
|
}, "strip", z.ZodTypeAny, {
|
1367
1346
|
id: string;
|
1368
|
-
startDate: string;
|
1369
|
-
endDate: string;
|
1347
|
+
startDate: string | null;
|
1348
|
+
endDate: string | null;
|
1370
1349
|
packageId: string;
|
1371
1350
|
createdDate: string;
|
1372
|
-
startTime?: number | undefined;
|
1373
|
-
endTime?: number | undefined;
|
1351
|
+
startTime?: number | null | undefined;
|
1352
|
+
endTime?: number | null | undefined;
|
1374
1353
|
}, {
|
1375
1354
|
id: string;
|
1376
|
-
startDate: string;
|
1377
|
-
endDate: string;
|
1355
|
+
startDate: string | null;
|
1356
|
+
endDate: string | null;
|
1378
1357
|
packageId: string;
|
1379
1358
|
createdDate: string;
|
1380
|
-
startTime?: number | undefined;
|
1381
|
-
endTime?: number | undefined;
|
1359
|
+
startTime?: number | null | undefined;
|
1360
|
+
endTime?: number | null | undefined;
|
1382
1361
|
}>>;
|
1383
1362
|
/**
|
1384
1363
|
*
|
@@ -1424,27 +1403,27 @@ type CreatePurchaseOkResponseProfile = z.infer<typeof createPurchaseOkResponsePr
|
|
1424
1403
|
declare const topUpEsimOkResponsePurchase: z.ZodLazy<z.ZodObject<{
|
1425
1404
|
id: z.ZodString;
|
1426
1405
|
packageId: z.ZodString;
|
1427
|
-
startDate: z.ZodString
|
1428
|
-
endDate: z.ZodString
|
1406
|
+
startDate: z.ZodNullable<z.ZodString>;
|
1407
|
+
endDate: z.ZodNullable<z.ZodString>;
|
1429
1408
|
createdDate: z.ZodString;
|
1430
|
-
startTime: z.ZodOptional<z.ZodNumber
|
1431
|
-
endTime: z.ZodOptional<z.ZodNumber
|
1409
|
+
startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1410
|
+
endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
1432
1411
|
}, "strip", z.ZodTypeAny, {
|
1433
1412
|
id: string;
|
1434
|
-
startDate: string;
|
1435
|
-
endDate: string;
|
1413
|
+
startDate: string | null;
|
1414
|
+
endDate: string | null;
|
1436
1415
|
packageId: string;
|
1437
1416
|
createdDate: string;
|
1438
|
-
startTime?: number | undefined;
|
1439
|
-
endTime?: number | undefined;
|
1417
|
+
startTime?: number | null | undefined;
|
1418
|
+
endTime?: number | null | undefined;
|
1440
1419
|
}, {
|
1441
1420
|
id: string;
|
1442
|
-
startDate: string;
|
1443
|
-
endDate: string;
|
1421
|
+
startDate: string | null;
|
1422
|
+
endDate: string | null;
|
1444
1423
|
packageId: string;
|
1445
1424
|
createdDate: string;
|
1446
|
-
startTime?: number | undefined;
|
1447
|
-
endTime?: number | undefined;
|
1425
|
+
startTime?: number | null | undefined;
|
1426
|
+
endTime?: number | null | undefined;
|
1448
1427
|
}>>;
|
1449
1428
|
/**
|
1450
1429
|
*
|
@@ -1476,90 +1455,6 @@ declare const topUpEsimOkResponseProfile: z.ZodLazy<z.ZodObject<{
|
|
1476
1455
|
*/
|
1477
1456
|
type TopUpEsimOkResponseProfile = z.infer<typeof topUpEsimOkResponseProfile>;
|
1478
1457
|
|
1479
|
-
declare class _4 extends ThrowableError {
|
1480
|
-
message: string;
|
1481
|
-
protected response?: unknown;
|
1482
|
-
constructor(message: string, response?: unknown);
|
1483
|
-
throw(): void;
|
1484
|
-
}
|
1485
|
-
|
1486
|
-
declare class _5 extends ThrowableError {
|
1487
|
-
message: string;
|
1488
|
-
protected response?: unknown;
|
1489
|
-
constructor(message: string, response?: unknown);
|
1490
|
-
throw(): void;
|
1491
|
-
}
|
1492
|
-
|
1493
|
-
declare class _6 extends ThrowableError {
|
1494
|
-
message: string;
|
1495
|
-
protected response?: unknown;
|
1496
|
-
constructor(message: string, response?: unknown);
|
1497
|
-
throw(): void;
|
1498
|
-
}
|
1499
|
-
|
1500
|
-
declare class _7 extends ThrowableError {
|
1501
|
-
message: string;
|
1502
|
-
protected response?: unknown;
|
1503
|
-
constructor(message: string, response?: unknown);
|
1504
|
-
throw(): void;
|
1505
|
-
}
|
1506
|
-
|
1507
|
-
declare class _8 extends ThrowableError {
|
1508
|
-
message: string;
|
1509
|
-
protected response?: unknown;
|
1510
|
-
constructor(message: string, response?: unknown);
|
1511
|
-
throw(): void;
|
1512
|
-
}
|
1513
|
-
|
1514
|
-
declare class _9 extends ThrowableError {
|
1515
|
-
message: string;
|
1516
|
-
protected response?: unknown;
|
1517
|
-
constructor(message: string, response?: unknown);
|
1518
|
-
throw(): void;
|
1519
|
-
}
|
1520
|
-
|
1521
|
-
declare class _10 extends ThrowableError {
|
1522
|
-
message: string;
|
1523
|
-
protected response?: unknown;
|
1524
|
-
constructor(message: string, response?: unknown);
|
1525
|
-
throw(): void;
|
1526
|
-
}
|
1527
|
-
|
1528
|
-
declare class _11 extends ThrowableError {
|
1529
|
-
message: string;
|
1530
|
-
protected response?: unknown;
|
1531
|
-
constructor(message: string, response?: unknown);
|
1532
|
-
throw(): void;
|
1533
|
-
}
|
1534
|
-
|
1535
|
-
declare class _12 extends ThrowableError {
|
1536
|
-
message: string;
|
1537
|
-
protected response?: unknown;
|
1538
|
-
constructor(message: string, response?: unknown);
|
1539
|
-
throw(): void;
|
1540
|
-
}
|
1541
|
-
|
1542
|
-
declare class _13 extends ThrowableError {
|
1543
|
-
message: string;
|
1544
|
-
protected response?: unknown;
|
1545
|
-
constructor(message: string, response?: unknown);
|
1546
|
-
throw(): void;
|
1547
|
-
}
|
1548
|
-
|
1549
|
-
declare class _14 extends ThrowableError {
|
1550
|
-
message: string;
|
1551
|
-
protected response?: unknown;
|
1552
|
-
constructor(message: string, response?: unknown);
|
1553
|
-
throw(): void;
|
1554
|
-
}
|
1555
|
-
|
1556
|
-
declare class _15 extends ThrowableError {
|
1557
|
-
message: string;
|
1558
|
-
protected response?: unknown;
|
1559
|
-
constructor(message: string, response?: unknown);
|
1560
|
-
throw(): void;
|
1561
|
-
}
|
1562
|
-
|
1563
1458
|
/**
|
1564
1459
|
* The shape of the model inside the application code - what the users use
|
1565
1460
|
*/
|
@@ -1567,18 +1462,21 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1567
1462
|
esim: z.ZodLazy<z.ZodObject<{
|
1568
1463
|
iccid: z.ZodString;
|
1569
1464
|
smdpAddress: z.ZodString;
|
1465
|
+
activationCode: z.ZodString;
|
1570
1466
|
manualActivationCode: z.ZodString;
|
1571
1467
|
status: z.ZodString;
|
1572
1468
|
isTopUpAllowed: z.ZodBoolean;
|
1573
1469
|
}, "strip", z.ZodTypeAny, {
|
1574
1470
|
status: string;
|
1575
1471
|
iccid: string;
|
1472
|
+
activationCode: string;
|
1576
1473
|
manualActivationCode: string;
|
1577
1474
|
smdpAddress: string;
|
1578
1475
|
isTopUpAllowed: boolean;
|
1579
1476
|
}, {
|
1580
1477
|
status: string;
|
1581
1478
|
iccid: string;
|
1479
|
+
activationCode: string;
|
1582
1480
|
manualActivationCode: string;
|
1583
1481
|
smdpAddress: string;
|
1584
1482
|
isTopUpAllowed: boolean;
|
@@ -1587,6 +1485,7 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1587
1485
|
esim: {
|
1588
1486
|
status: string;
|
1589
1487
|
iccid: string;
|
1488
|
+
activationCode: string;
|
1590
1489
|
manualActivationCode: string;
|
1591
1490
|
smdpAddress: string;
|
1592
1491
|
isTopUpAllowed: boolean;
|
@@ -1595,6 +1494,7 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1595
1494
|
esim: {
|
1596
1495
|
status: string;
|
1597
1496
|
iccid: string;
|
1497
|
+
activationCode: string;
|
1598
1498
|
manualActivationCode: string;
|
1599
1499
|
smdpAddress: string;
|
1600
1500
|
isTopUpAllowed: boolean;
|
@@ -1713,46 +1613,9 @@ declare const getEsimHistoryOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1713
1613
|
*/
|
1714
1614
|
type GetEsimHistoryOkResponse = z.infer<typeof getEsimHistoryOkResponse>;
|
1715
1615
|
|
1716
|
-
/**
|
1717
|
-
* The shape of the model inside the application code - what the users use
|
1718
|
-
*/
|
1719
|
-
declare const getEsimMacOkResponse: z.ZodLazy<z.ZodObject<{
|
1720
|
-
esim: z.ZodLazy<z.ZodObject<{
|
1721
|
-
iccid: z.ZodString;
|
1722
|
-
smdpAddress: z.ZodString;
|
1723
|
-
manualActivationCode: z.ZodString;
|
1724
|
-
}, "strip", z.ZodTypeAny, {
|
1725
|
-
iccid: string;
|
1726
|
-
manualActivationCode: string;
|
1727
|
-
smdpAddress: string;
|
1728
|
-
}, {
|
1729
|
-
iccid: string;
|
1730
|
-
manualActivationCode: string;
|
1731
|
-
smdpAddress: string;
|
1732
|
-
}>>;
|
1733
|
-
}, "strip", z.ZodTypeAny, {
|
1734
|
-
esim: {
|
1735
|
-
iccid: string;
|
1736
|
-
manualActivationCode: string;
|
1737
|
-
smdpAddress: string;
|
1738
|
-
};
|
1739
|
-
}, {
|
1740
|
-
esim: {
|
1741
|
-
iccid: string;
|
1742
|
-
manualActivationCode: string;
|
1743
|
-
smdpAddress: string;
|
1744
|
-
};
|
1745
|
-
}>>;
|
1746
|
-
/**
|
1747
|
-
*
|
1748
|
-
* @typedef {GetEsimMacOkResponse} getEsimMacOkResponse
|
1749
|
-
* @property {GetEsimMacOkResponseEsim}
|
1750
|
-
*/
|
1751
|
-
type GetEsimMacOkResponse = z.infer<typeof getEsimMacOkResponse>;
|
1752
|
-
|
1753
1616
|
declare class ESimService extends BaseService {
|
1754
1617
|
/**
|
1755
|
-
* Get eSIM
|
1618
|
+
* Get eSIM
|
1756
1619
|
* @param {string} iccid - ID of the eSIM
|
1757
1620
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
1758
1621
|
* @returns {Promise<HttpResponse<GetEsimOkResponse>>} Successful Response
|
@@ -1772,13 +1635,6 @@ declare class ESimService extends BaseService {
|
|
1772
1635
|
* @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} Successful Response
|
1773
1636
|
*/
|
1774
1637
|
getEsimHistory(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimHistoryOkResponse>>;
|
1775
|
-
/**
|
1776
|
-
* Get eSIM MAC
|
1777
|
-
* @param {string} iccid - ID of the eSIM
|
1778
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
1779
|
-
* @returns {Promise<HttpResponse<GetEsimMacOkResponse>>} Successful Response
|
1780
|
-
*/
|
1781
|
-
getEsimMac(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimMacOkResponse>>;
|
1782
1638
|
}
|
1783
1639
|
|
1784
1640
|
/**
|
@@ -1787,18 +1643,21 @@ declare class ESimService extends BaseService {
|
|
1787
1643
|
declare const getEsimOkResponseEsim: z.ZodLazy<z.ZodObject<{
|
1788
1644
|
iccid: z.ZodString;
|
1789
1645
|
smdpAddress: z.ZodString;
|
1646
|
+
activationCode: z.ZodString;
|
1790
1647
|
manualActivationCode: z.ZodString;
|
1791
1648
|
status: z.ZodString;
|
1792
1649
|
isTopUpAllowed: z.ZodBoolean;
|
1793
1650
|
}, "strip", z.ZodTypeAny, {
|
1794
1651
|
status: string;
|
1795
1652
|
iccid: string;
|
1653
|
+
activationCode: string;
|
1796
1654
|
manualActivationCode: string;
|
1797
1655
|
smdpAddress: string;
|
1798
1656
|
isTopUpAllowed: boolean;
|
1799
1657
|
}, {
|
1800
1658
|
status: string;
|
1801
1659
|
iccid: string;
|
1660
|
+
activationCode: string;
|
1802
1661
|
manualActivationCode: string;
|
1803
1662
|
smdpAddress: string;
|
1804
1663
|
isTopUpAllowed: boolean;
|
@@ -1808,6 +1667,7 @@ declare const getEsimOkResponseEsim: z.ZodLazy<z.ZodObject<{
|
|
1808
1667
|
* @typedef {GetEsimOkResponseEsim} getEsimOkResponseEsim
|
1809
1668
|
* @property {string} - ID of the eSIM
|
1810
1669
|
* @property {string} - SM-DP+ Address
|
1670
|
+
* @property {string} - QR Code of the eSIM as base64
|
1811
1671
|
* @property {string} - The manual activation code
|
1812
1672
|
* @property {string} - Status of the eSIM, possible values are 'RELEASED', 'DOWNLOADED', 'INSTALLED', 'ENABLED', 'DELETED', or 'ERROR'
|
1813
1673
|
* @property {boolean} - Indicates whether the eSIM is currently eligible for a top-up. This flag should be checked before attempting a top-up request.
|
@@ -1909,87 +1769,6 @@ declare const history: z.ZodLazy<z.ZodObject<{
|
|
1909
1769
|
*/
|
1910
1770
|
type History = z.infer<typeof history>;
|
1911
1771
|
|
1912
|
-
/**
|
1913
|
-
* The shape of the model inside the application code - what the users use
|
1914
|
-
*/
|
1915
|
-
declare const getEsimMacOkResponseEsim: z.ZodLazy<z.ZodObject<{
|
1916
|
-
iccid: z.ZodString;
|
1917
|
-
smdpAddress: z.ZodString;
|
1918
|
-
manualActivationCode: z.ZodString;
|
1919
|
-
}, "strip", z.ZodTypeAny, {
|
1920
|
-
iccid: string;
|
1921
|
-
manualActivationCode: string;
|
1922
|
-
smdpAddress: string;
|
1923
|
-
}, {
|
1924
|
-
iccid: string;
|
1925
|
-
manualActivationCode: string;
|
1926
|
-
smdpAddress: string;
|
1927
|
-
}>>;
|
1928
|
-
/**
|
1929
|
-
*
|
1930
|
-
* @typedef {GetEsimMacOkResponseEsim} getEsimMacOkResponseEsim
|
1931
|
-
* @property {string} - ID of the eSIM
|
1932
|
-
* @property {string} - SM-DP+ Address
|
1933
|
-
* @property {string} - The manual activation code
|
1934
|
-
*/
|
1935
|
-
type GetEsimMacOkResponseEsim = z.infer<typeof getEsimMacOkResponseEsim>;
|
1936
|
-
|
1937
|
-
declare class _16 extends ThrowableError {
|
1938
|
-
message: string;
|
1939
|
-
protected response?: unknown;
|
1940
|
-
constructor(message: string, response?: unknown);
|
1941
|
-
throw(): void;
|
1942
|
-
}
|
1943
|
-
|
1944
|
-
declare class _17 extends ThrowableError {
|
1945
|
-
message: string;
|
1946
|
-
protected response?: unknown;
|
1947
|
-
constructor(message: string, response?: unknown);
|
1948
|
-
throw(): void;
|
1949
|
-
}
|
1950
|
-
|
1951
|
-
declare class _18 extends ThrowableError {
|
1952
|
-
message: string;
|
1953
|
-
protected response?: unknown;
|
1954
|
-
constructor(message: string, response?: unknown);
|
1955
|
-
throw(): void;
|
1956
|
-
}
|
1957
|
-
|
1958
|
-
declare class _19 extends ThrowableError {
|
1959
|
-
message: string;
|
1960
|
-
protected response?: unknown;
|
1961
|
-
constructor(message: string, response?: unknown);
|
1962
|
-
throw(): void;
|
1963
|
-
}
|
1964
|
-
|
1965
|
-
declare class _20 extends ThrowableError {
|
1966
|
-
message: string;
|
1967
|
-
protected response?: unknown;
|
1968
|
-
constructor(message: string, response?: unknown);
|
1969
|
-
throw(): void;
|
1970
|
-
}
|
1971
|
-
|
1972
|
-
declare class _21 extends ThrowableError {
|
1973
|
-
message: string;
|
1974
|
-
protected response?: unknown;
|
1975
|
-
constructor(message: string, response?: unknown);
|
1976
|
-
throw(): void;
|
1977
|
-
}
|
1978
|
-
|
1979
|
-
declare class _22 extends ThrowableError {
|
1980
|
-
message: string;
|
1981
|
-
protected response?: unknown;
|
1982
|
-
constructor(message: string, response?: unknown);
|
1983
|
-
throw(): void;
|
1984
|
-
}
|
1985
|
-
|
1986
|
-
declare class _23 extends ThrowableError {
|
1987
|
-
message: string;
|
1988
|
-
protected response?: unknown;
|
1989
|
-
constructor(message: string, response?: unknown);
|
1990
|
-
throw(): void;
|
1991
|
-
}
|
1992
|
-
|
1993
1772
|
/**
|
1994
1773
|
* The shape of the model inside the application code - what the users use
|
1995
1774
|
*/
|
@@ -2016,20 +1795,6 @@ declare class IFrameService extends BaseService {
|
|
2016
1795
|
token(requestConfig?: RequestConfig): Promise<HttpResponse<TokenOkResponse>>;
|
2017
1796
|
}
|
2018
1797
|
|
2019
|
-
declare class _24 extends ThrowableError {
|
2020
|
-
message: string;
|
2021
|
-
protected response?: unknown;
|
2022
|
-
constructor(message: string, response?: unknown);
|
2023
|
-
throw(): void;
|
2024
|
-
}
|
2025
|
-
|
2026
|
-
declare class _25 extends ThrowableError {
|
2027
|
-
message: string;
|
2028
|
-
protected response?: unknown;
|
2029
|
-
constructor(message: string, response?: unknown);
|
2030
|
-
throw(): void;
|
2031
|
-
}
|
2032
|
-
|
2033
1798
|
/**
|
2034
1799
|
* The shape of the model inside the application code - what the users use
|
2035
1800
|
*/
|
@@ -2093,6 +1858,20 @@ declare enum GrantType {
|
|
2093
1858
|
CLIENT_CREDENTIALS = "client_credentials"
|
2094
1859
|
}
|
2095
1860
|
|
1861
|
+
declare class BadRequest extends ThrowableError {
|
1862
|
+
message: string;
|
1863
|
+
protected response?: unknown;
|
1864
|
+
constructor(message: string, response?: unknown);
|
1865
|
+
throw(): void;
|
1866
|
+
}
|
1867
|
+
|
1868
|
+
declare class Unauthorized extends ThrowableError {
|
1869
|
+
message: string;
|
1870
|
+
protected response?: unknown;
|
1871
|
+
constructor(message: string, response?: unknown);
|
1872
|
+
throw(): void;
|
1873
|
+
}
|
1874
|
+
|
2096
1875
|
declare class Celitech {
|
2097
1876
|
config: SdkConfig;
|
2098
1877
|
readonly destinations: DestinationsService;
|
@@ -2111,4 +1890,4 @@ declare class Celitech {
|
|
2111
1890
|
set accessToken(accessToken: string);
|
2112
1891
|
}
|
2113
1892
|
|
2114
|
-
export { Celitech, CreatePurchaseOkResponse, CreatePurchaseOkResponseProfile, CreatePurchaseOkResponsePurchase, CreatePurchaseRequest, CreatePurchaseV2OkResponse, CreatePurchaseV2OkResponseProfile, CreatePurchaseV2OkResponsePurchase, CreatePurchaseV2Request, Destinations, DestinationsService, Device, ESimService, EditPurchaseOkResponse, EditPurchaseRequest, Environment, GetAccessTokenOkResponse, GetAccessTokenRequest, GetEsimDeviceOkResponse, GetEsimHistoryOkResponse, GetEsimHistoryOkResponseEsim,
|
1893
|
+
export { BadRequest, Celitech, CreatePurchaseOkResponse, CreatePurchaseOkResponseProfile, CreatePurchaseOkResponsePurchase, CreatePurchaseRequest, CreatePurchaseV2OkResponse, CreatePurchaseV2OkResponseProfile, CreatePurchaseV2OkResponsePurchase, CreatePurchaseV2Request, Destinations, DestinationsService, Device, ESimService, EditPurchaseOkResponse, EditPurchaseRequest, Environment, GetAccessTokenOkResponse, GetAccessTokenRequest, GetEsimDeviceOkResponse, GetEsimHistoryOkResponse, GetEsimHistoryOkResponseEsim, GetEsimOkResponse, GetEsimOkResponseEsim, GetPurchaseConsumptionOkResponse, GrantType, History, HttpError, HttpMetadata, HttpMethod, HttpResponse, IFrameService, ListDestinationsOkResponse, ListPackagesOkResponse, ListPurchasesOkResponse, OAuthService, Package_, Packages, PackagesService, Purchases, PurchasesEsim, PurchasesService, RequestConfig, RetryOptions, SdkConfig, TokenOkResponse, TopUpEsimOkResponse, TopUpEsimOkResponseProfile, TopUpEsimOkResponsePurchase, TopUpEsimRequest, Unauthorized, ValidationOptions };
|