@tsed/formio 8.34.0 → 8.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/FormioModule.js +2 -2
- package/lib/esm/components/AlterActions.js +4 -4
- package/lib/esm/components/AlterSkip.js +1 -1
- package/lib/esm/components/AlterTemplateExportSteps.js +3 -3
- package/lib/esm/components/AlterTemplateImportSteps.js +2 -2
- package/lib/esm/decorators/useFormioAuth.js +1 -1
- package/lib/esm/middlewares/FormioAuthMiddleware.js +5 -5
- package/lib/esm/services/FormioAuthService.js +3 -3
- package/lib/esm/services/FormioDatabase.js +3 -3
- package/lib/esm/services/FormioHooksService.js +1 -1
- package/lib/esm/services/FormioInstaller.js +1 -1
- package/lib/esm/services/FormioRepository.js +1 -1
- package/lib/esm/services/FormioService.js +1 -1
- package/lib/types/FormioModule.d.ts +1 -1
- package/lib/types/components/AlterActions.d.ts +3 -3
- 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 +3 -3
- package/lib/types/components/AlterTemplateImportSteps.d.ts +2 -2
- package/lib/types/domain/Formio.d.ts +4 -4
- package/lib/types/domain/FormioAction.d.ts +1 -1
- package/lib/types/domain/FormioActionsIndex.d.ts +1 -1
- package/lib/types/domain/FormioAuth.d.ts +1 -1
- package/lib/types/domain/FormioBaseModel.d.ts +1 -1
- package/lib/types/domain/FormioHooks.d.ts +3 -3
- package/lib/types/domain/FormioModels.d.ts +2 -2
- package/lib/types/domain/FormioRouter.d.ts +1 -1
- package/lib/types/services/FormioAuthService.d.ts +2 -2
- package/lib/types/services/FormioHooksService.d.ts +1 -1
- package/lib/types/services/FormioInstaller.d.ts +2 -2
- package/lib/types/services/FormioRepository.d.ts +1 -1
- package/lib/types/services/FormioService.d.ts +4 -4
- package/package.json +13 -14
package/lib/esm/FormioModule.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { deepClone } from "@tsed/core";
|
|
3
2
|
import { Constant, Inject, InjectorService, Module } from "@tsed/di";
|
|
4
|
-
import { normalizePath } from "@tsed/normalize-path";
|
|
5
3
|
import { PlatformApplication } from "@tsed/platform-http";
|
|
6
4
|
import { AlterActions } from "./components/AlterActions.js";
|
|
7
5
|
import { AlterAudit } from "./components/AlterAudit.js";
|
|
@@ -14,6 +12,8 @@ import { FormioAuthService } from "./services/FormioAuthService.js";
|
|
|
14
12
|
import { FormioHooksService } from "./services/FormioHooksService.js";
|
|
15
13
|
import { FormioInstaller } from "./services/FormioInstaller.js";
|
|
16
14
|
import { FormioService } from "./services/FormioService.js";
|
|
15
|
+
import { deepClone } from "@tsed/core";
|
|
16
|
+
import { normalizePath } from "@tsed/normalize-path";
|
|
17
17
|
let FormioModule = class FormioModule {
|
|
18
18
|
$onInit() {
|
|
19
19
|
return this.init(deepClone(this.settings));
|
|
@@ -2,11 +2,11 @@ import { __decorate, __metadata } from "tslib";
|
|
|
2
2
|
import { AnyToPromise, AnyToPromiseStatus } from "@tsed/core";
|
|
3
3
|
import { Inject, InjectorService } from "@tsed/di";
|
|
4
4
|
import { setResponseHeaders } from "@tsed/platform-http";
|
|
5
|
-
import { PlatformParams } from "@tsed/platform-params";
|
|
6
|
-
import { PlatformResponseFilter } from "@tsed/platform-response-filter";
|
|
7
|
-
import { EndpointMetadata } from "@tsed/schema";
|
|
8
5
|
import { Alter } from "../decorators/alter.js";
|
|
9
6
|
import { FormioService } from "../services/FormioService.js";
|
|
7
|
+
import { PlatformParams } from "@tsed/platform-params";
|
|
8
|
+
import { PlatformResponseFilter } from "@tsed/platform-response-filter";
|
|
9
|
+
import { s } from "@tsed/schema";
|
|
10
10
|
let AlterActions = class AlterActions {
|
|
11
11
|
transform(actions) {
|
|
12
12
|
const { Action } = this.formio;
|
|
@@ -47,7 +47,7 @@ let AlterActions = class AlterActions {
|
|
|
47
47
|
const { $ctx } = req;
|
|
48
48
|
if ($ctx) {
|
|
49
49
|
$ctx.set("ACTION_CTX", { handler, method, setActionItemMessage, action });
|
|
50
|
-
$ctx.endpoint =
|
|
50
|
+
$ctx.endpoint = s.store.method(provider.useClass, "resolve");
|
|
51
51
|
try {
|
|
52
52
|
if (await this.onRequest(compiledHandler, $ctx)) {
|
|
53
53
|
next();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Alter } from "../decorators/alter.js";
|
|
2
3
|
import { Constant } from "@tsed/di";
|
|
3
4
|
import { normalizePath } from "@tsed/normalize-path";
|
|
4
|
-
import { Alter } from "../decorators/alter.js";
|
|
5
5
|
let AlterSkip = class AlterSkip {
|
|
6
6
|
transform(value, ctx) {
|
|
7
7
|
if (value) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { getValue } from "@tsed/core";
|
|
3
|
-
import { Inject } from "@tsed/di";
|
|
4
|
-
import async from "async";
|
|
5
2
|
import { Alter } from "../decorators/alter.js";
|
|
6
3
|
import { FormioDatabase } from "../services/FormioDatabase.js";
|
|
4
|
+
import { Inject } from "@tsed/di";
|
|
5
|
+
import async from "async";
|
|
6
|
+
import { getValue } from "@tsed/core";
|
|
7
7
|
let AlterTemplateExportSteps = class AlterTemplateExportSteps {
|
|
8
8
|
transform(queue, template, map, options) {
|
|
9
9
|
queue.push(async.apply(this.exportSubmissions.bind(this), template, map, options));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Inject } from "@tsed/di";
|
|
3
|
-
import async from "async";
|
|
4
2
|
import { Alter } from "../decorators/alter.js";
|
|
5
3
|
import { FormioDatabase } from "../services/FormioDatabase.js";
|
|
4
|
+
import { Inject } from "@tsed/di";
|
|
5
|
+
import async from "async";
|
|
6
6
|
let AlterTemplateImportSteps = class AlterTemplateImportSteps {
|
|
7
7
|
transform(queue, install, template) {
|
|
8
8
|
queue.push(async.apply(this.importSubmissions.bind(this), template));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UseAuth } from "@tsed/platform-middlewares";
|
|
2
1
|
import { FormioAuthMiddleware } from "../middlewares/FormioAuthMiddleware.js";
|
|
2
|
+
import { UseAuth } from "@tsed/platform-middlewares";
|
|
3
3
|
/**
|
|
4
4
|
* Check if a user is connected by using the Formio Auth middleware
|
|
5
5
|
* @decorator
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
|
-
import { getValue } from "@tsed/core";
|
|
4
|
-
import { Inject } from "@tsed/di";
|
|
5
|
-
import { Unauthorized } from "@tsed/exceptions";
|
|
6
|
-
import { Middleware } from "@tsed/platform-middlewares";
|
|
7
2
|
import { Context } from "@tsed/platform-params";
|
|
8
3
|
import { FormioService } from "../services/FormioService.js";
|
|
4
|
+
import { Inject } from "@tsed/di";
|
|
5
|
+
import { Middleware } from "@tsed/platform-middlewares";
|
|
6
|
+
import { Unauthorized } from "@tsed/exceptions";
|
|
7
|
+
import { getValue } from "@tsed/core";
|
|
8
|
+
import { promisify } from "node:util";
|
|
9
9
|
/**
|
|
10
10
|
* @middleware
|
|
11
11
|
* @formio
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
|
-
import { isFunction } from "@tsed/core";
|
|
4
|
-
import { Inject, Injectable } from "@tsed/di";
|
|
5
2
|
import { BadRequest, NotFound, Unauthorized } from "@tsed/exceptions";
|
|
3
|
+
import { Inject, Injectable } from "@tsed/di";
|
|
6
4
|
import { FormioDatabase } from "./FormioDatabase.js";
|
|
7
5
|
import { FormioHooksService } from "./FormioHooksService.js";
|
|
8
6
|
import { FormioService } from "./FormioService.js";
|
|
7
|
+
import { isFunction } from "@tsed/core";
|
|
8
|
+
import { promisify } from "node:util";
|
|
9
9
|
let FormioAuthService = class FormioAuthService {
|
|
10
10
|
get currentUser() {
|
|
11
11
|
return promisify(this.formio.auth.currentUser);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { isArray, isObject, isString, toMap as tMap } from "@tsed/core";
|
|
3
2
|
import { Inject, Injectable } from "@tsed/di";
|
|
4
|
-
import
|
|
3
|
+
import { isArray, isObject, isString, toMap as tMap } from "@tsed/core";
|
|
5
4
|
import { FormioMapper } from "../builder/FormioMapper.js";
|
|
6
|
-
import { isMongoId } from "../utils/isMongoId.js";
|
|
7
5
|
import { FormioService } from "./FormioService.js";
|
|
6
|
+
import { isMongoId } from "../utils/isMongoId.js";
|
|
7
|
+
import omit from "lodash/omit.js";
|
|
8
8
|
function toMap(list) {
|
|
9
9
|
return tMap(list, (o) => [o._id.toString(), `$machineName:${o.name || o.machineName}`]);
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
2
|
import { Inject, Injectable, InjectorService } from "@tsed/di";
|
|
4
3
|
import { FormioService } from "./FormioService.js";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
5
|
let FormioHooksService = class FormioHooksService {
|
|
6
6
|
get settings() {
|
|
7
7
|
return this.formio.hook.settings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import { Inject, Injectable } from "@tsed/di";
|
|
3
|
-
import { Logger } from "@tsed/logger";
|
|
4
3
|
import { FormioDatabase } from "./FormioDatabase.js";
|
|
4
|
+
import { Logger } from "@tsed/logger";
|
|
5
5
|
let FormioInstaller = class FormioInstaller extends FormioDatabase {
|
|
6
6
|
async install(template, root) {
|
|
7
7
|
this.logger.info("Install formio template...");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
2
|
import { Inject, Injectable, InjectorService } from "@tsed/di";
|
|
4
3
|
// @ts-ignore
|
|
5
4
|
import createRouter from "formio";
|
|
5
|
+
import { promisify } from "node:util";
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
import swagger from "formio/src/util/swagger.js";
|
|
8
8
|
// @ts-ignore
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InjectorService } from "@tsed/di";
|
|
2
2
|
import { OnReady, OnRoutesInit, PlatformApplication, PlatformRouteDetails } from "@tsed/platform-http";
|
|
3
3
|
import { FormioConfig } from "./domain/FormioConfig.js";
|
|
4
|
-
import { FormioTemplate } from "./domain/FormioTemplate.js";
|
|
5
4
|
import { FormioHooksService } from "./services/FormioHooksService.js";
|
|
6
5
|
import { FormioInstaller } from "./services/FormioInstaller.js";
|
|
7
6
|
import { FormioService } from "./services/FormioService.js";
|
|
7
|
+
import { FormioTemplate } from "./domain/FormioTemplate.js";
|
|
8
8
|
export declare class FormioModule implements OnRoutesInit, OnReady {
|
|
9
9
|
protected formio: FormioService;
|
|
10
10
|
protected hooks: FormioHooksService;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InjectorService, Provider } from "@tsed/di";
|
|
2
|
-
import { PlatformParams } from "@tsed/platform-params";
|
|
3
|
-
import { PlatformResponseFilter } from "@tsed/platform-response-filter";
|
|
4
2
|
import { AlterHook } from "../domain/AlterHook.js";
|
|
5
|
-
import { SetActionItemMessage } from "../domain/FormioAction.js";
|
|
6
3
|
import { FormioActions } from "../domain/FormioActionsIndex.js";
|
|
7
4
|
import { FormioService } from "../services/FormioService.js";
|
|
5
|
+
import { PlatformParams } from "@tsed/platform-params";
|
|
6
|
+
import { PlatformResponseFilter } from "@tsed/platform-response-filter";
|
|
7
|
+
import { SetActionItemMessage } from "../domain/FormioAction.js";
|
|
8
8
|
export declare class AlterActions implements AlterHook {
|
|
9
9
|
protected injector: InjectorService;
|
|
10
10
|
protected formio: FormioService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PlatformContext } from "@tsed/platform-http";
|
|
2
1
|
import { AlterHook } from "../domain/AlterHook.js";
|
|
2
|
+
import { PlatformContext } from "@tsed/platform-http";
|
|
3
3
|
export declare class AlterHost implements AlterHook<string> {
|
|
4
4
|
transform(baseUrl: string, ctx: PlatformContext): string;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PlatformContext } from "@tsed/platform-http";
|
|
2
1
|
import { AlterHook } from "../domain/AlterHook.js";
|
|
2
|
+
import { PlatformContext } from "@tsed/platform-http";
|
|
3
3
|
export declare class AlterLog implements AlterHook {
|
|
4
4
|
transform(event: string, ctx: PlatformContext, ...info: any[]): boolean;
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MongooseDocument } from "@tsed/mongoose";
|
|
2
|
-
import { FormioMapper } from "../builder/FormioMapper.js";
|
|
3
1
|
import { AlterHook } from "../domain/AlterHook.js";
|
|
2
|
+
import { FormioDatabase } from "../services/FormioDatabase.js";
|
|
3
|
+
import { FormioMapper } from "../builder/FormioMapper.js";
|
|
4
4
|
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
5
5
|
import { FormioTemplate } from "../domain/FormioTemplate.js";
|
|
6
|
-
import {
|
|
6
|
+
import { MongooseDocument } from "@tsed/mongoose";
|
|
7
7
|
export declare class AlterTemplateExportSteps implements AlterHook {
|
|
8
8
|
protected database: FormioDatabase;
|
|
9
9
|
transform(queue: any[], template: FormioTemplate, map: any, options: any): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FormioMapper } from "../builder/FormioMapper.js";
|
|
2
1
|
import { AlterHook } from "../domain/AlterHook.js";
|
|
2
|
+
import { FormioDatabase } from "../services/FormioDatabase.js";
|
|
3
|
+
import { FormioMapper } from "../builder/FormioMapper.js";
|
|
3
4
|
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
4
5
|
import { FormioTemplate } from "../domain/FormioTemplate.js";
|
|
5
|
-
import { FormioDatabase } from "../services/FormioDatabase.js";
|
|
6
6
|
export declare class AlterTemplateImportSteps implements AlterHook {
|
|
7
7
|
protected database: FormioDatabase;
|
|
8
8
|
transform(queue: any[], install: Function, template: Partial<FormioTemplate>): any;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormioHook, FormioHooks } from "./FormioHooks.js";
|
|
2
|
+
import { FormioModels, FormioSchemas } from "./FormioModels.js";
|
|
3
|
+
import { Mongoose, Schema } from "mongoose";
|
|
2
4
|
import { NextFunction, Request, Response } from "express";
|
|
3
5
|
import { Db } from "mongodb";
|
|
4
|
-
import {
|
|
6
|
+
import { EventEmitter } from "events";
|
|
5
7
|
import { FormioActionModelCtor } from "./FormioAction.js";
|
|
6
8
|
import { FormioActionsIndex } from "./FormioActionsIndex.js";
|
|
7
9
|
import { FormioAuth } from "./FormioAuth.js";
|
|
8
10
|
import { FormioBaseModel } from "./FormioBaseModel.js";
|
|
9
11
|
import { FormioConfig } from "./FormioConfig.js";
|
|
10
|
-
import { FormioHook, FormioHooks } from "./FormioHooks.js";
|
|
11
|
-
import { FormioModels, FormioSchemas } from "./FormioModels.js";
|
|
12
12
|
import { FormioTemplateUtil } from "./FormioTemplateUtil.js";
|
|
13
13
|
import { FormioUpdate } from "./FormioUpdate.js";
|
|
14
14
|
import { FormioUtil } from "./FormioUtils.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormioAction, FormioActionInfo } from "@tsed/formio-types";
|
|
2
2
|
import { Request, Response } from "express";
|
|
3
|
-
import { FormioMongooseSchema } from "./FormioBaseModel.js";
|
|
4
3
|
import { FormioComponent } from "./FormioModels.js";
|
|
4
|
+
import { FormioMongooseSchema } from "./FormioBaseModel.js";
|
|
5
5
|
export interface FormioActionModel extends FormioAction {
|
|
6
6
|
resolve(handler: string, method: string, req: Request, res: Response, next: Function, setActionItemMessage: SetActionItemMessage): void;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Next, Req, Res } from "@tsed/platform-http";
|
|
2
1
|
import { FormioDecodedToken, FormioPayloadToken } from "./FormioDecodedToken.js";
|
|
2
|
+
import { Next, Req, Res } from "@tsed/platform-http";
|
|
3
3
|
import { FormioForm } from "./FormioModels.js";
|
|
4
4
|
export interface FormioAuth {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MongooseDocument } from "@tsed/mongoose";
|
|
2
1
|
import { Document, Schema } from "mongoose";
|
|
2
|
+
import { MongooseDocument } from "@tsed/mongoose";
|
|
3
3
|
export type FormioMongooseSchema<T> = Schema<Document<T>> & {
|
|
4
4
|
machineName(document: MongooseDocument<T>, done: Function): void;
|
|
5
5
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MongooseDocument } from "@tsed/mongoose";
|
|
2
|
-
import { Request, Response } from "express";
|
|
3
1
|
import { FilterQuery, Schema, SchemaDefinition } from "mongoose";
|
|
2
|
+
import { FormioActionItem, FormioForm, FormioModelsModels, FormioSubmission } from "./FormioModels.js";
|
|
3
|
+
import { Request, Response } from "express";
|
|
4
4
|
import { Formio } from "./Formio.js";
|
|
5
5
|
import { FormioActions } from "./FormioActionsIndex.js";
|
|
6
6
|
import { FormioConfig } from "./FormioConfig.js";
|
|
7
7
|
import { FormioDecodedToken } from "./FormioDecodedToken.js";
|
|
8
8
|
import { FormioJs } from "./FormioJs.js";
|
|
9
|
-
import { FormioActionItem, FormioForm, FormioModelsModels, FormioSubmission } from "./FormioModels.js";
|
|
10
9
|
import { FormioSettings } from "./FormioSettings.js";
|
|
10
|
+
import { MongooseDocument } from "@tsed/mongoose";
|
|
11
11
|
import { ResourceRestOptions } from "./Resource.js";
|
|
12
12
|
export type FormioInitEvent = "alias" | "params" | "token" | "getTempToken" | "logout" | "current" | "access" | "perms";
|
|
13
13
|
export interface FormioHooks {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormioActionItem, FormioForm, FormioRole, FormioSchema, FormioSubmission, FormioToken } from "@tsed/formio-types";
|
|
2
|
-
import { MongooseDocument } from "@tsed/mongoose";
|
|
3
|
-
import { Schema } from "mongoose";
|
|
4
2
|
import { FormioActionModelCtor, FormioActionMongooseSchema } from "./FormioAction.js";
|
|
5
3
|
import { FormioBaseModel, FormioModel, FormioMongooseSchema } from "./FormioBaseModel.js";
|
|
4
|
+
import { MongooseDocument } from "@tsed/mongoose";
|
|
5
|
+
import { Schema } from "mongoose";
|
|
6
6
|
export * from "@tsed/formio-types";
|
|
7
7
|
export type WithID<T> = T & {
|
|
8
8
|
_id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Router } from "express";
|
|
2
1
|
import { Formio, FormioBase } from "./Formio.js";
|
|
3
2
|
import { FormioHooks } from "./FormioHooks.js";
|
|
3
|
+
import { Router } from "express";
|
|
4
4
|
export interface FormioRouter extends Router {
|
|
5
5
|
formio: FormioBase;
|
|
6
6
|
init(hooks: FormioHooks): Promise<Formio>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PlatformContext, Req } from "@tsed/platform-http";
|
|
2
|
-
import { FormioPayloadToken } from "../domain/FormioDecodedToken.js";
|
|
3
1
|
import { FormioSubmission, WithID } from "../domain/FormioModels.js";
|
|
2
|
+
import { PlatformContext, Req } from "@tsed/platform-http";
|
|
4
3
|
import { FormioDatabase } from "./FormioDatabase.js";
|
|
5
4
|
import { FormioHooksService } from "./FormioHooksService.js";
|
|
5
|
+
import { FormioPayloadToken } from "../domain/FormioDecodedToken.js";
|
|
6
6
|
import { FormioService } from "./FormioService.js";
|
|
7
7
|
export declare class FormioAuthService {
|
|
8
8
|
formio: FormioService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectorService } from "@tsed/di";
|
|
2
|
-
import { Request } from "express";
|
|
3
2
|
import { FormioHooks } from "../domain/FormioHooks.js";
|
|
4
3
|
import { FormioService } from "./FormioService.js";
|
|
4
|
+
import { Request } from "express";
|
|
5
5
|
export declare class FormioHooksService {
|
|
6
6
|
protected injector: InjectorService;
|
|
7
7
|
protected formio: FormioService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormioDatabase } from "./FormioDatabase.js";
|
|
2
2
|
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
3
3
|
import { FormioTemplate } from "../domain/FormioTemplate.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Logger } from "@tsed/logger";
|
|
5
5
|
export declare class FormioInstaller extends FormioDatabase {
|
|
6
6
|
protected logger: Logger;
|
|
7
7
|
install(template: FormioTemplate, root: any): Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MongooseDocument, MongooseModel } from "@tsed/mongoose";
|
|
2
2
|
import type { FilterQuery } from "mongoose";
|
|
3
|
-
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
4
3
|
import { FormioDatabase } from "./FormioDatabase.js";
|
|
4
|
+
import { FormioSubmission } from "../domain/FormioModels.js";
|
|
5
5
|
export declare abstract class FormioRepository<SubmissionData = any> {
|
|
6
6
|
protected formioDatabase: FormioDatabase;
|
|
7
7
|
protected abstract formName: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { FormioHook, FormioHooks } from "../domain/FormioHooks.js";
|
|
1
2
|
import { InjectorService } from "@tsed/di";
|
|
2
3
|
import { Db } from "mongodb";
|
|
3
|
-
import { Mongoose } from "mongoose";
|
|
4
4
|
import { Formio } from "../domain/Formio.js";
|
|
5
5
|
import { FormioConfig } from "../domain/FormioConfig.js";
|
|
6
|
-
import {
|
|
7
|
-
import { FormioSchemas } from "../domain/FormioModels.js";
|
|
6
|
+
import { FormioExportOptions } from "../domain/FormioTemplateUtil.js";
|
|
8
7
|
import { FormioRouter } from "../domain/FormioRouter.js";
|
|
8
|
+
import { FormioSchemas } from "../domain/FormioModels.js";
|
|
9
9
|
import { FormioTemplate } from "../domain/FormioTemplate.js";
|
|
10
|
-
import {
|
|
10
|
+
import { Mongoose } from "mongoose";
|
|
11
11
|
export declare class FormioService {
|
|
12
12
|
router: FormioRouter;
|
|
13
13
|
protected injector: InjectorService;
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/formio",
|
|
3
|
+
"version": "8.35.0",
|
|
3
4
|
"description": "Formio package for Ts.ED framework",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"version": "8.34.0",
|
|
6
5
|
"keywords": [
|
|
7
6
|
"Formio",
|
|
8
7
|
"Ts.ED",
|
|
9
|
-
"tsed",
|
|
10
8
|
"TypeScript",
|
|
11
9
|
"decorators",
|
|
12
|
-
"express"
|
|
10
|
+
"express",
|
|
11
|
+
"tsed"
|
|
13
12
|
],
|
|
14
13
|
"source": "./src/index.ts",
|
|
14
|
+
"type": "module",
|
|
15
15
|
"main": "./lib/esm/index.js",
|
|
16
16
|
"module": "./lib/esm/index.js",
|
|
17
17
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -32,21 +32,20 @@
|
|
|
32
32
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tsed/formio-types": "8.
|
|
36
|
-
"@tsed/normalize-path": "8.
|
|
35
|
+
"@tsed/formio-types": "8.35.0",
|
|
36
|
+
"@tsed/normalize-path": "8.35.0",
|
|
37
37
|
"tslib": ">=2.7.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@tsed/barrels": "8.
|
|
41
|
-
"@tsed/core": "8.
|
|
42
|
-
"@tsed/di": "8.
|
|
43
|
-
"@tsed/mongoose": "8.
|
|
44
|
-
"@tsed/platform-http": "8.
|
|
45
|
-
"@tsed/typescript": "8.
|
|
40
|
+
"@tsed/barrels": "8.35.0",
|
|
41
|
+
"@tsed/core": "8.35.0",
|
|
42
|
+
"@tsed/di": "8.35.0",
|
|
43
|
+
"@tsed/mongoose": "8.35.0",
|
|
44
|
+
"@tsed/platform-http": "8.35.0",
|
|
45
|
+
"@tsed/typescript": "8.35.0",
|
|
46
46
|
"@types/async": "3.2.24",
|
|
47
|
-
"eslint": "9.12.0",
|
|
48
47
|
"express": "^5.2.1",
|
|
49
|
-
"formio": "4.2
|
|
48
|
+
"formio": "4.7.2",
|
|
50
49
|
"mongodb": "^6.9.0",
|
|
51
50
|
"mongoose": "8.9.5",
|
|
52
51
|
"typescript": "6.0.2",
|