@oumla/sdk 1.1.0 → 1.2.0
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 +223 -28
- package/dist/index.cjs +424 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +596 -457
- package/dist/index.js +424 -189
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -8,13 +8,17 @@ var __export = (target, all) => {
|
|
|
8
8
|
var api_exports = {};
|
|
9
9
|
__export(api_exports, {
|
|
10
10
|
BadRequestError: () => BadRequestError,
|
|
11
|
+
CreateAddressRequest: () => CreateAddressRequest,
|
|
12
|
+
GetCollectionTokensRequestType: () => GetCollectionTokensRequestType,
|
|
11
13
|
GetDeployedContractsRequestNetwork: () => GetDeployedContractsRequestNetwork,
|
|
14
|
+
NotFoundError: () => NotFoundError,
|
|
12
15
|
addresses: () => addresses_exports,
|
|
13
16
|
assets: () => assets_exports,
|
|
14
17
|
contractInteractions: () => contractInteractions_exports,
|
|
15
18
|
contractTemplates: () => contractTemplates_exports,
|
|
16
19
|
deployedContracts: () => deployedContracts_exports,
|
|
17
20
|
profiles: () => profiles_exports,
|
|
21
|
+
temporal: () => temporal_exports,
|
|
18
22
|
tokenization: () => tokenization_exports,
|
|
19
23
|
transactions: () => transactions_exports,
|
|
20
24
|
wallets: () => wallets_exports,
|
|
@@ -29,10 +33,33 @@ __export(deployedContracts_exports, {
|
|
|
29
33
|
|
|
30
34
|
// api/resources/deployedContracts/types/GetDeployedContractsRequestNetwork.ts
|
|
31
35
|
var GetDeployedContractsRequestNetwork = {
|
|
36
|
+
Btc: "BTC",
|
|
32
37
|
TBtc: "tBTC",
|
|
38
|
+
Eth: "ETH",
|
|
33
39
|
TEth: "tETH"
|
|
34
40
|
};
|
|
35
41
|
|
|
42
|
+
// api/resources/tokenization/index.ts
|
|
43
|
+
var tokenization_exports = {};
|
|
44
|
+
__export(tokenization_exports, {
|
|
45
|
+
GetCollectionTokensRequestType: () => GetCollectionTokensRequestType
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// api/resources/tokenization/types/GetCollectionTokensRequestType.ts
|
|
49
|
+
var GetCollectionTokensRequestType = {
|
|
50
|
+
Mint: "MINT",
|
|
51
|
+
Burn: "BURN"
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// api/resources/tokenization/client/requests/CreateCollectionRequest.ts
|
|
55
|
+
var CreateCollectionRequest;
|
|
56
|
+
((CreateCollectionRequest2) => {
|
|
57
|
+
CreateCollectionRequest2.Type = {
|
|
58
|
+
NonFungibleToken: "NON_FUNGIBLE_TOKEN",
|
|
59
|
+
SemiFungibleToken: "SEMI_FUNGIBLE_TOKEN"
|
|
60
|
+
};
|
|
61
|
+
})(CreateCollectionRequest || (CreateCollectionRequest = {}));
|
|
62
|
+
|
|
36
63
|
// api/resources/profiles/index.ts
|
|
37
64
|
var profiles_exports = {};
|
|
38
65
|
|
|
@@ -53,7 +80,9 @@ var wallets_exports = {};
|
|
|
53
80
|
var CreateWalletRequest;
|
|
54
81
|
((CreateWalletRequest2) => {
|
|
55
82
|
CreateWalletRequest2.Network = {
|
|
83
|
+
Btc: "BTC",
|
|
56
84
|
TBtc: "tBTC",
|
|
85
|
+
Eth: "ETH",
|
|
57
86
|
TEth: "tETH"
|
|
58
87
|
};
|
|
59
88
|
})(CreateWalletRequest || (CreateWalletRequest = {}));
|
|
@@ -61,21 +90,9 @@ var CreateWalletRequest;
|
|
|
61
90
|
// api/resources/addresses/index.ts
|
|
62
91
|
var addresses_exports = {};
|
|
63
92
|
|
|
64
|
-
// api/resources/addresses/client/requests/CreateAddressRequest.ts
|
|
65
|
-
var CreateAddressRequest;
|
|
66
|
-
((CreateAddressRequest2) => {
|
|
67
|
-
CreateAddressRequest2.Network = {
|
|
68
|
-
TBtc: "tBTC",
|
|
69
|
-
TEth: "tETH"
|
|
70
|
-
};
|
|
71
|
-
})(CreateAddressRequest || (CreateAddressRequest = {}));
|
|
72
|
-
|
|
73
93
|
// api/resources/transactions/index.ts
|
|
74
94
|
var transactions_exports = {};
|
|
75
95
|
|
|
76
|
-
// api/resources/assets/index.ts
|
|
77
|
-
var assets_exports = {};
|
|
78
|
-
|
|
79
96
|
// api/resources/withdrawals/index.ts
|
|
80
97
|
var withdrawals_exports = {};
|
|
81
98
|
|
|
@@ -83,7 +100,9 @@ var withdrawals_exports = {};
|
|
|
83
100
|
var CreateWithdrawalRequest;
|
|
84
101
|
((CreateWithdrawalRequest2) => {
|
|
85
102
|
CreateWithdrawalRequest2.Network = {
|
|
103
|
+
Btc: "BTC",
|
|
86
104
|
TBtc: "tBTC",
|
|
105
|
+
Eth: "ETH",
|
|
87
106
|
TEth: "tETH"
|
|
88
107
|
};
|
|
89
108
|
})(CreateWithdrawalRequest || (CreateWithdrawalRequest = {}));
|
|
@@ -115,17 +134,22 @@ var WriteFunctionRequest;
|
|
|
115
134
|
};
|
|
116
135
|
})(WriteFunctionRequest || (WriteFunctionRequest = {}));
|
|
117
136
|
|
|
118
|
-
// api/resources/
|
|
119
|
-
var
|
|
137
|
+
// api/resources/temporal/index.ts
|
|
138
|
+
var temporal_exports = {};
|
|
120
139
|
|
|
121
|
-
// api/resources/
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
140
|
+
// api/resources/assets/index.ts
|
|
141
|
+
var assets_exports = {};
|
|
142
|
+
|
|
143
|
+
// api/types/CreateAddressRequest.ts
|
|
144
|
+
var CreateAddressRequest;
|
|
145
|
+
((CreateAddressRequest2) => {
|
|
146
|
+
CreateAddressRequest2.Network = {
|
|
147
|
+
Btc: "BTC",
|
|
148
|
+
TBtc: "tBTC",
|
|
149
|
+
Eth: "ETH",
|
|
150
|
+
TEth: "tETH"
|
|
127
151
|
};
|
|
128
|
-
})(
|
|
152
|
+
})(CreateAddressRequest || (CreateAddressRequest = {}));
|
|
129
153
|
|
|
130
154
|
// core/json.ts
|
|
131
155
|
var toJson = (value, replacer, space) => {
|
|
@@ -189,6 +213,19 @@ var BadRequestError = class extends OumlaSdkApiError {
|
|
|
189
213
|
}
|
|
190
214
|
};
|
|
191
215
|
|
|
216
|
+
// api/errors/NotFoundError.ts
|
|
217
|
+
var NotFoundError = class extends OumlaSdkApiError {
|
|
218
|
+
constructor(body, rawResponse) {
|
|
219
|
+
super({
|
|
220
|
+
message: "NotFoundError",
|
|
221
|
+
statusCode: 404,
|
|
222
|
+
body,
|
|
223
|
+
rawResponse
|
|
224
|
+
});
|
|
225
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
|
|
192
229
|
// core/fetcher/EndpointSupplier.ts
|
|
193
230
|
var EndpointSupplier = {
|
|
194
231
|
get: async (supplier, arg) => {
|
|
@@ -1488,16 +1525,16 @@ var Addresses = class {
|
|
|
1488
1525
|
* @param {Addresses.RequestOptions} requestOptions - Request-specific configuration.
|
|
1489
1526
|
*
|
|
1490
1527
|
* @example
|
|
1491
|
-
* await client.addresses.
|
|
1528
|
+
* await client.addresses.generateAddressV1({
|
|
1492
1529
|
* reference: "reference",
|
|
1493
1530
|
* network: "BTC",
|
|
1494
1531
|
* clientShare: "clientShare"
|
|
1495
1532
|
* })
|
|
1496
1533
|
*/
|
|
1497
|
-
|
|
1498
|
-
return HttpResponsePromise.fromPromise(this.
|
|
1534
|
+
generateAddressV1(request, requestOptions) {
|
|
1535
|
+
return HttpResponsePromise.fromPromise(this.__generateAddressV1(request, requestOptions));
|
|
1499
1536
|
}
|
|
1500
|
-
async
|
|
1537
|
+
async __generateAddressV1(request, requestOptions) {
|
|
1501
1538
|
let _headers = mergeHeaders(
|
|
1502
1539
|
this._options?.headers,
|
|
1503
1540
|
mergeOnlyDefinedHeaders({
|
|
@@ -1550,45 +1587,23 @@ var Addresses = class {
|
|
|
1550
1587
|
});
|
|
1551
1588
|
}
|
|
1552
1589
|
}
|
|
1553
|
-
async _getAuthorizationHeader() {
|
|
1554
|
-
const bearer = await Supplier.get(this._options.token);
|
|
1555
|
-
if (bearer != null) {
|
|
1556
|
-
return `Bearer ${bearer}`;
|
|
1557
|
-
}
|
|
1558
|
-
return void 0;
|
|
1559
|
-
}
|
|
1560
|
-
};
|
|
1561
|
-
|
|
1562
|
-
// api/resources/transactions/client/Client.ts
|
|
1563
|
-
var Transactions = class {
|
|
1564
|
-
constructor(_options) {
|
|
1565
|
-
this._options = _options;
|
|
1566
|
-
}
|
|
1567
1590
|
/**
|
|
1568
|
-
*
|
|
1591
|
+
* Generate a new address for a profile
|
|
1569
1592
|
*
|
|
1570
|
-
* @param {
|
|
1571
|
-
* @param {
|
|
1572
|
-
* @param {Transactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
1593
|
+
* @param {OumlaSdkApi.CreateAddressRequest} request
|
|
1594
|
+
* @param {Addresses.RequestOptions} requestOptions - Request-specific configuration.
|
|
1573
1595
|
*
|
|
1574
1596
|
* @example
|
|
1575
|
-
* await client.
|
|
1576
|
-
*
|
|
1577
|
-
*
|
|
1597
|
+
* await client.addresses.generateAddressV2({
|
|
1598
|
+
* reference: "reference",
|
|
1599
|
+
* network: "BTC",
|
|
1600
|
+
* clientShare: "clientShare"
|
|
1578
1601
|
* })
|
|
1579
1602
|
*/
|
|
1580
|
-
|
|
1581
|
-
return HttpResponsePromise.fromPromise(this.
|
|
1603
|
+
generateAddressV2(request, requestOptions) {
|
|
1604
|
+
return HttpResponsePromise.fromPromise(this.__generateAddressV2(request, requestOptions));
|
|
1582
1605
|
}
|
|
1583
|
-
async
|
|
1584
|
-
const { skip, take } = request;
|
|
1585
|
-
const _queryParams = {};
|
|
1586
|
-
if (skip != null) {
|
|
1587
|
-
_queryParams["skip"] = skip.toString();
|
|
1588
|
-
}
|
|
1589
|
-
if (take != null) {
|
|
1590
|
-
_queryParams["take"] = take.toString();
|
|
1591
|
-
}
|
|
1606
|
+
async __generateAddressV2(request, requestOptions) {
|
|
1592
1607
|
let _headers = mergeHeaders(
|
|
1593
1608
|
this._options?.headers,
|
|
1594
1609
|
mergeOnlyDefinedHeaders({
|
|
@@ -1601,11 +1616,14 @@ var Transactions = class {
|
|
|
1601
1616
|
const _response = await fetcher({
|
|
1602
1617
|
url: url_exports.join(
|
|
1603
1618
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
1604
|
-
|
|
1619
|
+
"api/v2/addresses/generate"
|
|
1605
1620
|
),
|
|
1606
|
-
method: "
|
|
1621
|
+
method: "POST",
|
|
1607
1622
|
headers: _headers,
|
|
1608
|
-
|
|
1623
|
+
contentType: "application/json",
|
|
1624
|
+
queryParameters: requestOptions?.queryParams,
|
|
1625
|
+
requestType: "json",
|
|
1626
|
+
body: request,
|
|
1609
1627
|
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 6e4,
|
|
1610
1628
|
maxRetries: requestOptions?.maxRetries,
|
|
1611
1629
|
abortSignal: requestOptions?.abortSignal
|
|
@@ -1629,7 +1647,7 @@ var Transactions = class {
|
|
|
1629
1647
|
});
|
|
1630
1648
|
case "timeout":
|
|
1631
1649
|
throw new OumlaSdkApiTimeoutError(
|
|
1632
|
-
"Timeout exceeded when calling
|
|
1650
|
+
"Timeout exceeded when calling POST /api/v2/addresses/generate."
|
|
1633
1651
|
);
|
|
1634
1652
|
case "unknown":
|
|
1635
1653
|
throw new OumlaSdkApiError({
|
|
@@ -1638,98 +1656,37 @@ var Transactions = class {
|
|
|
1638
1656
|
});
|
|
1639
1657
|
}
|
|
1640
1658
|
}
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
* @param {OumlaSdkApi.GetTransactionsByWalletRequest} request
|
|
1646
|
-
* @param {Transactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
1647
|
-
*
|
|
1648
|
-
* @example
|
|
1649
|
-
* await client.transactions.getTransactionsByWallet("miniWalletId", {
|
|
1650
|
-
* skip: 1,
|
|
1651
|
-
* take: 1
|
|
1652
|
-
* })
|
|
1653
|
-
*/
|
|
1654
|
-
getTransactionsByWallet(miniWalletId, request = {}, requestOptions) {
|
|
1655
|
-
return HttpResponsePromise.fromPromise(
|
|
1656
|
-
this.__getTransactionsByWallet(miniWalletId, request, requestOptions)
|
|
1657
|
-
);
|
|
1658
|
-
}
|
|
1659
|
-
async __getTransactionsByWallet(miniWalletId, request = {}, requestOptions) {
|
|
1660
|
-
const { skip, take } = request;
|
|
1661
|
-
const _queryParams = {};
|
|
1662
|
-
if (skip != null) {
|
|
1663
|
-
_queryParams["skip"] = skip.toString();
|
|
1664
|
-
}
|
|
1665
|
-
if (take != null) {
|
|
1666
|
-
_queryParams["take"] = take.toString();
|
|
1667
|
-
}
|
|
1668
|
-
let _headers = mergeHeaders(
|
|
1669
|
-
this._options?.headers,
|
|
1670
|
-
mergeOnlyDefinedHeaders({
|
|
1671
|
-
Authorization: await this._getAuthorizationHeader(),
|
|
1672
|
-
"x-sdk-version": requestOptions?.sdkVersion ?? "1.0.0",
|
|
1673
|
-
"x-api-key": requestOptions?.apiKey ?? this._options?.apiKey
|
|
1674
|
-
}),
|
|
1675
|
-
requestOptions?.headers
|
|
1676
|
-
);
|
|
1677
|
-
const _response = await fetcher({
|
|
1678
|
-
url: url_exports.join(
|
|
1679
|
-
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
1680
|
-
`api/v1/transactions/wallet/${encodeURIComponent(miniWalletId)}`
|
|
1681
|
-
),
|
|
1682
|
-
method: "GET",
|
|
1683
|
-
headers: _headers,
|
|
1684
|
-
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1685
|
-
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 6e4,
|
|
1686
|
-
maxRetries: requestOptions?.maxRetries,
|
|
1687
|
-
abortSignal: requestOptions?.abortSignal
|
|
1688
|
-
});
|
|
1689
|
-
if (_response.ok) {
|
|
1690
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1691
|
-
}
|
|
1692
|
-
if (_response.error.reason === "status-code") {
|
|
1693
|
-
throw new OumlaSdkApiError({
|
|
1694
|
-
statusCode: _response.error.statusCode,
|
|
1695
|
-
body: _response.error.body,
|
|
1696
|
-
rawResponse: _response.rawResponse
|
|
1697
|
-
});
|
|
1698
|
-
}
|
|
1699
|
-
switch (_response.error.reason) {
|
|
1700
|
-
case "non-json":
|
|
1701
|
-
throw new OumlaSdkApiError({
|
|
1702
|
-
statusCode: _response.error.statusCode,
|
|
1703
|
-
body: _response.error.rawBody,
|
|
1704
|
-
rawResponse: _response.rawResponse
|
|
1705
|
-
});
|
|
1706
|
-
case "timeout":
|
|
1707
|
-
throw new OumlaSdkApiTimeoutError(
|
|
1708
|
-
"Timeout exceeded when calling GET /api/v1/transactions/wallet/{miniWalletId}."
|
|
1709
|
-
);
|
|
1710
|
-
case "unknown":
|
|
1711
|
-
throw new OumlaSdkApiError({
|
|
1712
|
-
message: _response.error.errorMessage,
|
|
1713
|
-
rawResponse: _response.rawResponse
|
|
1714
|
-
});
|
|
1659
|
+
async _getAuthorizationHeader() {
|
|
1660
|
+
const bearer = await Supplier.get(this._options.token);
|
|
1661
|
+
if (bearer != null) {
|
|
1662
|
+
return `Bearer ${bearer}`;
|
|
1715
1663
|
}
|
|
1664
|
+
return void 0;
|
|
1665
|
+
}
|
|
1666
|
+
};
|
|
1667
|
+
|
|
1668
|
+
// api/resources/transactions/client/Client.ts
|
|
1669
|
+
var Transactions = class {
|
|
1670
|
+
constructor(_options) {
|
|
1671
|
+
this._options = _options;
|
|
1716
1672
|
}
|
|
1717
1673
|
/**
|
|
1718
|
-
* Retrieve transactions for
|
|
1674
|
+
* Retrieve transactions for a specific address
|
|
1719
1675
|
*
|
|
1720
|
-
* @param {
|
|
1676
|
+
* @param {string} address - Blockchain address
|
|
1677
|
+
* @param {OumlaSdkApi.GetTransactionsByAddressRequest} request
|
|
1721
1678
|
* @param {Transactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
1722
1679
|
*
|
|
1723
1680
|
* @example
|
|
1724
|
-
* await client.transactions.
|
|
1681
|
+
* await client.transactions.getTransactionsByAddress("address", {
|
|
1725
1682
|
* skip: 1,
|
|
1726
1683
|
* take: 1
|
|
1727
1684
|
* })
|
|
1728
1685
|
*/
|
|
1729
|
-
|
|
1730
|
-
return HttpResponsePromise.fromPromise(this.
|
|
1686
|
+
getTransactionsByAddress(address, request = {}, requestOptions) {
|
|
1687
|
+
return HttpResponsePromise.fromPromise(this.__getTransactionsByAddress(address, request, requestOptions));
|
|
1731
1688
|
}
|
|
1732
|
-
async
|
|
1689
|
+
async __getTransactionsByAddress(address, request = {}, requestOptions) {
|
|
1733
1690
|
const { skip, take } = request;
|
|
1734
1691
|
const _queryParams = {};
|
|
1735
1692
|
if (skip != null) {
|
|
@@ -1750,7 +1707,7 @@ var Transactions = class {
|
|
|
1750
1707
|
const _response = await fetcher({
|
|
1751
1708
|
url: url_exports.join(
|
|
1752
1709
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
1753
|
-
|
|
1710
|
+
`api/v1/transactions/address/${encodeURIComponent(address)}`
|
|
1754
1711
|
),
|
|
1755
1712
|
method: "GET",
|
|
1756
1713
|
headers: _headers,
|
|
@@ -1778,7 +1735,7 @@ var Transactions = class {
|
|
|
1778
1735
|
});
|
|
1779
1736
|
case "timeout":
|
|
1780
1737
|
throw new OumlaSdkApiTimeoutError(
|
|
1781
|
-
"Timeout exceeded when calling GET /api/v1/transactions/
|
|
1738
|
+
"Timeout exceeded when calling GET /api/v1/transactions/address/{address}."
|
|
1782
1739
|
);
|
|
1783
1740
|
case "unknown":
|
|
1784
1741
|
throw new OumlaSdkApiError({
|
|
@@ -1788,22 +1745,24 @@ var Transactions = class {
|
|
|
1788
1745
|
}
|
|
1789
1746
|
}
|
|
1790
1747
|
/**
|
|
1791
|
-
* Retrieve transactions for a specific
|
|
1748
|
+
* Retrieve transactions for a specific wallet
|
|
1792
1749
|
*
|
|
1793
|
-
* @param {string}
|
|
1794
|
-
* @param {OumlaSdkApi.
|
|
1750
|
+
* @param {string} miniWalletId - Mini wallet ID
|
|
1751
|
+
* @param {OumlaSdkApi.GetTransactionsByWalletRequest} request
|
|
1795
1752
|
* @param {Transactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
1796
1753
|
*
|
|
1797
1754
|
* @example
|
|
1798
|
-
* await client.transactions.
|
|
1755
|
+
* await client.transactions.getTransactionsByWallet("miniWalletId", {
|
|
1799
1756
|
* skip: 1,
|
|
1800
1757
|
* take: 1
|
|
1801
1758
|
* })
|
|
1802
1759
|
*/
|
|
1803
|
-
|
|
1804
|
-
return HttpResponsePromise.fromPromise(
|
|
1760
|
+
getTransactionsByWallet(miniWalletId, request = {}, requestOptions) {
|
|
1761
|
+
return HttpResponsePromise.fromPromise(
|
|
1762
|
+
this.__getTransactionsByWallet(miniWalletId, request, requestOptions)
|
|
1763
|
+
);
|
|
1805
1764
|
}
|
|
1806
|
-
async
|
|
1765
|
+
async __getTransactionsByWallet(miniWalletId, request = {}, requestOptions) {
|
|
1807
1766
|
const { skip, take } = request;
|
|
1808
1767
|
const _queryParams = {};
|
|
1809
1768
|
if (skip != null) {
|
|
@@ -1824,7 +1783,7 @@ var Transactions = class {
|
|
|
1824
1783
|
const _response = await fetcher({
|
|
1825
1784
|
url: url_exports.join(
|
|
1826
1785
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
1827
|
-
`api/v1/transactions/
|
|
1786
|
+
`api/v1/transactions/wallet/${encodeURIComponent(miniWalletId)}`
|
|
1828
1787
|
),
|
|
1829
1788
|
method: "GET",
|
|
1830
1789
|
headers: _headers,
|
|
@@ -1852,7 +1811,7 @@ var Transactions = class {
|
|
|
1852
1811
|
});
|
|
1853
1812
|
case "timeout":
|
|
1854
1813
|
throw new OumlaSdkApiTimeoutError(
|
|
1855
|
-
"Timeout exceeded when calling GET /api/v1/transactions/
|
|
1814
|
+
"Timeout exceeded when calling GET /api/v1/transactions/wallet/{miniWalletId}."
|
|
1856
1815
|
);
|
|
1857
1816
|
case "unknown":
|
|
1858
1817
|
throw new OumlaSdkApiError({
|
|
@@ -1861,37 +1820,22 @@ var Transactions = class {
|
|
|
1861
1820
|
});
|
|
1862
1821
|
}
|
|
1863
1822
|
}
|
|
1864
|
-
async _getAuthorizationHeader() {
|
|
1865
|
-
const bearer = await Supplier.get(this._options.token);
|
|
1866
|
-
if (bearer != null) {
|
|
1867
|
-
return `Bearer ${bearer}`;
|
|
1868
|
-
}
|
|
1869
|
-
return void 0;
|
|
1870
|
-
}
|
|
1871
|
-
};
|
|
1872
|
-
|
|
1873
|
-
// api/resources/assets/client/Client.ts
|
|
1874
|
-
var Assets = class {
|
|
1875
|
-
constructor(_options) {
|
|
1876
|
-
this._options = _options;
|
|
1877
|
-
}
|
|
1878
1823
|
/**
|
|
1879
|
-
* Retrieve
|
|
1824
|
+
* Retrieve transactions for the organization
|
|
1880
1825
|
*
|
|
1881
|
-
* @param {
|
|
1882
|
-
* @param {
|
|
1883
|
-
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
1826
|
+
* @param {OumlaSdkApi.GetOrganizationTransactionsRequest} request
|
|
1827
|
+
* @param {Transactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
1884
1828
|
*
|
|
1885
1829
|
* @example
|
|
1886
|
-
* await client.
|
|
1830
|
+
* await client.transactions.getOrganizationTransactions({
|
|
1887
1831
|
* skip: 1,
|
|
1888
1832
|
* take: 1
|
|
1889
1833
|
* })
|
|
1890
1834
|
*/
|
|
1891
|
-
|
|
1892
|
-
return HttpResponsePromise.fromPromise(this.
|
|
1835
|
+
getOrganizationTransactions(request = {}, requestOptions) {
|
|
1836
|
+
return HttpResponsePromise.fromPromise(this.__getOrganizationTransactions(request, requestOptions));
|
|
1893
1837
|
}
|
|
1894
|
-
async
|
|
1838
|
+
async __getOrganizationTransactions(request = {}, requestOptions) {
|
|
1895
1839
|
const { skip, take } = request;
|
|
1896
1840
|
const _queryParams = {};
|
|
1897
1841
|
if (skip != null) {
|
|
@@ -1912,7 +1856,7 @@ var Assets = class {
|
|
|
1912
1856
|
const _response = await fetcher({
|
|
1913
1857
|
url: url_exports.join(
|
|
1914
1858
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
1915
|
-
|
|
1859
|
+
"api/v1/transactions/organization"
|
|
1916
1860
|
),
|
|
1917
1861
|
method: "GET",
|
|
1918
1862
|
headers: _headers,
|
|
@@ -1940,7 +1884,7 @@ var Assets = class {
|
|
|
1940
1884
|
});
|
|
1941
1885
|
case "timeout":
|
|
1942
1886
|
throw new OumlaSdkApiTimeoutError(
|
|
1943
|
-
"Timeout exceeded when calling GET /api/v1/
|
|
1887
|
+
"Timeout exceeded when calling GET /api/v1/transactions/organization."
|
|
1944
1888
|
);
|
|
1945
1889
|
case "unknown":
|
|
1946
1890
|
throw new OumlaSdkApiError({
|
|
@@ -1950,22 +1894,22 @@ var Assets = class {
|
|
|
1950
1894
|
}
|
|
1951
1895
|
}
|
|
1952
1896
|
/**
|
|
1953
|
-
* Retrieve
|
|
1897
|
+
* Retrieve transactions for a specific profile
|
|
1954
1898
|
*
|
|
1955
|
-
* @param {string}
|
|
1956
|
-
* @param {OumlaSdkApi.
|
|
1957
|
-
* @param {
|
|
1899
|
+
* @param {string} reference - Profile reference
|
|
1900
|
+
* @param {OumlaSdkApi.GetProfileTransactionsRequest} request
|
|
1901
|
+
* @param {Transactions.RequestOptions} requestOptions - Request-specific configuration.
|
|
1958
1902
|
*
|
|
1959
1903
|
* @example
|
|
1960
|
-
* await client.
|
|
1904
|
+
* await client.transactions.getProfileTransactions("reference", {
|
|
1961
1905
|
* skip: 1,
|
|
1962
1906
|
* take: 1
|
|
1963
1907
|
* })
|
|
1964
1908
|
*/
|
|
1965
|
-
|
|
1966
|
-
return HttpResponsePromise.fromPromise(this.
|
|
1909
|
+
getProfileTransactions(reference, request = {}, requestOptions) {
|
|
1910
|
+
return HttpResponsePromise.fromPromise(this.__getProfileTransactions(reference, request, requestOptions));
|
|
1967
1911
|
}
|
|
1968
|
-
async
|
|
1912
|
+
async __getProfileTransactions(reference, request = {}, requestOptions) {
|
|
1969
1913
|
const { skip, take } = request;
|
|
1970
1914
|
const _queryParams = {};
|
|
1971
1915
|
if (skip != null) {
|
|
@@ -1986,7 +1930,7 @@ var Assets = class {
|
|
|
1986
1930
|
const _response = await fetcher({
|
|
1987
1931
|
url: url_exports.join(
|
|
1988
1932
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
1989
|
-
`api/v1/
|
|
1933
|
+
`api/v1/transactions/profile/${encodeURIComponent(reference)}`
|
|
1990
1934
|
),
|
|
1991
1935
|
method: "GET",
|
|
1992
1936
|
headers: _headers,
|
|
@@ -2014,7 +1958,7 @@ var Assets = class {
|
|
|
2014
1958
|
});
|
|
2015
1959
|
case "timeout":
|
|
2016
1960
|
throw new OumlaSdkApiTimeoutError(
|
|
2017
|
-
"Timeout exceeded when calling GET /api/v1/
|
|
1961
|
+
"Timeout exceeded when calling GET /api/v1/transactions/profile/{reference}."
|
|
2018
1962
|
);
|
|
2019
1963
|
case "unknown":
|
|
2020
1964
|
throw new OumlaSdkApiError({
|
|
@@ -3960,6 +3904,97 @@ var Tokenization = class {
|
|
|
3960
3904
|
});
|
|
3961
3905
|
}
|
|
3962
3906
|
}
|
|
3907
|
+
/**
|
|
3908
|
+
* Retrieve collection tokens (mints or burns) filtered by collection ID and type
|
|
3909
|
+
*
|
|
3910
|
+
* @param {OumlaSdkApi.GetCollectionTokensRequest} request
|
|
3911
|
+
* @param {Tokenization.RequestOptions} requestOptions - Request-specific configuration.
|
|
3912
|
+
*
|
|
3913
|
+
* @throws {@link OumlaSdkApi.NotFoundError}
|
|
3914
|
+
*
|
|
3915
|
+
* @example
|
|
3916
|
+
* await client.tokenization.getCollectionTokens({
|
|
3917
|
+
* id: "id",
|
|
3918
|
+
* type: "MINT",
|
|
3919
|
+
* skip: 1,
|
|
3920
|
+
* take: 1
|
|
3921
|
+
* })
|
|
3922
|
+
*/
|
|
3923
|
+
getCollectionTokens(request = {}, requestOptions) {
|
|
3924
|
+
return HttpResponsePromise.fromPromise(this.__getCollectionTokens(request, requestOptions));
|
|
3925
|
+
}
|
|
3926
|
+
async __getCollectionTokens(request = {}, requestOptions) {
|
|
3927
|
+
const { id, type: type_, skip, take } = request;
|
|
3928
|
+
const _queryParams = {};
|
|
3929
|
+
if (id != null) {
|
|
3930
|
+
_queryParams["id"] = id;
|
|
3931
|
+
}
|
|
3932
|
+
if (type_ != null) {
|
|
3933
|
+
_queryParams["type"] = type_;
|
|
3934
|
+
}
|
|
3935
|
+
if (skip != null) {
|
|
3936
|
+
_queryParams["skip"] = skip.toString();
|
|
3937
|
+
}
|
|
3938
|
+
if (take != null) {
|
|
3939
|
+
_queryParams["take"] = take.toString();
|
|
3940
|
+
}
|
|
3941
|
+
let _headers = mergeHeaders(
|
|
3942
|
+
this._options?.headers,
|
|
3943
|
+
mergeOnlyDefinedHeaders({
|
|
3944
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
3945
|
+
"x-sdk-version": requestOptions?.sdkVersion ?? "1.0.0",
|
|
3946
|
+
"x-api-key": requestOptions?.apiKey ?? this._options?.apiKey
|
|
3947
|
+
}),
|
|
3948
|
+
requestOptions?.headers
|
|
3949
|
+
);
|
|
3950
|
+
const _response = await fetcher({
|
|
3951
|
+
url: url_exports.join(
|
|
3952
|
+
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
3953
|
+
"api/v1/tokenization/collection/tokens"
|
|
3954
|
+
),
|
|
3955
|
+
method: "GET",
|
|
3956
|
+
headers: _headers,
|
|
3957
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
3958
|
+
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 6e4,
|
|
3959
|
+
maxRetries: requestOptions?.maxRetries,
|
|
3960
|
+
abortSignal: requestOptions?.abortSignal
|
|
3961
|
+
});
|
|
3962
|
+
if (_response.ok) {
|
|
3963
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
3964
|
+
}
|
|
3965
|
+
if (_response.error.reason === "status-code") {
|
|
3966
|
+
switch (_response.error.statusCode) {
|
|
3967
|
+
case 404:
|
|
3968
|
+
throw new NotFoundError(
|
|
3969
|
+
_response.error.body,
|
|
3970
|
+
_response.rawResponse
|
|
3971
|
+
);
|
|
3972
|
+
default:
|
|
3973
|
+
throw new OumlaSdkApiError({
|
|
3974
|
+
statusCode: _response.error.statusCode,
|
|
3975
|
+
body: _response.error.body,
|
|
3976
|
+
rawResponse: _response.rawResponse
|
|
3977
|
+
});
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
switch (_response.error.reason) {
|
|
3981
|
+
case "non-json":
|
|
3982
|
+
throw new OumlaSdkApiError({
|
|
3983
|
+
statusCode: _response.error.statusCode,
|
|
3984
|
+
body: _response.error.rawBody,
|
|
3985
|
+
rawResponse: _response.rawResponse
|
|
3986
|
+
});
|
|
3987
|
+
case "timeout":
|
|
3988
|
+
throw new OumlaSdkApiTimeoutError(
|
|
3989
|
+
"Timeout exceeded when calling GET /api/v1/tokenization/collection/tokens."
|
|
3990
|
+
);
|
|
3991
|
+
case "unknown":
|
|
3992
|
+
throw new OumlaSdkApiError({
|
|
3993
|
+
message: _response.error.errorMessage,
|
|
3994
|
+
rawResponse: _response.rawResponse
|
|
3995
|
+
});
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3963
3998
|
/**
|
|
3964
3999
|
* Unlink a token from the platform
|
|
3965
4000
|
*
|
|
@@ -4031,6 +4066,203 @@ var Tokenization = class {
|
|
|
4031
4066
|
}
|
|
4032
4067
|
};
|
|
4033
4068
|
|
|
4069
|
+
// api/resources/temporal/client/Client.ts
|
|
4070
|
+
var Temporal = class {
|
|
4071
|
+
constructor(_options) {
|
|
4072
|
+
this._options = _options;
|
|
4073
|
+
}
|
|
4074
|
+
/**
|
|
4075
|
+
* Get workflow status and result
|
|
4076
|
+
*
|
|
4077
|
+
* @param {string} workflowId - Temporal workflow ID
|
|
4078
|
+
* @param {Temporal.RequestOptions} requestOptions - Request-specific configuration.
|
|
4079
|
+
*
|
|
4080
|
+
* @throws {@link OumlaSdkApi.NotFoundError}
|
|
4081
|
+
*
|
|
4082
|
+
* @example
|
|
4083
|
+
* await client.temporal.getTemporalWorkflowStatus("workflowId")
|
|
4084
|
+
*/
|
|
4085
|
+
getTemporalWorkflowStatus(workflowId, requestOptions) {
|
|
4086
|
+
return HttpResponsePromise.fromPromise(this.__getTemporalWorkflowStatus(workflowId, requestOptions));
|
|
4087
|
+
}
|
|
4088
|
+
async __getTemporalWorkflowStatus(workflowId, requestOptions) {
|
|
4089
|
+
let _headers = mergeHeaders(
|
|
4090
|
+
this._options?.headers,
|
|
4091
|
+
mergeOnlyDefinedHeaders({
|
|
4092
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
4093
|
+
"x-sdk-version": requestOptions?.sdkVersion ?? "1.0.0",
|
|
4094
|
+
"x-api-key": requestOptions?.apiKey ?? this._options?.apiKey
|
|
4095
|
+
}),
|
|
4096
|
+
requestOptions?.headers
|
|
4097
|
+
);
|
|
4098
|
+
const _response = await fetcher({
|
|
4099
|
+
url: url_exports.join(
|
|
4100
|
+
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
4101
|
+
`api/v1/temporal/workflows/${encodeURIComponent(workflowId)}/status`
|
|
4102
|
+
),
|
|
4103
|
+
method: "GET",
|
|
4104
|
+
headers: _headers,
|
|
4105
|
+
queryParameters: requestOptions?.queryParams,
|
|
4106
|
+
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 6e4,
|
|
4107
|
+
maxRetries: requestOptions?.maxRetries,
|
|
4108
|
+
abortSignal: requestOptions?.abortSignal
|
|
4109
|
+
});
|
|
4110
|
+
if (_response.ok) {
|
|
4111
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
4112
|
+
}
|
|
4113
|
+
if (_response.error.reason === "status-code") {
|
|
4114
|
+
switch (_response.error.statusCode) {
|
|
4115
|
+
case 404:
|
|
4116
|
+
throw new NotFoundError(
|
|
4117
|
+
_response.error.body,
|
|
4118
|
+
_response.rawResponse
|
|
4119
|
+
);
|
|
4120
|
+
default:
|
|
4121
|
+
throw new OumlaSdkApiError({
|
|
4122
|
+
statusCode: _response.error.statusCode,
|
|
4123
|
+
body: _response.error.body,
|
|
4124
|
+
rawResponse: _response.rawResponse
|
|
4125
|
+
});
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
switch (_response.error.reason) {
|
|
4129
|
+
case "non-json":
|
|
4130
|
+
throw new OumlaSdkApiError({
|
|
4131
|
+
statusCode: _response.error.statusCode,
|
|
4132
|
+
body: _response.error.rawBody,
|
|
4133
|
+
rawResponse: _response.rawResponse
|
|
4134
|
+
});
|
|
4135
|
+
case "timeout":
|
|
4136
|
+
throw new OumlaSdkApiTimeoutError(
|
|
4137
|
+
"Timeout exceeded when calling GET /api/v1/temporal/workflows/{workflowId}/status."
|
|
4138
|
+
);
|
|
4139
|
+
case "unknown":
|
|
4140
|
+
throw new OumlaSdkApiError({
|
|
4141
|
+
message: _response.error.errorMessage,
|
|
4142
|
+
rawResponse: _response.rawResponse
|
|
4143
|
+
});
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
async _getAuthorizationHeader() {
|
|
4147
|
+
const bearer = await Supplier.get(this._options.token);
|
|
4148
|
+
if (bearer != null) {
|
|
4149
|
+
return `Bearer ${bearer}`;
|
|
4150
|
+
}
|
|
4151
|
+
return void 0;
|
|
4152
|
+
}
|
|
4153
|
+
};
|
|
4154
|
+
|
|
4155
|
+
// api/resources/assets/client/Client.ts
|
|
4156
|
+
var Assets = class {
|
|
4157
|
+
constructor(_options) {
|
|
4158
|
+
this._options = _options;
|
|
4159
|
+
}
|
|
4160
|
+
/**
|
|
4161
|
+
* Retrieve assets for the organization filtered by address, wallet ID, contract address, or tokenization ID
|
|
4162
|
+
*
|
|
4163
|
+
* @param {OumlaSdkApi.GetAssetsRequest} request
|
|
4164
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
4165
|
+
*
|
|
4166
|
+
* @throws {@link OumlaSdkApi.NotFoundError}
|
|
4167
|
+
*
|
|
4168
|
+
* @example
|
|
4169
|
+
* await client.assets.getAssets({
|
|
4170
|
+
* address: "address",
|
|
4171
|
+
* walletId: "walletId",
|
|
4172
|
+
* contractAddress: "contractAddress",
|
|
4173
|
+
* tokenizationId: "tokenizationId",
|
|
4174
|
+
* skip: 1,
|
|
4175
|
+
* take: 1
|
|
4176
|
+
* })
|
|
4177
|
+
*/
|
|
4178
|
+
getAssets(request = {}, requestOptions) {
|
|
4179
|
+
return HttpResponsePromise.fromPromise(this.__getAssets(request, requestOptions));
|
|
4180
|
+
}
|
|
4181
|
+
async __getAssets(request = {}, requestOptions) {
|
|
4182
|
+
const { address, walletId, contractAddress, tokenizationId, skip, take } = request;
|
|
4183
|
+
const _queryParams = {};
|
|
4184
|
+
if (address != null) {
|
|
4185
|
+
_queryParams["address"] = address;
|
|
4186
|
+
}
|
|
4187
|
+
if (walletId != null) {
|
|
4188
|
+
_queryParams["walletId"] = walletId;
|
|
4189
|
+
}
|
|
4190
|
+
if (contractAddress != null) {
|
|
4191
|
+
_queryParams["contractAddress"] = contractAddress;
|
|
4192
|
+
}
|
|
4193
|
+
if (tokenizationId != null) {
|
|
4194
|
+
_queryParams["tokenizationId"] = tokenizationId;
|
|
4195
|
+
}
|
|
4196
|
+
if (skip != null) {
|
|
4197
|
+
_queryParams["skip"] = skip.toString();
|
|
4198
|
+
}
|
|
4199
|
+
if (take != null) {
|
|
4200
|
+
_queryParams["take"] = take.toString();
|
|
4201
|
+
}
|
|
4202
|
+
let _headers = mergeHeaders(
|
|
4203
|
+
this._options?.headers,
|
|
4204
|
+
mergeOnlyDefinedHeaders({
|
|
4205
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
4206
|
+
"x-sdk-version": requestOptions?.sdkVersion ?? "1.0.0",
|
|
4207
|
+
"x-api-key": requestOptions?.apiKey ?? this._options?.apiKey
|
|
4208
|
+
}),
|
|
4209
|
+
requestOptions?.headers
|
|
4210
|
+
);
|
|
4211
|
+
const _response = await fetcher({
|
|
4212
|
+
url: url_exports.join(
|
|
4213
|
+
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? OumlaSdkApiEnvironment.Production,
|
|
4214
|
+
"api/v1/assets"
|
|
4215
|
+
),
|
|
4216
|
+
method: "GET",
|
|
4217
|
+
headers: _headers,
|
|
4218
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
4219
|
+
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 6e4,
|
|
4220
|
+
maxRetries: requestOptions?.maxRetries,
|
|
4221
|
+
abortSignal: requestOptions?.abortSignal
|
|
4222
|
+
});
|
|
4223
|
+
if (_response.ok) {
|
|
4224
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
4225
|
+
}
|
|
4226
|
+
if (_response.error.reason === "status-code") {
|
|
4227
|
+
switch (_response.error.statusCode) {
|
|
4228
|
+
case 404:
|
|
4229
|
+
throw new NotFoundError(
|
|
4230
|
+
_response.error.body,
|
|
4231
|
+
_response.rawResponse
|
|
4232
|
+
);
|
|
4233
|
+
default:
|
|
4234
|
+
throw new OumlaSdkApiError({
|
|
4235
|
+
statusCode: _response.error.statusCode,
|
|
4236
|
+
body: _response.error.body,
|
|
4237
|
+
rawResponse: _response.rawResponse
|
|
4238
|
+
});
|
|
4239
|
+
}
|
|
4240
|
+
}
|
|
4241
|
+
switch (_response.error.reason) {
|
|
4242
|
+
case "non-json":
|
|
4243
|
+
throw new OumlaSdkApiError({
|
|
4244
|
+
statusCode: _response.error.statusCode,
|
|
4245
|
+
body: _response.error.rawBody,
|
|
4246
|
+
rawResponse: _response.rawResponse
|
|
4247
|
+
});
|
|
4248
|
+
case "timeout":
|
|
4249
|
+
throw new OumlaSdkApiTimeoutError("Timeout exceeded when calling GET /api/v1/assets.");
|
|
4250
|
+
case "unknown":
|
|
4251
|
+
throw new OumlaSdkApiError({
|
|
4252
|
+
message: _response.error.errorMessage,
|
|
4253
|
+
rawResponse: _response.rawResponse
|
|
4254
|
+
});
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4257
|
+
async _getAuthorizationHeader() {
|
|
4258
|
+
const bearer = await Supplier.get(this._options.token);
|
|
4259
|
+
if (bearer != null) {
|
|
4260
|
+
return `Bearer ${bearer}`;
|
|
4261
|
+
}
|
|
4262
|
+
return void 0;
|
|
4263
|
+
}
|
|
4264
|
+
};
|
|
4265
|
+
|
|
4034
4266
|
// Client.ts
|
|
4035
4267
|
var OumlaSdkApiClient = class {
|
|
4036
4268
|
constructor(_options) {
|
|
@@ -4060,9 +4292,6 @@ var OumlaSdkApiClient = class {
|
|
|
4060
4292
|
get transactions() {
|
|
4061
4293
|
return this._transactions ?? (this._transactions = new Transactions(this._options));
|
|
4062
4294
|
}
|
|
4063
|
-
get assets() {
|
|
4064
|
-
return this._assets ?? (this._assets = new Assets(this._options));
|
|
4065
|
-
}
|
|
4066
4295
|
get withdrawals() {
|
|
4067
4296
|
return this._withdrawals ?? (this._withdrawals = new Withdrawals(this._options));
|
|
4068
4297
|
}
|
|
@@ -4078,6 +4307,12 @@ var OumlaSdkApiClient = class {
|
|
|
4078
4307
|
get tokenization() {
|
|
4079
4308
|
return this._tokenization ?? (this._tokenization = new Tokenization(this._options));
|
|
4080
4309
|
}
|
|
4310
|
+
get temporal() {
|
|
4311
|
+
return this._temporal ?? (this._temporal = new Temporal(this._options));
|
|
4312
|
+
}
|
|
4313
|
+
get assets() {
|
|
4314
|
+
return this._assets ?? (this._assets = new Assets(this._options));
|
|
4315
|
+
}
|
|
4081
4316
|
};
|
|
4082
4317
|
|
|
4083
4318
|
export { api_exports as OumlaSdkApi, OumlaSdkApiClient, OumlaSdkApiEnvironment, OumlaSdkApiError, OumlaSdkApiTimeoutError };
|