@tsed/formio 7.70.2 → 7.71.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.
- package/jest.config.js +3 -1
- package/lib/cjs/FormioModule.js +24 -24
- package/lib/cjs/FormioModule.js.map +1 -1
- package/lib/cjs/components/AlterActions.js +4 -4
- package/lib/cjs/components/AlterActions.js.map +1 -1
- package/lib/cjs/components/AlterAudit.js +2 -2
- package/lib/cjs/components/AlterAudit.js.map +1 -1
- package/lib/cjs/components/AlterHost.js +2 -2
- package/lib/cjs/components/AlterHost.js.map +1 -1
- package/lib/cjs/components/AlterLog.js +2 -2
- package/lib/cjs/components/AlterLog.js.map +1 -1
- package/lib/cjs/components/AlterSkip.js +2 -2
- package/lib/cjs/components/AlterSkip.js.map +1 -1
- package/lib/cjs/components/AlterTemplateExportSteps.js +4 -4
- package/lib/cjs/components/AlterTemplateExportSteps.js.map +1 -1
- package/lib/cjs/components/AlterTemplateImportSteps.js +4 -4
- package/lib/cjs/components/AlterTemplateImportSteps.js.map +1 -1
- package/lib/cjs/decorators/useFormioAuth.js +2 -2
- package/lib/cjs/decorators/useFormioAuth.js.map +1 -1
- package/lib/cjs/index.js +46 -46
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/middlewares/FormioAuthMiddleware.js +2 -2
- package/lib/cjs/middlewares/FormioAuthMiddleware.js.map +1 -1
- package/lib/cjs/services/FormioAuthService.js +6 -6
- package/lib/cjs/services/FormioAuthService.js.map +1 -1
- package/lib/cjs/services/FormioDatabase.js +6 -6
- package/lib/cjs/services/FormioDatabase.js.map +1 -1
- package/lib/cjs/services/FormioHooksService.js +3 -3
- package/lib/cjs/services/FormioHooksService.js.map +1 -1
- package/lib/cjs/services/FormioInstaller.js +2 -2
- package/lib/cjs/services/FormioInstaller.js.map +1 -1
- package/lib/cjs/services/FormioRepository.js +2 -2
- package/lib/cjs/services/FormioRepository.js.map +1 -1
- package/lib/esm/FormioModule.js.map +1 -1
- package/lib/esm/components/AlterActions.js.map +1 -1
- package/lib/esm/components/AlterAudit.js.map +1 -1
- package/lib/esm/components/AlterHost.js.map +1 -1
- package/lib/esm/components/AlterLog.js.map +1 -1
- package/lib/esm/components/AlterSkip.js.map +1 -1
- package/lib/esm/components/AlterTemplateExportSteps.js.map +1 -1
- package/lib/esm/components/AlterTemplateImportSteps.js.map +1 -1
- package/lib/esm/decorators/useFormioAuth.js.map +1 -1
- package/lib/esm/index.js +2 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/middlewares/FormioAuthMiddleware.js.map +1 -1
- package/lib/esm/services/FormioAuthService.js.map +1 -1
- package/lib/esm/services/FormioDatabase.js.map +1 -1
- package/lib/esm/services/FormioHooksService.js.map +1 -1
- package/lib/esm/services/FormioInstaller.js.map +1 -1
- package/lib/esm/services/FormioRepository.js.map +1 -1
- package/lib/types/FormioModule.d.ts +7 -7
- package/lib/types/builder/FormioMapper.d.ts +1 -1
- package/lib/types/components/AlterActions.d.ts +4 -4
- package/lib/types/components/AlterAudit.d.ts +1 -1
- package/lib/types/components/AlterHost.d.ts +1 -1
- package/lib/types/components/AlterLog.d.ts +1 -1
- package/lib/types/components/AlterSkip.d.ts +1 -1
- package/lib/types/components/AlterTemplateExportSteps.d.ts +5 -5
- package/lib/types/components/AlterTemplateImportSteps.d.ts +5 -5
- package/lib/types/decorators/actionCtx.d.ts +1 -1
- package/lib/types/domain/Formio.d.ts +10 -10
- package/lib/types/domain/FormioAction.d.ts +2 -2
- package/lib/types/domain/FormioActionsIndex.d.ts +1 -1
- package/lib/types/domain/FormioAuth.d.ts +2 -2
- package/lib/types/domain/FormioConfig.d.ts +2 -2
- package/lib/types/domain/FormioHooks.d.ts +8 -8
- package/lib/types/domain/FormioModels.d.ts +2 -2
- package/lib/types/domain/FormioRouter.d.ts +2 -2
- package/lib/types/domain/FormioTemplate.d.ts +1 -1
- package/lib/types/domain/FormioTemplateUtil.d.ts +1 -1
- package/lib/types/domain/FormioUpdate.d.ts +1 -1
- package/lib/types/domain/FormioUtils.d.ts +2 -2
- package/lib/types/index.d.ts +44 -44
- package/lib/types/middlewares/FormioAuthMiddleware.d.ts +1 -1
- package/lib/types/services/FormioAuthService.d.ts +30 -30
- package/lib/types/services/FormioDatabase.d.ts +26 -26
- package/lib/types/services/FormioHooksService.d.ts +2 -2
- package/lib/types/services/FormioInstaller.d.ts +3 -3
- package/lib/types/services/FormioRepository.d.ts +26 -26
- package/lib/types/services/FormioService.d.ts +12 -12
- package/package.json +11 -11
package/jest.config.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// For a detailed explanation regarding each configuration property, visit:
|
|
2
2
|
// https://jestjs.io/docs/en/configuration.html
|
|
3
|
+
const config = require("@tsed/jest-config");
|
|
3
4
|
|
|
4
5
|
module.exports = {
|
|
5
|
-
...
|
|
6
|
+
...config,
|
|
6
7
|
moduleNameMapper: {
|
|
8
|
+
...config.moduleNameMapper,
|
|
7
9
|
"@tsed/formio": "<rootDir>/src/index.ts"
|
|
8
10
|
},
|
|
9
11
|
coverageThreshold: {
|
package/lib/cjs/FormioModule.js
CHANGED
|
@@ -6,17 +6,17 @@ const common_1 = require("@tsed/common");
|
|
|
6
6
|
const core_1 = require("@tsed/core");
|
|
7
7
|
const di_1 = require("@tsed/di");
|
|
8
8
|
const normalize_path_1 = require("@tsed/normalize-path");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
9
|
+
const AlterActions_js_1 = require("./components/AlterActions.js");
|
|
10
|
+
const AlterAudit_js_1 = require("./components/AlterAudit.js");
|
|
11
|
+
const AlterHost_js_1 = require("./components/AlterHost.js");
|
|
12
|
+
const AlterLog_js_1 = require("./components/AlterLog.js");
|
|
13
|
+
const AlterSkip_js_1 = require("./components/AlterSkip.js");
|
|
14
|
+
const AlterTemplateExportSteps_js_1 = require("./components/AlterTemplateExportSteps.js");
|
|
15
|
+
const AlterTemplateImportSteps_js_1 = require("./components/AlterTemplateImportSteps.js");
|
|
16
|
+
const FormioAuthService_js_1 = require("./services/FormioAuthService.js");
|
|
17
|
+
const FormioHooksService_js_1 = require("./services/FormioHooksService.js");
|
|
18
|
+
const FormioInstaller_js_1 = require("./services/FormioInstaller.js");
|
|
19
|
+
const FormioService_js_1 = require("./services/FormioService.js");
|
|
20
20
|
let FormioModule = class FormioModule {
|
|
21
21
|
formio;
|
|
22
22
|
hooks;
|
|
@@ -84,15 +84,15 @@ let FormioModule = class FormioModule {
|
|
|
84
84
|
};
|
|
85
85
|
tslib_1.__decorate([
|
|
86
86
|
(0, common_1.Inject)(),
|
|
87
|
-
tslib_1.__metadata("design:type",
|
|
87
|
+
tslib_1.__metadata("design:type", FormioService_js_1.FormioService)
|
|
88
88
|
], FormioModule.prototype, "formio", void 0);
|
|
89
89
|
tslib_1.__decorate([
|
|
90
90
|
(0, common_1.Inject)(),
|
|
91
|
-
tslib_1.__metadata("design:type",
|
|
91
|
+
tslib_1.__metadata("design:type", FormioHooksService_js_1.FormioHooksService)
|
|
92
92
|
], FormioModule.prototype, "hooks", void 0);
|
|
93
93
|
tslib_1.__decorate([
|
|
94
94
|
(0, common_1.Inject)(),
|
|
95
|
-
tslib_1.__metadata("design:type",
|
|
95
|
+
tslib_1.__metadata("design:type", FormioInstaller_js_1.FormioInstaller)
|
|
96
96
|
], FormioModule.prototype, "installer", void 0);
|
|
97
97
|
tslib_1.__decorate([
|
|
98
98
|
(0, common_1.Inject)(),
|
|
@@ -125,16 +125,16 @@ tslib_1.__decorate([
|
|
|
125
125
|
FormioModule = tslib_1.__decorate([
|
|
126
126
|
(0, di_1.Module)({
|
|
127
127
|
imports: [
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
128
|
+
FormioService_js_1.FormioService,
|
|
129
|
+
FormioHooksService_js_1.FormioHooksService,
|
|
130
|
+
FormioAuthService_js_1.FormioAuthService,
|
|
131
|
+
AlterActions_js_1.AlterActions,
|
|
132
|
+
AlterHost_js_1.AlterHost,
|
|
133
|
+
AlterAudit_js_1.AlterAudit,
|
|
134
|
+
AlterLog_js_1.AlterLog,
|
|
135
|
+
AlterSkip_js_1.AlterSkip,
|
|
136
|
+
AlterTemplateImportSteps_js_1.AlterTemplateImportSteps,
|
|
137
|
+
AlterTemplateExportSteps_js_1.AlterTemplateExportSteps
|
|
138
138
|
]
|
|
139
139
|
})
|
|
140
140
|
], FormioModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormioModule.js","sourceRoot":"","sources":["../../src/FormioModule.ts"],"names":[],"mappings":";;;;AAAA,yCAAiI;AACjI,qCAAqC;AACrC,iCAAgC;AAChC,yDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"FormioModule.js","sourceRoot":"","sources":["../../src/FormioModule.ts"],"names":[],"mappings":";;;;AAAA,yCAAiI;AACjI,qCAAqC;AACrC,iCAAgC;AAChC,yDAAmD;AACnD,kEAA0D;AAC1D,8DAAsD;AACtD,4DAAoD;AACpD,0DAAkD;AAClD,4DAAoD;AACpD,0FAAkF;AAClF,0FAAkF;AAGlF,0EAAkE;AAClE,4EAAoE;AACpE,sEAA8D;AAC9D,kEAA0D;AAgBnD,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEb,MAAM,CAAgB;IAGtB,KAAK,CAAqB;IAG1B,SAAS,CAAkB;IAG3B,GAAG,CAAsB;IAGzB,QAAQ,CAAkB;IAG1B,QAAQ,CAAe;IAGvB,OAAO,CAAS;IAGhB,WAAW,CAAU;IAGrB,QAAQ,CAAkB;IAG1B,IAAI,CAAO;IAErB,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,QAAQ,CAA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AAC;AAEpC;IAAC,IAAA,iBAAQ,EAAC,QAAQ,EAAE,EAAE,CAAC;;8CACU;AAEjC;IAAC,IAAA,iBAAQ,EAAC,gBAAgB,EAAE,GAAG,CAAC;;6CACN;AAE1B;IAAC,IAAA,iBAAQ,EAAC,oBAAoB,EAAE,KAAK,CAAC;;iDACP;AAE/B;IAAC,IAAA,iBAAQ,EAAC,iBAAiB,CAAC;;8CACQ;AAEpC;IAAC,IAAA,iBAAQ,EAAC,aAAa,CAAC;;0CACH;AA7BV,YAAY;IAdxB,IAAA,WAAM,EAAC;QACN,OAAO,EAAE;YACP,gCAAa;YACb,0CAAkB;YAClB,wCAAiB;YACjB,8BAAY;YACZ,wBAAS;YACT,0BAAU;YACV,sBAAQ;YACR,wBAAS;YACT,sDAAwB;YACxB,sDAAwB;SACzB;KACF,CAAC;GACW,YAAY,CAgGxB;AAhGY,oCAAY"}
|
|
@@ -8,8 +8,8 @@ const di_1 = require("@tsed/di");
|
|
|
8
8
|
const platform_params_1 = require("@tsed/platform-params");
|
|
9
9
|
const platform_response_filter_1 = require("@tsed/platform-response-filter");
|
|
10
10
|
const schema_1 = require("@tsed/schema");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const alter_js_1 = require("../decorators/alter.js");
|
|
12
|
+
const FormioService_js_1 = require("../services/FormioService.js");
|
|
13
13
|
let AlterActions = class AlterActions {
|
|
14
14
|
injector;
|
|
15
15
|
formio;
|
|
@@ -100,7 +100,7 @@ tslib_1.__decorate([
|
|
|
100
100
|
], AlterActions.prototype, "injector", void 0);
|
|
101
101
|
tslib_1.__decorate([
|
|
102
102
|
(0, di_1.Inject)(),
|
|
103
|
-
tslib_1.__metadata("design:type",
|
|
103
|
+
tslib_1.__metadata("design:type", FormioService_js_1.FormioService)
|
|
104
104
|
], AlterActions.prototype, "formio", void 0);
|
|
105
105
|
tslib_1.__decorate([
|
|
106
106
|
(0, di_1.Inject)(),
|
|
@@ -111,7 +111,7 @@ tslib_1.__decorate([
|
|
|
111
111
|
tslib_1.__metadata("design:type", platform_response_filter_1.PlatformResponseFilter)
|
|
112
112
|
], AlterActions.prototype, "responseFilter", void 0);
|
|
113
113
|
AlterActions = tslib_1.__decorate([
|
|
114
|
-
(0,
|
|
114
|
+
(0, alter_js_1.Alter)("actions")
|
|
115
115
|
], AlterActions);
|
|
116
116
|
exports.AlterActions = AlterActions;
|
|
117
117
|
//# sourceMappingURL=AlterActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterActions.js","sourceRoot":"","sources":["../../../src/components/AlterActions.ts"],"names":[],"mappings":";;;;AAAA,yCAAiE;AACjE,qCAA4D;AAC5D,iCAA2D;AAE3D,2DAAqD;AACrD,6EAAsE;AACtE,yCAA8C;AAC9C
|
|
1
|
+
{"version":3,"file":"AlterActions.js","sourceRoot":"","sources":["../../../src/components/AlterActions.ts"],"names":[],"mappings":";;;;AAAA,yCAAiE;AACjE,qCAA4D;AAC5D,iCAA2D;AAE3D,2DAAqD;AACrD,6EAAsE;AACtE,yCAA8C;AAC9C,qDAA6C;AAI7C,mEAA2D;AAGpD,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEb,QAAQ,CAAkB;IAG1B,MAAM,CAAgB;IAGtB,MAAM,CAAiB;IAGvB,cAAc,CAAyB;IAEjD,SAAS,CAAC,OAAsB;QAC9B,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;YACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAM,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC3D,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAmB,eAAe,CAAC,CAAC;YACtE,MAAM,cAAc,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,SAAS,CA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CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;aACpC;YAED,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAEO,KAAK,CAAC,KAAK,CAAC,IAAS,EAAE,IAAqB;QAClD,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAI,CAAC;QAExB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE;YAClB,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;YAEzB,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,EAAE,IAAW,CAAC,CAAC;YAC9D,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,EAAE,IAAW,CAAC,CAAC;YAE9D,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrB;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AAxHC;IAAC,IAAA,WAAM,GAAE;sCACW,oBAAe;8CAAC;AAEpC;IAAC,IAAA,WAAM,GAAE;sCACS,gCAAa;4CAAC;AAEhC;IAAC,IAAA,WAAM,GAAE;sCACS,gCAAc;4CAAC;AAEjC;IAAC,IAAA,WAAM,GAAE;sCACiB,iDAAsB;oDAAC;AAXtC,YAAY;IADxB,IAAA,gBAAK,EAAC,SAAS,CAAC;GACJ,YAAY,CAyHxB;AAzHY,oCAAY"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlterAudit = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const alter_js_1 = require("../decorators/alter.js");
|
|
6
6
|
let AlterAudit = class AlterAudit {
|
|
7
7
|
transform(info, event, ctx) {
|
|
8
8
|
ctx.logger.info({ event, info });
|
|
@@ -10,7 +10,7 @@ let AlterAudit = class AlterAudit {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
AlterAudit = tslib_1.__decorate([
|
|
13
|
-
(0,
|
|
13
|
+
(0, alter_js_1.Alter)("audit")
|
|
14
14
|
], AlterAudit);
|
|
15
15
|
exports.AlterAudit = AlterAudit;
|
|
16
16
|
//# sourceMappingURL=AlterAudit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterAudit.js","sourceRoot":"","sources":["../../../src/components/AlterAudit.ts"],"names":[],"mappings":";;;;AACA
|
|
1
|
+
{"version":3,"file":"AlterAudit.js","sourceRoot":"","sources":["../../../src/components/AlterAudit.ts"],"names":[],"mappings":";;;;AACA,qDAA6C;AAItC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACrB,SAAS,CAAC,IAAW,EAAE,KAAa,EAAE,GAAc;QAClD,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC;QAC/B,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAA;AALY,UAAU;IADtB,IAAA,gBAAK,EAAC,OAAO,CAAC;GACF,UAAU,CAKtB;AALY,gCAAU"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlterHost = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const alter_js_1 = require("../decorators/alter.js");
|
|
6
6
|
let AlterHost = class AlterHost {
|
|
7
7
|
transform(baseUrl, ctx) {
|
|
8
8
|
return `${ctx.request.protocol}://${ctx.request.host}${baseUrl}`;
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
AlterHost = tslib_1.__decorate([
|
|
12
|
-
(0,
|
|
12
|
+
(0, alter_js_1.Alter)("host")
|
|
13
13
|
], AlterHost);
|
|
14
14
|
exports.AlterHost = AlterHost;
|
|
15
15
|
//# sourceMappingURL=AlterHost.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterHost.js","sourceRoot":"","sources":["../../../src/components/AlterHost.ts"],"names":[],"mappings":";;;;AACA
|
|
1
|
+
{"version":3,"file":"AlterHost.js","sourceRoot":"","sources":["../../../src/components/AlterHost.ts"],"names":[],"mappings":";;;;AACA,qDAA6C;AAItC,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,SAAS,CAAC,OAAe,EAAE,GAAoB;QAC7C,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,QAAQ,MAAM,GAAG,CAAC,OAAO,CAAC,IAAI,GAAG,OAAO,EAAE,CAAC;IACnE,CAAC;CACF,CAAA;AAJY,SAAS;IADrB,IAAA,gBAAK,EAAC,MAAM,CAAC;GACD,SAAS,CAIrB;AAJY,8BAAS"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlterLog = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const alter_js_1 = require("../decorators/alter.js");
|
|
6
6
|
let AlterLog = class AlterLog {
|
|
7
7
|
transform(event, ctx, ...info) {
|
|
8
8
|
ctx.logger.debug({ event, info });
|
|
@@ -10,7 +10,7 @@ let AlterLog = class AlterLog {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
AlterLog = tslib_1.__decorate([
|
|
13
|
-
(0,
|
|
13
|
+
(0, alter_js_1.Alter)("log")
|
|
14
14
|
], AlterLog);
|
|
15
15
|
exports.AlterLog = AlterLog;
|
|
16
16
|
//# sourceMappingURL=AlterLog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterLog.js","sourceRoot":"","sources":["../../../src/components/AlterLog.ts"],"names":[],"mappings":";;;;AACA
|
|
1
|
+
{"version":3,"file":"AlterLog.js","sourceRoot":"","sources":["../../../src/components/AlterLog.ts"],"names":[],"mappings":";;;;AACA,qDAA6C;AAItC,IAAM,QAAQ,GAAd,MAAM,QAAQ;IACnB,SAAS,CAAC,KAAa,EAAE,GAAoB,EAAE,GAAG,IAAW;QAC3D,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC;QAChC,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAA;AALY,QAAQ;IADpB,IAAA,gBAAK,EAAC,KAAK,CAAC;GACA,QAAQ,CAKpB;AALY,4BAAQ"}
|
|
@@ -4,7 +4,7 @@ exports.AlterSkip = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const common_1 = require("@tsed/common");
|
|
6
6
|
const normalize_path_1 = require("@tsed/normalize-path");
|
|
7
|
-
const
|
|
7
|
+
const alter_js_1 = require("../decorators/alter.js");
|
|
8
8
|
let AlterSkip = class AlterSkip {
|
|
9
9
|
baseUrl;
|
|
10
10
|
whiteList;
|
|
@@ -28,7 +28,7 @@ tslib_1.__decorate([
|
|
|
28
28
|
tslib_1.__metadata("design:type", Array)
|
|
29
29
|
], AlterSkip.prototype, "whiteList", void 0);
|
|
30
30
|
AlterSkip = tslib_1.__decorate([
|
|
31
|
-
(0,
|
|
31
|
+
(0, alter_js_1.Alter)("skip")
|
|
32
32
|
], AlterSkip);
|
|
33
33
|
exports.AlterSkip = AlterSkip;
|
|
34
34
|
//# sourceMappingURL=AlterSkip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterSkip.js","sourceRoot":"","sources":["../../../src/components/AlterSkip.ts"],"names":[],"mappings":";;;;AAAA,yCAAuD;AACvD,yDAAmD;AACnD
|
|
1
|
+
{"version":3,"file":"AlterSkip.js","sourceRoot":"","sources":["../../../src/components/AlterSkip.ts"],"names":[],"mappings":";;;;AAAA,yCAAuD;AACvD,yDAAmD;AACnD,qDAA6C;AAItC,IAAM,SAAS,GAAf,MAAM,SAAS;IAEpB,OAAO,CAAS;IAGhB,SAAS,CAAW;IAEpB,SAAS,CAAC,KAAU,EAAE,GAAoB;QACxC,IAAI,KAAK,EAAE;YACT,OAAO,IAAI,CAAC;SACb;QAED,MAAM,EAAC,OAAO,EAAC,GAAG,GAAG,CAAC;QACtB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAEtC,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;YACrC,OAAO,IAAA,8BAAa,EAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC;QACpD,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAlBC;IAAC,IAAA,iBAAQ,EAAC,gBAAgB,EAAE,GAAG,CAAC;;0CAChB;AAEhB;IAAC,IAAA,iBAAQ,EAAC,kBAAkB,EAAE,CAAC,YAAY,CAAC,CAAC;;4CACzB;AALT,SAAS;IADrB,IAAA,gBAAK,EAAC,MAAM,CAAC;GACD,SAAS,CAmBrB;AAnBY,8BAAS"}
|
|
@@ -4,8 +4,8 @@ exports.AlterTemplateExportSteps = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@tsed/core");
|
|
6
6
|
const di_1 = require("@tsed/di");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const alter_js_1 = require("../decorators/alter.js");
|
|
8
|
+
const FormioDatabase_js_1 = require("../services/FormioDatabase.js");
|
|
9
9
|
const async_1 = tslib_1.__importDefault(require("async"));
|
|
10
10
|
let AlterTemplateExportSteps = class AlterTemplateExportSteps {
|
|
11
11
|
database;
|
|
@@ -44,10 +44,10 @@ let AlterTemplateExportSteps = class AlterTemplateExportSteps {
|
|
|
44
44
|
};
|
|
45
45
|
tslib_1.__decorate([
|
|
46
46
|
(0, di_1.Inject)(),
|
|
47
|
-
tslib_1.__metadata("design:type",
|
|
47
|
+
tslib_1.__metadata("design:type", FormioDatabase_js_1.FormioDatabase)
|
|
48
48
|
], AlterTemplateExportSteps.prototype, "database", void 0);
|
|
49
49
|
AlterTemplateExportSteps = tslib_1.__decorate([
|
|
50
|
-
(0,
|
|
50
|
+
(0, alter_js_1.Alter)("templateExportSteps")
|
|
51
51
|
], AlterTemplateExportSteps);
|
|
52
52
|
exports.AlterTemplateExportSteps = AlterTemplateExportSteps;
|
|
53
53
|
//# sourceMappingURL=AlterTemplateExportSteps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterTemplateExportSteps.js","sourceRoot":"","sources":["../../../src/components/AlterTemplateExportSteps.ts"],"names":[],"mappings":";;;;AAAA,qCAAoC;AACpC,iCAAgC;AAGhC
|
|
1
|
+
{"version":3,"file":"AlterTemplateExportSteps.js","sourceRoot":"","sources":["../../../src/components/AlterTemplateExportSteps.ts"],"names":[],"mappings":";;;;AAAA,qCAAoC;AACpC,iCAAgC;AAGhC,qDAA6C;AAI7C,qEAA6D;AAC7D,0DAA0B;AAGnB,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAEzB,QAAQ,CAAiB;IAEnC,SAAS,CAAC,KAAY,EAAE,QAAwB,EAAE,GAAQ,EAAE,OAAY;QACtE,KAAK,CAAC,IAAI,CAAC,eAAK,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;QAEnF,OAAO,KAAK,CAAC;IACf,CAAC;IAES,KAAK,CAAC,iBAAiB,CAAC,QAAwB,EAAE,GAAQ,EAAE,OAAY,EAAE,IAAS;QAC3F,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC9C,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE;YAC/B,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC;gBACjC,OAAO,EAAE,EAAC,GAAG,EAAE,IAAI,EAAC;aACrB,CAAC;SACH,CAAC,CAAC;QA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AAC,IAAA,WAAM,GAAE;sCACW,kCAAc;0DAAC;AAFxB,wBAAwB;IADpC,IAAA,gBAAK,EAAC,qBAAqB,CAAC;GAChB,wBAAwB,CA4CpC;AA5CY,4DAAwB"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AlterTemplateImportSteps = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const di_1 = require("@tsed/di");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const alter_js_1 = require("../decorators/alter.js");
|
|
7
|
+
const FormioDatabase_js_1 = require("../services/FormioDatabase.js");
|
|
8
8
|
const async_1 = tslib_1.__importDefault(require("async"));
|
|
9
9
|
let AlterTemplateImportSteps = class AlterTemplateImportSteps {
|
|
10
10
|
database;
|
|
@@ -37,10 +37,10 @@ let AlterTemplateImportSteps = class AlterTemplateImportSteps {
|
|
|
37
37
|
};
|
|
38
38
|
tslib_1.__decorate([
|
|
39
39
|
(0, di_1.Inject)(),
|
|
40
|
-
tslib_1.__metadata("design:type",
|
|
40
|
+
tslib_1.__metadata("design:type", FormioDatabase_js_1.FormioDatabase)
|
|
41
41
|
], AlterTemplateImportSteps.prototype, "database", void 0);
|
|
42
42
|
AlterTemplateImportSteps = tslib_1.__decorate([
|
|
43
|
-
(0,
|
|
43
|
+
(0, alter_js_1.Alter)("templateImportSteps")
|
|
44
44
|
], AlterTemplateImportSteps);
|
|
45
45
|
exports.AlterTemplateImportSteps = AlterTemplateImportSteps;
|
|
46
46
|
//# sourceMappingURL=AlterTemplateImportSteps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterTemplateImportSteps.js","sourceRoot":"","sources":["../../../src/components/AlterTemplateImportSteps.ts"],"names":[],"mappings":";;;;AAAA,iCAAgC;AAEhC
|
|
1
|
+
{"version":3,"file":"AlterTemplateImportSteps.js","sourceRoot":"","sources":["../../../src/components/AlterTemplateImportSteps.ts"],"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AC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;SAChF,CAAC;QAEF,MAAM,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAElD,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAA;AArCC;IAAC,IAAA,WAAM,GAAE;sCACW,kCAAc;0DAAC;AAFxB,wBAAwB;IADpC,IAAA,gBAAK,EAAC,qBAAqB,CAAC;GAChB,wBAAwB,CAsCpC;AAtCY,4DAAwB"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UseFormioAuth = void 0;
|
|
4
4
|
const common_1 = require("@tsed/common");
|
|
5
|
-
const
|
|
5
|
+
const FormioAuthMiddleware_js_1 = require("../middlewares/FormioAuthMiddleware.js");
|
|
6
6
|
/**
|
|
7
7
|
* Check if a user is connected by using the Formio Auth middleware
|
|
8
8
|
* @decorator
|
|
9
9
|
* @formio
|
|
10
10
|
*/
|
|
11
11
|
function UseFormioAuth() {
|
|
12
|
-
return (0, common_1.UseAuth)(
|
|
12
|
+
return (0, common_1.UseAuth)(FormioAuthMiddleware_js_1.FormioAuthMiddleware);
|
|
13
13
|
}
|
|
14
14
|
exports.UseFormioAuth = UseFormioAuth;
|
|
15
15
|
//# sourceMappingURL=useFormioAuth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormioAuth.js","sourceRoot":"","sources":["../../../src/decorators/useFormioAuth.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AACrC,
|
|
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"}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @file Automatically generated by barrelsby.
|
|
4
|
-
*/
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const tslib_1 = require("tslib");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
tslib_1.__exportStar(require("./
|
|
11
|
-
tslib_1.__exportStar(require("./components/
|
|
12
|
-
tslib_1.__exportStar(require("./components/
|
|
13
|
-
tslib_1.__exportStar(require("./components/
|
|
14
|
-
tslib_1.__exportStar(require("./components/
|
|
15
|
-
tslib_1.__exportStar(require("./components/
|
|
16
|
-
tslib_1.__exportStar(require("./
|
|
17
|
-
tslib_1.__exportStar(require("./
|
|
18
|
-
tslib_1.__exportStar(require("./decorators/
|
|
19
|
-
tslib_1.__exportStar(require("./decorators/
|
|
20
|
-
tslib_1.__exportStar(require("./decorators/
|
|
21
|
-
tslib_1.__exportStar(require("./
|
|
22
|
-
tslib_1.__exportStar(require("./
|
|
23
|
-
tslib_1.__exportStar(require("./domain/
|
|
24
|
-
tslib_1.__exportStar(require("./domain/
|
|
25
|
-
tslib_1.__exportStar(require("./domain/
|
|
26
|
-
tslib_1.__exportStar(require("./domain/
|
|
27
|
-
tslib_1.__exportStar(require("./domain/
|
|
28
|
-
tslib_1.__exportStar(require("./domain/
|
|
29
|
-
tslib_1.__exportStar(require("./domain/
|
|
30
|
-
tslib_1.__exportStar(require("./domain/
|
|
31
|
-
tslib_1.__exportStar(require("./domain/
|
|
32
|
-
tslib_1.__exportStar(require("./domain/
|
|
33
|
-
tslib_1.__exportStar(require("./domain/
|
|
34
|
-
tslib_1.__exportStar(require("./domain/
|
|
35
|
-
tslib_1.__exportStar(require("./domain/
|
|
36
|
-
tslib_1.__exportStar(require("./domain/
|
|
37
|
-
tslib_1.__exportStar(require("./domain/
|
|
38
|
-
tslib_1.__exportStar(require("./domain/
|
|
39
|
-
tslib_1.__exportStar(require("./domain/
|
|
40
|
-
tslib_1.__exportStar(require("./domain/
|
|
41
|
-
tslib_1.__exportStar(require("./domain/
|
|
42
|
-
tslib_1.__exportStar(require("./
|
|
43
|
-
tslib_1.__exportStar(require("./
|
|
44
|
-
tslib_1.__exportStar(require("./
|
|
45
|
-
tslib_1.__exportStar(require("./
|
|
46
|
-
tslib_1.__exportStar(require("./services/
|
|
47
|
-
tslib_1.__exportStar(require("./services/
|
|
48
|
-
tslib_1.__exportStar(require("./services/
|
|
49
|
-
tslib_1.__exportStar(require("./
|
|
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
50
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -6,7 +6,7 @@ const common_1 = require("@tsed/common");
|
|
|
6
6
|
const core_1 = require("@tsed/core");
|
|
7
7
|
const exceptions_1 = require("@tsed/exceptions");
|
|
8
8
|
const util_1 = require("util");
|
|
9
|
-
const
|
|
9
|
+
const FormioService_js_1 = require("../services/FormioService.js");
|
|
10
10
|
/**
|
|
11
11
|
* @middleware
|
|
12
12
|
* @formio
|
|
@@ -27,7 +27,7 @@ let FormioAuthMiddleware = class FormioAuthMiddleware {
|
|
|
27
27
|
};
|
|
28
28
|
tslib_1.__decorate([
|
|
29
29
|
(0, common_1.Inject)(),
|
|
30
|
-
tslib_1.__metadata("design:type",
|
|
30
|
+
tslib_1.__metadata("design:type", FormioService_js_1.FormioService)
|
|
31
31
|
], FormioAuthMiddleware.prototype, "formio", void 0);
|
|
32
32
|
tslib_1.__decorate([
|
|
33
33
|
tslib_1.__param(0, (0, common_1.Context)()),
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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;IAErB,MAAM,CAAgB;IAEhC,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"}
|
|
@@ -6,9 +6,9 @@ const core_1 = require("@tsed/core");
|
|
|
6
6
|
const di_1 = require("@tsed/di");
|
|
7
7
|
const exceptions_1 = require("@tsed/exceptions");
|
|
8
8
|
const util_1 = require("util");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
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
12
|
let FormioAuthService = class FormioAuthService {
|
|
13
13
|
formio;
|
|
14
14
|
hooks;
|
|
@@ -168,15 +168,15 @@ let FormioAuthService = class FormioAuthService {
|
|
|
168
168
|
};
|
|
169
169
|
tslib_1.__decorate([
|
|
170
170
|
(0, di_1.Inject)(),
|
|
171
|
-
tslib_1.__metadata("design:type",
|
|
171
|
+
tslib_1.__metadata("design:type", FormioService_js_1.FormioService)
|
|
172
172
|
], FormioAuthService.prototype, "formio", void 0);
|
|
173
173
|
tslib_1.__decorate([
|
|
174
174
|
(0, di_1.Inject)(),
|
|
175
|
-
tslib_1.__metadata("design:type",
|
|
175
|
+
tslib_1.__metadata("design:type", FormioHooksService_js_1.FormioHooksService)
|
|
176
176
|
], FormioAuthService.prototype, "hooks", void 0);
|
|
177
177
|
tslib_1.__decorate([
|
|
178
178
|
(0, di_1.Inject)(),
|
|
179
|
-
tslib_1.__metadata("design:type",
|
|
179
|
+
tslib_1.__metadata("design:type", FormioDatabase_js_1.FormioDatabase)
|
|
180
180
|
], FormioAuthService.prototype, "db", void 0);
|
|
181
181
|
FormioAuthService = tslib_1.__decorate([
|
|
182
182
|
(0, di_1.Injectable)()
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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;IAE5B,MAAM,CAAgB;IAGtB,KAAK,CAAqB;IAG1B,EAAE,CAAiB;IAEnB,IAAI,WAAW;QACb,OAAO,IAAA,gBAAS,EAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACnC,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;IACpC,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;IACjC,CAAC;IAED,cAAc,CAAa,IAAoC,EAAE,KAAyB,EAAE,GAAoB;QAC9G,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;QAEnC,OAAO,CAAC,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACpC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;QACpB,OAAO,CAAC,KAA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ChE,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC;YAC7C,KAAK,EAAE,IAAI;YACX,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,GAAG,IAAI;YACP,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACjC,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACnC,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAE7D,MAAM,UAAU,CAAC,IAAI,EAAE,CAAC;QAExB,OAAO,UAAU,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAa,IAAoC;QAC/D,MAAM,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,SAAS,CACrC;YACE,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,EACD,EAAC,IAAI,EAAE,IAAI,EAAC,CACb,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AApNC;IAAC,IAAA,WAAM,GAAE;sCACD,gCAAa;iDAAC;AAEtB;IAAC,IAAA,WAAM,GAAE;sCACF,0CAAkB;gDAAC;AAE1B;IAAC,IAAA,WAAM,GAAE;sCACL,kCAAc;6CAAC;AARR,iBAAiB;IAD7B,IAAA,eAAU,GAAE;GACA,iBAAiB,CAqN7B;AArNY,8CAAiB"}
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const core_1 = require("@tsed/core");
|
|
6
6
|
const di_1 = require("@tsed/di");
|
|
7
7
|
const omit_1 = tslib_1.__importDefault(require("lodash/omit"));
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
8
|
+
const FormioMapper_js_1 = require("../builder/FormioMapper.js");
|
|
9
|
+
const isMongoId_js_1 = require("../utils/isMongoId.js");
|
|
10
|
+
const FormioService_js_1 = require("./FormioService.js");
|
|
11
11
|
function toMap(list) {
|
|
12
12
|
return (0, core_1.toMap)(list, (o) => [o._id.toString(), `$machineName:${o.name || o.machineName}`]);
|
|
13
13
|
}
|
|
@@ -46,7 +46,7 @@ let FormioDatabase = class FormioDatabase {
|
|
|
46
46
|
deleted: { $eq: null }
|
|
47
47
|
})
|
|
48
48
|
]);
|
|
49
|
-
return new
|
|
49
|
+
return new FormioMapper_js_1.FormioMapper({
|
|
50
50
|
forms: toMap(forms),
|
|
51
51
|
actions: toMap(actions),
|
|
52
52
|
roles: toMap(roles)
|
|
@@ -62,7 +62,7 @@ let FormioDatabase = class FormioDatabase {
|
|
|
62
62
|
return this.formModel
|
|
63
63
|
.findOne({
|
|
64
64
|
deleted: { $eq: null },
|
|
65
|
-
...((0,
|
|
65
|
+
...((0, isMongoId_js_1.isMongoId)(nameOrId)
|
|
66
66
|
? {
|
|
67
67
|
_id: nameOrId
|
|
68
68
|
}
|
|
@@ -132,7 +132,7 @@ let FormioDatabase = class FormioDatabase {
|
|
|
132
132
|
};
|
|
133
133
|
tslib_1.__decorate([
|
|
134
134
|
(0, di_1.Inject)(),
|
|
135
|
-
tslib_1.__metadata("design:type",
|
|
135
|
+
tslib_1.__metadata("design:type", FormioService_js_1.FormioService)
|
|
136
136
|
], FormioDatabase.prototype, "formio", void 0);
|
|
137
137
|
FormioDatabase = tslib_1.__decorate([
|
|
138
138
|
(0, di_1.Injectable)()
|