@chainstream-io/sdk 0.1.8 → 0.1.9
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 +2 -2
- package/dist/esm/index.js +73 -74
- package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
- package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
- package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
- package/dist/esm/openapi/apis/DexApi.js +205 -176
- package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
- package/dist/esm/openapi/apis/EndpointApi.js +212 -175
- package/dist/esm/openapi/apis/IpfsApi.js +38 -25
- package/dist/esm/openapi/apis/JobsApi.js +65 -48
- package/dist/esm/openapi/apis/RankingApi.js +278 -249
- package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
- package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
- package/dist/esm/openapi/apis/TradeApi.js +233 -208
- package/dist/esm/openapi/apis/TransactionApi.js +42 -29
- package/dist/esm/openapi/apis/WalletApi.js +148 -123
- package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
- package/dist/esm/openapi/runtime.js +119 -118
- package/dist/esm/stream/stream.js +36 -34
- package/dist/index.js +99 -96
- package/dist/openapi/apis/BlockchainApi.js +69 -48
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +74 -53
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +45 -28
- package/dist/openapi/apis/DexApi.js +217 -184
- package/dist/openapi/apis/DexPoolApi.js +49 -32
- package/dist/openapi/apis/EndpointApi.js +220 -179
- package/dist/openapi/apis/IpfsApi.js +44 -27
- package/dist/openapi/apis/JobsApi.js +72 -51
- package/dist/openapi/apis/RankingApi.js +306 -273
- package/dist/openapi/apis/RedPacketApi.js +305 -260
- package/dist/openapi/apis/TokenApi.js +1182 -1089
- package/dist/openapi/apis/TradeApi.js +256 -227
- package/dist/openapi/apis/TransactionApi.js +49 -32
- package/dist/openapi/apis/WalletApi.js +159 -130
- package/dist/openapi/apis/WatchlistApi.js +49 -32
- package/dist/openapi/apis/index.js +31 -15
- package/dist/openapi/index.js +19 -3
- package/dist/openapi/models/BlockchainDTO.js +12 -5
- package/dist/openapi/models/BlockchainLatestBlockDTO.js +12 -5
- package/dist/openapi/models/BooleanResultDTO.js +12 -5
- package/dist/openapi/models/CalculatePnlInput.js +12 -5
- package/dist/openapi/models/Candle.js +15 -8
- package/dist/openapi/models/ClaimRedPacketInput.js +12 -5
- package/dist/openapi/models/CreateEndpointInput.js +12 -5
- package/dist/openapi/models/CreateRedPacketInput.js +12 -5
- package/dist/openapi/models/CreateRedPacketReply.js +12 -5
- package/dist/openapi/models/CreateTokenInput.js +14 -6
- package/dist/openapi/models/CreateTokenReply.js +12 -5
- package/dist/openapi/models/DexDTO.js +12 -5
- package/dist/openapi/models/DexPage.js +15 -8
- package/dist/openapi/models/DexPoolDTO.js +12 -5
- package/dist/openapi/models/EndpointListResponse.js +15 -8
- package/dist/openapi/models/EndpointOperationResponse.js +12 -5
- package/dist/openapi/models/EndpointResponse.js +12 -5
- package/dist/openapi/models/EndpointSecretResponse.js +12 -5
- package/dist/openapi/models/FilterCondition.js +14 -6
- package/dist/openapi/models/GainersAndLosersDTO.js +12 -5
- package/dist/openapi/models/GainersAndLosersPage.js +15 -8
- package/dist/openapi/models/JobDTO.js +12 -5
- package/dist/openapi/models/JobStreamingDTO.js +12 -5
- package/dist/openapi/models/Link.js +14 -6
- package/dist/openapi/models/MoonshotCreateTokenInput.js +18 -10
- package/dist/openapi/models/MoonshotCreateTokenReply.js +12 -5
- package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js +12 -5
- package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js +12 -5
- package/dist/openapi/models/PumpCreateTokenInput.js +15 -7
- package/dist/openapi/models/PumpCreateTokenReply.js +12 -5
- package/dist/openapi/models/QuoteResponse.js +12 -5
- package/dist/openapi/models/RedPacketClaimDTO.js +14 -6
- package/dist/openapi/models/RedPacketClaimsPage.js +15 -8
- package/dist/openapi/models/RedPacketDTO.js +14 -6
- package/dist/openapi/models/RedPacketReply.js +12 -5
- package/dist/openapi/models/RedPacketSendTxInput.js +12 -5
- package/dist/openapi/models/RedPacketSendTxResponse.js +12 -5
- package/dist/openapi/models/RedPacketsPage.js +15 -8
- package/dist/openapi/models/Resolution.js +17 -9
- package/dist/openapi/models/SendTxInput.js +14 -6
- package/dist/openapi/models/SendTxResponse.js +12 -5
- package/dist/openapi/models/SwapInput.js +15 -7
- package/dist/openapi/models/SwapReply.js +12 -5
- package/dist/openapi/models/SwapRouteInput.js +15 -7
- package/dist/openapi/models/SwapRouteResponse.js +15 -8
- package/dist/openapi/models/Token.js +30 -23
- package/dist/openapi/models/TokenCreationDTO.js +14 -6
- package/dist/openapi/models/TokenCreationPage.js +15 -8
- package/dist/openapi/models/TokenCreatorsDTO.js +12 -5
- package/dist/openapi/models/TokenExtraDTO.js +12 -5
- package/dist/openapi/models/TokenHolder.js +12 -5
- package/dist/openapi/models/TokenHolderPage.js +15 -8
- package/dist/openapi/models/TokenListPage.js +15 -8
- package/dist/openapi/models/TokenMarketData.js +12 -5
- package/dist/openapi/models/TokenMetadata.js +21 -14
- package/dist/openapi/models/TokenPage.js +15 -8
- package/dist/openapi/models/TokenPriceDTO.js +12 -5
- package/dist/openapi/models/TokenPricePage.js +15 -8
- package/dist/openapi/models/TokenSocialMediasDTO.js +12 -5
- package/dist/openapi/models/TokenStat.js +12 -5
- package/dist/openapi/models/TopTradersDTO.js +12 -5
- package/dist/openapi/models/TopTradersPage.js +15 -8
- package/dist/openapi/models/TradeDetailDTO.js +12 -5
- package/dist/openapi/models/TradeEvent.js +15 -8
- package/dist/openapi/models/TradePage.js +15 -8
- package/dist/openapi/models/TradeType.js +17 -9
- package/dist/openapi/models/UpdateEndpointInput.js +12 -5
- package/dist/openapi/models/WalletBalanceDetailDTO.js +12 -5
- package/dist/openapi/models/WalletBalancesDTO.js +15 -8
- package/dist/openapi/models/WalletPnlDTO.js +12 -5
- package/dist/openapi/models/index.js +86 -70
- package/dist/openapi/runtime.js +153 -136
- package/dist/stream/index.js +19 -3
- package/dist/stream/stream.fields.js +11 -5
- package/dist/stream/stream.js +45 -39
- package/dist/stream/stream.model.js +13 -10
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,19 +12,25 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDexPage = instanceOfDexPage;
|
|
17
|
+
exports.DexPageFromJSON = DexPageFromJSON;
|
|
18
|
+
exports.DexPageFromJSONTyped = DexPageFromJSONTyped;
|
|
19
|
+
exports.DexPageToJSON = DexPageToJSON;
|
|
20
|
+
exports.DexPageToJSONTyped = DexPageToJSONTyped;
|
|
21
|
+
const DexDTO_1 = require("./DexDTO");
|
|
15
22
|
/**
|
|
16
23
|
* Check if a given object implements the DexPage interface.
|
|
17
24
|
*/
|
|
18
|
-
|
|
25
|
+
function instanceOfDexPage(value) {
|
|
19
26
|
if (!('data' in value) || value['data'] === undefined)
|
|
20
27
|
return false;
|
|
21
28
|
return true;
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
function DexPageFromJSON(json) {
|
|
24
31
|
return DexPageFromJSONTyped(json, false);
|
|
25
32
|
}
|
|
26
|
-
|
|
33
|
+
function DexPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
34
|
if (json == null) {
|
|
28
35
|
return json;
|
|
29
36
|
}
|
|
@@ -33,13 +40,13 @@ export function DexPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
40
|
'startCursor': json['startCursor'] == null ? undefined : json['startCursor'],
|
|
34
41
|
'endCursor': json['endCursor'] == null ? undefined : json['endCursor'],
|
|
35
42
|
'total': json['total'] == null ? undefined : json['total'],
|
|
36
|
-
'data': (json['data'].map(DexDTOFromJSON)),
|
|
43
|
+
'data': (json['data'].map(DexDTO_1.DexDTOFromJSON)),
|
|
37
44
|
};
|
|
38
45
|
}
|
|
39
|
-
|
|
46
|
+
function DexPageToJSON(json) {
|
|
40
47
|
return DexPageToJSONTyped(json, false);
|
|
41
48
|
}
|
|
42
|
-
|
|
49
|
+
function DexPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
50
|
if (value == null) {
|
|
44
51
|
return value;
|
|
45
52
|
}
|
|
@@ -49,6 +56,6 @@ export function DexPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
56
|
'startCursor': value['startCursor'],
|
|
50
57
|
'endCursor': value['endCursor'],
|
|
51
58
|
'total': value['total'],
|
|
52
|
-
'data': (value['data'].map(DexDTOToJSON)),
|
|
59
|
+
'data': (value['data'].map(DexDTO_1.DexDTOToJSON)),
|
|
53
60
|
};
|
|
54
61
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,10 +12,16 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDexPoolDTO = instanceOfDexPoolDTO;
|
|
17
|
+
exports.DexPoolDTOFromJSON = DexPoolDTOFromJSON;
|
|
18
|
+
exports.DexPoolDTOFromJSONTyped = DexPoolDTOFromJSONTyped;
|
|
19
|
+
exports.DexPoolDTOToJSON = DexPoolDTOToJSON;
|
|
20
|
+
exports.DexPoolDTOToJSONTyped = DexPoolDTOToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the DexPoolDTO interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfDexPoolDTO(value) {
|
|
18
25
|
if (!('chain' in value) || value['chain'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
if (!('poolAddress' in value) || value['poolAddress'] === undefined)
|
|
@@ -25,10 +32,10 @@ export function instanceOfDexPoolDTO(value) {
|
|
|
25
32
|
return false;
|
|
26
33
|
return true;
|
|
27
34
|
}
|
|
28
|
-
|
|
35
|
+
function DexPoolDTOFromJSON(json) {
|
|
29
36
|
return DexPoolDTOFromJSONTyped(json, false);
|
|
30
37
|
}
|
|
31
|
-
|
|
38
|
+
function DexPoolDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
39
|
if (json == null) {
|
|
33
40
|
return json;
|
|
34
41
|
}
|
|
@@ -45,10 +52,10 @@ export function DexPoolDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
52
|
'tvlInSol': json['tvlInSol'] == null ? undefined : json['tvlInSol'],
|
|
46
53
|
};
|
|
47
54
|
}
|
|
48
|
-
|
|
55
|
+
function DexPoolDTOToJSON(json) {
|
|
49
56
|
return DexPoolDTOToJSONTyped(json, false);
|
|
50
57
|
}
|
|
51
|
-
|
|
58
|
+
function DexPoolDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
59
|
if (value == null) {
|
|
53
60
|
return value;
|
|
54
61
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,36 +12,42 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEndpointListResponse = instanceOfEndpointListResponse;
|
|
17
|
+
exports.EndpointListResponseFromJSON = EndpointListResponseFromJSON;
|
|
18
|
+
exports.EndpointListResponseFromJSONTyped = EndpointListResponseFromJSONTyped;
|
|
19
|
+
exports.EndpointListResponseToJSON = EndpointListResponseToJSON;
|
|
20
|
+
exports.EndpointListResponseToJSONTyped = EndpointListResponseToJSONTyped;
|
|
21
|
+
const EndpointResponse_1 = require("./EndpointResponse");
|
|
15
22
|
/**
|
|
16
23
|
* Check if a given object implements the EndpointListResponse interface.
|
|
17
24
|
*/
|
|
18
|
-
|
|
25
|
+
function instanceOfEndpointListResponse(value) {
|
|
19
26
|
return true;
|
|
20
27
|
}
|
|
21
|
-
|
|
28
|
+
function EndpointListResponseFromJSON(json) {
|
|
22
29
|
return EndpointListResponseFromJSONTyped(json, false);
|
|
23
30
|
}
|
|
24
|
-
|
|
31
|
+
function EndpointListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
32
|
if (json == null) {
|
|
26
33
|
return json;
|
|
27
34
|
}
|
|
28
35
|
return {
|
|
29
|
-
'data': json['data'] == null ? undefined : (json['data'].map(EndpointResponseFromJSON)),
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(EndpointResponse_1.EndpointResponseFromJSON)),
|
|
30
37
|
'done': json['done'] == null ? undefined : json['done'],
|
|
31
38
|
'iterator': json['iterator'] == null ? undefined : json['iterator'],
|
|
32
39
|
'prevIterator': json['prevIterator'] == null ? undefined : json['prevIterator'],
|
|
33
40
|
};
|
|
34
41
|
}
|
|
35
|
-
|
|
42
|
+
function EndpointListResponseToJSON(json) {
|
|
36
43
|
return EndpointListResponseToJSONTyped(json, false);
|
|
37
44
|
}
|
|
38
|
-
|
|
45
|
+
function EndpointListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
46
|
if (value == null) {
|
|
40
47
|
return value;
|
|
41
48
|
}
|
|
42
49
|
return {
|
|
43
|
-
'data': value['data'] == null ? undefined : (value['data'].map(EndpointResponseToJSON)),
|
|
50
|
+
'data': value['data'] == null ? undefined : (value['data'].map(EndpointResponse_1.EndpointResponseToJSON)),
|
|
44
51
|
'done': value['done'],
|
|
45
52
|
'iterator': value['iterator'],
|
|
46
53
|
'prevIterator': value['prevIterator'],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,16 +12,22 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEndpointOperationResponse = instanceOfEndpointOperationResponse;
|
|
17
|
+
exports.EndpointOperationResponseFromJSON = EndpointOperationResponseFromJSON;
|
|
18
|
+
exports.EndpointOperationResponseFromJSONTyped = EndpointOperationResponseFromJSONTyped;
|
|
19
|
+
exports.EndpointOperationResponseToJSON = EndpointOperationResponseToJSON;
|
|
20
|
+
exports.EndpointOperationResponseToJSONTyped = EndpointOperationResponseToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the EndpointOperationResponse interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfEndpointOperationResponse(value) {
|
|
18
25
|
return true;
|
|
19
26
|
}
|
|
20
|
-
|
|
27
|
+
function EndpointOperationResponseFromJSON(json) {
|
|
21
28
|
return EndpointOperationResponseFromJSONTyped(json, false);
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
function EndpointOperationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
31
|
if (json == null) {
|
|
25
32
|
return json;
|
|
26
33
|
}
|
|
@@ -28,10 +35,10 @@ export function EndpointOperationResponseFromJSONTyped(json, ignoreDiscriminator
|
|
|
28
35
|
'success': json['success'] == null ? undefined : json['success'],
|
|
29
36
|
};
|
|
30
37
|
}
|
|
31
|
-
|
|
38
|
+
function EndpointOperationResponseToJSON(json) {
|
|
32
39
|
return EndpointOperationResponseToJSONTyped(json, false);
|
|
33
40
|
}
|
|
34
|
-
|
|
41
|
+
function EndpointOperationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
42
|
if (value == null) {
|
|
36
43
|
return value;
|
|
37
44
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,16 +12,22 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEndpointResponse = instanceOfEndpointResponse;
|
|
17
|
+
exports.EndpointResponseFromJSON = EndpointResponseFromJSON;
|
|
18
|
+
exports.EndpointResponseFromJSONTyped = EndpointResponseFromJSONTyped;
|
|
19
|
+
exports.EndpointResponseToJSON = EndpointResponseToJSON;
|
|
20
|
+
exports.EndpointResponseToJSONTyped = EndpointResponseToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the EndpointResponse interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfEndpointResponse(value) {
|
|
18
25
|
return true;
|
|
19
26
|
}
|
|
20
|
-
|
|
27
|
+
function EndpointResponseFromJSON(json) {
|
|
21
28
|
return EndpointResponseFromJSONTyped(json, false);
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
function EndpointResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
31
|
if (json == null) {
|
|
25
32
|
return json;
|
|
26
33
|
}
|
|
@@ -38,10 +45,10 @@ export function EndpointResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
45
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
39
46
|
};
|
|
40
47
|
}
|
|
41
|
-
|
|
48
|
+
function EndpointResponseToJSON(json) {
|
|
42
49
|
return EndpointResponseToJSONTyped(json, false);
|
|
43
50
|
}
|
|
44
|
-
|
|
51
|
+
function EndpointResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
52
|
if (value == null) {
|
|
46
53
|
return value;
|
|
47
54
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,16 +12,22 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEndpointSecretResponse = instanceOfEndpointSecretResponse;
|
|
17
|
+
exports.EndpointSecretResponseFromJSON = EndpointSecretResponseFromJSON;
|
|
18
|
+
exports.EndpointSecretResponseFromJSONTyped = EndpointSecretResponseFromJSONTyped;
|
|
19
|
+
exports.EndpointSecretResponseToJSON = EndpointSecretResponseToJSON;
|
|
20
|
+
exports.EndpointSecretResponseToJSONTyped = EndpointSecretResponseToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the EndpointSecretResponse interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfEndpointSecretResponse(value) {
|
|
18
25
|
return true;
|
|
19
26
|
}
|
|
20
|
-
|
|
27
|
+
function EndpointSecretResponseFromJSON(json) {
|
|
21
28
|
return EndpointSecretResponseFromJSONTyped(json, false);
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
function EndpointSecretResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
31
|
if (json == null) {
|
|
25
32
|
return json;
|
|
26
33
|
}
|
|
@@ -28,10 +35,10 @@ export function EndpointSecretResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
35
|
'secret': json['secret'] == null ? undefined : json['secret'],
|
|
29
36
|
};
|
|
30
37
|
}
|
|
31
|
-
|
|
38
|
+
function EndpointSecretResponseToJSON(json) {
|
|
32
39
|
return EndpointSecretResponseToJSONTyped(json, false);
|
|
33
40
|
}
|
|
34
|
-
|
|
41
|
+
function EndpointSecretResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
42
|
if (value == null) {
|
|
36
43
|
return value;
|
|
37
44
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,10 +12,17 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FilterConditionFieldEnum = void 0;
|
|
17
|
+
exports.instanceOfFilterCondition = instanceOfFilterCondition;
|
|
18
|
+
exports.FilterConditionFromJSON = FilterConditionFromJSON;
|
|
19
|
+
exports.FilterConditionFromJSONTyped = FilterConditionFromJSONTyped;
|
|
20
|
+
exports.FilterConditionToJSON = FilterConditionToJSON;
|
|
21
|
+
exports.FilterConditionToJSONTyped = FilterConditionToJSONTyped;
|
|
14
22
|
/**
|
|
15
23
|
* @export
|
|
16
24
|
*/
|
|
17
|
-
|
|
25
|
+
exports.FilterConditionFieldEnum = {
|
|
18
26
|
MarketDataPriceInUsd: 'marketData.priceInUsd',
|
|
19
27
|
StatsPriceChangeRatioInUsd1m: 'stats.priceChangeRatioInUsd1m',
|
|
20
28
|
StatsPriceChangeRatioInUsd5m: 'stats.priceChangeRatioInUsd5m',
|
|
@@ -64,13 +72,13 @@ export const FilterConditionFieldEnum = {
|
|
|
64
72
|
/**
|
|
65
73
|
* Check if a given object implements the FilterCondition interface.
|
|
66
74
|
*/
|
|
67
|
-
|
|
75
|
+
function instanceOfFilterCondition(value) {
|
|
68
76
|
return true;
|
|
69
77
|
}
|
|
70
|
-
|
|
78
|
+
function FilterConditionFromJSON(json) {
|
|
71
79
|
return FilterConditionFromJSONTyped(json, false);
|
|
72
80
|
}
|
|
73
|
-
|
|
81
|
+
function FilterConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
82
|
if (json == null) {
|
|
75
83
|
return json;
|
|
76
84
|
}
|
|
@@ -80,10 +88,10 @@ export function FilterConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
80
88
|
'max': json['max'] == null ? undefined : json['max'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
|
-
|
|
91
|
+
function FilterConditionToJSON(json) {
|
|
84
92
|
return FilterConditionToJSONTyped(json, false);
|
|
85
93
|
}
|
|
86
|
-
|
|
94
|
+
function FilterConditionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
87
95
|
if (value == null) {
|
|
88
96
|
return value;
|
|
89
97
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,10 +12,16 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGainersAndLosersDTO = instanceOfGainersAndLosersDTO;
|
|
17
|
+
exports.GainersAndLosersDTOFromJSON = GainersAndLosersDTOFromJSON;
|
|
18
|
+
exports.GainersAndLosersDTOFromJSONTyped = GainersAndLosersDTOFromJSONTyped;
|
|
19
|
+
exports.GainersAndLosersDTOToJSON = GainersAndLosersDTOToJSON;
|
|
20
|
+
exports.GainersAndLosersDTOToJSONTyped = GainersAndLosersDTOToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the GainersAndLosersDTO interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfGainersAndLosersDTO(value) {
|
|
18
25
|
if (!('address' in value) || value['address'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
if (!('pnl' in value) || value['pnl'] === undefined)
|
|
@@ -25,10 +32,10 @@ export function instanceOfGainersAndLosersDTO(value) {
|
|
|
25
32
|
return false;
|
|
26
33
|
return true;
|
|
27
34
|
}
|
|
28
|
-
|
|
35
|
+
function GainersAndLosersDTOFromJSON(json) {
|
|
29
36
|
return GainersAndLosersDTOFromJSONTyped(json, false);
|
|
30
37
|
}
|
|
31
|
-
|
|
38
|
+
function GainersAndLosersDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
39
|
if (json == null) {
|
|
33
40
|
return json;
|
|
34
41
|
}
|
|
@@ -39,10 +46,10 @@ export function GainersAndLosersDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
46
|
'volume': json['volume'],
|
|
40
47
|
};
|
|
41
48
|
}
|
|
42
|
-
|
|
49
|
+
function GainersAndLosersDTOToJSON(json) {
|
|
43
50
|
return GainersAndLosersDTOToJSONTyped(json, false);
|
|
44
51
|
}
|
|
45
|
-
|
|
52
|
+
function GainersAndLosersDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
53
|
if (value == null) {
|
|
47
54
|
return value;
|
|
48
55
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,19 +12,25 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGainersAndLosersPage = instanceOfGainersAndLosersPage;
|
|
17
|
+
exports.GainersAndLosersPageFromJSON = GainersAndLosersPageFromJSON;
|
|
18
|
+
exports.GainersAndLosersPageFromJSONTyped = GainersAndLosersPageFromJSONTyped;
|
|
19
|
+
exports.GainersAndLosersPageToJSON = GainersAndLosersPageToJSON;
|
|
20
|
+
exports.GainersAndLosersPageToJSONTyped = GainersAndLosersPageToJSONTyped;
|
|
21
|
+
const GainersAndLosersDTO_1 = require("./GainersAndLosersDTO");
|
|
15
22
|
/**
|
|
16
23
|
* Check if a given object implements the GainersAndLosersPage interface.
|
|
17
24
|
*/
|
|
18
|
-
|
|
25
|
+
function instanceOfGainersAndLosersPage(value) {
|
|
19
26
|
if (!('data' in value) || value['data'] === undefined)
|
|
20
27
|
return false;
|
|
21
28
|
return true;
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
function GainersAndLosersPageFromJSON(json) {
|
|
24
31
|
return GainersAndLosersPageFromJSONTyped(json, false);
|
|
25
32
|
}
|
|
26
|
-
|
|
33
|
+
function GainersAndLosersPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
34
|
if (json == null) {
|
|
28
35
|
return json;
|
|
29
36
|
}
|
|
@@ -33,13 +40,13 @@ export function GainersAndLosersPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
40
|
'startCursor': json['startCursor'] == null ? undefined : json['startCursor'],
|
|
34
41
|
'endCursor': json['endCursor'] == null ? undefined : json['endCursor'],
|
|
35
42
|
'total': json['total'] == null ? undefined : json['total'],
|
|
36
|
-
'data': (json['data'].map(GainersAndLosersDTOFromJSON)),
|
|
43
|
+
'data': (json['data'].map(GainersAndLosersDTO_1.GainersAndLosersDTOFromJSON)),
|
|
37
44
|
};
|
|
38
45
|
}
|
|
39
|
-
|
|
46
|
+
function GainersAndLosersPageToJSON(json) {
|
|
40
47
|
return GainersAndLosersPageToJSONTyped(json, false);
|
|
41
48
|
}
|
|
42
|
-
|
|
49
|
+
function GainersAndLosersPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
50
|
if (value == null) {
|
|
44
51
|
return value;
|
|
45
52
|
}
|
|
@@ -49,6 +56,6 @@ export function GainersAndLosersPageToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
49
56
|
'startCursor': value['startCursor'],
|
|
50
57
|
'endCursor': value['endCursor'],
|
|
51
58
|
'total': value['total'],
|
|
52
|
-
'data': (value['data'].map(GainersAndLosersDTOToJSON)),
|
|
59
|
+
'data': (value['data'].map(GainersAndLosersDTO_1.GainersAndLosersDTOToJSON)),
|
|
53
60
|
};
|
|
54
61
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,20 +12,26 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfJobDTO = instanceOfJobDTO;
|
|
17
|
+
exports.JobDTOFromJSON = JobDTOFromJSON;
|
|
18
|
+
exports.JobDTOFromJSONTyped = JobDTOFromJSONTyped;
|
|
19
|
+
exports.JobDTOToJSON = JobDTOToJSON;
|
|
20
|
+
exports.JobDTOToJSONTyped = JobDTOToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the JobDTO interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfJobDTO(value) {
|
|
18
25
|
if (!('state' in value) || value['state'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
if (!('result' in value) || value['result'] === undefined)
|
|
21
28
|
return false;
|
|
22
29
|
return true;
|
|
23
30
|
}
|
|
24
|
-
|
|
31
|
+
function JobDTOFromJSON(json) {
|
|
25
32
|
return JobDTOFromJSONTyped(json, false);
|
|
26
33
|
}
|
|
27
|
-
|
|
34
|
+
function JobDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
35
|
if (json == null) {
|
|
29
36
|
return json;
|
|
30
37
|
}
|
|
@@ -33,10 +40,10 @@ export function JobDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
40
|
'result': json['result'],
|
|
34
41
|
};
|
|
35
42
|
}
|
|
36
|
-
|
|
43
|
+
function JobDTOToJSON(json) {
|
|
37
44
|
return JobDTOToJSONTyped(json, false);
|
|
38
45
|
}
|
|
39
|
-
|
|
46
|
+
function JobDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
47
|
if (value == null) {
|
|
41
48
|
return value;
|
|
42
49
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,20 +12,26 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfJobStreamingDTO = instanceOfJobStreamingDTO;
|
|
17
|
+
exports.JobStreamingDTOFromJSON = JobStreamingDTOFromJSON;
|
|
18
|
+
exports.JobStreamingDTOFromJSONTyped = JobStreamingDTOFromJSONTyped;
|
|
19
|
+
exports.JobStreamingDTOToJSON = JobStreamingDTOToJSON;
|
|
20
|
+
exports.JobStreamingDTOToJSONTyped = JobStreamingDTOToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the JobStreamingDTO interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfJobStreamingDTO(value) {
|
|
18
25
|
if (!('id' in value) || value['id'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
if (!('data' in value) || value['data'] === undefined)
|
|
21
28
|
return false;
|
|
22
29
|
return true;
|
|
23
30
|
}
|
|
24
|
-
|
|
31
|
+
function JobStreamingDTOFromJSON(json) {
|
|
25
32
|
return JobStreamingDTOFromJSONTyped(json, false);
|
|
26
33
|
}
|
|
27
|
-
|
|
34
|
+
function JobStreamingDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
35
|
if (json == null) {
|
|
29
36
|
return json;
|
|
30
37
|
}
|
|
@@ -33,10 +40,10 @@ export function JobStreamingDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
40
|
'data': json['data'],
|
|
34
41
|
};
|
|
35
42
|
}
|
|
36
|
-
|
|
43
|
+
function JobStreamingDTOToJSON(json) {
|
|
37
44
|
return JobStreamingDTOToJSONTyped(json, false);
|
|
38
45
|
}
|
|
39
|
-
|
|
46
|
+
function JobStreamingDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
47
|
if (value == null) {
|
|
41
48
|
return value;
|
|
42
49
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,10 +12,17 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LinkLabelEnum = void 0;
|
|
17
|
+
exports.instanceOfLink = instanceOfLink;
|
|
18
|
+
exports.LinkFromJSON = LinkFromJSON;
|
|
19
|
+
exports.LinkFromJSONTyped = LinkFromJSONTyped;
|
|
20
|
+
exports.LinkToJSON = LinkToJSON;
|
|
21
|
+
exports.LinkToJSONTyped = LinkToJSONTyped;
|
|
14
22
|
/**
|
|
15
23
|
* @export
|
|
16
24
|
*/
|
|
17
|
-
|
|
25
|
+
exports.LinkLabelEnum = {
|
|
18
26
|
Website: 'website',
|
|
19
27
|
Twitter: 'twitter',
|
|
20
28
|
Telegram: 'telegram',
|
|
@@ -23,17 +31,17 @@ export const LinkLabelEnum = {
|
|
|
23
31
|
/**
|
|
24
32
|
* Check if a given object implements the Link interface.
|
|
25
33
|
*/
|
|
26
|
-
|
|
34
|
+
function instanceOfLink(value) {
|
|
27
35
|
if (!('url' in value) || value['url'] === undefined)
|
|
28
36
|
return false;
|
|
29
37
|
if (!('label' in value) || value['label'] === undefined)
|
|
30
38
|
return false;
|
|
31
39
|
return true;
|
|
32
40
|
}
|
|
33
|
-
|
|
41
|
+
function LinkFromJSON(json) {
|
|
34
42
|
return LinkFromJSONTyped(json, false);
|
|
35
43
|
}
|
|
36
|
-
|
|
44
|
+
function LinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
45
|
if (json == null) {
|
|
38
46
|
return json;
|
|
39
47
|
}
|
|
@@ -42,10 +50,10 @@ export function LinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
50
|
'label': json['label'],
|
|
43
51
|
};
|
|
44
52
|
}
|
|
45
|
-
|
|
53
|
+
function LinkToJSON(json) {
|
|
46
54
|
return LinkToJSONTyped(json, false);
|
|
47
55
|
}
|
|
48
|
-
|
|
56
|
+
function LinkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
57
|
if (value == null) {
|
|
50
58
|
return value;
|
|
51
59
|
}
|