@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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}),
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
}),
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}),
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}),
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}),
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}),
|
|
435
|
-
|
|
436
|
-
|
|
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
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
'
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
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
|
+
});
|