@dynamic-labs/sdk-api 0.0.213 → 0.0.215
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/package.json
CHANGED
package/src/apis/ChainsApi.cjs
CHANGED
|
@@ -38,10 +38,10 @@ class ChainsApi extends runtime.BaseAPI {
|
|
|
38
38
|
/**
|
|
39
39
|
* Get tokens for passed chainName.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
getAllTokensByChainRaw(requestParameters, initOverrides) {
|
|
42
42
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
44
|
-
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling
|
|
44
|
+
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getAllTokensByChain.');
|
|
45
45
|
}
|
|
46
46
|
const queryParameters = {};
|
|
47
47
|
if (requestParameters.networkId !== undefined) {
|
|
@@ -67,9 +67,9 @@ class ChainsApi extends runtime.BaseAPI {
|
|
|
67
67
|
/**
|
|
68
68
|
* Get tokens for passed chainName.
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
getAllTokensByChain(requestParameters, initOverrides) {
|
|
71
71
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
const response = yield this.
|
|
72
|
+
const response = yield this.getAllTokensByChainRaw(requestParameters, initOverrides);
|
|
73
73
|
return yield response.value();
|
|
74
74
|
});
|
|
75
75
|
}
|
package/src/apis/ChainsApi.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { ChainEnum, ChainToken } from '../models';
|
|
14
|
-
export interface
|
|
14
|
+
export interface GetAllTokensByChainRequest {
|
|
15
15
|
chainName: ChainEnum;
|
|
16
16
|
networkId?: number;
|
|
17
17
|
}
|
|
@@ -22,9 +22,9 @@ export declare class ChainsApi extends runtime.BaseAPI {
|
|
|
22
22
|
/**
|
|
23
23
|
* Get tokens for passed chainName.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
getAllTokensByChainRaw(requestParameters: GetAllTokensByChainRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<ChainToken>>>;
|
|
26
26
|
/**
|
|
27
27
|
* Get tokens for passed chainName.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
getAllTokensByChain(requestParameters: GetAllTokensByChainRequest, initOverrides?: RequestInit): Promise<Array<ChainToken>>;
|
|
30
30
|
}
|
package/src/apis/ChainsApi.js
CHANGED
|
@@ -34,10 +34,10 @@ class ChainsApi extends BaseAPI {
|
|
|
34
34
|
/**
|
|
35
35
|
* Get tokens for passed chainName.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
getAllTokensByChainRaw(requestParameters, initOverrides) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
40
|
-
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling
|
|
40
|
+
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getAllTokensByChain.');
|
|
41
41
|
}
|
|
42
42
|
const queryParameters = {};
|
|
43
43
|
if (requestParameters.networkId !== undefined) {
|
|
@@ -63,9 +63,9 @@ class ChainsApi extends BaseAPI {
|
|
|
63
63
|
/**
|
|
64
64
|
* Get tokens for passed chainName.
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
getAllTokensByChain(requestParameters, initOverrides) {
|
|
67
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const response = yield this.
|
|
68
|
+
const response = yield this.getAllTokensByChainRaw(requestParameters, initOverrides);
|
|
69
69
|
return yield response.value();
|
|
70
70
|
});
|
|
71
71
|
}
|
|
@@ -23,6 +23,7 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
23
|
'team': !runtime.exists(json, 'team') ? undefined : json['team'],
|
|
24
24
|
'policiesConsent': !runtime.exists(json, 'policiesConsent') ? undefined : json['policiesConsent'],
|
|
25
25
|
'country': !runtime.exists(json, 'country') ? undefined : json['country'],
|
|
26
|
+
'username': !runtime.exists(json, 'username') ? undefined : json['username'],
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
function InternalUserFieldsToJSON(value) {
|
|
@@ -43,6 +44,7 @@ function InternalUserFieldsToJSON(value) {
|
|
|
43
44
|
'team': value.team,
|
|
44
45
|
'policiesConsent': value.policiesConsent,
|
|
45
46
|
'country': value.country,
|
|
47
|
+
'username': value.username,
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -75,6 +75,12 @@ export interface InternalUserFields {
|
|
|
75
75
|
* @memberof InternalUserFields
|
|
76
76
|
*/
|
|
77
77
|
country?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Alphanumeric username
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof InternalUserFields
|
|
82
|
+
*/
|
|
83
|
+
username?: string | null;
|
|
78
84
|
}
|
|
79
85
|
export declare function InternalUserFieldsFromJSON(json: any): InternalUserFields;
|
|
80
86
|
export declare function InternalUserFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalUserFields;
|
|
@@ -19,6 +19,7 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'team': !exists(json, 'team') ? undefined : json['team'],
|
|
20
20
|
'policiesConsent': !exists(json, 'policiesConsent') ? undefined : json['policiesConsent'],
|
|
21
21
|
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
22
|
+
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
function InternalUserFieldsToJSON(value) {
|
|
@@ -39,6 +40,7 @@ function InternalUserFieldsToJSON(value) {
|
|
|
39
40
|
'team': value.team,
|
|
40
41
|
'policiesConsent': value.policiesConsent,
|
|
41
42
|
'country': value.country,
|
|
43
|
+
'username': value.username,
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
|