celitech-sdk 1.3.58 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- # Celitech TypeScript SDK 1.3.58
1
+ # Celitech TypeScript SDK 1.3.59
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.58`
10
- - SDK version: `1.3.58`
9
+ - API version: `1.3.59`
10
+ - SDK version: `1.3.59`
11
11
 
12
12
  ## About the API
13
13
 
@@ -37,12 +37,18 @@ This SDK is compatible with the following versions: `TypeScript >= 4.8.4`
37
37
 
38
38
  ## Installation
39
39
 
40
- To get started with the SDK, we recommend installing using `npm`:
40
+ To get started with the SDK, we recommend installing using `npm` or `yarn`:
41
41
 
42
42
  ```bash
43
43
  npm install celitech-sdk
44
44
  ```
45
45
 
46
+ or
47
+
48
+ ```bash
49
+ yarn add celitech-sdk
50
+ ```
51
+
46
52
  ## Authentication
47
53
 
48
54
  ### OAuth Authentication
@@ -112,11 +118,11 @@ The SDK provides various services to interact with the API.
112
118
 
113
119
  | Name |
114
120
  | :------------------------------------------------------------------- |
115
- | [DestinationsService](documentation/services/DestinationsService.md) |
116
- | [PackagesService](documentation/services/PackagesService.md) |
117
- | [PurchasesService](documentation/services/PurchasesService.md) |
118
- | [ESimService](documentation/services/ESimService.md) |
119
- | [IFrameService](documentation/services/IFrameService.md) |
121
+ | DestinationsService |
122
+ | PackagesService |
123
+ | PurchasesService |
124
+ | ESimService |
125
+ | IFrameService |
120
126
 
121
127
  </details>
122
128
 
@@ -129,32 +135,32 @@ The SDK includes several models that represent the data structures used in API r
129
135
 
130
136
  | Name | Description |
131
137
  | :------------------------------------------------------------------------------------------- | :---------- |
132
- | [ListDestinationsOkResponse](documentation/models/ListDestinationsOkResponse.md) | |
133
- | [BadRequest](documentation/models/BadRequest.md) | |
134
- | [Unauthorized](documentation/models/Unauthorized.md) | |
135
- | [ListPackagesOkResponse](documentation/models/ListPackagesOkResponse.md) | |
136
- | [BadRequest](documentation/models/BadRequest.md) | |
137
- | [Unauthorized](documentation/models/Unauthorized.md) | |
138
- | [CreatePurchaseV2Request](documentation/models/CreatePurchaseV2Request.md) | |
139
- | [CreatePurchaseV2OkResponse](documentation/models/CreatePurchaseV2OkResponse.md) | |
140
- | [BadRequest](documentation/models/BadRequest.md) | |
141
- | [Unauthorized](documentation/models/Unauthorized.md) | |
142
- | [ListPurchasesOkResponse](documentation/models/ListPurchasesOkResponse.md) | |
143
- | [CreatePurchaseRequest](documentation/models/CreatePurchaseRequest.md) | |
144
- | [CreatePurchaseOkResponse](documentation/models/CreatePurchaseOkResponse.md) | |
145
- | [TopUpEsimRequest](documentation/models/TopUpEsimRequest.md) | |
146
- | [TopUpEsimOkResponse](documentation/models/TopUpEsimOkResponse.md) | |
147
- | [EditPurchaseRequest](documentation/models/EditPurchaseRequest.md) | |
148
- | [EditPurchaseOkResponse](documentation/models/EditPurchaseOkResponse.md) | |
149
- | [GetPurchaseConsumptionOkResponse](documentation/models/GetPurchaseConsumptionOkResponse.md) | |
150
- | [GetEsimOkResponse](documentation/models/GetEsimOkResponse.md) | |
151
- | [BadRequest](documentation/models/BadRequest.md) | |
152
- | [Unauthorized](documentation/models/Unauthorized.md) | |
153
- | [GetEsimDeviceOkResponse](documentation/models/GetEsimDeviceOkResponse.md) | |
154
- | [GetEsimHistoryOkResponse](documentation/models/GetEsimHistoryOkResponse.md) | |
155
- | [TokenOkResponse](documentation/models/TokenOkResponse.md) | |
156
- | [BadRequest](documentation/models/BadRequest.md) | |
157
- | [Unauthorized](documentation/models/Unauthorized.md) | |
138
+ | ListDestinationsOkResponse | |
139
+ | BadRequest | |
140
+ | Unauthorized | |
141
+ | ListPackagesOkResponse | |
142
+ | BadRequest | |
143
+ | Unauthorized | |
144
+ | CreatePurchaseV2Request | |
145
+ | CreatePurchaseV2OkResponse | |
146
+ | BadRequest | |
147
+ | Unauthorized | |
148
+ | ListPurchasesOkResponse | |
149
+ | CreatePurchaseRequest | |
150
+ | CreatePurchaseOkResponse | |
151
+ | TopUpEsimRequest | |
152
+ | TopUpEsimOkResponse | |
153
+ | EditPurchaseRequest | |
154
+ | EditPurchaseOkResponse | |
155
+ | GetPurchaseConsumptionOkResponse | |
156
+ | GetEsimOkResponse | |
157
+ | BadRequest | |
158
+ | Unauthorized | |
159
+ | GetEsimDeviceOkResponse | |
160
+ | GetEsimHistoryOkResponse | |
161
+ | TokenOkResponse | |
162
+ | BadRequest | |
163
+ | Unauthorized | |
158
164
 
159
165
  </details>
160
166
 
package/dist/index.d.ts CHANGED
@@ -569,11 +569,11 @@ type CreatePurchaseV2OkResponse = z.infer<typeof createPurchaseV2OkResponse>;
569
569
  declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
570
570
  purchases: z.ZodArray<z.ZodLazy<z.ZodObject<{
571
571
  id: z.ZodString;
572
- startDate: z.ZodString;
573
- endDate: z.ZodString;
572
+ startDate: z.ZodNullable<z.ZodString>;
573
+ endDate: z.ZodNullable<z.ZodString>;
574
574
  createdDate: z.ZodString;
575
- startTime: z.ZodOptional<z.ZodNumber>;
576
- endTime: z.ZodOptional<z.ZodNumber>;
575
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
576
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
577
577
  createdAt: z.ZodOptional<z.ZodNumber>;
578
578
  package: z.ZodLazy<z.ZodObject<{
579
579
  id: z.ZodString;
@@ -609,8 +609,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
609
609
  referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
610
610
  }, "strip", z.ZodTypeAny, {
611
611
  id: string;
612
- startDate: string;
613
- endDate: string;
612
+ startDate: string | null;
613
+ endDate: string | null;
614
614
  createdDate: string;
615
615
  package: {
616
616
  destination: string;
@@ -625,14 +625,14 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
625
625
  };
626
626
  source: string;
627
627
  purchaseType: string;
628
- startTime?: number | undefined;
629
- endTime?: number | undefined;
628
+ startTime?: number | null | undefined;
629
+ endTime?: number | null | undefined;
630
630
  createdAt?: number | undefined;
631
631
  referenceId?: string | null | undefined;
632
632
  }, {
633
633
  id: string;
634
- startDate: string;
635
- endDate: string;
634
+ startDate: string | null;
635
+ endDate: string | null;
636
636
  createdDate: string;
637
637
  package: {
638
638
  destination: string;
@@ -647,8 +647,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
647
647
  };
648
648
  source: string;
649
649
  purchaseType: string;
650
- startTime?: number | undefined;
651
- endTime?: number | undefined;
650
+ startTime?: number | null | undefined;
651
+ endTime?: number | null | undefined;
652
652
  createdAt?: number | undefined;
653
653
  referenceId?: string | null | undefined;
654
654
  }>>, "many">;
@@ -657,8 +657,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
657
657
  afterCursor: string | null;
658
658
  purchases: {
659
659
  id: string;
660
- startDate: string;
661
- endDate: string;
660
+ startDate: string | null;
661
+ endDate: string | null;
662
662
  createdDate: string;
663
663
  package: {
664
664
  destination: string;
@@ -673,8 +673,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
673
673
  };
674
674
  source: string;
675
675
  purchaseType: string;
676
- startTime?: number | undefined;
677
- endTime?: number | undefined;
676
+ startTime?: number | null | undefined;
677
+ endTime?: number | null | undefined;
678
678
  createdAt?: number | undefined;
679
679
  referenceId?: string | null | undefined;
680
680
  }[];
@@ -682,8 +682,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
682
682
  afterCursor: string | null;
683
683
  purchases: {
684
684
  id: string;
685
- startDate: string;
686
- endDate: string;
685
+ startDate: string | null;
686
+ endDate: string | null;
687
687
  createdDate: string;
688
688
  package: {
689
689
  destination: string;
@@ -698,8 +698,8 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
698
698
  };
699
699
  source: string;
700
700
  purchaseType: string;
701
- startTime?: number | undefined;
702
- endTime?: number | undefined;
701
+ startTime?: number | null | undefined;
702
+ endTime?: number | null | undefined;
703
703
  createdAt?: number | undefined;
704
704
  referenceId?: string | null | undefined;
705
705
  }[];
@@ -784,27 +784,27 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
784
784
  purchase: z.ZodLazy<z.ZodObject<{
785
785
  id: z.ZodString;
786
786
  packageId: z.ZodString;
787
- startDate: z.ZodString;
788
- endDate: z.ZodString;
787
+ startDate: z.ZodNullable<z.ZodString>;
788
+ endDate: z.ZodNullable<z.ZodString>;
789
789
  createdDate: z.ZodString;
790
- startTime: z.ZodOptional<z.ZodNumber>;
791
- endTime: z.ZodOptional<z.ZodNumber>;
790
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
791
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
792
792
  }, "strip", z.ZodTypeAny, {
793
793
  id: string;
794
- startDate: string;
795
- endDate: string;
794
+ startDate: string | null;
795
+ endDate: string | null;
796
796
  packageId: string;
797
797
  createdDate: string;
798
- startTime?: number | undefined;
799
- endTime?: number | undefined;
798
+ startTime?: number | null | undefined;
799
+ endTime?: number | null | undefined;
800
800
  }, {
801
801
  id: string;
802
- startDate: string;
803
- endDate: string;
802
+ startDate: string | null;
803
+ endDate: string | null;
804
804
  packageId: string;
805
805
  createdDate: string;
806
- startTime?: number | undefined;
807
- endTime?: number | undefined;
806
+ startTime?: number | null | undefined;
807
+ endTime?: number | null | undefined;
808
808
  }>>;
809
809
  profile: z.ZodLazy<z.ZodObject<{
810
810
  iccid: z.ZodString;
@@ -822,12 +822,12 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
822
822
  }, "strip", z.ZodTypeAny, {
823
823
  purchase: {
824
824
  id: string;
825
- startDate: string;
826
- endDate: string;
825
+ startDate: string | null;
826
+ endDate: string | null;
827
827
  packageId: string;
828
828
  createdDate: string;
829
- startTime?: number | undefined;
830
- endTime?: number | undefined;
829
+ startTime?: number | null | undefined;
830
+ endTime?: number | null | undefined;
831
831
  };
832
832
  profile: {
833
833
  iccid: string;
@@ -837,12 +837,12 @@ declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
837
837
  }, {
838
838
  purchase: {
839
839
  id: string;
840
- startDate: string;
841
- endDate: string;
840
+ startDate: string | null;
841
+ endDate: string | null;
842
842
  packageId: string;
843
843
  createdDate: string;
844
- startTime?: number | undefined;
845
- endTime?: number | undefined;
844
+ startTime?: number | null | undefined;
845
+ endTime?: number | null | undefined;
846
846
  };
847
847
  profile: {
848
848
  iccid: string;
@@ -914,27 +914,27 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
914
914
  purchase: z.ZodLazy<z.ZodObject<{
915
915
  id: z.ZodString;
916
916
  packageId: z.ZodString;
917
- startDate: z.ZodString;
918
- endDate: z.ZodString;
917
+ startDate: z.ZodNullable<z.ZodString>;
918
+ endDate: z.ZodNullable<z.ZodString>;
919
919
  createdDate: z.ZodString;
920
- startTime: z.ZodOptional<z.ZodNumber>;
921
- endTime: z.ZodOptional<z.ZodNumber>;
920
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
921
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
922
922
  }, "strip", z.ZodTypeAny, {
923
923
  id: string;
924
- startDate: string;
925
- endDate: string;
924
+ startDate: string | null;
925
+ endDate: string | null;
926
926
  packageId: string;
927
927
  createdDate: string;
928
- startTime?: number | undefined;
929
- endTime?: number | undefined;
928
+ startTime?: number | null | undefined;
929
+ endTime?: number | null | undefined;
930
930
  }, {
931
931
  id: string;
932
- startDate: string;
933
- endDate: string;
932
+ startDate: string | null;
933
+ endDate: string | null;
934
934
  packageId: string;
935
935
  createdDate: string;
936
- startTime?: number | undefined;
937
- endTime?: number | undefined;
936
+ startTime?: number | null | undefined;
937
+ endTime?: number | null | undefined;
938
938
  }>>;
939
939
  profile: z.ZodLazy<z.ZodObject<{
940
940
  iccid: z.ZodString;
@@ -946,12 +946,12 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
946
946
  }, "strip", z.ZodTypeAny, {
947
947
  purchase: {
948
948
  id: string;
949
- startDate: string;
950
- endDate: string;
949
+ startDate: string | null;
950
+ endDate: string | null;
951
951
  packageId: string;
952
952
  createdDate: string;
953
- startTime?: number | undefined;
954
- endTime?: number | undefined;
953
+ startTime?: number | null | undefined;
954
+ endTime?: number | null | undefined;
955
955
  };
956
956
  profile: {
957
957
  iccid: string;
@@ -959,12 +959,12 @@ declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
959
959
  }, {
960
960
  purchase: {
961
961
  id: string;
962
- startDate: string;
963
- endDate: string;
962
+ startDate: string | null;
963
+ endDate: string | null;
964
964
  packageId: string;
965
965
  createdDate: string;
966
- startTime?: number | undefined;
967
- endTime?: number | undefined;
966
+ startTime?: number | null | undefined;
967
+ endTime?: number | null | undefined;
968
968
  };
969
969
  profile: {
970
970
  iccid: string;
@@ -1016,22 +1016,22 @@ type EditPurchaseRequest = z.infer<typeof editPurchaseRequest>;
1016
1016
  */
1017
1017
  declare const editPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
1018
1018
  purchaseId: z.ZodString;
1019
- newStartDate: z.ZodString;
1020
- newEndDate: z.ZodString;
1021
- newStartTime: z.ZodOptional<z.ZodNumber>;
1022
- 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>>;
1023
1023
  }, "strip", z.ZodTypeAny, {
1024
1024
  purchaseId: string;
1025
- newStartDate: string;
1026
- newEndDate: string;
1027
- newStartTime?: number | undefined;
1028
- newEndTime?: number | undefined;
1025
+ newStartDate: string | null;
1026
+ newEndDate: string | null;
1027
+ newStartTime?: number | null | undefined;
1028
+ newEndTime?: number | null | undefined;
1029
1029
  }, {
1030
1030
  purchaseId: string;
1031
- newStartDate: string;
1032
- newEndDate: string;
1033
- newStartTime?: number | undefined;
1034
- newEndTime?: number | undefined;
1031
+ newStartDate: string | null;
1032
+ newEndDate: string | null;
1033
+ newStartTime?: number | null | undefined;
1034
+ newEndTime?: number | null | undefined;
1035
1035
  }>>;
1036
1036
  /**
1037
1037
  *
@@ -1176,11 +1176,11 @@ type CreatePurchaseV2OkResponseProfile = z.infer<typeof createPurchaseV2OkRespon
1176
1176
  */
1177
1177
  declare const purchases: z.ZodLazy<z.ZodObject<{
1178
1178
  id: z.ZodString;
1179
- startDate: z.ZodString;
1180
- endDate: z.ZodString;
1179
+ startDate: z.ZodNullable<z.ZodString>;
1180
+ endDate: z.ZodNullable<z.ZodString>;
1181
1181
  createdDate: z.ZodString;
1182
- startTime: z.ZodOptional<z.ZodNumber>;
1183
- endTime: z.ZodOptional<z.ZodNumber>;
1182
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1183
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1184
1184
  createdAt: z.ZodOptional<z.ZodNumber>;
1185
1185
  package: z.ZodLazy<z.ZodObject<{
1186
1186
  id: z.ZodString;
@@ -1216,8 +1216,8 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1216
1216
  referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1217
1217
  }, "strip", z.ZodTypeAny, {
1218
1218
  id: string;
1219
- startDate: string;
1220
- endDate: string;
1219
+ startDate: string | null;
1220
+ endDate: string | null;
1221
1221
  createdDate: string;
1222
1222
  package: {
1223
1223
  destination: string;
@@ -1232,14 +1232,14 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1232
1232
  };
1233
1233
  source: string;
1234
1234
  purchaseType: string;
1235
- startTime?: number | undefined;
1236
- endTime?: number | undefined;
1235
+ startTime?: number | null | undefined;
1236
+ endTime?: number | null | undefined;
1237
1237
  createdAt?: number | undefined;
1238
1238
  referenceId?: string | null | undefined;
1239
1239
  }, {
1240
1240
  id: string;
1241
- startDate: string;
1242
- endDate: string;
1241
+ startDate: string | null;
1242
+ endDate: string | null;
1243
1243
  createdDate: string;
1244
1244
  package: {
1245
1245
  destination: string;
@@ -1254,8 +1254,8 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1254
1254
  };
1255
1255
  source: string;
1256
1256
  purchaseType: string;
1257
- startTime?: number | undefined;
1258
- endTime?: number | undefined;
1257
+ startTime?: number | null | undefined;
1258
+ endTime?: number | null | undefined;
1259
1259
  createdAt?: number | undefined;
1260
1260
  referenceId?: string | null | undefined;
1261
1261
  }>>;
@@ -1337,27 +1337,27 @@ type PurchasesEsim = z.infer<typeof purchasesEsim>;
1337
1337
  declare const createPurchaseOkResponsePurchase: z.ZodLazy<z.ZodObject<{
1338
1338
  id: z.ZodString;
1339
1339
  packageId: z.ZodString;
1340
- startDate: z.ZodString;
1341
- endDate: z.ZodString;
1340
+ startDate: z.ZodNullable<z.ZodString>;
1341
+ endDate: z.ZodNullable<z.ZodString>;
1342
1342
  createdDate: z.ZodString;
1343
- startTime: z.ZodOptional<z.ZodNumber>;
1344
- endTime: z.ZodOptional<z.ZodNumber>;
1343
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1344
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1345
1345
  }, "strip", z.ZodTypeAny, {
1346
1346
  id: string;
1347
- startDate: string;
1348
- endDate: string;
1347
+ startDate: string | null;
1348
+ endDate: string | null;
1349
1349
  packageId: string;
1350
1350
  createdDate: string;
1351
- startTime?: number | undefined;
1352
- endTime?: number | undefined;
1351
+ startTime?: number | null | undefined;
1352
+ endTime?: number | null | undefined;
1353
1353
  }, {
1354
1354
  id: string;
1355
- startDate: string;
1356
- endDate: string;
1355
+ startDate: string | null;
1356
+ endDate: string | null;
1357
1357
  packageId: string;
1358
1358
  createdDate: string;
1359
- startTime?: number | undefined;
1360
- endTime?: number | undefined;
1359
+ startTime?: number | null | undefined;
1360
+ endTime?: number | null | undefined;
1361
1361
  }>>;
1362
1362
  /**
1363
1363
  *
@@ -1403,27 +1403,27 @@ type CreatePurchaseOkResponseProfile = z.infer<typeof createPurchaseOkResponsePr
1403
1403
  declare const topUpEsimOkResponsePurchase: z.ZodLazy<z.ZodObject<{
1404
1404
  id: z.ZodString;
1405
1405
  packageId: z.ZodString;
1406
- startDate: z.ZodString;
1407
- endDate: z.ZodString;
1406
+ startDate: z.ZodNullable<z.ZodString>;
1407
+ endDate: z.ZodNullable<z.ZodString>;
1408
1408
  createdDate: z.ZodString;
1409
- startTime: z.ZodOptional<z.ZodNumber>;
1410
- endTime: z.ZodOptional<z.ZodNumber>;
1409
+ startTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1410
+ endTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1411
1411
  }, "strip", z.ZodTypeAny, {
1412
1412
  id: string;
1413
- startDate: string;
1414
- endDate: string;
1413
+ startDate: string | null;
1414
+ endDate: string | null;
1415
1415
  packageId: string;
1416
1416
  createdDate: string;
1417
- startTime?: number | undefined;
1418
- endTime?: number | undefined;
1417
+ startTime?: number | null | undefined;
1418
+ endTime?: number | null | undefined;
1419
1419
  }, {
1420
1420
  id: string;
1421
- startDate: string;
1422
- endDate: string;
1421
+ startDate: string | null;
1422
+ endDate: string | null;
1423
1423
  packageId: string;
1424
1424
  createdDate: string;
1425
- startTime?: number | undefined;
1426
- endTime?: number | undefined;
1425
+ startTime?: number | null | undefined;
1426
+ endTime?: number | null | undefined;
1427
1427
  }>>;
1428
1428
  /**
1429
1429
  *
package/dist/index.js CHANGED
@@ -2036,11 +2036,11 @@ var purchasesEsimRequest = import_zod19.z.lazy(() => {
2036
2036
  var purchases = import_zod20.z.lazy(() => {
2037
2037
  return import_zod20.z.object({
2038
2038
  id: import_zod20.z.string(),
2039
- startDate: import_zod20.z.string(),
2040
- endDate: import_zod20.z.string(),
2039
+ startDate: import_zod20.z.string().nullable(),
2040
+ endDate: import_zod20.z.string().nullable(),
2041
2041
  createdDate: import_zod20.z.string(),
2042
- startTime: import_zod20.z.number().optional(),
2043
- endTime: import_zod20.z.number().optional(),
2042
+ startTime: import_zod20.z.number().optional().nullable(),
2043
+ endTime: import_zod20.z.number().optional().nullable(),
2044
2044
  createdAt: import_zod20.z.number().optional(),
2045
2045
  package: package_,
2046
2046
  esim: purchasesEsim,
@@ -2052,11 +2052,11 @@ var purchases = import_zod20.z.lazy(() => {
2052
2052
  var purchasesResponse = import_zod20.z.lazy(() => {
2053
2053
  return import_zod20.z.object({
2054
2054
  id: import_zod20.z.string(),
2055
- startDate: import_zod20.z.string(),
2056
- endDate: import_zod20.z.string(),
2055
+ startDate: import_zod20.z.string().nullable(),
2056
+ endDate: import_zod20.z.string().nullable(),
2057
2057
  createdDate: import_zod20.z.string(),
2058
- startTime: import_zod20.z.number().optional(),
2059
- endTime: import_zod20.z.number().optional(),
2058
+ startTime: import_zod20.z.number().optional().nullable(),
2059
+ endTime: import_zod20.z.number().optional().nullable(),
2060
2060
  createdAt: import_zod20.z.number().optional(),
2061
2061
  package: packageResponse,
2062
2062
  esim: purchasesEsimResponse,
@@ -2081,11 +2081,11 @@ var purchasesResponse = import_zod20.z.lazy(() => {
2081
2081
  var purchasesRequest = import_zod20.z.lazy(() => {
2082
2082
  return import_zod20.z.object({
2083
2083
  id: import_zod20.z.string(),
2084
- startDate: import_zod20.z.string(),
2085
- endDate: import_zod20.z.string(),
2084
+ startDate: import_zod20.z.string().nullable(),
2085
+ endDate: import_zod20.z.string().nullable(),
2086
2086
  createdDate: import_zod20.z.string(),
2087
- startTime: import_zod20.z.number().optional(),
2088
- endTime: import_zod20.z.number().optional(),
2087
+ startTime: import_zod20.z.number().optional().nullable(),
2088
+ endTime: import_zod20.z.number().optional().nullable(),
2089
2089
  createdAt: import_zod20.z.number().optional(),
2090
2090
  package: packageRequest,
2091
2091
  esim: purchasesEsimRequest,
@@ -2210,22 +2210,22 @@ var createPurchaseOkResponsePurchase = import_zod23.z.lazy(() => {
2210
2210
  return import_zod23.z.object({
2211
2211
  id: import_zod23.z.string(),
2212
2212
  packageId: import_zod23.z.string(),
2213
- startDate: import_zod23.z.string(),
2214
- endDate: import_zod23.z.string(),
2213
+ startDate: import_zod23.z.string().nullable(),
2214
+ endDate: import_zod23.z.string().nullable(),
2215
2215
  createdDate: import_zod23.z.string(),
2216
- startTime: import_zod23.z.number().optional(),
2217
- endTime: import_zod23.z.number().optional()
2216
+ startTime: import_zod23.z.number().optional().nullable(),
2217
+ endTime: import_zod23.z.number().optional().nullable()
2218
2218
  });
2219
2219
  });
2220
2220
  var createPurchaseOkResponsePurchaseResponse = import_zod23.z.lazy(() => {
2221
2221
  return import_zod23.z.object({
2222
2222
  id: import_zod23.z.string(),
2223
2223
  packageId: import_zod23.z.string(),
2224
- startDate: import_zod23.z.string(),
2225
- endDate: import_zod23.z.string(),
2224
+ startDate: import_zod23.z.string().nullable(),
2225
+ endDate: import_zod23.z.string().nullable(),
2226
2226
  createdDate: import_zod23.z.string(),
2227
- startTime: import_zod23.z.number().optional(),
2228
- endTime: import_zod23.z.number().optional()
2227
+ startTime: import_zod23.z.number().optional().nullable(),
2228
+ endTime: import_zod23.z.number().optional().nullable()
2229
2229
  }).transform((data) => ({
2230
2230
  id: data["id"],
2231
2231
  packageId: data["packageId"],
@@ -2240,11 +2240,11 @@ var createPurchaseOkResponsePurchaseRequest = import_zod23.z.lazy(() => {
2240
2240
  return import_zod23.z.object({
2241
2241
  id: import_zod23.z.string(),
2242
2242
  packageId: import_zod23.z.string(),
2243
- startDate: import_zod23.z.string(),
2244
- endDate: import_zod23.z.string(),
2243
+ startDate: import_zod23.z.string().nullable(),
2244
+ endDate: import_zod23.z.string().nullable(),
2245
2245
  createdDate: import_zod23.z.string(),
2246
- startTime: import_zod23.z.number().optional(),
2247
- endTime: import_zod23.z.number().optional()
2246
+ startTime: import_zod23.z.number().optional().nullable(),
2247
+ endTime: import_zod23.z.number().optional().nullable()
2248
2248
  }).transform((data) => ({
2249
2249
  id: data["id"],
2250
2250
  packageId: data["packageId"],
@@ -2385,22 +2385,22 @@ var topUpEsimOkResponsePurchase = import_zod27.z.lazy(() => {
2385
2385
  return import_zod27.z.object({
2386
2386
  id: import_zod27.z.string(),
2387
2387
  packageId: import_zod27.z.string(),
2388
- startDate: import_zod27.z.string(),
2389
- endDate: import_zod27.z.string(),
2388
+ startDate: import_zod27.z.string().nullable(),
2389
+ endDate: import_zod27.z.string().nullable(),
2390
2390
  createdDate: import_zod27.z.string(),
2391
- startTime: import_zod27.z.number().optional(),
2392
- endTime: import_zod27.z.number().optional()
2391
+ startTime: import_zod27.z.number().optional().nullable(),
2392
+ endTime: import_zod27.z.number().optional().nullable()
2393
2393
  });
2394
2394
  });
2395
2395
  var topUpEsimOkResponsePurchaseResponse = import_zod27.z.lazy(() => {
2396
2396
  return import_zod27.z.object({
2397
2397
  id: import_zod27.z.string(),
2398
2398
  packageId: import_zod27.z.string(),
2399
- startDate: import_zod27.z.string(),
2400
- endDate: import_zod27.z.string(),
2399
+ startDate: import_zod27.z.string().nullable(),
2400
+ endDate: import_zod27.z.string().nullable(),
2401
2401
  createdDate: import_zod27.z.string(),
2402
- startTime: import_zod27.z.number().optional(),
2403
- endTime: import_zod27.z.number().optional()
2402
+ startTime: import_zod27.z.number().optional().nullable(),
2403
+ endTime: import_zod27.z.number().optional().nullable()
2404
2404
  }).transform((data) => ({
2405
2405
  id: data["id"],
2406
2406
  packageId: data["packageId"],
@@ -2415,11 +2415,11 @@ var topUpEsimOkResponsePurchaseRequest = import_zod27.z.lazy(() => {
2415
2415
  return import_zod27.z.object({
2416
2416
  id: import_zod27.z.string(),
2417
2417
  packageId: import_zod27.z.string(),
2418
- startDate: import_zod27.z.string(),
2419
- endDate: import_zod27.z.string(),
2418
+ startDate: import_zod27.z.string().nullable(),
2419
+ endDate: import_zod27.z.string().nullable(),
2420
2420
  createdDate: import_zod27.z.string(),
2421
- startTime: import_zod27.z.number().optional(),
2422
- endTime: import_zod27.z.number().optional()
2421
+ startTime: import_zod27.z.number().optional().nullable(),
2422
+ endTime: import_zod27.z.number().optional().nullable()
2423
2423
  }).transform((data) => ({
2424
2424
  id: data["id"],
2425
2425
  packageId: data["packageId"],
@@ -2526,19 +2526,19 @@ var import_zod31 = require("zod");
2526
2526
  var editPurchaseOkResponse = import_zod31.z.lazy(() => {
2527
2527
  return import_zod31.z.object({
2528
2528
  purchaseId: import_zod31.z.string(),
2529
- newStartDate: import_zod31.z.string(),
2530
- newEndDate: import_zod31.z.string(),
2531
- newStartTime: import_zod31.z.number().optional(),
2532
- newEndTime: import_zod31.z.number().optional()
2529
+ newStartDate: import_zod31.z.string().nullable(),
2530
+ newEndDate: import_zod31.z.string().nullable(),
2531
+ newStartTime: import_zod31.z.number().optional().nullable(),
2532
+ newEndTime: import_zod31.z.number().optional().nullable()
2533
2533
  });
2534
2534
  });
2535
2535
  var editPurchaseOkResponseResponse = import_zod31.z.lazy(() => {
2536
2536
  return import_zod31.z.object({
2537
2537
  purchaseId: import_zod31.z.string(),
2538
- newStartDate: import_zod31.z.string(),
2539
- newEndDate: import_zod31.z.string(),
2540
- newStartTime: import_zod31.z.number().optional(),
2541
- newEndTime: import_zod31.z.number().optional()
2538
+ newStartDate: import_zod31.z.string().nullable(),
2539
+ newEndDate: import_zod31.z.string().nullable(),
2540
+ newStartTime: import_zod31.z.number().optional().nullable(),
2541
+ newEndTime: import_zod31.z.number().optional().nullable()
2542
2542
  }).transform((data) => ({
2543
2543
  purchaseId: data["purchaseId"],
2544
2544
  newStartDate: data["newStartDate"],
@@ -2550,10 +2550,10 @@ var editPurchaseOkResponseResponse = import_zod31.z.lazy(() => {
2550
2550
  var editPurchaseOkResponseRequest = import_zod31.z.lazy(() => {
2551
2551
  return import_zod31.z.object({
2552
2552
  purchaseId: import_zod31.z.string(),
2553
- newStartDate: import_zod31.z.string(),
2554
- newEndDate: import_zod31.z.string(),
2555
- newStartTime: import_zod31.z.number().optional(),
2556
- newEndTime: import_zod31.z.number().optional()
2553
+ newStartDate: import_zod31.z.string().nullable(),
2554
+ newEndDate: import_zod31.z.string().nullable(),
2555
+ newStartTime: import_zod31.z.number().optional().nullable(),
2556
+ newEndTime: import_zod31.z.number().optional().nullable()
2557
2557
  }).transform((data) => ({
2558
2558
  purchaseId: data["purchaseId"],
2559
2559
  newStartDate: data["newStartDate"],
package/dist/index.mjs CHANGED
@@ -1992,11 +1992,11 @@ var purchasesEsimRequest = z17.lazy(() => {
1992
1992
  var purchases = z18.lazy(() => {
1993
1993
  return z18.object({
1994
1994
  id: z18.string(),
1995
- startDate: z18.string(),
1996
- endDate: z18.string(),
1995
+ startDate: z18.string().nullable(),
1996
+ endDate: z18.string().nullable(),
1997
1997
  createdDate: z18.string(),
1998
- startTime: z18.number().optional(),
1999
- endTime: z18.number().optional(),
1998
+ startTime: z18.number().optional().nullable(),
1999
+ endTime: z18.number().optional().nullable(),
2000
2000
  createdAt: z18.number().optional(),
2001
2001
  package: package_,
2002
2002
  esim: purchasesEsim,
@@ -2008,11 +2008,11 @@ var purchases = z18.lazy(() => {
2008
2008
  var purchasesResponse = z18.lazy(() => {
2009
2009
  return z18.object({
2010
2010
  id: z18.string(),
2011
- startDate: z18.string(),
2012
- endDate: z18.string(),
2011
+ startDate: z18.string().nullable(),
2012
+ endDate: z18.string().nullable(),
2013
2013
  createdDate: z18.string(),
2014
- startTime: z18.number().optional(),
2015
- endTime: z18.number().optional(),
2014
+ startTime: z18.number().optional().nullable(),
2015
+ endTime: z18.number().optional().nullable(),
2016
2016
  createdAt: z18.number().optional(),
2017
2017
  package: packageResponse,
2018
2018
  esim: purchasesEsimResponse,
@@ -2037,11 +2037,11 @@ var purchasesResponse = z18.lazy(() => {
2037
2037
  var purchasesRequest = z18.lazy(() => {
2038
2038
  return z18.object({
2039
2039
  id: z18.string(),
2040
- startDate: z18.string(),
2041
- endDate: z18.string(),
2040
+ startDate: z18.string().nullable(),
2041
+ endDate: z18.string().nullable(),
2042
2042
  createdDate: z18.string(),
2043
- startTime: z18.number().optional(),
2044
- endTime: z18.number().optional(),
2043
+ startTime: z18.number().optional().nullable(),
2044
+ endTime: z18.number().optional().nullable(),
2045
2045
  createdAt: z18.number().optional(),
2046
2046
  package: packageRequest,
2047
2047
  esim: purchasesEsimRequest,
@@ -2166,22 +2166,22 @@ var createPurchaseOkResponsePurchase = z21.lazy(() => {
2166
2166
  return z21.object({
2167
2167
  id: z21.string(),
2168
2168
  packageId: z21.string(),
2169
- startDate: z21.string(),
2170
- endDate: z21.string(),
2169
+ startDate: z21.string().nullable(),
2170
+ endDate: z21.string().nullable(),
2171
2171
  createdDate: z21.string(),
2172
- startTime: z21.number().optional(),
2173
- endTime: z21.number().optional()
2172
+ startTime: z21.number().optional().nullable(),
2173
+ endTime: z21.number().optional().nullable()
2174
2174
  });
2175
2175
  });
2176
2176
  var createPurchaseOkResponsePurchaseResponse = z21.lazy(() => {
2177
2177
  return z21.object({
2178
2178
  id: z21.string(),
2179
2179
  packageId: z21.string(),
2180
- startDate: z21.string(),
2181
- endDate: z21.string(),
2180
+ startDate: z21.string().nullable(),
2181
+ endDate: z21.string().nullable(),
2182
2182
  createdDate: z21.string(),
2183
- startTime: z21.number().optional(),
2184
- endTime: z21.number().optional()
2183
+ startTime: z21.number().optional().nullable(),
2184
+ endTime: z21.number().optional().nullable()
2185
2185
  }).transform((data) => ({
2186
2186
  id: data["id"],
2187
2187
  packageId: data["packageId"],
@@ -2196,11 +2196,11 @@ var createPurchaseOkResponsePurchaseRequest = z21.lazy(() => {
2196
2196
  return z21.object({
2197
2197
  id: z21.string(),
2198
2198
  packageId: z21.string(),
2199
- startDate: z21.string(),
2200
- endDate: z21.string(),
2199
+ startDate: z21.string().nullable(),
2200
+ endDate: z21.string().nullable(),
2201
2201
  createdDate: z21.string(),
2202
- startTime: z21.number().optional(),
2203
- endTime: z21.number().optional()
2202
+ startTime: z21.number().optional().nullable(),
2203
+ endTime: z21.number().optional().nullable()
2204
2204
  }).transform((data) => ({
2205
2205
  id: data["id"],
2206
2206
  packageId: data["packageId"],
@@ -2341,22 +2341,22 @@ var topUpEsimOkResponsePurchase = z25.lazy(() => {
2341
2341
  return z25.object({
2342
2342
  id: z25.string(),
2343
2343
  packageId: z25.string(),
2344
- startDate: z25.string(),
2345
- endDate: z25.string(),
2344
+ startDate: z25.string().nullable(),
2345
+ endDate: z25.string().nullable(),
2346
2346
  createdDate: z25.string(),
2347
- startTime: z25.number().optional(),
2348
- endTime: z25.number().optional()
2347
+ startTime: z25.number().optional().nullable(),
2348
+ endTime: z25.number().optional().nullable()
2349
2349
  });
2350
2350
  });
2351
2351
  var topUpEsimOkResponsePurchaseResponse = z25.lazy(() => {
2352
2352
  return z25.object({
2353
2353
  id: z25.string(),
2354
2354
  packageId: z25.string(),
2355
- startDate: z25.string(),
2356
- endDate: z25.string(),
2355
+ startDate: z25.string().nullable(),
2356
+ endDate: z25.string().nullable(),
2357
2357
  createdDate: z25.string(),
2358
- startTime: z25.number().optional(),
2359
- endTime: z25.number().optional()
2358
+ startTime: z25.number().optional().nullable(),
2359
+ endTime: z25.number().optional().nullable()
2360
2360
  }).transform((data) => ({
2361
2361
  id: data["id"],
2362
2362
  packageId: data["packageId"],
@@ -2371,11 +2371,11 @@ var topUpEsimOkResponsePurchaseRequest = z25.lazy(() => {
2371
2371
  return z25.object({
2372
2372
  id: z25.string(),
2373
2373
  packageId: z25.string(),
2374
- startDate: z25.string(),
2375
- endDate: z25.string(),
2374
+ startDate: z25.string().nullable(),
2375
+ endDate: z25.string().nullable(),
2376
2376
  createdDate: z25.string(),
2377
- startTime: z25.number().optional(),
2378
- endTime: z25.number().optional()
2377
+ startTime: z25.number().optional().nullable(),
2378
+ endTime: z25.number().optional().nullable()
2379
2379
  }).transform((data) => ({
2380
2380
  id: data["id"],
2381
2381
  packageId: data["packageId"],
@@ -2482,19 +2482,19 @@ import { z as z29 } from "zod";
2482
2482
  var editPurchaseOkResponse = z29.lazy(() => {
2483
2483
  return z29.object({
2484
2484
  purchaseId: z29.string(),
2485
- newStartDate: z29.string(),
2486
- newEndDate: z29.string(),
2487
- newStartTime: z29.number().optional(),
2488
- newEndTime: z29.number().optional()
2485
+ newStartDate: z29.string().nullable(),
2486
+ newEndDate: z29.string().nullable(),
2487
+ newStartTime: z29.number().optional().nullable(),
2488
+ newEndTime: z29.number().optional().nullable()
2489
2489
  });
2490
2490
  });
2491
2491
  var editPurchaseOkResponseResponse = z29.lazy(() => {
2492
2492
  return z29.object({
2493
2493
  purchaseId: z29.string(),
2494
- newStartDate: z29.string(),
2495
- newEndDate: z29.string(),
2496
- newStartTime: z29.number().optional(),
2497
- newEndTime: z29.number().optional()
2494
+ newStartDate: z29.string().nullable(),
2495
+ newEndDate: z29.string().nullable(),
2496
+ newStartTime: z29.number().optional().nullable(),
2497
+ newEndTime: z29.number().optional().nullable()
2498
2498
  }).transform((data) => ({
2499
2499
  purchaseId: data["purchaseId"],
2500
2500
  newStartDate: data["newStartDate"],
@@ -2506,10 +2506,10 @@ var editPurchaseOkResponseResponse = z29.lazy(() => {
2506
2506
  var editPurchaseOkResponseRequest = z29.lazy(() => {
2507
2507
  return z29.object({
2508
2508
  purchaseId: z29.string(),
2509
- newStartDate: z29.string(),
2510
- newEndDate: z29.string(),
2511
- newStartTime: z29.number().optional(),
2512
- newEndTime: z29.number().optional()
2509
+ newStartDate: z29.string().nullable(),
2510
+ newEndDate: z29.string().nullable(),
2511
+ newStartTime: z29.number().optional().nullable(),
2512
+ newEndTime: z29.number().optional().nullable()
2513
2513
  }).transform((data) => ({
2514
2514
  purchaseId: data["purchaseId"],
2515
2515
  newStartDate: data["newStartDate"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "celitech-sdk",
3
- "version": "1.3.58",
3
+ "version": "1.3.59",
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",
@@ -11,7 +11,8 @@
11
11
  "scripts": {
12
12
  "test": "tsc --noEmit",
13
13
  "build": "tsup-node src/index.ts --format cjs,esm --dts --clean",
14
- "prepublishOnly": "npm run build"
14
+ "prepublishOnly": "chmod +x ./scripts/prepublish.sh && ./scripts/prepublish.sh && npm run build",
15
+ "test-example": "cd examples && tsc --noEmit"
15
16
  },
16
17
  "keywords": [
17
18
  "typescript",