@tsed/formio 8.0.0-alpha.4 → 8.0.0-alpha.6

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 (138) hide show
  1. package/lib/esm/services/FormioDatabase.js +1 -1
  2. package/lib/esm/services/FormioDatabase.js.map +1 -1
  3. package/lib/types/domain/Formio.d.ts +1 -1
  4. package/package.json +12 -13
  5. package/lib/cjs/FormioModule.js +0 -132
  6. package/lib/cjs/FormioModule.js.map +0 -1
  7. package/lib/cjs/builder/FormioMapper.js +0 -61
  8. package/lib/cjs/builder/FormioMapper.js.map +0 -1
  9. package/lib/cjs/components/AlterActions.js +0 -113
  10. package/lib/cjs/components/AlterActions.js.map +0 -1
  11. package/lib/cjs/components/AlterAudit.js +0 -16
  12. package/lib/cjs/components/AlterAudit.js.map +0 -1
  13. package/lib/cjs/components/AlterHost.js +0 -15
  14. package/lib/cjs/components/AlterHost.js.map +0 -1
  15. package/lib/cjs/components/AlterLog.js +0 -16
  16. package/lib/cjs/components/AlterLog.js.map +0 -1
  17. package/lib/cjs/components/AlterSkip.js +0 -32
  18. package/lib/cjs/components/AlterSkip.js.map +0 -1
  19. package/lib/cjs/components/AlterTemplateExportSteps.js +0 -52
  20. package/lib/cjs/components/AlterTemplateExportSteps.js.map +0 -1
  21. package/lib/cjs/components/AlterTemplateImportSteps.js +0 -45
  22. package/lib/cjs/components/AlterTemplateImportSteps.js.map +0 -1
  23. package/lib/cjs/decorators/action.js +0 -20
  24. package/lib/cjs/decorators/action.js.map +0 -1
  25. package/lib/cjs/decorators/actionCtx.js +0 -23
  26. package/lib/cjs/decorators/actionCtx.js.map +0 -1
  27. package/lib/cjs/decorators/alter.js +0 -20
  28. package/lib/cjs/decorators/alter.js.map +0 -1
  29. package/lib/cjs/decorators/on.js +0 -20
  30. package/lib/cjs/decorators/on.js.map +0 -1
  31. package/lib/cjs/decorators/useFormioAuth.js +0 -15
  32. package/lib/cjs/decorators/useFormioAuth.js.map +0 -1
  33. package/lib/cjs/domain/AlterHook.js +0 -3
  34. package/lib/cjs/domain/AlterHook.js.map +0 -1
  35. package/lib/cjs/domain/Formio.js +0 -3
  36. package/lib/cjs/domain/Formio.js.map +0 -1
  37. package/lib/cjs/domain/FormioAction.js +0 -3
  38. package/lib/cjs/domain/FormioAction.js.map +0 -1
  39. package/lib/cjs/domain/FormioActionsIndex.js +0 -3
  40. package/lib/cjs/domain/FormioActionsIndex.js.map +0 -1
  41. package/lib/cjs/domain/FormioAuth.js +0 -3
  42. package/lib/cjs/domain/FormioAuth.js.map +0 -1
  43. package/lib/cjs/domain/FormioBaseModel.js +0 -3
  44. package/lib/cjs/domain/FormioBaseModel.js.map +0 -1
  45. package/lib/cjs/domain/FormioConfig.js +0 -3
  46. package/lib/cjs/domain/FormioConfig.js.map +0 -1
  47. package/lib/cjs/domain/FormioCtxMapper.js +0 -3
  48. package/lib/cjs/domain/FormioCtxMapper.js.map +0 -1
  49. package/lib/cjs/domain/FormioDecodedToken.js +0 -3
  50. package/lib/cjs/domain/FormioDecodedToken.js.map +0 -1
  51. package/lib/cjs/domain/FormioErrors.js +0 -3
  52. package/lib/cjs/domain/FormioErrors.js.map +0 -1
  53. package/lib/cjs/domain/FormioHooks.js +0 -3
  54. package/lib/cjs/domain/FormioHooks.js.map +0 -1
  55. package/lib/cjs/domain/FormioJs.js +0 -3
  56. package/lib/cjs/domain/FormioJs.js.map +0 -1
  57. package/lib/cjs/domain/FormioModels.js +0 -5
  58. package/lib/cjs/domain/FormioModels.js.map +0 -1
  59. package/lib/cjs/domain/FormioRouter.js +0 -3
  60. package/lib/cjs/domain/FormioRouter.js.map +0 -1
  61. package/lib/cjs/domain/FormioSettings.js +0 -3
  62. package/lib/cjs/domain/FormioSettings.js.map +0 -1
  63. package/lib/cjs/domain/FormioTemplate.js +0 -3
  64. package/lib/cjs/domain/FormioTemplate.js.map +0 -1
  65. package/lib/cjs/domain/FormioTemplateUtil.js +0 -3
  66. package/lib/cjs/domain/FormioTemplateUtil.js.map +0 -1
  67. package/lib/cjs/domain/FormioUpdate.js +0 -3
  68. package/lib/cjs/domain/FormioUpdate.js.map +0 -1
  69. package/lib/cjs/domain/FormioUtils.js +0 -3
  70. package/lib/cjs/domain/FormioUtils.js.map +0 -1
  71. package/lib/cjs/domain/OnHook.js +0 -3
  72. package/lib/cjs/domain/OnHook.js.map +0 -1
  73. package/lib/cjs/domain/Resource.js +0 -3
  74. package/lib/cjs/domain/Resource.js.map +0 -1
  75. package/lib/cjs/index.js +0 -50
  76. package/lib/cjs/index.js.map +0 -1
  77. package/lib/cjs/middlewares/FormioAuthMiddleware.js +0 -41
  78. package/lib/cjs/middlewares/FormioAuthMiddleware.js.map +0 -1
  79. package/lib/cjs/package.json +0 -3
  80. package/lib/cjs/services/FormioAuthService.js +0 -182
  81. package/lib/cjs/services/FormioAuthService.js.map +0 -1
  82. package/lib/cjs/services/FormioDatabase.js +0 -140
  83. package/lib/cjs/services/FormioDatabase.js.map +0 -1
  84. package/lib/cjs/services/FormioHooksService.js +0 -81
  85. package/lib/cjs/services/FormioHooksService.js.map +0 -1
  86. package/lib/cjs/services/FormioInstaller.js +0 -44
  87. package/lib/cjs/services/FormioInstaller.js.map +0 -1
  88. package/lib/cjs/services/FormioRepository.js +0 -42
  89. package/lib/cjs/services/FormioRepository.js.map +0 -1
  90. package/lib/cjs/services/FormioService.js +0 -103
  91. package/lib/cjs/services/FormioService.js.map +0 -1
  92. package/lib/cjs/utils/isMongoId.js +0 -8
  93. package/lib/cjs/utils/isMongoId.js.map +0 -1
  94. package/lib/esm/package.json +0 -3
  95. package/lib/types-esm/FormioModule.d.ts +0 -24
  96. package/lib/types-esm/builder/FormioMapper.d.ts +0 -11
  97. package/lib/types-esm/components/AlterActions.d.ts +0 -18
  98. package/lib/types-esm/components/AlterAudit.d.ts +0 -5
  99. package/lib/types-esm/components/AlterHost.d.ts +0 -5
  100. package/lib/types-esm/components/AlterLog.d.ts +0 -5
  101. package/lib/types-esm/components/AlterSkip.d.ts +0 -7
  102. package/lib/types-esm/components/AlterTemplateExportSteps.d.ts +0 -12
  103. package/lib/types-esm/components/AlterTemplateImportSteps.d.ts +0 -11
  104. package/lib/types-esm/decorators/action.d.ts +0 -7
  105. package/lib/types-esm/decorators/actionCtx.d.ts +0 -23
  106. package/lib/types-esm/decorators/alter.d.ts +0 -6
  107. package/lib/types-esm/decorators/on.d.ts +0 -6
  108. package/lib/types-esm/decorators/useFormioAuth.d.ts +0 -6
  109. package/lib/types-esm/domain/AlterHook.d.ts +0 -3
  110. package/lib/types-esm/domain/Formio.d.ts +0 -112
  111. package/lib/types-esm/domain/FormioAction.d.ts +0 -20
  112. package/lib/types-esm/domain/FormioActionsIndex.d.ts +0 -15
  113. package/lib/types-esm/domain/FormioAuth.d.ts +0 -67
  114. package/lib/types-esm/domain/FormioBaseModel.d.ts +0 -11
  115. package/lib/types-esm/domain/FormioConfig.d.ts +0 -59
  116. package/lib/types-esm/domain/FormioCtxMapper.d.ts +0 -7
  117. package/lib/types-esm/domain/FormioDecodedToken.d.ts +0 -12
  118. package/lib/types-esm/domain/FormioErrors.d.ts +0 -53
  119. package/lib/types-esm/domain/FormioHooks.d.ts +0 -194
  120. package/lib/types-esm/domain/FormioJs.d.ts +0 -17
  121. package/lib/types-esm/domain/FormioModels.d.ts +0 -42
  122. package/lib/types-esm/domain/FormioRouter.d.ts +0 -7
  123. package/lib/types-esm/domain/FormioSettings.d.ts +0 -53
  124. package/lib/types-esm/domain/FormioTemplate.d.ts +0 -8
  125. package/lib/types-esm/domain/FormioTemplateUtil.d.ts +0 -13
  126. package/lib/types-esm/domain/FormioUpdate.d.ts +0 -19
  127. package/lib/types-esm/domain/FormioUtils.d.ts +0 -307
  128. package/lib/types-esm/domain/OnHook.d.ts +0 -3
  129. package/lib/types-esm/domain/Resource.d.ts +0 -18
  130. package/lib/types-esm/index.d.ts +0 -46
  131. package/lib/types-esm/middlewares/FormioAuthMiddleware.d.ts +0 -11
  132. package/lib/types-esm/services/FormioAuthService.d.ts +0 -84
  133. package/lib/types-esm/services/FormioDatabase.d.ts +0 -84
  134. package/lib/types-esm/services/FormioHooksService.d.ts +0 -17
  135. package/lib/types-esm/services/FormioInstaller.d.ts +0 -12
  136. package/lib/types-esm/services/FormioRepository.d.ts +0 -41
  137. package/lib/types-esm/services/FormioService.d.ts +0 -36
  138. package/lib/types-esm/utils/isMongoId.d.ts +0 -1
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Action = void 0;
4
- const core_1 = require("@tsed/core");
5
- const di_1 = require("@tsed/di");
6
- /**
7
- * Create a new FormIO Action.
8
- * @param options
9
- * @decorator
10
- */
11
- function Action(options) {
12
- return (0, core_1.useDecorators)((target) => {
13
- (0, di_1.registerProvider)({
14
- provide: target,
15
- type: "formio:action"
16
- });
17
- }, (0, core_1.StoreSet)("formio:action", options));
18
- }
19
- exports.Action = Action;
20
- //# sourceMappingURL=action.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action.js","sourceRoot":"","sources":["../../../src/decorators/action.ts"],"names":[],"mappings":";;;AAAA,qCAAmD;AACnD,iCAA0C;AAG1C;;;;GAIG;AACH,SAAgB,MAAM,CAAC,OAAyB;IAC9C,OAAO,IAAA,oBAAa,EAAC,CAAC,MAAW,EAAE,EAAE;QACnC,IAAA,qBAAgB,EAAC;YACf,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,eAAe;SACtB,CAAC,CAAC;IACL,CAAC,EAAE,IAAA,eAAQ,EAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;AACzC,CAAC;AAPD,wBAOC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActionCtx = void 0;
4
- const common_1 = require("@tsed/common");
5
- /**
6
- * Return the current action context with the following data:
7
- *
8
- * ```typescript
9
- * export type ActionCtx = {
10
- * handler: string;
11
- * method: string;
12
- * setActionItemMessage: SetActionItemMessage;
13
- * action: FormioAction;
14
- * };
15
- * ```
16
- * @param expression
17
- * @constructor
18
- */
19
- function ActionCtx(expression) {
20
- return (0, common_1.Context)(["ACTION_CTX", expression].filter(Boolean).join("."));
21
- }
22
- exports.ActionCtx = ActionCtx;
23
- //# sourceMappingURL=actionCtx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actionCtx.js","sourceRoot":"","sources":["../../../src/decorators/actionCtx.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAIrC;;;;;;;;;;;;;GAaG;AACH,SAAgB,SAAS,CAAC,UAAmB;IAC3C,OAAO,IAAA,gBAAO,EAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACvE,CAAC;AAFD,8BAEC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Alter = void 0;
4
- const core_1 = require("@tsed/core");
5
- const di_1 = require("@tsed/di");
6
- /**
7
- *
8
- * @param name
9
- * @constructor
10
- */
11
- function Alter(name) {
12
- return (0, core_1.useDecorators)((target) => {
13
- (0, di_1.registerProvider)({
14
- provide: target,
15
- type: "formio:alter"
16
- });
17
- }, (0, core_1.StoreSet)("formio:alter:name", name));
18
- }
19
- exports.Alter = Alter;
20
- //# sourceMappingURL=alter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alter.js","sourceRoot":"","sources":["../../../src/decorators/alter.ts"],"names":[],"mappings":";;;AAAA,qCAAmD;AACnD,iCAA0C;AAE1C;;;;GAIG;AACH,SAAgB,KAAK,CAAC,IAAY;IAChC,OAAO,IAAA,oBAAa,EAAC,CAAC,MAAW,EAAE,EAAE;QACnC,IAAA,qBAAgB,EAAC;YACf,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,cAAc;SACrB,CAAC,CAAC;IACL,CAAC,EAAE,IAAA,eAAQ,EAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC,CAAC;AAC1C,CAAC;AAPD,sBAOC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.On = void 0;
4
- const core_1 = require("@tsed/core");
5
- const di_1 = require("@tsed/di");
6
- /**
7
- * Create a Form io hook event listener
8
- * @param name
9
- * @constructor
10
- */
11
- function On(name) {
12
- return (0, core_1.useDecorators)((target) => {
13
- (0, di_1.registerProvider)({
14
- provide: target,
15
- type: "formio:on"
16
- });
17
- }, (0, core_1.StoreSet)("formio:on:name", name));
18
- }
19
- exports.On = On;
20
- //# sourceMappingURL=on.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"on.js","sourceRoot":"","sources":["../../../src/decorators/on.ts"],"names":[],"mappings":";;;AAAA,qCAAmD;AACnD,iCAA0C;AAE1C;;;;GAIG;AACH,SAAgB,EAAE,CAAC,IAAY;IAC7B,OAAO,IAAA,oBAAa,EAAC,CAAC,MAAW,EAAE,EAAE;QACnC,IAAA,qBAAgB,EAAC;YACf,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,WAAW;SAClB,CAAC,CAAC;IACL,CAAC,EAAE,IAAA,eAAQ,EAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAAC;AACvC,CAAC;AAPD,gBAOC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UseFormioAuth = void 0;
4
- const common_1 = require("@tsed/common");
5
- const FormioAuthMiddleware_js_1 = require("../middlewares/FormioAuthMiddleware.js");
6
- /**
7
- * Check if a user is connected by using the Formio Auth middleware
8
- * @decorator
9
- * @formio
10
- */
11
- function UseFormioAuth() {
12
- return (0, common_1.UseAuth)(FormioAuthMiddleware_js_1.FormioAuthMiddleware);
13
- }
14
- exports.UseFormioAuth = UseFormioAuth;
15
- //# sourceMappingURL=useFormioAuth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFormioAuth.js","sourceRoot":"","sources":["../../../src/decorators/useFormioAuth.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AACrC,oFAA4E;AAE5E;;;;GAIG;AACH,SAAgB,aAAa;IAC3B,OAAO,IAAA,gBAAO,EAAC,8CAAoB,CAAC,CAAC;AACvC,CAAC;AAFD,sCAEC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=AlterHook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AlterHook.js","sourceRoot":"","sources":["../../../src/domain/AlterHook.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Formio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Formio.js","sourceRoot":"","sources":["../../../src/domain/Formio.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioAction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioAction.js","sourceRoot":"","sources":["../../../src/domain/FormioAction.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioActionsIndex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioActionsIndex.js","sourceRoot":"","sources":["../../../src/domain/FormioActionsIndex.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioAuth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioAuth.js","sourceRoot":"","sources":["../../../src/domain/FormioAuth.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioBaseModel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioBaseModel.js","sourceRoot":"","sources":["../../../src/domain/FormioBaseModel.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioConfig.js","sourceRoot":"","sources":["../../../src/domain/FormioConfig.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioCtxMapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioCtxMapper.js","sourceRoot":"","sources":["../../../src/domain/FormioCtxMapper.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioDecodedToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioDecodedToken.js","sourceRoot":"","sources":["../../../src/domain/FormioDecodedToken.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioErrors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioErrors.js","sourceRoot":"","sources":["../../../src/domain/FormioErrors.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioHooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioHooks.js","sourceRoot":"","sources":["../../../src/domain/FormioHooks.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioJs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioJs.js","sourceRoot":"","sources":["../../../src/domain/FormioJs.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("@tsed/formio-types"), exports);
5
- //# sourceMappingURL=FormioModels.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioModels.js","sourceRoot":"","sources":["../../../src/domain/FormioModels.ts"],"names":[],"mappings":";;;AAMA,6DAAmC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioRouter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioRouter.js","sourceRoot":"","sources":["../../../src/domain/FormioRouter.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioSettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioSettings.js","sourceRoot":"","sources":["../../../src/domain/FormioSettings.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioTemplate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioTemplate.js","sourceRoot":"","sources":["../../../src/domain/FormioTemplate.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioTemplateUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioTemplateUtil.js","sourceRoot":"","sources":["../../../src/domain/FormioTemplateUtil.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioUpdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioUpdate.js","sourceRoot":"","sources":["../../../src/domain/FormioUpdate.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioUtils.js","sourceRoot":"","sources":["../../../src/domain/FormioUtils.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=OnHook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OnHook.js","sourceRoot":"","sources":["../../../src/domain/OnHook.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Resource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../src/domain/Resource.ts"],"names":[],"mappings":""}
package/lib/cjs/index.js DELETED
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- /**
5
- * @file Automatically generated by @tsed/barrels.
6
- */
7
- tslib_1.__exportStar(require("./builder/FormioMapper.js"), exports);
8
- tslib_1.__exportStar(require("./components/AlterActions.js"), exports);
9
- tslib_1.__exportStar(require("./components/AlterAudit.js"), exports);
10
- tslib_1.__exportStar(require("./components/AlterHost.js"), exports);
11
- tslib_1.__exportStar(require("./components/AlterLog.js"), exports);
12
- tslib_1.__exportStar(require("./components/AlterSkip.js"), exports);
13
- tslib_1.__exportStar(require("./components/AlterTemplateExportSteps.js"), exports);
14
- tslib_1.__exportStar(require("./components/AlterTemplateImportSteps.js"), exports);
15
- tslib_1.__exportStar(require("./decorators/action.js"), exports);
16
- tslib_1.__exportStar(require("./decorators/actionCtx.js"), exports);
17
- tslib_1.__exportStar(require("./decorators/alter.js"), exports);
18
- tslib_1.__exportStar(require("./decorators/on.js"), exports);
19
- tslib_1.__exportStar(require("./decorators/useFormioAuth.js"), exports);
20
- tslib_1.__exportStar(require("./domain/AlterHook.js"), exports);
21
- tslib_1.__exportStar(require("./domain/Formio.js"), exports);
22
- tslib_1.__exportStar(require("./domain/FormioAction.js"), exports);
23
- tslib_1.__exportStar(require("./domain/FormioActionsIndex.js"), exports);
24
- tslib_1.__exportStar(require("./domain/FormioAuth.js"), exports);
25
- tslib_1.__exportStar(require("./domain/FormioBaseModel.js"), exports);
26
- tslib_1.__exportStar(require("./domain/FormioConfig.js"), exports);
27
- tslib_1.__exportStar(require("./domain/FormioCtxMapper.js"), exports);
28
- tslib_1.__exportStar(require("./domain/FormioDecodedToken.js"), exports);
29
- tslib_1.__exportStar(require("./domain/FormioErrors.js"), exports);
30
- tslib_1.__exportStar(require("./domain/FormioHooks.js"), exports);
31
- tslib_1.__exportStar(require("./domain/FormioJs.js"), exports);
32
- tslib_1.__exportStar(require("./domain/FormioModels.js"), exports);
33
- tslib_1.__exportStar(require("./domain/FormioRouter.js"), exports);
34
- tslib_1.__exportStar(require("./domain/FormioSettings.js"), exports);
35
- tslib_1.__exportStar(require("./domain/FormioTemplate.js"), exports);
36
- tslib_1.__exportStar(require("./domain/FormioTemplateUtil.js"), exports);
37
- tslib_1.__exportStar(require("./domain/FormioUpdate.js"), exports);
38
- tslib_1.__exportStar(require("./domain/FormioUtils.js"), exports);
39
- tslib_1.__exportStar(require("./domain/OnHook.js"), exports);
40
- tslib_1.__exportStar(require("./domain/Resource.js"), exports);
41
- tslib_1.__exportStar(require("./FormioModule.js"), exports);
42
- tslib_1.__exportStar(require("./middlewares/FormioAuthMiddleware.js"), exports);
43
- tslib_1.__exportStar(require("./services/FormioAuthService.js"), exports);
44
- tslib_1.__exportStar(require("./services/FormioDatabase.js"), exports);
45
- tslib_1.__exportStar(require("./services/FormioHooksService.js"), exports);
46
- tslib_1.__exportStar(require("./services/FormioInstaller.js"), exports);
47
- tslib_1.__exportStar(require("./services/FormioRepository.js"), exports);
48
- tslib_1.__exportStar(require("./services/FormioService.js"), exports);
49
- tslib_1.__exportStar(require("./utils/isMongoId.js"), exports);
50
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,oEAA0C;AAC1C,uEAA6C;AAC7C,qEAA2C;AAC3C,oEAA0C;AAC1C,mEAAyC;AACzC,oEAA0C;AAC1C,mFAAyD;AACzD,mFAAyD;AACzD,iEAAuC;AACvC,oEAA0C;AAC1C,gEAAsC;AACtC,6DAAmC;AACnC,wEAA8C;AAC9C,gEAAsC;AACtC,6DAAmC;AACnC,mEAAyC;AACzC,yEAA+C;AAC/C,iEAAuC;AACvC,sEAA4C;AAC5C,mEAAyC;AACzC,sEAA4C;AAC5C,yEAA+C;AAC/C,mEAAyC;AACzC,kEAAwC;AACxC,+DAAqC;AACrC,mEAAyC;AACzC,mEAAyC;AACzC,qEAA2C;AAC3C,qEAA2C;AAC3C,yEAA+C;AAC/C,mEAAyC;AACzC,kEAAwC;AACxC,6DAAmC;AACnC,+DAAqC;AACrC,4DAAkC;AAClC,gFAAsD;AACtD,0EAAgD;AAChD,uEAA6C;AAC7C,2EAAiD;AACjD,wEAA8C;AAC9C,yEAA+C;AAC/C,sEAA4C;AAC5C,+DAAqC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FormioAuthMiddleware = void 0;
4
- const tslib_1 = require("tslib");
5
- const common_1 = require("@tsed/common");
6
- const core_1 = require("@tsed/core");
7
- const exceptions_1 = require("@tsed/exceptions");
8
- const util_1 = require("util");
9
- const FormioService_js_1 = require("../services/FormioService.js");
10
- /**
11
- * @middleware
12
- * @formio
13
- */
14
- let FormioAuthMiddleware = class FormioAuthMiddleware {
15
- get tokenHandler() {
16
- return (0, util_1.promisify)(this.formio.middleware.tokenHandler);
17
- }
18
- async use(ctx) {
19
- const req = ctx.getRequest();
20
- const res = ctx.getResponse();
21
- await this.tokenHandler(req, res);
22
- if (!(0, core_1.getValue)(req, "token.user._id")) {
23
- throw new exceptions_1.Unauthorized("User unauthorized");
24
- }
25
- }
26
- };
27
- tslib_1.__decorate([
28
- (0, common_1.Inject)(),
29
- tslib_1.__metadata("design:type", FormioService_js_1.FormioService)
30
- ], FormioAuthMiddleware.prototype, "formio", void 0);
31
- tslib_1.__decorate([
32
- tslib_1.__param(0, (0, common_1.Context)()),
33
- tslib_1.__metadata("design:type", Function),
34
- tslib_1.__metadata("design:paramtypes", [Object]),
35
- tslib_1.__metadata("design:returntype", Promise)
36
- ], FormioAuthMiddleware.prototype, "use", null);
37
- FormioAuthMiddleware = tslib_1.__decorate([
38
- (0, common_1.Middleware)()
39
- ], FormioAuthMiddleware);
40
- exports.FormioAuthMiddleware = FormioAuthMiddleware;
41
- //# sourceMappingURL=FormioAuthMiddleware.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioAuthMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/FormioAuthMiddleware.ts"],"names":[],"mappings":";;;;AAAA,yCAAyD;AACzD,qCAAoC;AACpC,iDAA8C;AAC9C,+BAA+B;AAC/B,mEAA2D;AAE3D;;;GAGG;AAEI,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAI/B,IAAI,YAAY;QACd,OAAO,IAAA,gBAAS,EAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IACxD,CAAC;IAEK,AAAN,KAAK,CAAC,GAAG,CAAY,GAAY;QAC/B,MAAM,GAAG,GAAG,GAAG,CAAC,UAAU,EAAE,CAAC;QAC7B,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;QAE9B,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAElC,IAAI,CAAC,IAAA,eAAQ,EAAC,GAAG,EAAE,gBAAgB,CAAC,EAAE;YACpC,MAAM,IAAI,yBAAY,CAAC,mBAAmB,CAAC,CAAC;SAC7C;IACH,CAAC;CACF,CAAA;AAjBC;IAAC,IAAA,eAAM,GAAE;sCACS,gCAAa;oDAAC;AAM1B;IAAK,mBAAA,IAAA,gBAAO,GAAE,CAAA;;;;+CASnB;AAjBU,oBAAoB;IADhC,IAAA,mBAAU,GAAE;GACA,oBAAoB,CAkBhC;AAlBY,oDAAoB"}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1,182 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FormioAuthService = void 0;
4
- const tslib_1 = require("tslib");
5
- const core_1 = require("@tsed/core");
6
- const di_1 = require("@tsed/di");
7
- const exceptions_1 = require("@tsed/exceptions");
8
- const util_1 = require("util");
9
- const FormioDatabase_js_1 = require("./FormioDatabase.js");
10
- const FormioHooksService_js_1 = require("./FormioHooksService.js");
11
- const FormioService_js_1 = require("./FormioService.js");
12
- let FormioAuthService = class FormioAuthService {
13
- get currentUser() {
14
- return (0, util_1.promisify)(this.formio.auth.currentUser);
15
- }
16
- get getToken() {
17
- return this.formio.auth.getToken;
18
- }
19
- get tempToken() {
20
- return this.formio.auth.tempToken;
21
- }
22
- get logout() {
23
- return this.formio.auth.logout;
24
- }
25
- setCurrentUser(user, token, ctx) {
26
- const request = ctx.getRequest();
27
- const response = ctx.getResponse();
28
- request.submission.data = user.data;
29
- request.user = user;
30
- request.token = token.decoded;
31
- response.token = token.token;
32
- request["x-jwt-token"] = token.token;
33
- return this;
34
- }
35
- /**
36
- * Generate the payload token for the session
37
- * @param user
38
- * @param ctx
39
- */
40
- async generatePayloadToken(user, ctx) {
41
- const req = ctx.getRequest();
42
- const audit = this.formio.audit;
43
- let form;
44
- try {
45
- form = (await this.db.getForm(user.form));
46
- }
47
- catch (err) {
48
- audit("EAUTH_USERFORM", {
49
- ...req,
50
- userId: user._id
51
- }, user.form, err);
52
- throw err;
53
- }
54
- if (!form) {
55
- audit("EAUTH_USERFORM", {
56
- ...req,
57
- userId: user._id
58
- }, user.form, { message: "User form not found" });
59
- throw new exceptions_1.NotFound("User form not found.");
60
- }
61
- try {
62
- user = await this.hooks.alterAsync("user", user);
63
- }
64
- catch (err) {
65
- // istanbul ignore next
66
- ctx.logger.debug(err);
67
- }
68
- await this.hooks.alterAsync("login", user, req);
69
- // Allow anyone to hook and modify the token.
70
- const token = this.hooks.alter("token", {
71
- user: {
72
- _id: user._id
73
- },
74
- form: {
75
- _id: form?._id
76
- }
77
- }, form, req);
78
- const decoded = this.hooks.alter("tokenDecode", token, req);
79
- return {
80
- user,
81
- token: {
82
- token: this.getToken(token),
83
- decoded
84
- }
85
- };
86
- }
87
- /**
88
- * Generate session from the given authenticated user.
89
- * @param user
90
- * @param ctx
91
- */
92
- async generateSession(user, ctx) {
93
- try {
94
- const { user: userSession, token } = await this.generatePayloadToken(user, ctx);
95
- this.setCurrentUser(userSession, token, ctx);
96
- await this.currentUser(ctx.getRequest(), ctx.getResponse());
97
- }
98
- catch (err) {
99
- ctx.logger.error({ event: "Error on OAuthActions", error: err });
100
- throw new exceptions_1.Unauthorized(err.message);
101
- }
102
- }
103
- /**
104
- * Retrieve roles
105
- * @param req
106
- */
107
- async getRoles(req) {
108
- try {
109
- const query = this.hooks.alter("roleQuery", { deleted: { $eq: null } }, req);
110
- return await this.db.roleModel.find(query).sort({ title: 1 }).lean().exec();
111
- }
112
- catch (err) {
113
- throw new exceptions_1.BadRequest(this.formio.util.errorCodes.role.EROLESLOAD);
114
- }
115
- }
116
- /**
117
- * Update the role of the current user submission
118
- * @param _id
119
- * @param role
120
- * @param req
121
- */
122
- async updateUserRole(_id, role, req) {
123
- const query = this.hooks.alter("submissionQuery", {
124
- _id: this.formio.util.idToBson(_id),
125
- deleted: { $eq: null }
126
- }, req);
127
- const user = await this.db.submissionModel.findOne(query).exec();
128
- if (!user) {
129
- throw new exceptions_1.BadRequest("No Submission was found with the given setting `submission`.");
130
- }
131
- user.roles = [this.formio.util.idToBson(role)];
132
- if ((0, core_1.isFunction)(user.save)) {
133
- await user.save();
134
- }
135
- return user;
136
- }
137
- /**
138
- * Create a user submission in formio
139
- * @param user
140
- */
141
- async createUser(user) {
142
- const submission = new this.db.submissionModel({
143
- owner: null,
144
- deleted: null,
145
- roles: [],
146
- externalsIds: [],
147
- ...user,
148
- created: new Date().toISOString(),
149
- modified: new Date().toISOString()
150
- });
151
- user.form && (submission.form = this.db.idToBson(user.form));
152
- await submission.save();
153
- return submission.toObject();
154
- }
155
- /**
156
- * Update user submission in formio
157
- * @param user
158
- */
159
- async updateUser(user) {
160
- await this.db.submissionModel.updateOne({
161
- _id: user._id
162
- }, { $set: user });
163
- return user;
164
- }
165
- };
166
- tslib_1.__decorate([
167
- (0, di_1.Inject)(),
168
- tslib_1.__metadata("design:type", FormioService_js_1.FormioService)
169
- ], FormioAuthService.prototype, "formio", void 0);
170
- tslib_1.__decorate([
171
- (0, di_1.Inject)(),
172
- tslib_1.__metadata("design:type", FormioHooksService_js_1.FormioHooksService)
173
- ], FormioAuthService.prototype, "hooks", void 0);
174
- tslib_1.__decorate([
175
- (0, di_1.Inject)(),
176
- tslib_1.__metadata("design:type", FormioDatabase_js_1.FormioDatabase)
177
- ], FormioAuthService.prototype, "db", void 0);
178
- FormioAuthService = tslib_1.__decorate([
179
- (0, di_1.Injectable)()
180
- ], FormioAuthService);
181
- exports.FormioAuthService = FormioAuthService;
182
- //# sourceMappingURL=FormioAuthService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioAuthService.js","sourceRoot":"","sources":["../../../src/services/FormioAuthService.ts"],"names":[],"mappings":";;;;AACA,qCAAsC;AACtC,iCAA4C;AAC5C,iDAAoE;AACpE,+BAA+B;AAG/B,2DAAmD;AACnD,mEAA2D;AAC3D,yDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAU5B,IAAI,WAAW;QACb,OAAO,IAAA,gBAAS,EAAC,IAAI,CAAC,M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