@flusys/nestjs-form-builder 1.0.1 → 1.1.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/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Form Builder Package Guide
|
|
2
2
|
|
|
3
3
|
> **Package:** `@flusys/nestjs-form-builder`
|
|
4
|
+
> **Version:** 1.1.0
|
|
4
5
|
> **Type:** Dynamic form management with schema versioning and access control
|
|
5
6
|
|
|
6
7
|
This guide covers the NestJS form builder package - dynamic form creation, submission storage, and multi-tenant support.
|
|
@@ -92,14 +92,8 @@ let FormBuilderDataSourceProvider = class FormBuilderDataSourceProvider extends
|
|
|
92
92
|
}
|
|
93
93
|
async getFormBuilderEntities(enableCompanyFeature) {
|
|
94
94
|
const enable = enableCompanyFeature ?? this.configService.isCompanyFeatureEnabled();
|
|
95
|
-
const {
|
|
96
|
-
return enable
|
|
97
|
-
FormWithCompany,
|
|
98
|
-
FormResult
|
|
99
|
-
] : [
|
|
100
|
-
Form,
|
|
101
|
-
FormResult
|
|
102
|
-
];
|
|
95
|
+
const { getFormBuilderEntitiesByConfig } = await Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("../entities")));
|
|
96
|
+
return getFormBuilderEntitiesByConfig(enable);
|
|
103
97
|
}
|
|
104
98
|
async createDataSourceFromConfig(config) {
|
|
105
99
|
const enableCompanyFeature = this.configService.isCompanyFeatureEnabled(this.getCurrentTenant() ?? undefined);
|
|
@@ -41,14 +41,8 @@ export class FormBuilderDataSourceProvider extends MultiTenantDataSourceService
|
|
|
41
41
|
}
|
|
42
42
|
async getFormBuilderEntities(enableCompanyFeature) {
|
|
43
43
|
const enable = enableCompanyFeature ?? this.configService.isCompanyFeatureEnabled();
|
|
44
|
-
const {
|
|
45
|
-
return enable
|
|
46
|
-
FormWithCompany,
|
|
47
|
-
FormResult
|
|
48
|
-
] : [
|
|
49
|
-
Form,
|
|
50
|
-
FormResult
|
|
51
|
-
];
|
|
44
|
+
const { getFormBuilderEntitiesByConfig } = await import('../entities');
|
|
45
|
+
return getFormBuilderEntitiesByConfig(enable);
|
|
52
46
|
}
|
|
53
47
|
async createDataSourceFromConfig(config) {
|
|
54
48
|
const enableCompanyFeature = this.configService.isCompanyFeatureEnabled(this.getCurrentTenant() ?? undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/nestjs-form-builder",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Dynamic form builder module with schema versioning and access control",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "fesm/index.js",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"typeorm": "^0.3.0"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@flusys/nestjs-core": "1.0
|
|
87
|
-
"@flusys/nestjs-shared": "1.0
|
|
86
|
+
"@flusys/nestjs-core": "1.1.0",
|
|
87
|
+
"@flusys/nestjs-shared": "1.1.0"
|
|
88
88
|
}
|
|
89
89
|
}
|