From 187c11e6ca320110dbb94d7fe22966f78cf81354 Mon Sep 17 00:00:00 2001 From: Hinton Date: Thu, 31 Mar 2022 22:36:53 +0200 Subject: [PATCH] Add wirelessnetwork item type --- common/src/enums/cipherType.ts | 4 ++ common/src/types/item-types.ts | 102 +++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 common/src/types/item-types.ts diff --git a/common/src/enums/cipherType.ts b/common/src/enums/cipherType.ts index cce7874d..ace65738 100644 --- a/common/src/enums/cipherType.ts +++ b/common/src/enums/cipherType.ts @@ -3,4 +3,8 @@ export enum CipherType { SecureNote = 2, Card = 3, Identity = 4, + WirelessNetwork = 5, + Bank = 6, + SoftwareLicense = 7, + InsurancePolicy = 8, } diff --git a/common/src/types/item-types.ts b/common/src/types/item-types.ts new file mode 100644 index 00000000..5ece8200 --- /dev/null +++ b/common/src/types/item-types.ts @@ -0,0 +1,102 @@ +import { CipherType } from "../enums/cipherType"; + +export const ItemTypeSchemas = { + [CipherType.WirelessNetwork]: { + name: "WirelessNetwork", + description: "WirelessNetworkDesc", + properties: [ + { + name: "Network Name/SSID", + type: "string", + }, + { + name: "Wireless Security", + type: "string", + }, + { + name: "Username", + type: "string", + }, + { + name: "Password", + type: "string", + }, + { + name: "Mode", + type: "string", + }, + { + name: "Server/IP Address", + type: "string", + }, + ], + }, +}; + +/* + Network Name/SSID: (open text) + Wireless Security: (single-choice): + None + WEP + WPA + WPA2/WPA3 + WPA3 + WPA Enterprise + WPA2 Enterprise + WPA3 Enterprise + Username (open text) + Password (same field as password but no auto-fill) + Mode: (single-choice): + Automatic + EAP-TLS + Server/IP Address: (open text) + Notes +*/ +/* +Bank Account + Bank Name (open text) + Name on Account (open text) + Type (single-select): + Checking + Savings + Certificate of Deposit + Line of Credit + ATM + Money Market + Other + Routing Number (only allow numbers) + Account Number (only allow numbers. should be hidden by default, like a password) + SWIFT + IBAN + PIN: (only allow numbers) + Notes +*/ +/* +Software License + Version (open text) + License Key (open text) + Licensed to: (open text) + Registered Email (open text) + Company (open text) + Username (same field as username but no auto-fill) + Password (same field as password but no auto-fill) + Publisher/Vendor (open text) + Download page (open text) + Support email + Purchase Date (date-picker) + Order Number + Order Total + Notes +*/ +/* +Insurance Policy + Company (open text) + Policy Type (open text) + Policy Holder (open text) + Policy Number (open text) + Expiration (date-picker) + Agent Name (open text) + Agent Phone (open text) + URL (open text) + Notes (same field as existing notes) +*/