@triproject/nestjs-core 1.0.44 → 1.0.46

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.
@@ -46,9 +46,9 @@ _ts_decorate([
46
46
  (0, _common.Inject)(_cache.AppCache),
47
47
  _ts_metadata("design:type", void 0 === _cache.AppCache ? Object : _cache.AppCache)
48
48
  ], AppController.prototype, "appCache", void 0), AppController = _ts_decorate([
49
- _swaggerhelper.SwaggerApiInternalServerErrorResponse,
50
- _swaggerhelper.SwaggerApiBadSwaGatewayResponse,
51
- _swaggerhelper.SwaggerApiConflictResponse,
52
- _swaggerhelper.SwaggerApiForbiddenResponse,
53
- _swaggerhelper.SwaggerApiUnauthorizedResponse
49
+ (0, _swaggerhelper.SwaggerApiInternalServerErrorResponse)(),
50
+ (0, _swaggerhelper.SwaggerApiBadSwaGatewayResponse)(),
51
+ (0, _swaggerhelper.SwaggerApiConflictResponse)(),
52
+ (0, _swaggerhelper.SwaggerApiForbiddenResponse)(),
53
+ (0, _swaggerhelper.SwaggerApiUnauthorizedResponse)()
54
54
  ], AppController);
@@ -182,7 +182,9 @@ let BasePaginateRequest = class BasePaginateRequest {
182
182
  _ts_decorate([
183
183
  (0, _swagger.ApiProperty)({
184
184
  example: 10,
185
- description: 'Number of items per page'
185
+ description: 'Number of items per page',
186
+ required: !1,
187
+ type: Number
186
188
  }),
187
189
  (0, _classvalidator.IsOptional)(),
188
190
  (0, _classvalidator.IsNumber)(),
@@ -190,7 +192,9 @@ _ts_decorate([
190
192
  ], BasePaginateRequest.prototype, "perPage", void 0), _ts_decorate([
191
193
  (0, _swagger.ApiProperty)({
192
194
  example: 'search query',
193
- description: 'Search query'
195
+ description: 'Search query',
196
+ required: !1,
197
+ type: String
194
198
  }),
195
199
  (0, _classvalidator.IsOptional)(),
196
200
  (0, _classvalidator.IsString)(),
@@ -198,10 +202,12 @@ _ts_decorate([
198
202
  ], BasePaginateRequest.prototype, "q", void 0), _ts_decorate([
199
203
  (0, _swagger.ApiProperty)({
200
204
  example: 'createdAt',
201
- description: 'Order by field'
205
+ description: 'Order by field',
206
+ required: !1,
207
+ type: String
202
208
  }),
203
- (0, _classvalidator.IsString)(),
204
209
  (0, _classvalidator.IsOptional)(),
210
+ (0, _classvalidator.IsString)(),
205
211
  _ts_metadata("design:type", "u" < typeof KeyOfModel ? Object : KeyOfModel)
206
212
  ], BasePaginateRequest.prototype, "orderBy", void 0), _ts_decorate([
207
213
  (0, _swagger.ApiProperty)({
@@ -210,8 +216,11 @@ _ts_decorate([
210
216
  'ASC',
211
217
  'DESC'
212
218
  ],
213
- description: 'Sort order'
219
+ description: 'Sort order',
220
+ required: !1,
221
+ type: String
214
222
  }),
223
+ (0, _classvalidator.IsOptional)(),
215
224
  (0, _classvalidator.IsEnum)([
216
225
  'ASC',
217
226
  'DESC'
@@ -224,7 +233,9 @@ let PaginateRequest = class PaginateRequest extends BasePaginateRequest {
224
233
  _ts_decorate([
225
234
  (0, _swagger.ApiProperty)({
226
235
  example: 1,
227
- description: 'Current page number'
236
+ description: 'Current page number',
237
+ required: !1,
238
+ type: Number
228
239
  }),
229
240
  (0, _classvalidator.IsOptional)(),
230
241
  (0, _classvalidator.IsNumber)(),
@@ -333,7 +344,9 @@ function SchedulerCol() {
333
344
  _ts_decorate([
334
345
  (0, _swagger.ApiProperty)({
335
346
  example: 'cursor_string',
336
- description: 'Cursor string for pagination'
347
+ description: 'Cursor string for pagination',
348
+ required: !1,
349
+ type: String
337
350
  }),
338
351
  (0, _classvalidator.IsOptional)(),
339
352
  (0, _classvalidator.IsString)(),
@@ -1,33 +1,36 @@
1
- export declare const SwaggerApiBadRequestResponse: MethodDecorator & ClassDecorator;
2
- export declare const SwaggerApiUnauthorizedResponse: MethodDecorator & ClassDecorator;
3
- export declare const SwaggerApiForbiddenResponse: MethodDecorator & ClassDecorator;
4
- export declare const SwaggerApiNotFoundResponse: MethodDecorator & ClassDecorator;
5
- export declare const SwaggerApiBadSwaGatewayResponse: MethodDecorator & ClassDecorator;
6
- export declare const SwaggerApiInternalServerErrorResponse: MethodDecorator & ClassDecorator;
7
- export declare const SwaggerApiConflictResponse: MethodDecorator & ClassDecorator;
8
- export declare const SwaggerApiNoContentResponse: MethodDecorator & ClassDecorator;
1
+ export declare const SwaggerApiBadRequestResponse: () => MethodDecorator & ClassDecorator;
2
+ export declare const SwaggerApiUnauthorizedResponse: () => MethodDecorator & ClassDecorator;
3
+ export declare const SwaggerApiForbiddenResponse: () => MethodDecorator & ClassDecorator;
4
+ export declare const SwaggerApiNotFoundResponse: () => MethodDecorator & ClassDecorator;
5
+ export declare const SwaggerApiBadSwaGatewayResponse: () => MethodDecorator & ClassDecorator;
6
+ export declare const SwaggerApiInternalServerErrorResponse: () => MethodDecorator & ClassDecorator;
7
+ export declare const SwaggerApiConflictResponse: () => MethodDecorator & ClassDecorator;
8
+ export declare const SwaggerApiNoContentResponse: () => MethodDecorator & ClassDecorator;
9
9
  export declare const SwaggerApiSuccessResponse: (classType: any) => MethodDecorator & ClassDecorator;
10
10
  export declare const SwaggerApiCreatedResponse: (classType: any) => MethodDecorator & ClassDecorator;
11
11
  export declare function SwaggerApiPaginateResponse<T extends new (...args: any[]) => any>(classType: T): MethodDecorator & ClassDecorator;
12
- export declare const ApiNameProperty: PropertyDecorator;
13
- export declare const ApiCompanyProperty: PropertyDecorator;
14
- export declare const ApiCityProperty: PropertyDecorator;
15
- export declare const ApiProvinceProperty: PropertyDecorator;
16
- export declare const ApiAddressProperty: PropertyDecorator;
17
- export declare const ApiEmailProperty: PropertyDecorator;
18
- export declare const ApiPhoneProperty: PropertyDecorator;
19
- export declare const ApiPasswordProperty: PropertyDecorator;
20
- export declare const ApiTokenProperty: PropertyDecorator;
21
- export declare const ApiUuidProperty: PropertyDecorator;
22
- export declare const ApiBooleanProperty: PropertyDecorator;
23
- export declare const ApiNumberProperty: PropertyDecorator;
24
- export declare const ApiStringProperty: PropertyDecorator;
25
- export declare const ApiEnumProperty: (enums: string[]) => PropertyDecorator;
26
- export declare const ApiDateProperty: PropertyDecorator;
27
- export declare const ApiDateOnlyProperty: PropertyDecorator;
28
- export declare const ApiTimeProperty: PropertyDecorator;
29
- export declare const ApiUrlProperty: PropertyDecorator;
30
- export declare const ApiUuidArrayProperty: PropertyDecorator;
31
- export declare const ApiStringArrayProperty: PropertyDecorator;
32
- export declare const ApiNumberArrayProperty: PropertyDecorator;
33
- export declare const ApiDateArrayProperty: PropertyDecorator;
12
+ export declare const ApiNameProperty: (required?: boolean) => PropertyDecorator;
13
+ export declare const ApiCompanyProperty: (required?: boolean) => PropertyDecorator;
14
+ export declare const ApiCityProperty: (required?: boolean) => PropertyDecorator;
15
+ export declare const ApiProvinceProperty: (required?: boolean) => PropertyDecorator;
16
+ export declare const ApiAddressProperty: (required?: boolean) => PropertyDecorator;
17
+ export declare const ApiEmailProperty: (required?: boolean) => PropertyDecorator;
18
+ export declare const ApiPhoneProperty: (required?: boolean) => PropertyDecorator;
19
+ export declare const ApiPasswordProperty: (required?: boolean) => PropertyDecorator;
20
+ export declare const ApiTokenProperty: (required?: boolean) => PropertyDecorator;
21
+ export declare const ApiUuidProperty: (required?: boolean) => PropertyDecorator;
22
+ export declare const ApiBooleanProperty: (required?: boolean) => PropertyDecorator;
23
+ export declare const ApiNumberProperty: (required?: boolean) => PropertyDecorator;
24
+ export declare const ApiStringProperty: (required?: boolean) => PropertyDecorator;
25
+ export declare const ApiEnumProperty: (enums: string[], required?: boolean) => PropertyDecorator;
26
+ export declare const ApiDateProperty: (required?: boolean) => PropertyDecorator;
27
+ export declare const ApiDateOnlyProperty: (required?: boolean) => PropertyDecorator;
28
+ export declare const ApiTimeProperty: (required?: boolean) => PropertyDecorator;
29
+ export declare const ApiUrlProperty: (required?: boolean) => PropertyDecorator;
30
+ export declare const ApiUuidArrayProperty: (required?: boolean) => PropertyDecorator;
31
+ export declare const ApiStringArrayProperty: (required?: boolean) => PropertyDecorator;
32
+ export declare const ApiNumberArrayProperty: (required?: boolean) => PropertyDecorator;
33
+ export declare const ApiDateArrayProperty: (required?: boolean) => PropertyDecorator;
34
+ export declare const ApiBooleanArrayProperty: (required?: boolean) => PropertyDecorator;
35
+ export declare const ApiEnumArrayProperty: (enums: string[], required?: boolean) => PropertyDecorator;
36
+ export declare const ApiInProperty: (enums: string[], required?: boolean) => PropertyDecorator;
@@ -6,6 +6,9 @@ var target = exports, all = {
6
6
  get ApiAddressProperty () {
7
7
  return ApiAddressProperty;
8
8
  },
9
+ get ApiBooleanArrayProperty () {
10
+ return ApiBooleanArrayProperty;
11
+ },
9
12
  get ApiBooleanProperty () {
10
13
  return ApiBooleanProperty;
11
14
  },
@@ -27,9 +30,15 @@ var target = exports, all = {
27
30
  get ApiEmailProperty () {
28
31
  return ApiEmailProperty;
29
32
  },
33
+ get ApiEnumArrayProperty () {
34
+ return ApiEnumArrayProperty;
35
+ },
30
36
  get ApiEnumProperty () {
31
37
  return ApiEnumProperty;
32
38
  },
39
+ get ApiInProperty () {
40
+ return ApiInProperty;
41
+ },
33
42
  get ApiNameProperty () {
34
43
  return ApiNameProperty;
35
44
  },
@@ -148,11 +157,11 @@ _ts_decorate([
148
157
  }),
149
158
  _ts_metadata("design:type", "u" < typeof Record ? Object : Record)
150
159
  ], BadRequestExample.prototype, "errors", void 0);
151
- let SwaggerApiBadRequestResponse = (0, _swagger.ApiResponse)({
152
- status: 400,
153
- description: 'Bad Request',
154
- type: BadRequestExample
155
- });
160
+ let SwaggerApiBadRequestResponse = ()=>(0, _swagger.ApiResponse)({
161
+ status: 400,
162
+ description: 'Bad Request',
163
+ type: BadRequestExample
164
+ });
156
165
  let UnauthorizedExample = class UnauthorizedExample {
157
166
  statusCode;
158
167
  message;
@@ -168,11 +177,11 @@ _ts_decorate([
168
177
  }),
169
178
  _ts_metadata("design:type", String)
170
179
  ], UnauthorizedExample.prototype, "message", void 0);
171
- let SwaggerApiUnauthorizedResponse = (0, _swagger.ApiResponse)({
172
- status: 401,
173
- description: 'Unauthorized',
174
- type: UnauthorizedExample
175
- });
180
+ let SwaggerApiUnauthorizedResponse = ()=>(0, _swagger.ApiResponse)({
181
+ status: 401,
182
+ description: 'Unauthorized',
183
+ type: UnauthorizedExample
184
+ });
176
185
  let ForbiddenExample = class ForbiddenExample {
177
186
  statusCode;
178
187
  message;
@@ -188,11 +197,11 @@ _ts_decorate([
188
197
  }),
189
198
  _ts_metadata("design:type", String)
190
199
  ], ForbiddenExample.prototype, "message", void 0);
191
- let SwaggerApiForbiddenResponse = (0, _swagger.ApiResponse)({
192
- status: 403,
193
- description: 'Forbidden',
194
- type: ForbiddenExample
195
- });
200
+ let SwaggerApiForbiddenResponse = ()=>(0, _swagger.ApiResponse)({
201
+ status: 403,
202
+ description: 'Forbidden',
203
+ type: ForbiddenExample
204
+ });
196
205
  let NotFoundExample = class NotFoundExample {
197
206
  statusCode;
198
207
  message;
@@ -208,11 +217,11 @@ _ts_decorate([
208
217
  }),
209
218
  _ts_metadata("design:type", String)
210
219
  ], NotFoundExample.prototype, "message", void 0);
211
- let SwaggerApiNotFoundResponse = (0, _swagger.ApiResponse)({
212
- status: 404,
213
- description: 'Not Found',
214
- type: NotFoundExample
215
- });
220
+ let SwaggerApiNotFoundResponse = ()=>(0, _swagger.ApiResponse)({
221
+ status: 404,
222
+ description: 'Not Found',
223
+ type: NotFoundExample
224
+ });
216
225
  let BadSwaGatewayExample = class BadSwaGatewayExample {
217
226
  statusCode;
218
227
  message;
@@ -228,11 +237,11 @@ _ts_decorate([
228
237
  }),
229
238
  _ts_metadata("design:type", String)
230
239
  ], BadSwaGatewayExample.prototype, "message", void 0);
231
- let SwaggerApiBadSwaGatewayResponse = (0, _swagger.ApiResponse)({
232
- status: 502,
233
- description: 'Bad Gateway',
234
- type: BadSwaGatewayExample
235
- });
240
+ let SwaggerApiBadSwaGatewayResponse = ()=>(0, _swagger.ApiResponse)({
241
+ status: 502,
242
+ description: 'Bad Gateway',
243
+ type: BadSwaGatewayExample
244
+ });
236
245
  let InternalServerErrorExample = class InternalServerErrorExample {
237
246
  statusCode;
238
247
  message;
@@ -248,11 +257,11 @@ _ts_decorate([
248
257
  }),
249
258
  _ts_metadata("design:type", String)
250
259
  ], InternalServerErrorExample.prototype, "message", void 0);
251
- let SwaggerApiInternalServerErrorResponse = (0, _swagger.ApiResponse)({
252
- status: 500,
253
- description: 'Internal Server Error',
254
- type: InternalServerErrorExample
255
- });
260
+ let SwaggerApiInternalServerErrorResponse = ()=>(0, _swagger.ApiResponse)({
261
+ status: 500,
262
+ description: 'Internal Server Error',
263
+ type: InternalServerErrorExample
264
+ });
256
265
  let ConflictExample = class ConflictExample {
257
266
  statusCode;
258
267
  message;
@@ -268,11 +277,11 @@ _ts_decorate([
268
277
  }),
269
278
  _ts_metadata("design:type", String)
270
279
  ], ConflictExample.prototype, "message", void 0);
271
- let SwaggerApiConflictResponse = (0, _swagger.ApiResponse)({
272
- status: 409,
273
- description: 'Conflict',
274
- type: ConflictExample
275
- });
280
+ let SwaggerApiConflictResponse = ()=>(0, _swagger.ApiResponse)({
281
+ status: 409,
282
+ description: 'Conflict',
283
+ type: ConflictExample
284
+ });
276
285
  let NoContentExample = class NoContentExample {
277
286
  statusCode;
278
287
  message;
@@ -288,11 +297,11 @@ _ts_decorate([
288
297
  }),
289
298
  _ts_metadata("design:type", String)
290
299
  ], NoContentExample.prototype, "message", void 0);
291
- let SwaggerApiNoContentResponse = (0, _swagger.ApiResponse)({
292
- status: 204,
293
- description: 'No Content',
294
- type: NoContentExample
295
- }), SwaggerApiSuccessResponse = (classType)=>(0, _swagger.ApiResponse)({
300
+ let SwaggerApiNoContentResponse = ()=>(0, _swagger.ApiResponse)({
301
+ status: 204,
302
+ description: 'No Content',
303
+ type: NoContentExample
304
+ }), SwaggerApiSuccessResponse = (classType)=>(0, _swagger.ApiResponse)({
296
305
  status: 200,
297
306
  description: 'Success',
298
307
  type: ((classType)=>{
@@ -407,68 +416,150 @@ function SwaggerApiPaginateResponse(classType) {
407
416
  })(classType)
408
417
  });
409
418
  }
410
- let ApiNameProperty = (0, _swagger.ApiProperty)({
411
- example: 'John Doe'
412
- }), ApiCompanyProperty = (0, _swagger.ApiProperty)({
413
- example: 'PT Gundala Permai'
414
- }), ApiCityProperty = (0, _swagger.ApiProperty)({
415
- example: 'Jakarta'
416
- }), ApiProvinceProperty = (0, _swagger.ApiProperty)({
417
- example: 'DKI Jakarta'
418
- }), ApiAddressProperty = (0, _swagger.ApiProperty)({
419
- example: 'Jl. Merdeka No. 123'
420
- }), ApiEmailProperty = (0, _swagger.ApiProperty)({
421
- example: 'john@gmail.com'
422
- }), ApiPhoneProperty = (0, _swagger.ApiProperty)({
423
- example: '+62128888888'
424
- }), ApiPasswordProperty = (0, _swagger.ApiProperty)({
425
- example: 'Password@#123'
426
- }), ApiTokenProperty = (0, _swagger.ApiProperty)({
427
- example: 'abcdef1234567890'
428
- }), ApiUuidProperty = (0, _swagger.ApiProperty)({
429
- example: '123e4567-e89b-12d3-a456-426614174000'
430
- }), ApiBooleanProperty = (0, _swagger.ApiProperty)({
431
- example: !0
432
- }), ApiNumberProperty = (0, _swagger.ApiProperty)({
433
- example: 42000
434
- }), ApiStringProperty = (0, _swagger.ApiProperty)({
435
- example: 'Some string value'
436
- }), ApiEnumProperty = (enums)=>(0, _swagger.ApiProperty)({
419
+ let ApiNameProperty = (required = !0)=>(0, _swagger.ApiProperty)({
420
+ example: 'John Doe',
421
+ required,
422
+ type: String
423
+ }), ApiCompanyProperty = (required = !0)=>(0, _swagger.ApiProperty)({
424
+ example: 'PT Gundala Permai',
425
+ required,
426
+ type: String
427
+ }), ApiCityProperty = (required = !0)=>(0, _swagger.ApiProperty)({
428
+ example: 'Jakarta',
429
+ required,
430
+ type: String
431
+ }), ApiProvinceProperty = (required = !0)=>(0, _swagger.ApiProperty)({
432
+ example: 'DKI Jakarta',
433
+ required,
434
+ type: String
435
+ }), ApiAddressProperty = (required = !0)=>(0, _swagger.ApiProperty)({
436
+ example: 'Jl. Merdeka No. 123',
437
+ required,
438
+ type: String
439
+ }), ApiEmailProperty = (required = !0)=>(0, _swagger.ApiProperty)({
440
+ example: 'john@gmail.com',
441
+ required,
442
+ type: String
443
+ }), ApiPhoneProperty = (required = !0)=>(0, _swagger.ApiProperty)({
444
+ example: '+62128888888',
445
+ required,
446
+ type: String
447
+ }), ApiPasswordProperty = (required = !0)=>(0, _swagger.ApiProperty)({
448
+ example: 'Password@#123',
449
+ required,
450
+ type: String
451
+ }), ApiTokenProperty = (required = !0)=>(0, _swagger.ApiProperty)({
452
+ example: 'abcdef1234567890',
453
+ required,
454
+ type: String
455
+ }), ApiUuidProperty = (required = !0)=>(0, _swagger.ApiProperty)({
456
+ example: '123e4567-e89b-12d3-a456-426614174000',
457
+ required,
458
+ type: String
459
+ }), ApiBooleanProperty = (required = !0)=>(0, _swagger.ApiProperty)({
460
+ example: !0,
461
+ required,
462
+ type: Boolean
463
+ }), ApiNumberProperty = (required = !0)=>(0, _swagger.ApiProperty)({
464
+ example: 42000,
465
+ required,
466
+ type: Number
467
+ }), ApiStringProperty = (required = !0)=>(0, _swagger.ApiProperty)({
468
+ example: 'Some string value',
469
+ required,
470
+ type: String
471
+ }), ApiEnumProperty = (enums, required = !0)=>(0, _swagger.ApiProperty)({
437
472
  example: enums[0],
438
- enum: enums
439
- }), ApiDateProperty = (0, _swagger.ApiProperty)({
440
- example: '2024-01-01T00:00:00.000Z'
441
- }), ApiDateOnlyProperty = (0, _swagger.ApiProperty)({
442
- example: '2024-01-01'
443
- }), ApiTimeProperty = (0, _swagger.ApiProperty)({
444
- example: '14:30:00'
445
- }), ApiUrlProperty = (0, _swagger.ApiProperty)({
446
- example: 'https://www.example.com/resource'
447
- }), ApiUuidArrayProperty = (0, _swagger.ApiProperty)({
448
- example: [
449
- '123e4567-e89b-12d3-a456-426614174000',
450
- '987e6543-e21b-12d3-a456-426614174999'
451
- ],
452
- isArray: !0
453
- }), ApiStringArrayProperty = (0, _swagger.ApiProperty)({
454
- example: [
455
- 'string1',
456
- 'string2',
457
- 'string3'
458
- ],
459
- isArray: !0
460
- }), ApiNumberArrayProperty = (0, _swagger.ApiProperty)({
461
- example: [
462
- 10,
463
- 20,
464
- 30,
465
- 40
466
- ],
467
- isArray: !0
468
- }), ApiDateArrayProperty = (0, _swagger.ApiProperty)({
469
- example: [
470
- '2024-01-01T00:00:00.000Z',
471
- '2024-02-01T00:00:00.000Z'
472
- ],
473
- isArray: !0
474
- });
473
+ enum: enums,
474
+ required
475
+ }), ApiDateProperty = (required = !0)=>(0, _swagger.ApiProperty)({
476
+ example: '2024-01-01T00:00:00.000Z',
477
+ required,
478
+ type: String
479
+ }), ApiDateOnlyProperty = (required = !0)=>(0, _swagger.ApiProperty)({
480
+ example: '2024-01-01',
481
+ required,
482
+ type: String
483
+ }), ApiTimeProperty = (required = !0)=>(0, _swagger.ApiProperty)({
484
+ example: '14:30:00',
485
+ required,
486
+ type: String
487
+ }), ApiUrlProperty = (required = !0)=>(0, _swagger.ApiProperty)({
488
+ example: 'https://www.example.com/resource',
489
+ required,
490
+ type: String
491
+ }), ApiUuidArrayProperty = (required = !0)=>(0, _swagger.ApiProperty)({
492
+ example: [
493
+ '123e4567-e89b-12d3-a456-426614174000',
494
+ '987e6543-e21b-12d3-a456-426614174999'
495
+ ],
496
+ type: [
497
+ String
498
+ ],
499
+ isArray: !0,
500
+ required
501
+ }), ApiStringArrayProperty = (required = !0)=>(0, _swagger.ApiProperty)({
502
+ example: [
503
+ 'string1',
504
+ 'string2',
505
+ 'string3'
506
+ ],
507
+ type: [
508
+ String
509
+ ],
510
+ isArray: !0,
511
+ required
512
+ }), ApiNumberArrayProperty = (required = !0)=>(0, _swagger.ApiProperty)({
513
+ example: [
514
+ 10,
515
+ 20,
516
+ 30,
517
+ 40
518
+ ],
519
+ type: [
520
+ Number
521
+ ],
522
+ isArray: !0,
523
+ required
524
+ }), ApiDateArrayProperty = (required = !0)=>(0, _swagger.ApiProperty)({
525
+ example: [
526
+ '2024-01-01T00:00:00.000Z',
527
+ '2024-02-01T00:00:00.000Z'
528
+ ],
529
+ type: [
530
+ String
531
+ ],
532
+ isArray: !0,
533
+ required
534
+ }), ApiBooleanArrayProperty = (required = !0)=>(0, _swagger.ApiProperty)({
535
+ example: [
536
+ !0,
537
+ !1,
538
+ !0
539
+ ],
540
+ type: [
541
+ Boolean
542
+ ],
543
+ isArray: !0,
544
+ required
545
+ }), ApiEnumArrayProperty = (enums, required = !0)=>(0, _swagger.ApiProperty)({
546
+ example: [
547
+ enums[0],
548
+ enums[1]
549
+ ],
550
+ isArray: !0,
551
+ type: [
552
+ String
553
+ ],
554
+ enum: enums,
555
+ required
556
+ }), ApiInProperty = (enums, required = !0)=>(0, _swagger.ApiProperty)({
557
+ example: enums.slice(0, 2),
558
+ isArray: !0,
559
+ type: [
560
+ String
561
+ ],
562
+ enum: enums,
563
+ description: 'Value must be one of the specified enum values',
564
+ required
565
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triproject/nestjs-core",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "author": "",
5
5
  "license": "ISC",
6
6
  "description": "A collection of NestJS modules and utilities to speed up development.",