celitech-sdk 1.1.55 → 1.1.57
Sign up to get free protection for your applications and to get access to all the features.
package/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# Celitech Typescript SDK 1.1.
|
1
|
+
# Celitech Typescript SDK 1.1.57
|
2
2
|
|
3
3
|
The Typescript SDK for Celitech.
|
4
4
|
|
5
|
-
- API version: 1.1.
|
6
|
-
- SDK version: 1.1.
|
5
|
+
- API version: 1.1.57
|
6
|
+
- SDK version: 1.1.57
|
7
7
|
|
8
8
|
## Table of Contents
|
9
9
|
|
@@ -203,7 +203,13 @@ import { Celitech } from 'celitech-sdk';
|
|
203
203
|
const sdk = new Celitech();
|
204
204
|
|
205
205
|
(async () => {
|
206
|
-
const
|
206
|
+
const input = {
|
207
|
+
dataLimitInGB: 1,
|
208
|
+
destination: 'FRA',
|
209
|
+
endDate: '2023-11-20',
|
210
|
+
startDate: '2023-11-01',
|
211
|
+
};
|
212
|
+
const result = await sdk.purchases.createPurchase(input);
|
207
213
|
console.log(result);
|
208
214
|
})();
|
209
215
|
|
@@ -271,7 +277,13 @@ import { Celitech } from 'celitech-sdk';
|
|
271
277
|
const sdk = new Celitech();
|
272
278
|
|
273
279
|
(async () => {
|
274
|
-
const
|
280
|
+
const input = {
|
281
|
+
dataLimitInGB: 1,
|
282
|
+
endDate: '2023-11-20',
|
283
|
+
iccid: '1111222233334444555',
|
284
|
+
startDate: '2023-11-01',
|
285
|
+
};
|
286
|
+
const result = await sdk.purchases.topUpEsim(input);
|
275
287
|
console.log(result);
|
276
288
|
})();
|
277
289
|
|
@@ -300,7 +312,12 @@ import { Celitech } from 'celitech-sdk';
|
|
300
312
|
const sdk = new Celitech();
|
301
313
|
|
302
314
|
(async () => {
|
303
|
-
const
|
315
|
+
const input = {
|
316
|
+
endDate: '2023-11-20',
|
317
|
+
purchaseId: 'ae471106-c8b4-42cf-b83a-b061291f2922',
|
318
|
+
startDate: '2023-11-01',
|
319
|
+
};
|
320
|
+
const result = await sdk.purchases.editPurchase(input);
|
304
321
|
console.log(result);
|
305
322
|
})();
|
306
323
|
|
@@ -103,7 +103,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
103
103
|
return response;
|
104
104
|
}
|
105
105
|
getUserAgentHeader() {
|
106
|
-
const userAgentBase = 'Celitech/1.1.
|
106
|
+
const userAgentBase = 'Celitech/1.1.57';
|
107
107
|
let userAgent = '';
|
108
108
|
if (typeof window !== 'undefined') {
|
109
109
|
return {};
|
package/package.json
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
},
|
49
49
|
"name": "celitech-sdk",
|
50
50
|
"description": "Celitech - 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/) ",
|
51
|
-
"version": "1.1.
|
51
|
+
"version": "1.1.57",
|
52
52
|
"author": "Celitech",
|
53
53
|
"dependencies": {
|
54
54
|
"axios": "^1.0.0"
|