@dynamic-labs/sdk-api 0.0.659 → 0.0.660
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 +1 -1
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/GlobalWalletSettings.cjs +3 -0
- package/src/models/GlobalWalletSettings.d.ts +7 -0
- package/src/models/GlobalWalletSettings.js +3 -0
- package/src/models/GlobalWalletSettingsCreateRequest.cjs +3 -0
- package/src/models/GlobalWalletSettingsCreateRequest.d.ts +7 -0
- package/src/models/GlobalWalletSettingsCreateRequest.js +3 -0
- package/src/models/GlobalWalletSettingsCreateRequestCustomMenuLinks.cjs +45 -0
- package/src/models/GlobalWalletSettingsCreateRequestCustomMenuLinks.d.ts +33 -0
- package/src/models/GlobalWalletSettingsCreateRequestCustomMenuLinks.js +39 -0
- package/src/models/GlobalWalletSettingsUpdateRequest.cjs +3 -0
- package/src/models/GlobalWalletSettingsUpdateRequest.d.ts +7 -0
- package/src/models/GlobalWalletSettingsUpdateRequest.js +3 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -187,6 +187,7 @@ var GlobalWalletAccessControlTypeEnum = require('./models/GlobalWalletAccessCont
|
|
|
187
187
|
var GlobalWalletAccessControlUpdateRequest = require('./models/GlobalWalletAccessControlUpdateRequest.cjs');
|
|
188
188
|
var GlobalWalletSettings = require('./models/GlobalWalletSettings.cjs');
|
|
189
189
|
var GlobalWalletSettingsCreateRequest = require('./models/GlobalWalletSettingsCreateRequest.cjs');
|
|
190
|
+
var GlobalWalletSettingsCreateRequestCustomMenuLinks = require('./models/GlobalWalletSettingsCreateRequestCustomMenuLinks.cjs');
|
|
190
191
|
var GlobalWalletSettingsUpdateRequest = require('./models/GlobalWalletSettingsUpdateRequest.cjs');
|
|
191
192
|
var HCaptchaSettings = require('./models/HCaptchaSettings.cjs');
|
|
192
193
|
var HardwareWalletEnum = require('./models/HardwareWalletEnum.cjs');
|
|
@@ -1076,6 +1077,9 @@ exports.GlobalWalletSettingsToJSON = GlobalWalletSettings.GlobalWalletSettingsTo
|
|
|
1076
1077
|
exports.GlobalWalletSettingsCreateRequestFromJSON = GlobalWalletSettingsCreateRequest.GlobalWalletSettingsCreateRequestFromJSON;
|
|
1077
1078
|
exports.GlobalWalletSettingsCreateRequestFromJSONTyped = GlobalWalletSettingsCreateRequest.GlobalWalletSettingsCreateRequestFromJSONTyped;
|
|
1078
1079
|
exports.GlobalWalletSettingsCreateRequestToJSON = GlobalWalletSettingsCreateRequest.GlobalWalletSettingsCreateRequestToJSON;
|
|
1080
|
+
exports.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON = GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON;
|
|
1081
|
+
exports.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped = GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped;
|
|
1082
|
+
exports.GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON = GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON;
|
|
1079
1083
|
exports.GlobalWalletSettingsUpdateRequestFromJSON = GlobalWalletSettingsUpdateRequest.GlobalWalletSettingsUpdateRequestFromJSON;
|
|
1080
1084
|
exports.GlobalWalletSettingsUpdateRequestFromJSONTyped = GlobalWalletSettingsUpdateRequest.GlobalWalletSettingsUpdateRequestFromJSONTyped;
|
|
1081
1085
|
exports.GlobalWalletSettingsUpdateRequestToJSON = GlobalWalletSettingsUpdateRequest.GlobalWalletSettingsUpdateRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -183,6 +183,7 @@ export { GlobalWalletAccessControlTypeEnum, GlobalWalletAccessControlTypeEnumFro
|
|
|
183
183
|
export { GlobalWalletAccessControlUpdateRequestFromJSON, GlobalWalletAccessControlUpdateRequestFromJSONTyped, GlobalWalletAccessControlUpdateRequestToJSON } from './models/GlobalWalletAccessControlUpdateRequest.js';
|
|
184
184
|
export { GlobalWalletSettingsFromJSON, GlobalWalletSettingsFromJSONTyped, GlobalWalletSettingsToJSON } from './models/GlobalWalletSettings.js';
|
|
185
185
|
export { GlobalWalletSettingsCreateRequestFromJSON, GlobalWalletSettingsCreateRequestFromJSONTyped, GlobalWalletSettingsCreateRequestToJSON } from './models/GlobalWalletSettingsCreateRequest.js';
|
|
186
|
+
export { GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON, GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped, GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON } from './models/GlobalWalletSettingsCreateRequestCustomMenuLinks.js';
|
|
186
187
|
export { GlobalWalletSettingsUpdateRequestFromJSON, GlobalWalletSettingsUpdateRequestFromJSONTyped, GlobalWalletSettingsUpdateRequestToJSON } from './models/GlobalWalletSettingsUpdateRequest.js';
|
|
187
188
|
export { HCaptchaSettingsFromJSON, HCaptchaSettingsFromJSONTyped, HCaptchaSettingsToJSON } from './models/HCaptchaSettings.js';
|
|
188
189
|
export { HardwareWalletEnum, HardwareWalletEnumFromJSON, HardwareWalletEnumFromJSONTyped, HardwareWalletEnumToJSON } from './models/HardwareWalletEnum.js';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var GlobalWalletSettingsCreateRequestCustomMenuLinks = require('./GlobalWalletSettingsCreateRequestCustomMenuLinks.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function GlobalWalletSettingsFromJSON(json) {
|
|
@@ -21,6 +22,7 @@ function GlobalWalletSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
22
|
'termsOfServiceUrl': !runtime.exists(json, 'termsOfServiceUrl') ? undefined : json['termsOfServiceUrl'],
|
|
22
23
|
'privacyPolicyUrl': !runtime.exists(json, 'privacyPolicyUrl') ? undefined : json['privacyPolicyUrl'],
|
|
23
24
|
'termsOfServiceAndPrivacyPolicyMarkdown': !runtime.exists(json, 'termsOfServiceAndPrivacyPolicyMarkdown') ? undefined : json['termsOfServiceAndPrivacyPolicyMarkdown'],
|
|
25
|
+
'customMenuLinks': !runtime.exists(json, 'customMenuLinks') ? undefined : (json['customMenuLinks'].map(GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON)),
|
|
24
26
|
'enabledAt': !runtime.exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
|
|
25
27
|
};
|
|
26
28
|
}
|
|
@@ -40,6 +42,7 @@ function GlobalWalletSettingsToJSON(value) {
|
|
|
40
42
|
'termsOfServiceUrl': value.termsOfServiceUrl,
|
|
41
43
|
'privacyPolicyUrl': value.privacyPolicyUrl,
|
|
42
44
|
'termsOfServiceAndPrivacyPolicyMarkdown': value.termsOfServiceAndPrivacyPolicyMarkdown,
|
|
45
|
+
'customMenuLinks': value.customMenuLinks === undefined ? undefined : (value.customMenuLinks.map(GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON)),
|
|
43
46
|
'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
|
|
44
47
|
};
|
|
45
48
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { GlobalWalletSettingsCreateRequestCustomMenuLinks } from './GlobalWalletSettingsCreateRequestCustomMenuLinks';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -63,6 +64,12 @@ export interface GlobalWalletSettings {
|
|
|
63
64
|
* @memberof GlobalWalletSettings
|
|
64
65
|
*/
|
|
65
66
|
termsOfServiceAndPrivacyPolicyMarkdown?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<GlobalWalletSettingsCreateRequestCustomMenuLinks>}
|
|
70
|
+
* @memberof GlobalWalletSettings
|
|
71
|
+
*/
|
|
72
|
+
customMenuLinks?: Array<GlobalWalletSettingsCreateRequestCustomMenuLinks>;
|
|
66
73
|
/**
|
|
67
74
|
* If global wallet is enabled, then this timestamp will be present.
|
|
68
75
|
* @type {Date}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON, GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON } from './GlobalWalletSettingsCreateRequestCustomMenuLinks.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function GlobalWalletSettingsFromJSON(json) {
|
|
@@ -17,6 +18,7 @@ function GlobalWalletSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
'termsOfServiceUrl': !exists(json, 'termsOfServiceUrl') ? undefined : json['termsOfServiceUrl'],
|
|
18
19
|
'privacyPolicyUrl': !exists(json, 'privacyPolicyUrl') ? undefined : json['privacyPolicyUrl'],
|
|
19
20
|
'termsOfServiceAndPrivacyPolicyMarkdown': !exists(json, 'termsOfServiceAndPrivacyPolicyMarkdown') ? undefined : json['termsOfServiceAndPrivacyPolicyMarkdown'],
|
|
21
|
+
'customMenuLinks': !exists(json, 'customMenuLinks') ? undefined : (json['customMenuLinks'].map(GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON)),
|
|
20
22
|
'enabledAt': !exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
|
|
21
23
|
};
|
|
22
24
|
}
|
|
@@ -36,6 +38,7 @@ function GlobalWalletSettingsToJSON(value) {
|
|
|
36
38
|
'termsOfServiceUrl': value.termsOfServiceUrl,
|
|
37
39
|
'privacyPolicyUrl': value.privacyPolicyUrl,
|
|
38
40
|
'termsOfServiceAndPrivacyPolicyMarkdown': value.termsOfServiceAndPrivacyPolicyMarkdown,
|
|
41
|
+
'customMenuLinks': value.customMenuLinks === undefined ? undefined : (value.customMenuLinks.map(GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON)),
|
|
39
42
|
'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var GlobalWalletSettingsCreateRequestCustomMenuLinks = require('./GlobalWalletSettingsCreateRequestCustomMenuLinks.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function GlobalWalletSettingsCreateRequestFromJSON(json) {
|
|
@@ -20,6 +21,7 @@ function GlobalWalletSettingsCreateRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
20
21
|
'termsOfServiceUrl': !runtime.exists(json, 'termsOfServiceUrl') ? undefined : json['termsOfServiceUrl'],
|
|
21
22
|
'privacyPolicyUrl': !runtime.exists(json, 'privacyPolicyUrl') ? undefined : json['privacyPolicyUrl'],
|
|
22
23
|
'termsOfServiceAndPrivacyPolicyMarkdown': !runtime.exists(json, 'termsOfServiceAndPrivacyPolicyMarkdown') ? undefined : json['termsOfServiceAndPrivacyPolicyMarkdown'],
|
|
24
|
+
'customMenuLinks': !runtime.exists(json, 'customMenuLinks') ? undefined : (json['customMenuLinks'].map(GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON)),
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
function GlobalWalletSettingsCreateRequestToJSON(value) {
|
|
@@ -37,6 +39,7 @@ function GlobalWalletSettingsCreateRequestToJSON(value) {
|
|
|
37
39
|
'termsOfServiceUrl': value.termsOfServiceUrl,
|
|
38
40
|
'privacyPolicyUrl': value.privacyPolicyUrl,
|
|
39
41
|
'termsOfServiceAndPrivacyPolicyMarkdown': value.termsOfServiceAndPrivacyPolicyMarkdown,
|
|
42
|
+
'customMenuLinks': value.customMenuLinks === undefined ? undefined : (value.customMenuLinks.map(GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON)),
|
|
40
43
|
};
|
|
41
44
|
}
|
|
42
45
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { GlobalWalletSettingsCreateRequestCustomMenuLinks } from './GlobalWalletSettingsCreateRequestCustomMenuLinks';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -57,6 +58,12 @@ export interface GlobalWalletSettingsCreateRequest {
|
|
|
57
58
|
* @memberof GlobalWalletSettingsCreateRequest
|
|
58
59
|
*/
|
|
59
60
|
termsOfServiceAndPrivacyPolicyMarkdown?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<GlobalWalletSettingsCreateRequestCustomMenuLinks>}
|
|
64
|
+
* @memberof GlobalWalletSettingsCreateRequest
|
|
65
|
+
*/
|
|
66
|
+
customMenuLinks?: Array<GlobalWalletSettingsCreateRequestCustomMenuLinks>;
|
|
60
67
|
}
|
|
61
68
|
export declare function GlobalWalletSettingsCreateRequestFromJSON(json: any): GlobalWalletSettingsCreateRequest;
|
|
62
69
|
export declare function GlobalWalletSettingsCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalWalletSettingsCreateRequest;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON, GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON } from './GlobalWalletSettingsCreateRequestCustomMenuLinks.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function GlobalWalletSettingsCreateRequestFromJSON(json) {
|
|
@@ -16,6 +17,7 @@ function GlobalWalletSettingsCreateRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
16
17
|
'termsOfServiceUrl': !exists(json, 'termsOfServiceUrl') ? undefined : json['termsOfServiceUrl'],
|
|
17
18
|
'privacyPolicyUrl': !exists(json, 'privacyPolicyUrl') ? undefined : json['privacyPolicyUrl'],
|
|
18
19
|
'termsOfServiceAndPrivacyPolicyMarkdown': !exists(json, 'termsOfServiceAndPrivacyPolicyMarkdown') ? undefined : json['termsOfServiceAndPrivacyPolicyMarkdown'],
|
|
20
|
+
'customMenuLinks': !exists(json, 'customMenuLinks') ? undefined : (json['customMenuLinks'].map(GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON)),
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
function GlobalWalletSettingsCreateRequestToJSON(value) {
|
|
@@ -33,6 +35,7 @@ function GlobalWalletSettingsCreateRequestToJSON(value) {
|
|
|
33
35
|
'termsOfServiceUrl': value.termsOfServiceUrl,
|
|
34
36
|
'privacyPolicyUrl': value.privacyPolicyUrl,
|
|
35
37
|
'termsOfServiceAndPrivacyPolicyMarkdown': value.termsOfServiceAndPrivacyPolicyMarkdown,
|
|
38
|
+
'customMenuLinks': value.customMenuLinks === undefined ? undefined : (value.customMenuLinks.map(GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON)),
|
|
36
39
|
};
|
|
37
40
|
}
|
|
38
41
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON(json) {
|
|
19
|
+
return GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'label': json['label'],
|
|
27
|
+
'url': json['url'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'label': value.label,
|
|
39
|
+
'url': value.url,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON = GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON;
|
|
44
|
+
exports.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped = GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped;
|
|
45
|
+
exports.GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON = GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GlobalWalletSettingsCreateRequestCustomMenuLinks
|
|
16
|
+
*/
|
|
17
|
+
export interface GlobalWalletSettingsCreateRequestCustomMenuLinks {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GlobalWalletSettingsCreateRequestCustomMenuLinks
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GlobalWalletSettingsCreateRequestCustomMenuLinks
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON(json: any): GlobalWalletSettingsCreateRequestCustomMenuLinks;
|
|
32
|
+
export declare function GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalWalletSettingsCreateRequestCustomMenuLinks;
|
|
33
|
+
export declare function GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON(value?: GlobalWalletSettingsCreateRequestCustomMenuLinks | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON(json) {
|
|
15
|
+
return GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'label': json['label'],
|
|
23
|
+
'url': json['url'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'label': value.label,
|
|
35
|
+
'url': value.url,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON, GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSONTyped, GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var GlobalWalletSettingsCreateRequestCustomMenuLinks = require('./GlobalWalletSettingsCreateRequestCustomMenuLinks.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function GlobalWalletSettingsUpdateRequestFromJSON(json) {
|
|
@@ -20,6 +21,7 @@ function GlobalWalletSettingsUpdateRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
20
21
|
'termsOfServiceUrl': !runtime.exists(json, 'termsOfServiceUrl') ? undefined : json['termsOfServiceUrl'],
|
|
21
22
|
'privacyPolicyUrl': !runtime.exists(json, 'privacyPolicyUrl') ? undefined : json['privacyPolicyUrl'],
|
|
22
23
|
'termsOfServiceAndPrivacyPolicyMarkdown': !runtime.exists(json, 'termsOfServiceAndPrivacyPolicyMarkdown') ? undefined : json['termsOfServiceAndPrivacyPolicyMarkdown'],
|
|
24
|
+
'customMenuLinks': !runtime.exists(json, 'customMenuLinks') ? undefined : (json['customMenuLinks'].map(GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON)),
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
function GlobalWalletSettingsUpdateRequestToJSON(value) {
|
|
@@ -37,6 +39,7 @@ function GlobalWalletSettingsUpdateRequestToJSON(value) {
|
|
|
37
39
|
'termsOfServiceUrl': value.termsOfServiceUrl,
|
|
38
40
|
'privacyPolicyUrl': value.privacyPolicyUrl,
|
|
39
41
|
'termsOfServiceAndPrivacyPolicyMarkdown': value.termsOfServiceAndPrivacyPolicyMarkdown,
|
|
42
|
+
'customMenuLinks': value.customMenuLinks === undefined ? undefined : (value.customMenuLinks.map(GlobalWalletSettingsCreateRequestCustomMenuLinks.GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON)),
|
|
40
43
|
};
|
|
41
44
|
}
|
|
42
45
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { GlobalWalletSettingsCreateRequestCustomMenuLinks } from './GlobalWalletSettingsCreateRequestCustomMenuLinks';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -57,6 +58,12 @@ export interface GlobalWalletSettingsUpdateRequest {
|
|
|
57
58
|
* @memberof GlobalWalletSettingsUpdateRequest
|
|
58
59
|
*/
|
|
59
60
|
termsOfServiceAndPrivacyPolicyMarkdown?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<GlobalWalletSettingsCreateRequestCustomMenuLinks>}
|
|
64
|
+
* @memberof GlobalWalletSettingsUpdateRequest
|
|
65
|
+
*/
|
|
66
|
+
customMenuLinks?: Array<GlobalWalletSettingsCreateRequestCustomMenuLinks>;
|
|
60
67
|
}
|
|
61
68
|
export declare function GlobalWalletSettingsUpdateRequestFromJSON(json: any): GlobalWalletSettingsUpdateRequest;
|
|
62
69
|
export declare function GlobalWalletSettingsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalWalletSettingsUpdateRequest;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON, GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON } from './GlobalWalletSettingsCreateRequestCustomMenuLinks.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function GlobalWalletSettingsUpdateRequestFromJSON(json) {
|
|
@@ -16,6 +17,7 @@ function GlobalWalletSettingsUpdateRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
16
17
|
'termsOfServiceUrl': !exists(json, 'termsOfServiceUrl') ? undefined : json['termsOfServiceUrl'],
|
|
17
18
|
'privacyPolicyUrl': !exists(json, 'privacyPolicyUrl') ? undefined : json['privacyPolicyUrl'],
|
|
18
19
|
'termsOfServiceAndPrivacyPolicyMarkdown': !exists(json, 'termsOfServiceAndPrivacyPolicyMarkdown') ? undefined : json['termsOfServiceAndPrivacyPolicyMarkdown'],
|
|
20
|
+
'customMenuLinks': !exists(json, 'customMenuLinks') ? undefined : (json['customMenuLinks'].map(GlobalWalletSettingsCreateRequestCustomMenuLinksFromJSON)),
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
function GlobalWalletSettingsUpdateRequestToJSON(value) {
|
|
@@ -33,6 +35,7 @@ function GlobalWalletSettingsUpdateRequestToJSON(value) {
|
|
|
33
35
|
'termsOfServiceUrl': value.termsOfServiceUrl,
|
|
34
36
|
'privacyPolicyUrl': value.privacyPolicyUrl,
|
|
35
37
|
'termsOfServiceAndPrivacyPolicyMarkdown': value.termsOfServiceAndPrivacyPolicyMarkdown,
|
|
38
|
+
'customMenuLinks': value.customMenuLinks === undefined ? undefined : (value.customMenuLinks.map(GlobalWalletSettingsCreateRequestCustomMenuLinksToJSON)),
|
|
36
39
|
};
|
|
37
40
|
}
|
|
38
41
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ export * from './GlobalWalletAccessControlTypeEnum';
|
|
|
147
147
|
export * from './GlobalWalletAccessControlUpdateRequest';
|
|
148
148
|
export * from './GlobalWalletSettings';
|
|
149
149
|
export * from './GlobalWalletSettingsCreateRequest';
|
|
150
|
+
export * from './GlobalWalletSettingsCreateRequestCustomMenuLinks';
|
|
150
151
|
export * from './GlobalWalletSettingsUpdateRequest';
|
|
151
152
|
export * from './HCaptchaSettings';
|
|
152
153
|
export * from './HardwareWalletEnum';
|