@elsikora/nestjs-crud-automator 1.9.0-dev.1 → 1.9.0-dev.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.
- package/dist/cjs/class/utility/dto/strategy/response.class.js +7 -7
- package/dist/cjs/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/cjs/decorator/api/function/create.decorator.js +3 -2
- package/dist/cjs/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/delete.decorator.js +3 -2
- package/dist/cjs/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-list.decorator.js +3 -2
- package/dist/cjs/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get-many.decorator.js +4 -3
- package/dist/cjs/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/get.decorator.js +4 -3
- package/dist/cjs/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/function/update.decorator.js +3 -2
- package/dist/cjs/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/boolean.decorator.js +3 -3
- package/dist/cjs/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/date.decorator.js +3 -3
- package/dist/cjs/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/enum.decorator.js +3 -3
- package/dist/cjs/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/number.decorator.js +4 -6
- package/dist/cjs/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/object.decorator.js +3 -3
- package/dist/cjs/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +3 -3
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/uuid.decorator.js +3 -3
- package/dist/cjs/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service.decorator.js +2 -1
- package/dist/cjs/decorator/api/service.decorator.js.map +1 -1
- package/dist/cjs/enum/utility/error-string/action.enum.d.ts +909 -0
- package/dist/cjs/enum/utility/error-string/action.enum.js +913 -0
- package/dist/cjs/enum/utility/error-string/action.enum.js.map +1 -0
- package/dist/cjs/enum/utility/error-string/composite-action.enum.d.ts +99 -0
- package/dist/cjs/enum/utility/error-string/composite-action.enum.js +103 -0
- package/dist/cjs/enum/utility/error-string/composite-action.enum.js.map +1 -0
- package/dist/cjs/enum/utility/error-string/index.d.ts +2 -0
- package/dist/cjs/enum/utility/index.d.ts +1 -1
- package/dist/cjs/factory/api/controller.factory.js +3 -1
- package/dist/cjs/factory/api/controller.factory.js.map +1 -1
- package/dist/cjs/index.js +7 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js +3 -9
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/cjs/interface/decorator/api/controller/properties/route/base.interface.d.ts +1 -0
- package/dist/cjs/interface/utility/index.d.ts +0 -1
- package/dist/cjs/type/decorator/api/property/base/request-properties.type.d.ts +2 -2
- package/dist/cjs/type/decorator/api/property/base/response-properties.type.d.ts +1 -0
- package/dist/cjs/type/decorator/api/property/describe/dto/properties.type.d.ts +3 -1
- package/dist/cjs/type/utility/error-string/base-properties.type.d.ts +5 -0
- package/dist/cjs/type/utility/error-string/composite-properties.type.d.ts +6 -0
- package/dist/cjs/type/utility/error-string/index.d.ts +3 -0
- package/dist/cjs/type/utility/error-string/properties.type.d.ts +3 -0
- package/dist/cjs/type/utility/index.d.ts +1 -0
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js +1 -1
- package/dist/cjs/utility/api/controller/transform-data.utility.js +9 -8
- package/dist/cjs/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js +1 -1
- package/dist/cjs/utility/camel-case-string.utility.js +5 -0
- package/dist/cjs/utility/camel-case-string.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-dynamic.utility.js +23 -1
- package/dist/cjs/utility/dto/generate-dynamic.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-exception.utility.js +1 -0
- package/dist/cjs/utility/dto/generate-exception.utility.js.map +1 -1
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js +8 -8
- package/dist/cjs/utility/dto/generate-filter-decorator.utility.js.map +1 -1
- package/dist/cjs/utility/dto/get-decorator-config.utility.js.map +1 -1
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js +1 -0
- package/dist/cjs/utility/dto/get-get-list-query-base-class.utility.js.map +1 -1
- package/dist/cjs/utility/error-string.utility.d.ts +3 -3
- package/dist/cjs/utility/error-string.utility.js +9 -3
- package/dist/cjs/utility/error-string.utility.js.map +1 -1
- package/dist/esm/class/utility/dto/strategy/response.class.js +7 -7
- package/dist/esm/class/utility/dto/strategy/response.class.js.map +1 -1
- package/dist/esm/decorator/api/function/create.decorator.js +2 -1
- package/dist/esm/decorator/api/function/create.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/delete.decorator.js +2 -1
- package/dist/esm/decorator/api/function/delete.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get-list.decorator.js +2 -1
- package/dist/esm/decorator/api/function/get-list.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get-many.decorator.js +2 -1
- package/dist/esm/decorator/api/function/get-many.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/get.decorator.js +2 -1
- package/dist/esm/decorator/api/function/get.decorator.js.map +1 -1
- package/dist/esm/decorator/api/function/update.decorator.js +2 -1
- package/dist/esm/decorator/api/function/update.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/boolean.decorator.js +3 -3
- package/dist/esm/decorator/api/property/boolean.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/date.decorator.js +3 -3
- package/dist/esm/decorator/api/property/date.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/enum.decorator.js +3 -3
- package/dist/esm/decorator/api/property/enum.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/number.decorator.js +4 -6
- package/dist/esm/decorator/api/property/number.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/object.decorator.js +3 -3
- package/dist/esm/decorator/api/property/object.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/string.decorator.js +3 -3
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/uuid.decorator.js +3 -3
- package/dist/esm/decorator/api/property/uuid.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service.decorator.js +2 -1
- package/dist/esm/decorator/api/service.decorator.js.map +1 -1
- package/dist/esm/enum/utility/error-string/action.enum.d.ts +909 -0
- package/dist/esm/enum/utility/error-string/action.enum.js +913 -0
- package/dist/esm/enum/utility/error-string/action.enum.js.map +1 -0
- package/dist/esm/enum/utility/error-string/composite-action.enum.d.ts +99 -0
- package/dist/esm/enum/utility/error-string/composite-action.enum.js +103 -0
- package/dist/esm/enum/utility/error-string/composite-action.enum.js.map +1 -0
- package/dist/esm/enum/utility/error-string/index.d.ts +2 -0
- package/dist/esm/enum/utility/index.d.ts +1 -1
- package/dist/esm/factory/api/controller.factory.js +3 -1
- package/dist/esm/factory/api/controller.factory.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js +3 -9
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/esm/interface/decorator/api/controller/properties/route/base.interface.d.ts +1 -0
- package/dist/esm/interface/utility/index.d.ts +0 -1
- package/dist/esm/type/decorator/api/property/base/request-properties.type.d.ts +2 -2
- package/dist/esm/type/decorator/api/property/base/response-properties.type.d.ts +1 -0
- package/dist/esm/type/decorator/api/property/describe/dto/properties.type.d.ts +3 -1
- package/dist/esm/type/utility/error-string/base-properties.type.d.ts +5 -0
- package/dist/esm/type/utility/error-string/composite-properties.type.d.ts +6 -0
- package/dist/esm/type/utility/error-string/index.d.ts +3 -0
- package/dist/esm/type/utility/error-string/properties.type.d.ts +3 -0
- package/dist/esm/type/utility/index.d.ts +1 -0
- package/dist/esm/utility/api/controller/apply-metadata.utility.js +1 -1
- package/dist/esm/utility/api/controller/transform-data.utility.js +2 -1
- package/dist/esm/utility/api/controller/transform-data.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js +1 -1
- package/dist/esm/utility/camel-case-string.utility.js +5 -0
- package/dist/esm/utility/camel-case-string.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-dynamic.utility.js +23 -1
- package/dist/esm/utility/dto/generate-dynamic.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-exception.utility.js +1 -0
- package/dist/esm/utility/dto/generate-exception.utility.js.map +1 -1
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js +8 -8
- package/dist/esm/utility/dto/generate-filter-decorator.utility.js.map +1 -1
- package/dist/esm/utility/dto/get-decorator-config.utility.js.map +1 -1
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js +1 -0
- package/dist/esm/utility/dto/get-get-list-query-base-class.utility.js.map +1 -1
- package/dist/esm/utility/error-string.utility.d.ts +3 -3
- package/dist/esm/utility/error-string.utility.js +9 -3
- package/dist/esm/utility/error-string.utility.js.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/enum/utility/error-string-action.enum.d.ts +0 -103
- package/dist/cjs/enum/utility/error-string-action.enum.js +0 -107
- package/dist/cjs/enum/utility/error-string-action.enum.js.map +0 -1
- package/dist/cjs/interface/utility/error-string-properties.interface.d.ts +0 -5
- package/dist/esm/enum/utility/error-string-action.enum.d.ts +0 -103
- package/dist/esm/enum/utility/error-string-action.enum.js +0 -107
- package/dist/esm/enum/utility/error-string-action.enum.js.map +0 -1
- package/dist/esm/interface/utility/error-string-properties.interface.d.ts +0 -5
|
@@ -18,25 +18,25 @@ class DtoStrategyResponse {
|
|
|
18
18
|
getDecoratorConfig(method, _metadata) {
|
|
19
19
|
switch (method) {
|
|
20
20
|
case routeType_enum.EApiRouteType.CREATE: {
|
|
21
|
-
return { isResponse: true };
|
|
21
|
+
return { isRequired: true, isResponse: true };
|
|
22
22
|
}
|
|
23
23
|
case routeType_enum.EApiRouteType.DELETE: {
|
|
24
|
-
return { isResponse: true };
|
|
24
|
+
return { isRequired: true, isResponse: true };
|
|
25
25
|
}
|
|
26
26
|
case routeType_enum.EApiRouteType.GET: {
|
|
27
|
-
return { isResponse: true };
|
|
27
|
+
return { isRequired: true, isResponse: true };
|
|
28
28
|
}
|
|
29
29
|
case routeType_enum.EApiRouteType.GET_LIST: {
|
|
30
|
-
return { isExpose: true, isResponse: true };
|
|
30
|
+
return { isExpose: true, isRequired: true, isResponse: true };
|
|
31
31
|
}
|
|
32
32
|
case routeType_enum.EApiRouteType.PARTIAL_UPDATE: {
|
|
33
|
-
return { isResponse: true };
|
|
33
|
+
return { isRequired: true, isResponse: true };
|
|
34
34
|
}
|
|
35
35
|
case routeType_enum.EApiRouteType.UPDATE: {
|
|
36
|
-
return { isResponse: true };
|
|
36
|
+
return { isRequired: true, isResponse: true };
|
|
37
37
|
}
|
|
38
38
|
default: {
|
|
39
|
-
return { isResponse: true };
|
|
39
|
+
return { isRequired: true, isResponse: true };
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.class.js","sources":["../../../../../../../src/class/utility/dto/strategy/response.class.ts"],"sourcesContent":[null],"names":["EApiRouteType"],"mappings":";;;;;;;;;;;;;;;;MAKa,mBAAmB,CAAA;IAC/B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC,EAAA;QAClF,QAAQ,MAAM;AACb,YAAA,KAAKA,4BAAa,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"response.class.js","sources":["../../../../../../../src/class/utility/dto/strategy/response.class.ts"],"sourcesContent":[null],"names":["EApiRouteType"],"mappings":";;;;;;;;;;;;;;;;MAKa,mBAAmB,CAAA;IAC/B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC,EAAA;QAClF,QAAQ,MAAM;AACb,YAAA,KAAKA,4BAAa,CAAC,MAAM,EAAE;gBAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9C,YAAA,KAAKA,4BAAa,CAAC,MAAM,EAAE;gBAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9C,YAAA,KAAKA,4BAAa,CAAC,GAAG,EAAE;gBACvB,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9C,YAAA,KAAKA,4BAAa,CAAC,QAAQ,EAAE;AAC5B,gBAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9D,YAAA,KAAKA,4BAAa,CAAC,cAAc,EAAE;gBAClC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9C,YAAA,KAAKA,4BAAa,CAAC,MAAM,EAAE;gBAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;YAG9C,SAAS;gBACR,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;;;AAIhD;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
4
|
+
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
4
5
|
var common = require('@nestjs/common');
|
|
5
6
|
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
6
7
|
var errorString_utility = require('../../../utility/error-string.utility.js');
|
|
@@ -47,7 +48,7 @@ async function executor(options) {
|
|
|
47
48
|
logger_utility.LoggerUtility.getLogger("ApiFunctionCreate").verbose(`Error creating entity ${String(entity.name)}:`, error);
|
|
48
49
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
49
50
|
entity: entity,
|
|
50
|
-
type:
|
|
51
|
+
type: action_enum.EErrorStringAction.CREATING_ERROR,
|
|
51
52
|
}));
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.decorator.js","sources":["../../../../../../src/decorator/api/function/create.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.decorator.js","sources":["../../../../../../src/decorator/api/function/create.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;AAWA;;;;AAIG;AACH;AACM,SAAU,iBAAiB,CAA2B,UAAkC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;AAErD,IAAA,OAAO,UAAU,MAAe,EAAE,WAAmB,EAAE,UAA8B,EAAA;AAMpF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAIlB,UAA2C,EAC3C,YAA4B,EAAA;AAE5B,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAMA,qCAAc,CAAC,6CAA6C,CAAC;;AAGpE,YAAA,OAAO,QAAQ,CAAI,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACrE,SAAC;AAED,QAAA,OAAO,UAAU;AAClB,KAAC;AACF;AAEA;;;;;AAKG;AACH,eAAe,QAAQ,CAA2B,OAAgD,EAAA;IACjG,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,GAA4C,OAAO;AAEzG,IAAA,IAAI;QACH,IAAI,YAAY,EAAE;YACjB,MAAM,eAAe,GAAkB,YAAY,CAAC,aAAa,CAAI,MAAsB,CAAC;AAE5F,YAAA,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC;;AAG9C,QAAA,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC;;IACvC,OAAO,KAAK,EAAE;AACf,QAAA,IAAI,KAAK,YAAYC,oBAAa,EAAE;AACnC,YAAA,MAAM,KAAK;;AAGZ,QAAAC,4BAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAE5G,QAAA,MAAM,IAAIC,mCAA4B,CACrCC,+BAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAEC,8BAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
4
|
+
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
4
5
|
var common = require('@nestjs/common');
|
|
5
6
|
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
6
7
|
var errorString_utility = require('../../../utility/error-string.utility.js');
|
|
@@ -65,7 +66,7 @@ async function executor(options) {
|
|
|
65
66
|
logger_utility.LoggerUtility.getLogger("ApiFunctionDelete").verbose(`Error deleting entity ${String(entity.name)}:`, error);
|
|
66
67
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
67
68
|
entity: entity,
|
|
68
|
-
type:
|
|
69
|
+
type: action_enum.EErrorStringAction.UPDATING_ERROR,
|
|
69
70
|
}));
|
|
70
71
|
}
|
|
71
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.decorator.js","sources":["../../../../../../src/decorator/api/function/delete.decorator.ts"],"sourcesContent":[null],"names":["ApiFunctionGet","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete.decorator.js","sources":["../../../../../../src/decorator/api/function/delete.decorator.ts"],"sourcesContent":[null],"names":["ApiFunctionGet","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;;AAaA;;;;AAIG;AACH;AACM,SAAU,iBAAiB,CAA2B,UAAkC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;IACrD,MAAM,YAAY,GAA6FA,4BAAc,CAAI,EAAE,MAAM,EAAE,CAAC;AAC5I,IAAA,IAAI,WAAmG;AAEvG,IAAA,OAAO,UAAU,MAAe,EAAE,WAAmB,EAAE,UAA8B,EAAA;AAMpF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAIlB,QAAuC,EACvC,YAA4B,EAAA;AAE5B,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAMC,qCAAc,CAAC,6CAA6C,CAAC;;YAGpE,IAAI,CAAC,WAAW,EAAE;AACjB,gBAAA,MAAM,aAAa,GAAoH;AACtI,oBAAA,KAAK,EAAE,YAAA;wBACN,OAAO,OAAO,CAAC,MAAM,CAACA,qCAAc,CAAC,iBAAiB,CAAC,CAAC;qBACxD;iBACD;AACD,gBAAA,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,CAAC;AAExC,gBAAA,IAAI,aAAa,CAAC,KAAK,EAAE;oBACxB,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;;qBACtC;AACN,oBAAA,MAAMA,qCAAc,CAAC,wCAAwC,CAAC;;;AAIhE,YAAA,OAAO,QAAQ,CAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AAChF,SAAC;AAED,QAAA,OAAO,UAAU;AAClB,KAAC;AACF;AAEA;;;;;AAKG;AACH,eAAe,QAAQ,CAA2B,OAAgD,EAAA;AACjG,IAAA,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,GAA4C,OAAO;AAEpH,IAAA,IAAI;QACH,MAAM,cAAc,GAAM,MAAM,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;QAEhE,IAAI,YAAY,EAAE;YACjB,MAAM,eAAe,GAAkB,YAAY,CAAC,aAAa,CAAI,MAAsB,CAAC;AAE5F,YAAA,OAAO,MAAM,eAAe,CAAC,MAAM,CAAC,cAAc,CAAC;;AAGpD,QAAA,OAAO,MAAM,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC;;IAC7C,OAAO,KAAK,EAAE;AACf,QAAA,IAAI,KAAK,YAAYC,oBAAa,EAAE;AACnC,YAAA,MAAM,KAAK;;AAGZ,QAAAC,4BAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAE5G,QAAA,MAAM,IAAIC,mCAA4B,CACrCC,+BAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAEC,8BAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
4
|
+
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
4
5
|
var common = require('@nestjs/common');
|
|
5
6
|
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
6
7
|
var errorString_utility = require('../../../utility/error-string.utility.js');
|
|
@@ -61,7 +62,7 @@ async function executor(options) {
|
|
|
61
62
|
logger_utility.LoggerUtility.getLogger("ApiFunctionGetList").verbose(`Error fetching list for entity ${String(entity.name)}:`, error);
|
|
62
63
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
63
64
|
entity: entity,
|
|
64
|
-
type:
|
|
65
|
+
type: action_enum.EErrorStringAction.FETCHING_LIST_ERROR,
|
|
65
66
|
}));
|
|
66
67
|
}
|
|
67
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-list.decorator.js","sources":["../../../../../../src/decorator/api/function/get-list.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-list.decorator.js","sources":["../../../../../../src/decorator/api/function/get-list.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;AAWA;;;;AAIG;AACH;AACM,SAAU,kBAAkB,CAA2B,UAAkC,EAAA;AAC9F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;AAErD,IAAA,OAAO,UAAU,OAAgB,EAAE,YAAoB,EAAE,UAA8B,EAAA;AACtF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAIlB,UAA4C,EAC5C,YAA4B,EAAA;AAE5B,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAMA,qCAAc,CAAC,6CAA6C,CAAC;;AAGpE,YAAA,OAAO,QAAQ,CAAI,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACrE,SAAC;AA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,mBAAmB;AAC5C,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
4
|
+
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
4
5
|
var common = require('@nestjs/common');
|
|
5
6
|
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
6
7
|
var errorString_utility = require('../../../utility/error-string.utility.js');
|
|
@@ -44,7 +45,7 @@ async function executor(options) {
|
|
|
44
45
|
items = await repository.find(properties);
|
|
45
46
|
}
|
|
46
47
|
if (items.length === 0) {
|
|
47
|
-
throw new common.NotFoundException(errorString_utility.ErrorString({ entity, type:
|
|
48
|
+
throw new common.NotFoundException(errorString_utility.ErrorString({ entity, type: action_enum.EErrorStringAction.NOT_FOUND }));
|
|
48
49
|
}
|
|
49
50
|
return items;
|
|
50
51
|
}
|
|
@@ -55,7 +56,7 @@ async function executor(options) {
|
|
|
55
56
|
logger_utility.LoggerUtility.getLogger("ApiFunctionGetMany").verbose(`Error fetching multiple entity ${String(entity.name)}:`, error);
|
|
56
57
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
57
58
|
entity,
|
|
58
|
-
type:
|
|
59
|
+
type: action_enum.EErrorStringAction.FETCHING_ERROR,
|
|
59
60
|
}));
|
|
60
61
|
}
|
|
61
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-many.decorator.js","sources":["../../../../../../src/decorator/api/function/get-many.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-many.decorator.js","sources":["../../../../../../src/decorator/api/function/get-many.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServ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KAAK;;AAGZ,QAAAC,4BAAa,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAA,+BAAA,EAAkC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAEtH,QAAA,MAAM,IAAIC,mCAA4B,CACrCJ,+BAAW,CAAC;YACX,MAAM;YACN,IAAI,EAAEC,8BAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
4
|
+
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
4
5
|
var common = require('@nestjs/common');
|
|
5
6
|
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
6
7
|
var errorString_utility = require('../../../utility/error-string.utility.js');
|
|
@@ -44,7 +45,7 @@ async function executor(options) {
|
|
|
44
45
|
item = await repository.findOne(properties);
|
|
45
46
|
}
|
|
46
47
|
if (!item) {
|
|
47
|
-
throw new common.NotFoundException(errorString_utility.ErrorString({ entity, type:
|
|
48
|
+
throw new common.NotFoundException(errorString_utility.ErrorString({ entity, type: action_enum.EErrorStringAction.NOT_FOUND }));
|
|
48
49
|
}
|
|
49
50
|
return item;
|
|
50
51
|
}
|
|
@@ -55,7 +56,7 @@ async function executor(options) {
|
|
|
55
56
|
logger_utility.LoggerUtility.getLogger("ApiFunctionGet").verbose(`Error fetching entity ${String(entity.name)}:`, error);
|
|
56
57
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
57
58
|
entity,
|
|
58
|
-
type:
|
|
59
|
+
type: action_enum.EErrorStringAction.FETCHING_ERROR,
|
|
59
60
|
}));
|
|
60
61
|
}
|
|
61
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":["ErrorException","NotFoundException","ErrorString","EErrorStringAction","HttpException","LoggerUtility","InternalServerErrorException"],"mappings":";;;;;;;;;AAWA;;;;AAIG;AACH;AACM,SAAU,cAAc,CAA2B,UAAkC,EAAA;AAC1F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;AAErD,IAAA,OAAO,UAAU,MAAe,EAAE,WAAmB,EAAE,UAA8B,EAAA;AAMpF,QAAA,UAAU,CAAC,KAAK,GAAG,gBAIlB,UAAwC,EACxC,YAA4B,EAAA;AAE5B,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAMA,qCAAc,CAAC,6CAA6C,CAAC;;AAGpE,YAAA,OAAO,QAAQ,CAAI,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACrE,SAAC;AAED,QAAA,OAAO,UAAU;AAClB,KAAC;AACF;AAEA;;;;;;AAMG;AACH,eAAe,QAAQ,CAA2B,OAA6C,EAAA;IAC9F,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,GAAyC,OAAO;AAEtG,IAAA,IAAI;AACH,QAAA,IAAI,IAAc;QAElB,IAAI,YAAY,EAAE;YACjB,MAAM,eAAe,GAAkB,YAAY,CAAC,aAAa,CAAI,MAAsB,CAAC;YAC5F,IAAI,GAAG,MAAM,eAAe,CAAC,OAAO,CAAC,UAAU,CAAC;;aAC1C;YACN,IAAI,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC;;QAG5C,IAAI,CAAC,IAAI,EAAE;AACV,YAAA,MAAM,IAAIC,wBAAiB,CAACC,+BAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAEC,8BAAkB,CAAC,SAAS,EAAE,CAAC,CAAC;;AAGzF,QAAA,OAAO,IAAI;;IACV,OAAO,KAAK,EAAE;AACf,QAAA,IAAI,KAAK,YAAYC,oBAAa,EAAE;AACnC,YAAA,MAAM,KAAK;;AAGZ,QAAAC,4BAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAEzG,QAAA,MAAM,IAAIC,mCAA4B,CACrCJ,+BAAW,CAAC;YACX,MAAM;YACN,IAAI,EAAEC,8BAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
4
|
+
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
4
5
|
var common = require('@nestjs/common');
|
|
5
6
|
var errorException_utility = require('../../../utility/error-exception.utility.js');
|
|
6
7
|
var errorString_utility = require('../../../utility/error-string.utility.js');
|
|
@@ -76,7 +77,7 @@ async function executor(options) {
|
|
|
76
77
|
logger_utility.LoggerUtility.getLogger("ApiFunctionUpdate").verbose(`Error updating entity ${String(entity.name)}:`, error);
|
|
77
78
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
78
79
|
entity: entity,
|
|
79
|
-
type:
|
|
80
|
+
type: action_enum.EErrorStringAction.UPDATING_ERROR,
|
|
80
81
|
}));
|
|
81
82
|
}
|
|
82
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":["ApiFunctionGet","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":["ApiFunctionGet","ErrorException","HttpException","LoggerUtility","InternalServerErrorException","ErrorString","EErrorStringAction"],"mappings":";;;;;;;;;;AAaA;;;;AAIG;AACH;AACM,SAAU,iBAAiB,CAA2B,UAAkC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;IACrD,MAAM,YAAY,GAA6FA,4BAAc,CAAI,EAAE,MAAM,EAAE,CAAC;AAC5I,IAAA,IAAI,WAAmG;AAEvG,IAAA,OAAO,UAAU,MAAe,EAAE,WAAmB,EAAE,UAA8B,EAAA;QAMpF,UAAU,CAAC,KAAK,GAAG,gBAIlB,QAAuC,EACvC,UAA2C,EAC3C,YAA4B,EAAA;AAE5B,YAAA,MAAM,UAAU,GAAkB,IAAI,CAAC,UAAU;YAEjD,IAAI,CAAC,UAAU,EAAE;AAChB,gBAAA,MAAMC,qCAAc,CAAC,6CAA6C,CAAC;;YAGpE,IAAI,CAAC,WAAW,EAAE;AACjB,gBAAA,MAAM,aAAa,GAAoH;AACtI,oBAAA,KAAK,EAAE,YAAA;wBACN,OAAO,OAAO,CAAC,MAAM,CAACA,qCAAc,CAAC,iBAAiB,CAAC,CAAC;qBACxD;iBACD;AACD,gBAAA,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,CAAC;AAExC,gBAAA,IAAI,aAAa,CAAC,KAAK,EAAE;oBACxB,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;;qBACtC;AACN,oBAAA,MAAMA,qCAAc,CAAC,wCAAwC,CAAC;;;AAIhE,YAAA,OAAO,QAAQ,CAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAC5F,SAAC;AAED,QAAA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C,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -85,10 +85,10 @@ function buildApiPropertyOptions(properties) {
|
|
|
85
85
|
const apiPropertyOptions = {
|
|
86
86
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
87
87
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
88
|
-
nullable: properties.isNullable,
|
|
88
|
+
nullable: !!properties.isNullable,
|
|
89
89
|
type: dataType_enum.EApiPropertyDataType.BOOLEAN,
|
|
90
90
|
};
|
|
91
|
-
apiPropertyOptions.required = properties.
|
|
91
|
+
apiPropertyOptions.required = properties.isRequired;
|
|
92
92
|
if (properties.isArray) {
|
|
93
93
|
apiPropertyOptions.isArray = true;
|
|
94
94
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -159,7 +159,7 @@ function buildResponseDecorators(properties) {
|
|
|
159
159
|
const decorators = [];
|
|
160
160
|
if (properties.isResponse) {
|
|
161
161
|
decorators.push(swagger.ApiResponseProperty());
|
|
162
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
162
|
+
if (!("isExpose" in properties) || properties.isExpose === undefined || ("isExpose" in properties && properties.isExpose)) {
|
|
163
163
|
decorators.push(classTransformer.Expose());
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsBoolean","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDG;AACG,SAAU,kBAAkB,CAAC,UAAsC,EAAA;IACxE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;AACtE,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;;
|
|
1
|
+
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsBoolean","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDG;AACG,SAAU,kBAAkB,CAAC,UAAsC,EAAA;IACxE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;AACtE,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;;AAEhF,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;QACjC,IAAI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MAAM,GAAkB,EAAE;AAEhC,IAAA,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;QAChC,IAAI,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE;AAC9C,YAAA,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC;;AAGrD,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;AAGzC,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;QAGzC,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;AAIhF,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,0BAAA,EAA6B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEnE;;;;"}
|
|
@@ -90,10 +90,10 @@ function buildApiPropertyOptions(properties) {
|
|
|
90
90
|
const apiPropertyOptions = {
|
|
91
91
|
description: `${String(properties.entity.name)} ${getDescription(properties.identifier)}`,
|
|
92
92
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
93
|
-
nullable: properties.isNullable,
|
|
93
|
+
nullable: !!properties.isNullable,
|
|
94
94
|
type: dataType_enum.EApiPropertyDataType.STRING,
|
|
95
95
|
};
|
|
96
|
-
apiPropertyOptions.required = properties.
|
|
96
|
+
apiPropertyOptions.required = properties.isRequired;
|
|
97
97
|
if (properties.isArray) {
|
|
98
98
|
apiPropertyOptions.isArray = true;
|
|
99
99
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -175,7 +175,7 @@ function buildResponseDecorators(properties) {
|
|
|
175
175
|
const decorators = [];
|
|
176
176
|
if (properties.isResponse) {
|
|
177
177
|
decorators.push(swagger.ApiResponseProperty());
|
|
178
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
178
|
+
if (!("isExpose" in properties) || properties.isExpose === undefined || ("isExpose" in properties && properties.isExpose)) {
|
|
179
179
|
decorators.push(classTransformer.Expose());
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsDate","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","EApiPropertyDateIdentifier","EApiPropertyDateType"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;IACtE,MAAM,OAAO,GAAW,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC;AAErD,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,CAAE,CAAA;;
|
|
1
|
+
{"version":3,"file":"date.decorator.js","sources":["../../../../../../src/decorator/api/property/date.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","IsDate","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","EApiPropertyDateIdentifier","EApiPropertyDateType"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;IACtE,MAAM,OAAO,GAAW,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC;AAErD,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,CAAE,CAAA;;AAEzF,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;QACjC,IAAI,EAAEC,kCAAoB,CAAC,MAAM;KACjC;AAED,IAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU;AAEnD,IAAA,IAAI,UAAU,CAAC,OAAO,EAAE;AACvB,QAAA,kBAAkB,CAAC,OAAO,GAAG,IAAI;AACjC,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,WAAW,GAAG,UAAU,CAAC,aAAa;QACzD,kBAAkB,CAAC,K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,OAAO,8BAA8B;;AAGtC,QAAA,KAAKA,8BAAoB,CAAC,SAAS,EAAE;AACpC,YAAA,OAAO,mEAAmE;;AAG3E,QAAA,KAAKA,8BAAoB,CAAC,IAAI,EAAE;AAC/B,YAAA,OAAO,8BAA8B;;;AAGxC;AAEA;;;;;;;;AAQG;AACH,SAAS,eAAe,CAAC,UAAsC,EAAA;IAC9D,MAAM,MAAM,GAAkB,EAAE;AAEhC,IAAA,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;QAChC,IAAI,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE;AAC9C,YAAA,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC;;AAGrD,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;AAGzC,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;QAGzC,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;AAIhF,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEhE;;;;"}
|
|
@@ -95,9 +95,9 @@ function buildApiPropertyOptions(properties) {
|
|
|
95
95
|
const apiPropertyOptions = {
|
|
96
96
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
97
97
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
98
|
-
nullable: properties.isNullable,
|
|
98
|
+
nullable: !!properties.isNullable,
|
|
99
99
|
};
|
|
100
|
-
apiPropertyOptions.required = properties.
|
|
100
|
+
apiPropertyOptions.required = properties.isRequired;
|
|
101
101
|
if (properties.isArray === true) {
|
|
102
102
|
apiPropertyOptions.isArray = true;
|
|
103
103
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -175,7 +175,7 @@ function buildResponseDecorators(properties) {
|
|
|
175
175
|
const decorators = [];
|
|
176
176
|
if (properties.isResponse) {
|
|
177
177
|
decorators.push(swagger.ApiResponseProperty());
|
|
178
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
178
|
+
if (!("isExpose" in properties) || properties.isExpose === undefined || ("isExpose" in properties && properties.isExpose)) {
|
|
179
179
|
decorators.push(classTransformer.Expose());
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.decorator.js","sources":["../../../../../../src/decorator/api/property/enum.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","ApiProperty","IsEnum","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude"],"mappings":";;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;AACtE,IAAA,MAAM,kBAAkB,GAA6C;AACpE,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;;
|
|
1
|
+
{"version":3,"file":"enum.decorator.js","sources":["../../../../../../src/decorator/api/property/enum.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","ApiProperty","IsEnum","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude"],"mappings":";;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEG;AACG,SAAU,eAAe,CAAC,UAAsC,EAAA;IACrE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;AAKG;AACH,SAAS,uBAAuB,CAAC,UAAsC,EAAA;AACtE,IAAA,MAAM,kBAAkB,GAA6C;AACpE,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;;AAEhF,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;KACjC;AAED,IAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU;AAEnD,IAAA,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;AAChC,QAAA,kBAAkB,CAAC,OAAO,GAAG,IAAI;AACjC,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ;AACjD,QAAA,kBAAkB,CAAC,WAAW,GAAG,UAAU,CAAC,aAAa;AAEzD,QAAA,IAAI,UAAU,CAAC,YAAY,EAAE;YAC5B,kBAAk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,CAAC,QAAQ,EAAE;AAC9C,YAAA,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC;;AAGrD,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;AAGzC,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;QAGzC,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;IAIhF,IAAI,UAAU,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;AACjG,QAAA,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC;;AAG/C,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEhE;;;;"}
|
|
@@ -87,9 +87,7 @@ var random = require('lodash/random');
|
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
89
|
function ApiPropertyNumber(properties) {
|
|
90
|
-
|
|
91
|
-
properties.exampleValue = random(properties.minimum, properties.maximum);
|
|
92
|
-
}
|
|
90
|
+
properties.exampleValue ??= random(properties.minimum, properties.maximum);
|
|
93
91
|
validateOptions(properties);
|
|
94
92
|
const apiPropertyOptions = buildApiPropertyOptions(properties);
|
|
95
93
|
const decorators = buildDecorators(properties, apiPropertyOptions);
|
|
@@ -108,10 +106,10 @@ function buildApiPropertyOptions(properties) {
|
|
|
108
106
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
109
107
|
format: getFormat(properties),
|
|
110
108
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
111
|
-
nullable: properties.isNullable,
|
|
109
|
+
nullable: !!properties.isNullable,
|
|
112
110
|
type: getType(properties),
|
|
113
111
|
};
|
|
114
|
-
apiPropertyOptions.required = properties.
|
|
112
|
+
apiPropertyOptions.required = properties.isRequired;
|
|
115
113
|
if (properties.isArray) {
|
|
116
114
|
apiPropertyOptions.isArray = true;
|
|
117
115
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -222,7 +220,7 @@ function buildResponseDecorators(properties) {
|
|
|
222
220
|
const decorators = [];
|
|
223
221
|
if (properties.isResponse) {
|
|
224
222
|
decorators.push(swagger.ApiResponseProperty());
|
|
225
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
223
|
+
if (!("isExpose" in properties) || properties.isExpose === undefined || ("isExpose" in properties && properties.isExpose)) {
|
|
226
224
|
decorators.push(classTransformer.Expose());
|
|
227
225
|
}
|
|
228
226
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.decorator.js","sources":["../../../../../../src/decorator/api/property/number.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","ApiProperty","EApiPropertyNumberType","IsNumber","IsInt","Type","IsDivisibleBy","Min","Max","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Transform","NUMBER_CONSTANT","EApiPropertyDataType","isInt"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;AACzE,IAAA,
|
|
1
|
+
{"version":3,"file":"number.decorator.js","sources":["../../../../../../src/decorator/api/property/number.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","ApiProperty","EApiPropertyNumberType","IsNumber","IsInt","Type","IsDivisib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AAC,IAAI,CAAC,4CAA4C,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;;;;AAGvE,SAAA,IAAI,UAAU,CAAC,YAAY,KAAK,SAAS,IAAI,UAAU,CAAC,YAAY,GAAG,UAAU,CAAC,OAAO,EAAE;AACjG,QAAA,MAAM,CAAC,IAAI,CAAC,4CAA4C,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;;AAG5F,IAAA,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE;QAChC,IAAI,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,EAAE;AAC9C,YAAA,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC;;AAGrD,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;AAGzC,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;;QAGzC,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;;;AAIhF,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,yBAAA,EAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAElE;;;;"}
|
|
@@ -49,7 +49,7 @@ function buildApiPropertyOptions(properties) {
|
|
|
49
49
|
const apiPropertyOptions = {
|
|
50
50
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
51
51
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
52
|
-
nullable: properties.isNullable,
|
|
52
|
+
nullable: !!properties.isNullable,
|
|
53
53
|
};
|
|
54
54
|
if (Array.isArray(properties.type)) {
|
|
55
55
|
// eslint-disable-next-line @elsikora/typescript/no-unsafe-function-type
|
|
@@ -84,7 +84,7 @@ function buildApiPropertyOptions(properties) {
|
|
|
84
84
|
else {
|
|
85
85
|
apiPropertyOptions.type = properties.type;
|
|
86
86
|
}
|
|
87
|
-
apiPropertyOptions.required = properties.
|
|
87
|
+
apiPropertyOptions.required = properties.isRequired;
|
|
88
88
|
if (properties.additionalProperties) {
|
|
89
89
|
apiPropertyOptions.additionalProperties = properties.additionalProperties;
|
|
90
90
|
}
|
|
@@ -159,7 +159,7 @@ function buildResponseDecorators(properties) {
|
|
|
159
159
|
const decorators = [];
|
|
160
160
|
if (properties.isResponse) {
|
|
161
161
|
decorators.push(swagger.ApiResponseProperty());
|
|
162
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
162
|
+
if (!("isExpose" in properties) || properties.isExpose === undefined || ("isExpose" in properties && properties.isExpose)) {
|
|
163
163
|
decorators.push(classTransformer.Expose());
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.decorator.js","sources":["../../../../../../src/decorator/api/property/object.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","getSchemaPath","ApiProperty","ValidateNested","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","MustMatchOneOfSchemasValidator","Type"],"mappings":";;;;;;;;AAUA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,iBAAiB,CAAC,OAAqC,EAAA;IACtE,eAAe,CAAC,OAAO,CAAC;AAExB,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,OAAO,CAAC;IAC/E,MAAM,UAAU,GAA6B,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC;AAEzF,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;;AAMG;AACH,SAAS,uBAAuB,CAAC,UAAwC,EAAA;AACxE,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;;
|
|
1
|
+
{"version":3,"file":"object.decorator.js","sources":["../../../../../../src/decorator/api/property/object.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","getSchemaPath","ApiProperty","ValidateNested","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","MustMatchOneOfSchemasValidator","Type"],"mappings":";;;;;;;;AAUA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,iBAAiB,CAAC,OAAqC,EAAA;IACtE,eAAe,CAAC,OAAO,CAAC;AAExB,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,OAAO,CAAC;IAC/E,MAAM,UAAU,GAA6B,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC;AAEzF,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;;AAMG;AACH,SAAS,uBAAuB,CAAC,UAAwC,EAAA;AACxE,IAAA,MAAM,kBAAkB,GAAuB;AAC9C,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;;AAEhF,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;KACjC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;;AAEnC,QAAA,kBAAkB,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAc,KAAI;YACjE,OAAO,EAAE,IAAI,EAAEC,qBAAa,CAAC,IAAI,CAAC,EAAE;AACrC,SAAC,CAAC;AAE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buildApiPropertyOptions(properties) {
|
|
|
105
105
|
const apiPropertyOptions = {
|
|
106
106
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
107
107
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
108
|
-
nullable: properties.isNullable,
|
|
108
|
+
nullable: !!properties.isNullable,
|
|
109
109
|
type: dataType_enum.EApiPropertyDataType.STRING,
|
|
110
110
|
};
|
|
111
|
-
apiPropertyOptions.required = properties.
|
|
111
|
+
apiPropertyOptions.required = properties.isRequired;
|
|
112
112
|
if (properties.isArray === true) {
|
|
113
113
|
apiPropertyOptions.isArray = true;
|
|
114
114
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -254,7 +254,7 @@ function buildResponseDecorators(properties) {
|
|
|
254
254
|
const decorators = [];
|
|
255
255
|
if (properties.isResponse) {
|
|
256
256
|
decorators.push(swagger.ApiResponseProperty());
|
|
257
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
257
|
+
if (!("isExpose" in properties) || properties.isExpose === undefined || ("isExpose" in properties && properties.isExpose)) {
|
|
258
258
|
decorators.push(classTransformer.Expose());
|
|
259
259
|
}
|
|
260
260
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","EApiPropertyStringType","IsDate","Type","IsEmail","IsIP","STRING_PROPERTY_API_INTERFACE_CONSTANT","IsString","IsLowercase","Validate","IsRegularExpressionValidator","Matches","IsUppercase","IsUrl","IsUUID","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Length"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;IACzE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;;;AAOG;AACH,SAAS,uBAAuB,CAAC,UAAwC,EAAA;AACxE,IAAA,MAAM,kBAAkB,GAA6C;AACpE,QAAA,WAAW,EAAE,CAAG,EAAA,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAE,CAAA;;
|
|
1
|
+
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","EApiPropertyStringType","IsDate","Type","IsEmail","IsIP","STRING_PROPERTY_API_INTERFACE_CONSTANT","IsString","IsLowercase","Validate","IsRegularExpressionValidator","Matches","IsUppercase","IsUrl","IsUUID","IsOptional","IsArray","ArrayMinSize","ArrayMaxSize","ArrayNotEmpty","ApiResponseProperty","Expose","Exclude","Length"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;IACzE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MAAM,UAAU,GAA6B,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAE5F,IAAA,OAAOA,sBAAe,CAAC,GAAG,UAAU,CAAC;AACtC;AAEA;;;;;;;AAOG;AACH,SAAS,uBAAuB,CAAC,UAAwC,EAAA;AACxE,IAAA,MAAM,kBAAkB,GA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