@tsed/formio 6.87.1 → 6.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/lib/{FormioModule.d.ts → cjs/FormioModule.d.ts} +0 -0
  2. package/lib/{FormioModule.js → cjs/FormioModule.js} +34 -34
  3. package/lib/cjs/FormioModule.js.map +1 -0
  4. package/lib/{builder → cjs/builder}/FormioMapper.d.ts +0 -0
  5. package/lib/{builder → cjs/builder}/FormioMapper.js +0 -0
  6. package/lib/cjs/builder/FormioMapper.js.map +1 -0
  7. package/lib/{components → cjs/components}/AlterActions.d.ts +0 -0
  8. package/lib/{components → cjs/components}/AlterActions.js +8 -8
  9. package/lib/cjs/components/AlterActions.js.map +1 -0
  10. package/lib/{components → cjs/components}/AlterAudit.d.ts +0 -0
  11. package/lib/{components → cjs/components}/AlterAudit.js +2 -2
  12. package/lib/cjs/components/AlterAudit.js.map +1 -0
  13. package/lib/{components → cjs/components}/AlterHost.d.ts +0 -0
  14. package/lib/{components → cjs/components}/AlterHost.js +2 -2
  15. package/lib/cjs/components/AlterHost.js.map +1 -0
  16. package/lib/{components → cjs/components}/AlterLog.d.ts +0 -0
  17. package/lib/{components → cjs/components}/AlterLog.js +2 -2
  18. package/lib/cjs/components/AlterLog.js.map +1 -0
  19. package/lib/{components → cjs/components}/AlterSkip.d.ts +0 -0
  20. package/lib/{components → cjs/components}/AlterSkip.js +9 -9
  21. package/lib/cjs/components/AlterSkip.js.map +1 -0
  22. package/lib/{components → cjs/components}/AlterTemplateExportSteps.d.ts +0 -0
  23. package/lib/{components → cjs/components}/AlterTemplateExportSteps.js +6 -6
  24. package/lib/cjs/components/AlterTemplateExportSteps.js.map +1 -0
  25. package/lib/{components → cjs/components}/AlterTemplateImportSteps.d.ts +0 -0
  26. package/lib/{components → cjs/components}/AlterTemplateImportSteps.js +5 -5
  27. package/lib/cjs/components/AlterTemplateImportSteps.js.map +1 -0
  28. package/lib/{decorators → cjs/decorators}/action.d.ts +0 -0
  29. package/lib/{decorators → cjs/decorators}/action.js +3 -3
  30. package/lib/cjs/decorators/action.js.map +1 -0
  31. package/lib/{decorators → cjs/decorators}/actionCtx.d.ts +0 -0
  32. package/lib/{decorators → cjs/decorators}/actionCtx.js +1 -1
  33. package/lib/cjs/decorators/actionCtx.js.map +1 -0
  34. package/lib/{decorators → cjs/decorators}/alter.d.ts +0 -0
  35. package/lib/{decorators → cjs/decorators}/alter.js +3 -3
  36. package/lib/cjs/decorators/alter.js.map +1 -0
  37. package/lib/{decorators → cjs/decorators}/on.d.ts +0 -0
  38. package/lib/{decorators → cjs/decorators}/on.js +3 -3
  39. package/lib/cjs/decorators/on.js.map +1 -0
  40. package/lib/{decorators → cjs/decorators}/useFormioAuth.d.ts +0 -0
  41. package/lib/{decorators → cjs/decorators}/useFormioAuth.js +1 -1
  42. package/lib/cjs/decorators/useFormioAuth.js.map +1 -0
  43. package/lib/{domain → cjs/domain}/AlterHook.d.ts +0 -0
  44. package/lib/{domain → cjs/domain}/AlterHook.js +0 -0
  45. package/lib/cjs/domain/AlterHook.js.map +1 -0
  46. package/lib/{domain → cjs/domain}/Formio.d.ts +0 -0
  47. package/lib/{domain → cjs/domain}/Formio.js +0 -0
  48. package/lib/cjs/domain/Formio.js.map +1 -0
  49. package/lib/{domain → cjs/domain}/FormioAction.d.ts +0 -0
  50. package/lib/{domain → cjs/domain}/FormioAction.js +0 -0
  51. package/lib/cjs/domain/FormioAction.js.map +1 -0
  52. package/lib/{domain → cjs/domain}/FormioActionsIndex.d.ts +0 -0
  53. package/lib/{domain → cjs/domain}/FormioActionsIndex.js +0 -0
  54. package/lib/cjs/domain/FormioActionsIndex.js.map +1 -0
  55. package/lib/{domain → cjs/domain}/FormioAuth.d.ts +0 -0
  56. package/lib/{domain → cjs/domain}/FormioAuth.js +0 -0
  57. package/lib/cjs/domain/FormioAuth.js.map +1 -0
  58. package/lib/{domain → cjs/domain}/FormioBaseModel.d.ts +0 -0
  59. package/lib/{domain → cjs/domain}/FormioBaseModel.js +0 -0
  60. package/lib/cjs/domain/FormioBaseModel.js.map +1 -0
  61. package/lib/{domain → cjs/domain}/FormioConfig.d.ts +0 -0
  62. package/lib/{domain → cjs/domain}/FormioConfig.js +0 -0
  63. package/lib/cjs/domain/FormioConfig.js.map +1 -0
  64. package/lib/{domain → cjs/domain}/FormioCtxMapper.d.ts +0 -0
  65. package/lib/{domain → cjs/domain}/FormioCtxMapper.js +0 -0
  66. package/lib/cjs/domain/FormioCtxMapper.js.map +1 -0
  67. package/lib/{domain → cjs/domain}/FormioDecodedToken.d.ts +0 -0
  68. package/lib/{domain → cjs/domain}/FormioDecodedToken.js +0 -0
  69. package/lib/cjs/domain/FormioDecodedToken.js.map +1 -0
  70. package/lib/{domain → cjs/domain}/FormioErrors.d.ts +0 -0
  71. package/lib/{domain → cjs/domain}/FormioErrors.js +0 -0
  72. package/lib/cjs/domain/FormioErrors.js.map +1 -0
  73. package/lib/{domain → cjs/domain}/FormioHooks.d.ts +0 -0
  74. package/lib/{domain → cjs/domain}/FormioHooks.js +0 -0
  75. package/lib/cjs/domain/FormioHooks.js.map +1 -0
  76. package/lib/{domain → cjs/domain}/FormioJs.d.ts +0 -0
  77. package/lib/{domain → cjs/domain}/FormioJs.js +0 -0
  78. package/lib/cjs/domain/FormioJs.js.map +1 -0
  79. package/lib/{domain → cjs/domain}/FormioModels.d.ts +0 -0
  80. package/lib/{domain → cjs/domain}/FormioModels.js +1 -1
  81. package/lib/cjs/domain/FormioModels.js.map +1 -0
  82. package/lib/{domain → cjs/domain}/FormioRouter.d.ts +0 -0
  83. package/lib/{domain → cjs/domain}/FormioRouter.js +0 -0
  84. package/lib/cjs/domain/FormioRouter.js.map +1 -0
  85. package/lib/{domain → cjs/domain}/FormioSettings.d.ts +0 -0
  86. package/lib/{domain → cjs/domain}/FormioSettings.js +0 -0
  87. package/lib/cjs/domain/FormioSettings.js.map +1 -0
  88. package/lib/{domain → cjs/domain}/FormioTemplate.d.ts +0 -0
  89. package/lib/{domain → cjs/domain}/FormioTemplate.js +0 -0
  90. package/lib/cjs/domain/FormioTemplate.js.map +1 -0
  91. package/lib/{domain → cjs/domain}/FormioTemplateUtil.d.ts +0 -0
  92. package/lib/{domain → cjs/domain}/FormioTemplateUtil.js +0 -0
  93. package/lib/cjs/domain/FormioTemplateUtil.js.map +1 -0
  94. package/lib/{domain → cjs/domain}/FormioUpdate.d.ts +0 -0
  95. package/lib/{domain → cjs/domain}/FormioUpdate.js +0 -0
  96. package/lib/cjs/domain/FormioUpdate.js.map +1 -0
  97. package/lib/{domain → cjs/domain}/FormioUtils.d.ts +0 -0
  98. package/lib/{domain → cjs/domain}/FormioUtils.js +0 -0
  99. package/lib/cjs/domain/FormioUtils.js.map +1 -0
  100. package/lib/{domain → cjs/domain}/OnHook.d.ts +0 -0
  101. package/lib/{domain → cjs/domain}/OnHook.js +0 -0
  102. package/lib/cjs/domain/OnHook.js.map +1 -0
  103. package/lib/{domain → cjs/domain}/Resource.d.ts +0 -0
  104. package/lib/{domain → cjs/domain}/Resource.js +0 -0
  105. package/lib/cjs/domain/Resource.js.map +1 -0
  106. package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
  107. package/lib/cjs/index.js +46 -0
  108. package/lib/cjs/index.js.map +1 -0
  109. package/lib/{middlewares → cjs/middlewares}/FormioAuthMiddleware.d.ts +0 -0
  110. package/lib/{middlewares → cjs/middlewares}/FormioAuthMiddleware.js +12 -12
  111. package/lib/cjs/middlewares/FormioAuthMiddleware.js.map +1 -0
  112. package/lib/{services → cjs/services}/FormioAuthService.d.ts +1 -1
  113. package/lib/{services → cjs/services}/FormioAuthService.js +13 -13
  114. package/lib/cjs/services/FormioAuthService.js.map +1 -0
  115. package/lib/{services → cjs/services}/FormioDatabase.d.ts +0 -0
  116. package/lib/{services → cjs/services}/FormioDatabase.js +10 -10
  117. package/lib/cjs/services/FormioDatabase.js.map +1 -0
  118. package/lib/{services → cjs/services}/FormioHooksService.d.ts +0 -0
  119. package/lib/{services → cjs/services}/FormioHooksService.js +9 -9
  120. package/lib/cjs/services/FormioHooksService.js.map +1 -0
  121. package/lib/{services → cjs/services}/FormioInstaller.d.ts +0 -0
  122. package/lib/{services → cjs/services}/FormioInstaller.js +8 -8
  123. package/lib/cjs/services/FormioInstaller.js.map +1 -0
  124. package/lib/{services → cjs/services}/FormioService.d.ts +0 -0
  125. package/lib/{services → cjs/services}/FormioService.js +8 -8
  126. package/lib/cjs/services/FormioService.js.map +1 -0
  127. package/lib/{utils → cjs/utils}/isMongoId.d.ts +0 -0
  128. package/lib/{utils → cjs/utils}/isMongoId.js +0 -0
  129. package/lib/cjs/utils/isMongoId.js.map +1 -0
  130. package/lib/esm/FormioModule.js +147 -0
  131. package/lib/{FormioModule.js.map → esm/FormioModule.js.map} +1 -1
  132. package/lib/esm/builder/FormioMapper.js +49 -0
  133. package/lib/esm/builder/FormioMapper.js.map +1 -0
  134. package/lib/esm/components/AlterActions.js +63 -0
  135. package/lib/esm/components/AlterActions.js.map +1 -0
  136. package/lib/esm/components/AlterAudit.js +13 -0
  137. package/lib/esm/components/AlterAudit.js.map +1 -0
  138. package/lib/esm/components/AlterHost.js +12 -0
  139. package/lib/esm/components/AlterHost.js.map +1 -0
  140. package/lib/esm/components/AlterLog.js +13 -0
  141. package/lib/esm/components/AlterLog.js.map +1 -0
  142. package/lib/esm/components/AlterSkip.js +29 -0
  143. package/lib/esm/components/AlterSkip.js.map +1 -0
  144. package/lib/esm/components/AlterTemplateExportSteps.js +49 -0
  145. package/lib/esm/components/AlterTemplateExportSteps.js.map +1 -0
  146. package/lib/esm/components/AlterTemplateImportSteps.js +42 -0
  147. package/lib/esm/components/AlterTemplateImportSteps.js.map +1 -0
  148. package/lib/esm/decorators/action.js +16 -0
  149. package/lib/esm/decorators/action.js.map +1 -0
  150. package/lib/esm/decorators/actionCtx.js +19 -0
  151. package/lib/esm/decorators/actionCtx.js.map +1 -0
  152. package/lib/esm/decorators/alter.js +16 -0
  153. package/lib/esm/decorators/alter.js.map +1 -0
  154. package/lib/esm/decorators/on.js +16 -0
  155. package/lib/esm/decorators/on.js.map +1 -0
  156. package/lib/esm/decorators/useFormioAuth.js +11 -0
  157. package/lib/esm/decorators/useFormioAuth.js.map +1 -0
  158. package/lib/esm/domain/AlterHook.js +2 -0
  159. package/lib/esm/domain/AlterHook.js.map +1 -0
  160. package/lib/esm/domain/Formio.js +2 -0
  161. package/lib/esm/domain/Formio.js.map +1 -0
  162. package/lib/esm/domain/FormioAction.js +2 -0
  163. package/lib/esm/domain/FormioAction.js.map +1 -0
  164. package/lib/esm/domain/FormioActionsIndex.js +2 -0
  165. package/lib/esm/domain/FormioActionsIndex.js.map +1 -0
  166. package/lib/esm/domain/FormioAuth.js +2 -0
  167. package/lib/esm/domain/FormioAuth.js.map +1 -0
  168. package/lib/esm/domain/FormioBaseModel.js +2 -0
  169. package/lib/esm/domain/FormioBaseModel.js.map +1 -0
  170. package/lib/esm/domain/FormioConfig.js +2 -0
  171. package/lib/esm/domain/FormioConfig.js.map +1 -0
  172. package/lib/esm/domain/FormioCtxMapper.js +2 -0
  173. package/lib/esm/domain/FormioCtxMapper.js.map +1 -0
  174. package/lib/esm/domain/FormioDecodedToken.js +2 -0
  175. package/lib/esm/domain/FormioDecodedToken.js.map +1 -0
  176. package/lib/esm/domain/FormioErrors.js +2 -0
  177. package/lib/esm/domain/FormioErrors.js.map +1 -0
  178. package/lib/esm/domain/FormioHooks.js +2 -0
  179. package/lib/esm/domain/FormioHooks.js.map +1 -0
  180. package/lib/esm/domain/FormioJs.js +2 -0
  181. package/lib/esm/domain/FormioJs.js.map +1 -0
  182. package/lib/esm/domain/FormioModels.js +2 -0
  183. package/lib/esm/domain/FormioModels.js.map +1 -0
  184. package/lib/esm/domain/FormioRouter.js +2 -0
  185. package/lib/esm/domain/FormioRouter.js.map +1 -0
  186. package/lib/esm/domain/FormioSettings.js +2 -0
  187. package/lib/esm/domain/FormioSettings.js.map +1 -0
  188. package/lib/esm/domain/FormioTemplate.js +2 -0
  189. package/lib/esm/domain/FormioTemplate.js.map +1 -0
  190. package/lib/esm/domain/FormioTemplateUtil.js +2 -0
  191. package/lib/esm/domain/FormioTemplateUtil.js.map +1 -0
  192. package/lib/esm/domain/FormioUpdate.js +2 -0
  193. package/lib/esm/domain/FormioUpdate.js.map +1 -0
  194. package/lib/esm/domain/FormioUtils.js +2 -0
  195. package/lib/esm/domain/FormioUtils.js.map +1 -0
  196. package/lib/esm/domain/OnHook.js +2 -0
  197. package/lib/esm/domain/OnHook.js.map +1 -0
  198. package/lib/esm/domain/Resource.js +2 -0
  199. package/lib/esm/domain/Resource.js.map +1 -0
  200. package/lib/esm/index.js +43 -0
  201. package/lib/esm/index.js.map +1 -0
  202. package/lib/esm/middlewares/FormioAuthMiddleware.js +38 -0
  203. package/lib/esm/middlewares/FormioAuthMiddleware.js.map +1 -0
  204. package/lib/esm/services/FormioAuthService.js +179 -0
  205. package/lib/esm/services/FormioAuthService.js.map +1 -0
  206. package/lib/esm/services/FormioDatabase.js +100 -0
  207. package/lib/{services → esm/services}/FormioDatabase.js.map +1 -1
  208. package/lib/esm/services/FormioHooksService.js +78 -0
  209. package/lib/esm/services/FormioHooksService.js.map +1 -0
  210. package/lib/esm/services/FormioInstaller.js +47 -0
  211. package/lib/esm/services/FormioInstaller.js.map +1 -0
  212. package/lib/esm/services/FormioService.js +97 -0
  213. package/lib/esm/services/FormioService.js.map +1 -0
  214. package/lib/esm/utils/isMongoId.js +4 -0
  215. package/lib/esm/utils/isMongoId.js.map +1 -0
  216. package/lib/types/FormioModule.d.ts +24 -0
  217. package/lib/types/builder/FormioMapper.d.ts +11 -0
  218. package/lib/types/components/AlterActions.d.ts +15 -0
  219. package/lib/types/components/AlterAudit.d.ts +5 -0
  220. package/lib/types/components/AlterHost.d.ts +5 -0
  221. package/lib/types/components/AlterLog.d.ts +5 -0
  222. package/lib/types/components/AlterSkip.d.ts +7 -0
  223. package/lib/types/components/AlterTemplateExportSteps.d.ts +12 -0
  224. package/lib/types/components/AlterTemplateImportSteps.d.ts +11 -0
  225. package/lib/types/decorators/action.d.ts +7 -0
  226. package/lib/types/decorators/actionCtx.d.ts +23 -0
  227. package/lib/types/decorators/alter.d.ts +6 -0
  228. package/lib/types/decorators/on.d.ts +6 -0
  229. package/lib/types/decorators/useFormioAuth.d.ts +6 -0
  230. package/lib/types/domain/AlterHook.d.ts +3 -0
  231. package/lib/types/domain/Formio.d.ts +112 -0
  232. package/lib/types/domain/FormioAction.d.ts +20 -0
  233. package/lib/types/domain/FormioActionsIndex.d.ts +15 -0
  234. package/lib/types/domain/FormioAuth.d.ts +67 -0
  235. package/lib/types/domain/FormioBaseModel.d.ts +11 -0
  236. package/lib/types/domain/FormioConfig.d.ts +59 -0
  237. package/lib/types/domain/FormioCtxMapper.d.ts +7 -0
  238. package/lib/types/domain/FormioDecodedToken.d.ts +12 -0
  239. package/lib/types/domain/FormioErrors.d.ts +53 -0
  240. package/lib/types/domain/FormioHooks.d.ts +194 -0
  241. package/lib/types/domain/FormioJs.d.ts +17 -0
  242. package/lib/types/domain/FormioModels.d.ts +42 -0
  243. package/lib/types/domain/FormioRouter.d.ts +7 -0
  244. package/lib/types/domain/FormioSettings.d.ts +53 -0
  245. package/lib/types/domain/FormioTemplate.d.ts +8 -0
  246. package/lib/types/domain/FormioTemplateUtil.d.ts +13 -0
  247. package/lib/types/domain/FormioUpdate.d.ts +19 -0
  248. package/lib/types/domain/FormioUtils.d.ts +307 -0
  249. package/lib/types/domain/OnHook.d.ts +3 -0
  250. package/lib/types/domain/Resource.d.ts +18 -0
  251. package/lib/types/index.d.ts +38 -0
  252. package/lib/types/middlewares/FormioAuthMiddleware.d.ts +11 -0
  253. package/lib/types/services/FormioAuthService.d.ts +54 -0
  254. package/lib/types/services/FormioDatabase.d.ts +24 -0
  255. package/lib/types/services/FormioHooksService.d.ts +17 -0
  256. package/lib/types/services/FormioInstaller.d.ts +14 -0
  257. package/lib/types/services/FormioService.d.ts +36 -0
  258. package/lib/types/utils/isMongoId.d.ts +1 -0
  259. package/package.json +22 -14
  260. package/tsconfig.compile.esm.json +23 -0
  261. package/lib/builder/FormioMapper.js.map +0 -1
  262. package/lib/components/AlterActions.js.map +0 -1
  263. package/lib/components/AlterAudit.js.map +0 -1
  264. package/lib/components/AlterHost.js.map +0 -1
  265. package/lib/components/AlterLog.js.map +0 -1
  266. package/lib/components/AlterSkip.js.map +0 -1
  267. package/lib/components/AlterTemplateExportSteps.js.map +0 -1
  268. package/lib/components/AlterTemplateImportSteps.js.map +0 -1
  269. package/lib/decorators/action.js.map +0 -1
  270. package/lib/decorators/actionCtx.js.map +0 -1
  271. package/lib/decorators/alter.js.map +0 -1
  272. package/lib/decorators/on.js.map +0 -1
  273. package/lib/decorators/useFormioAuth.js.map +0 -1
  274. package/lib/domain/AlterHook.js.map +0 -1
  275. package/lib/domain/Formio.js.map +0 -1
  276. package/lib/domain/FormioAction.js.map +0 -1
  277. package/lib/domain/FormioActionsIndex.js.map +0 -1
  278. package/lib/domain/FormioAuth.js.map +0 -1
  279. package/lib/domain/FormioBaseModel.js.map +0 -1
  280. package/lib/domain/FormioConfig.js.map +0 -1
  281. package/lib/domain/FormioCtxMapper.js.map +0 -1
  282. package/lib/domain/FormioDecodedToken.js.map +0 -1
  283. package/lib/domain/FormioErrors.js.map +0 -1
  284. package/lib/domain/FormioHooks.js.map +0 -1
  285. package/lib/domain/FormioJs.js.map +0 -1
  286. package/lib/domain/FormioModels.js.map +0 -1
  287. package/lib/domain/FormioRouter.js.map +0 -1
  288. package/lib/domain/FormioSettings.js.map +0 -1
  289. package/lib/domain/FormioTemplate.js.map +0 -1
  290. package/lib/domain/FormioTemplateUtil.js.map +0 -1
  291. package/lib/domain/FormioUpdate.js.map +0 -1
  292. package/lib/domain/FormioUtils.js.map +0 -1
  293. package/lib/domain/OnHook.js.map +0 -1
  294. package/lib/domain/Resource.js.map +0 -1
  295. package/lib/index.js +0 -46
  296. package/lib/index.js.map +0 -1
  297. package/lib/middlewares/FormioAuthMiddleware.js.map +0 -1
  298. package/lib/services/FormioAuthService.js.map +0 -1
  299. package/lib/services/FormioHooksService.js.map +0 -1
  300. package/lib/services/FormioInstaller.js.map +0 -1
  301. package/lib/services/FormioService.js.map +0 -1
  302. package/lib/utils/isMongoId.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ import { FormioActionItem, FormioForm, FormioRole, FormioSubmission } from "./FormioModels";
