accountSchemaV3.js 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. module.exports = {
  2. name: "Account",
  3. description: "Account schema",
  4. version: 3,
  5. fields: [
  6. {
  7. name: "Name",
  8. fieldId: "name",
  9. fieldTypes: [
  10. {
  11. type: "text",
  12. fill: true,
  13. fieldTypeId: "name"
  14. }
  15. ],
  16. minEntries: 1,
  17. maxEntries: 1
  18. },
  19. {
  20. name: "Domain",
  21. fieldId: "domain",
  22. fieldTypes: [
  23. {
  24. type: "text",
  25. fill: true,
  26. fieldTypeId: "domain"
  27. }
  28. ],
  29. minEntries: 0,
  30. maxEntries: 10
  31. },
  32. {
  33. name: "App",
  34. fieldId: "app",
  35. fieldTypes: [
  36. {
  37. type: "select",
  38. options: [
  39. {
  40. value: "android",
  41. text: "Android"
  42. },
  43. {
  44. value: "ios",
  45. text: "iOS"
  46. },
  47. {
  48. value: "windows",
  49. text: "Windows"
  50. }
  51. ],
  52. fieldTypeId: "appType"
  53. },
  54. {
  55. type: "text",
  56. fill: true,
  57. fieldTypeId: "appName"
  58. }
  59. ],
  60. minEntries: 0,
  61. maxEntries: 10
  62. },
  63. {
  64. name: "Account exists",
  65. fieldId: "accountExists",
  66. fieldTypes: [
  67. {
  68. type: "checkbox",
  69. fieldTypeId: "accountExists"
  70. }
  71. ],
  72. minEntries: 0,
  73. maxEntries: 1
  74. },
  75. {
  76. name: "E-mail",
  77. fieldId: "email",
  78. fieldTypes: [
  79. {
  80. type: "text",
  81. fieldTypeId: "email",
  82. fill: true
  83. }
  84. ],
  85. minEntries: 0,
  86. maxEntries: 10
  87. },
  88. {
  89. name: "Username",
  90. fieldId: "username",
  91. fieldTypes: [
  92. {
  93. type: "text",
  94. fieldTypeId: "username",
  95. fill: true
  96. }
  97. ],
  98. minEntries: 0,
  99. maxEntries: 10
  100. },
  101. {
  102. name: "Login name",
  103. fieldId: "loginName",
  104. fieldTypes: [
  105. {
  106. type: "text",
  107. fieldTypeId: "loginName",
  108. fill: true
  109. }
  110. ],
  111. minEntries: 0,
  112. maxEntries: 10
  113. },
  114. {
  115. name: "Category",
  116. fieldId: "category",
  117. fieldTypes: [
  118. {
  119. type: "text",
  120. fieldTypeId: "category",
  121. fill: true
  122. }
  123. ],
  124. minEntries: 0,
  125. maxEntries: 10
  126. },
  127. {
  128. name: "Uses password",
  129. fieldId: "usesPassword",
  130. fieldTypes: [
  131. {
  132. type: "checkbox",
  133. fieldTypeId: "usesPassword"
  134. }
  135. ],
  136. minEntries: 0,
  137. maxEntries: 1
  138. },
  139. {
  140. name: "Password last changed",
  141. fieldId: "passwordLastChanged",
  142. fieldTypes: [
  143. {
  144. type: "text",
  145. fieldTypeId: "passwordLastChanged",
  146. fill: true
  147. }
  148. ],
  149. minEntries: 0,
  150. maxEntries: 1
  151. },
  152. {
  153. name: "2FA possible",
  154. fieldId: "twofaPossible",
  155. fieldTypes: [
  156. {
  157. type: "select",
  158. options: [
  159. {
  160. value: "otp",
  161. text: "OTP"
  162. },
  163. {
  164. value: "sms",
  165. text: "SMS"
  166. }
  167. ],
  168. fieldTypeId: "twofaPossibleType",
  169. fill: true
  170. }
  171. ],
  172. minEntries: 0,
  173. maxEntries: 10
  174. },
  175. {
  176. name: "2FA used",
  177. fieldId: "twofaUsed",
  178. fieldTypes: [
  179. {
  180. type: "select",
  181. options: [
  182. {
  183. value: "otp",
  184. text: "OTP"
  185. },
  186. {
  187. value: "sms",
  188. text: "SMS"
  189. }
  190. ],
  191. fieldTypeId: "twofaUsedType"
  192. },
  193. {
  194. type: "text",
  195. fieldTypeId: "twofaUsedValue",
  196. fill: true
  197. }
  198. ],
  199. minEntries: 0,
  200. maxEntries: 10
  201. },
  202. {
  203. name: "2FA recovery method",
  204. fieldId: "twofaRecovery",
  205. fieldTypes: [
  206. {
  207. type: "select",
  208. options: [
  209. {
  210. value: "backupCodes",
  211. text: "Backup codes"
  212. }
  213. ],
  214. fieldTypeId: "twofaRecoveryMethod"
  215. },
  216. {
  217. type: "text",
  218. fieldTypeId: "twofaRecoveryValue",
  219. fill: true
  220. }
  221. ],
  222. minEntries: 0,
  223. maxEntries: 10
  224. },
  225. {
  226. name: "Login service",
  227. fieldId: "loginService",
  228. fieldTypes: [
  229. {
  230. type: "text",
  231. fieldTypeId: "loginService",
  232. fill: true
  233. }
  234. ],
  235. minEntries: 0,
  236. maxEntries: 10
  237. },
  238. {
  239. name: "Service linked",
  240. fieldId: "serviceLinked",
  241. fieldTypes: [
  242. {
  243. type: "text",
  244. fieldTypeId: "serviceLinked",
  245. fill: true
  246. }
  247. ],
  248. minEntries: 0,
  249. maxEntries: 10
  250. },
  251. {
  252. name: "Uses security questions",
  253. fieldId: "usesSecurityQuestions",
  254. fieldTypes: [
  255. {
  256. type: "checkbox",
  257. fieldTypeId: "usesSecurityQuestions",
  258. fill: true
  259. }
  260. ],
  261. minEntries: 0,
  262. maxEntries: 1
  263. },
  264. {
  265. name: "Recovery e-mail",
  266. fieldId: "recoveryEmail",
  267. fieldTypes: [
  268. {
  269. type: "text",
  270. fieldTypeId: "recoveryEmail",
  271. fill: true
  272. }
  273. ],
  274. minEntries: 0,
  275. maxEntries: 10
  276. },
  277. {
  278. name: "Recovery phone number",
  279. fieldId: "recoveryPhoneNumber",
  280. fieldTypes: [
  281. {
  282. type: "text",
  283. fieldTypeId: "recoveryPhoneNumber",
  284. fill: true
  285. }
  286. ],
  287. minEntries: 0,
  288. maxEntries: 10
  289. },
  290. {
  291. name: "Comments",
  292. fieldId: "comments",
  293. fieldTypes: [
  294. {
  295. type: "text",
  296. fieldTypeId: "comments",
  297. fill: true
  298. }
  299. ],
  300. minEntries: 0,
  301. maxEntries: 1
  302. },
  303. {
  304. name: "In 1password",
  305. fieldId: "in1password",
  306. fieldTypes: [
  307. {
  308. type: "checkbox",
  309. fieldTypeId: "in1password"
  310. }
  311. ],
  312. minEntries: 0,
  313. maxEntries: 1
  314. },
  315. {
  316. name: "Deleted",
  317. fieldId: "deleted",
  318. fieldTypes: [
  319. {
  320. type: "checkbox",
  321. fieldTypeId: "deleted"
  322. }
  323. ],
  324. minEntries: 0,
  325. maxEntries: 1
  326. },
  327. {
  328. name: "Deleted at",
  329. fieldId: "deletedAt",
  330. fieldTypes: [
  331. {
  332. type: "text",
  333. fieldTypeId: "deletedAt",
  334. fill: true
  335. }
  336. ],
  337. minEntries: 0,
  338. maxEntries: 1
  339. },
  340. {
  341. name: "Service accessible",
  342. fieldId: "serviceAccessible",
  343. fieldTypes: [
  344. {
  345. type: "checkbox",
  346. fieldTypeId: "serviceAccessible"
  347. }
  348. ],
  349. minEntries: 0,
  350. maxEntries: 1
  351. },
  352. {
  353. name: "Requested deletion",
  354. fieldId: "requestedDeletion",
  355. fieldTypes: [
  356. {
  357. type: "checkbox",
  358. fieldTypeId: "requestedDeletion"
  359. }
  360. ],
  361. minEntries: 0,
  362. maxEntries: 1
  363. },
  364. {
  365. name: "Requested deletion at",
  366. fieldId: "requestedDeletionAt",
  367. fieldTypes: [
  368. {
  369. type: "text",
  370. fieldTypeId: "requestedDeletionAt",
  371. fill: true
  372. }
  373. ],
  374. minEntries: 0,
  375. maxEntries: 1
  376. },
  377. {
  378. name: "To delete",
  379. fieldId: "toDelete",
  380. fieldTypes: [
  381. {
  382. type: "checkbox",
  383. fieldTypeId: "toDelete"
  384. }
  385. ],
  386. minEntries: 0,
  387. maxEntries: 1
  388. },
  389. {
  390. name: "Created at",
  391. fieldId: "createdAt",
  392. fieldTypes: [
  393. {
  394. type: "text",
  395. fieldTypeId: "createdAt",
  396. fill: true
  397. }
  398. ],
  399. minEntries: 0,
  400. maxEntries: 1
  401. }
  402. ]
  403. };
  404. /*
  405. [
  406. {
  407. name: "Domain",
  408. fieldTypes: [
  409. {
  410. type: "checkbox",
  411. extraButtons: []
  412. },
  413. {
  414. type: "select",
  415. options: [
  416. {
  417. value: "option1",
  418. text: "Option 1"
  419. },
  420. {
  421. value: "option2",
  422. text: "Option 2"
  423. },
  424. {
  425. value: "option3",
  426. text: "Option 3"
  427. }
  428. ],
  429. extraButtons: [
  430. {
  431. icon: "~",
  432. style: "red"
  433. }
  434. ]
  435. },
  436. {
  437. type: "text",
  438. extraButtons: [],
  439. fill: true
  440. }
  441. ],
  442. minEntries: 0,
  443. maxEntries: 3,
  444. initialEntries: [
  445. [
  446. true,
  447. "option1",
  448. "Hahaha value"
  449. ]
  450. ]
  451. },
  452. {
  453. name: "Apps",
  454. fieldTypes: [
  455. {
  456. type: "select",
  457. options: [
  458. {
  459. value: "option1",
  460. text: "Option 1"
  461. },
  462. {
  463. value: "option2",
  464. text: "Option 2"
  465. },
  466. {
  467. value: "option3",
  468. text: "Option 3"
  469. }
  470. ],
  471. extraButtons: [
  472. {
  473. icon: "~",
  474. style: "red"
  475. }
  476. ]
  477. },
  478. {
  479. type: "text",
  480. extraButtons: [],
  481. fill: true
  482. }
  483. ],
  484. minEntries: 0,
  485. maxEntries: 3,
  486. initialEntries: [
  487. [
  488. true,
  489. "option1",
  490. "Hahaha value"
  491. ]
  492. ]
  493. }
  494. ]
  495. */