@flusys/nestjs-form-builder 5.1.1 → 5.1.2

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.
@@ -31,9 +31,10 @@ _export(exports, {
31
31
  return UpdateFormResultDto;
32
32
  }
33
33
  });
34
+ const _dtos = require("@flusys/nestjs-shared/dtos");
34
35
  const _swagger = require("@nestjs/swagger");
36
+ const _classtransformer = require("class-transformer");
35
37
  const _classvalidator = require("class-validator");
36
- const _dtos = require("@flusys/nestjs-shared/dtos");
37
38
  function _define_property(obj, key, value) {
38
39
  if (key in obj) {
39
40
  Object.defineProperty(obj, key, {
@@ -211,30 +212,37 @@ let FormResultResponseDto = class FormResultResponseDto extends _dtos.IdentityRe
211
212
  }
212
213
  };
213
214
  _ts_decorate([
215
+ (0, _classtransformer.Expose)(),
214
216
  (0, _swagger.ApiProperty)(),
215
217
  _ts_metadata("design:type", String)
216
218
  ], FormResultResponseDto.prototype, "formId", void 0);
217
219
  _ts_decorate([
220
+ (0, _classtransformer.Expose)(),
218
221
  (0, _swagger.ApiProperty)(),
219
222
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
220
223
  ], FormResultResponseDto.prototype, "schemaVersionSnapshot", void 0);
221
224
  _ts_decorate([
225
+ (0, _classtransformer.Expose)(),
222
226
  (0, _swagger.ApiProperty)(),
223
227
  _ts_metadata("design:type", Number)
224
228
  ], FormResultResponseDto.prototype, "schemaVersion", void 0);
225
229
  _ts_decorate([
230
+ (0, _classtransformer.Expose)(),
226
231
  (0, _swagger.ApiProperty)(),
227
232
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
228
233
  ], FormResultResponseDto.prototype, "data", void 0);
229
234
  _ts_decorate([
235
+ (0, _classtransformer.Expose)(),
230
236
  (0, _swagger.ApiProperty)(),
231
237
  _ts_metadata("design:type", Object)
232
238
  ], FormResultResponseDto.prototype, "submittedById", void 0);
233
239
  _ts_decorate([
240
+ (0, _classtransformer.Expose)(),
234
241
  (0, _swagger.ApiProperty)(),
235
242
  _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
236
243
  ], FormResultResponseDto.prototype, "submittedAt", void 0);
237
244
  _ts_decorate([
245
+ (0, _classtransformer.Expose)(),
238
246
  (0, _swagger.ApiProperty)(),
239
247
  _ts_metadata("design:type", Boolean)
240
248
  ], FormResultResponseDto.prototype, "isDraft", void 0);
@@ -25,10 +25,11 @@ _export(exports, {
25
25
  return UpdateFormDto;
26
26
  }
27
27
  });
28
+ const _dtos = require("@flusys/nestjs-shared/dtos");
28
29
  const _swagger = require("@nestjs/swagger");
30
+ const _classtransformer = require("class-transformer");
29
31
  const _classvalidator = require("class-validator");
30
32
  const _formaccesstypeenum = require("../enums/form-access-type.enum");
31
- const _dtos = require("@flusys/nestjs-shared/dtos");
32
33
  function _define_property(obj, key, value) {
33
34
  if (key in obj) {
34
35
  Object.defineProperty(obj, key, {
@@ -182,40 +183,49 @@ let FormResponseDto = class FormResponseDto extends _dtos.IdentityResponseDto {
182
183
  }
183
184
  };
184
185
  _ts_decorate([
186
+ (0, _classtransformer.Expose)(),
185
187
  (0, _swagger.ApiProperty)(),
186
188
  _ts_metadata("design:type", String)
187
189
  ], FormResponseDto.prototype, "name", void 0);
188
190
  _ts_decorate([
191
+ (0, _classtransformer.Expose)(),
189
192
  (0, _swagger.ApiProperty)(),
190
193
  _ts_metadata("design:type", Object)
191
194
  ], FormResponseDto.prototype, "description", void 0);
192
195
  _ts_decorate([
196
+ (0, _classtransformer.Expose)(),
193
197
  (0, _swagger.ApiProperty)(),
194
198
  _ts_metadata("design:type", Object)
195
199
  ], FormResponseDto.prototype, "slug", void 0);
196
200
  _ts_decorate([
201
+ (0, _classtransformer.Expose)(),
197
202
  (0, _swagger.ApiProperty)(),
198
203
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
199
204
  ], FormResponseDto.prototype, "schema", void 0);
200
205
  _ts_decorate([
206
+ (0, _classtransformer.Expose)(),
201
207
  (0, _swagger.ApiProperty)(),
202
208
  _ts_metadata("design:type", Number)
203
209
  ], FormResponseDto.prototype, "schemaVersion", void 0);
204
210
  _ts_decorate([
211
+ (0, _classtransformer.Expose)(),
205
212
  (0, _swagger.ApiProperty)({
206
213
  enum: _formaccesstypeenum.FormAccessType
207
214
  }),
208
215
  _ts_metadata("design:type", typeof _formaccesstypeenum.FormAccessType === "undefined" ? Object : _formaccesstypeenum.FormAccessType)
209
216
  ], FormResponseDto.prototype, "accessType", void 0);
210
217
  _ts_decorate([
218
+ (0, _classtransformer.Expose)(),
211
219
  (0, _swagger.ApiProperty)(),
212
220
  _ts_metadata("design:type", Object)
213
221
  ], FormResponseDto.prototype, "actionGroups", void 0);
214
222
  _ts_decorate([
223
+ (0, _classtransformer.Expose)(),
215
224
  (0, _swagger.ApiProperty)(),
216
225
  _ts_metadata("design:type", Object)
217
226
  ], FormResponseDto.prototype, "companyId", void 0);
218
227
  _ts_decorate([
228
+ (0, _classtransformer.Expose)(),
219
229
  (0, _swagger.ApiProperty)(),
220
230
  _ts_metadata("design:type", Boolean)
221
231
  ], FormResponseDto.prototype, "isActive", void 0);
@@ -1,5 +1,5 @@
1
- import { FormAccessType } from '../enums/form-access-type.enum';
2
1
  import { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
2
+ import { FormAccessType } from '../enums/form-access-type.enum';
3
3
  export declare class CreateFormDto {
4
4
  name: string;
5
5
  description?: string;
@@ -20,9 +20,10 @@ 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 { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
23
24
  import { ApiProperty, PartialType } from '@nestjs/swagger';
25
+ import { Expose } from 'class-transformer';
24
26
  import { IsBoolean, IsInt, IsNotEmpty, IsObject, IsOptional, IsUUID, Min } from 'class-validator';
25
- import { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
26
27
  export class SubmitFormDto {
27
28
  constructor(){
28
29
  _define_property(this, "formId", void 0);
@@ -178,30 +179,37 @@ export class FormResultResponseDto extends IdentityResponseDto {
178
179
  }
179
180
  }
180
181
  _ts_decorate([
182
+ Expose(),
181
183
  ApiProperty(),
182
184
  _ts_metadata("design:type", String)
183
185
  ], FormResultResponseDto.prototype, "formId", void 0);
184
186
  _ts_decorate([
187
+ Expose(),
185
188
  ApiProperty(),
186
189
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
187
190
  ], FormResultResponseDto.prototype, "schemaVersionSnapshot", void 0);
188
191
  _ts_decorate([
192
+ Expose(),
189
193
  ApiProperty(),
190
194
  _ts_metadata("design:type", Number)
191
195
  ], FormResultResponseDto.prototype, "schemaVersion", void 0);
192
196
  _ts_decorate([
197
+ Expose(),
193
198
  ApiProperty(),
194
199
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
195
200
  ], FormResultResponseDto.prototype, "data", void 0);
196
201
  _ts_decorate([
202
+ Expose(),
197
203
  ApiProperty(),
198
204
  _ts_metadata("design:type", Object)
199
205
  ], FormResultResponseDto.prototype, "submittedById", void 0);
200
206
  _ts_decorate([
207
+ Expose(),
201
208
  ApiProperty(),
202
209
  _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
203
210
  ], FormResultResponseDto.prototype, "submittedAt", void 0);
204
211
  _ts_decorate([
212
+ Expose(),
205
213
  ApiProperty(),
206
214
  _ts_metadata("design:type", Boolean)
207
215
  ], FormResultResponseDto.prototype, "isDraft", void 0);
@@ -20,10 +20,11 @@ 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 { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
23
24
  import { ApiProperty, PartialType, PickType } from '@nestjs/swagger';
25
+ import { Expose } from 'class-transformer';
24
26
  import { IsArray, IsBoolean, IsEnum, IsNotEmpty, IsObject, IsOptional, IsString, IsUUID, MaxLength } from 'class-validator';
25
27
  import { FormAccessType } from '../enums/form-access-type.enum';
26
- import { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
27
28
  export class CreateFormDto {
28
29
  constructor(){
29
30
  _define_property(this, "name", void 0);
@@ -155,40 +156,49 @@ export class FormResponseDto extends IdentityResponseDto {
155
156
  }
156
157
  }
157
158
  _ts_decorate([
159
+ Expose(),
158
160
  ApiProperty(),
159
161
  _ts_metadata("design:type", String)
160
162
  ], FormResponseDto.prototype, "name", void 0);
161
163
  _ts_decorate([
164
+ Expose(),
162
165
  ApiProperty(),
163
166
  _ts_metadata("design:type", Object)
164
167
  ], FormResponseDto.prototype, "description", void 0);
165
168
  _ts_decorate([
169
+ Expose(),
166
170
  ApiProperty(),
167
171
  _ts_metadata("design:type", Object)
168
172
  ], FormResponseDto.prototype, "slug", void 0);
169
173
  _ts_decorate([
174
+ Expose(),
170
175
  ApiProperty(),
171
176
  _ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
172
177
  ], FormResponseDto.prototype, "schema", void 0);
173
178
  _ts_decorate([
179
+ Expose(),
174
180
  ApiProperty(),
175
181
  _ts_metadata("design:type", Number)
176
182
  ], FormResponseDto.prototype, "schemaVersion", void 0);
177
183
  _ts_decorate([
184
+ Expose(),
178
185
  ApiProperty({
179
186
  enum: FormAccessType
180
187
  }),
181
188
  _ts_metadata("design:type", typeof FormAccessType === "undefined" ? Object : FormAccessType)
182
189
  ], FormResponseDto.prototype, "accessType", void 0);
183
190
  _ts_decorate([
191
+ Expose(),
184
192
  ApiProperty(),
185
193
  _ts_metadata("design:type", Object)
186
194
  ], FormResponseDto.prototype, "actionGroups", void 0);
187
195
  _ts_decorate([
196
+ Expose(),
188
197
  ApiProperty(),
189
198
  _ts_metadata("design:type", Object)
190
199
  ], FormResponseDto.prototype, "companyId", void 0);
191
200
  _ts_decorate([
201
+ Expose(),
192
202
  ApiProperty(),
193
203
  _ts_metadata("design:type", Boolean)
194
204
  ], FormResponseDto.prototype, "isActive", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flusys/nestjs-form-builder",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
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.1.1",
88
- "@flusys/nestjs-shared": "5.1.1"
87
+ "@flusys/nestjs-core": "5.1.2",
88
+ "@flusys/nestjs-shared": "5.1.2"
89
89
  }
90
90
  }