@tsed/formio 7.70.2 → 7.71.1
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Request, Response } from "express";
|
|
2
|
-
import { FormioErrors } from "./FormioErrors";
|
|
3
|
-
import { FormioJs } from "./FormioJs";
|
|
2
|
+
import { FormioErrors } from "./FormioErrors.js";
|
|
3
|
+
import { FormioJs } from "./FormioJs.js";
|
|
4
4
|
export interface FormioUtil {
|
|
5
5
|
Formio: FormioJs;
|
|
6
6
|
/**
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file Automatically generated by
|
|
2
|
+
* @file Automatically generated by @tsed/barrels.
|
|
3
3
|
*/
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./components/
|
|
7
|
-
export * from "./components/
|
|
8
|
-
export * from "./components/
|
|
9
|
-
export * from "./components/
|
|
10
|
-
export * from "./components/
|
|
11
|
-
export * from "./components/
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./decorators/
|
|
14
|
-
export * from "./decorators/
|
|
15
|
-
export * from "./decorators/
|
|
16
|
-
export * from "./decorators/
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./domain/
|
|
19
|
-
export * from "./domain/
|
|
20
|
-
export * from "./domain/
|
|
21
|
-
export * from "./domain/
|
|
22
|
-
export * from "./domain/
|
|
23
|
-
export * from "./domain/
|
|
24
|
-
export * from "./domain/
|
|
25
|
-
export * from "./domain/
|
|
26
|
-
export * from "./domain/
|
|
27
|
-
export * from "./domain/
|
|
28
|
-
export * from "./domain/
|
|
29
|
-
export * from "./domain/
|
|
30
|
-
export * from "./domain/
|
|
31
|
-
export * from "./domain/
|
|
32
|
-
export * from "./domain/
|
|
33
|
-
export * from "./domain/
|
|
34
|
-
export * from "./domain/
|
|
35
|
-
export * from "./domain/
|
|
36
|
-
export * from "./domain/
|
|
37
|
-
export * from "./domain/
|
|
38
|
-
export * from "./
|
|
39
|
-
export * from "./middlewares/FormioAuthMiddleware";
|
|
40
|
-
export * from "./services/FormioAuthService";
|
|
41
|
-
export * from "./services/FormioDatabase";
|
|
42
|
-
export * from "./services/FormioHooksService";
|
|
43
|
-
export * from "./services/FormioInstaller";
|
|
44
|
-
export * from "./services/FormioRepository";
|
|
45
|
-
export * from "./services/FormioService";
|
|
46
|
-
export * from "./utils/isMongoId";
|
|
4
|
+
export * from "./builder/FormioMapper.js";
|
|
5
|
+
export * from "./components/AlterActions.js";
|
|
6
|
+
export * from "./components/AlterAudit.js";
|
|
7
|
+
export * from "./components/AlterHost.js";
|
|
8
|
+
export * from "./components/AlterLog.js";
|
|
9
|
+
export * from "./components/AlterSkip.js";
|
|
10
|
+
export * from "./components/AlterTemplateExportSteps.js";
|
|
11
|
+
export * from "./components/AlterTemplateImportSteps.js";
|
|
12
|
+
export * from "./decorators/action.js";
|
|
13
|
+
export * from "./decorators/actionCtx.js";
|
|
14
|
+
export * from "./decorators/alter.js";
|
|
15
|
+
export * from "./decorators/on.js";
|
|
16
|
+
export * from "./decorators/useFormioAuth.js";
|
|
17
|
+
export * from "./domain/AlterHook.js";
|
|
18
|
+
export * from "./domain/Formio.js";
|
|
19
|
+
export * from "./domain/FormioAction.js";
|
|
20
|
+
export * from "./domain/FormioActionsIndex.js";
|
|
21
|
+
export * from "./domain/FormioAuth.js";
|
|
22
|
+
export * from "./domain/FormioBaseModel.js";
|
|
23
|
+
export * from "./domain/FormioConfig.js";
|
|
24
|
+
export * from "./domain/FormioCtxMapper.js";
|
|
25
|
+
export * from "./domain/FormioDecodedToken.js";
|
|
26
|
+
export * from "./domain/FormioErrors.js";
|
|
27
|
+
export * from "./domain/FormioHooks.js";
|
|
28
|
+
export * from "./domain/FormioJs.js";
|
|
29
|
+
export * from "./domain/FormioModels.js";
|
|
30
|
+
export * from "./domain/FormioRouter.js";
|
|
31
|
+
export * from "./domain/FormioSettings.js";
|
|
32
|
+
export * from "./domain/FormioTemplate.js";
|
|
33
|
+
export * from "./domain/FormioTemplateUtil.js";
|
|
34
|
+
export * from "./domain/FormioUpdate.js";
|
|
35
|
+
export * from "./domain/FormioUtils.js";
|
|
36
|
+
export * from "./domain/OnHook.js";
|
|
37
|
+
export * from "./domain/Resource.js";
|
|
38
|
+
export * from "./FormioModule.js";
|
|
39
|
+
export * from "./middlewares/FormioAuthMiddleware.js";
|
|
40
|
+
export * from "./services/FormioAuthService.js";
|
|
41
|
+
export * from "./services/FormioDatabase.js";
|
|
42
|
+
export * from "./services/FormioHooksService.js";
|
|
43
|
+
export * from "./services/FormioInstaller.js";
|
|
44
|
+
export * from "./services/FormioRepository.js";
|
|
45
|
+
export * from "./services/FormioService.js";
|
|
46
|
+
export * from "./utils/isMongoId.js";
|
|
@@ -1,34 +1,34 @@
|
|
|
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
|
+
/// <reference types="mongoose/types/aggregate.js" />
|
|
2
|
+
/// <reference types="mongoose/types/callback.js" />
|
|
3
|
+
/// <reference types="mongoose/types/collection.js" />
|
|
4
|
+
/// <reference types="mongoose/types/connection.js" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor.js" />
|
|
6
|
+
/// <reference types="mongoose/types/document.js" />
|
|
7
|
+
/// <reference types="mongoose/types/error.js" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions.js" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers.js" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares.js" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes.js" />
|
|
12
|
+
/// <reference types="mongoose/types/models.js" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions.js" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage.js" />
|
|
15
|
+
/// <reference types="mongoose/types/populate.js" />
|
|
16
|
+
/// <reference types="mongoose/types/query.js" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions.js" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes.js" />
|
|
19
|
+
/// <reference types="mongoose/types/session.js" />
|
|
20
|
+
/// <reference types="mongoose/types/types.js" />
|
|
21
|
+
/// <reference types="mongoose/types/utility.js" />
|
|
22
|
+
/// <reference types="mongoose/types/validation.js" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals.js" />
|
|
24
24
|
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferschematype.js" />
|
|
26
26
|
import { PlatformContext, Req } from "@tsed/common";
|
|
27
|
-
import { FormioPayloadToken } from "../domain/FormioDecodedToken";
|
|
28
|
-
import { FormioSubmission, WithID } from "../domain/FormioModels";
|
|
29
|
-
import { FormioDatabase } from "./FormioDatabase";
|
|
30
|
-
import { FormioHooksService } from "./FormioHooksService";
|
|
31
|
-
import { FormioService } from "./FormioService";
|
|
27
|
+
import { FormioPayloadToken } from "../domain/FormioDecodedToken.js";
|
|
28
|
+
import { FormioSubmission, WithID } from "../domain/FormioModels.js";
|
|
29
|
+
import { FormioDatabase } from "./FormioDatabase.js";
|
|
30
|
+
import { FormioHooksService } from "./FormioHooksService.js";
|
|
31
|
+
import { FormioService } from "./FormioService.js";
|
|
32
32
|
export declare class FormioAuthService {
|
|
33
33
|
formio: FormioService;
|
|
34
34
|
hooks: FormioHooksService;
|
|
@@ -57,7 +57,7 @@ export declare class FormioAuthService {
|
|
|
57
57
|
* Retrieve roles
|
|
58
58
|
* @param req
|
|
59
59
|
*/
|
|
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>> & {
|
|
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.js").FormioRole & import("@tsed/mongoose").MongooseDocumentMethods<import("@tsed/formio-types/lib/types/domain/FormioRole.js").FormioRole>> & {
|
|
61
61
|
_id: import("mongoose").Types.ObjectId;
|
|
62
62
|
}>[]>;
|
|
63
63
|
/**
|
|
@@ -1,32 +1,32 @@
|
|
|
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" />
|
|
1
|
+
/// <reference types="mongoose/types/aggregate.js" />
|
|
2
|
+
/// <reference types="mongoose/types/callback.js" />
|
|
3
|
+
/// <reference types="mongoose/types/collection.js" />
|
|
4
|
+
/// <reference types="mongoose/types/connection.js" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor.js" />
|
|
6
|
+
/// <reference types="mongoose/types/document.js" />
|
|
7
|
+
/// <reference types="mongoose/types/error.js" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions.js" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers.js" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares.js" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes.js" />
|
|
12
|
+
/// <reference types="mongoose/types/models.js" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions.js" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage.js" />
|
|
15
|
+
/// <reference types="mongoose/types/populate.js" />
|
|
16
|
+
/// <reference types="mongoose/types/query.js" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions.js" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes.js" />
|
|
19
|
+
/// <reference types="mongoose/types/session.js" />
|
|
20
|
+
/// <reference types="mongoose/types/types.js" />
|
|
21
|
+
/// <reference types="mongoose/types/utility.js" />
|
|
22
|
+
/// <reference types="mongoose/types/validation.js" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals.js" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype.js" />
|
|
25
25
|
import { MongooseDocument, MongooseModel } from "@tsed/mongoose";
|
|
26
26
|
import type { FilterQuery } from "mongoose";
|
|
27
27
|
import { FormioAction, FormioActionItem, FormioForm, FormioRole, FormioSubmission, FormioToken } from "@tsed/formio-types";
|
|
28
|
-
import { FormioMapper } from "../builder/FormioMapper";
|
|
29
|
-
import { FormioService } from "./FormioService";
|
|
28
|
+
import { FormioMapper } from "../builder/FormioMapper.js";
|
|
29
|
+
import { FormioService } from "./FormioService.js";
|
|
30
30
|
export declare class FormioDatabase {
|
|
31
31
|
protected formio: FormioService;
|
|
32
32
|
get models(): import("mongoose").Models;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectorService } from "@tsed/common";
|
|
2
|
-
import { FormioHooks } from "../domain/FormioHooks";
|
|
3
|
-
import { FormioService } from "./FormioService";
|
|
2
|
+
import { FormioHooks } from "../domain/FormioHooks.js";
|
|
3
|
+
import { FormioService } from "./FormioService.js";
|
|
4
4
|
import { Request } from "express";
|
|
5
5
|
export declare class FormioHooksService {
|
|
6
6
|
protected injector: InjectorService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from "@tsed/logger";
|
|
2
|
-
import { FormioSubmission } from "../domain/FormioModels";
|
|
3
|
-
import { FormioTemplate } from "../domain/FormioTemplate";
|
|
4
|
-
import { FormioDatabase } from "./FormioDatabase";
|
|
2
|
+
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
3
|
+
import { FormioTemplate } from "../domain/FormioTemplate.js";
|
|
4
|
+
import { FormioDatabase } from "./FormioDatabase.js";
|
|
5
5
|
export declare class FormioInstaller extends FormioDatabase {
|
|
6
6
|
protected logger: Logger;
|
|
7
7
|
install(template: FormioTemplate, root: any): Promise<void>;
|
|
@@ -1,31 +1,31 @@
|
|
|
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" />
|
|
1
|
+
/// <reference types="mongoose/types/aggregate.js" />
|
|
2
|
+
/// <reference types="mongoose/types/callback.js" />
|
|
3
|
+
/// <reference types="mongoose/types/collection.js" />
|
|
4
|
+
/// <reference types="mongoose/types/connection.js" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor.js" />
|
|
6
|
+
/// <reference types="mongoose/types/document.js" />
|
|
7
|
+
/// <reference types="mongoose/types/error.js" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions.js" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers.js" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares.js" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes.js" />
|
|
12
|
+
/// <reference types="mongoose/types/models.js" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions.js" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage.js" />
|
|
15
|
+
/// <reference types="mongoose/types/populate.js" />
|
|
16
|
+
/// <reference types="mongoose/types/query.js" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions.js" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes.js" />
|
|
19
|
+
/// <reference types="mongoose/types/session.js" />
|
|
20
|
+
/// <reference types="mongoose/types/types.js" />
|
|
21
|
+
/// <reference types="mongoose/types/utility.js" />
|
|
22
|
+
/// <reference types="mongoose/types/validation.js" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals.js" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype.js" />
|
|
25
25
|
import type { FilterQuery } from "mongoose";
|
|
26
26
|
import { MongooseDocument, MongooseModel } from "@tsed/mongoose";
|
|
27
|
-
import { FormioSubmission } from "../domain/FormioModels";
|
|
28
|
-
import { FormioDatabase } from "./FormioDatabase";
|
|
27
|
+
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
28
|
+
import { FormioDatabase } from "./FormioDatabase.js";
|
|
29
29
|
export declare abstract class FormioRepository<SubmissionData = any> {
|
|
30
30
|
protected formioDatabase: FormioDatabase;
|
|
31
31
|
protected abstract formName: string;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { InjectorService } from "@tsed/common";
|
|
2
2
|
import { Db } from "mongodb";
|
|
3
3
|
import { Mongoose } from "mongoose";
|
|
4
|
-
import { Formio } from "../domain/Formio";
|
|
5
|
-
import { FormioConfig } from "../domain/FormioConfig";
|
|
6
|
-
import { FormioHook, FormioHooks } from "../domain/FormioHooks";
|
|
7
|
-
import { FormioSchemas } from "../domain/FormioModels";
|
|
8
|
-
import { FormioRouter } from "../domain/FormioRouter";
|
|
9
|
-
import { FormioTemplate } from "../domain/FormioTemplate";
|
|
10
|
-
import { FormioExportOptions } from "../domain/FormioTemplateUtil";
|
|
4
|
+
import { Formio } from "../domain/Formio.js";
|
|
5
|
+
import { FormioConfig } from "../domain/FormioConfig.js";
|
|
6
|
+
import { FormioHook, FormioHooks } from "../domain/FormioHooks.js";
|
|
7
|
+
import { FormioSchemas } from "../domain/FormioModels.js";
|
|
8
|
+
import { FormioRouter } from "../domain/FormioRouter.js";
|
|
9
|
+
import { FormioTemplate } from "../domain/FormioTemplate.js";
|
|
10
|
+
import { FormioExportOptions } from "../domain/FormioTemplateUtil.js";
|
|
11
11
|
export declare class FormioService {
|
|
12
12
|
router: FormioRouter;
|
|
13
13
|
protected injector: InjectorService;
|
|
14
14
|
get audit(): Function;
|
|
15
|
-
get auth(): import("
|
|
15
|
+
get auth(): import("../index.js").FormioAuth;
|
|
16
16
|
get swagger(): (...args: any[]) => Promise<unknown>;
|
|
17
17
|
get config(): FormioConfig;
|
|
18
18
|
get db(): Db;
|
|
19
19
|
get resources(): any;
|
|
20
20
|
get mongoose(): Mongoose;
|
|
21
|
-
get middleware(): import("../domain/Formio").FormioMiddlewares;
|
|
21
|
+
get middleware(): import("../domain/Formio.js").FormioMiddlewares;
|
|
22
22
|
get schemas(): FormioSchemas;
|
|
23
23
|
get formio(): Formio;
|
|
24
24
|
get hook(): FormioHook;
|
|
25
|
-
get util(): import("
|
|
26
|
-
get template(): import("../domain/FormioTemplateUtil").FormioTemplateUtil;
|
|
27
|
-
get Action(): import("
|
|
25
|
+
get util(): import("../index.js").FormioUtil;
|
|
26
|
+
get template(): import("../domain/FormioTemplateUtil.js").FormioTemplateUtil;
|
|
27
|
+
get Action(): import("../index.js").FormioActionModelCtor;
|
|
28
28
|
exportTemplate(options?: Partial<FormioExportOptions>): Promise<FormioTemplate>;
|
|
29
29
|
importTemplate(template: FormioTemplate): Promise<FormioTemplate>;
|
|
30
30
|
encrypt(text: string): Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/formio",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.71.1",
|
|
4
4
|
"description": "Formio package for Ts.ED framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Formio",
|
|
@@ -22,24 +22,24 @@
|
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "yarn barrels && yarn build:ts",
|
|
25
|
-
"barrels": "
|
|
25
|
+
"barrels": "barrels",
|
|
26
26
|
"start": "ts-node test/app/index.ts",
|
|
27
27
|
"test": "jest --max-workers=2 && jest-coverage-thresholds-bumper",
|
|
28
28
|
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@tsed/formio-types": "7.
|
|
32
|
-
"@tsed/normalize-path": "7.
|
|
31
|
+
"@tsed/formio-types": "7.71.1",
|
|
32
|
+
"@tsed/normalize-path": "7.71.1",
|
|
33
33
|
"tslib": "2.6.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@tsed/
|
|
37
|
-
"@tsed/
|
|
38
|
-
"@tsed/
|
|
39
|
-
"@tsed/
|
|
40
|
-
"@tsed/
|
|
36
|
+
"@tsed/barrels": "7.71.1",
|
|
37
|
+
"@tsed/common": "7.71.1",
|
|
38
|
+
"@tsed/core": "7.71.1",
|
|
39
|
+
"@tsed/di": "7.71.1",
|
|
40
|
+
"@tsed/mongoose": "7.71.1",
|
|
41
|
+
"@tsed/typescript": "7.71.1",
|
|
41
42
|
"@types/async": "3.2.24",
|
|
42
|
-
"barrelsby": "^2.8.1",
|
|
43
43
|
"eslint": "^8.57.0",
|
|
44
44
|
"express": "^4.19.1",
|
|
45
45
|
"formio": "3.5.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"mongoose": "^6.12.7"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@tsed/common": "7.
|
|
51
|
+
"@tsed/common": "7.71.1",
|
|
52
52
|
"express": "^4.17.1",
|
|
53
53
|
"formio": ">=2.0.0",
|
|
54
54
|
"lodash": "^4.17.21",
|