celitech-sdk 1.1.56 → 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.56
1
+ # Celitech Typescript SDK 1.1.57
2
2
 
3
3
  The Typescript SDK for Celitech.
4
4
 
5
- - API version: 1.1.56
6
- - SDK version: 1.1.56
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 result = await sdk.purchases.createPurchase();
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 result = await sdk.purchases.topUpEsim();
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 result = await sdk.purchases.editPurchase();
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
 
@@ -94,7 +94,7 @@ class HTTPLibrary {
94
94
  return response;
95
95
  }
96
96
  getUserAgentHeader() {
97
- const userAgentBase = 'Celitech/1.1.56';
97
+ const userAgentBase = 'Celitech/1.1.57';
98
98
  let userAgent = '';
99
99
  if (typeof window !== 'undefined') {
100
100
  return {};
@@ -89,7 +89,7 @@ export default class HTTPLibrary {
89
89
  return response;
90
90
  }
91
91
  getUserAgentHeader() {
92
- const userAgentBase = 'Celitech/1.1.56';
92
+ const userAgentBase = 'Celitech/1.1.57';
93
93
  let userAgent = '';
94
94
  if (typeof window !== 'undefined') {
95
95
  return {};
@@ -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.56';
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.56",
51
+ "version": "1.1.57",
52
52
  "author": "Celitech",
53
53
  "dependencies": {
54
54
  "axios": "^1.0.0"