@tsed/formio 8.0.0-alpha.5 → 8.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/services/FormioDatabase.js +1 -1
- package/lib/esm/services/FormioDatabase.js.map +1 -1
- package/lib/types/domain/Formio.d.ts +1 -1
- package/package.json +12 -13
- 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
|
@@ -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;
|