2
+ export interface FormioTemplate {
3
+ roles?: Record<string, FormioRole>;
4
+ forms: Record<string, FormioForm>;
5
+ resources: Record<string, FormioForm>;
6
+ actions: Record<string, FormioActionItem>;
7
+ submissions?: Record<string, FormioSubmission[]>;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { FormioTemplate } from "./FormioTemplate";
2
+ export interface FormioExportOptions {
3
+ title: string;
4
+ version: string;
5
+ description: string;
6
+ name: string;
7
+ }
8
+ export interface FormioTemplateUtil {
9
+ import: {
10
+ template(template: FormioTemplate, cb: (er: unknown, data: FormioTemplate) => void): void;
11
+ };
12
+ export(options: Partial<FormioExportOptions>, cb: (er: unknown, data: FormioTemplate) => void): void;
13
+ }
@@ -0,0 +1,19 @@
1
+ import { NextFunction, Request, Response } from "express";
2
+ import { Db } from "mongodb";
3
+ import { Formio } from "./Formio";
4
+ export interface FormioUpdate {
5
+ db: Db;
6
+ version: string;
7
+ /**
8
+ *
9
+ * @param cb
10
+ */
11
+ initialize(cb: (err: unknown, db: any) => void): Promise<Formio>;
12
+ /**
13
+ *
14
+ * @param req
15
+ * @param res
16
+ * @param next
17
+ */
18
+ sanityCheck(req: Request, res: Response, next: NextFunction): void;
19
+ }
@@ -0,0 +1,307 @@
1
+ import { Request, Response } from "express";
2
+ import { FormioErrors } from "./FormioErrors";
3
+ import { FormioJs } from "./FormioJs";
4
+ export interface FormioUtil {
5
+ Formio: FormioJs;
6
+ /**
7
+ * Iterate through each component within a form.
8
+ *
9
+ * @param {Object} components
10
+ * The components to iterate.
11
+ * @param {Function} fn
12
+ * The iteration function to invoke for each component.
13
+ * @param {Boolean} includeAll
14
+ * Whether or not to include layout components.
15
+ * @param {String} path
16
+ */
17
+ eachComponent: Function;
18
+ /**
19
+ * Get a component by its key
20
+ *
21
+ * @param {Object} components
22
+ * The components to iterate.
23
+ * @param {String} key
24
+ * The key of the component to get.
25
+ *
26
+ * @returns {Object}
27
+ * The component that matches the given key, or undefined if not found.
28
+ */
29
+ getComponent: Function;
30
+ /**
31
+ * Define if component should be considered input component
32
+ *
33
+ * @param {Object} componentJson
34
+ * JSON of component to check
35
+ *
36
+ * @returns {Boolean}
37
+ * If component is input or not
38
+ */
39
+ isInputComponent: Function;
40
+ /**
41
+ * Flatten the form components for data manipulation.
42
+ *
43
+ * @param {Object} components
44
+ * The components to iterate.
45
+ * @param {Boolean} includeAll
46
+ * Whether or not to include layout components.
47
+ *
48
+ * @returns {Object}
49
+ * The flattened components map.
50
+ */
51
+ flattenComponents: Function;
52
+ /**
53
+ * Get the value for a component key, in the given submission.
54
+ *
55
+ * @param {Object} submission
56
+ * A submission object to search.
57
+ * @param {String} key
58
+ * A for components API key to search for.
59
+ */
60
+ getValue: Function;
61
+ /**
62
+ * Determine if a component is a layout component or not.
63
+ *
64
+ * @param {Object} component
65
+ * The component to check.
66
+ *
67
+ * @returns {Boolean}
68
+ * Whether or not the component is a layout component.
69
+ */
70
+ isLayoutComponent: Function;
71
+ /**
72
+ * Apply JSON logic functionality.
73
+ *
74
+ * @param component
75
+ * @param row
76
+ * @param data
77
+ */
78
+ jsonLogic: Function;
79
+ /**
80
+ * Check if the condition for a component is true or not.
81
+ *
82
+ * @param component
83
+ * @param row
84
+ * @param data
85
+ */
86
+ checkCondition: Function;
87
+ flattenComponentsForRender: Function;
88
+ renderFormSubmission: Function;
89
+ renderComponentValue: Function;
90
+ /**
91
+ * A node-fetch shim adding support for http(s) proxy and allowing
92
+ * invalid tls certificates (to be used with self signed certificates).
93
+ *
94
+ * @param {any} url The request url string or url like object.
95
+ * @param {any} options The request options object.
96
+ * @returns {Promise<Response>} The promise with the node-fetch response object.
97
+ */
98
+ fetch: any;
99
+ base64: {
100
+ /**
101
+ * Base64 encode the given data.
102
+ *
103
+ * @param {String} decoded
104
+ * The decoded data to encode.
105
+ *
106
+ * @return {String}
107
+ * The base64 representation of the given data.
108
+ */
109
+ encode(decoded: string): string;
110
+ /**
111
+ * Base64 decode the given data.
112
+ *
113
+ * @param {String} encoded
114
+ * The encoded data to decode.
115
+ *
116
+ * @return {String}
117
+ * The ascii representation of the given encoded data.
118
+ */
119
+ decode(encoded: string): string;
120
+ };
121
+ /**
122
+ * Application error codes.
123
+ */
124
+ errorCodes: FormioErrors;
125
+ layoutComponents: ("panel" | "table" | "well" | "columns" | "fieldset" | "tabs" | string)[];
126
+ deleteProp(target: any, propertyKey: any): any;
127
+ /**
128
+ * A wrapper around console.log that gets ignored by eslint.
129
+ *
130
+ * @param {*} content
131
+ * The content to pass to console.log.
132
+ */
133
+ log(content: string): void;
134
+ /**
135
+ * Determine if a value is a boolean representation.
136
+ * @param value
137
+ * @return {boolean}
138
+ */
139
+ isBoolean(value: any): boolean;
140
+ /**
141
+ * Quick boolean coercer.
142
+ * @param value
143
+ * @return {boolean}
144
+ */
145
+ boolean(value: any): boolean;
146
+ /**
147
+ * A wrapper around console.error that gets ignored by eslint.
148
+ *
149
+ * @param {*} content
150
+ * The content to pass to console.error.
151
+ */
152
+ error(content: any): void;
153
+ /**
154
+ * Returns the URL alias for a form provided the url.
155
+ */
156
+ getAlias(req: Request, reservedForms: string[]): {
157
+ alias: string;
158
+ additional: string;
159
+ };
160
+ /**
161
+ * Escape a string for use in regex.
162
+ *
163
+ * @param str
164
+ * @returns {*}
165
+ */
166
+ escapeRegExp(str: string): string;
167
+ /**
168
+ * Create a sub response object that only handles errors.
169
+ *
170
+ * @param res
171
+ * @return {{send: function(), sendStatus: function(*=), status: function(*=)}}
172
+ */
173
+ createSubResponse(res: Response): Response;
174
+ /**
175
+ * Create a sub-request object from the original request.
176
+ *
177
+ * @param req
178
+ */
179
+ createSubRequest(req: Request): Request;
180
+ /**
181
+ * Return the objectId.
182
+ *
183
+ * @param id
184
+ * @returns {*}
185
+ * @constructor
186
+ */
187
+ ObjectId(id: string): any;
188
+ /**
189
+ * Search the request headers for the given key.
190
+ *
191
+ * @param req
192
+ * The Express request object.
193
+ * @param key
194
+ * The key to search for in the headers.
195
+ *
196
+ * @return
197
+ * The header value if found or false.
198
+ */
199
+ getHeader(req: Request, key: string): string | false;
200
+ /**
201
+ * Search the request query for the given key.
202
+ *
203
+ * @param req
204
+ * The Express request object.
205
+ * @param key
206
+ * The key to search for in the query.
207
+ *
208
+ * @return
209
+ * The query value if found or false.
210
+ */
211
+ getQuery(req: Request, key: string): any | false;
212
+ /**
213
+ * Search the request parameters for the given key.
214
+ *
215
+ * @param req
216
+ * The Express request object.
217
+ * @param key
218
+ * The key to search for in the parameters.
219
+ *
220
+ * @return
221
+ * The parameter value if found or false.
222
+ */
223
+ getParameter(req: Request, key: string): any | false;
224
+ /**
225
+ * Determine if the request has the given key set as a header or url parameter.
226
+ *
227
+ * @param req
228
+ * The Express request object.
229
+ * @param key
230
+ * The key to search for.
231
+ *
232
+ * @return
233
+ * Return the value of the key or false if not found.
234
+ */
235
+ getRequestValue(req: Request, key: string): any | false;
236
+ /**
237
+ * Split the given URL into its key/value pairs.
238
+ *
239
+ * @param url
240
+ * The request url to split, typically req.url.
241
+ *
242
+ * @returns {{}}
243
+ * The key/value pairs of the request url.
244
+ */
245
+ getUrlParams(url: string): Record<string, any>;
246
+ /**
247
+ * Converts a form component key into a submission key
248
+ * by putting .data. between each nested component
249
+ * (ex: `user.name` becomes `user.data.name` in a submission)
250
+ * @param key
251
+ * The key to convert
252
+ * @return
253
+ * The submission key
254
+ */
255
+ getSubmissionKey(key: string): string;
256
+ /**
257
+ * Converts a submission key into a form component key
258
+ * by replacing .data. with .
259
+ * (ex: `user.data.name` becomes `user.name` in a submission)
260
+ * @param key
261
+ * The key to convert
262
+ * @return
263
+ * The form component key
264
+ */
265
+ getFormComponentKey(key: string): string;
266
+ /**
267
+ * Utility function to ensure the given id is always a BSON object.
268
+ *
269
+ * @param _id {String|Object}
270
+ * A mongo id as a string or object.
271
+ *
272
+ * @returns {Object}
273
+ * The mongo BSON id.
274
+ */
275
+ idToBson(_id: string | any): any;
276
+ /**
277
+ * Utility function to ensure the given id is always a string object.
278
+ *
279
+ * @param _id {String|Object}
280
+ * A mongo id as a string or object.
281
+ *
282
+ * @returns {String}
283
+ * The mongo string id.
284
+ */
285
+ idToString(_id: string | any): string;
286
+ /**
287
+ * Ensures that a submission data has MongoDB ObjectID's for all "id" fields.
288
+ * @param data
289
+ * @return {boolean}
290
+ */
291
+ ensureIds(data: any[]): any;
292
+ removeProtectedFields(form: string, action: string, submissions: any): void;
293
+ /**
294
+ * Retrieve a unique machine name
295
+ *
296
+ * @param document
297
+ * @param model
298
+ * @param next
299
+ * @return {*}
300
+ */
301
+ uniqueMachineName(document: {
302
+ machineName: string;
303
+ }, model: any, next: (err?: Error) => void): void;
304
+ castValue<T = any>(valueType: "string" | "number" | "boolean" | "[number]" | "[string]", value: any): T;
305
+ valuePath(prefix: string, key: string): string;
306
+ eachValue(components: any, data: any, fn: Function, context: any, path?: string): void;
307
+ }
@@ -0,0 +1,3 @@
1
+ export interface OnHook<T = any> {
2
+ on(...args: any[]): boolean | void;
3
+ }
@@ -0,0 +1,18 @@
1
+ import Express from "express";
2
+ export declare type ResourceHttpHandler = (req: Request, res: Response, next: Express.NextFunction) => void;
3
+ export interface ResourceHttpMethodOptions {
4
+ before?: ResourceHttpHandler;
5
+ after?: ResourceHttpHandler;
6
+ }
7
+ export interface ResourceRestOptions extends ResourceHttpMethodOptions {
8
+ beforePut?: ResourceHttpHandler;
9
+ beforePatch?: ResourceHttpHandler;
10
+ beforePost?: ResourceHttpHandler;
11
+ beforeIndex?: ResourceHttpHandler;
12
+ beforeGet?: ResourceHttpHandler;
13
+ afterPut?: ResourceHttpHandler;
14
+ afterPatch?: ResourceHttpHandler;
15
+ afterPost?: ResourceHttpHandler;
16
+ afterIndex?: ResourceHttpHandler;
17
+ afterGet?: ResourceHttpHandler;
18
+ }
@@ -0,0 +1,38 @@
1
+ export * from "./decorators/action";
2
+ export * from "./decorators/actionCtx";
3
+ export * from "./decorators/alter";
4
+ export * from "./decorators/on";
5
+ export * from "./decorators/useFormioAuth";
6
+ export * from "./middlewares/FormioAuthMiddleware";
7
+ export * from "./domain/AlterHook";
8
+ export * from "./domain/Formio";
9
+ export * from "./domain/FormioDecodedToken";
10
+ export * from "./domain/FormioAction";
11
+ export * from "./domain/FormioActionsIndex";
12
+ export * from "./domain/FormioAuth";
13
+ export * from "./domain/FormioBaseModel";
14
+ export * from "./domain/FormioConfig";
15
+ export * from "./domain/FormioCtxMapper";
16
+ export * from "./domain/FormioErrors";
17
+ export * from "./domain/FormioHooks";
18
+ export * from "./domain/FormioJs";
19
+ export * from "./domain/FormioModels";
20
+ export * from "./domain/FormioRouter";
21
+ export * from "./domain/FormioSettings";
22
+ export * from "./domain/FormioUpdate";
23
+ export * from "./domain/FormioUtils";
24
+ export * from "./domain/FormioTemplate";
25
+ export * from "./domain/FormioTemplateUtil";
26
+ export * from "./domain/OnHook";
27
+ export * from "./FormioModule";
28
+ export * from "./builder/FormioMapper";
29
+ export * from "./services/FormioService";
30
+ export * from "./services/FormioDatabase";
31
+ export * from "./services/FormioDatabase";
32
+ export * from "./services/FormioAuthService";
33
+ export * from "./services/FormioHooksService";
34
+ export * from "./components/AlterActions";
35
+ export * from "./components/AlterAudit";
36
+ export * from "./components/AlterLog";
37
+ export * from "./components/AlterHost";
38
+ export * from "./components/AlterSkip";
@@ -0,0 +1,11 @@
1
+ import { Context } from "@tsed/common";
2
+ import { FormioService } from "../services/FormioService";
3
+ /**
4
+ * @middleware
5
+ * @formio
6
+ */
7
+ export declare class FormioAuthMiddleware {
8
+ protected formio: FormioService;
9
+ get tokenHandler(): any;
10
+ use(ctx: Context): Promise<void>;
11
+ }
@@ -0,0 +1,54 @@
1
+ /// <reference types="mongoose" />
2
+ import { PlatformContext, Req } from "@tsed/common";
3
+ import { FormioPayloadToken } from "../domain/FormioDecodedToken";
4
+ import { FormioSubmission, WithID } from "../domain/FormioModels";
5
+ import { FormioDatabase } from "./FormioDatabase";
6
+ import { FormioHooksService } from "./FormioHooksService";
7
+ import { FormioService } from "./FormioService";
8
+ export declare class FormioAuthService {
9
+ formio: FormioService;
10
+ hooks: FormioHooksService;
11
+ db: FormioDatabase;
12
+ get currentUser(): (arg1: Req, arg2: import("@tsed/common").Res) => Promise<unknown>;
13
+ get getToken(): (payload: FormioPayloadToken) => string | boolean;
14
+ get tempToken(): (req: Req, res: import("@tsed/common").Res) => void;
15
+ get logout(): (req: Req, res: import("@tsed/common").Res, next: TsED.NextFunction) => void;
16
+ setCurrentUser<User = any>(user: WithID<FormioSubmission<User>>, token: FormioPayloadToken, ctx: PlatformContext): this;
17
+ /**
18
+ * Generate the payload token for the session
19
+ * @param user
20
+ * @param ctx
21
+ */
22
+ generatePayloadToken<User = any>(user: WithID<FormioSubmission<User>>, ctx: PlatformContext): Promise<{
23
+ user: WithID<FormioSubmission<User>>;
24
+ token: FormioPayloadToken;
25
+ }>;
26
+ /**
27
+ * Generate session from the given authenticated user.
28
+ * @param user
29
+ * @param ctx
30
+ */
31
+ generateSession<User = any>(user: WithID<FormioSubmission<User>>, ctx: PlatformContext): Promise<void>;
32
+ /**
33
+ * Retrieve roles
34
+ * @param req
35
+ */
36
+ getRoles(req?: Req): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, {}> & import("@tsed/formio-types/lib/types/domain/FormioRole").FormioRole & import("@tsed/mongoose").MongooseDocumentMethods<import("@tsed/formio-types/lib/types/domain/FormioRole").FormioRole>>>[]>;
37
+ /**
38
+ * Update the role of the current user submission
39
+ * @param _id
40
+ * @param role
41
+ * @param req
42
+ */
43
+ updateUserRole(_id: string | any, role: string, req?: Req): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, {}> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>>>;
44
+ /**
45
+ * Create a user submission in formio
46
+ * @param user
47
+ */
48
+ createUser<User = any>(user: Partial<FormioSubmission<User>>): Promise<import("mongoose").LeanDocument<import("mongoose").Document<any, {}> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>>>;
49
+ /**
50
+ * Update user submission in formio
51
+ * @param user
52
+ */
53
+ updateUser<User = any>(user: WithID<FormioSubmission<User>>): Promise<WithID<FormioSubmission<User>>>;
54
+ }
@@ -0,0 +1,24 @@
1
+ /// <reference types="mongoose" />
2
+ import { MongooseModel } from "@tsed/mongoose";
3
+ import { FormioAction, FormioActionItem, FormioForm, FormioRole, FormioSubmission, FormioToken } from "@tsed/formio-types";
4
+ import { FormioMapper } from "../builder/FormioMapper";
5
+ import { FormioService } from "./FormioService";
6
+ export declare class FormioDatabase {
7
+ protected formio: FormioService;
8
+ get models(): {
9
+ [index: string]: import("mongoose").Model<any, {}>;
10
+ };
11
+ get roleModel(): MongooseModel<FormioRole>;
12
+ get formModel(): MongooseModel<FormioForm>;
13
+ get actionModel(): MongooseModel<FormioAction>;
14
+ get submissionModel(): MongooseModel<FormioSubmission>;
15
+ get tokenModel(): MongooseModel<FormioToken>;
16
+ get actionItemModel(): MongooseModel<FormioActionItem>;
17
+ getFormioMapper(): Promise<FormioMapper>;
18
+ hasForms(): Promise<boolean>;
19
+ hasForm(name: string): Promise<boolean>;
20
+ getForm(nameOrId: string): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, {}> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>>> | null>;
21
+ createFormIfNotExists(form: FormioForm, onCreate?: (form: FormioForm) => any): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, {}> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>>> | null>;
22
+ saveFormDefinition(form: FormioForm): Promise<import("mongoose").Document<any, {}> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>>;
23
+ idToBson(form?: any): any;
24
+ }
@@ -0,0 +1,17 @@
1
+ import { InjectorService } from "@tsed/common";
2
+ import { FormioHooks } from "../domain/FormioHooks";
3
+ import { FormioService } from "./FormioService";
4
+ import { Request } from "express";
5
+ export declare class FormioHooksService {
6
+ protected injector: InjectorService;
7
+ protected formio: FormioService;
8
+ get settings(): (req: Request, cb: Function) => void;
9
+ get invoke(): <T = any>(...args: any[]) => boolean | T;
10
+ get alter(): (event: string, ...args: any[]) => any;
11
+ get alterAsync(): (event: string, ...args: any[]) => Promise<any>;
12
+ getHooks(): FormioHooks;
13
+ protected getProviders(type: "alter" | "on"): import("@tsed/common").Provider<any>[];
14
+ protected getHooksProvider(type: "alter" | "on"): {};
15
+ protected bindHooks(type: "alter" | "on", hooks: Record<string, Function[]>): {};
16
+ private createHooks;
17
+ }
@@ -0,0 +1,14 @@
1
+ import { Logger } from "@tsed/logger";
2
+ import { FormioSubmission } from "../domain/FormioModels";
3
+ import { FormioTemplate } from "../domain/FormioTemplate";
4
+ import { FormioDatabase } from "./FormioDatabase";
5
+ import { FormioService } from "./FormioService";
6
+ export declare class FormioInstaller extends FormioDatabase {
7
+ protected formio: FormioService;
8
+ protected logger: Logger;
9
+ install(template: FormioTemplate, root: any): Promise<void>;
10
+ createRootUser<User = unknown>(user: {
11
+ email: string;
12
+ password: string;
13
+ }, template: FormioTemplate): Promise<FormioSubmission<User>>;
14
+ }
@@ -0,0 +1,36 @@
1
+ import { InjectorService } from "@tsed/common";
2
+ import { Db } from "mongodb";
3
+ import { Mongoose } from "mongoose";
4
+ import { Formio } from "../domain/Formio";
5
+ import { FormioConfig } from "../domain/FormioConfig";
6
+ import { FormioHook, FormioHooks } from "../domain/FormioHooks";
7
+ import { FormioSchemas } from "../domain/FormioModels";
8
+ import { FormioRouter } from "../domain/FormioRouter";
9
+ import { FormioTemplate } from "../domain/FormioTemplate";
10
+ import { FormioExportOptions } from "../domain/FormioTemplateUtil";
11
+ export declare class FormioService {
12
+ router: FormioRouter;
13
+ protected injector: InjectorService;
14
+ get audit(): Function;
15
+ get auth(): import("..").FormioAuth;
16
+ get swagger(): (...args: any[]) => Promise<unknown>;
17
+ get config(): FormioConfig;
18
+ get db(): Db;
19
+ get resources(): any;
20
+ get mongoose(): Mongoose;
21
+ get middleware(): import("../domain/Formio").FormioMiddlewares;
22
+ get schemas(): FormioSchemas;
23
+ get formio(): Formio;
24
+ get hook(): FormioHook;
25
+ get util(): import("..").FormioUtil;
26
+ get template(): import("../domain/FormioTemplateUtil").FormioTemplateUtil;
27
+ get Action(): import("..").FormioActionModelCtor;
28
+ exportTemplate(options?: Partial<FormioExportOptions>): Promise<FormioTemplate>;
29
+ importTemplate(template: FormioTemplate): Promise<FormioTemplate>;
30
+ encrypt(text: string): Promise<string>;
31
+ isInit(): boolean;
32
+ createRouter(options: FormioConfig): any;
33
+ init(options: FormioConfig, hooks?: FormioHooks): Promise<Formio> | undefined;
34
+ protected mapConfiguration(options: FormioConfig): FormioConfig;
35
+ protected bindLogger(): void;
36
+ }
@@ -0,0 +1 @@
1
+ export declare function isMongoId(text: string): RegExpMatchArray | null;
package/package.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/formio",
3
- "version": "6.87.1",
3
+ "version": "6.89.0",
4
4
  "description": "Formio package for Ts.ED framework",
5
- "source": "./src/index.ts",
6
- "main": "./lib/index.js",
7
- "typings": "./lib/index.d.ts",
8
5
  "private": false,
9
6
  "keywords": [
10
7
  "Formio",
@@ -14,30 +11,41 @@
14
11
  "decorators",
15
12
  "express"
16
13
  ],
14
+ "source": "./src/index.ts",
15
+ "main": "./lib/cjs/index.js",
16
+ "typings": "./lib/types/index.d.ts",
17
+ "exports": {
18
+ "types": "./lib/types/index.d.ts",
19
+ "import": "./lib/esm/index.js",
20
+ "require": "./lib/cjs/index.js",
21
+ "default": "./lib/esm/index.js"
22
+ },
17
23
  "scripts": {
18
- "build": "tsc --build tsconfig.compile.json",
24
+ "build": "yarn run build:esm && yarn run build:cjs",
25
+ "build:cjs": "tsc --build tsconfig.compile.json",
26
+ "build:esm": "tsc --build tsconfig.compile.esm.json",
19
27
  "start": "ts-node -r tsconfig-paths/register test/app/index.ts",
20
28
  "test": "cross-env NODE_ENV=test nyc mocha"
21
29
  },
22
30
  "dependencies": {
23
- "@tsed/formio-types": "6.87.1",
31
+ "@tsed/formio-types": "6.89.0",
24
32
  "tslib": "2.2.0"
25
33
  },
26
34
  "devDependencies": {
27
- "@tsed/common": "6.87.1",
28
- "@tsed/core": "6.87.1",
29
- "@tsed/di": "6.87.1",
30
- "@tsed/mongoose": "6.87.1",
35
+ "@tsed/common": "6.89.0",
36
+ "@tsed/core": "6.89.0",
37
+ "@tsed/di": "6.89.0",
38
+ "@tsed/mongoose": "6.89.0",
31
39
  "express": "^4.17.1",
32
40
  "formio": "^2.0.0",
33
41
  "mongodb": "*",
34
42
  "mongoose": "^5.12.2"
35
43
  },
36
44
  "peerDependencies": {
37
- "@tsed/common": "^6.87.1",
38
- "@tsed/core": "^6.87.1",
39
- "@tsed/di": "^6.87.1",
40
- "@tsed/mongoose": "^6.87.1",
45
+ "@tsed/common": "^6.89.0",
46
+ "@tsed/core": "^6.89.0",
47
+ "@tsed/di": "^6.89.0",
48
+ "@tsed/mongoose": "^6.89.0",
41
49
  "express": "^4.17.1",
42
50
  "formio": "^2.0.0",
43
51
  "mongodb": "*",
@@ -0,0 +1,23 @@
1
+ {
2
+ "extends": "./tsconfig.compile.json",
3
+ "compilerOptions": {
4
+ "baseUrl": ".",
5
+ "module": "ES2020",
6
+ "rootDir": "src",
7
+ "outDir": "./lib/esm",
8
+ "declaration": true,
9
+ "declarationDir": "./lib/types"
10
+ },
11
+ "exclude": [
12
+ "node_modules",
13
+ "test",
14
+ "lib",
15
+ "benchmark",
16
+ "coverage",
17
+ "spec",
18
+ "**/*.benchmark.ts",
19
+ "**/*.spec.ts",
20
+ "keys",
21
+ "jest.config.js"
22
+ ]
23
+ }