fix mocks for types

This commit is contained in:
Matt Hill
2023-03-20 11:44:32 -06:00
committed by Aiden McClelland
parent 4bf5eb398b
commit 99019c2b1f

View File

@@ -710,6 +710,7 @@ export module Mock {
name: 'Bitcoin Settings',
description:
'RPC and P2P interface configuration options for Bitcoin Core',
warning: null,
spec: {
'bitcoind-p2p': {
type: 'union',
@@ -722,6 +723,7 @@ export module Mock {
internal: 'Bitcoin Core',
external: 'External Node',
},
warning: null,
},
default: 'internal',
variants: {
@@ -733,7 +735,12 @@ export module Mock {
description: 'The public address of your Bitcoin Core server',
nullable: false,
masked: false,
copyable: false,
placeholder: null,
pattern: null,
'pattern-description': null,
textarea: false,
warning: null,
default: null,
},
'p2p-port': {
type: 'number',
@@ -744,6 +751,9 @@ export module Mock {
range: '[0,65535]',
integral: true,
default: 8333,
placeholder: null,
warning: null,
units: null,
},
},
},
@@ -754,6 +764,7 @@ export module Mock {
name: 'Advanced',
type: 'object',
description: 'Advanced settings',
warning: null,
spec: {
rpcsettings: {
name: 'RPC Settings',
@@ -766,47 +777,59 @@ export module Mock {
name: 'RPC Username',
type: 'string',
description: 'rpc username',
warning: null,
placeholder: null,
nullable: false,
default: 'defaultrpcusername',
pattern: '^[a-zA-Z]+$',
'pattern-description': 'must contain only letters.',
masked: false,
copyable: true,
textarea: false,
},
rpcuser: {
name: 'RPC Username',
type: 'string',
description: 'rpc username',
warning: null,
placeholder: null,
nullable: false,
default: 'defaultrpcusername',
pattern: '^[a-zA-Z]+$',
'pattern-description': 'must contain only letters.',
masked: false,
copyable: true,
textarea: false,
},
rpcpass: {
name: 'RPC User Password',
type: 'string',
description: 'rpc password',
placeholder: null,
warning: null,
nullable: false,
default: {
charset: 'a-z,A-Z,2-9',
len: 20,
},
masked: true,
copyable: true,
pattern: null,
'pattern-description': null,
textarea: false,
},
rpcpass2: {
name: 'RPC User Password',
type: 'string',
description: 'rpc password',
warning: null,
placeholder: null,
nullable: false,
default: {
charset: 'a-z,A-Z,2-9',
len: 20,
},
masked: true,
copyable: true,
pattern: null,
'pattern-description': null,
textarea: false,
},
},
},
@@ -1135,22 +1158,33 @@ export module Mock {
name: 'Emergency Contact',
type: 'object',
description: 'The person to contact in case of emergency.',
warning: null,
spec: {
name: {
type: 'string',
name: 'Name',
description: null,
nullable: false,
masked: false,
copyable: false,
pattern: '^[a-zA-Z]+$',
'pattern-description': 'Must contain only letters.',
placeholder: null,
textarea: false,
warning: null,
default: null,
},
email: {
type: 'string',
name: 'Email',
description: null,
nullable: false,
masked: false,
copyable: true,
placeholder: null,
pattern: null,
'pattern-description': null,
textarea: false,
warning: null,
default: null,
},
},
},