account.js 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. module.exports = {
  2. name: "Account",
  3. description: "",
  4. versions: [
  5. {
  6. version: "1",
  7. fields: [
  8. {
  9. name: "Name",
  10. fieldId: "name",
  11. fieldTypes: [
  12. {
  13. type: "text",
  14. fill: true,
  15. fieldTypeId: "name"
  16. }
  17. ],
  18. minEntries: 1,
  19. maxEntries: 1
  20. },
  21. {
  22. name: "Domain",
  23. fieldId: "domain",
  24. fieldTypes: [
  25. {
  26. type: "text",
  27. fill: true,
  28. fieldTypeId: "domain"
  29. }
  30. ],
  31. minEntries: 0,
  32. maxEntries: 10
  33. },
  34. {
  35. name: "App",
  36. fieldId: "app",
  37. fieldTypes: [
  38. {
  39. type: "select",
  40. options: [
  41. {
  42. value: "android",
  43. text: "Android"
  44. },
  45. {
  46. value: "ios",
  47. text: "iOS"
  48. },
  49. {
  50. value: "windows",
  51. text: "Windows"
  52. }
  53. ],
  54. fieldTypeId: "appType"
  55. },
  56. {
  57. type: "text",
  58. fill: true,
  59. fieldTypeId: "appName"
  60. }
  61. ],
  62. minEntries: 0,
  63. maxEntries: 10
  64. },
  65. {
  66. name: "Account exists",
  67. fieldId: "accountExists",
  68. fieldTypes: [
  69. {
  70. type: "checkbox",
  71. fieldTypeId: "accountExists"
  72. }
  73. ],
  74. minEntries: 1,
  75. maxEntries: 1
  76. },
  77. {
  78. name: "E-mail",
  79. fieldId: "email",
  80. fieldTypes: [
  81. {
  82. type: "text",
  83. fieldTypeId: "email",
  84. fill: true
  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: 1,
  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: 1,
  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. }
  275. ],
  276. minEntries: 0,
  277. maxEntries: 10
  278. },
  279. {
  280. name: "Recovery phone number",
  281. fieldId: "recoveryPhoneNumber",
  282. fieldTypes: [
  283. {
  284. type: "text",
  285. fieldTypeId: "recoveryPhoneNumber",
  286. fill: true
  287. }
  288. ],
  289. minEntries: 0,
  290. maxEntries: 10
  291. },
  292. {
  293. name: "Comments",
  294. fieldId: "comments",
  295. fieldTypes: [
  296. {
  297. type: "text",
  298. fieldTypeId: "comments",
  299. fill: true
  300. }
  301. ],
  302. minEntries: 0,
  303. maxEntries: 1
  304. },
  305. {
  306. name: "In 1password",
  307. fieldId: "in1password",
  308. fieldTypes: [
  309. {
  310. type: "checkbox",
  311. fieldTypeId: "in1password"
  312. }
  313. ],
  314. minEntries: 1,
  315. maxEntries: 1
  316. },
  317. {
  318. name: "Deleted",
  319. fieldId: "deleted",
  320. fieldTypes: [
  321. {
  322. type: "checkbox",
  323. fieldTypeId: "deleted"
  324. }
  325. ],
  326. minEntries: 1,
  327. maxEntries: 1
  328. },
  329. {
  330. name: "Deleted at",
  331. fieldId: "deletedAt",
  332. fieldTypes: [
  333. {
  334. type: "text",
  335. fieldTypeId: "deletedAt",
  336. fill: true
  337. }
  338. ],
  339. minEntries: 1,
  340. maxEntries: 1
  341. },
  342. {
  343. name: "Service accessible",
  344. fieldId: "serviceAccessible",
  345. fieldTypes: [
  346. {
  347. type: "checkbox",
  348. fieldTypeId: "serviceAccessible"
  349. }
  350. ],
  351. minEntries: 1,
  352. maxEntries: 1
  353. },
  354. {
  355. name: "Requested deletion",
  356. fieldId: "requestedDeletion",
  357. fieldTypes: [
  358. {
  359. type: "checkbox",
  360. fieldTypeId: "requestedDeletion"
  361. }
  362. ],
  363. minEntries: 1,
  364. maxEntries: 1
  365. },
  366. {
  367. name: "Requested deletion at",
  368. fieldId: "requestedDeletionAt",
  369. fieldTypes: [
  370. {
  371. type: "text",
  372. fieldTypeId: "requestedDeletionAt",
  373. fill: true
  374. }
  375. ],
  376. minEntries: 1,
  377. maxEntries: 1
  378. },
  379. {
  380. name: "To delete",
  381. fieldId: "toDelete",
  382. fieldTypes: [
  383. {
  384. type: "checkbox",
  385. fieldTypeId: "toDelete"
  386. }
  387. ],
  388. minEntries: 1,
  389. maxEntries: 1
  390. },
  391. {
  392. name: "To delete",
  393. fieldId: "toDelete",
  394. fieldTypes: [
  395. {
  396. type: "checkbox",
  397. fieldTypeId: "toDelete"
  398. }
  399. ],
  400. minEntries: 1,
  401. maxEntries: 1
  402. },
  403. {
  404. name: "Created at",
  405. fieldId: "createdAt",
  406. fieldTypes: [
  407. {
  408. type: "text",
  409. fieldTypeId: "createdAt",
  410. fill: true
  411. }
  412. ],
  413. minEntries: 1,
  414. maxEntries: 1
  415. }
  416. ]
  417. }
  418. ]
  419. };
  420. /*
  421. [
  422. {
  423. name: "Domain",
  424. fieldTypes: [
  425. {
  426. type: "checkbox",
  427. extraButtons: []
  428. },
  429. {
  430. type: "select",
  431. options: [
  432. {
  433. value: "option1",
  434. text: "Option 1"
  435. },
  436. {
  437. value: "option2",
  438. text: "Option 2"
  439. },
  440. {
  441. value: "option3",
  442. text: "Option 3"
  443. }
  444. ],
  445. extraButtons: [
  446. {
  447. icon: "~",
  448. style: "red"
  449. }
  450. ]
  451. },
  452. {
  453. type: "text",
  454. extraButtons: [],
  455. fill: true
  456. }
  457. ],
  458. minEntries: 0,
  459. maxEntries: 3,
  460. initialEntries: [
  461. [
  462. true,
  463. "option1",
  464. "Hahaha value"
  465. ]
  466. ]
  467. },
  468. {
  469. name: "Apps",
  470. fieldTypes: [
  471. {
  472. type: "select",
  473. options: [
  474. {
  475. value: "option1",
  476. text: "Option 1"
  477. },
  478. {
  479. value: "option2",
  480. text: "Option 2"
  481. },
  482. {
  483. value: "option3",
  484. text: "Option 3"
  485. }
  486. ],
  487. extraButtons: [
  488. {
  489. icon: "~",
  490. style: "red"
  491. }
  492. ]
  493. },
  494. {
  495. type: "text",
  496. extraButtons: [],
  497. fill: true
  498. }
  499. ],
  500. minEntries: 0,
  501. maxEntries: 3,
  502. initialEntries: [
  503. [
  504. true,
  505. "option1",
  506. "Hahaha value"
  507. ]
  508. ]
  509. }
  510. ]
  511. */