celitech-sdk 1.3.42 → 1.3.44
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 +184 -70
- package/dist/index.js +203 -33
- package/dist/index.mjs +203 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -295,10 +295,10 @@ var HookHandler = class {
|
|
295
295
|
const error = request.errors.find((error2) => {
|
296
296
|
return error2.contentType === contentType && error2.status === statusCode;
|
297
297
|
});
|
298
|
-
if (error
|
298
|
+
if (error) {
|
299
299
|
const decodedBody2 = new TextDecoder().decode(response.raw);
|
300
300
|
const json = JSON.parse(decodedBody2);
|
301
|
-
|
301
|
+
new error.error((json == null ? void 0 : json.message) || "", json).throw();
|
302
302
|
}
|
303
303
|
const decodedBody = new TextDecoder().decode(response.raw);
|
304
304
|
throw new HttpError(
|
@@ -809,6 +809,9 @@ var OAuthHandler = class {
|
|
809
809
|
this.addAccessTokenHeader(request, request.config.accessToken);
|
810
810
|
return this.next.handle(request);
|
811
811
|
}
|
812
|
+
if (!request.config.clientId || !request.config.clientSecret) {
|
813
|
+
return this.next.handle(request);
|
814
|
+
}
|
812
815
|
await this.manageToken(request);
|
813
816
|
return this.next.handle(request);
|
814
817
|
}
|
@@ -1447,6 +1450,9 @@ var OAuthTokenManager = class {
|
|
1447
1450
|
if ((_a = this.token) == null ? void 0 : _a.hasAllScopes(scopes)) {
|
1448
1451
|
return this.token;
|
1449
1452
|
}
|
1453
|
+
if (!config.clientId || !config.clientSecret) {
|
1454
|
+
throw new Error("OAuthError: clientId and clientSecret are required for token management.");
|
1455
|
+
}
|
1450
1456
|
const updatedScopes = /* @__PURE__ */ new Set([...scopes, ...((_b = this.token) == null ? void 0 : _b.scopes) || []]);
|
1451
1457
|
const oAuth = new OAuthService(
|
1452
1458
|
{
|
@@ -1538,6 +1544,20 @@ var listDestinationsOkResponseRequest = import_zod7.z.lazy(() => {
|
|
1538
1544
|
|
1539
1545
|
// src/services/destinations/models/__.ts
|
1540
1546
|
var import_zod8 = require("zod");
|
1547
|
+
|
1548
|
+
// src/http/errors/throwable-error.ts
|
1549
|
+
var ThrowableError = class extends Error {
|
1550
|
+
constructor(message, response) {
|
1551
|
+
super(message);
|
1552
|
+
this.message = message;
|
1553
|
+
this.response = response;
|
1554
|
+
}
|
1555
|
+
throw() {
|
1556
|
+
throw this;
|
1557
|
+
}
|
1558
|
+
};
|
1559
|
+
|
1560
|
+
// src/services/destinations/models/__.ts
|
1541
1561
|
var _response = import_zod8.z.lazy(() => {
|
1542
1562
|
return import_zod8.z.object({
|
1543
1563
|
message: import_zod8.z.string().optional()
|
@@ -1545,12 +1565,17 @@ var _response = import_zod8.z.lazy(() => {
|
|
1545
1565
|
message: data["message"]
|
1546
1566
|
}));
|
1547
1567
|
});
|
1548
|
-
var __ = class extends
|
1568
|
+
var __ = class extends ThrowableError {
|
1549
1569
|
constructor(message, response) {
|
1550
1570
|
super(message);
|
1571
|
+
this.message = message;
|
1572
|
+
this.response = response;
|
1551
1573
|
const parsedResponse = _response.parse(response);
|
1552
1574
|
this.message = parsedResponse.message || "";
|
1553
1575
|
}
|
1576
|
+
throw() {
|
1577
|
+
throw new __(this.message, this.response);
|
1578
|
+
}
|
1554
1579
|
};
|
1555
1580
|
|
1556
1581
|
// src/services/destinations/models/_1.ts
|
@@ -1562,12 +1587,17 @@ var _1Response = import_zod9.z.lazy(() => {
|
|
1562
1587
|
message: data["message"]
|
1563
1588
|
}));
|
1564
1589
|
});
|
1565
|
-
var _1 = class extends
|
1590
|
+
var _1 = class extends ThrowableError {
|
1566
1591
|
constructor(message, response) {
|
1567
1592
|
super(message);
|
1593
|
+
this.message = message;
|
1594
|
+
this.response = response;
|
1568
1595
|
const parsedResponse = _1Response.parse(response);
|
1569
1596
|
this.message = parsedResponse.message || "";
|
1570
1597
|
}
|
1598
|
+
throw() {
|
1599
|
+
throw new _1(this.message, this.response);
|
1600
|
+
}
|
1571
1601
|
};
|
1572
1602
|
|
1573
1603
|
// src/services/destinations/destinations-service.ts
|
@@ -1683,12 +1713,17 @@ var _2Response = import_zod13.z.lazy(() => {
|
|
1683
1713
|
message: data["message"]
|
1684
1714
|
}));
|
1685
1715
|
});
|
1686
|
-
var _2 = class extends
|
1716
|
+
var _2 = class extends ThrowableError {
|
1687
1717
|
constructor(message, response) {
|
1688
1718
|
super(message);
|
1719
|
+
this.message = message;
|
1720
|
+
this.response = response;
|
1689
1721
|
const parsedResponse = _2Response.parse(response);
|
1690
1722
|
this.message = parsedResponse.message || "";
|
1691
1723
|
}
|
1724
|
+
throw() {
|
1725
|
+
throw new _2(this.message, this.response);
|
1726
|
+
}
|
1692
1727
|
};
|
1693
1728
|
|
1694
1729
|
// src/services/packages/models/_3.ts
|
@@ -1700,12 +1735,17 @@ var _3Response = import_zod14.z.lazy(() => {
|
|
1700
1735
|
message: data["message"]
|
1701
1736
|
}));
|
1702
1737
|
});
|
1703
|
-
var _3 = class extends
|
1738
|
+
var _3 = class extends ThrowableError {
|
1704
1739
|
constructor(message, response) {
|
1705
1740
|
super(message);
|
1741
|
+
this.message = message;
|
1742
|
+
this.response = response;
|
1706
1743
|
const parsedResponse = _3Response.parse(response);
|
1707
1744
|
this.message = parsedResponse.message || "";
|
1708
1745
|
}
|
1746
|
+
throw() {
|
1747
|
+
throw new _3(this.message, this.response);
|
1748
|
+
}
|
1709
1749
|
};
|
1710
1750
|
|
1711
1751
|
// src/services/packages/packages-service.ts
|
@@ -1779,7 +1819,8 @@ var createPurchaseV2Request = import_zod16.z.lazy(() => {
|
|
1779
1819
|
quantity: import_zod16.z.number().gte(1).lte(5),
|
1780
1820
|
email: import_zod16.z.string().optional(),
|
1781
1821
|
referenceId: import_zod16.z.string().optional(),
|
1782
|
-
networkBrand: import_zod16.z.string().optional()
|
1822
|
+
networkBrand: import_zod16.z.string().optional(),
|
1823
|
+
emailBrand: import_zod16.z.string().optional()
|
1783
1824
|
});
|
1784
1825
|
});
|
1785
1826
|
var createPurchaseV2RequestResponse = import_zod16.z.lazy(() => {
|
@@ -1791,7 +1832,8 @@ var createPurchaseV2RequestResponse = import_zod16.z.lazy(() => {
|
|
1791
1832
|
quantity: import_zod16.z.number().gte(1).lte(5),
|
1792
1833
|
email: import_zod16.z.string().optional(),
|
1793
1834
|
referenceId: import_zod16.z.string().optional(),
|
1794
|
-
networkBrand: import_zod16.z.string().optional()
|
1835
|
+
networkBrand: import_zod16.z.string().optional(),
|
1836
|
+
emailBrand: import_zod16.z.string().optional()
|
1795
1837
|
}).transform((data) => ({
|
1796
1838
|
destination: data["destination"],
|
1797
1839
|
dataLimitInGb: data["dataLimitInGB"],
|
@@ -1800,7 +1842,8 @@ var createPurchaseV2RequestResponse = import_zod16.z.lazy(() => {
|
|
1800
1842
|
quantity: data["quantity"],
|
1801
1843
|
email: data["email"],
|
1802
1844
|
referenceId: data["referenceId"],
|
1803
|
-
networkBrand: data["networkBrand"]
|
1845
|
+
networkBrand: data["networkBrand"],
|
1846
|
+
emailBrand: data["emailBrand"]
|
1804
1847
|
}));
|
1805
1848
|
});
|
1806
1849
|
var createPurchaseV2RequestRequest = import_zod16.z.lazy(() => {
|
@@ -1812,7 +1855,8 @@ var createPurchaseV2RequestRequest = import_zod16.z.lazy(() => {
|
|
1812
1855
|
quantity: import_zod16.z.number().gte(1).lte(5),
|
1813
1856
|
email: import_zod16.z.string().optional(),
|
1814
1857
|
referenceId: import_zod16.z.string().optional(),
|
1815
|
-
networkBrand: import_zod16.z.string().optional()
|
1858
|
+
networkBrand: import_zod16.z.string().optional(),
|
1859
|
+
emailBrand: import_zod16.z.string().optional()
|
1816
1860
|
}).transform((data) => ({
|
1817
1861
|
destination: data["destination"],
|
1818
1862
|
dataLimitInGB: data["dataLimitInGb"],
|
@@ -1821,7 +1865,8 @@ var createPurchaseV2RequestRequest = import_zod16.z.lazy(() => {
|
|
1821
1865
|
quantity: data["quantity"],
|
1822
1866
|
email: data["email"],
|
1823
1867
|
referenceId: data["referenceId"],
|
1824
|
-
networkBrand: data["networkBrand"]
|
1868
|
+
networkBrand: data["networkBrand"],
|
1869
|
+
emailBrand: data["emailBrand"]
|
1825
1870
|
}));
|
1826
1871
|
});
|
1827
1872
|
|
@@ -1927,12 +1972,17 @@ var _4Response = import_zod20.z.lazy(() => {
|
|
1927
1972
|
message: data["message"]
|
1928
1973
|
}));
|
1929
1974
|
});
|
1930
|
-
var _4 = class extends
|
1975
|
+
var _4 = class extends ThrowableError {
|
1931
1976
|
constructor(message, response) {
|
1932
1977
|
super(message);
|
1978
|
+
this.message = message;
|
1979
|
+
this.response = response;
|
1933
1980
|
const parsedResponse = _4Response.parse(response);
|
1934
1981
|
this.message = parsedResponse.message || "";
|
1935
1982
|
}
|
1983
|
+
throw() {
|
1984
|
+
throw new _4(this.message, this.response);
|
1985
|
+
}
|
1936
1986
|
};
|
1937
1987
|
|
1938
1988
|
// src/services/purchases/models/_5.ts
|
@@ -1944,12 +1994,17 @@ var _5Response = import_zod21.z.lazy(() => {
|
|
1944
1994
|
message: data["message"]
|
1945
1995
|
}));
|
1946
1996
|
});
|
1947
|
-
var _5 = class extends
|
1997
|
+
var _5 = class extends ThrowableError {
|
1948
1998
|
constructor(message, response) {
|
1949
1999
|
super(message);
|
2000
|
+
this.message = message;
|
2001
|
+
this.response = response;
|
1950
2002
|
const parsedResponse = _5Response.parse(response);
|
1951
2003
|
this.message = parsedResponse.message || "";
|
1952
2004
|
}
|
2005
|
+
throw() {
|
2006
|
+
throw new _5(this.message, this.response);
|
2007
|
+
}
|
1953
2008
|
};
|
1954
2009
|
|
1955
2010
|
// src/services/purchases/models/list-purchases-ok-response.ts
|
@@ -2035,6 +2090,7 @@ var purchases = import_zod24.z.lazy(() => {
|
|
2035
2090
|
package: package_.optional(),
|
2036
2091
|
esim: purchasesEsim.optional(),
|
2037
2092
|
source: import_zod24.z.string().optional(),
|
2093
|
+
purchaseType: import_zod24.z.string().optional(),
|
2038
2094
|
referenceId: import_zod24.z.string().optional()
|
2039
2095
|
});
|
2040
2096
|
});
|
@@ -2050,6 +2106,7 @@ var purchasesResponse = import_zod24.z.lazy(() => {
|
|
2050
2106
|
package: packageResponse.optional(),
|
2051
2107
|
esim: purchasesEsimResponse.optional(),
|
2052
2108
|
source: import_zod24.z.string().optional(),
|
2109
|
+
purchaseType: import_zod24.z.string().optional(),
|
2053
2110
|
referenceId: import_zod24.z.string().optional()
|
2054
2111
|
}).transform((data) => ({
|
2055
2112
|
id: data["id"],
|
@@ -2062,6 +2119,7 @@ var purchasesResponse = import_zod24.z.lazy(() => {
|
|
2062
2119
|
package: data["package"],
|
2063
2120
|
esim: data["esim"],
|
2064
2121
|
source: data["source"],
|
2122
|
+
purchaseType: data["purchaseType"],
|
2065
2123
|
referenceId: data["referenceId"]
|
2066
2124
|
}));
|
2067
2125
|
});
|
@@ -2077,6 +2135,7 @@ var purchasesRequest = import_zod24.z.lazy(() => {
|
|
2077
2135
|
package: packageRequest.optional(),
|
2078
2136
|
esim: purchasesEsimRequest.optional(),
|
2079
2137
|
source: import_zod24.z.string().optional(),
|
2138
|
+
purchaseType: import_zod24.z.string().optional(),
|
2080
2139
|
referenceId: import_zod24.z.string().optional()
|
2081
2140
|
}).transform((data) => ({
|
2082
2141
|
id: data["id"],
|
@@ -2089,6 +2148,7 @@ var purchasesRequest = import_zod24.z.lazy(() => {
|
|
2089
2148
|
package: data["package"],
|
2090
2149
|
esim: data["esim"],
|
2091
2150
|
source: data["source"],
|
2151
|
+
purchaseType: data["purchaseType"],
|
2092
2152
|
referenceId: data["referenceId"]
|
2093
2153
|
}));
|
2094
2154
|
});
|
@@ -2128,12 +2188,17 @@ var _6Response = import_zod26.z.lazy(() => {
|
|
2128
2188
|
message: data["message"]
|
2129
2189
|
}));
|
2130
2190
|
});
|
2131
|
-
var _6 = class extends
|
2191
|
+
var _6 = class extends ThrowableError {
|
2132
2192
|
constructor(message, response) {
|
2133
2193
|
super(message);
|
2194
|
+
this.message = message;
|
2195
|
+
this.response = response;
|
2134
2196
|
const parsedResponse = _6Response.parse(response);
|
2135
2197
|
this.message = parsedResponse.message || "";
|
2136
2198
|
}
|
2199
|
+
throw() {
|
2200
|
+
throw new _6(this.message, this.response);
|
2201
|
+
}
|
2137
2202
|
};
|
2138
2203
|
|
2139
2204
|
// src/services/purchases/models/_7.ts
|
@@ -2145,12 +2210,17 @@ var _7Response = import_zod27.z.lazy(() => {
|
|
2145
2210
|
message: data["message"]
|
2146
2211
|
}));
|
2147
2212
|
});
|
2148
|
-
var _7 = class extends
|
2213
|
+
var _7 = class extends ThrowableError {
|
2149
2214
|
constructor(message, response) {
|
2150
2215
|
super(message);
|
2216
|
+
this.message = message;
|
2217
|
+
this.response = response;
|
2151
2218
|
const parsedResponse = _7Response.parse(response);
|
2152
2219
|
this.message = parsedResponse.message || "";
|
2153
2220
|
}
|
2221
|
+
throw() {
|
2222
|
+
throw new _7(this.message, this.response);
|
2223
|
+
}
|
2154
2224
|
};
|
2155
2225
|
|
2156
2226
|
// src/services/purchases/models/create-purchase-request.ts
|
@@ -2164,6 +2234,7 @@ var createPurchaseRequest = import_zod28.z.lazy(() => {
|
|
2164
2234
|
email: import_zod28.z.string().optional(),
|
2165
2235
|
referenceId: import_zod28.z.string().optional(),
|
2166
2236
|
networkBrand: import_zod28.z.string().optional(),
|
2237
|
+
emailBrand: import_zod28.z.string().optional(),
|
2167
2238
|
startTime: import_zod28.z.number().optional(),
|
2168
2239
|
endTime: import_zod28.z.number().optional()
|
2169
2240
|
});
|
@@ -2177,6 +2248,7 @@ var createPurchaseRequestResponse = import_zod28.z.lazy(() => {
|
|
2177
2248
|
email: import_zod28.z.string().optional(),
|
2178
2249
|
referenceId: import_zod28.z.string().optional(),
|
2179
2250
|
networkBrand: import_zod28.z.string().optional(),
|
2251
|
+
emailBrand: import_zod28.z.string().optional(),
|
2180
2252
|
startTime: import_zod28.z.number().optional(),
|
2181
2253
|
endTime: import_zod28.z.number().optional()
|
2182
2254
|
}).transform((data) => ({
|
@@ -2187,6 +2259,7 @@ var createPurchaseRequestResponse = import_zod28.z.lazy(() => {
|
|
2187
2259
|
email: data["email"],
|
2188
2260
|
referenceId: data["referenceId"],
|
2189
2261
|
networkBrand: data["networkBrand"],
|
2262
|
+
emailBrand: data["emailBrand"],
|
2190
2263
|
startTime: data["startTime"],
|
2191
2264
|
endTime: data["endTime"]
|
2192
2265
|
}));
|
@@ -2200,6 +2273,7 @@ var createPurchaseRequestRequest = import_zod28.z.lazy(() => {
|
|
2200
2273
|
email: import_zod28.z.string().optional(),
|
2201
2274
|
referenceId: import_zod28.z.string().optional(),
|
2202
2275
|
networkBrand: import_zod28.z.string().optional(),
|
2276
|
+
emailBrand: import_zod28.z.string().optional(),
|
2203
2277
|
startTime: import_zod28.z.number().optional(),
|
2204
2278
|
endTime: import_zod28.z.number().optional()
|
2205
2279
|
}).transform((data) => ({
|
@@ -2210,6 +2284,7 @@ var createPurchaseRequestRequest = import_zod28.z.lazy(() => {
|
|
2210
2284
|
email: data["email"],
|
2211
2285
|
referenceId: data["referenceId"],
|
2212
2286
|
networkBrand: data["networkBrand"],
|
2287
|
+
emailBrand: data["emailBrand"],
|
2213
2288
|
startTime: data["startTime"],
|
2214
2289
|
endTime: data["endTime"]
|
2215
2290
|
}));
|
@@ -2337,12 +2412,17 @@ var _8Response = import_zod32.z.lazy(() => {
|
|
2337
2412
|
message: data["message"]
|
2338
2413
|
}));
|
2339
2414
|
});
|
2340
|
-
var _8 = class extends
|
2415
|
+
var _8 = class extends ThrowableError {
|
2341
2416
|
constructor(message, response) {
|
2342
2417
|
super(message);
|
2418
|
+
this.message = message;
|
2419
|
+
this.response = response;
|
2343
2420
|
const parsedResponse = _8Response.parse(response);
|
2344
2421
|
this.message = parsedResponse.message || "";
|
2345
2422
|
}
|
2423
|
+
throw() {
|
2424
|
+
throw new _8(this.message, this.response);
|
2425
|
+
}
|
2346
2426
|
};
|
2347
2427
|
|
2348
2428
|
// src/services/purchases/models/_9.ts
|
@@ -2354,12 +2434,17 @@ var _9Response = import_zod33.z.lazy(() => {
|
|
2354
2434
|
message: data["message"]
|
2355
2435
|
}));
|
2356
2436
|
});
|
2357
|
-
var _9 = class extends
|
2437
|
+
var _9 = class extends ThrowableError {
|
2358
2438
|
constructor(message, response) {
|
2359
2439
|
super(message);
|
2440
|
+
this.message = message;
|
2441
|
+
this.response = response;
|
2360
2442
|
const parsedResponse = _9Response.parse(response);
|
2361
2443
|
this.message = parsedResponse.message || "";
|
2362
2444
|
}
|
2445
|
+
throw() {
|
2446
|
+
throw new _9(this.message, this.response);
|
2447
|
+
}
|
2363
2448
|
};
|
2364
2449
|
|
2365
2450
|
// src/services/purchases/models/top-up-esim-request.ts
|
@@ -2372,6 +2457,7 @@ var topUpEsimRequest = import_zod34.z.lazy(() => {
|
|
2372
2457
|
endDate: import_zod34.z.string(),
|
2373
2458
|
email: import_zod34.z.string().optional(),
|
2374
2459
|
referenceId: import_zod34.z.string().optional(),
|
2460
|
+
emailBrand: import_zod34.z.string().optional(),
|
2375
2461
|
startTime: import_zod34.z.number().optional(),
|
2376
2462
|
endTime: import_zod34.z.number().optional()
|
2377
2463
|
});
|
@@ -2384,6 +2470,7 @@ var topUpEsimRequestResponse = import_zod34.z.lazy(() => {
|
|
2384
2470
|
endDate: import_zod34.z.string(),
|
2385
2471
|
email: import_zod34.z.string().optional(),
|
2386
2472
|
referenceId: import_zod34.z.string().optional(),
|
2473
|
+
emailBrand: import_zod34.z.string().optional(),
|
2387
2474
|
startTime: import_zod34.z.number().optional(),
|
2388
2475
|
endTime: import_zod34.z.number().optional()
|
2389
2476
|
}).transform((data) => ({
|
@@ -2393,6 +2480,7 @@ var topUpEsimRequestResponse = import_zod34.z.lazy(() => {
|
|
2393
2480
|
endDate: data["endDate"],
|
2394
2481
|
email: data["email"],
|
2395
2482
|
referenceId: data["referenceId"],
|
2483
|
+
emailBrand: data["emailBrand"],
|
2396
2484
|
startTime: data["startTime"],
|
2397
2485
|
endTime: data["endTime"]
|
2398
2486
|
}));
|
@@ -2405,6 +2493,7 @@ var topUpEsimRequestRequest = import_zod34.z.lazy(() => {
|
|
2405
2493
|
endDate: import_zod34.z.string(),
|
2406
2494
|
email: import_zod34.z.string().optional(),
|
2407
2495
|
referenceId: import_zod34.z.string().optional(),
|
2496
|
+
emailBrand: import_zod34.z.string().optional(),
|
2408
2497
|
startTime: import_zod34.z.number().optional(),
|
2409
2498
|
endTime: import_zod34.z.number().optional()
|
2410
2499
|
}).transform((data) => ({
|
@@ -2414,6 +2503,7 @@ var topUpEsimRequestRequest = import_zod34.z.lazy(() => {
|
|
2414
2503
|
endDate: data["endDate"],
|
2415
2504
|
email: data["email"],
|
2416
2505
|
referenceId: data["referenceId"],
|
2506
|
+
emailBrand: data["emailBrand"],
|
2417
2507
|
startTime: data["startTime"],
|
2418
2508
|
endTime: data["endTime"]
|
2419
2509
|
}));
|
@@ -2531,12 +2621,17 @@ var _10Response = import_zod38.z.lazy(() => {
|
|
2531
2621
|
message: data["message"]
|
2532
2622
|
}));
|
2533
2623
|
});
|
2534
|
-
var _10 = class extends
|
2624
|
+
var _10 = class extends ThrowableError {
|
2535
2625
|
constructor(message, response) {
|
2536
2626
|
super(message);
|
2627
|
+
this.message = message;
|
2628
|
+
this.response = response;
|
2537
2629
|
const parsedResponse = _10Response.parse(response);
|
2538
2630
|
this.message = parsedResponse.message || "";
|
2539
2631
|
}
|
2632
|
+
throw() {
|
2633
|
+
throw new _10(this.message, this.response);
|
2634
|
+
}
|
2540
2635
|
};
|
2541
2636
|
|
2542
2637
|
// src/services/purchases/models/_11.ts
|
@@ -2548,12 +2643,17 @@ var _11Response = import_zod39.z.lazy(() => {
|
|
2548
2643
|
message: data["message"]
|
2549
2644
|
}));
|
2550
2645
|
});
|
2551
|
-
var _11 = class extends
|
2646
|
+
var _11 = class extends ThrowableError {
|
2552
2647
|
constructor(message, response) {
|
2553
2648
|
super(message);
|
2649
|
+
this.message = message;
|
2650
|
+
this.response = response;
|
2554
2651
|
const parsedResponse = _11Response.parse(response);
|
2555
2652
|
this.message = parsedResponse.message || "";
|
2556
2653
|
}
|
2654
|
+
throw() {
|
2655
|
+
throw new _11(this.message, this.response);
|
2656
|
+
}
|
2557
2657
|
};
|
2558
2658
|
|
2559
2659
|
// src/services/purchases/models/edit-purchase-request.ts
|
@@ -2649,12 +2749,17 @@ var _12Response = import_zod42.z.lazy(() => {
|
|
2649
2749
|
message: data["message"]
|
2650
2750
|
}));
|
2651
2751
|
});
|
2652
|
-
var _12 = class extends
|
2752
|
+
var _12 = class extends ThrowableError {
|
2653
2753
|
constructor(message, response) {
|
2654
2754
|
super(message);
|
2755
|
+
this.message = message;
|
2756
|
+
this.response = response;
|
2655
2757
|
const parsedResponse = _12Response.parse(response);
|
2656
2758
|
this.message = parsedResponse.message || "";
|
2657
2759
|
}
|
2760
|
+
throw() {
|
2761
|
+
throw new _12(this.message, this.response);
|
2762
|
+
}
|
2658
2763
|
};
|
2659
2764
|
|
2660
2765
|
// src/services/purchases/models/_13.ts
|
@@ -2666,12 +2771,17 @@ var _13Response = import_zod43.z.lazy(() => {
|
|
2666
2771
|
message: data["message"]
|
2667
2772
|
}));
|
2668
2773
|
});
|
2669
|
-
var _13 = class extends
|
2774
|
+
var _13 = class extends ThrowableError {
|
2670
2775
|
constructor(message, response) {
|
2671
2776
|
super(message);
|
2777
|
+
this.message = message;
|
2778
|
+
this.response = response;
|
2672
2779
|
const parsedResponse = _13Response.parse(response);
|
2673
2780
|
this.message = parsedResponse.message || "";
|
2674
2781
|
}
|
2782
|
+
throw() {
|
2783
|
+
throw new _13(this.message, this.response);
|
2784
|
+
}
|
2675
2785
|
};
|
2676
2786
|
|
2677
2787
|
// src/services/purchases/models/get-purchase-consumption-ok-response.ts
|
@@ -2710,12 +2820,17 @@ var _14Response = import_zod45.z.lazy(() => {
|
|
2710
2820
|
message: data["message"]
|
2711
2821
|
}));
|
2712
2822
|
});
|
2713
|
-
var _14 = class extends
|
2823
|
+
var _14 = class extends ThrowableError {
|
2714
2824
|
constructor(message, response) {
|
2715
2825
|
super(message);
|
2826
|
+
this.message = message;
|
2827
|
+
this.response = response;
|
2716
2828
|
const parsedResponse = _14Response.parse(response);
|
2717
2829
|
this.message = parsedResponse.message || "";
|
2718
2830
|
}
|
2831
|
+
throw() {
|
2832
|
+
throw new _14(this.message, this.response);
|
2833
|
+
}
|
2719
2834
|
};
|
2720
2835
|
|
2721
2836
|
// src/services/purchases/models/_15.ts
|
@@ -2727,12 +2842,17 @@ var _15Response = import_zod46.z.lazy(() => {
|
|
2727
2842
|
message: data["message"]
|
2728
2843
|
}));
|
2729
2844
|
});
|
2730
|
-
var _15 = class extends
|
2845
|
+
var _15 = class extends ThrowableError {
|
2731
2846
|
constructor(message, response) {
|
2732
2847
|
super(message);
|
2848
|
+
this.message = message;
|
2849
|
+
this.response = response;
|
2733
2850
|
const parsedResponse = _15Response.parse(response);
|
2734
2851
|
this.message = parsedResponse.message || "";
|
2735
2852
|
}
|
2853
|
+
throw() {
|
2854
|
+
throw new _15(this.message, this.response);
|
2855
|
+
}
|
2736
2856
|
};
|
2737
2857
|
|
2738
2858
|
// src/services/purchases/purchases-service.ts
|
@@ -2974,12 +3094,17 @@ var _16Response = import_zod50.z.lazy(() => {
|
|
2974
3094
|
message: data["message"]
|
2975
3095
|
}));
|
2976
3096
|
});
|
2977
|
-
var _16 = class extends
|
3097
|
+
var _16 = class extends ThrowableError {
|
2978
3098
|
constructor(message, response) {
|
2979
3099
|
super(message);
|
3100
|
+
this.message = message;
|
3101
|
+
this.response = response;
|
2980
3102
|
const parsedResponse = _16Response.parse(response);
|
2981
3103
|
this.message = parsedResponse.message || "";
|
2982
3104
|
}
|
3105
|
+
throw() {
|
3106
|
+
throw new _16(this.message, this.response);
|
3107
|
+
}
|
2983
3108
|
};
|
2984
3109
|
|
2985
3110
|
// src/services/e-sim/models/_17.ts
|
@@ -2991,12 +3116,17 @@ var _17Response = import_zod51.z.lazy(() => {
|
|
2991
3116
|
message: data["message"]
|
2992
3117
|
}));
|
2993
3118
|
});
|
2994
|
-
var _17 = class extends
|
3119
|
+
var _17 = class extends ThrowableError {
|
2995
3120
|
constructor(message, response) {
|
2996
3121
|
super(message);
|
3122
|
+
this.message = message;
|
3123
|
+
this.response = response;
|
2997
3124
|
const parsedResponse = _17Response.parse(response);
|
2998
3125
|
this.message = parsedResponse.message || "";
|
2999
3126
|
}
|
3127
|
+
throw() {
|
3128
|
+
throw new _17(this.message, this.response);
|
3129
|
+
}
|
3000
3130
|
};
|
3001
3131
|
|
3002
3132
|
// src/services/e-sim/models/get-esim-device-ok-response.ts
|
@@ -3069,12 +3199,17 @@ var _18Response = import_zod54.z.lazy(() => {
|
|
3069
3199
|
message: data["message"]
|
3070
3200
|
}));
|
3071
3201
|
});
|
3072
|
-
var _18 = class extends
|
3202
|
+
var _18 = class extends ThrowableError {
|
3073
3203
|
constructor(message, response) {
|
3074
3204
|
super(message);
|
3205
|
+
this.message = message;
|
3206
|
+
this.response = response;
|
3075
3207
|
const parsedResponse = _18Response.parse(response);
|
3076
3208
|
this.message = parsedResponse.message || "";
|
3077
3209
|
}
|
3210
|
+
throw() {
|
3211
|
+
throw new _18(this.message, this.response);
|
3212
|
+
}
|
3078
3213
|
};
|
3079
3214
|
|
3080
3215
|
// src/services/e-sim/models/_19.ts
|
@@ -3086,12 +3221,17 @@ var _19Response = import_zod55.z.lazy(() => {
|
|
3086
3221
|
message: data["message"]
|
3087
3222
|
}));
|
3088
3223
|
});
|
3089
|
-
var _19 = class extends
|
3224
|
+
var _19 = class extends ThrowableError {
|
3090
3225
|
constructor(message, response) {
|
3091
3226
|
super(message);
|
3227
|
+
this.message = message;
|
3228
|
+
this.response = response;
|
3092
3229
|
const parsedResponse = _19Response.parse(response);
|
3093
3230
|
this.message = parsedResponse.message || "";
|
3094
3231
|
}
|
3232
|
+
throw() {
|
3233
|
+
throw new _19(this.message, this.response);
|
3234
|
+
}
|
3095
3235
|
};
|
3096
3236
|
|
3097
3237
|
// src/services/e-sim/models/get-esim-history-ok-response.ts
|
@@ -3188,12 +3328,17 @@ var _20Response = import_zod59.z.lazy(() => {
|
|
3188
3328
|
message: data["message"]
|
3189
3329
|
}));
|
3190
3330
|
});
|
3191
|
-
var _20 = class extends
|
3331
|
+
var _20 = class extends ThrowableError {
|
3192
3332
|
constructor(message, response) {
|
3193
3333
|
super(message);
|
3334
|
+
this.message = message;
|
3335
|
+
this.response = response;
|
3194
3336
|
const parsedResponse = _20Response.parse(response);
|
3195
3337
|
this.message = parsedResponse.message || "";
|
3196
3338
|
}
|
3339
|
+
throw() {
|
3340
|
+
throw new _20(this.message, this.response);
|
3341
|
+
}
|
3197
3342
|
};
|
3198
3343
|
|
3199
3344
|
// src/services/e-sim/models/_21.ts
|
@@ -3205,12 +3350,17 @@ var _21Response = import_zod60.z.lazy(() => {
|
|
3205
3350
|
message: data["message"]
|
3206
3351
|
}));
|
3207
3352
|
});
|
3208
|
-
var _21 = class extends
|
3353
|
+
var _21 = class extends ThrowableError {
|
3209
3354
|
constructor(message, response) {
|
3210
3355
|
super(message);
|
3356
|
+
this.message = message;
|
3357
|
+
this.response = response;
|
3211
3358
|
const parsedResponse = _21Response.parse(response);
|
3212
3359
|
this.message = parsedResponse.message || "";
|
3213
3360
|
}
|
3361
|
+
throw() {
|
3362
|
+
throw new _21(this.message, this.response);
|
3363
|
+
}
|
3214
3364
|
};
|
3215
3365
|
|
3216
3366
|
// src/services/e-sim/models/get-esim-mac-ok-response.ts
|
@@ -3278,12 +3428,17 @@ var _22Response = import_zod63.z.lazy(() => {
|
|
3278
3428
|
message: data["message"]
|
3279
3429
|
}));
|
3280
3430
|
});
|
3281
|
-
var _22 = class extends
|
3431
|
+
var _22 = class extends ThrowableError {
|
3282
3432
|
constructor(message, response) {
|
3283
3433
|
super(message);
|
3434
|
+
this.message = message;
|
3435
|
+
this.response = response;
|
3284
3436
|
const parsedResponse = _22Response.parse(response);
|
3285
3437
|
this.message = parsedResponse.message || "";
|
3286
3438
|
}
|
3439
|
+
throw() {
|
3440
|
+
throw new _22(this.message, this.response);
|
3441
|
+
}
|
3287
3442
|
};
|
3288
3443
|
|
3289
3444
|
// src/services/e-sim/models/_23.ts
|
@@ -3295,12 +3450,17 @@ var _23Response = import_zod64.z.lazy(() => {
|
|
3295
3450
|
message: data["message"]
|
3296
3451
|
}));
|
3297
3452
|
});
|
3298
|
-
var _23 = class extends
|
3453
|
+
var _23 = class extends ThrowableError {
|
3299
3454
|
constructor(message, response) {
|
3300
3455
|
super(message);
|
3456
|
+
this.message = message;
|
3457
|
+
this.response = response;
|
3301
3458
|
const parsedResponse = _23Response.parse(response);
|
3302
3459
|
this.message = parsedResponse.message || "";
|
3303
3460
|
}
|
3461
|
+
throw() {
|
3462
|
+
throw new _23(this.message, this.response);
|
3463
|
+
}
|
3304
3464
|
};
|
3305
3465
|
|
3306
3466
|
// src/services/e-sim/e-sim-service.ts
|
@@ -3441,12 +3601,17 @@ var _24Response = import_zod67.z.lazy(() => {
|
|
3441
3601
|
message: data["message"]
|
3442
3602
|
}));
|
3443
3603
|
});
|
3444
|
-
var _24 = class extends
|
3604
|
+
var _24 = class extends ThrowableError {
|
3445
3605
|
constructor(message, response) {
|
3446
3606
|
super(message);
|
3607
|
+
this.message = message;
|
3608
|
+
this.response = response;
|
3447
3609
|
const parsedResponse = _24Response.parse(response);
|
3448
3610
|
this.message = parsedResponse.message || "";
|
3449
3611
|
}
|
3612
|
+
throw() {
|
3613
|
+
throw new _24(this.message, this.response);
|
3614
|
+
}
|
3450
3615
|
};
|
3451
3616
|
|
3452
3617
|
// src/services/i-frame/models/_25.ts
|
@@ -3458,12 +3623,17 @@ var _25Response = import_zod68.z.lazy(() => {
|
|
3458
3623
|
message: data["message"]
|
3459
3624
|
}));
|
3460
3625
|
});
|
3461
|
-
var _25 = class extends
|
3626
|
+
var _25 = class extends ThrowableError {
|
3462
3627
|
constructor(message, response) {
|
3463
3628
|
super(message);
|
3629
|
+
this.message = message;
|
3630
|
+
this.response = response;
|
3464
3631
|
const parsedResponse = _25Response.parse(response);
|
3465
3632
|
this.message = parsedResponse.message || "";
|
3466
3633
|
}
|
3634
|
+
throw() {
|
3635
|
+
throw new _25(this.message, this.response);
|
3636
|
+
}
|
3467
3637
|
};
|
3468
3638
|
|
3469
3639
|
// src/services/i-frame/i-frame-service.ts
|