celitech-sdk 1.3.53 → 1.3.55
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 -6
- package/dist/index.d.ts +10 -1
- package/dist/index.js +11 -6
- package/dist/index.mjs +11 -6
- 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.55
|
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.55`
|
10
|
+
- SDK version: `1.3.55`
|
11
11
|
|
12
12
|
## About the API
|
13
13
|
|
@@ -112,7 +112,6 @@ The SDK provides various services to interact with the API.
|
|
112
112
|
|
113
113
|
| Name |
|
114
114
|
| :------------------------------------------------------------------- |
|
115
|
-
| [OAuthService](documentation/services/OAuthService.md) |
|
116
115
|
| [DestinationsService](documentation/services/DestinationsService.md) |
|
117
116
|
| [PackagesService](documentation/services/PackagesService.md) |
|
118
117
|
| [PurchasesService](documentation/services/PurchasesService.md) |
|
@@ -130,8 +129,6 @@ The SDK includes several models that represent the data structures used in API r
|
|
130
129
|
|
131
130
|
| Name | Description |
|
132
131
|
| :------------------------------------------------------------------------------------------- | :---------- |
|
133
|
-
| [GetAccessTokenRequest](documentation/models/GetAccessTokenRequest.md) | |
|
134
|
-
| [GetAccessTokenOkResponse](documentation/models/GetAccessTokenOkResponse.md) | |
|
135
132
|
| [ListDestinationsOkResponse](documentation/models/ListDestinationsOkResponse.md) | |
|
136
133
|
| [\_\_](documentation/models/__.md) | |
|
137
134
|
| [\_1](documentation/models/_1.md) | |
|
package/dist/index.d.ts
CHANGED
@@ -1120,7 +1120,7 @@ declare class PurchasesService extends BaseService {
|
|
1120
1120
|
*/
|
1121
1121
|
createPurchase(body: CreatePurchaseRequest, requestConfig?: RequestConfig): Promise<HttpResponse<CreatePurchaseOkResponse>>;
|
1122
1122
|
/**
|
1123
|
-
* This endpoint is used to top-up an eSIM with the previously associated destination by providing
|
1123
|
+
* This endpoint is used to top-up an existing eSIM with the previously associated destination by providing its ICCID and package details. To determine if an eSIM can be topped up, use the Get eSIM Status endpoint, which returns the `isTopUpAllowed` flag.
|
1124
1124
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
1125
1125
|
* @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
|
1126
1126
|
*/
|
@@ -1567,16 +1567,19 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1567
1567
|
smdpAddress: z.ZodOptional<z.ZodString>;
|
1568
1568
|
manualActivationCode: z.ZodOptional<z.ZodString>;
|
1569
1569
|
status: z.ZodOptional<z.ZodString>;
|
1570
|
+
isTopUpAllowed: z.ZodOptional<z.ZodBoolean>;
|
1570
1571
|
}, "strip", z.ZodTypeAny, {
|
1571
1572
|
iccid?: string | undefined;
|
1572
1573
|
smdpAddress?: string | undefined;
|
1573
1574
|
manualActivationCode?: string | undefined;
|
1574
1575
|
status?: string | undefined;
|
1576
|
+
isTopUpAllowed?: boolean | undefined;
|
1575
1577
|
}, {
|
1576
1578
|
iccid?: string | undefined;
|
1577
1579
|
smdpAddress?: string | undefined;
|
1578
1580
|
manualActivationCode?: string | undefined;
|
1579
1581
|
status?: string | undefined;
|
1582
|
+
isTopUpAllowed?: boolean | undefined;
|
1580
1583
|
}>>>;
|
1581
1584
|
}, "strip", z.ZodTypeAny, {
|
1582
1585
|
esim?: {
|
@@ -1584,6 +1587,7 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1584
1587
|
smdpAddress?: string | undefined;
|
1585
1588
|
manualActivationCode?: string | undefined;
|
1586
1589
|
status?: string | undefined;
|
1590
|
+
isTopUpAllowed?: boolean | undefined;
|
1587
1591
|
} | undefined;
|
1588
1592
|
}, {
|
1589
1593
|
esim?: {
|
@@ -1591,6 +1595,7 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1591
1595
|
smdpAddress?: string | undefined;
|
1592
1596
|
manualActivationCode?: string | undefined;
|
1593
1597
|
status?: string | undefined;
|
1598
|
+
isTopUpAllowed?: boolean | undefined;
|
1594
1599
|
} | undefined;
|
1595
1600
|
}>>;
|
1596
1601
|
/**
|
@@ -1782,16 +1787,19 @@ declare const getEsimOkResponseEsim: z.ZodLazy<z.ZodObject<{
|
|
1782
1787
|
smdpAddress: z.ZodOptional<z.ZodString>;
|
1783
1788
|
manualActivationCode: z.ZodOptional<z.ZodString>;
|
1784
1789
|
status: z.ZodOptional<z.ZodString>;
|
1790
|
+
isTopUpAllowed: z.ZodOptional<z.ZodBoolean>;
|
1785
1791
|
}, "strip", z.ZodTypeAny, {
|
1786
1792
|
iccid?: string | undefined;
|
1787
1793
|
smdpAddress?: string | undefined;
|
1788
1794
|
manualActivationCode?: string | undefined;
|
1789
1795
|
status?: string | undefined;
|
1796
|
+
isTopUpAllowed?: boolean | undefined;
|
1790
1797
|
}, {
|
1791
1798
|
iccid?: string | undefined;
|
1792
1799
|
smdpAddress?: string | undefined;
|
1793
1800
|
manualActivationCode?: string | undefined;
|
1794
1801
|
status?: string | undefined;
|
1802
|
+
isTopUpAllowed?: boolean | undefined;
|
1795
1803
|
}>>;
|
1796
1804
|
/**
|
1797
1805
|
*
|
@@ -1800,6 +1808,7 @@ declare const getEsimOkResponseEsim: z.ZodLazy<z.ZodObject<{
|
|
1800
1808
|
* @property {string} - SM-DP+ Address
|
1801
1809
|
* @property {string} - The manual activation code
|
1802
1810
|
* @property {string} - Status of the eSIM, possible values are 'RELEASED', 'DOWNLOADED', 'INSTALLED', 'ENABLED', 'DELETED', or 'ERROR'
|
1811
|
+
* @property {boolean} - Indicates whether the eSIM is currently eligible for a top-up. This flag should be checked before attempting a top-up request.
|
1803
1812
|
*/
|
1804
1813
|
type GetEsimOkResponseEsim = z.infer<typeof getEsimOkResponseEsim>;
|
1805
1814
|
|
package/dist/index.js
CHANGED
@@ -2996,7 +2996,7 @@ var PurchasesService = class extends BaseService {
|
|
2996
2996
|
return this.client.call(request);
|
2997
2997
|
}
|
2998
2998
|
/**
|
2999
|
-
* This endpoint is used to top-up an eSIM with the previously associated destination by providing
|
2999
|
+
* This endpoint is used to top-up an existing eSIM with the previously associated destination by providing its ICCID and package details. To determine if an eSIM can be topped up, use the Get eSIM Status endpoint, which returns the `isTopUpAllowed` flag.
|
3000
3000
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
3001
3001
|
* @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
|
3002
3002
|
*/
|
@@ -3077,7 +3077,8 @@ var getEsimOkResponseEsim = import_zod48.z.lazy(() => {
|
|
3077
3077
|
iccid: import_zod48.z.string().min(18).max(22).optional(),
|
3078
3078
|
smdpAddress: import_zod48.z.string().optional(),
|
3079
3079
|
manualActivationCode: import_zod48.z.string().optional(),
|
3080
|
-
status: import_zod48.z.string().optional()
|
3080
|
+
status: import_zod48.z.string().optional(),
|
3081
|
+
isTopUpAllowed: import_zod48.z.boolean().optional()
|
3081
3082
|
});
|
3082
3083
|
});
|
3083
3084
|
var getEsimOkResponseEsimResponse = import_zod48.z.lazy(() => {
|
@@ -3085,12 +3086,14 @@ var getEsimOkResponseEsimResponse = import_zod48.z.lazy(() => {
|
|
3085
3086
|
iccid: import_zod48.z.string().min(18).max(22).optional(),
|
3086
3087
|
smdpAddress: import_zod48.z.string().optional(),
|
3087
3088
|
manualActivationCode: import_zod48.z.string().optional(),
|
3088
|
-
status: import_zod48.z.string().optional()
|
3089
|
+
status: import_zod48.z.string().optional(),
|
3090
|
+
isTopUpAllowed: import_zod48.z.boolean().optional()
|
3089
3091
|
}).transform((data) => ({
|
3090
3092
|
iccid: data["iccid"],
|
3091
3093
|
smdpAddress: data["smdpAddress"],
|
3092
3094
|
manualActivationCode: data["manualActivationCode"],
|
3093
|
-
status: data["status"]
|
3095
|
+
status: data["status"],
|
3096
|
+
isTopUpAllowed: data["isTopUpAllowed"]
|
3094
3097
|
}));
|
3095
3098
|
});
|
3096
3099
|
var getEsimOkResponseEsimRequest = import_zod48.z.lazy(() => {
|
@@ -3098,12 +3101,14 @@ var getEsimOkResponseEsimRequest = import_zod48.z.lazy(() => {
|
|
3098
3101
|
iccid: import_zod48.z.string().min(18).max(22).optional(),
|
3099
3102
|
smdpAddress: import_zod48.z.string().optional(),
|
3100
3103
|
manualActivationCode: import_zod48.z.string().optional(),
|
3101
|
-
status: import_zod48.z.string().optional()
|
3104
|
+
status: import_zod48.z.string().optional(),
|
3105
|
+
isTopUpAllowed: import_zod48.z.boolean().optional()
|
3102
3106
|
}).transform((data) => ({
|
3103
3107
|
iccid: data["iccid"],
|
3104
3108
|
smdpAddress: data["smdpAddress"],
|
3105
3109
|
manualActivationCode: data["manualActivationCode"],
|
3106
|
-
status: data["status"]
|
3110
|
+
status: data["status"],
|
3111
|
+
isTopUpAllowed: data["isTopUpAllowed"]
|
3107
3112
|
}));
|
3108
3113
|
});
|
3109
3114
|
|
package/dist/index.mjs
CHANGED
@@ -2952,7 +2952,7 @@ var PurchasesService = class extends BaseService {
|
|
2952
2952
|
return this.client.call(request);
|
2953
2953
|
}
|
2954
2954
|
/**
|
2955
|
-
* This endpoint is used to top-up an eSIM with the previously associated destination by providing
|
2955
|
+
* This endpoint is used to top-up an existing eSIM with the previously associated destination by providing its ICCID and package details. To determine if an eSIM can be topped up, use the Get eSIM Status endpoint, which returns the `isTopUpAllowed` flag.
|
2956
2956
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
2957
2957
|
* @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
|
2958
2958
|
*/
|
@@ -3033,7 +3033,8 @@ var getEsimOkResponseEsim = z46.lazy(() => {
|
|
3033
3033
|
iccid: z46.string().min(18).max(22).optional(),
|
3034
3034
|
smdpAddress: z46.string().optional(),
|
3035
3035
|
manualActivationCode: z46.string().optional(),
|
3036
|
-
status: z46.string().optional()
|
3036
|
+
status: z46.string().optional(),
|
3037
|
+
isTopUpAllowed: z46.boolean().optional()
|
3037
3038
|
});
|
3038
3039
|
});
|
3039
3040
|
var getEsimOkResponseEsimResponse = z46.lazy(() => {
|
@@ -3041,12 +3042,14 @@ var getEsimOkResponseEsimResponse = z46.lazy(() => {
|
|
3041
3042
|
iccid: z46.string().min(18).max(22).optional(),
|
3042
3043
|
smdpAddress: z46.string().optional(),
|
3043
3044
|
manualActivationCode: z46.string().optional(),
|
3044
|
-
status: z46.string().optional()
|
3045
|
+
status: z46.string().optional(),
|
3046
|
+
isTopUpAllowed: z46.boolean().optional()
|
3045
3047
|
}).transform((data) => ({
|
3046
3048
|
iccid: data["iccid"],
|
3047
3049
|
smdpAddress: data["smdpAddress"],
|
3048
3050
|
manualActivationCode: data["manualActivationCode"],
|
3049
|
-
status: data["status"]
|
3051
|
+
status: data["status"],
|
3052
|
+
isTopUpAllowed: data["isTopUpAllowed"]
|
3050
3053
|
}));
|
3051
3054
|
});
|
3052
3055
|
var getEsimOkResponseEsimRequest = z46.lazy(() => {
|
@@ -3054,12 +3057,14 @@ var getEsimOkResponseEsimRequest = z46.lazy(() => {
|
|
3054
3057
|
iccid: z46.string().min(18).max(22).optional(),
|
3055
3058
|
smdpAddress: z46.string().optional(),
|
3056
3059
|
manualActivationCode: z46.string().optional(),
|
3057
|
-
status: z46.string().optional()
|
3060
|
+
status: z46.string().optional(),
|
3061
|
+
isTopUpAllowed: z46.boolean().optional()
|
3058
3062
|
}).transform((data) => ({
|
3059
3063
|
iccid: data["iccid"],
|
3060
3064
|
smdpAddress: data["smdpAddress"],
|
3061
3065
|
manualActivationCode: data["manualActivationCode"],
|
3062
|
-
status: data["status"]
|
3066
|
+
status: data["status"],
|
3067
|
+
isTopUpAllowed: data["isTopUpAllowed"]
|
3063
3068
|
}));
|
3064
3069
|
});
|
3065
3070
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "celitech-sdk",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.55",
|
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",
|