From 99019c2b1f84b775706ab425035ad7c3cdf35164 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Mon, 20 Mar 2023 11:44:32 -0600 Subject: [PATCH] fix mocks for types --- .../ui/src/app/services/api/api.fixures.ts | 48 ++++++++++++++++--- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/frontend/projects/ui/src/app/services/api/api.fixures.ts b/frontend/projects/ui/src/app/services/api/api.fixures.ts index 9f57229fd..3e3651014 100644 --- a/frontend/projects/ui/src/app/services/api/api.fixures.ts +++ b/frontend/projects/ui/src/app/services/api/api.fixures.ts @@ -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, }, }, },