celitech-sdk 1.3.56 → 1.3.58
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 +13 -30
- package/dist/index.d.ts +691 -912
- package/dist/index.js +619 -1216
- package/dist/index.mjs +619 -1216
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1521,18 +1521,18 @@ var import_zod7 = require("zod");
|
|
1521
1521
|
var import_zod6 = require("zod");
|
1522
1522
|
var destinations = import_zod6.z.lazy(() => {
|
1523
1523
|
return import_zod6.z.object({
|
1524
|
-
name: import_zod6.z.string()
|
1525
|
-
destination: import_zod6.z.string()
|
1526
|
-
destinationIso2: import_zod6.z.string()
|
1527
|
-
supportedCountries: import_zod6.z.array(import_zod6.z.string())
|
1524
|
+
name: import_zod6.z.string(),
|
1525
|
+
destination: import_zod6.z.string(),
|
1526
|
+
destinationIso2: import_zod6.z.string(),
|
1527
|
+
supportedCountries: import_zod6.z.array(import_zod6.z.string())
|
1528
1528
|
});
|
1529
1529
|
});
|
1530
1530
|
var destinationsResponse = import_zod6.z.lazy(() => {
|
1531
1531
|
return import_zod6.z.object({
|
1532
|
-
name: import_zod6.z.string()
|
1533
|
-
destination: import_zod6.z.string()
|
1534
|
-
destinationISO2: import_zod6.z.string()
|
1535
|
-
supportedCountries: import_zod6.z.array(import_zod6.z.string())
|
1532
|
+
name: import_zod6.z.string(),
|
1533
|
+
destination: import_zod6.z.string(),
|
1534
|
+
destinationISO2: import_zod6.z.string(),
|
1535
|
+
supportedCountries: import_zod6.z.array(import_zod6.z.string())
|
1536
1536
|
}).transform((data) => ({
|
1537
1537
|
name: data["name"],
|
1538
1538
|
destination: data["destination"],
|
@@ -1542,10 +1542,10 @@ var destinationsResponse = import_zod6.z.lazy(() => {
|
|
1542
1542
|
});
|
1543
1543
|
var destinationsRequest = import_zod6.z.lazy(() => {
|
1544
1544
|
return import_zod6.z.object({
|
1545
|
-
name: import_zod6.z.string()
|
1546
|
-
destination: import_zod6.z.string()
|
1547
|
-
destinationIso2: import_zod6.z.string()
|
1548
|
-
supportedCountries: import_zod6.z.array(import_zod6.z.string())
|
1545
|
+
name: import_zod6.z.string(),
|
1546
|
+
destination: import_zod6.z.string(),
|
1547
|
+
destinationIso2: import_zod6.z.string(),
|
1548
|
+
supportedCountries: import_zod6.z.array(import_zod6.z.string())
|
1549
1549
|
}).transform((data) => ({
|
1550
1550
|
name: data["name"],
|
1551
1551
|
destination: data["destination"],
|
@@ -1557,25 +1557,25 @@ var destinationsRequest = import_zod6.z.lazy(() => {
|
|
1557
1557
|
// src/services/destinations/models/list-destinations-ok-response.ts
|
1558
1558
|
var listDestinationsOkResponse = import_zod7.z.lazy(() => {
|
1559
1559
|
return import_zod7.z.object({
|
1560
|
-
destinations: import_zod7.z.array(destinations)
|
1560
|
+
destinations: import_zod7.z.array(destinations)
|
1561
1561
|
});
|
1562
1562
|
});
|
1563
1563
|
var listDestinationsOkResponseResponse = import_zod7.z.lazy(() => {
|
1564
1564
|
return import_zod7.z.object({
|
1565
|
-
destinations: import_zod7.z.array(destinationsResponse)
|
1565
|
+
destinations: import_zod7.z.array(destinationsResponse)
|
1566
1566
|
}).transform((data) => ({
|
1567
1567
|
destinations: data["destinations"]
|
1568
1568
|
}));
|
1569
1569
|
});
|
1570
1570
|
var listDestinationsOkResponseRequest = import_zod7.z.lazy(() => {
|
1571
1571
|
return import_zod7.z.object({
|
1572
|
-
destinations: import_zod7.z.array(destinationsRequest)
|
1572
|
+
destinations: import_zod7.z.array(destinationsRequest)
|
1573
1573
|
}).transform((data) => ({
|
1574
1574
|
destinations: data["destinations"]
|
1575
1575
|
}));
|
1576
1576
|
});
|
1577
1577
|
|
1578
|
-
// src/services/
|
1578
|
+
// src/services/common/bad-request.ts
|
1579
1579
|
var import_zod8 = require("zod");
|
1580
1580
|
|
1581
1581
|
// src/http/errors/throwable-error.ts
|
@@ -1590,46 +1590,46 @@ var ThrowableError = class extends Error {
|
|
1590
1590
|
}
|
1591
1591
|
};
|
1592
1592
|
|
1593
|
-
// src/services/
|
1594
|
-
var
|
1593
|
+
// src/services/common/bad-request.ts
|
1594
|
+
var badRequestResponse = import_zod8.z.lazy(() => {
|
1595
1595
|
return import_zod8.z.object({
|
1596
1596
|
message: import_zod8.z.string().optional()
|
1597
1597
|
}).transform((data) => ({
|
1598
1598
|
message: data["message"]
|
1599
1599
|
}));
|
1600
1600
|
});
|
1601
|
-
var
|
1601
|
+
var BadRequest = class extends ThrowableError {
|
1602
1602
|
constructor(message, response) {
|
1603
1603
|
super(message);
|
1604
1604
|
this.message = message;
|
1605
1605
|
this.response = response;
|
1606
|
-
const parsedResponse =
|
1606
|
+
const parsedResponse = badRequestResponse.parse(response);
|
1607
1607
|
this.message = parsedResponse.message || "";
|
1608
1608
|
}
|
1609
1609
|
throw() {
|
1610
|
-
throw new
|
1610
|
+
throw new BadRequest(this.message, this.response);
|
1611
1611
|
}
|
1612
1612
|
};
|
1613
1613
|
|
1614
|
-
// src/services/
|
1614
|
+
// src/services/common/unauthorized.ts
|
1615
1615
|
var import_zod9 = require("zod");
|
1616
|
-
var
|
1616
|
+
var unauthorizedResponse = import_zod9.z.lazy(() => {
|
1617
1617
|
return import_zod9.z.object({
|
1618
1618
|
message: import_zod9.z.string().optional()
|
1619
1619
|
}).transform((data) => ({
|
1620
1620
|
message: data["message"]
|
1621
1621
|
}));
|
1622
1622
|
});
|
1623
|
-
var
|
1623
|
+
var Unauthorized = class extends ThrowableError {
|
1624
1624
|
constructor(message, response) {
|
1625
1625
|
super(message);
|
1626
1626
|
this.message = message;
|
1627
1627
|
this.response = response;
|
1628
|
-
const parsedResponse =
|
1628
|
+
const parsedResponse = unauthorizedResponse.parse(response);
|
1629
1629
|
this.message = parsedResponse.message || "";
|
1630
1630
|
}
|
1631
1631
|
throw() {
|
1632
|
-
throw new
|
1632
|
+
throw new Unauthorized(this.message, this.response);
|
1633
1633
|
}
|
1634
1634
|
};
|
1635
1635
|
|
@@ -1646,11 +1646,11 @@ var DestinationsService = class extends BaseService {
|
|
1646
1646
|
contentType: "json" /* Json */,
|
1647
1647
|
status: 200
|
1648
1648
|
}).addError({
|
1649
|
-
error:
|
1649
|
+
error: BadRequest,
|
1650
1650
|
contentType: "json" /* Json */,
|
1651
1651
|
status: 400
|
1652
1652
|
}).addError({
|
1653
|
-
error:
|
1653
|
+
error: Unauthorized,
|
1654
1654
|
contentType: "json" /* Json */,
|
1655
1655
|
status: 401
|
1656
1656
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).build();
|
@@ -1659,7 +1659,7 @@ var DestinationsService = class extends BaseService {
|
|
1659
1659
|
};
|
1660
1660
|
|
1661
1661
|
// src/services/packages/packages-service.ts
|
1662
|
-
var
|
1662
|
+
var import_zod13 = require("zod");
|
1663
1663
|
|
1664
1664
|
// src/services/packages/models/list-packages-ok-response.ts
|
1665
1665
|
var import_zod12 = require("zod");
|
@@ -1668,24 +1668,24 @@ var import_zod12 = require("zod");
|
|
1668
1668
|
var import_zod11 = require("zod");
|
1669
1669
|
var packages = import_zod11.z.lazy(() => {
|
1670
1670
|
return import_zod11.z.object({
|
1671
|
-
id: import_zod11.z.string()
|
1672
|
-
destination: import_zod11.z.string()
|
1673
|
-
destinationIso2: import_zod11.z.string()
|
1674
|
-
dataLimitInBytes: import_zod11.z.number()
|
1675
|
-
minDays: import_zod11.z.number()
|
1676
|
-
maxDays: import_zod11.z.number()
|
1677
|
-
priceInCents: import_zod11.z.number()
|
1671
|
+
id: import_zod11.z.string(),
|
1672
|
+
destination: import_zod11.z.string(),
|
1673
|
+
destinationIso2: import_zod11.z.string(),
|
1674
|
+
dataLimitInBytes: import_zod11.z.number(),
|
1675
|
+
minDays: import_zod11.z.number(),
|
1676
|
+
maxDays: import_zod11.z.number(),
|
1677
|
+
priceInCents: import_zod11.z.number()
|
1678
1678
|
});
|
1679
1679
|
});
|
1680
1680
|
var packagesResponse = import_zod11.z.lazy(() => {
|
1681
1681
|
return import_zod11.z.object({
|
1682
|
-
id: import_zod11.z.string()
|
1683
|
-
destination: import_zod11.z.string()
|
1684
|
-
destinationISO2: import_zod11.z.string()
|
1685
|
-
dataLimitInBytes: import_zod11.z.number()
|
1686
|
-
minDays: import_zod11.z.number()
|
1687
|
-
maxDays: import_zod11.z.number()
|
1688
|
-
priceInCents: import_zod11.z.number()
|
1682
|
+
id: import_zod11.z.string(),
|
1683
|
+
destination: import_zod11.z.string(),
|
1684
|
+
destinationISO2: import_zod11.z.string(),
|
1685
|
+
dataLimitInBytes: import_zod11.z.number(),
|
1686
|
+
minDays: import_zod11.z.number(),
|
1687
|
+
maxDays: import_zod11.z.number(),
|
1688
|
+
priceInCents: import_zod11.z.number()
|
1689
1689
|
}).transform((data) => ({
|
1690
1690
|
id: data["id"],
|
1691
1691
|
destination: data["destination"],
|
@@ -1698,13 +1698,13 @@ var packagesResponse = import_zod11.z.lazy(() => {
|
|
1698
1698
|
});
|
1699
1699
|
var packagesRequest = import_zod11.z.lazy(() => {
|
1700
1700
|
return import_zod11.z.object({
|
1701
|
-
id: import_zod11.z.string()
|
1702
|
-
destination: import_zod11.z.string()
|
1703
|
-
destinationIso2: import_zod11.z.string()
|
1704
|
-
dataLimitInBytes: import_zod11.z.number()
|
1705
|
-
minDays: import_zod11.z.number()
|
1706
|
-
maxDays: import_zod11.z.number()
|
1707
|
-
priceInCents: import_zod11.z.number()
|
1701
|
+
id: import_zod11.z.string(),
|
1702
|
+
destination: import_zod11.z.string(),
|
1703
|
+
destinationIso2: import_zod11.z.string(),
|
1704
|
+
dataLimitInBytes: import_zod11.z.number(),
|
1705
|
+
minDays: import_zod11.z.number(),
|
1706
|
+
maxDays: import_zod11.z.number(),
|
1707
|
+
priceInCents: import_zod11.z.number()
|
1708
1708
|
}).transform((data) => ({
|
1709
1709
|
id: data["id"],
|
1710
1710
|
destination: data["destination"],
|
@@ -1719,14 +1719,14 @@ var packagesRequest = import_zod11.z.lazy(() => {
|
|
1719
1719
|
// src/services/packages/models/list-packages-ok-response.ts
|
1720
1720
|
var listPackagesOkResponse = import_zod12.z.lazy(() => {
|
1721
1721
|
return import_zod12.z.object({
|
1722
|
-
packages: import_zod12.z.array(packages)
|
1723
|
-
afterCursor: import_zod12.z.string().
|
1722
|
+
packages: import_zod12.z.array(packages),
|
1723
|
+
afterCursor: import_zod12.z.string().nullable()
|
1724
1724
|
});
|
1725
1725
|
});
|
1726
1726
|
var listPackagesOkResponseResponse = import_zod12.z.lazy(() => {
|
1727
1727
|
return import_zod12.z.object({
|
1728
|
-
packages: import_zod12.z.array(packagesResponse)
|
1729
|
-
afterCursor: import_zod12.z.string().
|
1728
|
+
packages: import_zod12.z.array(packagesResponse),
|
1729
|
+
afterCursor: import_zod12.z.string().nullable()
|
1730
1730
|
}).transform((data) => ({
|
1731
1731
|
packages: data["packages"],
|
1732
1732
|
afterCursor: data["afterCursor"]
|
@@ -1734,58 +1734,14 @@ var listPackagesOkResponseResponse = import_zod12.z.lazy(() => {
|
|
1734
1734
|
});
|
1735
1735
|
var listPackagesOkResponseRequest = import_zod12.z.lazy(() => {
|
1736
1736
|
return import_zod12.z.object({
|
1737
|
-
packages: import_zod12.z.array(packagesRequest)
|
1738
|
-
afterCursor: import_zod12.z.string().
|
1737
|
+
packages: import_zod12.z.array(packagesRequest),
|
1738
|
+
afterCursor: import_zod12.z.string().nullable()
|
1739
1739
|
}).transform((data) => ({
|
1740
1740
|
packages: data["packages"],
|
1741
1741
|
afterCursor: data["afterCursor"]
|
1742
1742
|
}));
|
1743
1743
|
});
|
1744
1744
|
|
1745
|
-
// src/services/packages/models/_2.ts
|
1746
|
-
var import_zod13 = require("zod");
|
1747
|
-
var _2Response = import_zod13.z.lazy(() => {
|
1748
|
-
return import_zod13.z.object({
|
1749
|
-
message: import_zod13.z.string().optional()
|
1750
|
-
}).transform((data) => ({
|
1751
|
-
message: data["message"]
|
1752
|
-
}));
|
1753
|
-
});
|
1754
|
-
var _2 = class extends ThrowableError {
|
1755
|
-
constructor(message, response) {
|
1756
|
-
super(message);
|
1757
|
-
this.message = message;
|
1758
|
-
this.response = response;
|
1759
|
-
const parsedResponse = _2Response.parse(response);
|
1760
|
-
this.message = parsedResponse.message || "";
|
1761
|
-
}
|
1762
|
-
throw() {
|
1763
|
-
throw new _2(this.message, this.response);
|
1764
|
-
}
|
1765
|
-
};
|
1766
|
-
|
1767
|
-
// src/services/packages/models/_3.ts
|
1768
|
-
var import_zod14 = require("zod");
|
1769
|
-
var _3Response = import_zod14.z.lazy(() => {
|
1770
|
-
return import_zod14.z.object({
|
1771
|
-
message: import_zod14.z.string().optional()
|
1772
|
-
}).transform((data) => ({
|
1773
|
-
message: data["message"]
|
1774
|
-
}));
|
1775
|
-
});
|
1776
|
-
var _3 = class extends ThrowableError {
|
1777
|
-
constructor(message, response) {
|
1778
|
-
super(message);
|
1779
|
-
this.message = message;
|
1780
|
-
this.response = response;
|
1781
|
-
const parsedResponse = _3Response.parse(response);
|
1782
|
-
this.message = parsedResponse.message || "";
|
1783
|
-
}
|
1784
|
-
throw() {
|
1785
|
-
throw new _3(this.message, this.response);
|
1786
|
-
}
|
1787
|
-
};
|
1788
|
-
|
1789
1745
|
// src/services/packages/packages-service.ts
|
1790
1746
|
var PackagesService = class extends BaseService {
|
1791
1747
|
/**
|
@@ -1802,16 +1758,16 @@ var PackagesService = class extends BaseService {
|
|
1802
1758
|
* @returns {Promise<HttpResponse<ListPackagesOkResponse>>} Successful Response
|
1803
1759
|
*/
|
1804
1760
|
async listPackages(params, requestConfig) {
|
1805
|
-
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(
|
1761
|
+
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(import_zod13.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
1806
1762
|
schema: listPackagesOkResponseResponse,
|
1807
1763
|
contentType: "json" /* Json */,
|
1808
1764
|
status: 200
|
1809
1765
|
}).addError({
|
1810
|
-
error:
|
1766
|
+
error: BadRequest,
|
1811
1767
|
contentType: "json" /* Json */,
|
1812
1768
|
status: 400
|
1813
1769
|
}).addError({
|
1814
|
-
error:
|
1770
|
+
error: Unauthorized,
|
1815
1771
|
contentType: "json" /* Json */,
|
1816
1772
|
status: 401
|
1817
1773
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addQueryParam({
|
@@ -1844,34 +1800,34 @@ var PackagesService = class extends BaseService {
|
|
1844
1800
|
};
|
1845
1801
|
|
1846
1802
|
// src/services/purchases/purchases-service.ts
|
1847
|
-
var
|
1803
|
+
var import_zod33 = require("zod");
|
1848
1804
|
|
1849
1805
|
// src/services/purchases/models/create-purchase-v2-request.ts
|
1850
|
-
var
|
1851
|
-
var createPurchaseV2Request =
|
1852
|
-
return
|
1853
|
-
destination:
|
1854
|
-
dataLimitInGb:
|
1855
|
-
startDate:
|
1856
|
-
endDate:
|
1857
|
-
quantity:
|
1858
|
-
email:
|
1859
|
-
referenceId:
|
1860
|
-
networkBrand:
|
1861
|
-
emailBrand:
|
1806
|
+
var import_zod14 = require("zod");
|
1807
|
+
var createPurchaseV2Request = import_zod14.z.lazy(() => {
|
1808
|
+
return import_zod14.z.object({
|
1809
|
+
destination: import_zod14.z.string(),
|
1810
|
+
dataLimitInGb: import_zod14.z.number(),
|
1811
|
+
startDate: import_zod14.z.string(),
|
1812
|
+
endDate: import_zod14.z.string(),
|
1813
|
+
quantity: import_zod14.z.number().gte(1).lte(5),
|
1814
|
+
email: import_zod14.z.string().optional(),
|
1815
|
+
referenceId: import_zod14.z.string().optional(),
|
1816
|
+
networkBrand: import_zod14.z.string().optional(),
|
1817
|
+
emailBrand: import_zod14.z.string().optional()
|
1862
1818
|
});
|
1863
1819
|
});
|
1864
|
-
var createPurchaseV2RequestResponse =
|
1865
|
-
return
|
1866
|
-
destination:
|
1867
|
-
dataLimitInGB:
|
1868
|
-
startDate:
|
1869
|
-
endDate:
|
1870
|
-
quantity:
|
1871
|
-
email:
|
1872
|
-
referenceId:
|
1873
|
-
networkBrand:
|
1874
|
-
emailBrand:
|
1820
|
+
var createPurchaseV2RequestResponse = import_zod14.z.lazy(() => {
|
1821
|
+
return import_zod14.z.object({
|
1822
|
+
destination: import_zod14.z.string(),
|
1823
|
+
dataLimitInGB: import_zod14.z.number(),
|
1824
|
+
startDate: import_zod14.z.string(),
|
1825
|
+
endDate: import_zod14.z.string(),
|
1826
|
+
quantity: import_zod14.z.number().gte(1).lte(5),
|
1827
|
+
email: import_zod14.z.string().optional(),
|
1828
|
+
referenceId: import_zod14.z.string().optional(),
|
1829
|
+
networkBrand: import_zod14.z.string().optional(),
|
1830
|
+
emailBrand: import_zod14.z.string().optional()
|
1875
1831
|
}).transform((data) => ({
|
1876
1832
|
destination: data["destination"],
|
1877
1833
|
dataLimitInGb: data["dataLimitInGB"],
|
@@ -1884,17 +1840,17 @@ var createPurchaseV2RequestResponse = import_zod16.z.lazy(() => {
|
|
1884
1840
|
emailBrand: data["emailBrand"]
|
1885
1841
|
}));
|
1886
1842
|
});
|
1887
|
-
var createPurchaseV2RequestRequest =
|
1888
|
-
return
|
1889
|
-
destination:
|
1890
|
-
dataLimitInGb:
|
1891
|
-
startDate:
|
1892
|
-
endDate:
|
1893
|
-
quantity:
|
1894
|
-
email:
|
1895
|
-
referenceId:
|
1896
|
-
networkBrand:
|
1897
|
-
emailBrand:
|
1843
|
+
var createPurchaseV2RequestRequest = import_zod14.z.lazy(() => {
|
1844
|
+
return import_zod14.z.object({
|
1845
|
+
destination: import_zod14.z.string(),
|
1846
|
+
dataLimitInGb: import_zod14.z.number(),
|
1847
|
+
startDate: import_zod14.z.string(),
|
1848
|
+
endDate: import_zod14.z.string(),
|
1849
|
+
quantity: import_zod14.z.number().gte(1).lte(5),
|
1850
|
+
email: import_zod14.z.string().optional(),
|
1851
|
+
referenceId: import_zod14.z.string().optional(),
|
1852
|
+
networkBrand: import_zod14.z.string().optional(),
|
1853
|
+
emailBrand: import_zod14.z.string().optional()
|
1898
1854
|
}).transform((data) => ({
|
1899
1855
|
destination: data["destination"],
|
1900
1856
|
dataLimitInGB: data["dataLimitInGb"],
|
@@ -1909,33 +1865,33 @@ var createPurchaseV2RequestRequest = import_zod16.z.lazy(() => {
|
|
1909
1865
|
});
|
1910
1866
|
|
1911
1867
|
// src/services/purchases/models/create-purchase-v2-ok-response.ts
|
1912
|
-
var
|
1868
|
+
var import_zod17 = require("zod");
|
1913
1869
|
|
1914
1870
|
// src/services/purchases/models/create-purchase-v2-ok-response-purchase.ts
|
1915
|
-
var
|
1916
|
-
var createPurchaseV2OkResponsePurchase =
|
1917
|
-
return
|
1918
|
-
id:
|
1919
|
-
packageId:
|
1920
|
-
createdDate:
|
1871
|
+
var import_zod15 = require("zod");
|
1872
|
+
var createPurchaseV2OkResponsePurchase = import_zod15.z.lazy(() => {
|
1873
|
+
return import_zod15.z.object({
|
1874
|
+
id: import_zod15.z.string(),
|
1875
|
+
packageId: import_zod15.z.string(),
|
1876
|
+
createdDate: import_zod15.z.string()
|
1921
1877
|
});
|
1922
1878
|
});
|
1923
|
-
var createPurchaseV2OkResponsePurchaseResponse =
|
1924
|
-
return
|
1925
|
-
id:
|
1926
|
-
packageId:
|
1927
|
-
createdDate:
|
1879
|
+
var createPurchaseV2OkResponsePurchaseResponse = import_zod15.z.lazy(() => {
|
1880
|
+
return import_zod15.z.object({
|
1881
|
+
id: import_zod15.z.string(),
|
1882
|
+
packageId: import_zod15.z.string(),
|
1883
|
+
createdDate: import_zod15.z.string()
|
1928
1884
|
}).transform((data) => ({
|
1929
1885
|
id: data["id"],
|
1930
1886
|
packageId: data["packageId"],
|
1931
1887
|
createdDate: data["createdDate"]
|
1932
1888
|
}));
|
1933
1889
|
});
|
1934
|
-
var createPurchaseV2OkResponsePurchaseRequest =
|
1935
|
-
return
|
1936
|
-
id:
|
1937
|
-
packageId:
|
1938
|
-
createdDate:
|
1890
|
+
var createPurchaseV2OkResponsePurchaseRequest = import_zod15.z.lazy(() => {
|
1891
|
+
return import_zod15.z.object({
|
1892
|
+
id: import_zod15.z.string(),
|
1893
|
+
packageId: import_zod15.z.string(),
|
1894
|
+
createdDate: import_zod15.z.string()
|
1939
1895
|
}).transform((data) => ({
|
1940
1896
|
id: data["id"],
|
1941
1897
|
packageId: data["packageId"],
|
@@ -1944,30 +1900,30 @@ var createPurchaseV2OkResponsePurchaseRequest = import_zod17.z.lazy(() => {
|
|
1944
1900
|
});
|
1945
1901
|
|
1946
1902
|
// src/services/purchases/models/create-purchase-v2-ok-response-profile.ts
|
1947
|
-
var
|
1948
|
-
var createPurchaseV2OkResponseProfile =
|
1949
|
-
return
|
1950
|
-
iccid:
|
1951
|
-
activationCode:
|
1952
|
-
manualActivationCode:
|
1903
|
+
var import_zod16 = require("zod");
|
1904
|
+
var createPurchaseV2OkResponseProfile = import_zod16.z.lazy(() => {
|
1905
|
+
return import_zod16.z.object({
|
1906
|
+
iccid: import_zod16.z.string().min(18).max(22),
|
1907
|
+
activationCode: import_zod16.z.string().min(1e3).max(8e3),
|
1908
|
+
manualActivationCode: import_zod16.z.string()
|
1953
1909
|
});
|
1954
1910
|
});
|
1955
|
-
var createPurchaseV2OkResponseProfileResponse =
|
1956
|
-
return
|
1957
|
-
iccid:
|
1958
|
-
activationCode:
|
1959
|
-
manualActivationCode:
|
1911
|
+
var createPurchaseV2OkResponseProfileResponse = import_zod16.z.lazy(() => {
|
1912
|
+
return import_zod16.z.object({
|
1913
|
+
iccid: import_zod16.z.string().min(18).max(22),
|
1914
|
+
activationCode: import_zod16.z.string().min(1e3).max(8e3),
|
1915
|
+
manualActivationCode: import_zod16.z.string()
|
1960
1916
|
}).transform((data) => ({
|
1961
1917
|
iccid: data["iccid"],
|
1962
1918
|
activationCode: data["activationCode"],
|
1963
1919
|
manualActivationCode: data["manualActivationCode"]
|
1964
1920
|
}));
|
1965
1921
|
});
|
1966
|
-
var createPurchaseV2OkResponseProfileRequest =
|
1967
|
-
return
|
1968
|
-
iccid:
|
1969
|
-
activationCode:
|
1970
|
-
manualActivationCode:
|
1922
|
+
var createPurchaseV2OkResponseProfileRequest = import_zod16.z.lazy(() => {
|
1923
|
+
return import_zod16.z.object({
|
1924
|
+
iccid: import_zod16.z.string().min(18).max(22),
|
1925
|
+
activationCode: import_zod16.z.string().min(1e3).max(8e3),
|
1926
|
+
manualActivationCode: import_zod16.z.string()
|
1971
1927
|
}).transform((data) => ({
|
1972
1928
|
iccid: data["iccid"],
|
1973
1929
|
activationCode: data["activationCode"],
|
@@ -1976,101 +1932,57 @@ var createPurchaseV2OkResponseProfileRequest = import_zod18.z.lazy(() => {
|
|
1976
1932
|
});
|
1977
1933
|
|
1978
1934
|
// src/services/purchases/models/create-purchase-v2-ok-response.ts
|
1979
|
-
var createPurchaseV2OkResponse =
|
1980
|
-
return
|
1981
|
-
purchase: createPurchaseV2OkResponsePurchase
|
1982
|
-
profile: createPurchaseV2OkResponseProfile
|
1935
|
+
var createPurchaseV2OkResponse = import_zod17.z.lazy(() => {
|
1936
|
+
return import_zod17.z.object({
|
1937
|
+
purchase: createPurchaseV2OkResponsePurchase,
|
1938
|
+
profile: createPurchaseV2OkResponseProfile
|
1983
1939
|
});
|
1984
1940
|
});
|
1985
|
-
var createPurchaseV2OkResponseResponse =
|
1986
|
-
return
|
1987
|
-
purchase: createPurchaseV2OkResponsePurchaseResponse
|
1988
|
-
profile: createPurchaseV2OkResponseProfileResponse
|
1941
|
+
var createPurchaseV2OkResponseResponse = import_zod17.z.lazy(() => {
|
1942
|
+
return import_zod17.z.object({
|
1943
|
+
purchase: createPurchaseV2OkResponsePurchaseResponse,
|
1944
|
+
profile: createPurchaseV2OkResponseProfileResponse
|
1989
1945
|
}).transform((data) => ({
|
1990
1946
|
purchase: data["purchase"],
|
1991
1947
|
profile: data["profile"]
|
1992
1948
|
}));
|
1993
1949
|
});
|
1994
|
-
var createPurchaseV2OkResponseRequest =
|
1995
|
-
return
|
1996
|
-
purchase: createPurchaseV2OkResponsePurchaseRequest
|
1997
|
-
profile: createPurchaseV2OkResponseProfileRequest
|
1950
|
+
var createPurchaseV2OkResponseRequest = import_zod17.z.lazy(() => {
|
1951
|
+
return import_zod17.z.object({
|
1952
|
+
purchase: createPurchaseV2OkResponsePurchaseRequest,
|
1953
|
+
profile: createPurchaseV2OkResponseProfileRequest
|
1998
1954
|
}).transform((data) => ({
|
1999
1955
|
purchase: data["purchase"],
|
2000
1956
|
profile: data["profile"]
|
2001
1957
|
}));
|
2002
1958
|
});
|
2003
1959
|
|
2004
|
-
// src/services/purchases/models/_4.ts
|
2005
|
-
var import_zod20 = require("zod");
|
2006
|
-
var _4Response = import_zod20.z.lazy(() => {
|
2007
|
-
return import_zod20.z.object({
|
2008
|
-
message: import_zod20.z.string().optional()
|
2009
|
-
}).transform((data) => ({
|
2010
|
-
message: data["message"]
|
2011
|
-
}));
|
2012
|
-
});
|
2013
|
-
var _4 = class extends ThrowableError {
|
2014
|
-
constructor(message, response) {
|
2015
|
-
super(message);
|
2016
|
-
this.message = message;
|
2017
|
-
this.response = response;
|
2018
|
-
const parsedResponse = _4Response.parse(response);
|
2019
|
-
this.message = parsedResponse.message || "";
|
2020
|
-
}
|
2021
|
-
throw() {
|
2022
|
-
throw new _4(this.message, this.response);
|
2023
|
-
}
|
2024
|
-
};
|
2025
|
-
|
2026
|
-
// src/services/purchases/models/_5.ts
|
2027
|
-
var import_zod21 = require("zod");
|
2028
|
-
var _5Response = import_zod21.z.lazy(() => {
|
2029
|
-
return import_zod21.z.object({
|
2030
|
-
message: import_zod21.z.string().optional()
|
2031
|
-
}).transform((data) => ({
|
2032
|
-
message: data["message"]
|
2033
|
-
}));
|
2034
|
-
});
|
2035
|
-
var _5 = class extends ThrowableError {
|
2036
|
-
constructor(message, response) {
|
2037
|
-
super(message);
|
2038
|
-
this.message = message;
|
2039
|
-
this.response = response;
|
2040
|
-
const parsedResponse = _5Response.parse(response);
|
2041
|
-
this.message = parsedResponse.message || "";
|
2042
|
-
}
|
2043
|
-
throw() {
|
2044
|
-
throw new _5(this.message, this.response);
|
2045
|
-
}
|
2046
|
-
};
|
2047
|
-
|
2048
1960
|
// src/services/purchases/models/list-purchases-ok-response.ts
|
2049
|
-
var
|
1961
|
+
var import_zod21 = require("zod");
|
2050
1962
|
|
2051
1963
|
// src/services/purchases/models/purchases.ts
|
2052
|
-
var
|
1964
|
+
var import_zod20 = require("zod");
|
2053
1965
|
|
2054
1966
|
// src/services/purchases/models/package_.ts
|
2055
|
-
var
|
2056
|
-
var package_ =
|
2057
|
-
return
|
2058
|
-
id:
|
2059
|
-
dataLimitInBytes:
|
2060
|
-
destination:
|
2061
|
-
destinationIso2:
|
2062
|
-
destinationName:
|
2063
|
-
priceInCents:
|
1967
|
+
var import_zod18 = require("zod");
|
1968
|
+
var package_ = import_zod18.z.lazy(() => {
|
1969
|
+
return import_zod18.z.object({
|
1970
|
+
id: import_zod18.z.string(),
|
1971
|
+
dataLimitInBytes: import_zod18.z.number(),
|
1972
|
+
destination: import_zod18.z.string(),
|
1973
|
+
destinationIso2: import_zod18.z.string(),
|
1974
|
+
destinationName: import_zod18.z.string(),
|
1975
|
+
priceInCents: import_zod18.z.number()
|
2064
1976
|
});
|
2065
1977
|
});
|
2066
|
-
var packageResponse =
|
2067
|
-
return
|
2068
|
-
id:
|
2069
|
-
dataLimitInBytes:
|
2070
|
-
destination:
|
2071
|
-
destinationISO2:
|
2072
|
-
destinationName:
|
2073
|
-
priceInCents:
|
1978
|
+
var packageResponse = import_zod18.z.lazy(() => {
|
1979
|
+
return import_zod18.z.object({
|
1980
|
+
id: import_zod18.z.string(),
|
1981
|
+
dataLimitInBytes: import_zod18.z.number(),
|
1982
|
+
destination: import_zod18.z.string(),
|
1983
|
+
destinationISO2: import_zod18.z.string(),
|
1984
|
+
destinationName: import_zod18.z.string(),
|
1985
|
+
priceInCents: import_zod18.z.number()
|
2074
1986
|
}).transform((data) => ({
|
2075
1987
|
id: data["id"],
|
2076
1988
|
dataLimitInBytes: data["dataLimitInBytes"],
|
@@ -2080,14 +1992,14 @@ var packageResponse = import_zod22.z.lazy(() => {
|
|
2080
1992
|
priceInCents: data["priceInCents"]
|
2081
1993
|
}));
|
2082
1994
|
});
|
2083
|
-
var packageRequest =
|
2084
|
-
return
|
2085
|
-
id:
|
2086
|
-
dataLimitInBytes:
|
2087
|
-
destination:
|
2088
|
-
destinationIso2:
|
2089
|
-
destinationName:
|
2090
|
-
priceInCents:
|
1995
|
+
var packageRequest = import_zod18.z.lazy(() => {
|
1996
|
+
return import_zod18.z.object({
|
1997
|
+
id: import_zod18.z.string(),
|
1998
|
+
dataLimitInBytes: import_zod18.z.number(),
|
1999
|
+
destination: import_zod18.z.string(),
|
2000
|
+
destinationIso2: import_zod18.z.string(),
|
2001
|
+
destinationName: import_zod18.z.string(),
|
2002
|
+
priceInCents: import_zod18.z.number()
|
2091
2003
|
}).transform((data) => ({
|
2092
2004
|
id: data["id"],
|
2093
2005
|
dataLimitInBytes: data["dataLimitInBytes"],
|
@@ -2099,58 +2011,58 @@ var packageRequest = import_zod22.z.lazy(() => {
|
|
2099
2011
|
});
|
2100
2012
|
|
2101
2013
|
// src/services/purchases/models/purchases-esim.ts
|
2102
|
-
var
|
2103
|
-
var purchasesEsim =
|
2104
|
-
return
|
2105
|
-
iccid:
|
2014
|
+
var import_zod19 = require("zod");
|
2015
|
+
var purchasesEsim = import_zod19.z.lazy(() => {
|
2016
|
+
return import_zod19.z.object({
|
2017
|
+
iccid: import_zod19.z.string().min(18).max(22)
|
2106
2018
|
});
|
2107
2019
|
});
|
2108
|
-
var purchasesEsimResponse =
|
2109
|
-
return
|
2110
|
-
iccid:
|
2020
|
+
var purchasesEsimResponse = import_zod19.z.lazy(() => {
|
2021
|
+
return import_zod19.z.object({
|
2022
|
+
iccid: import_zod19.z.string().min(18).max(22)
|
2111
2023
|
}).transform((data) => ({
|
2112
2024
|
iccid: data["iccid"]
|
2113
2025
|
}));
|
2114
2026
|
});
|
2115
|
-
var purchasesEsimRequest =
|
2116
|
-
return
|
2117
|
-
iccid:
|
2027
|
+
var purchasesEsimRequest = import_zod19.z.lazy(() => {
|
2028
|
+
return import_zod19.z.object({
|
2029
|
+
iccid: import_zod19.z.string().min(18).max(22)
|
2118
2030
|
}).transform((data) => ({
|
2119
2031
|
iccid: data["iccid"]
|
2120
2032
|
}));
|
2121
2033
|
});
|
2122
2034
|
|
2123
2035
|
// src/services/purchases/models/purchases.ts
|
2124
|
-
var purchases =
|
2125
|
-
return
|
2126
|
-
id:
|
2127
|
-
startDate:
|
2128
|
-
endDate:
|
2129
|
-
createdDate:
|
2130
|
-
startTime:
|
2131
|
-
endTime:
|
2132
|
-
createdAt:
|
2133
|
-
package: package_
|
2134
|
-
esim: purchasesEsim
|
2135
|
-
source:
|
2136
|
-
purchaseType:
|
2137
|
-
referenceId:
|
2036
|
+
var purchases = import_zod20.z.lazy(() => {
|
2037
|
+
return import_zod20.z.object({
|
2038
|
+
id: import_zod20.z.string(),
|
2039
|
+
startDate: import_zod20.z.string(),
|
2040
|
+
endDate: import_zod20.z.string(),
|
2041
|
+
createdDate: import_zod20.z.string(),
|
2042
|
+
startTime: import_zod20.z.number().optional(),
|
2043
|
+
endTime: import_zod20.z.number().optional(),
|
2044
|
+
createdAt: import_zod20.z.number().optional(),
|
2045
|
+
package: package_,
|
2046
|
+
esim: purchasesEsim,
|
2047
|
+
source: import_zod20.z.string(),
|
2048
|
+
purchaseType: import_zod20.z.string(),
|
2049
|
+
referenceId: import_zod20.z.string().optional().nullable()
|
2138
2050
|
});
|
2139
2051
|
});
|
2140
|
-
var purchasesResponse =
|
2141
|
-
return
|
2142
|
-
id:
|
2143
|
-
startDate:
|
2144
|
-
endDate:
|
2145
|
-
createdDate:
|
2146
|
-
startTime:
|
2147
|
-
endTime:
|
2148
|
-
createdAt:
|
2149
|
-
package: packageResponse
|
2150
|
-
esim: purchasesEsimResponse
|
2151
|
-
source:
|
2152
|
-
purchaseType:
|
2153
|
-
referenceId:
|
2052
|
+
var purchasesResponse = import_zod20.z.lazy(() => {
|
2053
|
+
return import_zod20.z.object({
|
2054
|
+
id: import_zod20.z.string(),
|
2055
|
+
startDate: import_zod20.z.string(),
|
2056
|
+
endDate: import_zod20.z.string(),
|
2057
|
+
createdDate: import_zod20.z.string(),
|
2058
|
+
startTime: import_zod20.z.number().optional(),
|
2059
|
+
endTime: import_zod20.z.number().optional(),
|
2060
|
+
createdAt: import_zod20.z.number().optional(),
|
2061
|
+
package: packageResponse,
|
2062
|
+
esim: purchasesEsimResponse,
|
2063
|
+
source: import_zod20.z.string(),
|
2064
|
+
purchaseType: import_zod20.z.string(),
|
2065
|
+
referenceId: import_zod20.z.string().optional().nullable()
|
2154
2066
|
}).transform((data) => ({
|
2155
2067
|
id: data["id"],
|
2156
2068
|
startDate: data["startDate"],
|
@@ -2166,20 +2078,20 @@ var purchasesResponse = import_zod24.z.lazy(() => {
|
|
2166
2078
|
referenceId: data["referenceId"]
|
2167
2079
|
}));
|
2168
2080
|
});
|
2169
|
-
var purchasesRequest =
|
2170
|
-
return
|
2171
|
-
id:
|
2172
|
-
startDate:
|
2173
|
-
endDate:
|
2174
|
-
createdDate:
|
2175
|
-
startTime:
|
2176
|
-
endTime:
|
2177
|
-
createdAt:
|
2178
|
-
package: packageRequest
|
2179
|
-
esim: purchasesEsimRequest
|
2180
|
-
source:
|
2181
|
-
purchaseType:
|
2182
|
-
referenceId:
|
2081
|
+
var purchasesRequest = import_zod20.z.lazy(() => {
|
2082
|
+
return import_zod20.z.object({
|
2083
|
+
id: import_zod20.z.string(),
|
2084
|
+
startDate: import_zod20.z.string(),
|
2085
|
+
endDate: import_zod20.z.string(),
|
2086
|
+
createdDate: import_zod20.z.string(),
|
2087
|
+
startTime: import_zod20.z.number().optional(),
|
2088
|
+
endTime: import_zod20.z.number().optional(),
|
2089
|
+
createdAt: import_zod20.z.number().optional(),
|
2090
|
+
package: packageRequest,
|
2091
|
+
esim: purchasesEsimRequest,
|
2092
|
+
source: import_zod20.z.string(),
|
2093
|
+
purchaseType: import_zod20.z.string(),
|
2094
|
+
referenceId: import_zod20.z.string().optional().nullable()
|
2183
2095
|
}).transform((data) => ({
|
2184
2096
|
id: data["id"],
|
2185
2097
|
startDate: data["startDate"],
|
@@ -2197,103 +2109,59 @@ var purchasesRequest = import_zod24.z.lazy(() => {
|
|
2197
2109
|
});
|
2198
2110
|
|
2199
2111
|
// src/services/purchases/models/list-purchases-ok-response.ts
|
2200
|
-
var listPurchasesOkResponse =
|
2201
|
-
return
|
2202
|
-
purchases:
|
2203
|
-
afterCursor:
|
2112
|
+
var listPurchasesOkResponse = import_zod21.z.lazy(() => {
|
2113
|
+
return import_zod21.z.object({
|
2114
|
+
purchases: import_zod21.z.array(purchases),
|
2115
|
+
afterCursor: import_zod21.z.string().nullable()
|
2204
2116
|
});
|
2205
2117
|
});
|
2206
|
-
var listPurchasesOkResponseResponse =
|
2207
|
-
return
|
2208
|
-
purchases:
|
2209
|
-
afterCursor:
|
2118
|
+
var listPurchasesOkResponseResponse = import_zod21.z.lazy(() => {
|
2119
|
+
return import_zod21.z.object({
|
2120
|
+
purchases: import_zod21.z.array(purchasesResponse),
|
2121
|
+
afterCursor: import_zod21.z.string().nullable()
|
2210
2122
|
}).transform((data) => ({
|
2211
2123
|
purchases: data["purchases"],
|
2212
2124
|
afterCursor: data["afterCursor"]
|
2213
2125
|
}));
|
2214
2126
|
});
|
2215
|
-
var listPurchasesOkResponseRequest =
|
2216
|
-
return
|
2217
|
-
purchases:
|
2218
|
-
afterCursor:
|
2127
|
+
var listPurchasesOkResponseRequest = import_zod21.z.lazy(() => {
|
2128
|
+
return import_zod21.z.object({
|
2129
|
+
purchases: import_zod21.z.array(purchasesRequest),
|
2130
|
+
afterCursor: import_zod21.z.string().nullable()
|
2219
2131
|
}).transform((data) => ({
|
2220
2132
|
purchases: data["purchases"],
|
2221
2133
|
afterCursor: data["afterCursor"]
|
2222
2134
|
}));
|
2223
2135
|
});
|
2224
2136
|
|
2225
|
-
// src/services/purchases/models/_6.ts
|
2226
|
-
var import_zod26 = require("zod");
|
2227
|
-
var _6Response = import_zod26.z.lazy(() => {
|
2228
|
-
return import_zod26.z.object({
|
2229
|
-
message: import_zod26.z.string().optional()
|
2230
|
-
}).transform((data) => ({
|
2231
|
-
message: data["message"]
|
2232
|
-
}));
|
2233
|
-
});
|
2234
|
-
var _6 = class extends ThrowableError {
|
2235
|
-
constructor(message, response) {
|
2236
|
-
super(message);
|
2237
|
-
this.message = message;
|
2238
|
-
this.response = response;
|
2239
|
-
const parsedResponse = _6Response.parse(response);
|
2240
|
-
this.message = parsedResponse.message || "";
|
2241
|
-
}
|
2242
|
-
throw() {
|
2243
|
-
throw new _6(this.message, this.response);
|
2244
|
-
}
|
2245
|
-
};
|
2246
|
-
|
2247
|
-
// src/services/purchases/models/_7.ts
|
2248
|
-
var import_zod27 = require("zod");
|
2249
|
-
var _7Response = import_zod27.z.lazy(() => {
|
2250
|
-
return import_zod27.z.object({
|
2251
|
-
message: import_zod27.z.string().optional()
|
2252
|
-
}).transform((data) => ({
|
2253
|
-
message: data["message"]
|
2254
|
-
}));
|
2255
|
-
});
|
2256
|
-
var _7 = class extends ThrowableError {
|
2257
|
-
constructor(message, response) {
|
2258
|
-
super(message);
|
2259
|
-
this.message = message;
|
2260
|
-
this.response = response;
|
2261
|
-
const parsedResponse = _7Response.parse(response);
|
2262
|
-
this.message = parsedResponse.message || "";
|
2263
|
-
}
|
2264
|
-
throw() {
|
2265
|
-
throw new _7(this.message, this.response);
|
2266
|
-
}
|
2267
|
-
};
|
2268
|
-
|
2269
2137
|
// src/services/purchases/models/create-purchase-request.ts
|
2270
|
-
var
|
2271
|
-
var createPurchaseRequest =
|
2272
|
-
return
|
2273
|
-
destination:
|
2274
|
-
dataLimitInGb:
|
2275
|
-
startDate:
|
2276
|
-
endDate:
|
2277
|
-
email:
|
2278
|
-
referenceId:
|
2279
|
-
networkBrand:
|
2280
|
-
emailBrand:
|
2281
|
-
startTime:
|
2282
|
-
endTime:
|
2138
|
+
var import_zod22 = require("zod");
|
2139
|
+
var createPurchaseRequest = import_zod22.z.lazy(() => {
|
2140
|
+
return import_zod22.z.object({
|
2141
|
+
destination: import_zod22.z.string(),
|
2142
|
+
dataLimitInGb: import_zod22.z.number(),
|
2143
|
+
startDate: import_zod22.z.string(),
|
2144
|
+
endDate: import_zod22.z.string(),
|
2145
|
+
email: import_zod22.z.string().optional(),
|
2146
|
+
referenceId: import_zod22.z.string().optional(),
|
2147
|
+
networkBrand: import_zod22.z.string().optional(),
|
2148
|
+
emailBrand: import_zod22.z.string().optional(),
|
2149
|
+
startTime: import_zod22.z.number().optional(),
|
2150
|
+
endTime: import_zod22.z.number().optional()
|
2283
2151
|
});
|
2284
2152
|
});
|
2285
|
-
var createPurchaseRequestResponse =
|
2286
|
-
return
|
2287
|
-
destination:
|
2288
|
-
dataLimitInGB:
|
2289
|
-
startDate:
|
2290
|
-
endDate:
|
2291
|
-
email:
|
2292
|
-
referenceId:
|
2293
|
-
networkBrand:
|
2294
|
-
emailBrand:
|
2295
|
-
startTime:
|
2296
|
-
endTime:
|
2153
|
+
var createPurchaseRequestResponse = import_zod22.z.lazy(() => {
|
2154
|
+
return import_zod22.z.object({
|
2155
|
+
destination: import_zod22.z.string(),
|
2156
|
+
dataLimitInGB: import_zod22.z.number(),
|
2157
|
+
startDate: import_zod22.z.string(),
|
2158
|
+
endDate: import_zod22.z.string(),
|
2159
|
+
email: import_zod22.z.string().optional(),
|
2160
|
+
referenceId: import_zod22.z.string().optional(),
|
2161
|
+
networkBrand: import_zod22.z.string().optional(),
|
2162
|
+
emailBrand: import_zod22.z.string().optional(),
|
2163
|
+
startTime: import_zod22.z.number().optional(),
|
2164
|
+
endTime: import_zod22.z.number().optional()
|
2297
2165
|
}).transform((data) => ({
|
2298
2166
|
destination: data["destination"],
|
2299
2167
|
dataLimitInGb: data["dataLimitInGB"],
|
@@ -2307,18 +2175,18 @@ var createPurchaseRequestResponse = import_zod28.z.lazy(() => {
|
|
2307
2175
|
endTime: data["endTime"]
|
2308
2176
|
}));
|
2309
2177
|
});
|
2310
|
-
var createPurchaseRequestRequest =
|
2311
|
-
return
|
2312
|
-
destination:
|
2313
|
-
dataLimitInGb:
|
2314
|
-
startDate:
|
2315
|
-
endDate:
|
2316
|
-
email:
|
2317
|
-
referenceId:
|
2318
|
-
networkBrand:
|
2319
|
-
emailBrand:
|
2320
|
-
startTime:
|
2321
|
-
endTime:
|
2178
|
+
var createPurchaseRequestRequest = import_zod22.z.lazy(() => {
|
2179
|
+
return import_zod22.z.object({
|
2180
|
+
destination: import_zod22.z.string(),
|
2181
|
+
dataLimitInGb: import_zod22.z.number(),
|
2182
|
+
startDate: import_zod22.z.string(),
|
2183
|
+
endDate: import_zod22.z.string(),
|
2184
|
+
email: import_zod22.z.string().optional(),
|
2185
|
+
referenceId: import_zod22.z.string().optional(),
|
2186
|
+
networkBrand: import_zod22.z.string().optional(),
|
2187
|
+
emailBrand: import_zod22.z.string().optional(),
|
2188
|
+
startTime: import_zod22.z.number().optional(),
|
2189
|
+
endTime: import_zod22.z.number().optional()
|
2322
2190
|
}).transform((data) => ({
|
2323
2191
|
destination: data["destination"],
|
2324
2192
|
dataLimitInGB: data["dataLimitInGb"],
|
@@ -2334,30 +2202,30 @@ var createPurchaseRequestRequest = import_zod28.z.lazy(() => {
|
|
2334
2202
|
});
|
2335
2203
|
|
2336
2204
|
// src/services/purchases/models/create-purchase-ok-response.ts
|
2337
|
-
var
|
2205
|
+
var import_zod25 = require("zod");
|
2338
2206
|
|
2339
2207
|
// src/services/purchases/models/create-purchase-ok-response-purchase.ts
|
2340
|
-
var
|
2341
|
-
var createPurchaseOkResponsePurchase =
|
2342
|
-
return
|
2343
|
-
id:
|
2344
|
-
packageId:
|
2345
|
-
startDate:
|
2346
|
-
endDate:
|
2347
|
-
createdDate:
|
2348
|
-
startTime:
|
2349
|
-
endTime:
|
2208
|
+
var import_zod23 = require("zod");
|
2209
|
+
var createPurchaseOkResponsePurchase = import_zod23.z.lazy(() => {
|
2210
|
+
return import_zod23.z.object({
|
2211
|
+
id: import_zod23.z.string(),
|
2212
|
+
packageId: import_zod23.z.string(),
|
2213
|
+
startDate: import_zod23.z.string(),
|
2214
|
+
endDate: import_zod23.z.string(),
|
2215
|
+
createdDate: import_zod23.z.string(),
|
2216
|
+
startTime: import_zod23.z.number().optional(),
|
2217
|
+
endTime: import_zod23.z.number().optional()
|
2350
2218
|
});
|
2351
2219
|
});
|
2352
|
-
var createPurchaseOkResponsePurchaseResponse =
|
2353
|
-
return
|
2354
|
-
id:
|
2355
|
-
packageId:
|
2356
|
-
startDate:
|
2357
|
-
endDate:
|
2358
|
-
createdDate:
|
2359
|
-
startTime:
|
2360
|
-
endTime:
|
2220
|
+
var createPurchaseOkResponsePurchaseResponse = import_zod23.z.lazy(() => {
|
2221
|
+
return import_zod23.z.object({
|
2222
|
+
id: import_zod23.z.string(),
|
2223
|
+
packageId: import_zod23.z.string(),
|
2224
|
+
startDate: import_zod23.z.string(),
|
2225
|
+
endDate: import_zod23.z.string(),
|
2226
|
+
createdDate: import_zod23.z.string(),
|
2227
|
+
startTime: import_zod23.z.number().optional(),
|
2228
|
+
endTime: import_zod23.z.number().optional()
|
2361
2229
|
}).transform((data) => ({
|
2362
2230
|
id: data["id"],
|
2363
2231
|
packageId: data["packageId"],
|
@@ -2368,15 +2236,15 @@ var createPurchaseOkResponsePurchaseResponse = import_zod29.z.lazy(() => {
|
|
2368
2236
|
endTime: data["endTime"]
|
2369
2237
|
}));
|
2370
2238
|
});
|
2371
|
-
var createPurchaseOkResponsePurchaseRequest =
|
2372
|
-
return
|
2373
|
-
id:
|
2374
|
-
packageId:
|
2375
|
-
startDate:
|
2376
|
-
endDate:
|
2377
|
-
createdDate:
|
2378
|
-
startTime:
|
2379
|
-
endTime:
|
2239
|
+
var createPurchaseOkResponsePurchaseRequest = import_zod23.z.lazy(() => {
|
2240
|
+
return import_zod23.z.object({
|
2241
|
+
id: import_zod23.z.string(),
|
2242
|
+
packageId: import_zod23.z.string(),
|
2243
|
+
startDate: import_zod23.z.string(),
|
2244
|
+
endDate: import_zod23.z.string(),
|
2245
|
+
createdDate: import_zod23.z.string(),
|
2246
|
+
startTime: import_zod23.z.number().optional(),
|
2247
|
+
endTime: import_zod23.z.number().optional()
|
2380
2248
|
}).transform((data) => ({
|
2381
2249
|
id: data["id"],
|
2382
2250
|
packageId: data["packageId"],
|
@@ -2389,30 +2257,30 @@ var createPurchaseOkResponsePurchaseRequest = import_zod29.z.lazy(() => {
|
|
2389
2257
|
});
|
2390
2258
|
|
2391
2259
|
// src/services/purchases/models/create-purchase-ok-response-profile.ts
|
2392
|
-
var
|
2393
|
-
var createPurchaseOkResponseProfile =
|
2394
|
-
return
|
2395
|
-
iccid:
|
2396
|
-
activationCode:
|
2397
|
-
manualActivationCode:
|
2260
|
+
var import_zod24 = require("zod");
|
2261
|
+
var createPurchaseOkResponseProfile = import_zod24.z.lazy(() => {
|
2262
|
+
return import_zod24.z.object({
|
2263
|
+
iccid: import_zod24.z.string().min(18).max(22),
|
2264
|
+
activationCode: import_zod24.z.string().min(1e3).max(8e3),
|
2265
|
+
manualActivationCode: import_zod24.z.string()
|
2398
2266
|
});
|
2399
2267
|
});
|
2400
|
-
var createPurchaseOkResponseProfileResponse =
|
2401
|
-
return
|
2402
|
-
iccid:
|
2403
|
-
activationCode:
|
2404
|
-
manualActivationCode:
|
2268
|
+
var createPurchaseOkResponseProfileResponse = import_zod24.z.lazy(() => {
|
2269
|
+
return import_zod24.z.object({
|
2270
|
+
iccid: import_zod24.z.string().min(18).max(22),
|
2271
|
+
activationCode: import_zod24.z.string().min(1e3).max(8e3),
|
2272
|
+
manualActivationCode: import_zod24.z.string()
|
2405
2273
|
}).transform((data) => ({
|
2406
2274
|
iccid: data["iccid"],
|
2407
2275
|
activationCode: data["activationCode"],
|
2408
2276
|
manualActivationCode: data["manualActivationCode"]
|
2409
2277
|
}));
|
2410
2278
|
});
|
2411
|
-
var createPurchaseOkResponseProfileRequest =
|
2412
|
-
return
|
2413
|
-
iccid:
|
2414
|
-
activationCode:
|
2415
|
-
manualActivationCode:
|
2279
|
+
var createPurchaseOkResponseProfileRequest = import_zod24.z.lazy(() => {
|
2280
|
+
return import_zod24.z.object({
|
2281
|
+
iccid: import_zod24.z.string().min(18).max(22),
|
2282
|
+
activationCode: import_zod24.z.string().min(1e3).max(8e3),
|
2283
|
+
manualActivationCode: import_zod24.z.string()
|
2416
2284
|
}).transform((data) => ({
|
2417
2285
|
iccid: data["iccid"],
|
2418
2286
|
activationCode: data["activationCode"],
|
@@ -2421,101 +2289,57 @@ var createPurchaseOkResponseProfileRequest = import_zod30.z.lazy(() => {
|
|
2421
2289
|
});
|
2422
2290
|
|
2423
2291
|
// src/services/purchases/models/create-purchase-ok-response.ts
|
2424
|
-
var createPurchaseOkResponse =
|
2425
|
-
return
|
2426
|
-
purchase: createPurchaseOkResponsePurchase
|
2427
|
-
profile: createPurchaseOkResponseProfile
|
2292
|
+
var createPurchaseOkResponse = import_zod25.z.lazy(() => {
|
2293
|
+
return import_zod25.z.object({
|
2294
|
+
purchase: createPurchaseOkResponsePurchase,
|
2295
|
+
profile: createPurchaseOkResponseProfile
|
2428
2296
|
});
|
2429
2297
|
});
|
2430
|
-
var createPurchaseOkResponseResponse =
|
2431
|
-
return
|
2432
|
-
purchase: createPurchaseOkResponsePurchaseResponse
|
2433
|
-
profile: createPurchaseOkResponseProfileResponse
|
2298
|
+
var createPurchaseOkResponseResponse = import_zod25.z.lazy(() => {
|
2299
|
+
return import_zod25.z.object({
|
2300
|
+
purchase: createPurchaseOkResponsePurchaseResponse,
|
2301
|
+
profile: createPurchaseOkResponseProfileResponse
|
2434
2302
|
}).transform((data) => ({
|
2435
2303
|
purchase: data["purchase"],
|
2436
2304
|
profile: data["profile"]
|
2437
2305
|
}));
|
2438
2306
|
});
|
2439
|
-
var createPurchaseOkResponseRequest =
|
2440
|
-
return
|
2441
|
-
purchase: createPurchaseOkResponsePurchaseRequest
|
2442
|
-
profile: createPurchaseOkResponseProfileRequest
|
2307
|
+
var createPurchaseOkResponseRequest = import_zod25.z.lazy(() => {
|
2308
|
+
return import_zod25.z.object({
|
2309
|
+
purchase: createPurchaseOkResponsePurchaseRequest,
|
2310
|
+
profile: createPurchaseOkResponseProfileRequest
|
2443
2311
|
}).transform((data) => ({
|
2444
2312
|
purchase: data["purchase"],
|
2445
2313
|
profile: data["profile"]
|
2446
2314
|
}));
|
2447
2315
|
});
|
2448
2316
|
|
2449
|
-
// src/services/purchases/models/_8.ts
|
2450
|
-
var import_zod32 = require("zod");
|
2451
|
-
var _8Response = import_zod32.z.lazy(() => {
|
2452
|
-
return import_zod32.z.object({
|
2453
|
-
message: import_zod32.z.string().optional()
|
2454
|
-
}).transform((data) => ({
|
2455
|
-
message: data["message"]
|
2456
|
-
}));
|
2457
|
-
});
|
2458
|
-
var _8 = class extends ThrowableError {
|
2459
|
-
constructor(message, response) {
|
2460
|
-
super(message);
|
2461
|
-
this.message = message;
|
2462
|
-
this.response = response;
|
2463
|
-
const parsedResponse = _8Response.parse(response);
|
2464
|
-
this.message = parsedResponse.message || "";
|
2465
|
-
}
|
2466
|
-
throw() {
|
2467
|
-
throw new _8(this.message, this.response);
|
2468
|
-
}
|
2469
|
-
};
|
2470
|
-
|
2471
|
-
// src/services/purchases/models/_9.ts
|
2472
|
-
var import_zod33 = require("zod");
|
2473
|
-
var _9Response = import_zod33.z.lazy(() => {
|
2474
|
-
return import_zod33.z.object({
|
2475
|
-
message: import_zod33.z.string().optional()
|
2476
|
-
}).transform((data) => ({
|
2477
|
-
message: data["message"]
|
2478
|
-
}));
|
2479
|
-
});
|
2480
|
-
var _9 = class extends ThrowableError {
|
2481
|
-
constructor(message, response) {
|
2482
|
-
super(message);
|
2483
|
-
this.message = message;
|
2484
|
-
this.response = response;
|
2485
|
-
const parsedResponse = _9Response.parse(response);
|
2486
|
-
this.message = parsedResponse.message || "";
|
2487
|
-
}
|
2488
|
-
throw() {
|
2489
|
-
throw new _9(this.message, this.response);
|
2490
|
-
}
|
2491
|
-
};
|
2492
|
-
|
2493
2317
|
// src/services/purchases/models/top-up-esim-request.ts
|
2494
|
-
var
|
2495
|
-
var topUpEsimRequest =
|
2496
|
-
return
|
2497
|
-
iccid:
|
2498
|
-
dataLimitInGb:
|
2499
|
-
startDate:
|
2500
|
-
endDate:
|
2501
|
-
email:
|
2502
|
-
referenceId:
|
2503
|
-
emailBrand:
|
2504
|
-
startTime:
|
2505
|
-
endTime:
|
2318
|
+
var import_zod26 = require("zod");
|
2319
|
+
var topUpEsimRequest = import_zod26.z.lazy(() => {
|
2320
|
+
return import_zod26.z.object({
|
2321
|
+
iccid: import_zod26.z.string().min(18).max(22),
|
2322
|
+
dataLimitInGb: import_zod26.z.number(),
|
2323
|
+
startDate: import_zod26.z.string(),
|
2324
|
+
endDate: import_zod26.z.string(),
|
2325
|
+
email: import_zod26.z.string().optional(),
|
2326
|
+
referenceId: import_zod26.z.string().optional(),
|
2327
|
+
emailBrand: import_zod26.z.string().optional(),
|
2328
|
+
startTime: import_zod26.z.number().optional(),
|
2329
|
+
endTime: import_zod26.z.number().optional()
|
2506
2330
|
});
|
2507
2331
|
});
|
2508
|
-
var topUpEsimRequestResponse =
|
2509
|
-
return
|
2510
|
-
iccid:
|
2511
|
-
dataLimitInGB:
|
2512
|
-
startDate:
|
2513
|
-
endDate:
|
2514
|
-
email:
|
2515
|
-
referenceId:
|
2516
|
-
emailBrand:
|
2517
|
-
startTime:
|
2518
|
-
endTime:
|
2332
|
+
var topUpEsimRequestResponse = import_zod26.z.lazy(() => {
|
2333
|
+
return import_zod26.z.object({
|
2334
|
+
iccid: import_zod26.z.string().min(18).max(22),
|
2335
|
+
dataLimitInGB: import_zod26.z.number(),
|
2336
|
+
startDate: import_zod26.z.string(),
|
2337
|
+
endDate: import_zod26.z.string(),
|
2338
|
+
email: import_zod26.z.string().optional(),
|
2339
|
+
referenceId: import_zod26.z.string().optional(),
|
2340
|
+
emailBrand: import_zod26.z.string().optional(),
|
2341
|
+
startTime: import_zod26.z.number().optional(),
|
2342
|
+
endTime: import_zod26.z.number().optional()
|
2519
2343
|
}).transform((data) => ({
|
2520
2344
|
iccid: data["iccid"],
|
2521
2345
|
dataLimitInGb: data["dataLimitInGB"],
|
@@ -2528,17 +2352,17 @@ var topUpEsimRequestResponse = import_zod34.z.lazy(() => {
|
|
2528
2352
|
endTime: data["endTime"]
|
2529
2353
|
}));
|
2530
2354
|
});
|
2531
|
-
var topUpEsimRequestRequest =
|
2532
|
-
return
|
2533
|
-
iccid:
|
2534
|
-
dataLimitInGb:
|
2535
|
-
startDate:
|
2536
|
-
endDate:
|
2537
|
-
email:
|
2538
|
-
referenceId:
|
2539
|
-
emailBrand:
|
2540
|
-
startTime:
|
2541
|
-
endTime:
|
2355
|
+
var topUpEsimRequestRequest = import_zod26.z.lazy(() => {
|
2356
|
+
return import_zod26.z.object({
|
2357
|
+
iccid: import_zod26.z.string().min(18).max(22),
|
2358
|
+
dataLimitInGb: import_zod26.z.number(),
|
2359
|
+
startDate: import_zod26.z.string(),
|
2360
|
+
endDate: import_zod26.z.string(),
|
2361
|
+
email: import_zod26.z.string().optional(),
|
2362
|
+
referenceId: import_zod26.z.string().optional(),
|
2363
|
+
emailBrand: import_zod26.z.string().optional(),
|
2364
|
+
startTime: import_zod26.z.number().optional(),
|
2365
|
+
endTime: import_zod26.z.number().optional()
|
2542
2366
|
}).transform((data) => ({
|
2543
2367
|
iccid: data["iccid"],
|
2544
2368
|
dataLimitInGB: data["dataLimitInGb"],
|
@@ -2553,30 +2377,30 @@ var topUpEsimRequestRequest = import_zod34.z.lazy(() => {
|
|
2553
2377
|
});
|
2554
2378
|
|
2555
2379
|
// src/services/purchases/models/top-up-esim-ok-response.ts
|
2556
|
-
var
|
2380
|
+
var import_zod29 = require("zod");
|
2557
2381
|
|
2558
2382
|
// src/services/purchases/models/top-up-esim-ok-response-purchase.ts
|
2559
|
-
var
|
2560
|
-
var topUpEsimOkResponsePurchase =
|
2561
|
-
return
|
2562
|
-
id:
|
2563
|
-
packageId:
|
2564
|
-
startDate:
|
2565
|
-
endDate:
|
2566
|
-
createdDate:
|
2567
|
-
startTime:
|
2568
|
-
endTime:
|
2383
|
+
var import_zod27 = require("zod");
|
2384
|
+
var topUpEsimOkResponsePurchase = import_zod27.z.lazy(() => {
|
2385
|
+
return import_zod27.z.object({
|
2386
|
+
id: import_zod27.z.string(),
|
2387
|
+
packageId: import_zod27.z.string(),
|
2388
|
+
startDate: import_zod27.z.string(),
|
2389
|
+
endDate: import_zod27.z.string(),
|
2390
|
+
createdDate: import_zod27.z.string(),
|
2391
|
+
startTime: import_zod27.z.number().optional(),
|
2392
|
+
endTime: import_zod27.z.number().optional()
|
2569
2393
|
});
|
2570
2394
|
});
|
2571
|
-
var topUpEsimOkResponsePurchaseResponse =
|
2572
|
-
return
|
2573
|
-
id:
|
2574
|
-
packageId:
|
2575
|
-
startDate:
|
2576
|
-
endDate:
|
2577
|
-
createdDate:
|
2578
|
-
startTime:
|
2579
|
-
endTime:
|
2395
|
+
var topUpEsimOkResponsePurchaseResponse = import_zod27.z.lazy(() => {
|
2396
|
+
return import_zod27.z.object({
|
2397
|
+
id: import_zod27.z.string(),
|
2398
|
+
packageId: import_zod27.z.string(),
|
2399
|
+
startDate: import_zod27.z.string(),
|
2400
|
+
endDate: import_zod27.z.string(),
|
2401
|
+
createdDate: import_zod27.z.string(),
|
2402
|
+
startTime: import_zod27.z.number().optional(),
|
2403
|
+
endTime: import_zod27.z.number().optional()
|
2580
2404
|
}).transform((data) => ({
|
2581
2405
|
id: data["id"],
|
2582
2406
|
packageId: data["packageId"],
|
@@ -2587,15 +2411,15 @@ var topUpEsimOkResponsePurchaseResponse = import_zod35.z.lazy(() => {
|
|
2587
2411
|
endTime: data["endTime"]
|
2588
2412
|
}));
|
2589
2413
|
});
|
2590
|
-
var topUpEsimOkResponsePurchaseRequest =
|
2591
|
-
return
|
2592
|
-
id:
|
2593
|
-
packageId:
|
2594
|
-
startDate:
|
2595
|
-
endDate:
|
2596
|
-
createdDate:
|
2597
|
-
startTime:
|
2598
|
-
endTime:
|
2414
|
+
var topUpEsimOkResponsePurchaseRequest = import_zod27.z.lazy(() => {
|
2415
|
+
return import_zod27.z.object({
|
2416
|
+
id: import_zod27.z.string(),
|
2417
|
+
packageId: import_zod27.z.string(),
|
2418
|
+
startDate: import_zod27.z.string(),
|
2419
|
+
endDate: import_zod27.z.string(),
|
2420
|
+
createdDate: import_zod27.z.string(),
|
2421
|
+
startTime: import_zod27.z.number().optional(),
|
2422
|
+
endTime: import_zod27.z.number().optional()
|
2599
2423
|
}).transform((data) => ({
|
2600
2424
|
id: data["id"],
|
2601
2425
|
packageId: data["packageId"],
|
@@ -2608,115 +2432,71 @@ var topUpEsimOkResponsePurchaseRequest = import_zod35.z.lazy(() => {
|
|
2608
2432
|
});
|
2609
2433
|
|
2610
2434
|
// src/services/purchases/models/top-up-esim-ok-response-profile.ts
|
2611
|
-
var
|
2612
|
-
var topUpEsimOkResponseProfile =
|
2613
|
-
return
|
2614
|
-
iccid:
|
2435
|
+
var import_zod28 = require("zod");
|
2436
|
+
var topUpEsimOkResponseProfile = import_zod28.z.lazy(() => {
|
2437
|
+
return import_zod28.z.object({
|
2438
|
+
iccid: import_zod28.z.string().min(18).max(22)
|
2615
2439
|
});
|
2616
2440
|
});
|
2617
|
-
var topUpEsimOkResponseProfileResponse =
|
2618
|
-
return
|
2619
|
-
iccid:
|
2441
|
+
var topUpEsimOkResponseProfileResponse = import_zod28.z.lazy(() => {
|
2442
|
+
return import_zod28.z.object({
|
2443
|
+
iccid: import_zod28.z.string().min(18).max(22)
|
2620
2444
|
}).transform((data) => ({
|
2621
2445
|
iccid: data["iccid"]
|
2622
2446
|
}));
|
2623
2447
|
});
|
2624
|
-
var topUpEsimOkResponseProfileRequest =
|
2625
|
-
return
|
2626
|
-
iccid:
|
2448
|
+
var topUpEsimOkResponseProfileRequest = import_zod28.z.lazy(() => {
|
2449
|
+
return import_zod28.z.object({
|
2450
|
+
iccid: import_zod28.z.string().min(18).max(22)
|
2627
2451
|
}).transform((data) => ({
|
2628
2452
|
iccid: data["iccid"]
|
2629
2453
|
}));
|
2630
2454
|
});
|
2631
2455
|
|
2632
2456
|
// src/services/purchases/models/top-up-esim-ok-response.ts
|
2633
|
-
var topUpEsimOkResponse =
|
2634
|
-
return
|
2635
|
-
purchase: topUpEsimOkResponsePurchase
|
2636
|
-
profile: topUpEsimOkResponseProfile
|
2457
|
+
var topUpEsimOkResponse = import_zod29.z.lazy(() => {
|
2458
|
+
return import_zod29.z.object({
|
2459
|
+
purchase: topUpEsimOkResponsePurchase,
|
2460
|
+
profile: topUpEsimOkResponseProfile
|
2637
2461
|
});
|
2638
2462
|
});
|
2639
|
-
var topUpEsimOkResponseResponse =
|
2640
|
-
return
|
2641
|
-
purchase: topUpEsimOkResponsePurchaseResponse
|
2642
|
-
profile: topUpEsimOkResponseProfileResponse
|
2463
|
+
var topUpEsimOkResponseResponse = import_zod29.z.lazy(() => {
|
2464
|
+
return import_zod29.z.object({
|
2465
|
+
purchase: topUpEsimOkResponsePurchaseResponse,
|
2466
|
+
profile: topUpEsimOkResponseProfileResponse
|
2643
2467
|
}).transform((data) => ({
|
2644
2468
|
purchase: data["purchase"],
|
2645
2469
|
profile: data["profile"]
|
2646
2470
|
}));
|
2647
2471
|
});
|
2648
|
-
var topUpEsimOkResponseRequest =
|
2649
|
-
return
|
2650
|
-
purchase: topUpEsimOkResponsePurchaseRequest
|
2651
|
-
profile: topUpEsimOkResponseProfileRequest
|
2472
|
+
var topUpEsimOkResponseRequest = import_zod29.z.lazy(() => {
|
2473
|
+
return import_zod29.z.object({
|
2474
|
+
purchase: topUpEsimOkResponsePurchaseRequest,
|
2475
|
+
profile: topUpEsimOkResponseProfileRequest
|
2652
2476
|
}).transform((data) => ({
|
2653
2477
|
purchase: data["purchase"],
|
2654
2478
|
profile: data["profile"]
|
2655
2479
|
}));
|
2656
2480
|
});
|
2657
2481
|
|
2658
|
-
// src/services/purchases/models/_10.ts
|
2659
|
-
var import_zod38 = require("zod");
|
2660
|
-
var _10Response = import_zod38.z.lazy(() => {
|
2661
|
-
return import_zod38.z.object({
|
2662
|
-
message: import_zod38.z.string().optional()
|
2663
|
-
}).transform((data) => ({
|
2664
|
-
message: data["message"]
|
2665
|
-
}));
|
2666
|
-
});
|
2667
|
-
var _10 = class extends ThrowableError {
|
2668
|
-
constructor(message, response) {
|
2669
|
-
super(message);
|
2670
|
-
this.message = message;
|
2671
|
-
this.response = response;
|
2672
|
-
const parsedResponse = _10Response.parse(response);
|
2673
|
-
this.message = parsedResponse.message || "";
|
2674
|
-
}
|
2675
|
-
throw() {
|
2676
|
-
throw new _10(this.message, this.response);
|
2677
|
-
}
|
2678
|
-
};
|
2679
|
-
|
2680
|
-
// src/services/purchases/models/_11.ts
|
2681
|
-
var import_zod39 = require("zod");
|
2682
|
-
var _11Response = import_zod39.z.lazy(() => {
|
2683
|
-
return import_zod39.z.object({
|
2684
|
-
message: import_zod39.z.string().optional()
|
2685
|
-
}).transform((data) => ({
|
2686
|
-
message: data["message"]
|
2687
|
-
}));
|
2688
|
-
});
|
2689
|
-
var _11 = class extends ThrowableError {
|
2690
|
-
constructor(message, response) {
|
2691
|
-
super(message);
|
2692
|
-
this.message = message;
|
2693
|
-
this.response = response;
|
2694
|
-
const parsedResponse = _11Response.parse(response);
|
2695
|
-
this.message = parsedResponse.message || "";
|
2696
|
-
}
|
2697
|
-
throw() {
|
2698
|
-
throw new _11(this.message, this.response);
|
2699
|
-
}
|
2700
|
-
};
|
2701
|
-
|
2702
2482
|
// src/services/purchases/models/edit-purchase-request.ts
|
2703
|
-
var
|
2704
|
-
var editPurchaseRequest =
|
2705
|
-
return
|
2706
|
-
purchaseId:
|
2707
|
-
startDate:
|
2708
|
-
endDate:
|
2709
|
-
startTime:
|
2710
|
-
endTime:
|
2483
|
+
var import_zod30 = require("zod");
|
2484
|
+
var editPurchaseRequest = import_zod30.z.lazy(() => {
|
2485
|
+
return import_zod30.z.object({
|
2486
|
+
purchaseId: import_zod30.z.string(),
|
2487
|
+
startDate: import_zod30.z.string(),
|
2488
|
+
endDate: import_zod30.z.string(),
|
2489
|
+
startTime: import_zod30.z.number().optional(),
|
2490
|
+
endTime: import_zod30.z.number().optional()
|
2711
2491
|
});
|
2712
2492
|
});
|
2713
|
-
var editPurchaseRequestResponse =
|
2714
|
-
return
|
2715
|
-
purchaseId:
|
2716
|
-
startDate:
|
2717
|
-
endDate:
|
2718
|
-
startTime:
|
2719
|
-
endTime:
|
2493
|
+
var editPurchaseRequestResponse = import_zod30.z.lazy(() => {
|
2494
|
+
return import_zod30.z.object({
|
2495
|
+
purchaseId: import_zod30.z.string(),
|
2496
|
+
startDate: import_zod30.z.string(),
|
2497
|
+
endDate: import_zod30.z.string(),
|
2498
|
+
startTime: import_zod30.z.number().optional(),
|
2499
|
+
endTime: import_zod30.z.number().optional()
|
2720
2500
|
}).transform((data) => ({
|
2721
2501
|
purchaseId: data["purchaseId"],
|
2722
2502
|
startDate: data["startDate"],
|
@@ -2725,13 +2505,13 @@ var editPurchaseRequestResponse = import_zod40.z.lazy(() => {
|
|
2725
2505
|
endTime: data["endTime"]
|
2726
2506
|
}));
|
2727
2507
|
});
|
2728
|
-
var editPurchaseRequestRequest =
|
2729
|
-
return
|
2730
|
-
purchaseId:
|
2731
|
-
startDate:
|
2732
|
-
endDate:
|
2733
|
-
startTime:
|
2734
|
-
endTime:
|
2508
|
+
var editPurchaseRequestRequest = import_zod30.z.lazy(() => {
|
2509
|
+
return import_zod30.z.object({
|
2510
|
+
purchaseId: import_zod30.z.string(),
|
2511
|
+
startDate: import_zod30.z.string(),
|
2512
|
+
endDate: import_zod30.z.string(),
|
2513
|
+
startTime: import_zod30.z.number().optional(),
|
2514
|
+
endTime: import_zod30.z.number().optional()
|
2735
2515
|
}).transform((data) => ({
|
2736
2516
|
purchaseId: data["purchaseId"],
|
2737
2517
|
startDate: data["startDate"],
|
@@ -2742,23 +2522,23 @@ var editPurchaseRequestRequest = import_zod40.z.lazy(() => {
|
|
2742
2522
|
});
|
2743
2523
|
|
2744
2524
|
// src/services/purchases/models/edit-purchase-ok-response.ts
|
2745
|
-
var
|
2746
|
-
var editPurchaseOkResponse =
|
2747
|
-
return
|
2748
|
-
purchaseId:
|
2749
|
-
newStartDate:
|
2750
|
-
newEndDate:
|
2751
|
-
newStartTime:
|
2752
|
-
newEndTime:
|
2525
|
+
var import_zod31 = require("zod");
|
2526
|
+
var editPurchaseOkResponse = import_zod31.z.lazy(() => {
|
2527
|
+
return import_zod31.z.object({
|
2528
|
+
purchaseId: import_zod31.z.string(),
|
2529
|
+
newStartDate: import_zod31.z.string(),
|
2530
|
+
newEndDate: import_zod31.z.string(),
|
2531
|
+
newStartTime: import_zod31.z.number().optional(),
|
2532
|
+
newEndTime: import_zod31.z.number().optional()
|
2753
2533
|
});
|
2754
2534
|
});
|
2755
|
-
var editPurchaseOkResponseResponse =
|
2756
|
-
return
|
2757
|
-
purchaseId:
|
2758
|
-
newStartDate:
|
2759
|
-
newEndDate:
|
2760
|
-
newStartTime:
|
2761
|
-
newEndTime:
|
2535
|
+
var editPurchaseOkResponseResponse = import_zod31.z.lazy(() => {
|
2536
|
+
return import_zod31.z.object({
|
2537
|
+
purchaseId: import_zod31.z.string(),
|
2538
|
+
newStartDate: import_zod31.z.string(),
|
2539
|
+
newEndDate: import_zod31.z.string(),
|
2540
|
+
newStartTime: import_zod31.z.number().optional(),
|
2541
|
+
newEndTime: import_zod31.z.number().optional()
|
2762
2542
|
}).transform((data) => ({
|
2763
2543
|
purchaseId: data["purchaseId"],
|
2764
2544
|
newStartDate: data["newStartDate"],
|
@@ -2767,13 +2547,13 @@ var editPurchaseOkResponseResponse = import_zod41.z.lazy(() => {
|
|
2767
2547
|
newEndTime: data["newEndTime"]
|
2768
2548
|
}));
|
2769
2549
|
});
|
2770
|
-
var editPurchaseOkResponseRequest =
|
2771
|
-
return
|
2772
|
-
purchaseId:
|
2773
|
-
newStartDate:
|
2774
|
-
newEndDate:
|
2775
|
-
newStartTime:
|
2776
|
-
newEndTime:
|
2550
|
+
var editPurchaseOkResponseRequest = import_zod31.z.lazy(() => {
|
2551
|
+
return import_zod31.z.object({
|
2552
|
+
purchaseId: import_zod31.z.string(),
|
2553
|
+
newStartDate: import_zod31.z.string(),
|
2554
|
+
newEndDate: import_zod31.z.string(),
|
2555
|
+
newStartTime: import_zod31.z.number().optional(),
|
2556
|
+
newEndTime: import_zod31.z.number().optional()
|
2777
2557
|
}).transform((data) => ({
|
2778
2558
|
purchaseId: data["purchaseId"],
|
2779
2559
|
newStartDate: data["newStartDate"],
|
@@ -2783,121 +2563,33 @@ var editPurchaseOkResponseRequest = import_zod41.z.lazy(() => {
|
|
2783
2563
|
}));
|
2784
2564
|
});
|
2785
2565
|
|
2786
|
-
// src/services/purchases/models/_12.ts
|
2787
|
-
var import_zod42 = require("zod");
|
2788
|
-
var _12Response = import_zod42.z.lazy(() => {
|
2789
|
-
return import_zod42.z.object({
|
2790
|
-
message: import_zod42.z.string().optional()
|
2791
|
-
}).transform((data) => ({
|
2792
|
-
message: data["message"]
|
2793
|
-
}));
|
2794
|
-
});
|
2795
|
-
var _12 = class extends ThrowableError {
|
2796
|
-
constructor(message, response) {
|
2797
|
-
super(message);
|
2798
|
-
this.message = message;
|
2799
|
-
this.response = response;
|
2800
|
-
const parsedResponse = _12Response.parse(response);
|
2801
|
-
this.message = parsedResponse.message || "";
|
2802
|
-
}
|
2803
|
-
throw() {
|
2804
|
-
throw new _12(this.message, this.response);
|
2805
|
-
}
|
2806
|
-
};
|
2807
|
-
|
2808
|
-
// src/services/purchases/models/_13.ts
|
2809
|
-
var import_zod43 = require("zod");
|
2810
|
-
var _13Response = import_zod43.z.lazy(() => {
|
2811
|
-
return import_zod43.z.object({
|
2812
|
-
message: import_zod43.z.string().optional()
|
2813
|
-
}).transform((data) => ({
|
2814
|
-
message: data["message"]
|
2815
|
-
}));
|
2816
|
-
});
|
2817
|
-
var _13 = class extends ThrowableError {
|
2818
|
-
constructor(message, response) {
|
2819
|
-
super(message);
|
2820
|
-
this.message = message;
|
2821
|
-
this.response = response;
|
2822
|
-
const parsedResponse = _13Response.parse(response);
|
2823
|
-
this.message = parsedResponse.message || "";
|
2824
|
-
}
|
2825
|
-
throw() {
|
2826
|
-
throw new _13(this.message, this.response);
|
2827
|
-
}
|
2828
|
-
};
|
2829
|
-
|
2830
2566
|
// src/services/purchases/models/get-purchase-consumption-ok-response.ts
|
2831
|
-
var
|
2832
|
-
var getPurchaseConsumptionOkResponse =
|
2833
|
-
return
|
2834
|
-
dataUsageRemainingInBytes:
|
2835
|
-
status:
|
2567
|
+
var import_zod32 = require("zod");
|
2568
|
+
var getPurchaseConsumptionOkResponse = import_zod32.z.lazy(() => {
|
2569
|
+
return import_zod32.z.object({
|
2570
|
+
dataUsageRemainingInBytes: import_zod32.z.number(),
|
2571
|
+
status: import_zod32.z.string()
|
2836
2572
|
});
|
2837
2573
|
});
|
2838
|
-
var getPurchaseConsumptionOkResponseResponse =
|
2839
|
-
return
|
2840
|
-
dataUsageRemainingInBytes:
|
2841
|
-
status:
|
2574
|
+
var getPurchaseConsumptionOkResponseResponse = import_zod32.z.lazy(() => {
|
2575
|
+
return import_zod32.z.object({
|
2576
|
+
dataUsageRemainingInBytes: import_zod32.z.number(),
|
2577
|
+
status: import_zod32.z.string()
|
2842
2578
|
}).transform((data) => ({
|
2843
2579
|
dataUsageRemainingInBytes: data["dataUsageRemainingInBytes"],
|
2844
2580
|
status: data["status"]
|
2845
2581
|
}));
|
2846
2582
|
});
|
2847
|
-
var getPurchaseConsumptionOkResponseRequest =
|
2848
|
-
return
|
2849
|
-
dataUsageRemainingInBytes:
|
2850
|
-
status:
|
2583
|
+
var getPurchaseConsumptionOkResponseRequest = import_zod32.z.lazy(() => {
|
2584
|
+
return import_zod32.z.object({
|
2585
|
+
dataUsageRemainingInBytes: import_zod32.z.number(),
|
2586
|
+
status: import_zod32.z.string()
|
2851
2587
|
}).transform((data) => ({
|
2852
2588
|
dataUsageRemainingInBytes: data["dataUsageRemainingInBytes"],
|
2853
2589
|
status: data["status"]
|
2854
2590
|
}));
|
2855
2591
|
});
|
2856
2592
|
|
2857
|
-
// src/services/purchases/models/_14.ts
|
2858
|
-
var import_zod45 = require("zod");
|
2859
|
-
var _14Response = import_zod45.z.lazy(() => {
|
2860
|
-
return import_zod45.z.object({
|
2861
|
-
message: import_zod45.z.string().optional()
|
2862
|
-
}).transform((data) => ({
|
2863
|
-
message: data["message"]
|
2864
|
-
}));
|
2865
|
-
});
|
2866
|
-
var _14 = class extends ThrowableError {
|
2867
|
-
constructor(message, response) {
|
2868
|
-
super(message);
|
2869
|
-
this.message = message;
|
2870
|
-
this.response = response;
|
2871
|
-
const parsedResponse = _14Response.parse(response);
|
2872
|
-
this.message = parsedResponse.message || "";
|
2873
|
-
}
|
2874
|
-
throw() {
|
2875
|
-
throw new _14(this.message, this.response);
|
2876
|
-
}
|
2877
|
-
};
|
2878
|
-
|
2879
|
-
// src/services/purchases/models/_15.ts
|
2880
|
-
var import_zod46 = require("zod");
|
2881
|
-
var _15Response = import_zod46.z.lazy(() => {
|
2882
|
-
return import_zod46.z.object({
|
2883
|
-
message: import_zod46.z.string().optional()
|
2884
|
-
}).transform((data) => ({
|
2885
|
-
message: data["message"]
|
2886
|
-
}));
|
2887
|
-
});
|
2888
|
-
var _15 = class extends ThrowableError {
|
2889
|
-
constructor(message, response) {
|
2890
|
-
super(message);
|
2891
|
-
this.message = message;
|
2892
|
-
this.response = response;
|
2893
|
-
const parsedResponse = _15Response.parse(response);
|
2894
|
-
this.message = parsedResponse.message || "";
|
2895
|
-
}
|
2896
|
-
throw() {
|
2897
|
-
throw new _15(this.message, this.response);
|
2898
|
-
}
|
2899
|
-
};
|
2900
|
-
|
2901
2593
|
// src/services/purchases/purchases-service.ts
|
2902
2594
|
var PurchasesService = class extends BaseService {
|
2903
2595
|
/**
|
@@ -2907,15 +2599,15 @@ var PurchasesService = class extends BaseService {
|
|
2907
2599
|
*/
|
2908
2600
|
async createPurchaseV2(body, requestConfig) {
|
2909
2601
|
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({
|
2910
|
-
schema:
|
2602
|
+
schema: import_zod33.z.array(createPurchaseV2OkResponseResponse),
|
2911
2603
|
contentType: "json" /* Json */,
|
2912
2604
|
status: 200
|
2913
2605
|
}).addError({
|
2914
|
-
error:
|
2606
|
+
error: BadRequest,
|
2915
2607
|
contentType: "json" /* Json */,
|
2916
2608
|
status: 400
|
2917
2609
|
}).addError({
|
2918
|
-
error:
|
2610
|
+
error: Unauthorized,
|
2919
2611
|
contentType: "json" /* Json */,
|
2920
2612
|
status: 401
|
2921
2613
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
|
@@ -2936,16 +2628,16 @@ var PurchasesService = class extends BaseService {
|
|
2936
2628
|
* @returns {Promise<HttpResponse<ListPurchasesOkResponse>>} Successful Response
|
2937
2629
|
*/
|
2938
2630
|
async listPurchases(params, requestConfig) {
|
2939
|
-
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(
|
2631
|
+
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(import_zod33.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
2940
2632
|
schema: listPurchasesOkResponseResponse,
|
2941
2633
|
contentType: "json" /* Json */,
|
2942
2634
|
status: 200
|
2943
2635
|
}).addError({
|
2944
|
-
error:
|
2636
|
+
error: BadRequest,
|
2945
2637
|
contentType: "json" /* Json */,
|
2946
2638
|
status: 400
|
2947
2639
|
}).addError({
|
2948
|
-
error:
|
2640
|
+
error: Unauthorized,
|
2949
2641
|
contentType: "json" /* Json */,
|
2950
2642
|
status: 401
|
2951
2643
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addQueryParam({
|
@@ -2989,11 +2681,11 @@ var PurchasesService = class extends BaseService {
|
|
2989
2681
|
contentType: "json" /* Json */,
|
2990
2682
|
status: 200
|
2991
2683
|
}).addError({
|
2992
|
-
error:
|
2684
|
+
error: BadRequest,
|
2993
2685
|
contentType: "json" /* Json */,
|
2994
2686
|
status: 400
|
2995
2687
|
}).addError({
|
2996
|
-
error:
|
2688
|
+
error: Unauthorized,
|
2997
2689
|
contentType: "json" /* Json */,
|
2998
2690
|
status: 401
|
2999
2691
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
|
@@ -3010,18 +2702,25 @@ var PurchasesService = class extends BaseService {
|
|
3010
2702
|
contentType: "json" /* Json */,
|
3011
2703
|
status: 200
|
3012
2704
|
}).addError({
|
3013
|
-
error:
|
2705
|
+
error: BadRequest,
|
3014
2706
|
contentType: "json" /* Json */,
|
3015
2707
|
status: 400
|
3016
2708
|
}).addError({
|
3017
|
-
error:
|
2709
|
+
error: Unauthorized,
|
3018
2710
|
contentType: "json" /* Json */,
|
3019
2711
|
status: 401
|
3020
2712
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
|
3021
2713
|
return this.client.call(request);
|
3022
2714
|
}
|
3023
2715
|
/**
|
3024
|
-
* This endpoint allows you to modify the dates of an existing
|
2716
|
+
* This endpoint allows you to modify the validity dates of an existing purchase.
|
2717
|
+
**Behavior:**
|
2718
|
+
- If the purchase has **not yet been activated**, both the start and end dates can be updated.
|
2719
|
+
- If the purchase is **already active**, only the **end date** can be updated, while the **start date must remain unchanged** (and should be passed as originally set).
|
2720
|
+
- Updates must comply with the same pricing structure; the modification cannot alter the package size or change its duration category.
|
2721
|
+
|
2722
|
+
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.
|
2723
|
+
|
3025
2724
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
3026
2725
|
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
3027
2726
|
*/
|
@@ -3031,11 +2730,11 @@ var PurchasesService = class extends BaseService {
|
|
3031
2730
|
contentType: "json" /* Json */,
|
3032
2731
|
status: 200
|
3033
2732
|
}).addError({
|
3034
|
-
error:
|
2733
|
+
error: BadRequest,
|
3035
2734
|
contentType: "json" /* Json */,
|
3036
2735
|
status: 400
|
3037
2736
|
}).addError({
|
3038
|
-
error:
|
2737
|
+
error: Unauthorized,
|
3039
2738
|
contentType: "json" /* Json */,
|
3040
2739
|
status: 401
|
3041
2740
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
|
@@ -3048,16 +2747,16 @@ var PurchasesService = class extends BaseService {
|
|
3048
2747
|
* @returns {Promise<HttpResponse<GetPurchaseConsumptionOkResponse>>} Successful Response
|
3049
2748
|
*/
|
3050
2749
|
async getPurchaseConsumption(purchaseId, requestConfig) {
|
3051
|
-
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(
|
2750
|
+
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(import_zod33.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
3052
2751
|
schema: getPurchaseConsumptionOkResponseResponse,
|
3053
2752
|
contentType: "json" /* Json */,
|
3054
2753
|
status: 200
|
3055
2754
|
}).addError({
|
3056
|
-
error:
|
2755
|
+
error: BadRequest,
|
3057
2756
|
contentType: "json" /* Json */,
|
3058
2757
|
status: 400
|
3059
2758
|
}).addError({
|
3060
|
-
error:
|
2759
|
+
error: Unauthorized,
|
3061
2760
|
contentType: "json" /* Json */,
|
3062
2761
|
status: 401
|
3063
2762
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
@@ -3069,47 +2768,52 @@ var PurchasesService = class extends BaseService {
|
|
3069
2768
|
};
|
3070
2769
|
|
3071
2770
|
// src/services/e-sim/e-sim-service.ts
|
3072
|
-
var
|
2771
|
+
var import_zod41 = require("zod");
|
3073
2772
|
|
3074
2773
|
// src/services/e-sim/models/get-esim-ok-response.ts
|
3075
|
-
var
|
2774
|
+
var import_zod35 = require("zod");
|
3076
2775
|
|
3077
2776
|
// src/services/e-sim/models/get-esim-ok-response-esim.ts
|
3078
|
-
var
|
3079
|
-
var getEsimOkResponseEsim =
|
3080
|
-
return
|
3081
|
-
iccid:
|
3082
|
-
smdpAddress:
|
3083
|
-
|
3084
|
-
|
3085
|
-
|
2777
|
+
var import_zod34 = require("zod");
|
2778
|
+
var getEsimOkResponseEsim = import_zod34.z.lazy(() => {
|
2779
|
+
return import_zod34.z.object({
|
2780
|
+
iccid: import_zod34.z.string().min(18).max(22),
|
2781
|
+
smdpAddress: import_zod34.z.string(),
|
2782
|
+
activationCode: import_zod34.z.string().min(1e3).max(8e3),
|
2783
|
+
manualActivationCode: import_zod34.z.string(),
|
2784
|
+
status: import_zod34.z.string(),
|
2785
|
+
isTopUpAllowed: import_zod34.z.boolean()
|
3086
2786
|
});
|
3087
2787
|
});
|
3088
|
-
var getEsimOkResponseEsimResponse =
|
3089
|
-
return
|
3090
|
-
iccid:
|
3091
|
-
smdpAddress:
|
3092
|
-
|
3093
|
-
|
3094
|
-
|
2788
|
+
var getEsimOkResponseEsimResponse = import_zod34.z.lazy(() => {
|
2789
|
+
return import_zod34.z.object({
|
2790
|
+
iccid: import_zod34.z.string().min(18).max(22),
|
2791
|
+
smdpAddress: import_zod34.z.string(),
|
2792
|
+
activationCode: import_zod34.z.string().min(1e3).max(8e3),
|
2793
|
+
manualActivationCode: import_zod34.z.string(),
|
2794
|
+
status: import_zod34.z.string(),
|
2795
|
+
isTopUpAllowed: import_zod34.z.boolean()
|
3095
2796
|
}).transform((data) => ({
|
3096
2797
|
iccid: data["iccid"],
|
3097
2798
|
smdpAddress: data["smdpAddress"],
|
2799
|
+
activationCode: data["activationCode"],
|
3098
2800
|
manualActivationCode: data["manualActivationCode"],
|
3099
2801
|
status: data["status"],
|
3100
2802
|
isTopUpAllowed: data["isTopUpAllowed"]
|
3101
2803
|
}));
|
3102
2804
|
});
|
3103
|
-
var getEsimOkResponseEsimRequest =
|
3104
|
-
return
|
3105
|
-
iccid:
|
3106
|
-
smdpAddress:
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
2805
|
+
var getEsimOkResponseEsimRequest = import_zod34.z.lazy(() => {
|
2806
|
+
return import_zod34.z.object({
|
2807
|
+
iccid: import_zod34.z.string().min(18).max(22),
|
2808
|
+
smdpAddress: import_zod34.z.string(),
|
2809
|
+
activationCode: import_zod34.z.string().min(1e3).max(8e3),
|
2810
|
+
manualActivationCode: import_zod34.z.string(),
|
2811
|
+
status: import_zod34.z.string(),
|
2812
|
+
isTopUpAllowed: import_zod34.z.boolean()
|
3110
2813
|
}).transform((data) => ({
|
3111
2814
|
iccid: data["iccid"],
|
3112
2815
|
smdpAddress: data["smdpAddress"],
|
2816
|
+
activationCode: data["activationCode"],
|
3113
2817
|
manualActivationCode: data["manualActivationCode"],
|
3114
2818
|
status: data["status"],
|
3115
2819
|
isTopUpAllowed: data["isTopUpAllowed"]
|
@@ -3117,89 +2821,45 @@ var getEsimOkResponseEsimRequest = import_zod48.z.lazy(() => {
|
|
3117
2821
|
});
|
3118
2822
|
|
3119
2823
|
// src/services/e-sim/models/get-esim-ok-response.ts
|
3120
|
-
var getEsimOkResponse =
|
3121
|
-
return
|
3122
|
-
esim: getEsimOkResponseEsim
|
2824
|
+
var getEsimOkResponse = import_zod35.z.lazy(() => {
|
2825
|
+
return import_zod35.z.object({
|
2826
|
+
esim: getEsimOkResponseEsim
|
3123
2827
|
});
|
3124
2828
|
});
|
3125
|
-
var getEsimOkResponseResponse =
|
3126
|
-
return
|
3127
|
-
esim: getEsimOkResponseEsimResponse
|
2829
|
+
var getEsimOkResponseResponse = import_zod35.z.lazy(() => {
|
2830
|
+
return import_zod35.z.object({
|
2831
|
+
esim: getEsimOkResponseEsimResponse
|
3128
2832
|
}).transform((data) => ({
|
3129
2833
|
esim: data["esim"]
|
3130
2834
|
}));
|
3131
2835
|
});
|
3132
|
-
var getEsimOkResponseRequest =
|
3133
|
-
return
|
3134
|
-
esim: getEsimOkResponseEsimRequest
|
2836
|
+
var getEsimOkResponseRequest = import_zod35.z.lazy(() => {
|
2837
|
+
return import_zod35.z.object({
|
2838
|
+
esim: getEsimOkResponseEsimRequest
|
3135
2839
|
}).transform((data) => ({
|
3136
2840
|
esim: data["esim"]
|
3137
2841
|
}));
|
3138
2842
|
});
|
3139
2843
|
|
3140
|
-
// src/services/e-sim/models/_16.ts
|
3141
|
-
var import_zod50 = require("zod");
|
3142
|
-
var _16Response = import_zod50.z.lazy(() => {
|
3143
|
-
return import_zod50.z.object({
|
3144
|
-
message: import_zod50.z.string().optional()
|
3145
|
-
}).transform((data) => ({
|
3146
|
-
message: data["message"]
|
3147
|
-
}));
|
3148
|
-
});
|
3149
|
-
var _16 = class extends ThrowableError {
|
3150
|
-
constructor(message, response) {
|
3151
|
-
super(message);
|
3152
|
-
this.message = message;
|
3153
|
-
this.response = response;
|
3154
|
-
const parsedResponse = _16Response.parse(response);
|
3155
|
-
this.message = parsedResponse.message || "";
|
3156
|
-
}
|
3157
|
-
throw() {
|
3158
|
-
throw new _16(this.message, this.response);
|
3159
|
-
}
|
3160
|
-
};
|
3161
|
-
|
3162
|
-
// src/services/e-sim/models/_17.ts
|
3163
|
-
var import_zod51 = require("zod");
|
3164
|
-
var _17Response = import_zod51.z.lazy(() => {
|
3165
|
-
return import_zod51.z.object({
|
3166
|
-
message: import_zod51.z.string().optional()
|
3167
|
-
}).transform((data) => ({
|
3168
|
-
message: data["message"]
|
3169
|
-
}));
|
3170
|
-
});
|
3171
|
-
var _17 = class extends ThrowableError {
|
3172
|
-
constructor(message, response) {
|
3173
|
-
super(message);
|
3174
|
-
this.message = message;
|
3175
|
-
this.response = response;
|
3176
|
-
const parsedResponse = _17Response.parse(response);
|
3177
|
-
this.message = parsedResponse.message || "";
|
3178
|
-
}
|
3179
|
-
throw() {
|
3180
|
-
throw new _17(this.message, this.response);
|
3181
|
-
}
|
3182
|
-
};
|
3183
|
-
|
3184
2844
|
// src/services/e-sim/models/get-esim-device-ok-response.ts
|
3185
|
-
var
|
2845
|
+
var import_zod37 = require("zod");
|
3186
2846
|
|
3187
2847
|
// src/services/e-sim/models/device.ts
|
3188
|
-
var
|
3189
|
-
var device =
|
3190
|
-
return
|
3191
|
-
oem:
|
3192
|
-
hardwareName:
|
3193
|
-
hardwareModel:
|
3194
|
-
eid:
|
2848
|
+
var import_zod36 = require("zod");
|
2849
|
+
var device = import_zod36.z.lazy(() => {
|
2850
|
+
return import_zod36.z.object({
|
2851
|
+
oem: import_zod36.z.string(),
|
2852
|
+
hardwareName: import_zod36.z.string(),
|
2853
|
+
hardwareModel: import_zod36.z.string(),
|
2854
|
+
eid: import_zod36.z.string()
|
3195
2855
|
});
|
3196
2856
|
});
|
3197
|
-
var deviceResponse =
|
3198
|
-
return
|
3199
|
-
oem:
|
3200
|
-
hardwareName:
|
3201
|
-
hardwareModel:
|
3202
|
-
eid:
|
2857
|
+
var deviceResponse = import_zod36.z.lazy(() => {
|
2858
|
+
return import_zod36.z.object({
|
2859
|
+
oem: import_zod36.z.string(),
|
2860
|
+
hardwareName: import_zod36.z.string(),
|
2861
|
+
hardwareModel: import_zod36.z.string(),
|
2862
|
+
eid: import_zod36.z.string()
|
3203
2863
|
}).transform((data) => ({
|
3204
2864
|
oem: data["oem"],
|
3205
2865
|
hardwareName: data["hardwareName"],
|
@@ -3207,12 +2867,12 @@ var deviceResponse = import_zod52.z.lazy(() => {
|
|
3207
2867
|
eid: data["eid"]
|
3208
2868
|
}));
|
3209
2869
|
});
|
3210
|
-
var deviceRequest =
|
3211
|
-
return
|
3212
|
-
oem:
|
3213
|
-
hardwareName:
|
3214
|
-
hardwareModel:
|
3215
|
-
eid:
|
2870
|
+
var deviceRequest = import_zod36.z.lazy(() => {
|
2871
|
+
return import_zod36.z.object({
|
2872
|
+
oem: import_zod36.z.string(),
|
2873
|
+
hardwareName: import_zod36.z.string(),
|
2874
|
+
hardwareModel: import_zod36.z.string(),
|
2875
|
+
eid: import_zod36.z.string()
|
3216
2876
|
}).transform((data) => ({
|
3217
2877
|
oem: data["oem"],
|
3218
2878
|
hardwareName: data["hardwareName"],
|
@@ -3222,101 +2882,57 @@ var deviceRequest = import_zod52.z.lazy(() => {
|
|
3222
2882
|
});
|
3223
2883
|
|
3224
2884
|
// src/services/e-sim/models/get-esim-device-ok-response.ts
|
3225
|
-
var getEsimDeviceOkResponse =
|
3226
|
-
return
|
3227
|
-
device
|
2885
|
+
var getEsimDeviceOkResponse = import_zod37.z.lazy(() => {
|
2886
|
+
return import_zod37.z.object({
|
2887
|
+
device
|
3228
2888
|
});
|
3229
2889
|
});
|
3230
|
-
var getEsimDeviceOkResponseResponse =
|
3231
|
-
return
|
3232
|
-
device: deviceResponse
|
2890
|
+
var getEsimDeviceOkResponseResponse = import_zod37.z.lazy(() => {
|
2891
|
+
return import_zod37.z.object({
|
2892
|
+
device: deviceResponse
|
3233
2893
|
}).transform((data) => ({
|
3234
2894
|
device: data["device"]
|
3235
2895
|
}));
|
3236
2896
|
});
|
3237
|
-
var getEsimDeviceOkResponseRequest =
|
3238
|
-
return
|
3239
|
-
device: deviceRequest
|
2897
|
+
var getEsimDeviceOkResponseRequest = import_zod37.z.lazy(() => {
|
2898
|
+
return import_zod37.z.object({
|
2899
|
+
device: deviceRequest
|
3240
2900
|
}).transform((data) => ({
|
3241
2901
|
device: data["device"]
|
3242
2902
|
}));
|
3243
2903
|
});
|
3244
2904
|
|
3245
|
-
// src/services/e-sim/models/_18.ts
|
3246
|
-
var import_zod54 = require("zod");
|
3247
|
-
var _18Response = import_zod54.z.lazy(() => {
|
3248
|
-
return import_zod54.z.object({
|
3249
|
-
message: import_zod54.z.string().optional()
|
3250
|
-
}).transform((data) => ({
|
3251
|
-
message: data["message"]
|
3252
|
-
}));
|
3253
|
-
});
|
3254
|
-
var _18 = class extends ThrowableError {
|
3255
|
-
constructor(message, response) {
|
3256
|
-
super(message);
|
3257
|
-
this.message = message;
|
3258
|
-
this.response = response;
|
3259
|
-
const parsedResponse = _18Response.parse(response);
|
3260
|
-
this.message = parsedResponse.message || "";
|
3261
|
-
}
|
3262
|
-
throw() {
|
3263
|
-
throw new _18(this.message, this.response);
|
3264
|
-
}
|
3265
|
-
};
|
3266
|
-
|
3267
|
-
// src/services/e-sim/models/_19.ts
|
3268
|
-
var import_zod55 = require("zod");
|
3269
|
-
var _19Response = import_zod55.z.lazy(() => {
|
3270
|
-
return import_zod55.z.object({
|
3271
|
-
message: import_zod55.z.string().optional()
|
3272
|
-
}).transform((data) => ({
|
3273
|
-
message: data["message"]
|
3274
|
-
}));
|
3275
|
-
});
|
3276
|
-
var _19 = class extends ThrowableError {
|
3277
|
-
constructor(message, response) {
|
3278
|
-
super(message);
|
3279
|
-
this.message = message;
|
3280
|
-
this.response = response;
|
3281
|
-
const parsedResponse = _19Response.parse(response);
|
3282
|
-
this.message = parsedResponse.message || "";
|
3283
|
-
}
|
3284
|
-
throw() {
|
3285
|
-
throw new _19(this.message, this.response);
|
3286
|
-
}
|
3287
|
-
};
|
3288
|
-
|
3289
2905
|
// src/services/e-sim/models/get-esim-history-ok-response.ts
|
3290
|
-
var
|
2906
|
+
var import_zod40 = require("zod");
|
3291
2907
|
|
3292
2908
|
// src/services/e-sim/models/get-esim-history-ok-response-esim.ts
|
3293
|
-
var
|
2909
|
+
var import_zod39 = require("zod");
|
3294
2910
|
|
3295
2911
|
// src/services/e-sim/models/history.ts
|
3296
|
-
var
|
3297
|
-
var history =
|
3298
|
-
return
|
3299
|
-
status:
|
3300
|
-
statusDate:
|
3301
|
-
date:
|
2912
|
+
var import_zod38 = require("zod");
|
2913
|
+
var history = import_zod38.z.lazy(() => {
|
2914
|
+
return import_zod38.z.object({
|
2915
|
+
status: import_zod38.z.string(),
|
2916
|
+
statusDate: import_zod38.z.string(),
|
2917
|
+
date: import_zod38.z.number().optional()
|
3302
2918
|
});
|
3303
2919
|
});
|
3304
|
-
var historyResponse =
|
3305
|
-
return
|
3306
|
-
status:
|
3307
|
-
statusDate:
|
3308
|
-
date:
|
2920
|
+
var historyResponse = import_zod38.z.lazy(() => {
|
2921
|
+
return import_zod38.z.object({
|
2922
|
+
status: import_zod38.z.string(),
|
2923
|
+
statusDate: import_zod38.z.string(),
|
2924
|
+
date: import_zod38.z.number().optional()
|
3309
2925
|
}).transform((data) => ({
|
3310
2926
|
status: data["status"],
|
3311
2927
|
statusDate: data["statusDate"],
|
3312
2928
|
date: data["date"]
|
3313
2929
|
}));
|
3314
2930
|
});
|
3315
|
-
var historyRequest =
|
3316
|
-
return
|
3317
|
-
status:
|
3318
|
-
statusDate:
|
3319
|
-
date:
|
2931
|
+
var historyRequest = import_zod38.z.lazy(() => {
|
2932
|
+
return import_zod38.z.object({
|
2933
|
+
status: import_zod38.z.string(),
|
2934
|
+
statusDate: import_zod38.z.string(),
|
2935
|
+
date: import_zod38.z.number().optional()
|
3320
2936
|
}).transform((data) => ({
|
3321
2937
|
status: data["status"],
|
3322
2938
|
statusDate: data["statusDate"],
|
@@ -3325,25 +2941,25 @@ var historyRequest = import_zod56.z.lazy(() => {
|
|
3325
2941
|
});
|
3326
2942
|
|
3327
2943
|
// src/services/e-sim/models/get-esim-history-ok-response-esim.ts
|
3328
|
-
var getEsimHistoryOkResponseEsim =
|
3329
|
-
return
|
3330
|
-
iccid:
|
3331
|
-
history:
|
2944
|
+
var getEsimHistoryOkResponseEsim = import_zod39.z.lazy(() => {
|
2945
|
+
return import_zod39.z.object({
|
2946
|
+
iccid: import_zod39.z.string().min(18).max(22),
|
2947
|
+
history: import_zod39.z.array(history)
|
3332
2948
|
});
|
3333
2949
|
});
|
3334
|
-
var getEsimHistoryOkResponseEsimResponse =
|
3335
|
-
return
|
3336
|
-
iccid:
|
3337
|
-
history:
|
2950
|
+
var getEsimHistoryOkResponseEsimResponse = import_zod39.z.lazy(() => {
|
2951
|
+
return import_zod39.z.object({
|
2952
|
+
iccid: import_zod39.z.string().min(18).max(22),
|
2953
|
+
history: import_zod39.z.array(historyResponse)
|
3338
2954
|
}).transform((data) => ({
|
3339
2955
|
iccid: data["iccid"],
|
3340
2956
|
history: data["history"]
|
3341
2957
|
}));
|
3342
2958
|
});
|
3343
|
-
var getEsimHistoryOkResponseEsimRequest =
|
3344
|
-
return
|
3345
|
-
iccid:
|
3346
|
-
history:
|
2959
|
+
var getEsimHistoryOkResponseEsimRequest = import_zod39.z.lazy(() => {
|
2960
|
+
return import_zod39.z.object({
|
2961
|
+
iccid: import_zod39.z.string().min(18).max(22),
|
2962
|
+
history: import_zod39.z.array(historyRequest)
|
3347
2963
|
}).transform((data) => ({
|
3348
2964
|
iccid: data["iccid"],
|
3349
2965
|
history: data["history"]
|
@@ -3351,189 +2967,45 @@ var getEsimHistoryOkResponseEsimRequest = import_zod57.z.lazy(() => {
|
|
3351
2967
|
});
|
3352
2968
|
|
3353
2969
|
// src/services/e-sim/models/get-esim-history-ok-response.ts
|
3354
|
-
var getEsimHistoryOkResponse =
|
3355
|
-
return
|
3356
|
-
esim: getEsimHistoryOkResponseEsim
|
3357
|
-
});
|
3358
|
-
});
|
3359
|
-
var getEsimHistoryOkResponseResponse = import_zod58.z.lazy(() => {
|
3360
|
-
return import_zod58.z.object({
|
3361
|
-
esim: getEsimHistoryOkResponseEsimResponse.optional()
|
3362
|
-
}).transform((data) => ({
|
3363
|
-
esim: data["esim"]
|
3364
|
-
}));
|
3365
|
-
});
|
3366
|
-
var getEsimHistoryOkResponseRequest = import_zod58.z.lazy(() => {
|
3367
|
-
return import_zod58.z.object({
|
3368
|
-
esim: getEsimHistoryOkResponseEsimRequest.optional()
|
3369
|
-
}).transform((data) => ({
|
3370
|
-
esim: data["esim"]
|
3371
|
-
}));
|
3372
|
-
});
|
3373
|
-
|
3374
|
-
// src/services/e-sim/models/_20.ts
|
3375
|
-
var import_zod59 = require("zod");
|
3376
|
-
var _20Response = import_zod59.z.lazy(() => {
|
3377
|
-
return import_zod59.z.object({
|
3378
|
-
message: import_zod59.z.string().optional()
|
3379
|
-
}).transform((data) => ({
|
3380
|
-
message: data["message"]
|
3381
|
-
}));
|
3382
|
-
});
|
3383
|
-
var _20 = class extends ThrowableError {
|
3384
|
-
constructor(message, response) {
|
3385
|
-
super(message);
|
3386
|
-
this.message = message;
|
3387
|
-
this.response = response;
|
3388
|
-
const parsedResponse = _20Response.parse(response);
|
3389
|
-
this.message = parsedResponse.message || "";
|
3390
|
-
}
|
3391
|
-
throw() {
|
3392
|
-
throw new _20(this.message, this.response);
|
3393
|
-
}
|
3394
|
-
};
|
3395
|
-
|
3396
|
-
// src/services/e-sim/models/_21.ts
|
3397
|
-
var import_zod60 = require("zod");
|
3398
|
-
var _21Response = import_zod60.z.lazy(() => {
|
3399
|
-
return import_zod60.z.object({
|
3400
|
-
message: import_zod60.z.string().optional()
|
3401
|
-
}).transform((data) => ({
|
3402
|
-
message: data["message"]
|
3403
|
-
}));
|
3404
|
-
});
|
3405
|
-
var _21 = class extends ThrowableError {
|
3406
|
-
constructor(message, response) {
|
3407
|
-
super(message);
|
3408
|
-
this.message = message;
|
3409
|
-
this.response = response;
|
3410
|
-
const parsedResponse = _21Response.parse(response);
|
3411
|
-
this.message = parsedResponse.message || "";
|
3412
|
-
}
|
3413
|
-
throw() {
|
3414
|
-
throw new _21(this.message, this.response);
|
3415
|
-
}
|
3416
|
-
};
|
3417
|
-
|
3418
|
-
// src/services/e-sim/models/get-esim-mac-ok-response.ts
|
3419
|
-
var import_zod62 = require("zod");
|
3420
|
-
|
3421
|
-
// src/services/e-sim/models/get-esim-mac-ok-response-esim.ts
|
3422
|
-
var import_zod61 = require("zod");
|
3423
|
-
var getEsimMacOkResponseEsim = import_zod61.z.lazy(() => {
|
3424
|
-
return import_zod61.z.object({
|
3425
|
-
iccid: import_zod61.z.string().min(18).max(22).optional(),
|
3426
|
-
smdpAddress: import_zod61.z.string().optional(),
|
3427
|
-
manualActivationCode: import_zod61.z.string().optional()
|
3428
|
-
});
|
3429
|
-
});
|
3430
|
-
var getEsimMacOkResponseEsimResponse = import_zod61.z.lazy(() => {
|
3431
|
-
return import_zod61.z.object({
|
3432
|
-
iccid: import_zod61.z.string().min(18).max(22).optional(),
|
3433
|
-
smdpAddress: import_zod61.z.string().optional(),
|
3434
|
-
manualActivationCode: import_zod61.z.string().optional()
|
3435
|
-
}).transform((data) => ({
|
3436
|
-
iccid: data["iccid"],
|
3437
|
-
smdpAddress: data["smdpAddress"],
|
3438
|
-
manualActivationCode: data["manualActivationCode"]
|
3439
|
-
}));
|
3440
|
-
});
|
3441
|
-
var getEsimMacOkResponseEsimRequest = import_zod61.z.lazy(() => {
|
3442
|
-
return import_zod61.z.object({
|
3443
|
-
iccid: import_zod61.z.string().min(18).max(22).optional(),
|
3444
|
-
smdpAddress: import_zod61.z.string().optional(),
|
3445
|
-
manualActivationCode: import_zod61.z.string().optional()
|
3446
|
-
}).transform((data) => ({
|
3447
|
-
iccid: data["iccid"],
|
3448
|
-
smdpAddress: data["smdpAddress"],
|
3449
|
-
manualActivationCode: data["manualActivationCode"]
|
3450
|
-
}));
|
3451
|
-
});
|
3452
|
-
|
3453
|
-
// src/services/e-sim/models/get-esim-mac-ok-response.ts
|
3454
|
-
var getEsimMacOkResponse = import_zod62.z.lazy(() => {
|
3455
|
-
return import_zod62.z.object({
|
3456
|
-
esim: getEsimMacOkResponseEsim.optional()
|
2970
|
+
var getEsimHistoryOkResponse = import_zod40.z.lazy(() => {
|
2971
|
+
return import_zod40.z.object({
|
2972
|
+
esim: getEsimHistoryOkResponseEsim
|
3457
2973
|
});
|
3458
2974
|
});
|
3459
|
-
var
|
3460
|
-
return
|
3461
|
-
esim:
|
2975
|
+
var getEsimHistoryOkResponseResponse = import_zod40.z.lazy(() => {
|
2976
|
+
return import_zod40.z.object({
|
2977
|
+
esim: getEsimHistoryOkResponseEsimResponse
|
3462
2978
|
}).transform((data) => ({
|
3463
2979
|
esim: data["esim"]
|
3464
2980
|
}));
|
3465
2981
|
});
|
3466
|
-
var
|
3467
|
-
return
|
3468
|
-
esim:
|
2982
|
+
var getEsimHistoryOkResponseRequest = import_zod40.z.lazy(() => {
|
2983
|
+
return import_zod40.z.object({
|
2984
|
+
esim: getEsimHistoryOkResponseEsimRequest
|
3469
2985
|
}).transform((data) => ({
|
3470
2986
|
esim: data["esim"]
|
3471
2987
|
}));
|
3472
2988
|
});
|
3473
2989
|
|
3474
|
-
// src/services/e-sim/models/_22.ts
|
3475
|
-
var import_zod63 = require("zod");
|
3476
|
-
var _22Response = import_zod63.z.lazy(() => {
|
3477
|
-
return import_zod63.z.object({
|
3478
|
-
message: import_zod63.z.string().optional()
|
3479
|
-
}).transform((data) => ({
|
3480
|
-
message: data["message"]
|
3481
|
-
}));
|
3482
|
-
});
|
3483
|
-
var _22 = class extends ThrowableError {
|
3484
|
-
constructor(message, response) {
|
3485
|
-
super(message);
|
3486
|
-
this.message = message;
|
3487
|
-
this.response = response;
|
3488
|
-
const parsedResponse = _22Response.parse(response);
|
3489
|
-
this.message = parsedResponse.message || "";
|
3490
|
-
}
|
3491
|
-
throw() {
|
3492
|
-
throw new _22(this.message, this.response);
|
3493
|
-
}
|
3494
|
-
};
|
3495
|
-
|
3496
|
-
// src/services/e-sim/models/_23.ts
|
3497
|
-
var import_zod64 = require("zod");
|
3498
|
-
var _23Response = import_zod64.z.lazy(() => {
|
3499
|
-
return import_zod64.z.object({
|
3500
|
-
message: import_zod64.z.string().optional()
|
3501
|
-
}).transform((data) => ({
|
3502
|
-
message: data["message"]
|
3503
|
-
}));
|
3504
|
-
});
|
3505
|
-
var _23 = class extends ThrowableError {
|
3506
|
-
constructor(message, response) {
|
3507
|
-
super(message);
|
3508
|
-
this.message = message;
|
3509
|
-
this.response = response;
|
3510
|
-
const parsedResponse = _23Response.parse(response);
|
3511
|
-
this.message = parsedResponse.message || "";
|
3512
|
-
}
|
3513
|
-
throw() {
|
3514
|
-
throw new _23(this.message, this.response);
|
3515
|
-
}
|
3516
|
-
};
|
3517
|
-
|
3518
2990
|
// src/services/e-sim/e-sim-service.ts
|
3519
2991
|
var ESimService = class extends BaseService {
|
3520
2992
|
/**
|
3521
|
-
* Get eSIM
|
2993
|
+
* Get eSIM
|
3522
2994
|
* @param {string} iccid - ID of the eSIM
|
3523
2995
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
3524
2996
|
* @returns {Promise<HttpResponse<GetEsimOkResponse>>} Successful Response
|
3525
2997
|
*/
|
3526
2998
|
async getEsim(params, requestConfig) {
|
3527
|
-
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(
|
2999
|
+
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(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
3528
3000
|
schema: getEsimOkResponseResponse,
|
3529
3001
|
contentType: "json" /* Json */,
|
3530
3002
|
status: 200
|
3531
3003
|
}).addError({
|
3532
|
-
error:
|
3004
|
+
error: BadRequest,
|
3533
3005
|
contentType: "json" /* Json */,
|
3534
3006
|
status: 400
|
3535
3007
|
}).addError({
|
3536
|
-
error:
|
3008
|
+
error: Unauthorized,
|
3537
3009
|
contentType: "json" /* Json */,
|
3538
3010
|
status: 401
|
3539
3011
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addQueryParam({
|
@@ -3549,16 +3021,16 @@ var ESimService = class extends BaseService {
|
|
3549
3021
|
* @returns {Promise<HttpResponse<GetEsimDeviceOkResponse>>} Successful Response
|
3550
3022
|
*/
|
3551
3023
|
async getEsimDevice(iccid, requestConfig) {
|
3552
|
-
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(
|
3024
|
+
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(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
3553
3025
|
schema: getEsimDeviceOkResponseResponse,
|
3554
3026
|
contentType: "json" /* Json */,
|
3555
3027
|
status: 200
|
3556
3028
|
}).addError({
|
3557
|
-
error:
|
3029
|
+
error: BadRequest,
|
3558
3030
|
contentType: "json" /* Json */,
|
3559
3031
|
status: 400
|
3560
3032
|
}).addError({
|
3561
|
-
error:
|
3033
|
+
error: Unauthorized,
|
3562
3034
|
contentType: "json" /* Json */,
|
3563
3035
|
status: 401
|
3564
3036
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
@@ -3574,41 +3046,16 @@ var ESimService = class extends BaseService {
|
|
3574
3046
|
* @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} Successful Response
|
3575
3047
|
*/
|
3576
3048
|
async getEsimHistory(iccid, requestConfig) {
|
3577
|
-
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(
|
3049
|
+
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(import_zod41.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
3578
3050
|
schema: getEsimHistoryOkResponseResponse,
|
3579
3051
|
contentType: "json" /* Json */,
|
3580
3052
|
status: 200
|
3581
3053
|
}).addError({
|
3582
|
-
error:
|
3054
|
+
error: BadRequest,
|
3583
3055
|
contentType: "json" /* Json */,
|
3584
3056
|
status: 400
|
3585
3057
|
}).addError({
|
3586
|
-
error:
|
3587
|
-
contentType: "json" /* Json */,
|
3588
|
-
status: 401
|
3589
|
-
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
3590
|
-
key: "iccid",
|
3591
|
-
value: iccid
|
3592
|
-
}).build();
|
3593
|
-
return this.client.call(request);
|
3594
|
-
}
|
3595
|
-
/**
|
3596
|
-
* Get eSIM MAC
|
3597
|
-
* @param {string} iccid - ID of the eSIM
|
3598
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
3599
|
-
* @returns {Promise<HttpResponse<GetEsimMacOkResponse>>} Successful Response
|
3600
|
-
*/
|
3601
|
-
async getEsimMac(iccid, requestConfig) {
|
3602
|
-
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}/mac").setRequestSchema(import_zod65.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
3603
|
-
schema: getEsimMacOkResponseResponse,
|
3604
|
-
contentType: "json" /* Json */,
|
3605
|
-
status: 200
|
3606
|
-
}).addError({
|
3607
|
-
error: _22,
|
3608
|
-
contentType: "json" /* Json */,
|
3609
|
-
status: 400
|
3610
|
-
}).addError({
|
3611
|
-
error: _23,
|
3058
|
+
error: Unauthorized,
|
3612
3059
|
contentType: "json" /* Json */,
|
3613
3060
|
status: 401
|
3614
3061
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
@@ -3620,74 +3067,30 @@ var ESimService = class extends BaseService {
|
|
3620
3067
|
};
|
3621
3068
|
|
3622
3069
|
// src/services/i-frame/i-frame-service.ts
|
3623
|
-
var
|
3070
|
+
var import_zod43 = require("zod");
|
3624
3071
|
|
3625
3072
|
// src/services/i-frame/models/token-ok-response.ts
|
3626
|
-
var
|
3627
|
-
var tokenOkResponse =
|
3628
|
-
return
|
3629
|
-
token:
|
3073
|
+
var import_zod42 = require("zod");
|
3074
|
+
var tokenOkResponse = import_zod42.z.lazy(() => {
|
3075
|
+
return import_zod42.z.object({
|
3076
|
+
token: import_zod42.z.string()
|
3630
3077
|
});
|
3631
3078
|
});
|
3632
|
-
var tokenOkResponseResponse =
|
3633
|
-
return
|
3634
|
-
token:
|
3079
|
+
var tokenOkResponseResponse = import_zod42.z.lazy(() => {
|
3080
|
+
return import_zod42.z.object({
|
3081
|
+
token: import_zod42.z.string()
|
3635
3082
|
}).transform((data) => ({
|
3636
3083
|
token: data["token"]
|
3637
3084
|
}));
|
3638
3085
|
});
|
3639
|
-
var tokenOkResponseRequest =
|
3640
|
-
return
|
3641
|
-
token:
|
3086
|
+
var tokenOkResponseRequest = import_zod42.z.lazy(() => {
|
3087
|
+
return import_zod42.z.object({
|
3088
|
+
token: import_zod42.z.string()
|
3642
3089
|
}).transform((data) => ({
|
3643
3090
|
token: data["token"]
|
3644
3091
|
}));
|
3645
3092
|
});
|
3646
3093
|
|
3647
|
-
// src/services/i-frame/models/_24.ts
|
3648
|
-
var import_zod67 = require("zod");
|
3649
|
-
var _24Response = import_zod67.z.lazy(() => {
|
3650
|
-
return import_zod67.z.object({
|
3651
|
-
message: import_zod67.z.string().optional()
|
3652
|
-
}).transform((data) => ({
|
3653
|
-
message: data["message"]
|
3654
|
-
}));
|
3655
|
-
});
|
3656
|
-
var _24 = class extends ThrowableError {
|
3657
|
-
constructor(message, response) {
|
3658
|
-
super(message);
|
3659
|
-
this.message = message;
|
3660
|
-
this.response = response;
|
3661
|
-
const parsedResponse = _24Response.parse(response);
|
3662
|
-
this.message = parsedResponse.message || "";
|
3663
|
-
}
|
3664
|
-
throw() {
|
3665
|
-
throw new _24(this.message, this.response);
|
3666
|
-
}
|
3667
|
-
};
|
3668
|
-
|
3669
|
-
// src/services/i-frame/models/_25.ts
|
3670
|
-
var import_zod68 = require("zod");
|
3671
|
-
var _25Response = import_zod68.z.lazy(() => {
|
3672
|
-
return import_zod68.z.object({
|
3673
|
-
message: import_zod68.z.string().optional()
|
3674
|
-
}).transform((data) => ({
|
3675
|
-
message: data["message"]
|
3676
|
-
}));
|
3677
|
-
});
|
3678
|
-
var _25 = class extends ThrowableError {
|
3679
|
-
constructor(message, response) {
|
3680
|
-
super(message);
|
3681
|
-
this.message = message;
|
3682
|
-
this.response = response;
|
3683
|
-
const parsedResponse = _25Response.parse(response);
|
3684
|
-
this.message = parsedResponse.message || "";
|
3685
|
-
}
|
3686
|
-
throw() {
|
3687
|
-
throw new _25(this.message, this.response);
|
3688
|
-
}
|
3689
|
-
};
|
3690
|
-
|
3691
3094
|
// src/services/i-frame/i-frame-service.ts
|
3692
3095
|
var IFrameService = class extends BaseService {
|
3693
3096
|
/**
|
@@ -3696,16 +3099,16 @@ var IFrameService = class extends BaseService {
|
|
3696
3099
|
* @returns {Promise<HttpResponse<TokenOkResponse>>} Successful Response
|
3697
3100
|
*/
|
3698
3101
|
async token(requestConfig) {
|
3699
|
-
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(
|
3102
|
+
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(import_zod43.z.any()).setScopes([]).setTokenManager(this.tokenManager).setRequestContentType("json" /* Json */).addResponse({
|
3700
3103
|
schema: tokenOkResponseResponse,
|
3701
3104
|
contentType: "json" /* Json */,
|
3702
3105
|
status: 200
|
3703
3106
|
}).addError({
|
3704
|
-
error:
|
3107
|
+
error: BadRequest,
|
3705
3108
|
contentType: "json" /* Json */,
|
3706
3109
|
status: 400
|
3707
3110
|
}).addError({
|
3708
|
-
error:
|
3111
|
+
error: Unauthorized,
|
3709
3112
|
contentType: "json" /* Json */,
|
3710
3113
|
status: 401
|
3711
3114
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).build();
|