accountSchemaV4.js 7.3 KB

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