celitech-sdk 1.3.59 → 1.3.61
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 -3
- package/dist/index.d.ts +90 -49
- package/dist/index.js +163 -71
- package/dist/index.mjs +163 -71
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -186,7 +186,7 @@ var TransportHookAdapter = class {
|
|
|
186
186
|
hookParamsToTransportParams(hookParams, originalTransportParams, encode) {
|
|
187
187
|
const transportParams = /* @__PURE__ */ new Map();
|
|
188
188
|
hookParams.forEach((hookParamValue, hookParamKey) => {
|
|
189
|
-
var _a, _b, _c, _d;
|
|
189
|
+
var _a, _b, _c, _d, _e;
|
|
190
190
|
const requestParam = originalTransportParams.get(hookParamKey);
|
|
191
191
|
transportParams.set(hookParamKey, {
|
|
192
192
|
key: hookParamKey,
|
|
@@ -195,7 +195,8 @@ var TransportHookAdapter = class {
|
|
|
195
195
|
style: (requestParam == null ? void 0 : requestParam.style) || "none" /* NONE */,
|
|
196
196
|
explode: (_b = requestParam == null ? void 0 : requestParam.explode) != null ? _b : false,
|
|
197
197
|
isLimit: (_c = requestParam == null ? void 0 : requestParam.isLimit) != null ? _c : false,
|
|
198
|
-
isOffset: (_d = requestParam == null ? void 0 : requestParam.isOffset) != null ? _d : false
|
|
198
|
+
isOffset: (_d = requestParam == null ? void 0 : requestParam.isOffset) != null ? _d : false,
|
|
199
|
+
isCursor: (_e = requestParam == null ? void 0 : requestParam.isCursor) != null ? _e : false
|
|
199
200
|
});
|
|
200
201
|
});
|
|
201
202
|
return transportParams;
|
|
@@ -214,19 +215,28 @@ function getContentTypeDefinition(contentType) {
|
|
|
214
215
|
if (ct === "text/event-stream") {
|
|
215
216
|
return "eventStream" /* EventStream */;
|
|
216
217
|
}
|
|
218
|
+
if (ct === "application/json" || ct === "text/json" || ct.includes("+json")) {
|
|
219
|
+
return "json" /* Json */;
|
|
220
|
+
}
|
|
221
|
+
if (ct === "application/javascript") {
|
|
222
|
+
return "text" /* Text */;
|
|
223
|
+
}
|
|
217
224
|
if (ct.startsWith("text/")) {
|
|
218
225
|
return "text" /* Text */;
|
|
219
226
|
}
|
|
227
|
+
if (ct === "image/svg+xml") {
|
|
228
|
+
return "text" /* Text */;
|
|
229
|
+
}
|
|
220
230
|
if (ct.startsWith("image/")) {
|
|
221
231
|
return "image" /* Image */;
|
|
222
232
|
}
|
|
223
233
|
if (ct === "application/octet-stream" || ct === "application/pdf") {
|
|
224
234
|
return "binary" /* Binary */;
|
|
225
235
|
}
|
|
226
|
-
if (ct === "
|
|
227
|
-
return "
|
|
236
|
+
if (ct === "*/*") {
|
|
237
|
+
return "binary" /* Binary */;
|
|
228
238
|
}
|
|
229
|
-
return "
|
|
239
|
+
return "binary" /* Binary */;
|
|
230
240
|
}
|
|
231
241
|
|
|
232
242
|
// src/http/handlers/hook-handler.ts
|
|
@@ -246,6 +256,7 @@ var HookHandler = class {
|
|
|
246
256
|
if (response.metadata.status < 400) {
|
|
247
257
|
return await hook.afterResponse(nextRequest, response, hookParams);
|
|
248
258
|
}
|
|
259
|
+
const arrayBuffer = response.raw;
|
|
249
260
|
const rawContentType = ((_a = response.metadata.headers["content-type"]) == null ? void 0 : _a.toLocaleLowerCase()) || "";
|
|
250
261
|
const contentType = getContentTypeDefinition(rawContentType);
|
|
251
262
|
const statusCode = response.metadata.status;
|
|
@@ -253,14 +264,14 @@ var HookHandler = class {
|
|
|
253
264
|
return error2.contentType === contentType && error2.status === statusCode;
|
|
254
265
|
});
|
|
255
266
|
if (error) {
|
|
256
|
-
const decodedBody2 = new TextDecoder().decode(
|
|
267
|
+
const decodedBody2 = new TextDecoder().decode(arrayBuffer);
|
|
257
268
|
const json = JSON.parse(decodedBody2);
|
|
258
269
|
new error.error((json == null ? void 0 : json.message) || "", json).throw();
|
|
259
270
|
}
|
|
260
|
-
const decodedBody = new TextDecoder().decode(
|
|
271
|
+
const decodedBody = new TextDecoder().decode(arrayBuffer);
|
|
261
272
|
throw new HttpError(
|
|
262
273
|
response.metadata,
|
|
263
|
-
|
|
274
|
+
arrayBuffer,
|
|
264
275
|
`Unexpected response body for error status.
|
|
265
276
|
StatusCode: ${response.metadata.status}
|
|
266
277
|
Body: ${decodedBody}`
|
|
@@ -329,7 +340,8 @@ var ResponseValidationHandler = class {
|
|
|
329
340
|
}
|
|
330
341
|
}
|
|
331
342
|
splitByDataChunks(response) {
|
|
332
|
-
|
|
343
|
+
var _a;
|
|
344
|
+
if (!((_a = response.metadata.headers["content-type"]) == null ? void 0 : _a.includes("text/event-stream"))) {
|
|
333
345
|
return [response];
|
|
334
346
|
}
|
|
335
347
|
const text = new TextDecoder().decode(response.raw);
|
|
@@ -755,7 +767,7 @@ var RetryHandler = class {
|
|
|
755
767
|
throw new Error("Error retrying request.");
|
|
756
768
|
}
|
|
757
769
|
shouldRetry(error) {
|
|
758
|
-
return error instanceof HttpError && (error.metadata.status >= 500 || error.metadata.status === 408);
|
|
770
|
+
return error instanceof HttpError && (error.metadata.status >= 500 || error.metadata.status === 408 || error.metadata.status === 429);
|
|
759
771
|
}
|
|
760
772
|
delay(delayMs) {
|
|
761
773
|
if (!delayMs) {
|
|
@@ -767,6 +779,11 @@ var RetryHandler = class {
|
|
|
767
779
|
}
|
|
768
780
|
};
|
|
769
781
|
|
|
782
|
+
// src/http/transport/types.ts
|
|
783
|
+
function isRequestCursorPagination(pagination) {
|
|
784
|
+
return !!pagination && "cursorPath" in pagination;
|
|
785
|
+
}
|
|
786
|
+
|
|
770
787
|
// src/http/handlers/oauth-handler.ts
|
|
771
788
|
var OAuthHandler = class {
|
|
772
789
|
async handle(request) {
|
|
@@ -807,7 +824,8 @@ var OAuthHandler = class {
|
|
|
807
824
|
encode: false,
|
|
808
825
|
style: "simple" /* SIMPLE */,
|
|
809
826
|
isLimit: false,
|
|
810
|
-
isOffset: false
|
|
827
|
+
isOffset: false,
|
|
828
|
+
isCursor: false
|
|
811
829
|
});
|
|
812
830
|
}
|
|
813
831
|
};
|
|
@@ -835,9 +853,23 @@ var HttpClient = class {
|
|
|
835
853
|
if (!response.data) {
|
|
836
854
|
throw new Error("no response data to paginate through");
|
|
837
855
|
}
|
|
856
|
+
const page = this.getPage(request, response.data);
|
|
838
857
|
return {
|
|
839
858
|
...response,
|
|
840
|
-
data:
|
|
859
|
+
data: page
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
async callCursorPaginated(request) {
|
|
863
|
+
const response = await this.call(request);
|
|
864
|
+
if (!response.data) {
|
|
865
|
+
throw new Error("no response data to paginate through");
|
|
866
|
+
}
|
|
867
|
+
const page = this.getPage(request, response.data);
|
|
868
|
+
const nextCursor = this.getNextCursor(request, response.data);
|
|
869
|
+
return {
|
|
870
|
+
...response,
|
|
871
|
+
data: page,
|
|
872
|
+
nextCursor
|
|
841
873
|
};
|
|
842
874
|
}
|
|
843
875
|
setBaseUrl(url) {
|
|
@@ -847,22 +879,36 @@ var HttpClient = class {
|
|
|
847
879
|
this.config = config;
|
|
848
880
|
}
|
|
849
881
|
getPage(request, data) {
|
|
850
|
-
var _a
|
|
882
|
+
var _a;
|
|
851
883
|
if (!request.pagination) {
|
|
852
884
|
throw new Error("getPage called for request without pagination property");
|
|
853
885
|
}
|
|
854
886
|
let curr = data;
|
|
855
|
-
for (const segment of
|
|
887
|
+
for (const segment of request.pagination.pagePath || []) {
|
|
856
888
|
curr = curr[segment];
|
|
857
889
|
}
|
|
858
|
-
const page = (
|
|
890
|
+
const page = (_a = request.pagination.pageSchema) == null ? void 0 : _a.parse(curr);
|
|
859
891
|
if (!page) {
|
|
860
892
|
throw new Error(
|
|
861
|
-
`error getting page data. Curr: ${JSON.stringify(curr)}. PagePath: ${
|
|
893
|
+
`error getting page data. Curr: ${JSON.stringify(curr)}. PagePath: ${request.pagination.pagePath}. Data: ${JSON.stringify(data)}`
|
|
862
894
|
);
|
|
863
895
|
}
|
|
864
896
|
return page;
|
|
865
897
|
}
|
|
898
|
+
getNextCursor(request, data) {
|
|
899
|
+
var _a, _b;
|
|
900
|
+
if (!isRequestCursorPagination(request.pagination)) {
|
|
901
|
+
return void 0;
|
|
902
|
+
}
|
|
903
|
+
let curr = data;
|
|
904
|
+
for (const segment of request.pagination.cursorPath) {
|
|
905
|
+
if (curr === null || curr === void 0) {
|
|
906
|
+
return null;
|
|
907
|
+
}
|
|
908
|
+
curr = curr[segment];
|
|
909
|
+
}
|
|
910
|
+
return (_b = (_a = request.pagination.cursorSchema) == null ? void 0 : _a.parse(curr)) != null ? _b : null;
|
|
911
|
+
}
|
|
866
912
|
};
|
|
867
913
|
|
|
868
914
|
// src/services/base-service.ts
|
|
@@ -917,6 +963,9 @@ var QuerySerializer = class extends Serializer {
|
|
|
917
963
|
}
|
|
918
964
|
const query = [];
|
|
919
965
|
queryParams.forEach((param) => {
|
|
966
|
+
if (param.value === void 0) {
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
920
969
|
return query.push(`${this.serializeValue(param)}`);
|
|
921
970
|
});
|
|
922
971
|
return query.length ? `?${query.join("&")}` : "";
|
|
@@ -1066,15 +1115,24 @@ var Request = class {
|
|
|
1066
1115
|
}
|
|
1067
1116
|
return new HeaderSerializer().serialize(this.headers);
|
|
1068
1117
|
}
|
|
1069
|
-
nextPage() {
|
|
1118
|
+
nextPage(cursor) {
|
|
1070
1119
|
if (!this.pagination) {
|
|
1071
1120
|
return;
|
|
1072
1121
|
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1122
|
+
if (isRequestCursorPagination(this.pagination)) {
|
|
1123
|
+
const cursorParam = this.getCursorParam();
|
|
1124
|
+
if (cursorParam && cursor !== void 0) {
|
|
1125
|
+
cursorParam.value = cursor;
|
|
1126
|
+
}
|
|
1075
1127
|
return;
|
|
1076
1128
|
}
|
|
1077
|
-
offsetParam
|
|
1129
|
+
const offsetParam = this.getOffsetParam();
|
|
1130
|
+
if (offsetParam) {
|
|
1131
|
+
if (this.pagination.pageSize === void 0) {
|
|
1132
|
+
throw new Error("pageSize is required for limit-offset pagination");
|
|
1133
|
+
}
|
|
1134
|
+
offsetParam.value = Number(offsetParam.value) + this.pagination.pageSize;
|
|
1135
|
+
}
|
|
1078
1136
|
}
|
|
1079
1137
|
constructPath() {
|
|
1080
1138
|
return new PathSerializer().serialize(this.pathPattern, this.pathParams);
|
|
@@ -1083,6 +1141,10 @@ var Request = class {
|
|
|
1083
1141
|
const offsetParam = this.getAllParams().find((param) => param.isOffset);
|
|
1084
1142
|
return offsetParam;
|
|
1085
1143
|
}
|
|
1144
|
+
getCursorParam() {
|
|
1145
|
+
const cursorParam = this.getAllParams().find((param) => param.isCursor);
|
|
1146
|
+
return cursorParam;
|
|
1147
|
+
}
|
|
1086
1148
|
getAllParams() {
|
|
1087
1149
|
const allParams = [];
|
|
1088
1150
|
this.headers.forEach((val, _) => {
|
|
@@ -1198,6 +1260,10 @@ var RequestBuilder = class {
|
|
|
1198
1260
|
this.params.pagination = pagination;
|
|
1199
1261
|
return this;
|
|
1200
1262
|
}
|
|
1263
|
+
setCursorPagination(pagination) {
|
|
1264
|
+
this.params.pagination = pagination;
|
|
1265
|
+
return this;
|
|
1266
|
+
}
|
|
1201
1267
|
setScopes(scopes) {
|
|
1202
1268
|
this.params.scopes = new Set(scopes);
|
|
1203
1269
|
return this;
|
|
@@ -1217,7 +1283,8 @@ var RequestBuilder = class {
|
|
|
1217
1283
|
style: "simple" /* SIMPLE */,
|
|
1218
1284
|
encode: true,
|
|
1219
1285
|
isLimit: false,
|
|
1220
|
-
isOffset: false
|
|
1286
|
+
isOffset: false,
|
|
1287
|
+
isCursor: false
|
|
1221
1288
|
});
|
|
1222
1289
|
return this;
|
|
1223
1290
|
}
|
|
@@ -1232,7 +1299,8 @@ var RequestBuilder = class {
|
|
|
1232
1299
|
style: "simple" /* SIMPLE */,
|
|
1233
1300
|
encode: true,
|
|
1234
1301
|
isLimit: false,
|
|
1235
|
-
isOffset: false
|
|
1302
|
+
isOffset: false,
|
|
1303
|
+
isCursor: false
|
|
1236
1304
|
});
|
|
1237
1305
|
return this;
|
|
1238
1306
|
}
|
|
@@ -1247,7 +1315,8 @@ var RequestBuilder = class {
|
|
|
1247
1315
|
style: "simple" /* SIMPLE */,
|
|
1248
1316
|
encode: true,
|
|
1249
1317
|
isLimit: false,
|
|
1250
|
-
isOffset: false
|
|
1318
|
+
isOffset: false,
|
|
1319
|
+
isCursor: false
|
|
1251
1320
|
});
|
|
1252
1321
|
return this;
|
|
1253
1322
|
}
|
|
@@ -1277,13 +1346,14 @@ var RequestBuilder = class {
|
|
|
1277
1346
|
style: (_b = param.style) != null ? _b : "simple" /* SIMPLE */,
|
|
1278
1347
|
encode: (_c = param.encode) != null ? _c : true,
|
|
1279
1348
|
isLimit: !!param.isLimit,
|
|
1280
|
-
isOffset: !!param.isOffset
|
|
1349
|
+
isOffset: !!param.isOffset,
|
|
1350
|
+
isCursor: !!param.isCursor
|
|
1281
1351
|
});
|
|
1282
1352
|
return this;
|
|
1283
1353
|
}
|
|
1284
1354
|
addQueryParam(param) {
|
|
1285
1355
|
var _a, _b, _c;
|
|
1286
|
-
if (param.
|
|
1356
|
+
if (param.key === void 0) {
|
|
1287
1357
|
return this;
|
|
1288
1358
|
}
|
|
1289
1359
|
this.params.queryParams.set(param.key, {
|
|
@@ -1293,7 +1363,8 @@ var RequestBuilder = class {
|
|
|
1293
1363
|
style: (_b = param.style) != null ? _b : "form" /* FORM */,
|
|
1294
1364
|
encode: (_c = param.encode) != null ? _c : true,
|
|
1295
1365
|
isLimit: !!param.isLimit,
|
|
1296
|
-
isOffset: !!param.isOffset
|
|
1366
|
+
isOffset: !!param.isOffset,
|
|
1367
|
+
isCursor: !!param.isCursor
|
|
1297
1368
|
});
|
|
1298
1369
|
return this;
|
|
1299
1370
|
}
|
|
@@ -1309,7 +1380,8 @@ var RequestBuilder = class {
|
|
|
1309
1380
|
style: (_b = param.style) != null ? _b : "simple" /* SIMPLE */,
|
|
1310
1381
|
encode: (_c = param.encode) != null ? _c : false,
|
|
1311
1382
|
isLimit: !!param.isLimit,
|
|
1312
|
-
isOffset: !!param.isOffset
|
|
1383
|
+
isOffset: !!param.isOffset,
|
|
1384
|
+
isCursor: !!param.isCursor
|
|
1313
1385
|
});
|
|
1314
1386
|
return this;
|
|
1315
1387
|
}
|
|
@@ -1393,8 +1465,8 @@ var getAccessTokenOkResponseRequest = z3.lazy(() => {
|
|
|
1393
1465
|
var OAuthService = class extends BaseService {
|
|
1394
1466
|
/**
|
|
1395
1467
|
* This endpoint was added by liblab
|
|
1396
|
-
* @param {RequestConfig} requestConfig -
|
|
1397
|
-
* @returns {Promise<HttpResponse<GetAccessTokenOkResponse>>} Successful Response
|
|
1468
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1469
|
+
* @returns {Promise<HttpResponse<GetAccessTokenOkResponse>>} - Successful Response
|
|
1398
1470
|
*/
|
|
1399
1471
|
async getAccessToken(body, requestConfig) {
|
|
1400
1472
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/oauth2/token").setRequestSchema(getAccessTokenRequestRequest).setTokenManager(this.tokenManager).setRequestContentType("form" /* FormUrlEncoded */).addResponse({
|
|
@@ -1593,8 +1665,8 @@ var Unauthorized = class extends ThrowableError {
|
|
|
1593
1665
|
var DestinationsService = class extends BaseService {
|
|
1594
1666
|
/**
|
|
1595
1667
|
* List Destinations
|
|
1596
|
-
* @param {RequestConfig} requestConfig -
|
|
1597
|
-
* @returns {Promise<HttpResponse<ListDestinationsOkResponse>>} Successful Response
|
|
1668
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1669
|
+
* @returns {Promise<HttpResponse<ListDestinationsOkResponse>>} - Successful Response
|
|
1598
1670
|
*/
|
|
1599
1671
|
async listDestinations(requestConfig) {
|
|
1600
1672
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/destinations").setRequestSchema(z8.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -1709,9 +1781,8 @@ var PackagesService = class extends BaseService {
|
|
|
1709
1781
|
* @param {number} [params.limit] - Maximum number of packages to be returned in the response. The value must be greater than 0 and less than or equal to 160. If not provided, the default value is 20
|
|
1710
1782
|
* @param {number} [params.startTime] - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months
|
|
1711
1783
|
* @param {number} [params.endTime] - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time
|
|
1712
|
-
* @param {
|
|
1713
|
-
* @
|
|
1714
|
-
* @returns {Promise<HttpResponse<ListPackagesOkResponse>>} Successful Response
|
|
1784
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1785
|
+
* @returns {Promise<HttpResponse<ListPackagesOkResponse>>} - Successful Response
|
|
1715
1786
|
*/
|
|
1716
1787
|
async listPackages(params, requestConfig) {
|
|
1717
1788
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/packages").setRequestSchema(z11.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -1747,9 +1818,6 @@ var PackagesService = class extends BaseService {
|
|
|
1747
1818
|
}).addQueryParam({
|
|
1748
1819
|
key: "endTime",
|
|
1749
1820
|
value: params == null ? void 0 : params.endTime
|
|
1750
|
-
}).addQueryParam({
|
|
1751
|
-
key: "duration",
|
|
1752
|
-
value: params == null ? void 0 : params.duration
|
|
1753
1821
|
}).build();
|
|
1754
1822
|
return this.client.call(request);
|
|
1755
1823
|
}
|
|
@@ -1764,8 +1832,9 @@ var createPurchaseV2Request = z12.lazy(() => {
|
|
|
1764
1832
|
return z12.object({
|
|
1765
1833
|
destination: z12.string(),
|
|
1766
1834
|
dataLimitInGb: z12.number(),
|
|
1767
|
-
startDate: z12.string(),
|
|
1768
|
-
endDate: z12.string(),
|
|
1835
|
+
startDate: z12.string().optional(),
|
|
1836
|
+
endDate: z12.string().optional(),
|
|
1837
|
+
duration: z12.number().optional(),
|
|
1769
1838
|
quantity: z12.number().gte(1).lte(5),
|
|
1770
1839
|
email: z12.string().optional(),
|
|
1771
1840
|
referenceId: z12.string().optional(),
|
|
@@ -1777,8 +1846,9 @@ var createPurchaseV2RequestResponse = z12.lazy(() => {
|
|
|
1777
1846
|
return z12.object({
|
|
1778
1847
|
destination: z12.string(),
|
|
1779
1848
|
dataLimitInGB: z12.number(),
|
|
1780
|
-
startDate: z12.string(),
|
|
1781
|
-
endDate: z12.string(),
|
|
1849
|
+
startDate: z12.string().optional(),
|
|
1850
|
+
endDate: z12.string().optional(),
|
|
1851
|
+
duration: z12.number().optional(),
|
|
1782
1852
|
quantity: z12.number().gte(1).lte(5),
|
|
1783
1853
|
email: z12.string().optional(),
|
|
1784
1854
|
referenceId: z12.string().optional(),
|
|
@@ -1789,6 +1859,7 @@ var createPurchaseV2RequestResponse = z12.lazy(() => {
|
|
|
1789
1859
|
dataLimitInGb: data["dataLimitInGB"],
|
|
1790
1860
|
startDate: data["startDate"],
|
|
1791
1861
|
endDate: data["endDate"],
|
|
1862
|
+
duration: data["duration"],
|
|
1792
1863
|
quantity: data["quantity"],
|
|
1793
1864
|
email: data["email"],
|
|
1794
1865
|
referenceId: data["referenceId"],
|
|
@@ -1800,8 +1871,9 @@ var createPurchaseV2RequestRequest = z12.lazy(() => {
|
|
|
1800
1871
|
return z12.object({
|
|
1801
1872
|
destination: z12.string(),
|
|
1802
1873
|
dataLimitInGb: z12.number(),
|
|
1803
|
-
startDate: z12.string(),
|
|
1804
|
-
endDate: z12.string(),
|
|
1874
|
+
startDate: z12.string().optional(),
|
|
1875
|
+
endDate: z12.string().optional(),
|
|
1876
|
+
duration: z12.number().optional(),
|
|
1805
1877
|
quantity: z12.number().gte(1).lte(5),
|
|
1806
1878
|
email: z12.string().optional(),
|
|
1807
1879
|
referenceId: z12.string().optional(),
|
|
@@ -1812,6 +1884,7 @@ var createPurchaseV2RequestRequest = z12.lazy(() => {
|
|
|
1812
1884
|
dataLimitInGB: data["dataLimitInGb"],
|
|
1813
1885
|
startDate: data["startDate"],
|
|
1814
1886
|
endDate: data["endDate"],
|
|
1887
|
+
duration: data["duration"],
|
|
1815
1888
|
quantity: data["quantity"],
|
|
1816
1889
|
email: data["email"],
|
|
1817
1890
|
referenceId: data["referenceId"],
|
|
@@ -1994,6 +2067,7 @@ var purchases = z18.lazy(() => {
|
|
|
1994
2067
|
id: z18.string(),
|
|
1995
2068
|
startDate: z18.string().nullable(),
|
|
1996
2069
|
endDate: z18.string().nullable(),
|
|
2070
|
+
duration: z18.number().optional().nullable(),
|
|
1997
2071
|
createdDate: z18.string(),
|
|
1998
2072
|
startTime: z18.number().optional().nullable(),
|
|
1999
2073
|
endTime: z18.number().optional().nullable(),
|
|
@@ -2010,6 +2084,7 @@ var purchasesResponse = z18.lazy(() => {
|
|
|
2010
2084
|
id: z18.string(),
|
|
2011
2085
|
startDate: z18.string().nullable(),
|
|
2012
2086
|
endDate: z18.string().nullable(),
|
|
2087
|
+
duration: z18.number().optional().nullable(),
|
|
2013
2088
|
createdDate: z18.string(),
|
|
2014
2089
|
startTime: z18.number().optional().nullable(),
|
|
2015
2090
|
endTime: z18.number().optional().nullable(),
|
|
@@ -2023,6 +2098,7 @@ var purchasesResponse = z18.lazy(() => {
|
|
|
2023
2098
|
id: data["id"],
|
|
2024
2099
|
startDate: data["startDate"],
|
|
2025
2100
|
endDate: data["endDate"],
|
|
2101
|
+
duration: data["duration"],
|
|
2026
2102
|
createdDate: data["createdDate"],
|
|
2027
2103
|
startTime: data["startTime"],
|
|
2028
2104
|
endTime: data["endTime"],
|
|
@@ -2039,6 +2115,7 @@ var purchasesRequest = z18.lazy(() => {
|
|
|
2039
2115
|
id: z18.string(),
|
|
2040
2116
|
startDate: z18.string().nullable(),
|
|
2041
2117
|
endDate: z18.string().nullable(),
|
|
2118
|
+
duration: z18.number().optional().nullable(),
|
|
2042
2119
|
createdDate: z18.string(),
|
|
2043
2120
|
startTime: z18.number().optional().nullable(),
|
|
2044
2121
|
endTime: z18.number().optional().nullable(),
|
|
@@ -2052,6 +2129,7 @@ var purchasesRequest = z18.lazy(() => {
|
|
|
2052
2129
|
id: data["id"],
|
|
2053
2130
|
startDate: data["startDate"],
|
|
2054
2131
|
endDate: data["endDate"],
|
|
2132
|
+
duration: data["duration"],
|
|
2055
2133
|
createdDate: data["createdDate"],
|
|
2056
2134
|
startTime: data["startTime"],
|
|
2057
2135
|
endTime: data["endTime"],
|
|
@@ -2276,8 +2354,9 @@ var topUpEsimRequest = z24.lazy(() => {
|
|
|
2276
2354
|
return z24.object({
|
|
2277
2355
|
iccid: z24.string().min(18).max(22),
|
|
2278
2356
|
dataLimitInGb: z24.number(),
|
|
2279
|
-
startDate: z24.string(),
|
|
2280
|
-
endDate: z24.string(),
|
|
2357
|
+
startDate: z24.string().optional(),
|
|
2358
|
+
endDate: z24.string().optional(),
|
|
2359
|
+
duration: z24.number().optional(),
|
|
2281
2360
|
email: z24.string().optional(),
|
|
2282
2361
|
referenceId: z24.string().optional(),
|
|
2283
2362
|
emailBrand: z24.string().optional(),
|
|
@@ -2289,8 +2368,9 @@ var topUpEsimRequestResponse = z24.lazy(() => {
|
|
|
2289
2368
|
return z24.object({
|
|
2290
2369
|
iccid: z24.string().min(18).max(22),
|
|
2291
2370
|
dataLimitInGB: z24.number(),
|
|
2292
|
-
startDate: z24.string(),
|
|
2293
|
-
endDate: z24.string(),
|
|
2371
|
+
startDate: z24.string().optional(),
|
|
2372
|
+
endDate: z24.string().optional(),
|
|
2373
|
+
duration: z24.number().optional(),
|
|
2294
2374
|
email: z24.string().optional(),
|
|
2295
2375
|
referenceId: z24.string().optional(),
|
|
2296
2376
|
emailBrand: z24.string().optional(),
|
|
@@ -2301,6 +2381,7 @@ var topUpEsimRequestResponse = z24.lazy(() => {
|
|
|
2301
2381
|
dataLimitInGb: data["dataLimitInGB"],
|
|
2302
2382
|
startDate: data["startDate"],
|
|
2303
2383
|
endDate: data["endDate"],
|
|
2384
|
+
duration: data["duration"],
|
|
2304
2385
|
email: data["email"],
|
|
2305
2386
|
referenceId: data["referenceId"],
|
|
2306
2387
|
emailBrand: data["emailBrand"],
|
|
@@ -2312,8 +2393,9 @@ var topUpEsimRequestRequest = z24.lazy(() => {
|
|
|
2312
2393
|
return z24.object({
|
|
2313
2394
|
iccid: z24.string().min(18).max(22),
|
|
2314
2395
|
dataLimitInGb: z24.number(),
|
|
2315
|
-
startDate: z24.string(),
|
|
2316
|
-
endDate: z24.string(),
|
|
2396
|
+
startDate: z24.string().optional(),
|
|
2397
|
+
endDate: z24.string().optional(),
|
|
2398
|
+
duration: z24.number().optional(),
|
|
2317
2399
|
email: z24.string().optional(),
|
|
2318
2400
|
referenceId: z24.string().optional(),
|
|
2319
2401
|
emailBrand: z24.string().optional(),
|
|
@@ -2324,6 +2406,7 @@ var topUpEsimRequestRequest = z24.lazy(() => {
|
|
|
2324
2406
|
dataLimitInGB: data["dataLimitInGb"],
|
|
2325
2407
|
startDate: data["startDate"],
|
|
2326
2408
|
endDate: data["endDate"],
|
|
2409
|
+
duration: data["duration"],
|
|
2327
2410
|
email: data["email"],
|
|
2328
2411
|
referenceId: data["referenceId"],
|
|
2329
2412
|
emailBrand: data["emailBrand"],
|
|
@@ -2550,8 +2633,8 @@ var getPurchaseConsumptionOkResponseRequest = z30.lazy(() => {
|
|
|
2550
2633
|
var PurchasesService = class extends BaseService {
|
|
2551
2634
|
/**
|
|
2552
2635
|
* This endpoint is used to purchase a new eSIM by providing the package details.
|
|
2553
|
-
* @param {RequestConfig} requestConfig -
|
|
2554
|
-
* @returns {Promise<HttpResponse<CreatePurchaseV2OkResponse[]>>} Successful Response
|
|
2636
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2637
|
+
* @returns {Promise<HttpResponse<CreatePurchaseV2OkResponse[]>>} - Successful Response
|
|
2555
2638
|
*/
|
|
2556
2639
|
async createPurchaseV2(body, requestConfig) {
|
|
2557
2640
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/purchases/v2").setRequestSchema(createPurchaseV2RequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -2571,6 +2654,7 @@ var PurchasesService = class extends BaseService {
|
|
|
2571
2654
|
}
|
|
2572
2655
|
/**
|
|
2573
2656
|
* This endpoint can be used to list all the successful purchases made between a given interval.
|
|
2657
|
+
* @param {string} [params.purchaseId] - ID of the purchase
|
|
2574
2658
|
* @param {string} [params.iccid] - ID of the eSIM
|
|
2575
2659
|
* @param {string} [params.afterDate] - Start date of the interval for filtering purchases in the format 'yyyy-MM-dd'
|
|
2576
2660
|
* @param {string} [params.beforeDate] - End date of the interval for filtering purchases in the format 'yyyy-MM-dd'
|
|
@@ -2580,8 +2664,8 @@ var PurchasesService = class extends BaseService {
|
|
|
2580
2664
|
* @param {number} [params.limit] - Maximum number of purchases to be returned in the response. The value must be greater than 0 and less than or equal to 100. If not provided, the default value is 20
|
|
2581
2665
|
* @param {number} [params.after] - Epoch value representing the start of the time interval for filtering purchases
|
|
2582
2666
|
* @param {number} [params.before] - Epoch value representing the end of the time interval for filtering purchases
|
|
2583
|
-
* @param {RequestConfig} requestConfig -
|
|
2584
|
-
* @returns {Promise<HttpResponse<ListPurchasesOkResponse>>} Successful Response
|
|
2667
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2668
|
+
* @returns {Promise<HttpResponse<ListPurchasesOkResponse>>} - Successful Response
|
|
2585
2669
|
*/
|
|
2586
2670
|
async listPurchases(params, requestConfig) {
|
|
2587
2671
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/purchases").setRequestSchema(z31.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -2597,6 +2681,9 @@ var PurchasesService = class extends BaseService {
|
|
|
2597
2681
|
contentType: "json" /* Json */,
|
|
2598
2682
|
status: 401
|
|
2599
2683
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addQueryParam({
|
|
2684
|
+
key: "purchaseId",
|
|
2685
|
+
value: params == null ? void 0 : params.purchaseId
|
|
2686
|
+
}).addQueryParam({
|
|
2600
2687
|
key: "iccid",
|
|
2601
2688
|
value: params == null ? void 0 : params.iccid
|
|
2602
2689
|
}).addQueryParam({
|
|
@@ -2628,8 +2715,8 @@ var PurchasesService = class extends BaseService {
|
|
|
2628
2715
|
}
|
|
2629
2716
|
/**
|
|
2630
2717
|
* This endpoint is used to purchase a new eSIM by providing the package details.
|
|
2631
|
-
* @param {RequestConfig} requestConfig -
|
|
2632
|
-
* @returns {Promise<HttpResponse<CreatePurchaseOkResponse>>} Successful Response
|
|
2718
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2719
|
+
* @returns {Promise<HttpResponse<CreatePurchaseOkResponse>>} - Successful Response
|
|
2633
2720
|
*/
|
|
2634
2721
|
async createPurchase(body, requestConfig) {
|
|
2635
2722
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/purchases").setRequestSchema(createPurchaseRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -2648,9 +2735,9 @@ var PurchasesService = class extends BaseService {
|
|
|
2648
2735
|
return this.client.call(request);
|
|
2649
2736
|
}
|
|
2650
2737
|
/**
|
|
2651
|
-
* 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
|
|
2652
|
-
* @param {RequestConfig} requestConfig -
|
|
2653
|
-
* @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
|
|
2738
|
+
* 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 endpoint, which returns the `isTopUpAllowed` flag.
|
|
2739
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2740
|
+
* @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} - Successful Response
|
|
2654
2741
|
*/
|
|
2655
2742
|
async topUpEsim(body, requestConfig) {
|
|
2656
2743
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/purchases/topup").setRequestSchema(topUpEsimRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -2677,8 +2764,8 @@ var PurchasesService = class extends BaseService {
|
|
|
2677
2764
|
|
|
2678
2765
|
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.
|
|
2679
2766
|
|
|
2680
|
-
* @param {RequestConfig} requestConfig -
|
|
2681
|
-
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
|
2767
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2768
|
+
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} - Successful Response
|
|
2682
2769
|
*/
|
|
2683
2770
|
async editPurchase(body, requestConfig) {
|
|
2684
2771
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/purchases/edit").setRequestSchema(editPurchaseRequestRequest).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -2699,8 +2786,8 @@ var PurchasesService = class extends BaseService {
|
|
|
2699
2786
|
/**
|
|
2700
2787
|
* 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.
|
|
2701
2788
|
* @param {string} purchaseId - ID of the purchase
|
|
2702
|
-
* @param {RequestConfig} requestConfig -
|
|
2703
|
-
* @returns {Promise<HttpResponse<GetPurchaseConsumptionOkResponse>>} Successful Response
|
|
2789
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2790
|
+
* @returns {Promise<HttpResponse<GetPurchaseConsumptionOkResponse>>} - Successful Response
|
|
2704
2791
|
*/
|
|
2705
2792
|
async getPurchaseConsumption(purchaseId, requestConfig) {
|
|
2706
2793
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/purchases/{purchaseId}/consumption").setRequestSchema(z31.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -2738,6 +2825,7 @@ var getEsimOkResponseEsim = z32.lazy(() => {
|
|
|
2738
2825
|
activationCode: z32.string().min(1e3).max(8e3),
|
|
2739
2826
|
manualActivationCode: z32.string(),
|
|
2740
2827
|
status: z32.string(),
|
|
2828
|
+
connectivityStatus: z32.string(),
|
|
2741
2829
|
isTopUpAllowed: z32.boolean()
|
|
2742
2830
|
});
|
|
2743
2831
|
});
|
|
@@ -2748,6 +2836,7 @@ var getEsimOkResponseEsimResponse = z32.lazy(() => {
|
|
|
2748
2836
|
activationCode: z32.string().min(1e3).max(8e3),
|
|
2749
2837
|
manualActivationCode: z32.string(),
|
|
2750
2838
|
status: z32.string(),
|
|
2839
|
+
connectivityStatus: z32.string(),
|
|
2751
2840
|
isTopUpAllowed: z32.boolean()
|
|
2752
2841
|
}).transform((data) => ({
|
|
2753
2842
|
iccid: data["iccid"],
|
|
@@ -2755,6 +2844,7 @@ var getEsimOkResponseEsimResponse = z32.lazy(() => {
|
|
|
2755
2844
|
activationCode: data["activationCode"],
|
|
2756
2845
|
manualActivationCode: data["manualActivationCode"],
|
|
2757
2846
|
status: data["status"],
|
|
2847
|
+
connectivityStatus: data["connectivityStatus"],
|
|
2758
2848
|
isTopUpAllowed: data["isTopUpAllowed"]
|
|
2759
2849
|
}));
|
|
2760
2850
|
});
|
|
@@ -2765,6 +2855,7 @@ var getEsimOkResponseEsimRequest = z32.lazy(() => {
|
|
|
2765
2855
|
activationCode: z32.string().min(1e3).max(8e3),
|
|
2766
2856
|
manualActivationCode: z32.string(),
|
|
2767
2857
|
status: z32.string(),
|
|
2858
|
+
connectivityStatus: z32.string(),
|
|
2768
2859
|
isTopUpAllowed: z32.boolean()
|
|
2769
2860
|
}).transform((data) => ({
|
|
2770
2861
|
iccid: data["iccid"],
|
|
@@ -2772,6 +2863,7 @@ var getEsimOkResponseEsimRequest = z32.lazy(() => {
|
|
|
2772
2863
|
activationCode: data["activationCode"],
|
|
2773
2864
|
manualActivationCode: data["manualActivationCode"],
|
|
2774
2865
|
status: data["status"],
|
|
2866
|
+
connectivityStatus: data["connectivityStatus"],
|
|
2775
2867
|
isTopUpAllowed: data["isTopUpAllowed"]
|
|
2776
2868
|
}));
|
|
2777
2869
|
});
|
|
@@ -2947,9 +3039,9 @@ var getEsimHistoryOkResponseRequest = z38.lazy(() => {
|
|
|
2947
3039
|
var ESimService = class extends BaseService {
|
|
2948
3040
|
/**
|
|
2949
3041
|
* Get eSIM
|
|
2950
|
-
* @param {string} iccid - ID of the eSIM
|
|
2951
|
-
* @param {RequestConfig} requestConfig -
|
|
2952
|
-
* @returns {Promise<HttpResponse<GetEsimOkResponse>>} Successful Response
|
|
3042
|
+
* @param {string} params.iccid - ID of the eSIM
|
|
3043
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3044
|
+
* @returns {Promise<HttpResponse<GetEsimOkResponse>>} - Successful Response
|
|
2953
3045
|
*/
|
|
2954
3046
|
async getEsim(params, requestConfig) {
|
|
2955
3047
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/esim").setRequestSchema(z39.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -2973,8 +3065,8 @@ var ESimService = class extends BaseService {
|
|
|
2973
3065
|
/**
|
|
2974
3066
|
* Get eSIM Device
|
|
2975
3067
|
* @param {string} iccid - ID of the eSIM
|
|
2976
|
-
* @param {RequestConfig} requestConfig -
|
|
2977
|
-
* @returns {Promise<HttpResponse<GetEsimDeviceOkResponse>>} Successful Response
|
|
3068
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3069
|
+
* @returns {Promise<HttpResponse<GetEsimDeviceOkResponse>>} - Successful Response
|
|
2978
3070
|
*/
|
|
2979
3071
|
async getEsimDevice(iccid, requestConfig) {
|
|
2980
3072
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/esim/{iccid}/device").setRequestSchema(z39.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -2998,8 +3090,8 @@ var ESimService = class extends BaseService {
|
|
|
2998
3090
|
/**
|
|
2999
3091
|
* Get eSIM History
|
|
3000
3092
|
* @param {string} iccid - ID of the eSIM
|
|
3001
|
-
* @param {RequestConfig} requestConfig -
|
|
3002
|
-
* @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} Successful Response
|
|
3093
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3094
|
+
* @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} - Successful Response
|
|
3003
3095
|
*/
|
|
3004
3096
|
async getEsimHistory(iccid, requestConfig) {
|
|
3005
3097
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/esim/{iccid}/history").setRequestSchema(z39.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
|
@@ -3051,8 +3143,8 @@ var tokenOkResponseRequest = z40.lazy(() => {
|
|
|
3051
3143
|
var IFrameService = class extends BaseService {
|
|
3052
3144
|
/**
|
|
3053
3145
|
* Generate a new token to be used in the iFrame
|
|
3054
|
-
* @param {RequestConfig} requestConfig -
|
|
3055
|
-
* @returns {Promise<HttpResponse<TokenOkResponse>>} Successful Response
|
|
3146
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3147
|
+
* @returns {Promise<HttpResponse<TokenOkResponse>>} - Successful Response
|
|
3056
3148
|
*/
|
|
3057
3149
|
async token(requestConfig) {
|
|
3058
3150
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "https://api.celitech.net/v1" /* DEFAULT */).setConfig(this.config).setMethod("POST").setPath("/iframe/token").setRequestSchema(z41.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "celitech-sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.61",
|
|
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",
|