@tsed/formio 7.83.3 → 8.0.0-alpha.10
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/lib/esm/FormioModule.js.map +1 -1
- package/lib/esm/builder/FormioMapper.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 +1 -1
- package/lib/esm/components/AlterTemplateExportSteps.js.map +1 -1
- package/lib/esm/components/AlterTemplateImportSteps.js +1 -1
- package/lib/esm/components/AlterTemplateImportSteps.js.map +1 -1
- package/lib/esm/decorators/action.js.map +1 -1
- package/lib/esm/decorators/actionCtx.js.map +1 -1
- package/lib/esm/decorators/alter.js.map +1 -1
- package/lib/esm/decorators/on.js.map +1 -1
- package/lib/esm/decorators/useFormioAuth.js.map +1 -1
- package/lib/esm/domain/FormioModels.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 +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/esm/services/FormioService.js +1 -1
- package/lib/esm/services/FormioService.js.map +1 -1
- package/lib/types/decorators/actionCtx.d.ts +1 -1
- package/lib/types/domain/Formio.d.ts +26 -1
- package/lib/types/domain/FormioAction.d.ts +1 -1
- package/lib/types/domain/FormioBaseModel.d.ts +27 -1
- package/lib/types/domain/FormioCtxMapper.d.ts +1 -1
- package/lib/types/domain/FormioHooks.d.ts +26 -0
- package/lib/types/domain/FormioModels.d.ts +26 -1
- package/lib/types/domain/Resource.d.ts +1 -1
- package/lib/types/services/FormioAuthService.d.ts +11 -7
- package/lib/types/services/FormioDatabase.d.ts +36 -21
- package/lib/types/services/FormioHooksService.d.ts +1 -1
- package/lib/types/services/FormioRepository.d.ts +8 -3
- package/lib/types/services/FormioService.d.ts +25 -0
- package/package.json +26 -24
- package/vitest.config.mts +5 -5
- package/lib/cjs/FormioModule.js +0 -132
- package/lib/cjs/FormioModule.js.map +0 -1
- package/lib/cjs/builder/FormioMapper.js +0 -61
- package/lib/cjs/builder/FormioMapper.js.map +0 -1
- package/lib/cjs/components/AlterActions.js +0 -113
- package/lib/cjs/components/AlterActions.js.map +0 -1
- package/lib/cjs/components/AlterAudit.js +0 -16
- package/lib/cjs/components/AlterAudit.js.map +0 -1
- package/lib/cjs/components/AlterHost.js +0 -15
- package/lib/cjs/components/AlterHost.js.map +0 -1
- package/lib/cjs/components/AlterLog.js +0 -16
- package/lib/cjs/components/AlterLog.js.map +0 -1
- package/lib/cjs/components/AlterSkip.js +0 -32
- package/lib/cjs/components/AlterSkip.js.map +0 -1
- package/lib/cjs/components/AlterTemplateExportSteps.js +0 -52
- package/lib/cjs/components/AlterTemplateExportSteps.js.map +0 -1
- package/lib/cjs/components/AlterTemplateImportSteps.js +0 -45
- package/lib/cjs/components/AlterTemplateImportSteps.js.map +0 -1
- package/lib/cjs/decorators/action.js +0 -20
- package/lib/cjs/decorators/action.js.map +0 -1
- package/lib/cjs/decorators/actionCtx.js +0 -23
- package/lib/cjs/decorators/actionCtx.js.map +0 -1
- package/lib/cjs/decorators/alter.js +0 -20
- package/lib/cjs/decorators/alter.js.map +0 -1
- package/lib/cjs/decorators/on.js +0 -20
- package/lib/cjs/decorators/on.js.map +0 -1
- package/lib/cjs/decorators/useFormioAuth.js +0 -15
- package/lib/cjs/decorators/useFormioAuth.js.map +0 -1
- package/lib/cjs/domain/AlterHook.js +0 -3
- package/lib/cjs/domain/AlterHook.js.map +0 -1
- package/lib/cjs/domain/Formio.js +0 -3
- package/lib/cjs/domain/Formio.js.map +0 -1
- package/lib/cjs/domain/FormioAction.js +0 -3
- package/lib/cjs/domain/FormioAction.js.map +0 -1
- package/lib/cjs/domain/FormioActionsIndex.js +0 -3
- package/lib/cjs/domain/FormioActionsIndex.js.map +0 -1
- package/lib/cjs/domain/FormioAuth.js +0 -3
- package/lib/cjs/domain/FormioAuth.js.map +0 -1
- package/lib/cjs/domain/FormioBaseModel.js +0 -3
- package/lib/cjs/domain/FormioBaseModel.js.map +0 -1
- package/lib/cjs/domain/FormioConfig.js +0 -3
- package/lib/cjs/domain/FormioConfig.js.map +0 -1
- package/lib/cjs/domain/FormioCtxMapper.js +0 -3
- package/lib/cjs/domain/FormioCtxMapper.js.map +0 -1
- package/lib/cjs/domain/FormioDecodedToken.js +0 -3
- package/lib/cjs/domain/FormioDecodedToken.js.map +0 -1
- package/lib/cjs/domain/FormioErrors.js +0 -3
- package/lib/cjs/domain/FormioErrors.js.map +0 -1
- package/lib/cjs/domain/FormioHooks.js +0 -3
- package/lib/cjs/domain/FormioHooks.js.map +0 -1
- package/lib/cjs/domain/FormioJs.js +0 -3
- package/lib/cjs/domain/FormioJs.js.map +0 -1
- package/lib/cjs/domain/FormioModels.js +0 -5
- package/lib/cjs/domain/FormioModels.js.map +0 -1
- package/lib/cjs/domain/FormioRouter.js +0 -3
- package/lib/cjs/domain/FormioRouter.js.map +0 -1
- package/lib/cjs/domain/FormioSettings.js +0 -3
- package/lib/cjs/domain/FormioSettings.js.map +0 -1
- package/lib/cjs/domain/FormioTemplate.js +0 -3
- package/lib/cjs/domain/FormioTemplate.js.map +0 -1
- package/lib/cjs/domain/FormioTemplateUtil.js +0 -3
- package/lib/cjs/domain/FormioTemplateUtil.js.map +0 -1
- package/lib/cjs/domain/FormioUpdate.js +0 -3
- package/lib/cjs/domain/FormioUpdate.js.map +0 -1
- package/lib/cjs/domain/FormioUtils.js +0 -3
- package/lib/cjs/domain/FormioUtils.js.map +0 -1
- package/lib/cjs/domain/OnHook.js +0 -3
- package/lib/cjs/domain/OnHook.js.map +0 -1
- package/lib/cjs/domain/Resource.js +0 -3
- package/lib/cjs/domain/Resource.js.map +0 -1
- package/lib/cjs/index.js +0 -50
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/middlewares/FormioAuthMiddleware.js +0 -41
- package/lib/cjs/middlewares/FormioAuthMiddleware.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/services/FormioAuthService.js +0 -182
- package/lib/cjs/services/FormioAuthService.js.map +0 -1
- package/lib/cjs/services/FormioDatabase.js +0 -140
- package/lib/cjs/services/FormioDatabase.js.map +0 -1
- package/lib/cjs/services/FormioHooksService.js +0 -81
- package/lib/cjs/services/FormioHooksService.js.map +0 -1
- package/lib/cjs/services/FormioInstaller.js +0 -44
- package/lib/cjs/services/FormioInstaller.js.map +0 -1
- package/lib/cjs/services/FormioRepository.js +0 -42
- package/lib/cjs/services/FormioRepository.js.map +0 -1
- package/lib/cjs/services/FormioService.js +0 -103
- package/lib/cjs/services/FormioService.js.map +0 -1
- package/lib/cjs/utils/isMongoId.js +0 -8
- package/lib/cjs/utils/isMongoId.js.map +0 -1
- package/lib/esm/package.json +0 -3
- package/lib/types-esm/FormioModule.d.ts +0 -24
- package/lib/types-esm/builder/FormioMapper.d.ts +0 -11
- package/lib/types-esm/components/AlterActions.d.ts +0 -18
- package/lib/types-esm/components/AlterAudit.d.ts +0 -5
- package/lib/types-esm/components/AlterHost.d.ts +0 -5
- package/lib/types-esm/components/AlterLog.d.ts +0 -5
- package/lib/types-esm/components/AlterSkip.d.ts +0 -7
- package/lib/types-esm/components/AlterTemplateExportSteps.d.ts +0 -12
- package/lib/types-esm/components/AlterTemplateImportSteps.d.ts +0 -11
- package/lib/types-esm/decorators/action.d.ts +0 -7
- package/lib/types-esm/decorators/actionCtx.d.ts +0 -23
- package/lib/types-esm/decorators/alter.d.ts +0 -6
- package/lib/types-esm/decorators/on.d.ts +0 -6
- package/lib/types-esm/decorators/useFormioAuth.d.ts +0 -6
- package/lib/types-esm/domain/AlterHook.d.ts +0 -3
- package/lib/types-esm/domain/Formio.d.ts +0 -112
- package/lib/types-esm/domain/FormioAction.d.ts +0 -20
- package/lib/types-esm/domain/FormioActionsIndex.d.ts +0 -15
- package/lib/types-esm/domain/FormioAuth.d.ts +0 -67
- package/lib/types-esm/domain/FormioBaseModel.d.ts +0 -11
- package/lib/types-esm/domain/FormioConfig.d.ts +0 -59
- package/lib/types-esm/domain/FormioCtxMapper.d.ts +0 -7
- package/lib/types-esm/domain/FormioDecodedToken.d.ts +0 -12
- package/lib/types-esm/domain/FormioErrors.d.ts +0 -53
- package/lib/types-esm/domain/FormioHooks.d.ts +0 -194
- package/lib/types-esm/domain/FormioJs.d.ts +0 -17
- package/lib/types-esm/domain/FormioModels.d.ts +0 -42
- package/lib/types-esm/domain/FormioRouter.d.ts +0 -7
- package/lib/types-esm/domain/FormioSettings.d.ts +0 -53
- package/lib/types-esm/domain/FormioTemplate.d.ts +0 -8
- package/lib/types-esm/domain/FormioTemplateUtil.d.ts +0 -13
- package/lib/types-esm/domain/FormioUpdate.d.ts +0 -19
- package/lib/types-esm/domain/FormioUtils.d.ts +0 -307
- package/lib/types-esm/domain/OnHook.d.ts +0 -3
- package/lib/types-esm/domain/Resource.d.ts +0 -18
- package/lib/types-esm/index.d.ts +0 -46
- package/lib/types-esm/middlewares/FormioAuthMiddleware.d.ts +0 -11
- package/lib/types-esm/services/FormioAuthService.d.ts +0 -84
- package/lib/types-esm/services/FormioDatabase.d.ts +0 -84
- package/lib/types-esm/services/FormioHooksService.d.ts +0 -17
- package/lib/types-esm/services/FormioInstaller.d.ts +0 -12
- package/lib/types-esm/services/FormioRepository.d.ts +0 -41
- package/lib/types-esm/services/FormioService.d.ts +0 -36
- package/lib/types-esm/utils/isMongoId.d.ts +0 -1
package/lib/types-esm/index.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Automatically generated by @tsed/barrels.
|
|
3
|
-
*/
|
|
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,11 +0,0 @@
|
|
|
1
|
-
import { Context } from "@tsed/common";
|
|
2
|
-
import { FormioService } from "../services/FormioService.js";
|
|
3
|
-
/**
|
|
4
|
-
* @middleware
|
|
5
|
-
* @formio
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormioAuthMiddleware {
|
|
8
|
-
protected formio: FormioService;
|
|
9
|
-
get tokenHandler(): any;
|
|
10
|
-
use(ctx: Context): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
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" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype.js" />
|
|
26
|
-
import { PlatformContext, Req } from "@tsed/common";
|
|
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
|
-
export declare class FormioAuthService {
|
|
33
|
-
formio: FormioService;
|
|
34
|
-
hooks: FormioHooksService;
|
|
35
|
-
db: FormioDatabase;
|
|
36
|
-
get currentUser(): (arg1: Req, arg2: import("@tsed/common").Res) => Promise<unknown>;
|
|
37
|
-
get getToken(): (payload: FormioPayloadToken) => string | boolean;
|
|
38
|
-
get tempToken(): (req: Req, res: import("@tsed/common").Res) => void;
|
|
39
|
-
get logout(): (req: Req, res: import("@tsed/common").Res, next: TsED.NextFunction) => void;
|
|
40
|
-
setCurrentUser<User = any>(user: WithID<FormioSubmission<User>>, token: FormioPayloadToken, ctx: PlatformContext): this;
|
|
41
|
-
/**
|
|
42
|
-
* Generate the payload token for the session
|
|
43
|
-
* @param user
|
|
44
|
-
* @param ctx
|
|
45
|
-
*/
|
|
46
|
-
generatePayloadToken<User = any>(user: WithID<FormioSubmission<User>>, ctx: PlatformContext): Promise<{
|
|
47
|
-
user: WithID<FormioSubmission<User>>;
|
|
48
|
-
token: FormioPayloadToken;
|
|
49
|
-
}>;
|
|
50
|
-
/**
|
|
51
|
-
* Generate session from the given authenticated user.
|
|
52
|
-
* @param user
|
|
53
|
-
* @param ctx
|
|
54
|
-
*/
|
|
55
|
-
generateSession<User = any>(user: WithID<FormioSubmission<User>>, ctx: PlatformContext): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* Retrieve roles
|
|
58
|
-
* @param req
|
|
59
|
-
*/
|
|
60
|
-
getRoles(req?: Req): Promise<import("mongoose").LeanDocument<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & import("../domain/FormioModels.js").FormioRole & import("@tsed/mongoose").MongooseDocumentMethods<import("../domain/FormioModels.js").FormioRole>> & {
|
|
61
|
-
_id: import("mongoose").Types.ObjectId;
|
|
62
|
-
}>[]>;
|
|
63
|
-
/**
|
|
64
|
-
* Update the role of the current user submission
|
|
65
|
-
* @param _id
|
|
66
|
-
* @param role
|
|
67
|
-
* @param req
|
|
68
|
-
*/
|
|
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
|
-
}>;
|
|
72
|
-
/**
|
|
73
|
-
* Create a user submission in formio
|
|
74
|
-
* @param user
|
|
75
|
-
*/
|
|
76
|
-
createUser<User = any>(user: Partial<FormioSubmission<User>>): Promise<import("mongoose").LeanDocument<any> & Required<{
|
|
77
|
-
_id: unknown;
|
|
78
|
-
}>>;
|
|
79
|
-
/**
|
|
80
|
-
* Update user submission in formio
|
|
81
|
-
* @param user
|
|
82
|
-
*/
|
|
83
|
-
updateUser<User = any>(user: WithID<FormioSubmission<User>>): Promise<WithID<FormioSubmission<User>>>;
|
|
84
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
import { MongooseDocument, MongooseModel } from "@tsed/mongoose";
|
|
26
|
-
import type { FilterQuery } from "mongoose";
|
|
27
|
-
import { FormioAction, FormioActionItem, FormioForm, FormioRole, FormioSubmission, FormioToken } from "@tsed/formio-types";
|
|
28
|
-
import { FormioMapper } from "../builder/FormioMapper.js";
|
|
29
|
-
import { FormioService } from "./FormioService.js";
|
|
30
|
-
export declare class FormioDatabase {
|
|
31
|
-
protected formio: FormioService;
|
|
32
|
-
get models(): import("mongoose").Models;
|
|
33
|
-
get roleModel(): MongooseModel<FormioRole>;
|
|
34
|
-
get formModel(): MongooseModel<FormioForm>;
|
|
35
|
-
get actionModel(): MongooseModel<FormioAction>;
|
|
36
|
-
get submissionModel(): MongooseModel<FormioSubmission>;
|
|
37
|
-
get tokenModel(): MongooseModel<FormioToken>;
|
|
38
|
-
get actionItemModel(): MongooseModel<FormioActionItem>;
|
|
39
|
-
getFormioMapper(): Promise<FormioMapper>;
|
|
40
|
-
hasForms(): Promise<boolean>;
|
|
41
|
-
hasForm(name: string): Promise<boolean>;
|
|
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): import("mongoose").Query<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>> & {
|
|
63
|
-
_id: import("mongoose").Types.ObjectId;
|
|
64
|
-
}, import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>> & {
|
|
65
|
-
_id: import("mongoose").Types.ObjectId;
|
|
66
|
-
}, {}, import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioForm & import("@tsed/mongoose").MongooseDocumentMethods<FormioForm>>>;
|
|
67
|
-
getSubmissions<Data>(query?: FilterQuery<MongooseModel<FormioSubmission<Data>>>): Promise<MongooseDocument<FormioSubmission<Data>>[]>;
|
|
68
|
-
/**
|
|
69
|
-
* Import submission previously exported by export tool.
|
|
70
|
-
* This method transform alias to a real mongoose _id
|
|
71
|
-
* @param submission
|
|
72
|
-
*/
|
|
73
|
-
importSubmission<Data = any>(submission: Omit<Partial<FormioSubmission<Data>>, "form"> & {
|
|
74
|
-
form?: any;
|
|
75
|
-
}): Promise<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>> & {
|
|
76
|
-
_id: import("mongoose").Types.ObjectId;
|
|
77
|
-
}>;
|
|
78
|
-
saveSubmission<Data = any>(submission: Partial<FormioSubmission<Data>>): import("mongoose").Query<import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>> & {
|
|
79
|
-
_id: import("mongoose").Types.ObjectId;
|
|
80
|
-
}, import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>> & {
|
|
81
|
-
_id: import("mongoose").Types.ObjectId;
|
|
82
|
-
}, {}, import("@tsed/mongoose").MongooseMergedDocument<import("mongoose").Document<any, any, any> & FormioSubmission<any> & import("@tsed/mongoose").MongooseDocumentMethods<FormioSubmission<any>>>>;
|
|
83
|
-
idToBson(form?: any): any;
|
|
84
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { InjectorService } from "@tsed/common";
|
|
2
|
-
import { FormioHooks } from "../domain/FormioHooks.js";
|
|
3
|
-
import { FormioService } from "./FormioService.js";
|
|
4
|
-
import { Request } from "express";
|
|
5
|
-
export declare class FormioHooksService {
|
|
6
|
-
protected injector: InjectorService;
|
|
7
|
-
protected formio: FormioService;
|
|
8
|
-
get settings(): (req: Request, cb: Function) => void;
|
|
9
|
-
get invoke(): <T = any>(...args: any[]) => boolean | T;
|
|
10
|
-
get alter(): (event: string, ...args: any[]) => any;
|
|
11
|
-
get alterAsync(): (event: string, ...args: any[]) => Promise<any>;
|
|
12
|
-
getHooks(): FormioHooks;
|
|
13
|
-
protected getProviders(type: "alter" | "on"): import("@tsed/common").Provider<any>[];
|
|
14
|
-
protected getHooksProvider(type: "alter" | "on"): {};
|
|
15
|
-
protected bindHooks(type: "alter" | "on", hooks: Record<string, Function[]>): {};
|
|
16
|
-
private createHooks;
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Logger } from "@tsed/logger";
|
|
2
|
-
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
3
|
-
import { FormioTemplate } from "../domain/FormioTemplate.js";
|
|
4
|
-
import { FormioDatabase } from "./FormioDatabase.js";
|
|
5
|
-
export declare class FormioInstaller extends FormioDatabase {
|
|
6
|
-
protected logger: Logger;
|
|
7
|
-
install(template: FormioTemplate, root: any): Promise<void>;
|
|
8
|
-
createRootUser<User = unknown>(user: {
|
|
9
|
-
email: string;
|
|
10
|
-
password: string;
|
|
11
|
-
}, template: FormioTemplate): Promise<FormioSubmission<User>>;
|
|
12
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
import type { FilterQuery } from "mongoose";
|
|
26
|
-
import { MongooseDocument, MongooseModel } from "@tsed/mongoose";
|
|
27
|
-
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
28
|
-
import { FormioDatabase } from "./FormioDatabase.js";
|
|
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
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { InjectorService } from "@tsed/common";
|
|
2
|
-
import { Db } from "mongodb";
|
|
3
|
-
import { Mongoose } from "mongoose";
|
|
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
|
-
export declare class FormioService {
|
|
12
|
-
router: FormioRouter;
|
|
13
|
-
protected injector: InjectorService;
|
|
14
|
-
get audit(): Function;
|
|
15
|
-
get auth(): import("../index.js").FormioAuth;
|
|
16
|
-
get swagger(): (...args: any[]) => Promise<unknown>;
|
|
17
|
-
get config(): FormioConfig;
|
|
18
|
-
get db(): Db;
|
|
19
|
-
get resources(): any;
|
|
20
|
-
get mongoose(): Mongoose;
|
|
21
|
-
get middleware(): import("../domain/Formio.js").FormioMiddlewares;
|
|
22
|
-
get schemas(): FormioSchemas;
|
|
23
|
-
get formio(): Formio;
|
|
24
|
-
get hook(): FormioHook;
|
|
25
|
-
get util(): import("../index.js").FormioUtil;
|
|
26
|
-
get template(): import("../domain/FormioTemplateUtil.js").FormioTemplateUtil;
|
|
27
|
-
get Action(): import("../index.js").FormioActionModelCtor;
|
|
28
|
-
exportTemplate(options?: Partial<FormioExportOptions>): Promise<FormioTemplate>;
|
|
29
|
-
importTemplate(template: FormioTemplate): Promise<FormioTemplate>;
|
|
30
|
-
encrypt(text: string): Promise<string>;
|
|
31
|
-
isInit(): boolean;
|
|
32
|
-
createRouter(options: FormioConfig): any;
|
|
33
|
-
init(options: FormioConfig, hooks?: FormioHooks): Promise<Formio> | undefined;
|
|
34
|
-
protected mapConfiguration(options: FormioConfig): FormioConfig;
|
|
35
|
-
protected bindLogger(): void;
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isMongoId(text: string): RegExpMatchArray | null;
|