okx-api 0.0.1 → 0.0.4
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 +43 -173
- package/lib/constants/funding.d.ts +139 -0
- package/lib/constants/funding.js +143 -0
- package/lib/constants/funding.js.map +1 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +18 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +18 -13
- package/lib/index.js.map +1 -1
- package/lib/rest-client.d.ts +402 -0
- package/lib/rest-client.js +741 -0
- package/lib/rest-client.js.map +1 -0
- package/lib/types/rest/index.d.ts +3 -0
- package/lib/types/rest/index.js +20 -0
- package/lib/types/rest/index.js.map +1 -0
- package/lib/types/rest/request/account.d.ts +32 -0
- package/lib/types/rest/request/account.js +3 -0
- package/lib/types/rest/request/account.js.map +1 -0
- package/lib/types/rest/request/block-trading.d.ts +60 -0
- package/lib/types/rest/request/block-trading.js +3 -0
- package/lib/types/rest/request/block-trading.js.map +1 -0
- package/lib/types/rest/request/convert.d.ts +19 -0
- package/lib/types/rest/request/convert.js +3 -0
- package/lib/types/rest/request/convert.js.map +1 -0
- package/lib/types/rest/request/funding.d.ts +21 -0
- package/lib/types/rest/request/funding.js +3 -0
- package/lib/types/rest/request/funding.js.map +1 -0
- package/lib/types/rest/request/grid-trading.d.ts +30 -0
- package/lib/types/rest/request/grid-trading.js +3 -0
- package/lib/types/rest/request/grid-trading.js.map +1 -0
- package/lib/types/rest/request/index.d.ts +8 -0
- package/lib/types/rest/request/index.js +25 -0
- package/lib/types/rest/request/index.js.map +1 -0
- package/lib/types/rest/request/shared.d.ts +7 -0
- package/lib/types/rest/request/shared.js +3 -0
- package/lib/types/rest/request/shared.js.map +1 -0
- package/lib/types/rest/request/subaccount.d.ts +12 -0
- package/lib/types/rest/request/subaccount.js +3 -0
- package/lib/types/rest/request/subaccount.js.map +1 -0
- package/lib/types/rest/request/trade.d.ts +113 -0
- package/lib/types/rest/request/trade.js +3 -0
- package/lib/types/rest/request/trade.js.map +1 -0
- package/lib/types/rest/response/index.d.ts +6 -0
- package/lib/types/rest/response/index.js +23 -0
- package/lib/types/rest/response/index.js.map +1 -0
- package/lib/types/rest/response/private-account.d.ts +213 -0
- package/lib/types/rest/response/private-account.js +3 -0
- package/lib/types/rest/response/private-account.js.map +1 -0
- package/lib/types/rest/response/private-block-trading.d.ts +89 -0
- package/lib/types/rest/response/private-block-trading.js +3 -0
- package/lib/types/rest/response/private-block-trading.js.map +1 -0
- package/lib/types/rest/response/private-funding.d.ts +68 -0
- package/lib/types/rest/response/private-funding.js +3 -0
- package/lib/types/rest/response/private-funding.js.map +1 -0
- package/lib/types/rest/response/private-subaccount.d.ts +56 -0
- package/lib/types/rest/response/private-subaccount.js +3 -0
- package/lib/types/rest/response/private-subaccount.js.map +1 -0
- package/lib/types/rest/response/private-trade.d.ts +235 -0
- package/lib/types/rest/response/private-trade.js +3 -0
- package/lib/types/rest/response/private-trade.js.map +1 -0
- package/lib/types/rest/response/public-data.d.ts +70 -0
- package/lib/types/rest/response/public-data.js +3 -0
- package/lib/types/rest/response/public-data.js.map +1 -0
- package/lib/types/rest/shared.d.ts +40 -0
- package/lib/types/rest/shared.js +3 -0
- package/lib/types/rest/shared.js.map +1 -0
- package/lib/util/BaseRestClient.d.ts +34 -0
- package/lib/util/BaseRestClient.js +204 -0
- package/lib/util/BaseRestClient.js.map +1 -0
- package/lib/util/browser-support.d.ts +1 -0
- package/lib/util/browser-support.js +24 -0
- package/lib/util/browser-support.js.map +1 -0
- package/lib/util/node-support.d.ts +1 -0
- package/lib/util/node-support.js +9 -0
- package/lib/util/node-support.js.map +1 -0
- package/lib/util/requestUtils.d.ts +17 -0
- package/lib/util/requestUtils.js +52 -0
- package/lib/util/requestUtils.js.map +1 -0
- package/lib/util/typeGuards.d.ts +2 -0
- package/lib/util/typeGuards.js +14 -0
- package/lib/util/typeGuards.js.map +1 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
#
|
|
2
|
-
[][1] [][1] [][1]
|
|
1
|
+
# Node.js & Typescript OKX (OKEX) API SDK
|
|
2
|
+
[](https://github.com/tiagosiebler/okx-api/actions/workflows/e2etest.yml) [][1] [][1] [][1] [][1] [][1] [][1]
|
|
4
3
|
[][1]
|
|
5
4
|
[](https://www.codefactor.io/repository/github/tiagosiebler/okx-api)
|
|
6
5
|
|
|
6
|
+
[][1]
|
|
7
|
+
|
|
7
8
|
[1]: https://www.npmjs.com/package/okx-api
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
Node.js connector for the OKX APIs ~~and WebSockets~~:
|
|
11
|
+
- Complete integration with all OKX APIs.
|
|
12
|
+
- WebSocket support coming soon.
|
|
13
|
+
- TypeScript support (with type declarations for most API requests & responses).
|
|
14
|
+
- Over 100 end-to-end tests making real API calls ~~& WebSocket connections~~, validating any changes before they reach npm.
|
|
15
|
+
- Coming soon: robust WebSocket integration with configurable connection heartbeats & automatic reconnect then resubscribe workflows.
|
|
16
|
+
- Browser support (via webpack bundle - see "Browser Usage" below).
|
|
17
|
+
|
|
18
|
+
## Beta Release
|
|
10
19
|
|
|
11
|
-
|
|
20
|
+
- [x] REST APIs are fully integrated with end to end test coverage
|
|
21
|
+
- [ ] WebSocket support is coming soon.
|
|
12
22
|
|
|
13
23
|
## Installation
|
|
14
24
|
`npm install --save okx-api`
|
|
@@ -17,15 +27,27 @@ Node.js connector for the okx APIs and WebSockets, with TypeScript & browser sup
|
|
|
17
27
|
- Issues? Check the [issues tab](https://github.com/tiagosiebler/okx-api/issues).
|
|
18
28
|
- Discuss & collaborate with other node devs? Join our [Node.js Algo Traders](https://t.me/nodetraders) engineering community on telegram.
|
|
19
29
|
|
|
30
|
+
## Related projects
|
|
31
|
+
- Try my connectors:
|
|
32
|
+
- [binance](https://www.npmjs.com/package/binance)
|
|
33
|
+
- [bybit-api](https://www.npmjs.com/package/bybit-api)
|
|
34
|
+
- [okx-api](https://www.npmjs.com/package/okx-api)
|
|
35
|
+
- [ftx-api](https://www.npmjs.com/package/ftx-api)
|
|
36
|
+
- Try my misc utilities:
|
|
37
|
+
- [orderbooks](https://www.npmjs.com/package/orderbooks)
|
|
38
|
+
- Check out my examples:
|
|
39
|
+
- [awesome-crypto-examples](https://github.com/tiagosiebler/awesome-crypto-examples)
|
|
40
|
+
|
|
20
41
|
## Documentation
|
|
21
|
-
Most methods accept JS objects. These can be populated using parameters specified by okx's API documentation.
|
|
42
|
+
Most methods accept JS objects. These can be populated using parameters specified by okx's API documentation, or check the type definition in the rest-client class methods.
|
|
43
|
+
- [RestClient](src/rest-client.ts).
|
|
22
44
|
- [OKX API Documentation](https://www.okx.com/docs-v5/en/#rest-api).
|
|
23
45
|
|
|
24
46
|
## Structure
|
|
25
47
|
This project uses typescript. Resources are stored in 3 key structures:
|
|
26
48
|
- [src](./src) - the whole connector written in typescript
|
|
27
|
-
- [lib](./lib) - the javascript version of the project (compiled from typescript). This should not be edited directly, as it will be overwritten with each release.
|
|
28
|
-
- [dist](./dist) - the packed bundle of the project for use in browser environments.
|
|
49
|
+
- [lib](./lib) - the javascript version of the project (compiled from typescript). This should not be edited directly, as it will be overwritten with each release. This is also the version published to npm.
|
|
50
|
+
- [dist](./dist) - the packed bundle of the project for use in browser environments (manual, using webpack).
|
|
29
51
|
- [examples](./examples) - some implementation examples & demonstrations. Contributions are welcome!
|
|
30
52
|
|
|
31
53
|
---
|
|
@@ -34,171 +56,14 @@ This project uses typescript. Resources are stored in 3 key structures:
|
|
|
34
56
|
Create API credentials at okx
|
|
35
57
|
- [OKX my-api](https://www.okx.com/account/my-api)
|
|
36
58
|
|
|
37
|
-
|
|
38
|
-
### REST Inverse
|
|
39
|
-
To use the inverse REST APIs, import the `InverseClient`:
|
|
40
|
-
|
|
41
|
-
```javascript
|
|
42
|
-
const { InverseClient } = require('okx-api');
|
|
43
|
-
|
|
44
|
-
const restClientOptions = {
|
|
45
|
-
// override the max size of the request window (in ms)
|
|
46
|
-
recv_window?: number;
|
|
47
|
-
|
|
48
|
-
// how often to sync time drift with okx servers
|
|
49
|
-
sync_interval_ms?: number | string;
|
|
50
|
-
|
|
51
|
-
// Default: false. Disable above sync mechanism if true.
|
|
52
|
-
disable_time_sync?: boolean;
|
|
53
|
-
|
|
54
|
-
// Default: false. If true, we'll throw errors if any params are undefined
|
|
55
|
-
strict_param_validation?: boolean;
|
|
56
|
-
|
|
57
|
-
// Optionally override API protocol + domain
|
|
58
|
-
// e.g 'https://api.bytick.com'
|
|
59
|
-
baseUrl?: string;
|
|
60
|
-
|
|
61
|
-
// Default: true. whether to try and post-process request exceptions.
|
|
62
|
-
parse_exceptions?: boolean;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const API_KEY = 'xxx';
|
|
66
|
-
const PRIVATE_KEY = 'yyy';
|
|
67
|
-
const useLivenet = false;
|
|
68
|
-
|
|
69
|
-
const client = new InverseClient(
|
|
70
|
-
API_KEY,
|
|
71
|
-
PRIVATE_KEY,
|
|
72
|
-
|
|
73
|
-
// optional, uses testnet by default. Set to 'true' to use livenet.
|
|
74
|
-
useLivenet,
|
|
75
|
-
|
|
76
|
-
// restClientOptions,
|
|
77
|
-
// requestLibraryOptions
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
client.getApiKeyInfo()
|
|
81
|
-
.then(result => {
|
|
82
|
-
console.log("apiKey result: ", result);
|
|
83
|
-
})
|
|
84
|
-
.catch(err => {
|
|
85
|
-
console.error("apiKey error: ", err);
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
client.getOrderBook({ symbol: 'BTCUSD' })
|
|
89
|
-
.then(result => {
|
|
90
|
-
console.log("getOrderBook inverse result: ", result);
|
|
91
|
-
})
|
|
92
|
-
.catch(err => {
|
|
93
|
-
console.error("getOrderBook inverse error: ", err);
|
|
94
|
-
});
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
See [inverse-client.ts](./src/inverse-client.ts) for further information. -->
|
|
99
|
-
|
|
100
|
-
## WebSockets
|
|
101
|
-
Inverse, linear & spot WebSockets can be used via a shared `WebsocketClient`. However, make sure to make one instance of WebsocketClient per market type (spot vs inverse vs linear vs linearfutures):
|
|
102
|
-
|
|
103
|
-
```javascript
|
|
104
|
-
const { WebsocketClient } = require('okx-api');
|
|
105
|
-
|
|
106
|
-
const API_KEY = 'xxx';
|
|
107
|
-
const PRIVATE_KEY = 'yyy';
|
|
108
|
-
|
|
109
|
-
const wsConfig = {
|
|
110
|
-
key: API_KEY,
|
|
111
|
-
secret: PRIVATE_KEY,
|
|
112
|
-
|
|
113
|
-
/*
|
|
114
|
-
The following parameters are optional:
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
// defaults to false == testnet. Set to true for livenet.
|
|
118
|
-
// livenet: true
|
|
119
|
-
|
|
120
|
-
// NOTE: to listen to multiple markets (spot vs inverse vs linear vs linearfutures) at once, make one WebsocketClient instance per market
|
|
59
|
+
## REST Client
|
|
121
60
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
// pongTimeout: 1000,
|
|
129
|
-
|
|
130
|
-
// how often to check (in ms) that WS connection is still alive
|
|
131
|
-
// pingInterval: 10000,
|
|
132
|
-
|
|
133
|
-
// how long to wait before attempting to reconnect (in ms) after connection is closed
|
|
134
|
-
// reconnectTimeout: 500,
|
|
135
|
-
|
|
136
|
-
// config options sent to RestClient (used for time sync). See RestClient docs.
|
|
137
|
-
// restOptions: { },
|
|
138
|
-
|
|
139
|
-
// config for axios used for HTTP requests. E.g for proxy support
|
|
140
|
-
// requestOptions: { }
|
|
141
|
-
|
|
142
|
-
// override which URL to use for websocket connections
|
|
143
|
-
// wsUrl: 'wss://stream.bytick.com/realtime'
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
const ws = new WebsocketClient(wsConfig);
|
|
147
|
-
|
|
148
|
-
// subscribe to multiple topics at once
|
|
149
|
-
ws.subscribe(['position', 'execution', 'trade']);
|
|
150
|
-
|
|
151
|
-
// and/or subscribe to individual topics on demand
|
|
152
|
-
ws.subscribe('kline.BTCUSD.1m');
|
|
153
|
-
|
|
154
|
-
// Listen to events coming from websockets. This is the primary data source
|
|
155
|
-
ws.on('update', data => {
|
|
156
|
-
console.log('update', data);
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
// Optional: Listen to websocket connection open event (automatic after subscribing to one or more topics)
|
|
160
|
-
ws.on('open', ({ wsKey, event }) => {
|
|
161
|
-
console.log('connection open for websocket with ID: ' + wsKey);
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
// Optional: Listen to responses to websocket queries (e.g. the response after subscribing to a topic)
|
|
165
|
-
ws.on('response', response => {
|
|
166
|
-
console.log('response', response);
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// Optional: Listen to connection close event. Unexpected connection closes are automatically reconnected.
|
|
170
|
-
ws.on('close', () => {
|
|
171
|
-
console.log('connection closed');
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
// Optional: Listen to raw error events.
|
|
175
|
-
// Note: responses to invalid topics are currently only sent in the "response" event.
|
|
176
|
-
ws.on('error', err => {
|
|
177
|
-
console.error('ERR', err);
|
|
178
|
-
});
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
See [websocket-client.ts](./src/websocket-client.ts) for further information.
|
|
183
|
-
|
|
184
|
-
Note: for linear websockets, pass `linear: true` in the constructor options when instancing the `WebsocketClient`. To connect to both linear and inverse websockets, make two instances of the WebsocketClient.
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
|
|
188
|
-
## Customise Logging
|
|
189
|
-
Pass a custom logger which supports the log methods `silly`, `debug`, `notice`, `info`, `warning` and `error`, or override methods from the default logger as desired.
|
|
190
|
-
|
|
191
|
-
```javascript
|
|
192
|
-
const { WebsocketClient, DefaultLogger } = require('okx-api');
|
|
193
|
-
|
|
194
|
-
// Disable all logging on the silly level
|
|
195
|
-
DefaultLogger.silly = () => {};
|
|
196
|
-
|
|
197
|
-
const ws = new WebsocketClient(
|
|
198
|
-
{ key: 'xxx', secret: 'yyy' },
|
|
199
|
-
DefaultLogger
|
|
200
|
-
);
|
|
201
|
-
```
|
|
61
|
+
### Requests & Responses
|
|
62
|
+
- If your IDE doesn't have IntelliSense, check the [rest-client.ts](./src/rest-client.ts) for a list of methods, params & return types.
|
|
63
|
+
- Requests follow the same ordering and format as the categories in the [API docs](https://www.okx.com/docs-v5/en/#rest-api).
|
|
64
|
+
- Responses are parsed automatically for less nesting. Error responses are thrown in full:
|
|
65
|
+
- If the response looks successful (HTTP 200 and "code" in the response body === "0"), only the `data` property is directly (without the `code`, `data` & `msg` properties).
|
|
66
|
+
- If the response looks like an error (HTTP error OR the "code" property in the response does not equal "0"), the full response is thrown (including `code` and `msg` properties). See the interface for [APIResponse<T>](./src/types/rest/shared.ts).
|
|
202
67
|
|
|
203
68
|
## Browser Usage
|
|
204
69
|
Build a bundle using webpack:
|
|
@@ -214,8 +79,9 @@ The bundle can be found in `dist/`. Altough usage should be largely consistent,
|
|
|
214
79
|
### Donations
|
|
215
80
|
#### tiagosiebler
|
|
216
81
|
Support my efforts to make algo trading accessible to all - register with my referral links:
|
|
217
|
-
- [
|
|
82
|
+
- [Bybit](https://www.bybit.com/en-US/register?affiliate_id=9410&language=en-US&group_id=0&group_type=1)
|
|
218
83
|
- [Binance](https://www.binance.com/en/register?ref=20983262)
|
|
84
|
+
- [OKX](https://www.okx.com/join/18504944)
|
|
219
85
|
|
|
220
86
|
Or buy me a coffee using any of these:
|
|
221
87
|
- BTC: `1C6GWZL1XW3jrjpPTS863XtZiXL1aTK7Jk`
|
|
@@ -223,3 +89,7 @@ Or buy me a coffee using any of these:
|
|
|
223
89
|
|
|
224
90
|
### Contributions & Pull Requests
|
|
225
91
|
Contributions are encouraged, I will review any incoming pull requests. See the issues tab for todo items.
|
|
92
|
+
|
|
93
|
+
## Star History
|
|
94
|
+
|
|
95
|
+
[](https://star-history.com/#tiagosiebler/ftx-api&tiagosiebler/bybit-api&tiagosiebler/binance&tiagosiebler/orderbooks&tiagosiebler/okx-api&tiagosiebler/awesome-crypto-examples&Date)
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset bill type, auto-generated using table from funding asset bill details:
|
|
3
|
+
* https://www.okx.com/docs-v5/en/#rest-api-funding-asset-bills-details
|
|
4
|
+
*/
|
|
5
|
+
export declare enum ASSET_BILL_TYPE {
|
|
6
|
+
DEPOSIT = "1",
|
|
7
|
+
WITHDRAWAL = "2",
|
|
8
|
+
CANCELED_WITHDRAWAL = "13",
|
|
9
|
+
TRANSFER_TO_SUB_ACCOUNT = "20",
|
|
10
|
+
TRANSFER_FROM_SUB_ACCOUNT = "21",
|
|
11
|
+
CLAIM = "28",
|
|
12
|
+
SYSTEM_REVERSAL = "47",
|
|
13
|
+
RECEIVED_FROM_ACTIVITIES = "48",
|
|
14
|
+
GIVEN_AWAY_TO_ACTIVITIES = "49",
|
|
15
|
+
RECEIVED_FROM_APPOINTMENTS = "50",
|
|
16
|
+
DEDUCTED_FROM_APPOINTMENTS = "51",
|
|
17
|
+
RED_PACKET_SENT = "52",
|
|
18
|
+
RED_PACKET_SNATCHED = "53",
|
|
19
|
+
RED_PACKET_REFUNDED = "54",
|
|
20
|
+
CONVERSION = "61",
|
|
21
|
+
CLAIM_REBATE_CARD = "68",
|
|
22
|
+
DISTRIBUTE_REBATE_CARD = "69",
|
|
23
|
+
TOKEN_RECEIVED = "72",
|
|
24
|
+
TOKEN_GIVEN_AWAY = "73",
|
|
25
|
+
TOKEN_REFUNDED = "74",
|
|
26
|
+
SUBSCRIPTION_TO_SAVINGS = "75",
|
|
27
|
+
REDEMPTION_TO_SAVINGS = "76",
|
|
28
|
+
DISTRIBUTE = "77",
|
|
29
|
+
LOCK_UP = "78",
|
|
30
|
+
NODE_VOTING = "79",
|
|
31
|
+
STAKING_1 = "80",
|
|
32
|
+
VOTE_REDEMPTION = "81",
|
|
33
|
+
STAKING_REDEMPTION_1 = "82",
|
|
34
|
+
STAKING_YIELD = "83",
|
|
35
|
+
VIOLATION_FEE = "84",
|
|
36
|
+
POW_MINING_YIELD = "85",
|
|
37
|
+
CLOUD_MINING_PAY = "86",
|
|
38
|
+
CLOUD_MINING_YIELD = "87",
|
|
39
|
+
SUBSIDY = "88",
|
|
40
|
+
STAKING_2 = "89",
|
|
41
|
+
STAKING_SUBSCRIPTION = "90",
|
|
42
|
+
STAKING_REDEMPTION_2 = "91",
|
|
43
|
+
ADD_COLLATERAL = "92",
|
|
44
|
+
REDEEM_COLLATERAL = "93",
|
|
45
|
+
INVESTMENT = "94",
|
|
46
|
+
BORROWER_BORROWS = "95",
|
|
47
|
+
PRINCIPAL_TRANSFERRED_IN = "96",
|
|
48
|
+
BORROWER_TRANSFERRED_LOAN_OUT = "97",
|
|
49
|
+
BORROWER_TRANSFERRED_INTEREST_OUT = "98",
|
|
50
|
+
INVESTOR_TRANSFERRED_INTEREST_IN = "99",
|
|
51
|
+
PREPAYMENT_PENALTY_TRANSFERRED_IN = "102",
|
|
52
|
+
PREPAYMENT_PENALTY_TRANSFERRED_OUT = "103",
|
|
53
|
+
FEE_TRANSFERRED_IN = "104",
|
|
54
|
+
FEE_TRANSFERRED_OUT = "105",
|
|
55
|
+
OVERDUE_FEE_TRANSFERRED_IN = "106",
|
|
56
|
+
OVERDUE_FEE_TRANSFERRED_OUT = "107",
|
|
57
|
+
OVERDUE_INTEREST_TRANSFERRED_OUT = "108",
|
|
58
|
+
OVERDUE_INTEREST_TRANSFERRED_IN = "109",
|
|
59
|
+
COLLATERAL_FOR_CLOSED_POSITION_TRANSFERRED_IN = "110",
|
|
60
|
+
COLLATERAL_FOR_CLOSED_POSITION_TRANSFERRED_OUT = "111",
|
|
61
|
+
COLLATERAL_FOR_LIQUIDATION_TRANSFERRED_IN = "112",
|
|
62
|
+
COLLATERAL_FOR_LIQUIDATION_TRANSFERRED_OUT = "113",
|
|
63
|
+
INSURANCE_FUND_TRANSFERRED_IN = "114",
|
|
64
|
+
INSURANCE_FUND_TRANSFERRED_OUT_ = "115",
|
|
65
|
+
PLACE_AN_ORDER = "116",
|
|
66
|
+
FULFILL_AN_ORDER = "117",
|
|
67
|
+
CANCEL_AN_ORDER = "118",
|
|
68
|
+
MERCHANTS_UNLOCK_DEPOSIT = "119",
|
|
69
|
+
MERCHANTS_ADD_DEPOSIT = "120",
|
|
70
|
+
FIATGATEWAY_PLACE_AN_ORDER = "121",
|
|
71
|
+
FIATGATEWAY_CANCEL_AN_ORDER = "122",
|
|
72
|
+
FIATGATEWAY_FULFILL_AN_ORDER = "123",
|
|
73
|
+
JUMPSTART_UNLOCKING = "124",
|
|
74
|
+
MANUAL_DEPOSIT = "125",
|
|
75
|
+
INTEREST_DEPOSIT = "126",
|
|
76
|
+
INVESTMENT_FEE_TRANSFERRED_IN = "127",
|
|
77
|
+
INVESTMENT_FEE_TRANSFERRED_OUT = "128",
|
|
78
|
+
REWARDS_TRANSFERRED_IN = "129",
|
|
79
|
+
TRANSFERRED_FROM_TRADING_ACCOUNT = "130",
|
|
80
|
+
TRANSFERRED_TO_TRADING_ACCOUNT = "131",
|
|
81
|
+
FROZEN_BY_CUSTOMER_SERVICE = "132",
|
|
82
|
+
UNFROZEN_BY_CUSTOMER_SERVICE = "133",
|
|
83
|
+
TRANSFERRED_BY_CUSTOMER_SERVICE = "134",
|
|
84
|
+
CROSS_CHAIN_EXCHANGE = "135",
|
|
85
|
+
CONVERT = "136",
|
|
86
|
+
ETH_2_0_SUBSCRIPTION = "137",
|
|
87
|
+
ETH_2_0_SWAPPING = "138",
|
|
88
|
+
ETH_2_0_EARNINGS = "139",
|
|
89
|
+
FEE_TRANSFER_IN = "141",
|
|
90
|
+
FEE_TRANSFER_OUT = "142",
|
|
91
|
+
SYSTEM_REVERSE = "143",
|
|
92
|
+
TRANSFER_OUT_OF_UNIFIED_ACCOUNT_RESERVE = "144",
|
|
93
|
+
REWARD_EXPIRED = "145",
|
|
94
|
+
CUSTOMER_FEEDBACK = "146",
|
|
95
|
+
VESTED_SUSHI_REWARDS = "147",
|
|
96
|
+
AFFILIATE_COMMISSION = "150",
|
|
97
|
+
REFERRAL_REWARD = "151",
|
|
98
|
+
BROKER_REWARD = "152",
|
|
99
|
+
JOINER_REWARD = "153",
|
|
100
|
+
MYSTERY_BOX_REWARD = "154",
|
|
101
|
+
REWARDS_WITHDRAW = "155",
|
|
102
|
+
FEE_REBATE_1 = "156",
|
|
103
|
+
COLLECTED_CRYPTO = "157",
|
|
104
|
+
DUAL_INVESTMENT_SUBSCRIBE = "160",
|
|
105
|
+
DUAL_INVESTMENT_COLLECTION = "161",
|
|
106
|
+
DUAL_INVESTMENT_PROFIT = "162",
|
|
107
|
+
DUAL_INVESTMENT_REFUND = "163",
|
|
108
|
+
NEW_YEAR_REWARDS_2022 = "169",
|
|
109
|
+
REFERRAL_REFERRED_CUSTOMER = "170",
|
|
110
|
+
REFERRAL_WAS_REFERRED = "171",
|
|
111
|
+
SUB_AFFILIATE_COMMISSION = "172",
|
|
112
|
+
FEE_REBATE_2 = "173",
|
|
113
|
+
PAY = "174",
|
|
114
|
+
LOCKED_COLLATERAL = "175",
|
|
115
|
+
LOAN = "176",
|
|
116
|
+
ADDED_COLLATERAL = "177",
|
|
117
|
+
RETURNED_COLLATERAL = "178",
|
|
118
|
+
REPAYMENT = "179",
|
|
119
|
+
UNLOCKED_COLLATERAL = "180",
|
|
120
|
+
REPAY_AIRDROPPED_CRYPTO = "181",
|
|
121
|
+
FEEDBACK_BOUNTY = "182",
|
|
122
|
+
INVITE_FRIENDS_REWARDS = "183",
|
|
123
|
+
DIVIDE_THE_REWARD_POOL = "184",
|
|
124
|
+
BROKER_CONVERT_REWARD = "185",
|
|
125
|
+
FREEETH = "186",
|
|
126
|
+
CONVERT_TRANSFER = "187",
|
|
127
|
+
SLOT_AUCTION_CONVERSION = "188",
|
|
128
|
+
MYSTERY_BOX_BONUS = "189",
|
|
129
|
+
CARD_PAYMENT_BUY_1 = "193",
|
|
130
|
+
CARD_PAYMENT_BUY_2 = "194",
|
|
131
|
+
UNTRADABLE_ASSET_WITHDRAWAL = "195",
|
|
132
|
+
UNTRADABLE_ASSET_WITHDRAWAL_REVOKED = "196",
|
|
133
|
+
UNTRADABLE_ASSET_DEPOSIT = "197",
|
|
134
|
+
UNTRADABLE_ASSET_COLLECTION_1 = "198",
|
|
135
|
+
UNTRADABLE_ASSET_COLLECTION_2 = "199",
|
|
136
|
+
BUY = "200",
|
|
137
|
+
WIN_CRYPTO_WITH_SATOSHI = "211"
|
|
138
|
+
}
|
|
139
|
+
export declare type AssetBillType = `${ASSET_BILL_TYPE}`;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ASSET_BILL_TYPE = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Asset bill type, auto-generated using table from funding asset bill details:
|
|
6
|
+
* https://www.okx.com/docs-v5/en/#rest-api-funding-asset-bills-details
|
|
7
|
+
*/
|
|
8
|
+
var ASSET_BILL_TYPE;
|
|
9
|
+
(function (ASSET_BILL_TYPE) {
|
|
10
|
+
ASSET_BILL_TYPE["DEPOSIT"] = "1";
|
|
11
|
+
ASSET_BILL_TYPE["WITHDRAWAL"] = "2";
|
|
12
|
+
ASSET_BILL_TYPE["CANCELED_WITHDRAWAL"] = "13";
|
|
13
|
+
ASSET_BILL_TYPE["TRANSFER_TO_SUB_ACCOUNT"] = "20";
|
|
14
|
+
ASSET_BILL_TYPE["TRANSFER_FROM_SUB_ACCOUNT"] = "21";
|
|
15
|
+
ASSET_BILL_TYPE["CLAIM"] = "28";
|
|
16
|
+
ASSET_BILL_TYPE["SYSTEM_REVERSAL"] = "47";
|
|
17
|
+
ASSET_BILL_TYPE["RECEIVED_FROM_ACTIVITIES"] = "48";
|
|
18
|
+
ASSET_BILL_TYPE["GIVEN_AWAY_TO_ACTIVITIES"] = "49";
|
|
19
|
+
ASSET_BILL_TYPE["RECEIVED_FROM_APPOINTMENTS"] = "50";
|
|
20
|
+
ASSET_BILL_TYPE["DEDUCTED_FROM_APPOINTMENTS"] = "51";
|
|
21
|
+
ASSET_BILL_TYPE["RED_PACKET_SENT"] = "52";
|
|
22
|
+
ASSET_BILL_TYPE["RED_PACKET_SNATCHED"] = "53";
|
|
23
|
+
ASSET_BILL_TYPE["RED_PACKET_REFUNDED"] = "54";
|
|
24
|
+
ASSET_BILL_TYPE["CONVERSION"] = "61";
|
|
25
|
+
ASSET_BILL_TYPE["CLAIM_REBATE_CARD"] = "68";
|
|
26
|
+
ASSET_BILL_TYPE["DISTRIBUTE_REBATE_CARD"] = "69";
|
|
27
|
+
ASSET_BILL_TYPE["TOKEN_RECEIVED"] = "72";
|
|
28
|
+
ASSET_BILL_TYPE["TOKEN_GIVEN_AWAY"] = "73";
|
|
29
|
+
ASSET_BILL_TYPE["TOKEN_REFUNDED"] = "74";
|
|
30
|
+
ASSET_BILL_TYPE["SUBSCRIPTION_TO_SAVINGS"] = "75";
|
|
31
|
+
ASSET_BILL_TYPE["REDEMPTION_TO_SAVINGS"] = "76";
|
|
32
|
+
ASSET_BILL_TYPE["DISTRIBUTE"] = "77";
|
|
33
|
+
ASSET_BILL_TYPE["LOCK_UP"] = "78";
|
|
34
|
+
ASSET_BILL_TYPE["NODE_VOTING"] = "79";
|
|
35
|
+
ASSET_BILL_TYPE["STAKING_1"] = "80";
|
|
36
|
+
ASSET_BILL_TYPE["VOTE_REDEMPTION"] = "81";
|
|
37
|
+
ASSET_BILL_TYPE["STAKING_REDEMPTION_1"] = "82";
|
|
38
|
+
ASSET_BILL_TYPE["STAKING_YIELD"] = "83";
|
|
39
|
+
ASSET_BILL_TYPE["VIOLATION_FEE"] = "84";
|
|
40
|
+
ASSET_BILL_TYPE["POW_MINING_YIELD"] = "85";
|
|
41
|
+
ASSET_BILL_TYPE["CLOUD_MINING_PAY"] = "86";
|
|
42
|
+
ASSET_BILL_TYPE["CLOUD_MINING_YIELD"] = "87";
|
|
43
|
+
ASSET_BILL_TYPE["SUBSIDY"] = "88";
|
|
44
|
+
ASSET_BILL_TYPE["STAKING_2"] = "89";
|
|
45
|
+
ASSET_BILL_TYPE["STAKING_SUBSCRIPTION"] = "90";
|
|
46
|
+
ASSET_BILL_TYPE["STAKING_REDEMPTION_2"] = "91";
|
|
47
|
+
ASSET_BILL_TYPE["ADD_COLLATERAL"] = "92";
|
|
48
|
+
ASSET_BILL_TYPE["REDEEM_COLLATERAL"] = "93";
|
|
49
|
+
ASSET_BILL_TYPE["INVESTMENT"] = "94";
|
|
50
|
+
ASSET_BILL_TYPE["BORROWER_BORROWS"] = "95";
|
|
51
|
+
ASSET_BILL_TYPE["PRINCIPAL_TRANSFERRED_IN"] = "96";
|
|
52
|
+
ASSET_BILL_TYPE["BORROWER_TRANSFERRED_LOAN_OUT"] = "97";
|
|
53
|
+
ASSET_BILL_TYPE["BORROWER_TRANSFERRED_INTEREST_OUT"] = "98";
|
|
54
|
+
ASSET_BILL_TYPE["INVESTOR_TRANSFERRED_INTEREST_IN"] = "99";
|
|
55
|
+
ASSET_BILL_TYPE["PREPAYMENT_PENALTY_TRANSFERRED_IN"] = "102";
|
|
56
|
+
ASSET_BILL_TYPE["PREPAYMENT_PENALTY_TRANSFERRED_OUT"] = "103";
|
|
57
|
+
ASSET_BILL_TYPE["FEE_TRANSFERRED_IN"] = "104";
|
|
58
|
+
ASSET_BILL_TYPE["FEE_TRANSFERRED_OUT"] = "105";
|
|
59
|
+
ASSET_BILL_TYPE["OVERDUE_FEE_TRANSFERRED_IN"] = "106";
|
|
60
|
+
ASSET_BILL_TYPE["OVERDUE_FEE_TRANSFERRED_OUT"] = "107";
|
|
61
|
+
ASSET_BILL_TYPE["OVERDUE_INTEREST_TRANSFERRED_OUT"] = "108";
|
|
62
|
+
ASSET_BILL_TYPE["OVERDUE_INTEREST_TRANSFERRED_IN"] = "109";
|
|
63
|
+
ASSET_BILL_TYPE["COLLATERAL_FOR_CLOSED_POSITION_TRANSFERRED_IN"] = "110";
|
|
64
|
+
ASSET_BILL_TYPE["COLLATERAL_FOR_CLOSED_POSITION_TRANSFERRED_OUT"] = "111";
|
|
65
|
+
ASSET_BILL_TYPE["COLLATERAL_FOR_LIQUIDATION_TRANSFERRED_IN"] = "112";
|
|
66
|
+
ASSET_BILL_TYPE["COLLATERAL_FOR_LIQUIDATION_TRANSFERRED_OUT"] = "113";
|
|
67
|
+
ASSET_BILL_TYPE["INSURANCE_FUND_TRANSFERRED_IN"] = "114";
|
|
68
|
+
ASSET_BILL_TYPE["INSURANCE_FUND_TRANSFERRED_OUT_"] = "115";
|
|
69
|
+
ASSET_BILL_TYPE["PLACE_AN_ORDER"] = "116";
|
|
70
|
+
ASSET_BILL_TYPE["FULFILL_AN_ORDER"] = "117";
|
|
71
|
+
ASSET_BILL_TYPE["CANCEL_AN_ORDER"] = "118";
|
|
72
|
+
ASSET_BILL_TYPE["MERCHANTS_UNLOCK_DEPOSIT"] = "119";
|
|
73
|
+
ASSET_BILL_TYPE["MERCHANTS_ADD_DEPOSIT"] = "120";
|
|
74
|
+
ASSET_BILL_TYPE["FIATGATEWAY_PLACE_AN_ORDER"] = "121";
|
|
75
|
+
ASSET_BILL_TYPE["FIATGATEWAY_CANCEL_AN_ORDER"] = "122";
|
|
76
|
+
ASSET_BILL_TYPE["FIATGATEWAY_FULFILL_AN_ORDER"] = "123";
|
|
77
|
+
ASSET_BILL_TYPE["JUMPSTART_UNLOCKING"] = "124";
|
|
78
|
+
ASSET_BILL_TYPE["MANUAL_DEPOSIT"] = "125";
|
|
79
|
+
ASSET_BILL_TYPE["INTEREST_DEPOSIT"] = "126";
|
|
80
|
+
ASSET_BILL_TYPE["INVESTMENT_FEE_TRANSFERRED_IN"] = "127";
|
|
81
|
+
ASSET_BILL_TYPE["INVESTMENT_FEE_TRANSFERRED_OUT"] = "128";
|
|
82
|
+
ASSET_BILL_TYPE["REWARDS_TRANSFERRED_IN"] = "129";
|
|
83
|
+
ASSET_BILL_TYPE["TRANSFERRED_FROM_TRADING_ACCOUNT"] = "130";
|
|
84
|
+
ASSET_BILL_TYPE["TRANSFERRED_TO_TRADING_ACCOUNT"] = "131";
|
|
85
|
+
ASSET_BILL_TYPE["FROZEN_BY_CUSTOMER_SERVICE"] = "132";
|
|
86
|
+
ASSET_BILL_TYPE["UNFROZEN_BY_CUSTOMER_SERVICE"] = "133";
|
|
87
|
+
ASSET_BILL_TYPE["TRANSFERRED_BY_CUSTOMER_SERVICE"] = "134";
|
|
88
|
+
ASSET_BILL_TYPE["CROSS_CHAIN_EXCHANGE"] = "135";
|
|
89
|
+
ASSET_BILL_TYPE["CONVERT"] = "136";
|
|
90
|
+
ASSET_BILL_TYPE["ETH_2_0_SUBSCRIPTION"] = "137";
|
|
91
|
+
ASSET_BILL_TYPE["ETH_2_0_SWAPPING"] = "138";
|
|
92
|
+
ASSET_BILL_TYPE["ETH_2_0_EARNINGS"] = "139";
|
|
93
|
+
ASSET_BILL_TYPE["FEE_TRANSFER_IN"] = "141";
|
|
94
|
+
ASSET_BILL_TYPE["FEE_TRANSFER_OUT"] = "142";
|
|
95
|
+
ASSET_BILL_TYPE["SYSTEM_REVERSE"] = "143";
|
|
96
|
+
ASSET_BILL_TYPE["TRANSFER_OUT_OF_UNIFIED_ACCOUNT_RESERVE"] = "144";
|
|
97
|
+
ASSET_BILL_TYPE["REWARD_EXPIRED"] = "145";
|
|
98
|
+
ASSET_BILL_TYPE["CUSTOMER_FEEDBACK"] = "146";
|
|
99
|
+
ASSET_BILL_TYPE["VESTED_SUSHI_REWARDS"] = "147";
|
|
100
|
+
ASSET_BILL_TYPE["AFFILIATE_COMMISSION"] = "150";
|
|
101
|
+
ASSET_BILL_TYPE["REFERRAL_REWARD"] = "151";
|
|
102
|
+
ASSET_BILL_TYPE["BROKER_REWARD"] = "152";
|
|
103
|
+
ASSET_BILL_TYPE["JOINER_REWARD"] = "153";
|
|
104
|
+
ASSET_BILL_TYPE["MYSTERY_BOX_REWARD"] = "154";
|
|
105
|
+
ASSET_BILL_TYPE["REWARDS_WITHDRAW"] = "155";
|
|
106
|
+
ASSET_BILL_TYPE["FEE_REBATE_1"] = "156";
|
|
107
|
+
ASSET_BILL_TYPE["COLLECTED_CRYPTO"] = "157";
|
|
108
|
+
ASSET_BILL_TYPE["DUAL_INVESTMENT_SUBSCRIBE"] = "160";
|
|
109
|
+
ASSET_BILL_TYPE["DUAL_INVESTMENT_COLLECTION"] = "161";
|
|
110
|
+
ASSET_BILL_TYPE["DUAL_INVESTMENT_PROFIT"] = "162";
|
|
111
|
+
ASSET_BILL_TYPE["DUAL_INVESTMENT_REFUND"] = "163";
|
|
112
|
+
ASSET_BILL_TYPE["NEW_YEAR_REWARDS_2022"] = "169";
|
|
113
|
+
ASSET_BILL_TYPE["REFERRAL_REFERRED_CUSTOMER"] = "170";
|
|
114
|
+
ASSET_BILL_TYPE["REFERRAL_WAS_REFERRED"] = "171";
|
|
115
|
+
ASSET_BILL_TYPE["SUB_AFFILIATE_COMMISSION"] = "172";
|
|
116
|
+
ASSET_BILL_TYPE["FEE_REBATE_2"] = "173";
|
|
117
|
+
ASSET_BILL_TYPE["PAY"] = "174";
|
|
118
|
+
ASSET_BILL_TYPE["LOCKED_COLLATERAL"] = "175";
|
|
119
|
+
ASSET_BILL_TYPE["LOAN"] = "176";
|
|
120
|
+
ASSET_BILL_TYPE["ADDED_COLLATERAL"] = "177";
|
|
121
|
+
ASSET_BILL_TYPE["RETURNED_COLLATERAL"] = "178";
|
|
122
|
+
ASSET_BILL_TYPE["REPAYMENT"] = "179";
|
|
123
|
+
ASSET_BILL_TYPE["UNLOCKED_COLLATERAL"] = "180";
|
|
124
|
+
ASSET_BILL_TYPE["REPAY_AIRDROPPED_CRYPTO"] = "181";
|
|
125
|
+
ASSET_BILL_TYPE["FEEDBACK_BOUNTY"] = "182";
|
|
126
|
+
ASSET_BILL_TYPE["INVITE_FRIENDS_REWARDS"] = "183";
|
|
127
|
+
ASSET_BILL_TYPE["DIVIDE_THE_REWARD_POOL"] = "184";
|
|
128
|
+
ASSET_BILL_TYPE["BROKER_CONVERT_REWARD"] = "185";
|
|
129
|
+
ASSET_BILL_TYPE["FREEETH"] = "186";
|
|
130
|
+
ASSET_BILL_TYPE["CONVERT_TRANSFER"] = "187";
|
|
131
|
+
ASSET_BILL_TYPE["SLOT_AUCTION_CONVERSION"] = "188";
|
|
132
|
+
ASSET_BILL_TYPE["MYSTERY_BOX_BONUS"] = "189";
|
|
133
|
+
ASSET_BILL_TYPE["CARD_PAYMENT_BUY_1"] = "193";
|
|
134
|
+
ASSET_BILL_TYPE["CARD_PAYMENT_BUY_2"] = "194";
|
|
135
|
+
ASSET_BILL_TYPE["UNTRADABLE_ASSET_WITHDRAWAL"] = "195";
|
|
136
|
+
ASSET_BILL_TYPE["UNTRADABLE_ASSET_WITHDRAWAL_REVOKED"] = "196";
|
|
137
|
+
ASSET_BILL_TYPE["UNTRADABLE_ASSET_DEPOSIT"] = "197";
|
|
138
|
+
ASSET_BILL_TYPE["UNTRADABLE_ASSET_COLLECTION_1"] = "198";
|
|
139
|
+
ASSET_BILL_TYPE["UNTRADABLE_ASSET_COLLECTION_2"] = "199";
|
|
140
|
+
ASSET_BILL_TYPE["BUY"] = "200";
|
|
141
|
+
ASSET_BILL_TYPE["WIN_CRYPTO_WITH_SATOSHI"] = "211";
|
|
142
|
+
})(ASSET_BILL_TYPE = exports.ASSET_BILL_TYPE || (exports.ASSET_BILL_TYPE = {}));
|
|
143
|
+
//# sourceMappingURL=funding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funding.js","sourceRoot":"","sources":["../../src/constants/funding.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './funding';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./funding"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
12
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports
|
|
14
|
-
|
|
15
|
-
exports
|
|
17
|
+
__exportStar(require("./rest-client"), exports);
|
|
18
|
+
__exportStar(require("./util/typeGuards"), exports);
|
|
19
|
+
__exportStar(require("./constants"), exports);
|
|
20
|
+
// export * from './util/WsStore';
|
|
16
21
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,8CAA4B;AAC5B,kCAAkC"}
|