@tsed/formio 7.0.0-beta.2 → 7.0.0-beta.20
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 +14 -0
- package/lib/cjs/FormioModule.js +39 -35
- package/lib/cjs/FormioModule.js.map +1 -1
- package/lib/cjs/builder/FormioMapper.js +13 -4
- package/lib/cjs/builder/FormioMapper.js.map +1 -1
- package/lib/cjs/components/AlterActions.js +83 -32
- package/lib/cjs/components/AlterActions.js.map +1 -1
- package/lib/cjs/components/AlterAudit.js +1 -1
- package/lib/cjs/components/AlterAudit.js.map +1 -1
- package/lib/cjs/components/AlterHost.js +1 -1
- package/lib/cjs/components/AlterLog.js +1 -1
- package/lib/cjs/components/AlterSkip.js +7 -5
- package/lib/cjs/components/AlterSkip.js.map +1 -1
- package/lib/cjs/components/AlterTemplateExportSteps.js +6 -5
- package/lib/cjs/components/AlterTemplateExportSteps.js.map +1 -1
- package/lib/cjs/components/AlterTemplateImportSteps.js +6 -5
- package/lib/cjs/components/AlterTemplateImportSteps.js.map +1 -1
- package/lib/cjs/domain/FormioHooks.js.map +1 -1
- package/lib/cjs/domain/FormioModels.js +1 -1
- package/lib/cjs/domain/FormioModels.js.map +1 -1
- package/lib/cjs/domain/Resource.js.map +1 -1
- package/lib/cjs/index.js +46 -42
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/middlewares/FormioAuthMiddleware.js +9 -8
- package/lib/cjs/middlewares/FormioAuthMiddleware.js.map +1 -1
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/services/FormioAuthService.js +11 -8
- package/lib/cjs/services/FormioAuthService.js.map +1 -1
- package/lib/cjs/services/FormioDatabase.js +48 -10
- package/lib/cjs/services/FormioDatabase.js.map +1 -1
- package/lib/cjs/services/FormioHooksService.js +7 -5
- package/lib/cjs/services/FormioHooksService.js.map +1 -1
- package/lib/cjs/services/FormioInstaller.js +5 -10
- package/lib/cjs/services/FormioInstaller.js.map +1 -1
- package/lib/cjs/services/FormioRepository.js +44 -0
- package/lib/cjs/services/FormioRepository.js.map +1 -0
- package/lib/cjs/services/FormioService.js +15 -10
- package/lib/cjs/services/FormioService.js.map +1 -1
- package/lib/esm/FormioModule.js +29 -25
- package/lib/esm/FormioModule.js.map +1 -1
- package/lib/esm/builder/FormioMapper.js +13 -4
- package/lib/esm/builder/FormioMapper.js.map +1 -1
- package/lib/esm/components/AlterActions.js +81 -30
- package/lib/esm/components/AlterActions.js.map +1 -1
- package/lib/esm/components/AlterAudit.js +1 -1
- package/lib/esm/components/AlterAudit.js.map +1 -1
- package/lib/esm/components/AlterHost.js +1 -1
- package/lib/esm/components/AlterLog.js +1 -1
- package/lib/esm/components/AlterSkip.js +3 -1
- package/lib/esm/components/AlterSkip.js.map +1 -1
- package/lib/esm/components/AlterTemplateExportSteps.js +4 -3
- package/lib/esm/components/AlterTemplateExportSteps.js.map +1 -1
- package/lib/esm/components/AlterTemplateImportSteps.js +4 -3
- package/lib/esm/components/AlterTemplateImportSteps.js.map +1 -1
- package/lib/esm/decorators/useFormioAuth.js +1 -1
- package/lib/esm/domain/FormioHooks.js.map +1 -1
- package/lib/esm/domain/Resource.js.map +1 -1
- package/lib/esm/index.js +46 -42
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/middlewares/FormioAuthMiddleware.js +2 -1
- package/lib/esm/middlewares/FormioAuthMiddleware.js.map +1 -1
- package/lib/esm/package.json +3 -0
- package/lib/esm/services/FormioAuthService.js +7 -4
- package/lib/esm/services/FormioAuthService.js.map +1 -1
- package/lib/esm/services/FormioDatabase.js +48 -10
- package/lib/esm/services/FormioDatabase.js.map +1 -1
- package/lib/esm/services/FormioHooksService.js +3 -1
- package/lib/esm/services/FormioHooksService.js.map +1 -1
- package/lib/esm/services/FormioInstaller.js +3 -8
- package/lib/esm/services/FormioInstaller.js.map +1 -1
- package/lib/esm/services/FormioRepository.js +40 -0
- package/lib/esm/services/FormioRepository.js.map +1 -0
- package/lib/esm/services/FormioService.js +8 -3
- package/lib/esm/services/FormioService.js.map +1 -1
- package/lib/types/components/AlterActions.d.ts +7 -4
- package/lib/types/components/AlterAudit.d.ts +2 -2
- package/lib/types/domain/FormioHooks.d.ts +1 -1
- package/lib/types/domain/Resource.d.ts +2 -2
- package/lib/types/index.d.ts +22 -14
- package/lib/types/services/FormioAuthService.d.ts +33 -3
- package/lib/types/services/FormioDatabase.d.ts +64 -8
- package/lib/types/services/FormioInstaller.d.ts +0 -2
- package/lib/types/services/FormioRepository.d.ts +41 -0
- package/package.json +26 -17
- package/readme.md +8 -11
- package/tsconfig.compile.esm.json +1 -12
- package/.mocharc.js +0 -5
- package/.nycrc +0 -26
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import { Inject, Injectable, InjectorService } from "@tsed/common";
|
|
3
3
|
import { promisify } from "util";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import createRouter from "formio";
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import swagger from "formio/src/util/swagger.js";
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import util from "formio/src/util/util.js";
|
|
7
10
|
let FormioService = class FormioService {
|
|
11
|
+
router;
|
|
12
|
+
injector;
|
|
8
13
|
get audit() {
|
|
9
14
|
return this.formio.audit || (() => { });
|
|
10
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormioService.js","sourceRoot":"","sources":["../../../src/services/FormioService.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAE,eAAe,EAAC,MAAM,cAAc,CAAC;AAIjE,OAAO,EAAC,SAAS,EAAC,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"FormioService.js","sourceRoot":"","sources":["../../../src/services/FormioService.ts"],"names":[],"mappings":"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","sourcesContent":["import {Inject, Injectable, InjectorService} from \"@tsed/common\";\nimport {MongooseConnectionOptions} from \"@tsed/mongoose\";\nimport {Db} from \"mongodb\";\nimport {Mongoose} from \"mongoose\";\nimport {promisify} from \"util\";\nimport {Formio} from \"../domain/Formio\";\nimport {FormioConfig} from \"../domain/FormioConfig\";\nimport {FormioHook, FormioHooks} from \"../domain/FormioHooks\";\nimport {FormioSchemas} from \"../domain/FormioModels\";\nimport {FormioRouter} from \"../domain/FormioRouter\";\nimport {FormioTemplate} from \"../domain/FormioTemplate\";\nimport {FormioExportOptions} from \"../domain/FormioTemplateUtil\";\n// @ts-ignore\nimport createRouter from \"formio\";\n// @ts-ignore\nimport swagger from \"formio/src/util/swagger.js\";\n// @ts-ignore\nimport util from \"formio/src/util/util.js\";\n\n@Injectable()\nexport class FormioService {\n router: FormioRouter;\n\n @Inject()\n protected injector: InjectorService;\n\n get audit(): Function {\n return this.formio.audit || (() => {});\n }\n\n get auth() {\n return this.formio.auth;\n }\n\n // istanbul ignore next\n get swagger() {\n return (...args: any[]) => new Promise((resolve) => swagger(...args, resolve));\n }\n\n get config(): FormioConfig {\n return this.formio.config;\n }\n\n get db(): Db {\n return this.formio.db;\n }\n\n get resources() {\n return this.formio.resources;\n }\n\n get mongoose(): Mongoose {\n return this.formio.mongoose;\n }\n\n get middleware() {\n return this.formio.middleware;\n }\n\n get schemas(): FormioSchemas {\n return this.formio.schemas;\n }\n\n get formio(): Formio {\n return this.router.formio as Formio;\n }\n\n get hook(): FormioHook {\n return this.formio.hook;\n }\n\n get util() {\n return this.formio.util;\n }\n\n get template() {\n return this.formio.template;\n }\n\n get Action() {\n return this.formio.Action;\n }\n\n async exportTemplate(options: Partial<FormioExportOptions> = {}): Promise<FormioTemplate> {\n return promisify(this.formio.template.export)(options);\n }\n\n async importTemplate(template: FormioTemplate): Promise<FormioTemplate> {\n return promisify(this.formio.template.import.template)(template);\n }\n\n encrypt(text: string) {\n return promisify(this.formio.encrypt)(text);\n }\n\n isInit() {\n return !!this.router;\n }\n\n // istanbul ignore next\n public createRouter(options: FormioConfig) {\n return createRouter(options);\n }\n\n public init(options: FormioConfig, hooks: FormioHooks = {}) {\n if (options && Object.keys(options).length) {\n this.router = this.createRouter(this.mapConfiguration(options));\n this.bindLogger();\n\n return this.router.init(hooks);\n }\n }\n\n protected mapConfiguration(options: FormioConfig) {\n const {injector} = this;\n const mongooseSettings = injector.settings.get<MongooseConnectionOptions>(\"mongoose.0\");\n\n if (mongooseSettings) {\n options.mongo = options.mongo || mongooseSettings.url;\n options.mongoConfig = options.mongoConfig || JSON.stringify(mongooseSettings.connectionOptions);\n }\n\n return options;\n }\n\n protected bindLogger() {\n const {injector} = this;\n\n util.log = injector.logger.info.bind(injector.logger);\n util.error = injector.logger.error.bind(injector.logger);\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PlatformContext } from "@tsed/common";
|
|
2
1
|
import { InjectorService, Provider } from "@tsed/di";
|
|
2
|
+
import { PlatformParams } from "@tsed/platform-params";
|
|
3
|
+
import { PlatformResponseFilter } from "@tsed/platform-response-filter";
|
|
3
4
|
import { AlterHook } from "../domain/AlterHook";
|
|
4
5
|
import { SetActionItemMessage } from "../domain/FormioAction";
|
|
5
6
|
import { FormioActions } from "../domain/FormioActionsIndex";
|
|
@@ -7,9 +8,11 @@ import { FormioService } from "../services/FormioService";
|
|
|
7
8
|
export declare class AlterActions implements AlterHook {
|
|
8
9
|
protected injector: InjectorService;
|
|
9
10
|
protected formio: FormioService;
|
|
11
|
+
protected params: PlatformParams;
|
|
12
|
+
protected responseFilter: PlatformResponseFilter;
|
|
10
13
|
transform(actions: FormioActions): FormioActions;
|
|
11
14
|
protected getActions(): Provider<any>[];
|
|
12
|
-
protected
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
protected createHandler(provider: Provider, propertyKey: string | symbol): (action: any, handler: string, method: string, req: any, res: any, next: any, setActionItemMessage: SetActionItemMessage) => Promise<void>;
|
|
16
|
+
private onRequest;
|
|
17
|
+
private flush;
|
|
15
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DIContext } from "@tsed/di";
|
|
2
2
|
import { AlterHook } from "../domain/AlterHook";
|
|
3
3
|
export declare class AlterAudit implements AlterHook {
|
|
4
|
-
transform(info: any[], event: string, ctx:
|
|
4
|
+
transform(info: any[], event: string, ctx: DIContext): boolean;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongooseDocument } from "@tsed/mongoose";
|
|
2
|
-
import { Request } from "express";
|
|
2
|
+
import { Request, Response } from "express";
|
|
3
3
|
import { FilterQuery, Schema, SchemaDefinition } from "mongoose";
|
|
4
4
|
import { Formio } from "./Formio";
|
|
5
5
|
import { FormioActions } from "./FormioActionsIndex";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare type ResourceHttpHandler = (req: Request, res: Response, next:
|
|
1
|
+
import { Request, Response, NextFunction } from "express";
|
|
2
|
+
export declare type ResourceHttpHandler = (req: Request, res: Response, next: NextFunction) => void;
|
|
3
3
|
export interface ResourceHttpMethodOptions {
|
|
4
4
|
before?: ResourceHttpHandler;
|
|
5
5
|
after?: ResourceHttpHandler;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,38 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
4
|
+
export * from "./FormioModule";
|
|
5
|
+
export * from "./builder/FormioMapper";
|
|
6
|
+
export * from "./components/AlterActions";
|
|
7
|
+
export * from "./components/AlterAudit";
|
|
8
|
+
export * from "./components/AlterHost";
|
|
9
|
+
export * from "./components/AlterLog";
|
|
10
|
+
export * from "./components/AlterSkip";
|
|
11
|
+
export * from "./components/AlterTemplateExportSteps";
|
|
12
|
+
export * from "./components/AlterTemplateImportSteps";
|
|
1
13
|
export * from "./decorators/action";
|
|
2
14
|
export * from "./decorators/actionCtx";
|
|
3
15
|
export * from "./decorators/alter";
|
|
4
16
|
export * from "./decorators/on";
|
|
5
17
|
export * from "./decorators/useFormioAuth";
|
|
6
|
-
export * from "./middlewares/FormioAuthMiddleware";
|
|
7
18
|
export * from "./domain/AlterHook";
|
|
8
19
|
export * from "./domain/Formio";
|
|
9
|
-
export * from "./domain/FormioDecodedToken";
|
|
10
20
|
export * from "./domain/FormioAction";
|
|
11
21
|
export * from "./domain/FormioActionsIndex";
|
|
12
22
|
export * from "./domain/FormioAuth";
|
|
13
23
|
export * from "./domain/FormioBaseModel";
|
|
14
24
|
export * from "./domain/FormioConfig";
|
|
15
25
|
export * from "./domain/FormioCtxMapper";
|
|
26
|
+
export * from "./domain/FormioDecodedToken";
|
|
16
27
|
export * from "./domain/FormioErrors";
|
|
17
28
|
export * from "./domain/FormioHooks";
|
|
18
29
|
export * from "./domain/FormioJs";
|
|
19
30
|
export * from "./domain/FormioModels";
|
|
20
31
|
export * from "./domain/FormioRouter";
|
|
21
32
|
export * from "./domain/FormioSettings";
|
|
22
|
-
export * from "./domain/FormioUpdate";
|
|
23
|
-
export * from "./domain/FormioUtils";
|
|
24
33
|
export * from "./domain/FormioTemplate";
|
|
25
34
|
export * from "./domain/FormioTemplateUtil";
|
|
35
|
+
export * from "./domain/FormioUpdate";
|
|
36
|
+
export * from "./domain/FormioUtils";
|
|
26
37
|
export * from "./domain/OnHook";
|
|
27
|
-
export * from "./
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./services/FormioService";
|
|
30
|
-
export * from "./services/FormioDatabase";
|
|
31
|
-
export * from "./services/FormioDatabase";
|
|
38
|
+
export * from "./domain/Resource";
|
|
39
|
+
export * from "./middlewares/FormioAuthMiddleware";
|
|
32
40
|
export * from "./services/FormioAuthService";
|
|
41
|
+
export * from "./services/FormioDatabase";
|
|
33
42
|
export * from "./services/FormioHooksService";
|
|
34
|
-
export * from "./
|
|
35
|
-
export * from "./
|
|
36
|
-
export * from "./
|
|
37
|
-
export * from "./
|
|
38
|
-
export * from "./components/AlterSkip";
|
|
43
|
+
export * from "./services/FormioInstaller";
|
|
44
|
+
export * from "./services/FormioRepository";
|
|
45
|
+
export * from "./services/FormioService";
|
|
46
|
+
export * from "./utils/isMongoId";
|
|
@@ -1,4 +1,28 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
1
24
|
/// <reference types="mongoose" />
|
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
2
26
|
import { PlatformContext, Req } from "@tsed/common";
|
|
3
27
|
import { FormioPayloadToken } from "../domain/FormioDecodedToken";
|
|
4
28
|
import { FormioSubmission, WithID } from "../domain/FormioModels";
|
|
@@ -33,19 +57,25 @@ export declare class FormioAuthService {
|
|
|
33
57
|
* Retrieve roles
|
|
34
58
|
* @param req
|
|
35
59
|
*/
|
|
36
|
-
getRoles(req?: Req): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any,
|
|
60
|
+
getRoles(req?: Req): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & import("@tsed/formio-types/lib/types/domain/FormioRole").FormioRole & import("@tsed/mongoose").MongooseDocumentMethods<import("@tsed/formio-types/lib/types/domain/FormioRole").FormioRole>> & {
|
|
61
|
+
_id: import("mongoose").Types.ObjectId;
|
|
62
|
+
}>[]>;
|
|
37
63
|
/**
|
|
38
64
|
* Update the role of the current user submission
|
|
39
65
|
* @param _id
|
|
40
66
|
* @param role
|
|
41
67
|
* @param req
|
|
42
68
|
*/
|
|
43
|
-
updateUserRole(_id: string | any, role: string, req?: Req): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any,
|
|
69
|
+
updateUserRole(_id: string | any, role: string, req?: Req): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>> & {
|
|
70
|
+
_id: import("mongoose").Types.ObjectId;
|
|
71
|
+
}>;
|
|
44
72
|
/**
|
|
45
73
|
* Create a user submission in formio
|
|
46
74
|
* @param user
|
|
47
75
|
*/
|
|
48
|
-
createUser<User = any>(user: Partial<FormioSubmission<User>>): Promise<import("mongoose").LeanDocument<
|
|
76
|
+
createUser<User = any>(user: Partial<FormioSubmission<User>>): Promise<import("mongoose").LeanDocument<any> & Required<{
|
|
77
|
+
_id: unknown;
|
|
78
|
+
}>>;
|
|
49
79
|
/**
|
|
50
80
|
* Update user submission in formio
|
|
51
81
|
* @param user
|
|
@@ -1,13 +1,35 @@
|
|
|
1
|
-
/// <reference types="mongoose" />
|
|
2
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { MongooseDocument, MongooseModel } from "@tsed/mongoose";
|
|
26
|
+
import type { FilterQuery } from "mongoose";
|
|
3
27
|
import { FormioAction, FormioActionItem, FormioForm, FormioRole, FormioSubmission, FormioToken } from "@tsed/formio-types";
|
|
4
28
|
import { FormioMapper } from "../builder/FormioMapper";
|
|
5
29
|
import { FormioService } from "./FormioService";
|
|
6
30
|
export declare class FormioDatabase {
|
|
7
31
|
protected formio: FormioService;
|
|
8
|
-
get models():
|
|
9
|
-
[index: string]: import("mongoose").Model<any, {}>;
|
|
10
|
-
};
|
|
32
|
+
get models(): import("mongoose").Models;
|
|
11
33
|
get roleModel(): MongooseModel<FormioRole>;
|
|
12
34
|
get formModel(): MongooseModel<FormioForm>;
|
|
13
35
|
get actionModel(): MongooseModel<FormioAction>;
|
|
@@ -17,8 +39,42 @@ export declare class FormioDatabase {
|
|
|
17
39
|
getFormioMapper(): Promise<FormioMapper>;
|
|
18
40
|
hasForms(): Promise<boolean>;
|
|
19
41
|
hasForm(name: string): Promise<boolean>;
|
|
20
|
-
getForm(nameOrId: string): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any,
|
|
21
|
-
|
|
22
|
-
|
|
42
|
+
getForm(nameOrId: string): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>> & {
|
|
43
|
+
_id: import("mongoose").Types.ObjectId;
|
|
44
|
+
}> | null>;
|
|
45
|
+
/**
|
|
46
|
+
* Import form previously exported by export tool.
|
|
47
|
+
* This method transform alias to a real mongoose _id
|
|
48
|
+
* @param form
|
|
49
|
+
* @param onCreate
|
|
50
|
+
*/
|
|
51
|
+
importFormIfNotExists(form: FormioForm, onCreate?: (form: FormioForm) => any): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>> & {
|
|
52
|
+
_id: import("mongoose").Types.ObjectId;
|
|
53
|
+
}> | null>;
|
|
54
|
+
/**
|
|
55
|
+
* Import form previously exported by export tool.
|
|
56
|
+
* This method transform alias to a real mongoose _id
|
|
57
|
+
* @param form
|
|
58
|
+
*/
|
|
59
|
+
importForm(form: FormioForm): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>> & {
|
|
60
|
+
_id: import("mongoose").Types.ObjectId;
|
|
61
|
+
}>;
|
|
62
|
+
saveForm(form: FormioForm): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>> & {
|
|
63
|
+
_id: import("mongoose").Types.ObjectId;
|
|
64
|
+
}>;
|
|
65
|
+
getSubmissions<Data>(query?: FilterQuery<MongooseModel<FormioSubmission<Data>>>): Promise<MongooseDocument<FormioSubmission<Data>>[]>;
|
|
66
|
+
/**
|
|
67
|
+
* Import submission previously exported by export tool.
|
|
68
|
+
* This method transform alias to a real mongoose _id
|
|
69
|
+
* @param submission
|
|
70
|
+
*/
|
|
71
|
+
importSubmission<Data = any>(submission: Omit<Partial<FormioSubmission<Data>>, "form"> & {
|
|
72
|
+
form?: any;
|
|
73
|
+
}): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>> & {
|
|
74
|
+
_id: import("mongoose").Types.ObjectId;
|
|
75
|
+
}>;
|
|
76
|
+
saveSubmission<Data = any>(submission: Partial<FormioSubmission<Data>>): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>> & {
|
|
77
|
+
_id: import("mongoose").Types.ObjectId;
|
|
78
|
+
}>;
|
|
23
79
|
idToBson(form?: any): any;
|
|
24
80
|
}
|
|
@@ -2,9 +2,7 @@ import { Logger } from "@tsed/logger";
|
|
|
2
2
|
import { FormioSubmission } from "../domain/FormioModels";
|
|
3
3
|
import { FormioTemplate } from "../domain/FormioTemplate";
|
|
4
4
|
import { FormioDatabase } from "./FormioDatabase";
|
|
5
|
-
import { FormioService } from "./FormioService";
|
|
6
5
|
export declare class FormioInstaller extends FormioDatabase {
|
|
7
|
-
protected formio: FormioService;
|
|
8
6
|
protected logger: Logger;
|
|
9
7
|
install(template: FormioTemplate, root: any): Promise<void>;
|
|
10
8
|
createRootUser<User = unknown>(user: {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import type { FilterQuery } from "mongoose";
|
|
26
|
+
import { MongooseDocument, MongooseModel } from "@tsed/mongoose";
|
|
27
|
+
import { FormioSubmission } from "../domain/FormioModels";
|
|
28
|
+
import { FormioDatabase } from "./FormioDatabase";
|
|
29
|
+
export declare abstract class FormioRepository<SubmissionData = any> {
|
|
30
|
+
protected formioDatabase: FormioDatabase;
|
|
31
|
+
protected abstract formName: string;
|
|
32
|
+
private formId;
|
|
33
|
+
getFormId(): Promise<string>;
|
|
34
|
+
saveSubmission(submission: Omit<Partial<FormioSubmission<SubmissionData>>, "form"> & {
|
|
35
|
+
form?: any;
|
|
36
|
+
}): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>> & {
|
|
37
|
+
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
}>;
|
|
39
|
+
getSubmissions(query?: FilterQuery<MongooseModel<FormioSubmission<SubmissionData>>>): Promise<MongooseDocument<FormioSubmission<SubmissionData>>[]>;
|
|
40
|
+
findOneSubmission(query: any): Promise<MongooseDocument<FormioSubmission<SubmissionData>> | undefined>;
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/formio",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.20",
|
|
4
4
|
"description": "Formio package for Ts.ED framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"source": "./src/index.ts",
|
|
15
15
|
"main": "./lib/cjs/index.js",
|
|
16
|
+
"module": "./lib/esm/index.js",
|
|
16
17
|
"typings": "./lib/types/index.d.ts",
|
|
17
18
|
"exports": {
|
|
18
19
|
"types": "./lib/types/index.d.ts",
|
|
@@ -21,41 +22,49 @@
|
|
|
21
22
|
"default": "./lib/esm/index.js"
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
|
-
"build": "yarn run build:esm && yarn run build:cjs",
|
|
25
|
+
"build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
|
|
25
26
|
"build:cjs": "tsc --build tsconfig.compile.json",
|
|
26
27
|
"build:esm": "tsc --build tsconfig.compile.esm.json",
|
|
28
|
+
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
|
|
27
29
|
"start": "ts-node -r tsconfig-paths/register test/app/index.ts",
|
|
28
|
-
"test": "cross-env NODE_ENV=test
|
|
30
|
+
"test": "cross-env NODE_ENV=test yarn jest --max-workers=2"
|
|
29
31
|
},
|
|
30
32
|
"dependencies": {
|
|
31
|
-
"@tsed/formio-types": "7.0.0-beta.
|
|
32
|
-
"tslib": "2.
|
|
33
|
+
"@tsed/formio-types": "7.0.0-beta.20",
|
|
34
|
+
"tslib": "2.4.0"
|
|
33
35
|
},
|
|
34
36
|
"devDependencies": {
|
|
35
|
-
"@tsed/common": "7.0.0-beta.
|
|
36
|
-
"@tsed/core": "7.0.0-beta.
|
|
37
|
-
"@tsed/di": "7.0.0-beta.
|
|
38
|
-
"@tsed/mongoose": "7.0.0-beta.
|
|
37
|
+
"@tsed/common": "7.0.0-beta.20",
|
|
38
|
+
"@tsed/core": "7.0.0-beta.20",
|
|
39
|
+
"@tsed/di": "7.0.0-beta.20",
|
|
40
|
+
"@tsed/mongoose": "7.0.0-beta.20",
|
|
41
|
+
"@types/async": "3.2.12",
|
|
39
42
|
"express": "^4.17.1",
|
|
40
43
|
"formio": "^2.0.0",
|
|
41
44
|
"mongodb": "*",
|
|
42
|
-
"mongoose": "^
|
|
45
|
+
"mongoose": "^6.1.7"
|
|
43
46
|
},
|
|
44
47
|
"peerDependencies": {
|
|
45
|
-
"@tsed/common": "^7.0.0-beta.
|
|
46
|
-
"@tsed/core": "^7.0.0-beta.2",
|
|
47
|
-
"@tsed/di": "^7.0.0-beta.2",
|
|
48
|
-
"@tsed/mongoose": "^7.0.0-beta.2",
|
|
48
|
+
"@tsed/common": "^7.0.0-beta.20",
|
|
49
49
|
"express": "^4.17.1",
|
|
50
50
|
"formio": "^2.0.0",
|
|
51
|
+
"lodash": "^4.17.21",
|
|
51
52
|
"mongodb": "*",
|
|
52
|
-
"mongoose": "^
|
|
53
|
+
"mongoose": "^6.1.7"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@tsed/common": {
|
|
57
|
+
"optional": false
|
|
58
|
+
}
|
|
53
59
|
},
|
|
54
60
|
"repository": "https://github.com/tsedio/tsed",
|
|
55
61
|
"bugs": {
|
|
56
62
|
"url": "https://github.com/tsedio/tsed/issues"
|
|
57
63
|
},
|
|
58
|
-
"homepage": "https://github.com/tsedio/tsed/tree/
|
|
64
|
+
"homepage": "https://github.com/tsedio/tsed/tree/beta/packages/third-parties/formio",
|
|
59
65
|
"author": "Romain Lenzotti",
|
|
60
|
-
"license": "MIT"
|
|
66
|
+
"license": "MIT",
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"tag": "beta"
|
|
69
|
+
}
|
|
61
70
|
}
|
package/readme.md
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
[](https://badge.fury.io/js/%40tsed%2Fcommon)
|
|
12
12
|
[](https://github.com/semantic-release/semantic-release)
|
|
13
13
|
[](https://github.com/prettier/prettier)
|
|
14
|
-
[](https://github.com/sponsors/romakita)
|
|
15
|
+
[](https://opencollective.com/tsed)
|
|
15
16
|
|
|
16
17
|
</div>
|
|
17
18
|
|
|
@@ -32,7 +33,7 @@ A package of Ts.ED framework. See website: https://tsed.io/tutorials/formio.html
|
|
|
32
33
|
## Feature
|
|
33
34
|
|
|
34
35
|
Currently, `@tsed/formio` allows you:
|
|
35
|
-
|
|
36
|
+
|
|
36
37
|
- Configure formio project
|
|
37
38
|
- Register Hook
|
|
38
39
|
- Register Actions
|
|
@@ -50,30 +51,26 @@ Then import `@tsed/formio` in your Server:
|
|
|
50
51
|
|
|
51
52
|
```typescript
|
|
52
53
|
import {Configuration, PlatformApplication} from "@tsed/common";
|
|
53
|
-
import "@tsed/formio";
|
|
54
|
+
import "@tsed/formio";
|
|
54
55
|
|
|
55
56
|
@Configuration({
|
|
56
|
-
formio: {
|
|
57
|
-
}
|
|
57
|
+
formio: {}
|
|
58
58
|
})
|
|
59
|
-
export class Server {
|
|
60
|
-
|
|
61
|
-
}
|
|
59
|
+
export class Server {}
|
|
62
60
|
```
|
|
63
61
|
|
|
64
62
|
## Contributors
|
|
63
|
+
|
|
65
64
|
Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)
|
|
66
65
|
|
|
67
66
|
<a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
|
|
68
67
|
|
|
69
|
-
|
|
70
68
|
## Backers
|
|
71
69
|
|
|
72
70
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
|
|
73
71
|
|
|
74
72
|
<a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/backers.svg?width=890"></a>
|
|
75
73
|
|
|
76
|
-
|
|
77
74
|
## Sponsors
|
|
78
75
|
|
|
79
76
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
|
|
@@ -82,7 +79,7 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
|
|
|
82
79
|
|
|
83
80
|
The MIT License (MIT)
|
|
84
81
|
|
|
85
|
-
Copyright (c) 2016 -
|
|
82
|
+
Copyright (c) 2016 - 2022 Romain Lenzotti
|
|
86
83
|
|
|
87
84
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
88
85
|
|
|
@@ -8,16 +8,5 @@
|
|
|
8
8
|
"declaration": true,
|
|
9
9
|
"declarationDir": "./lib/types"
|
|
10
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
|
-
]
|
|
11
|
+
"exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
|
|
23
12
|
}
|
package/.mocharc.js
DELETED
package/.nycrc
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": [
|
|
3
|
-
"src/**/*.ts"
|
|
4
|
-
],
|
|
5
|
-
"exclude": [
|
|
6
|
-
"**/*.d.ts",
|
|
7
|
-
"node_modules",
|
|
8
|
-
"**/interfaces/**",
|
|
9
|
-
"**/index.ts"
|
|
10
|
-
],
|
|
11
|
-
"extension": [
|
|
12
|
-
".ts"
|
|
13
|
-
],
|
|
14
|
-
"require": [],
|
|
15
|
-
"reporter": [
|
|
16
|
-
"text-summary",
|
|
17
|
-
"html",
|
|
18
|
-
"lcov",
|
|
19
|
-
"json"
|
|
20
|
-
],
|
|
21
|
-
"check-coverage": true,
|
|
22
|
-
"statements": 99.61,
|
|
23
|
-
"branches": 81.2,
|
|
24
|
-
"functions": 96.99,
|
|
25
|
-
"lines": 99.59
|
|
26
|
-
}
|