@dynamic-labs/sdk-api-core 0.0.417 → 0.0.419
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/apis/SDKApi.cjs +1 -0
- package/src/apis/SDKApi.js +1 -0
- package/src/index.cjs +16 -0
- package/src/index.js +3 -0
- package/src/models/CustomFieldType.cjs +41 -0
- package/src/models/CustomFieldType.d.ts +24 -0
- package/src/models/CustomFieldType.js +35 -0
- package/src/models/CustomFieldValidValue.cjs +35 -0
- package/src/models/CustomFieldValidValue.d.ts +33 -0
- package/src/models/CustomFieldValidValue.js +29 -0
- package/src/models/CustomFieldValidationRules.cjs +38 -0
- package/src/models/CustomFieldValidationRules.d.ts +40 -0
- package/src/models/CustomFieldValidationRules.js +32 -0
- package/src/models/ProjectSettings.cjs +2 -0
- package/src/models/ProjectSettings.d.ts +6 -0
- package/src/models/ProjectSettings.js +2 -0
- package/src/models/ProjectSettingsKyc.cjs +6 -0
- package/src/models/ProjectSettingsKyc.d.ts +14 -0
- package/src/models/ProjectSettingsKyc.js +6 -0
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -12,6 +12,7 @@ require('../models/WalletAddressType.cjs');
|
|
|
12
12
|
require('../models/HardwareWalletEnum.cjs');
|
|
13
13
|
require('../models/PasswordSourceTypeEnum.cjs');
|
|
14
14
|
require('../models/WalletProviderEnum.cjs');
|
|
15
|
+
require('../models/CustomFieldType.cjs');
|
|
15
16
|
require('../models/KycFieldType.cjs');
|
|
16
17
|
require('../models/ChainEnum.cjs');
|
|
17
18
|
var CompletePasskeyRecoveryRequest = require('../models/CompletePasskeyRecoveryRequest.cjs');
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -8,6 +8,7 @@ import '../models/WalletAddressType.js';
|
|
|
8
8
|
import '../models/HardwareWalletEnum.js';
|
|
9
9
|
import '../models/PasswordSourceTypeEnum.js';
|
|
10
10
|
import '../models/WalletProviderEnum.js';
|
|
11
|
+
import '../models/CustomFieldType.js';
|
|
11
12
|
import '../models/KycFieldType.js';
|
|
12
13
|
import '../models/ChainEnum.js';
|
|
13
14
|
import { CompletePasskeyRecoveryRequestToJSON } from '../models/CompletePasskeyRecoveryRequest.js';
|
package/src/index.cjs
CHANGED
|
@@ -21,6 +21,9 @@ var CreateUserEmbeddedWalletsFromFarcasterRequest = require('./models/CreateUser
|
|
|
21
21
|
var CreateUserEmbeddedWalletsRequest = require('./models/CreateUserEmbeddedWalletsRequest.cjs');
|
|
22
22
|
var Currency = require('./models/Currency.cjs');
|
|
23
23
|
var CurrencyType = require('./models/CurrencyType.cjs');
|
|
24
|
+
var CustomFieldType = require('./models/CustomFieldType.cjs');
|
|
25
|
+
var CustomFieldValidValue = require('./models/CustomFieldValidValue.cjs');
|
|
26
|
+
var CustomFieldValidationRules = require('./models/CustomFieldValidationRules.cjs');
|
|
24
27
|
var Duration = require('./models/Duration.cjs');
|
|
25
28
|
var DynamicJwt = require('./models/DynamicJwt.cjs');
|
|
26
29
|
var EmailProviderResponse = require('./models/EmailProviderResponse.cjs');
|
|
@@ -246,6 +249,19 @@ Object.defineProperty(exports, 'CurrencyType', {
|
|
|
246
249
|
exports.CurrencyTypeFromJSON = CurrencyType.CurrencyTypeFromJSON;
|
|
247
250
|
exports.CurrencyTypeFromJSONTyped = CurrencyType.CurrencyTypeFromJSONTyped;
|
|
248
251
|
exports.CurrencyTypeToJSON = CurrencyType.CurrencyTypeToJSON;
|
|
252
|
+
Object.defineProperty(exports, 'CustomFieldType', {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function () { return CustomFieldType.CustomFieldType; }
|
|
255
|
+
});
|
|
256
|
+
exports.CustomFieldTypeFromJSON = CustomFieldType.CustomFieldTypeFromJSON;
|
|
257
|
+
exports.CustomFieldTypeFromJSONTyped = CustomFieldType.CustomFieldTypeFromJSONTyped;
|
|
258
|
+
exports.CustomFieldTypeToJSON = CustomFieldType.CustomFieldTypeToJSON;
|
|
259
|
+
exports.CustomFieldValidValueFromJSON = CustomFieldValidValue.CustomFieldValidValueFromJSON;
|
|
260
|
+
exports.CustomFieldValidValueFromJSONTyped = CustomFieldValidValue.CustomFieldValidValueFromJSONTyped;
|
|
261
|
+
exports.CustomFieldValidValueToJSON = CustomFieldValidValue.CustomFieldValidValueToJSON;
|
|
262
|
+
exports.CustomFieldValidationRulesFromJSON = CustomFieldValidationRules.CustomFieldValidationRulesFromJSON;
|
|
263
|
+
exports.CustomFieldValidationRulesFromJSONTyped = CustomFieldValidationRules.CustomFieldValidationRulesFromJSONTyped;
|
|
264
|
+
exports.CustomFieldValidationRulesToJSON = CustomFieldValidationRules.CustomFieldValidationRulesToJSON;
|
|
249
265
|
exports.DurationFromJSON = Duration.DurationFromJSON;
|
|
250
266
|
exports.DurationFromJSONTyped = Duration.DurationFromJSONTyped;
|
|
251
267
|
exports.DurationToJSON = Duration.DurationToJSON;
|
package/src/index.js
CHANGED
|
@@ -17,6 +17,9 @@ export { CreateUserEmbeddedWalletsFromFarcasterRequestFromJSON, CreateUserEmbedd
|
|
|
17
17
|
export { CreateUserEmbeddedWalletsRequestFromJSON, CreateUserEmbeddedWalletsRequestFromJSONTyped, CreateUserEmbeddedWalletsRequestToJSON } from './models/CreateUserEmbeddedWalletsRequest.js';
|
|
18
18
|
export { CurrencyFromJSON, CurrencyFromJSONTyped, CurrencyToJSON } from './models/Currency.js';
|
|
19
19
|
export { CurrencyType, CurrencyTypeFromJSON, CurrencyTypeFromJSONTyped, CurrencyTypeToJSON } from './models/CurrencyType.js';
|
|
20
|
+
export { CustomFieldType, CustomFieldTypeFromJSON, CustomFieldTypeFromJSONTyped, CustomFieldTypeToJSON } from './models/CustomFieldType.js';
|
|
21
|
+
export { CustomFieldValidValueFromJSON, CustomFieldValidValueFromJSONTyped, CustomFieldValidValueToJSON } from './models/CustomFieldValidValue.js';
|
|
22
|
+
export { CustomFieldValidationRulesFromJSON, CustomFieldValidationRulesFromJSONTyped, CustomFieldValidationRulesToJSON } from './models/CustomFieldValidationRules.js';
|
|
20
23
|
export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
|
|
21
24
|
export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
|
|
22
25
|
export { EmailProviderResponseFromJSON, EmailProviderResponseFromJSONTyped, EmailProviderResponseToJSON } from './models/EmailProviderResponse.js';
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.CustomFieldType = void 0;
|
|
24
|
+
(function (CustomFieldType) {
|
|
25
|
+
CustomFieldType["Text"] = "text";
|
|
26
|
+
CustomFieldType["Checkbox"] = "checkbox";
|
|
27
|
+
CustomFieldType["Select"] = "select";
|
|
28
|
+
})(exports.CustomFieldType || (exports.CustomFieldType = {}));
|
|
29
|
+
function CustomFieldTypeFromJSON(json) {
|
|
30
|
+
return CustomFieldTypeFromJSONTyped(json);
|
|
31
|
+
}
|
|
32
|
+
function CustomFieldTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
function CustomFieldTypeToJSON(value) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.CustomFieldTypeFromJSON = CustomFieldTypeFromJSON;
|
|
40
|
+
exports.CustomFieldTypeFromJSONTyped = CustomFieldTypeFromJSONTyped;
|
|
41
|
+
exports.CustomFieldTypeToJSON = CustomFieldTypeToJSON;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum CustomFieldType {
|
|
18
|
+
Text = "text",
|
|
19
|
+
Checkbox = "checkbox",
|
|
20
|
+
Select = "select"
|
|
21
|
+
}
|
|
22
|
+
export declare function CustomFieldTypeFromJSON(json: any): CustomFieldType;
|
|
23
|
+
export declare function CustomFieldTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFieldType;
|
|
24
|
+
export declare function CustomFieldTypeToJSON(value?: CustomFieldType | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var CustomFieldType;
|
|
20
|
+
(function (CustomFieldType) {
|
|
21
|
+
CustomFieldType["Text"] = "text";
|
|
22
|
+
CustomFieldType["Checkbox"] = "checkbox";
|
|
23
|
+
CustomFieldType["Select"] = "select";
|
|
24
|
+
})(CustomFieldType || (CustomFieldType = {}));
|
|
25
|
+
function CustomFieldTypeFromJSON(json) {
|
|
26
|
+
return CustomFieldTypeFromJSONTyped(json);
|
|
27
|
+
}
|
|
28
|
+
function CustomFieldTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
function CustomFieldTypeToJSON(value) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { CustomFieldType, CustomFieldTypeFromJSON, CustomFieldTypeFromJSONTyped, CustomFieldTypeToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function CustomFieldValidValueFromJSON(json) {
|
|
9
|
+
return CustomFieldValidValueFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function CustomFieldValidValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'label': json['label'],
|
|
17
|
+
'key': !runtime.exists(json, 'key') ? undefined : json['key'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function CustomFieldValidValueToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'label': value.label,
|
|
29
|
+
'key': value.key,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.CustomFieldValidValueFromJSON = CustomFieldValidValueFromJSON;
|
|
34
|
+
exports.CustomFieldValidValueFromJSONTyped = CustomFieldValidValueFromJSONTyped;
|
|
35
|
+
exports.CustomFieldValidValueToJSON = CustomFieldValidValueToJSON;
|
|
@@ -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 CustomFieldValidValue
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomFieldValidValue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomFieldValidValue
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomFieldValidValue
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function CustomFieldValidValueFromJSON(json: any): CustomFieldValidValue;
|
|
32
|
+
export declare function CustomFieldValidValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFieldValidValue;
|
|
33
|
+
export declare function CustomFieldValidValueToJSON(value?: CustomFieldValidValue | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function CustomFieldValidValueFromJSON(json) {
|
|
5
|
+
return CustomFieldValidValueFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function CustomFieldValidValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'label': json['label'],
|
|
13
|
+
'key': !exists(json, 'key') ? undefined : json['key'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function CustomFieldValidValueToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'label': value.label,
|
|
25
|
+
'key': value.key,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { CustomFieldValidValueFromJSON, CustomFieldValidValueFromJSONTyped, CustomFieldValidValueToJSON };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CustomFieldValidValue = require('./CustomFieldValidValue.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function CustomFieldValidationRulesFromJSON(json) {
|
|
10
|
+
return CustomFieldValidationRulesFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function CustomFieldValidationRulesFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'unique': !runtime.exists(json, 'unique') ? undefined : json['unique'],
|
|
18
|
+
'regex': !runtime.exists(json, 'regex') ? undefined : json['regex'],
|
|
19
|
+
'validOptions': !runtime.exists(json, 'validOptions') ? undefined : (json['validOptions'].map(CustomFieldValidValue.CustomFieldValidValueFromJSON)),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function CustomFieldValidationRulesToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'unique': value.unique,
|
|
31
|
+
'regex': value.regex,
|
|
32
|
+
'validOptions': value.validOptions === undefined ? undefined : (value.validOptions.map(CustomFieldValidValue.CustomFieldValidValueToJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.CustomFieldValidationRulesFromJSON = CustomFieldValidationRulesFromJSON;
|
|
37
|
+
exports.CustomFieldValidationRulesFromJSONTyped = CustomFieldValidationRulesFromJSONTyped;
|
|
38
|
+
exports.CustomFieldValidationRulesToJSON = CustomFieldValidationRulesToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import { CustomFieldValidValue } from './CustomFieldValidValue';
|
|
13
|
+
/**
|
|
14
|
+
* Optional validation rules for the custom field
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CustomFieldValidationRules
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomFieldValidationRules {
|
|
19
|
+
/**
|
|
20
|
+
* if this field must be unique for every user in the environment
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof CustomFieldValidationRules
|
|
23
|
+
*/
|
|
24
|
+
unique?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* must follow a certain regex
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CustomFieldValidationRules
|
|
29
|
+
*/
|
|
30
|
+
regex?: string;
|
|
31
|
+
/**
|
|
32
|
+
* must go with one of the valid selection choices
|
|
33
|
+
* @type {Array<CustomFieldValidValue>}
|
|
34
|
+
* @memberof CustomFieldValidationRules
|
|
35
|
+
*/
|
|
36
|
+
validOptions?: Array<CustomFieldValidValue>;
|
|
37
|
+
}
|
|
38
|
+
export declare function CustomFieldValidationRulesFromJSON(json: any): CustomFieldValidationRules;
|
|
39
|
+
export declare function CustomFieldValidationRulesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFieldValidationRules;
|
|
40
|
+
export declare function CustomFieldValidationRulesToJSON(value?: CustomFieldValidationRules | null): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { CustomFieldValidValueFromJSON, CustomFieldValidValueToJSON } from './CustomFieldValidValue.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function CustomFieldValidationRulesFromJSON(json) {
|
|
6
|
+
return CustomFieldValidationRulesFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function CustomFieldValidationRulesFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'unique': !exists(json, 'unique') ? undefined : json['unique'],
|
|
14
|
+
'regex': !exists(json, 'regex') ? undefined : json['regex'],
|
|
15
|
+
'validOptions': !exists(json, 'validOptions') ? undefined : (json['validOptions'].map(CustomFieldValidValueFromJSON)),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function CustomFieldValidationRulesToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'unique': value.unique,
|
|
27
|
+
'regex': value.regex,
|
|
28
|
+
'validOptions': value.validOptions === undefined ? undefined : (value.validOptions.map(CustomFieldValidValueToJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { CustomFieldValidationRulesFromJSON, CustomFieldValidationRulesFromJSONTyped, CustomFieldValidationRulesToJSON };
|
|
@@ -25,6 +25,7 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return {
|
|
26
26
|
'environmentName': !runtime.exists(json, 'environmentName') ? undefined : EnvironmentEnum.EnvironmentEnumFromJSON(json['environmentName']),
|
|
27
27
|
'chains': (json['chains'].map(ProjectSettingsChains.ProjectSettingsChainsFromJSON)),
|
|
28
|
+
'customFields': !runtime.exists(json, 'customFields') ? undefined : (json['customFields'].map(ProjectSettingsKyc.ProjectSettingsKycFromJSON)),
|
|
28
29
|
'kyc': (json['kyc'].map(ProjectSettingsKyc.ProjectSettingsKycFromJSON)),
|
|
29
30
|
'design': ProjectSettingsDesign.ProjectSettingsDesignFromJSON(json['design']),
|
|
30
31
|
'general': ProjectSettingsGeneral.ProjectSettingsGeneralFromJSON(json['general']),
|
|
@@ -45,6 +46,7 @@ function ProjectSettingsToJSON(value) {
|
|
|
45
46
|
return {
|
|
46
47
|
'environmentName': EnvironmentEnum.EnvironmentEnumToJSON(value.environmentName),
|
|
47
48
|
'chains': (value.chains.map(ProjectSettingsChains.ProjectSettingsChainsToJSON)),
|
|
49
|
+
'customFields': value.customFields === undefined ? undefined : (value.customFields.map(ProjectSettingsKyc.ProjectSettingsKycToJSON)),
|
|
48
50
|
'kyc': (value.kyc.map(ProjectSettingsKyc.ProjectSettingsKycToJSON)),
|
|
49
51
|
'design': ProjectSettingsDesign.ProjectSettingsDesignToJSON(value.design),
|
|
50
52
|
'general': ProjectSettingsGeneral.ProjectSettingsGeneralToJSON(value.general),
|
|
@@ -37,6 +37,12 @@ export interface ProjectSettings {
|
|
|
37
37
|
* @memberof ProjectSettings
|
|
38
38
|
*/
|
|
39
39
|
chains: Array<ProjectSettingsChains>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<ProjectSettingsKyc>}
|
|
43
|
+
* @memberof ProjectSettings
|
|
44
|
+
*/
|
|
45
|
+
customFields?: Array<ProjectSettingsKyc>;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {Array<ProjectSettingsKyc>}
|
|
@@ -21,6 +21,7 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
return {
|
|
22
22
|
'environmentName': !exists(json, 'environmentName') ? undefined : EnvironmentEnumFromJSON(json['environmentName']),
|
|
23
23
|
'chains': (json['chains'].map(ProjectSettingsChainsFromJSON)),
|
|
24
|
+
'customFields': !exists(json, 'customFields') ? undefined : (json['customFields'].map(ProjectSettingsKycFromJSON)),
|
|
24
25
|
'kyc': (json['kyc'].map(ProjectSettingsKycFromJSON)),
|
|
25
26
|
'design': ProjectSettingsDesignFromJSON(json['design']),
|
|
26
27
|
'general': ProjectSettingsGeneralFromJSON(json['general']),
|
|
@@ -41,6 +42,7 @@ function ProjectSettingsToJSON(value) {
|
|
|
41
42
|
return {
|
|
42
43
|
'environmentName': EnvironmentEnumToJSON(value.environmentName),
|
|
43
44
|
'chains': (value.chains.map(ProjectSettingsChainsToJSON)),
|
|
45
|
+
'customFields': value.customFields === undefined ? undefined : (value.customFields.map(ProjectSettingsKycToJSON)),
|
|
44
46
|
'kyc': (value.kyc.map(ProjectSettingsKycToJSON)),
|
|
45
47
|
'design': ProjectSettingsDesignToJSON(value.design),
|
|
46
48
|
'general': ProjectSettingsGeneralToJSON(value.general),
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CustomFieldType = require('./CustomFieldType.cjs');
|
|
7
|
+
var CustomFieldValidationRules = require('./CustomFieldValidationRules.cjs');
|
|
6
8
|
var KycFieldType = require('./KycFieldType.cjs');
|
|
7
9
|
|
|
8
10
|
/* tslint:disable */
|
|
@@ -20,6 +22,8 @@ function ProjectSettingsKycFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
22
|
'unique': json['unique'],
|
|
21
23
|
'verify': json['verify'],
|
|
22
24
|
'type': !runtime.exists(json, 'type') ? undefined : KycFieldType.KycFieldTypeFromJSON(json['type']),
|
|
25
|
+
'validationRules': !runtime.exists(json, 'validationRules') ? undefined : CustomFieldValidationRules.CustomFieldValidationRulesFromJSON(json['validationRules']),
|
|
26
|
+
'validationType': !runtime.exists(json, 'validationType') ? undefined : CustomFieldType.CustomFieldTypeFromJSON(json['validationType']),
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
29
|
function ProjectSettingsKycToJSON(value) {
|
|
@@ -36,6 +40,8 @@ function ProjectSettingsKycToJSON(value) {
|
|
|
36
40
|
'unique': value.unique,
|
|
37
41
|
'verify': value.verify,
|
|
38
42
|
'type': KycFieldType.KycFieldTypeToJSON(value.type),
|
|
43
|
+
'validationRules': CustomFieldValidationRules.CustomFieldValidationRulesToJSON(value.validationRules),
|
|
44
|
+
'validationType': CustomFieldType.CustomFieldTypeToJSON(value.validationType),
|
|
39
45
|
};
|
|
40
46
|
}
|
|
41
47
|
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CustomFieldType } from './CustomFieldType';
|
|
13
|
+
import { CustomFieldValidationRules } from './CustomFieldValidationRules';
|
|
12
14
|
import { KycFieldType } from './KycFieldType';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
@@ -52,6 +54,18 @@ export interface ProjectSettingsKyc {
|
|
|
52
54
|
* @memberof ProjectSettingsKyc
|
|
53
55
|
*/
|
|
54
56
|
type?: KycFieldType;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {CustomFieldValidationRules}
|
|
60
|
+
* @memberof ProjectSettingsKyc
|
|
61
|
+
*/
|
|
62
|
+
validationRules?: CustomFieldValidationRules;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {CustomFieldType}
|
|
66
|
+
* @memberof ProjectSettingsKyc
|
|
67
|
+
*/
|
|
68
|
+
validationType?: CustomFieldType;
|
|
55
69
|
}
|
|
56
70
|
export declare function ProjectSettingsKycFromJSON(json: any): ProjectSettingsKyc;
|
|
57
71
|
export declare function ProjectSettingsKycFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettingsKyc;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { CustomFieldTypeFromJSON, CustomFieldTypeToJSON } from './CustomFieldType.js';
|
|
3
|
+
import { CustomFieldValidationRulesFromJSON, CustomFieldValidationRulesToJSON } from './CustomFieldValidationRules.js';
|
|
2
4
|
import { KycFieldTypeFromJSON, KycFieldTypeToJSON } from './KycFieldType.js';
|
|
3
5
|
|
|
4
6
|
/* tslint:disable */
|
|
@@ -16,6 +18,8 @@ function ProjectSettingsKycFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
18
|
'unique': json['unique'],
|
|
17
19
|
'verify': json['verify'],
|
|
18
20
|
'type': !exists(json, 'type') ? undefined : KycFieldTypeFromJSON(json['type']),
|
|
21
|
+
'validationRules': !exists(json, 'validationRules') ? undefined : CustomFieldValidationRulesFromJSON(json['validationRules']),
|
|
22
|
+
'validationType': !exists(json, 'validationType') ? undefined : CustomFieldTypeFromJSON(json['validationType']),
|
|
19
23
|
};
|
|
20
24
|
}
|
|
21
25
|
function ProjectSettingsKycToJSON(value) {
|
|
@@ -32,6 +36,8 @@ function ProjectSettingsKycToJSON(value) {
|
|
|
32
36
|
'unique': value.unique,
|
|
33
37
|
'verify': value.verify,
|
|
34
38
|
'type': KycFieldTypeToJSON(value.type),
|
|
39
|
+
'validationRules': CustomFieldValidationRulesToJSON(value.validationRules),
|
|
40
|
+
'validationType': CustomFieldTypeToJSON(value.validationType),
|
|
35
41
|
};
|
|
36
42
|
}
|
|
37
43
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ export * from './CreateUserEmbeddedWalletsFromFarcasterRequest';
|
|
|
15
15
|
export * from './CreateUserEmbeddedWalletsRequest';
|
|
16
16
|
export * from './Currency';
|
|
17
17
|
export * from './CurrencyType';
|
|
18
|
+
export * from './CustomFieldType';
|
|
19
|
+
export * from './CustomFieldValidValue';
|
|
20
|
+
export * from './CustomFieldValidationRules';
|
|
18
21
|
export * from './Duration';
|
|
19
22
|
export * from './DynamicJwt';
|
|
20
23
|
export * from './EmailProviderResponse';
|