@flusys/nestjs-form-builder 5.0.0 → 5.0.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.
@@ -48,7 +48,7 @@ _ts_decorate([
48
48
  ], FormResult.prototype, "formId", void 0);
49
49
  _ts_decorate([
50
50
  (0, _typeorm.Column)({
51
- type: 'json',
51
+ type: (0, _nestjsshared.getJsonColumnType)(),
52
52
  nullable: false,
53
53
  name: 'schema_version_snapshot'
54
54
  }),
@@ -64,7 +64,7 @@ _ts_decorate([
64
64
  ], FormResult.prototype, "schemaVersion", void 0);
65
65
  _ts_decorate([
66
66
  (0, _typeorm.Column)({
67
- type: 'json',
67
+ type: (0, _nestjsshared.getJsonColumnType)(),
68
68
  nullable: false
69
69
  }),
70
70
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "Form", {
8
8
  return Form;
9
9
  }
10
10
  });
11
+ const _nestjsshared = require("@flusys/nestjs-shared");
11
12
  const _entities = require("@flusys/nestjs-shared/entities");
12
13
  const _typeorm = require("typeorm");
13
14
  const _formaccesstypeenum = require("../enums/form-access-type.enum");
@@ -64,7 +65,7 @@ _ts_decorate([
64
65
  ], Form.prototype, "slug", void 0);
65
66
  _ts_decorate([
66
67
  (0, _typeorm.Column)({
67
- type: 'json',
68
+ type: (0, _nestjsshared.getJsonColumnType)(),
68
69
  nullable: false
69
70
  }),
70
71
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
@@ -89,7 +90,7 @@ _ts_decorate([
89
90
  ], Form.prototype, "accessType", void 0);
90
91
  _ts_decorate([
91
92
  (0, _typeorm.Column)({
92
- type: 'json',
93
+ type: (0, _nestjsshared.getJsonColumnType)(),
93
94
  nullable: true,
94
95
  name: 'action_groups'
95
96
  }),
@@ -20,7 +20,7 @@ function _ts_decorate(decorators, target, key, desc) {
20
20
  function _ts_metadata(k, v) {
21
21
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
22
22
  }
23
- import { Identity } from '@flusys/nestjs-shared';
23
+ import { getJsonColumnType, Identity } from '@flusys/nestjs-shared';
24
24
  import { Column, Entity, Index } from 'typeorm';
25
25
  export class FormResult extends Identity {
26
26
  constructor(...args){
@@ -38,7 +38,7 @@ _ts_decorate([
38
38
  ], FormResult.prototype, "formId", void 0);
39
39
  _ts_decorate([
40
40
  Column({
41
- type: 'json',
41
+ type: getJsonColumnType(),
42
42
  nullable: false,
43
43
  name: 'schema_version_snapshot'
44
44
  }),
@@ -54,7 +54,7 @@ _ts_decorate([
54
54
  ], FormResult.prototype, "schemaVersion", void 0);
55
55
  _ts_decorate([
56
56
  Column({
57
- type: 'json',
57
+ type: getJsonColumnType(),
58
58
  nullable: false
59
59
  }),
60
60
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
@@ -20,6 +20,7 @@ function _ts_decorate(decorators, target, key, desc) {
20
20
  function _ts_metadata(k, v) {
21
21
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
22
22
  }
23
+ import { getJsonColumnType } from '@flusys/nestjs-shared';
23
24
  import { Identity } from '@flusys/nestjs-shared/entities';
24
25
  import { Column, Entity, Index } from 'typeorm';
25
26
  import { FormAccessType } from '../enums/form-access-type.enum';
@@ -54,7 +55,7 @@ _ts_decorate([
54
55
  ], Form.prototype, "slug", void 0);
55
56
  _ts_decorate([
56
57
  Column({
57
- type: 'json',
58
+ type: getJsonColumnType(),
58
59
  nullable: false
59
60
  }),
60
61
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
@@ -79,7 +80,7 @@ _ts_decorate([
79
80
  ], Form.prototype, "accessType", void 0);
80
81
  _ts_decorate([
81
82
  Column({
82
- type: 'json',
83
+ type: getJsonColumnType(),
83
84
  nullable: true,
84
85
  name: 'action_groups'
85
86
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flusys/nestjs-form-builder",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
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",
@@ -84,7 +84,7 @@
84
84
  "express": "^4.18.0"
85
85
  },
86
86
  "dependencies": {
87
- "@flusys/nestjs-core": "5.0.0",
88
- "@flusys/nestjs-shared": "5.0.0"
87
+ "@flusys/nestjs-core": "5.0.1",
88
+ "@flusys/nestjs-shared": "5.0.1"
89
89
  }
90
90
  }