@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
|
@@ -14,7 +14,8 @@ require('../../../enum/decorator/api/property/desribe-type.enum.js');
|
|
|
14
14
|
require('../../../enum/decorator/api/property/number-type.enum.js');
|
|
15
15
|
require('../../../enum/decorator/api/property/string-type.enum.js');
|
|
16
16
|
require('../../../enum/decorator/api/route-type.enum.js');
|
|
17
|
-
var
|
|
17
|
+
var action_enum = require('../../../enum/utility/error-string/action.enum.js');
|
|
18
|
+
require('../../../enum/utility/error-string/composite-action.enum.js');
|
|
18
19
|
var common = require('@nestjs/common');
|
|
19
20
|
var errorString_utility = require('../../error-string.utility.js');
|
|
20
21
|
|
|
@@ -88,7 +89,7 @@ function handleTransformation(object, key, value, entity, shouldSetValueEvenIfMi
|
|
|
88
89
|
else {
|
|
89
90
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
90
91
|
entity,
|
|
91
|
-
type:
|
|
92
|
+
type: action_enum.EErrorStringAction.KEY_FOR_TRANSFORM_NOT_IN_OBJECT,
|
|
92
93
|
}));
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -139,7 +140,7 @@ function processTransformer(transformer, objectToTransform, properties, data) {
|
|
|
139
140
|
if (!data.authenticationRequest) {
|
|
140
141
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
141
142
|
entity: properties.entity,
|
|
142
|
-
type:
|
|
143
|
+
type: action_enum.EErrorStringAction.AUTHORIZED_ENTITY_NOT_FOUND,
|
|
143
144
|
}));
|
|
144
145
|
}
|
|
145
146
|
handleTransformation(objectToTransform, transformer.key, data.authenticationRequest.user, properties.entity, transformer.shouldSetValueEvenIfMissing);
|
|
@@ -153,7 +154,7 @@ function processTransformer(transformer, objectToTransform, properties, data) {
|
|
|
153
154
|
if (!data.headers["x-signature"]) {
|
|
154
155
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
155
156
|
entity: properties.entity,
|
|
156
|
-
type:
|
|
157
|
+
type: action_enum.EErrorStringAction.REQUEST_SIGNATURE_NOT_FOUND,
|
|
157
158
|
}));
|
|
158
159
|
}
|
|
159
160
|
handleTransformation(objectToTransform, transformer.key, data.headers["x-signature"], properties.entity, transformer.shouldSetValueEvenIfMissing);
|
|
@@ -163,7 +164,7 @@ function processTransformer(transformer, objectToTransform, properties, data) {
|
|
|
163
164
|
if (!data.headers["x-timestamp"]) {
|
|
164
165
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
165
166
|
entity: properties.entity,
|
|
166
|
-
type:
|
|
167
|
+
type: action_enum.EErrorStringAction.REQUEST_TIMESTAMP_NOT_FOUND,
|
|
167
168
|
}));
|
|
168
169
|
}
|
|
169
170
|
handleTransformation(objectToTransform, transformer.key, data.headers["x-timestamp"], properties.entity, transformer.shouldSetValueEvenIfMissing);
|
|
@@ -173,7 +174,7 @@ function processTransformer(transformer, objectToTransform, properties, data) {
|
|
|
173
174
|
if (!data.headers["user-agent"]) {
|
|
174
175
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
175
176
|
entity: properties.entity,
|
|
176
|
-
type:
|
|
177
|
+
type: action_enum.EErrorStringAction.REQUEST_USER_AGENT_NOT_FOUND,
|
|
177
178
|
}));
|
|
178
179
|
}
|
|
179
180
|
handleTransformation(objectToTransform, transformer.key, data.headers["user-agent"], properties.entity, transformer.shouldSetValueEvenIfMissing);
|
|
@@ -182,7 +183,7 @@ function processTransformer(transformer, objectToTransform, properties, data) {
|
|
|
182
183
|
default: {
|
|
183
184
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
184
185
|
entity: properties.entity,
|
|
185
|
-
type:
|
|
186
|
+
type: action_enum.EErrorStringAction.INVALID_DYNAMIC_VALUE_SPECIFIED,
|
|
186
187
|
}));
|
|
187
188
|
}
|
|
188
189
|
}
|
|
@@ -190,7 +191,7 @@ function processTransformer(transformer, objectToTransform, properties, data) {
|
|
|
190
191
|
else {
|
|
191
192
|
throw new common.InternalServerErrorException(errorString_utility.ErrorString({
|
|
192
193
|
entity: properties.entity,
|
|
193
|
-
type:
|
|
194
|
+
type: action_enum.EErrorStringAction.INVALID_DYNAMIC_VALUE_SPECIFIED,
|
|
194
195
|
}));
|
|
195
196
|
}
|
|
196
197
|
break;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-data.utility.js","sources":["../../../../../../src/utility/api/controller/transform-data.utility.ts"],"sourcesContent":[null],"names":["EApiDtoType","InternalServerErrorException","ErrorString","EErrorStringAction","EApiControllerRequestTransformerType","TRANSFORMER_VALUE_DTO_CONSTANT"],"mappings":"
|
|
1
|
+
{"version":3,"file":"transform-data.utility.js","sources":["../../../../../../src/utility/api/controller/transform-data.utility.ts"],"sourcesContent":[null],"names":["EApiDtoType","InternalServerErrorException","ErrorString","EErrorStringAction","EApiControllerRequestTransformerType","TRANSFORMER_VALUE_DTO_CONSTANT"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAaA;;;;;;;;;;AAUG;AACG,SAAU,0BAA0B,CAA6B,YAAkJ,EAAE,UAAuC,EAAE,iBAAkE,EAAE,IAAqC,EAAA;AAC5W,IAAA,IAAI,CAAC,YAAY;QAAE;AAEnB,IAAA,IAAIA,wBAAW,CAAC,IAAI,IAAI,YAAY,IAAI,YAAY,CAACA,wBAAW,CAAC,IAAI,CAAC,EAAE;QACvE,KAAK,MAAM,WAAW,IAAI,YAAY,CAACA,wBAAW,CAAC,IAAI,CAAC,EAAE;YACzD,IAAI,iBAAiB,CAAC,IAAI;gBAAE,kBAAkB,CAAC,WAAW,EAAE,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC;;;AAIvG,IAAA,IAAIA,wBAAW,CAAC,KAAK,IAAI,YAAY,IAAI,YAAY,CAACA,wBAAW,CAAC,KAAK,CAAC,EAAE;QACzE,KAAK,MAAM,WAAW,IAAI,YAAY,CAACA,wBAAW,CAAC,KAAK,CAAC,EAAE;YAC1D,IAAI,iBAAiB,CAAC,KAAK;gBAAE,kBAAkB,CAAC,WAAW,EAAE,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE,IA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AA,MAAM,IAAIJ,mCAA4B,CACrCC,+BAAW,CAAC;gCACX,MAAM,EAAE,UAAU,CAAC,MAAM;gCACzB,IAAI,EAAEC,8BAAkB,CAAC,4BAA4B;AACrD,6BAAA,CAAC,CACF;;wBAGF,oBAAoB,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,2BAA2B,CAAC;wBAEhJ;;oBAGD,SAAS;AACR,wBAAA,MAAM,IAAIF,mCAA4B,CACrCC,+BAAW,CAAC;4BACX,MAAM,EAAE,UAAU,CAAC,MAAM;4BACzB,IAAI,EAAEC,8BAAkB,CAAC,+BAA+B;AACxD,yBAAA,CAAC,CACF;;;;iBAGG;AACN,gBAAA,MAAM,IAAIF,mCAA4B,CACrCC,+BAAW,CAAC;oBACX,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,IAAI,EAAEC,8BAAkB,CAAC,+BAA+B;AACxD,iBAAA,CAAC,CACF;;YAGF;;AAGD,QAAA,KAAKC,gEAAoC,CAAC,MAAM,EAAE;AACjD,YAAA,MAAM,WAAW,GAAW,WAAW,CAAC,KAAK;AAC7C,YAAA,oBAAoB,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,2BAA2B,CAAC;YAEjI;;;AAGH;;;;"}
|
|
@@ -19,9 +19,9 @@ require('../../../enum/decorator/api/route-type.enum.js');
|
|
|
19
19
|
var constants = require('@nestjs/swagger/dist/constants');
|
|
20
20
|
var camelCaseString_utility = require('../../camel-case-string.utility.js');
|
|
21
21
|
require('../../../constant/utility/dto/constant.js');
|
|
22
|
+
require('@nestjs/swagger');
|
|
22
23
|
require('../../../external/tslib/tslib.es6.js');
|
|
23
24
|
require('@nestjs/common');
|
|
24
|
-
require('@nestjs/swagger');
|
|
25
25
|
require('class-transformer');
|
|
26
26
|
require('class-validator');
|
|
27
27
|
require('lodash/random');
|
|
@@ -10,6 +10,11 @@ function CamelCaseString(string) {
|
|
|
10
10
|
getlist: "GetList",
|
|
11
11
|
partialupdate: "PartialUpdate",
|
|
12
12
|
};
|
|
13
|
+
const hasInternalCaps = /[a-z][A-Z]/.test(string);
|
|
14
|
+
if (hasInternalCaps) {
|
|
15
|
+
const firstChar = string.charAt(0).toUpperCase();
|
|
16
|
+
return firstChar + string.slice(1);
|
|
17
|
+
}
|
|
13
18
|
const cleanString = string.replaceAll(/[^a-z0-9]+/gi, " ");
|
|
14
19
|
const words = cleanString.split(" ");
|
|
15
20
|
if (words.length === 1 && words[0]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"camel-case-string.utility.js","sources":["../../../../src/utility/camel-case-string.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;AAIG;AACG,SAAU,eAAe,CAAC,MAAc,EAAA;AAC7C,IAAA,MAAM,cAAc,GAA2B;AAC9C,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,aAAa,EAAE,eAAe;KAC9B;IAED,MAAM,WAAW,GAAW,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,GAAG,CAAC;IAClE,MAAM,KAAK,GAAkB,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC;IAEnD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;QACnC,MAAM,IAAI,GAAW,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AAE3C,QAAA,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE;AACzB,YAAA,OAAO,cAAc,CAAC,IAAI,CAAC;;AAG5B,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;;AAGpD,IAAA,OAAO;AACL,SAAA,GAAG,CAAC,CAAC,IAAY,KAAI;AACrB,QAAA,IAAI,CAAC,IAAI;AAAE,YAAA,OAAO,EAAE;AAEpB,QAAA,MAAM,SAAS,GAAW,IAAI,CAAC,WAAW,EAAE;AAE5C,QAAA,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE;AAC9B,YAAA,OAAO,cAAc,CAAC,SAAS,CAAC;;AAGjC,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AACzD,KAAC;SACA,IAAI,CAAC,EAAE,CAAC;AACX;;;;"}
|
|
1
|
+
{"version":3,"file":"camel-case-string.utility.js","sources":["../../../../src/utility/camel-case-string.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;AAIG;AACG,SAAU,eAAe,CAAC,MAAc,EAAA;AAC7C,IAAA,MAAM,cAAc,GAA2B;AAC9C,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,aAAa,EAAE,eAAe;KAC9B;IAED,MAAM,eAAe,GAAY,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAE1D,IAAI,eAAe,EAAE;QACpB,MAAM,SAAS,GAAW,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;QAExD,OAAO,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;;IAGnC,MAAM,WAAW,GAAW,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,GAAG,CAAC;IAClE,MAAM,KAAK,GAAkB,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC;IAEnD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;QACnC,MAAM,IAAI,GAAW,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AAE3C,QAAA,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE;AACzB,YAAA,OAAO,cAAc,CAAC,IAAI,CAAC;;AAG5B,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;;AAGpD,IAAA,OAAO;AACL,SAAA,GAAG,CAAC,CAAC,IAAY,KAAI;AACrB,QAAA,IAAI,CAAC,IAAI;AAAE,YAAA,OAAO,EAAE;AAEpB,QAAA,MAAM,SAAS,GAAW,IAAI,CAAC,WAAW,EAAE;AAE5C,QAAA,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE;AAC9B,YAAA,OAAO,cAAc,CAAC,SAAS,CAAC;;AAGjC,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AACzD,KAAC;SACA,IAAI,CAAC,EAAE,CAAC;AACX;;;;"}
|
|
@@ -13,6 +13,7 @@ var desribeType_enum = require('../../enum/decorator/api/property/desribe-type.e
|
|
|
13
13
|
require('../../enum/decorator/api/property/number-type.enum.js');
|
|
14
14
|
require('../../enum/decorator/api/property/string-type.enum.js');
|
|
15
15
|
require('../../enum/decorator/api/route-type.enum.js');
|
|
16
|
+
var swagger = require('@nestjs/swagger');
|
|
16
17
|
var camelCaseString_utility = require('../camel-case-string.utility.js');
|
|
17
18
|
var buildDecorator_utility = require('./build-decorator.utility.js');
|
|
18
19
|
var isPropertyExposedForGuard_utility = require('./is-property-exposed-for-guard.utility.js');
|
|
@@ -56,6 +57,23 @@ function DtoGenerateDynamic(method, propertyMetadata, entity, dtoType, _property
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
for (const { data, name } of dataForGeneration) {
|
|
60
|
+
const nestedDTOs = {};
|
|
61
|
+
const allNestedTypes = [];
|
|
62
|
+
for (const propertyName of Object.keys(data)) {
|
|
63
|
+
const propertyData = data[propertyName];
|
|
64
|
+
if (propertyData && propertyData.type === desribeType_enum.EApiPropertyDescribeType.OBJECT && !Array.isArray(propertyData.dataType) && "isDynamicallyGenerated" in propertyData && propertyData.isDynamicallyGenerated) {
|
|
65
|
+
const nestedPropertyName = `${_propertyName}${camelCaseString_utility.CamelCaseString(name)}${camelCaseString_utility.CamelCaseString(propertyName)}`;
|
|
66
|
+
const childNestedDTOs = DtoGenerateDynamic(method, propertyData, entity, dtoType, nestedPropertyName, currentGuard);
|
|
67
|
+
if (childNestedDTOs && Object.keys(childNestedDTOs).length > 0) {
|
|
68
|
+
nestedDTOs[propertyName] = childNestedDTOs;
|
|
69
|
+
for (const dto of Object.values(childNestedDTOs)) {
|
|
70
|
+
if (dto) {
|
|
71
|
+
allNestedTypes.push(dto);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
59
77
|
class GeneratedDTO {
|
|
60
78
|
constructor() {
|
|
61
79
|
for (const propertyName of Object.keys(data)) {
|
|
@@ -73,7 +91,8 @@ function DtoGenerateDynamic(method, propertyMetadata, entity, dtoType, _property
|
|
|
73
91
|
}
|
|
74
92
|
for (const propertyName of Object.keys(data)) {
|
|
75
93
|
if (data[propertyName]) {
|
|
76
|
-
const
|
|
94
|
+
const propertyGeneratedDTOs = nestedDTOs[propertyName] ?? {};
|
|
95
|
+
const decorators = buildDecorator_utility.DtoBuildDecorator(method, data[propertyName], entity, dtoType, propertyName, currentGuard, propertyGeneratedDTOs);
|
|
77
96
|
if (decorators) {
|
|
78
97
|
for (const [, decorator] of decorators.entries()) {
|
|
79
98
|
decorator(GeneratedDTO.prototype, propertyName);
|
|
@@ -84,6 +103,9 @@ function DtoGenerateDynamic(method, propertyMetadata, entity, dtoType, _property
|
|
|
84
103
|
Object.defineProperty(GeneratedDTO, "name", {
|
|
85
104
|
value: `${entity.name ?? "UnknownResource"}${camelCaseString_utility.CamelCaseString(method)}${camelCaseString_utility.CamelCaseString(dtoType)}${camelCaseString_utility.CamelCaseString(_propertyName)}${camelCaseString_utility.CamelCaseString(name)}DTO`,
|
|
86
105
|
});
|
|
106
|
+
if (allNestedTypes.length > 0) {
|
|
107
|
+
swagger.ApiExtraModels(...allNestedTypes)(GeneratedDTO);
|
|
108
|
+
}
|
|
87
109
|
generatedDTOs[name] = GeneratedDTO;
|
|
88
110
|
}
|
|
89
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-dynamic.utility.js","sources":["../../../../../src/utility/dto/generate-dynamic.utility.ts"],"sourcesContent":[null],"names":["EApiPropertyDescribeType","DtoIsPropertyExposedForGuard","DtoBuildDecorator","
|
|
1
|
+
{"version":3,"file":"generate-dynamic.utility.js","sources":["../../../../../src/utility/dto/generate-dynamic.utility.ts"],"sourcesContent":[null],"names":["EApiPropertyDescribeType","DtoIsPropertyExposedForGuard","CamelCaseString","DtoBuildDecorator","ApiExtraModels"],"mappings":";;;;;;;;;;;;;;;;;;;;AAaA;;;;;;;;;;;;;;AAcG;AACH;AACgB,SAAA,kBAAkB,CAAoD,MAAS,EAAE,gBAAgD,EAAE,MAAqB,EAAE,OAAU,EAAE,aAAqB,EAAE,YAA+B,EAAA;IAC3O,IAAI,gBAAgB,CAAC,IAAI,KAAKA,yCAAwB,CAAC,MAAM,EAAE;AAC9D,QAAA,OAAO,SAAS;;IAOjB,MAAM,UAAU,GAA2C,gBAAgB,CAAC,UAAU,GAAG,MAAM,CAA2C;AAE1I,IAAA,IAAI,UAAU,GAAG,OAAO,CAAC,EAAE,SAAS,KAAK,KAAK,KAAK,UAAU,GAAG,OAAO,CAAC,EAAE,UAAU,IAAI,UAAU,GAAG,OAAO,CAAC,EAAE,QAAQ,KAAK,KAAK,CAAC,EAAE;AACnI,QAAA,OAAO,SAAS;;AAGjB,IAAA,IAAI,CAACC,8DAA4B,CAAC,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE;AACnF,QAAA,OAAO,SAAS;;IAGjB,MAAM,aAAa,GAAkC,EAAE;IAEvD,IAAI,gBAAgB,CAAC,IAAI,KAAKD,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AAI,IAAI,iBAAiB,CAAG,EAAAD,uCAAe,CAAC,MAAM,CAAC,CAAA,EAAGA,uCAAe,CAAC,OAAO,CAAC,CAAG,EAAAA,uCAAe,CAAC,aAAa,CAAC,CAAA,EAAGA,uCAAe,CAAC,IAAI,CAAC,CAAK,GAAA,CAAA;AAC7J,aAAA,CAAC;AAEF,YAAA,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;AAC9B,gBAAAE,sBAAc,CAAC,GAAG,cAAc,CAAC,CAAC,YAAY,CAAC;;AAGhD,YAAA,aAAa,CAAC,IAAI,CAAC,GAAG,YAAY;;;AAIpC,IAAA,OAAO,aAAa;AACrB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-exception.utility.js","sources":["../../../../../src/utility/dto/generate-exception.utility.ts"],"sourcesContent":[null],"names":["HttpStatus","CamelCaseString","__decorate","ApiPropertyUUID","ApiPropertyString","EApiPropertyStringType","EXCEPTION_DTO_CONSTANT","ApiPropertyEnum","ApiPropertyNumber","EApiPropertyNumberType","DATE_CONSTANT","NUMBER_CONSTANT"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;AAMG;AACG,SAAU,oBAAoB,CAAC,UAAsB,EAAA;AAC1D,IAAA,MAAM,SAAS,GAAWA,iBAAU,CAAC,UAAU,CAAC;AAEhD,IAAA,MAAM,iBAAiB,CAAA;AAEtB,QAAA,aAAa;AAYb,QAAA,KAAK,GAAWC,uCAAe,CAAC,SAAS,CAAC;QAY1C,OAAO,GAAW,eAAe;QAUjC,UAAU,GAAe,UAAU;AAYnC,QAAA,SAAS;AACT;AA/CA,IAAAC,oBAAA,CAAA;AADC,QAAAC,8BAAe,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;;AAChD,KAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAYvB,IAAAD,oBAAA,CAAA;AAVC,QAAAE,kCAAiB,CAAC;AAClB,YAAA,WAAW,EAAE,MAAM;AACnB,YAAA,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AACzB,YAAA,YAAY,EAAEH,uCAAe,CAAC,SAAS,CAAC;YACxC,MAAM,EAAEI,sCAAsB,CAAC,MAAM;AACrC,YAAA,UAAU,EAAE,IAAI;YAChB,SAAS,EAAEC,yCAAsB,CAAC,oBAAoB;YACtD,SAAS,EAAEA,yCAAsB,CAAC,oBAAoB;AACtD,YAAA,OAAO,EAAE,sBAAsB;SAC/B,CAAC;;AACyC,KAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAY3C,IAAAJ,oBAAA,CAAA;AAVC,QAAAE,kCAAiB,CAAC;AAClB,YAAA,WAAW,EAAE,SAAS;AACtB,YAAA,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AACzB,YAAA,YAAY,EAAE,eAAe;YAC7B,MAAM,EAAEC,sCAAsB,CAAC,MAAM;AACrC,YAAA,UAAU,EAAE,IAAI;YAChB,SAAS,EAAEC,yCAAsB,CAAC,4BAA4B;YAC9D,SAAS,EAAEA,yCAAsB,CAAC,4BAA4B;AAC9D,YAAA,OAAO,EAAE,sBAAsB;SAC/B,CAAC;;AACgC,KAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAUlC,IAAAJ,oBAAA,CAAA;AARC,QAAAK,8BAAe,CAAC;AAChB,YAAA,WAAW,EAAE,aAAa;AAC1B,YAAA,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AACzB,YAAA,IAAI,EAAEP,iBAAU;AAChB,
|
|
1
|
+
{"version":3,"file":"generate-exception.utility.js","sources":["../../../../../src/utility/dto/generate-exception.utility.ts"],"sourcesContent":[null],"names":["HttpStatus","CamelCaseString","__decorate","ApiPropertyUUID","ApiPropertyString","EApiPropertyStringType","EXCEP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A,CAAA,EAAE,CAAC;AAExG,IAAA,OAAO,iBAAiB;AACzB;;;;"}
|
|
@@ -28,30 +28,30 @@ var filterOperation_enum = require('../../enum/filter-operation.enum.js');
|
|
|
28
28
|
function DtoGenerateFilterDecorator(metadata, entity) {
|
|
29
29
|
switch (metadata.type) {
|
|
30
30
|
case desribeType_enum.EApiPropertyDescribeType.BOOLEAN: {
|
|
31
|
-
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationBoolean, isRequired: false });
|
|
31
|
+
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationBoolean, enumName: "EFilterOperationBoolean", isRequired: false });
|
|
32
32
|
}
|
|
33
33
|
case desribeType_enum.EApiPropertyDescribeType.DATE: {
|
|
34
34
|
// @ts-ignore
|
|
35
|
-
return enum_decorator.ApiPropertyEnum({ entity, enum: filterOperation_enum.EFilterOperationDate, isRequired: false });
|
|
35
|
+
return enum_decorator.ApiPropertyEnum({ entity, enum: filterOperation_enum.EFilterOperationDate, enumName: "EFilterOperationDate", isRequired: false });
|
|
36
36
|
}
|
|
37
37
|
case desribeType_enum.EApiPropertyDescribeType.ENUM: {
|
|
38
|
-
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationEnum, isRequired: false });
|
|
38
|
+
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationEnum, enumName: "EFilterOperationEnum", isRequired: false });
|
|
39
39
|
}
|
|
40
40
|
case desribeType_enum.EApiPropertyDescribeType.NUMBER: {
|
|
41
41
|
// @ts-ignore
|
|
42
|
-
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationNumber, isRequired: false });
|
|
42
|
+
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationNumber, enumName: "EFilterOperationNumber", isRequired: false });
|
|
43
43
|
}
|
|
44
44
|
case desribeType_enum.EApiPropertyDescribeType.OBJECT: {
|
|
45
|
-
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationObject, isRequired: false });
|
|
45
|
+
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationObject, enumName: "EFilterOperationObject", isRequired: false });
|
|
46
46
|
}
|
|
47
47
|
case desribeType_enum.EApiPropertyDescribeType.RELATION: {
|
|
48
|
-
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationRelation, isRequired: false });
|
|
48
|
+
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationRelation, enumName: "EFilterOperationRelation", isRequired: false });
|
|
49
49
|
}
|
|
50
50
|
case desribeType_enum.EApiPropertyDescribeType.STRING: {
|
|
51
|
-
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationString, isRequired: false });
|
|
51
|
+
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationString, enumName: "EFilterOperationString", isRequired: false });
|
|
52
52
|
}
|
|
53
53
|
case desribeType_enum.EApiPropertyDescribeType.UUID: {
|
|
54
|
-
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationUuid, isRequired: false });
|
|
54
|
+
return enum_decorator.ApiPropertyEnum({ description: metadata.description, entity, enum: filterOperation_enum.EFilterOperationUuid, enumName: "EFilterOperationUuid", isRequired: false });
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-filter-decorator.utility.js","sources":["../../../../../src/utility/dto/generate-filter-decorator.utility.ts"],"sourcesContent":[null],"names":["EApiPropertyDescribeType","ApiPropertyEnum","EFilterOperationBoolean","EFilterOperationDate","EFilterOperationEnum","EFilterOperationNumber","EFilterOperationObject","EFilterOperationRelation","EFilterOperationString","EFilterOperationUuid"],"mappings":";;;;;;;;;;;;;;;;;;AAOA;;;;;;;;AAQG;AACa,SAAA,0BAA0B,CAAI,QAAwC,EAAE,MAAqB,EAAA;AAC5G,IAAA,QAAQ,QAAQ,CAAC,IAAI;AACpB,QAAA,KAAKA,yCAAwB,CAAC,OAAO,EAAE;YACtC,OAAOC,8BAAe,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAEC,4CAAuB,
|
|
1
|
+
{"version":3,"file":"generate-filter-decorator.utility.js","sources":["../../../../../src/utility/dto/generate-filter-decorator.utility.ts"],"sourcesContent":[null],"names":["EApiPropertyDescribeType","ApiPropertyEnum","EFilterOperationBoolean","EFilterOperationDate","EFilterOperationEnum","EFilterOperationNumber","EFilterOperationObject","EFilterOperationRelation","EFilterOperationString","EFilterOperationUuid"],"mappings":";;;;;;;;;;;;;;;;;;AAOA;;;;;;;;AAQG;AACa,SAAA,0BAA0B,CAAI,QAAwC,EAAE,MAAqB,EAAA;AAC5G,IAAA,QAAQ,QAAQ,CAAC,IAAI;AACpB,QAAA,KAAKA,yCAAwB,CAAC,OAAO,EAAE;YACtC,OAAOC,8BAAe,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAEC,4CAAuB,EAAE,QAAQ,EAAE,yBAAyB,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;;AAG7J,QAAA,KAAKF,yCAAwB,CAAC,IAAI,EAAE;;AAGnC,YAAA,OAAOC,8BAAe,CAAC,EAAE,MAAM,EAAE,IAAI,EAAEE,yCAAoB,EAAE,QAAQ,EAAE,sBAAsB,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;;AAGpH,QAAA,KAAKH,yCAAwB,CAAC,IAAI,EAAE;YACnC,OAAOC,8BAAe,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,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1
|
-
{"version":3,"file":"get-decorator-config.utility.js","sources":["../../../../../src/utility/dto/get-decorator-config.utility.ts"],"sourcesContent":[null],"names":["DTO_UTILITY_CONSTANT"],"mappings":";;;;AAQA;;;;;;;;;;;;AAYG;AACH;AACO,MAAM,qBAAqB,GAAG,CAAiD,MAAS,EAAE,QAAwC,EAAE,OAAU,EAAE,YAAoB,KAAuC;IACjN,MAAM,QAAQ,GAAyCA,6BAAoB,CAAC,cAAc,CAAC,OAAO,CAAC;IAEnG,IAAI,CAAC,QAAQ,EAAE;AACd,QAAA,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAO,CAAA,CAAE,CAAC;;IAG/C,IAAI,MAAM,GAAsC,QAAQ,CAAC,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC;IAK7F,MAAM,UAAU,GAA2C,QAAQ,CAAC,UAAU,GAAG,MAAM,CAA2C;AAElI,IAAA,IAAI,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC,EAAE;AACtC,QAAA,MAAM,YAAY,GAAkC,UAAU,CAAC,OAAO,CAAC;QAGvE,MAAM,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"get-decorator-config.utility.js","sources":["../../../../../src/utility/dto/get-decorator-config.utility.ts"],"sourcesContent":[null],"names":["DTO_UTILITY_CONSTANT"],"mappings":";;;;AAQA;;;;;;;;;;;;AAYG;AACH;AACO,MAAM,qBAAqB,GAAG,CAAiD,MAAS,EAAE,QAAwC,EAAE,OAAU,EAAE,YAAoB,KAAuC;IACjN,MAAM,QAAQ,GAAyCA,6BAAoB,CAAC,cAAc,CAAC,OAAO,CAAC;IAEnG,IAAI,CAAC,QAAQ,EAAE;AACd,QAAA,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAO,CAAA,CAAE,CAAC;;IAG/C,IAAI,MAAM,GAAsC,QAAQ,CAAC,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC;IAK7F,MAAM,UAAU,GAA2C,QAAQ,CAAC,UAAU,GAAG,MAAM,CAA2C;AAElI,IAAA,IAAI,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC,EAAE;AACtC,QAAA,MAAM,YAAY,GAAkC,UAAU,CAAC,OAAO,CAAC;QAGvE,MAAM,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,YAAY,EAAuC;;AAG7E,IAAA,OAAO,MAAM;AACd;;;;"}
|
|
@@ -72,6 +72,7 @@ function DtoGetGetListQueryBaseClass(entity, entityMetadata, method, dtoType) {
|
|
|
72
72
|
description: "order direction",
|
|
73
73
|
entity: entityMetadata,
|
|
74
74
|
enum: filterOrderDirection_enum.EFilterOrderDirection,
|
|
75
|
+
enumName: "EFilterOrderDirection",
|
|
75
76
|
isRequired: false,
|
|
76
77
|
}),
|
|
77
78
|
tslib_es6.__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-get-list-query-base-class.utility.js","sources":["../../../../../src/utility/dto/get-get-list-query-base-class.utility.ts"],"sourcesContent":[null],"names":["__decorate","ApiPropertyNumber","GET_LIST_QUERY_DTO_FACTORY_CONSTANT","EApiPropertyNumberType","ApiPropertyEnum","FilterOrderByFromEntity","CapitalizeString","EFilterOrderDirection","Validate","AllOrNoneOfListedPropertiesValidator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAcA;;;;;;;;;;AAUG;AACG,SAAU,2BAA2B,CAAI,MAAqB,EAAE,cAA6B,EAAE,MAAqB,EAAE,OAAoB,EAAA;AAC/I,IAAA,MAAM,YAAY,CAAA;AAWjB,QAAA,KAAK;AASL,QAAA,OAAO;AASP,QAAA,cAAc;AAYd,QAAA,IAAI;QAGJ,MAAM,GAAA;AACL,YAAA,OAAO,IAAI;;AAEZ;AApCA,IAAAA,oBAAA,CAAA;AAVC,QAAAC,kCAAiB,CAAC;AAClB,YAAA,WAAW,EAAE,gBAAgB;AAC7B,YAAA,MAAM,EAAE,cAAc;YACtB,YAAY,EAAEC,yDAAmC,CAAC,mBAAmB;YACrE,MAAM,EAAEC,sCAAsB,CAAC,OAAO;AACtC,YAAA,UAAU,EAAE,IAAI;YAChB,OAAO,EAAED,yDAAmC,CAAC,mBAAmB;YAChE,OAAO,EAAEA,yDAAmC,CAAC,mBAAmB;YAChE,UAAU,EAAEA,yDAAmC,CAAC,gBAAgB;SAChE,CAAC;;AACa,KAAA,EAAA,YAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AASf,IAAAF,oBAAA,CAAA;AAPC,QAAAI,8BAAe,CAAC;AAChB,YAAA,WAAW,EAAE,gBAAgB;AAC7B,YAAA,MAAM,EAAE,cAAc;YACtB,IAAI,EAAEC,uDAAuB,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC;YACtE,QAAQ,EAAE,CAAI,CAAA,EAAAC,yCAAgB,CAAC,cAAc,CAAC,IAAI,IAAI,iBAAiB,CAAC,CAAe,aAAA,CAAA;AACvF,YAAA,UAAU,EAAE,KAAK;SACjB,CAAC;;AACe,KAAA,EAAA,YAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AASjB,IAAAN,oBAAA,CAAA;AAPC,QAAAI,8BAAe,CAAC;AAChB,YAAA,WAAW,EAAE,iBAAiB;AAC9B,YAAA,MAAM,EAAE,cAAc;AACtB,YAAA,IAAI,EAAEG,+CAAqB;AAC3B,
|
|
1
|
+
{"version":3,"file":"get-get-list-query-base-class.utility.js","sources":["../../../../../src/utility/dto/get-get-list-query-base-class.utility.ts"],"sourcesContent":[null],"names":["__decorate","ApiPropertyNumber","GET_LIST_QUERY_DTO_FACTORY_CONSTANT","EApiPropertyNumberType","ApiPropertyEnum","FilterOrderByFromEntity","CapitalizeString","EFilterOrderDirection","Validate","AllOrNoneOfListedPropertiesValidator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAcA;;;;;;;;;;AAUG;AACG,SAAU,2BAA2B,CAAI,MAAqB,EAAE,cAA6B,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AAU,EAAE,KAAK;SACjB,CAAC;;AACqC,KAAA,EAAA,YAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAYvC,IAAAP,oBAAA,CAAA;AAVC,QAAAC,kCAAiB,CAAC;AAClB,YAAA,WAAW,EAAE,gBAAgB;AAC7B,YAAA,MAAM,EAAE,cAAc;YACtB,YAAY,EAAEC,yDAAmC,CAAC,wBAAwB;YAC1E,MAAM,EAAEC,sCAAsB,CAAC,OAAO;AACtC,YAAA,UAAU,EAAE,IAAI;YAChB,OAAO,EAAED,yDAAmC,CAAC,wBAAwB;YACrE,OAAO,EAAEA,yDAAmC,CAAC,wBAAwB;YACrE,UAAU,EAAEA,yDAAmC,CAAC,gBAAgB;SAChE,CAAC;;AACY,KAAA,EAAA,YAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGd,IAAAF,oBAAA,CAAA;QADCQ,uBAAQ,CAACC,0EAAoC,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;;;;AAG7E,KAAA,EAAA,YAAA,CAAA,SAAA,EAAA,QAAA,EAAA,IAAA,CAAA;AAGF,IAAA,OAAO,YAAY;AACpB;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { IApiBaseEntity } from '../interface/api-base-entity.interface';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TErrorStringProperties } from '../type/utility/index';
|
|
3
3
|
/**
|
|
4
4
|
* Generates a formatted error string with the entity name
|
|
5
|
-
* @param {
|
|
5
|
+
* @param {TErrorStringProperties<T>} properties - The error string configuration options
|
|
6
6
|
* @returns {string} The formatted error string with entity name substituted
|
|
7
7
|
* @template T - The entity type
|
|
8
8
|
*/
|
|
9
|
-
export declare function ErrorString<T extends IApiBaseEntity>(
|
|
9
|
+
export declare function ErrorString<T extends IApiBaseEntity>(properties: TErrorStringProperties<T>): string;
|
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Generates a formatted error string with the entity name
|
|
5
|
-
* @param {
|
|
5
|
+
* @param {TErrorStringProperties<T>} properties - The error string configuration options
|
|
6
6
|
* @returns {string} The formatted error string with entity name substituted
|
|
7
7
|
* @template T - The entity type
|
|
8
8
|
*/
|
|
9
|
-
function ErrorString(
|
|
10
|
-
|
|
9
|
+
function ErrorString(properties) {
|
|
10
|
+
const entityName = properties.entity.name === undefined ? "UNKNOWN_RESOURCE" : properties.entity.name.toUpperCase();
|
|
11
|
+
if ("property" in properties) {
|
|
12
|
+
return `${entityName}_${properties.type.replace("{property}", properties.property.toUpperCase())}`;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
return String(properties.type).replace("{entity}", entityName);
|
|
16
|
+
}
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
exports.ErrorString = ErrorString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-string.utility.js","sources":["../../../../src/utility/error-string.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA;;;;;AAKG;AACG,SAAU,WAAW,CAA2B,
|
|
1
|
+
{"version":3,"file":"error-string.utility.js","sources":["../../../../src/utility/error-string.utility.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA;;;;;AAKG;AACG,SAAU,WAAW,CAA2B,UAAqC,EAAA;IAC1F,MAAM,UAAU,GAAW,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,GAAG,kBAAkB,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE;AAE3H,IAAA,IAAI,UAAU,IAAI,UAAU,EAAE;AAC7B,QAAA,OAAO,GAAG,UAAU,CAAA,CAAA,EAAI,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,EAAE;;SAC5F;AACN,QAAA,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;;AAEhE;;;;"}
|
|
@@ -16,25 +16,25 @@ class DtoStrategyResponse {
|
|
|
16
16
|
getDecoratorConfig(method, _metadata) {
|
|
17
17
|
switch (method) {
|
|
18
18
|
case EApiRouteType.CREATE: {
|
|
19
|
-
return { isResponse: true };
|
|
19
|
+
return { isRequired: true, isResponse: true };
|
|
20
20
|
}
|
|
21
21
|
case EApiRouteType.DELETE: {
|
|
22
|
-
return { isResponse: true };
|
|
22
|
+
return { isRequired: true, isResponse: true };
|
|
23
23
|
}
|
|
24
24
|
case EApiRouteType.GET: {
|
|
25
|
-
return { isResponse: true };
|
|
25
|
+
return { isRequired: true, isResponse: true };
|
|
26
26
|
}
|
|
27
27
|
case EApiRouteType.GET_LIST: {
|
|
28
|
-
return { isExpose: true, isResponse: true };
|
|
28
|
+
return { isExpose: true, isRequired: true, isResponse: true };
|
|
29
29
|
}
|
|
30
30
|
case EApiRouteType.PARTIAL_UPDATE: {
|
|
31
|
-
return { isResponse: true };
|
|
31
|
+
return { isRequired: true, isResponse: true };
|
|
32
32
|
}
|
|
33
33
|
case EApiRouteType.UPDATE: {
|
|
34
|
-
return { isResponse: true };
|
|
34
|
+
return { isRequired: true, isResponse: true };
|
|
35
35
|
}
|
|
36
36
|
default: {
|
|
37
|
-
return { isResponse: true };
|
|
37
|
+
return { isRequired: true, isResponse: true };
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.class.js","sources":["../../../../../../../src/class/utility/dto/strategy/response.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;MAKa,mBAAmB,CAAA;IAC/B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC,EAAA;QAClF,QAAQ,MAAM;AACb,YAAA,KAAK,aAAa,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"response.class.js","sources":["../../../../../../../src/class/utility/dto/strategy/response.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;MAKa,mBAAmB,CAAA;IAC/B,kBAAkB,CAAC,MAAqB,EAAE,SAAyC,EAAA;QAClF,QAAQ,MAAM;AACb,YAAA,KAAK,aAAa,CAAC,MAAM,EAAE;gBAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9C,YAAA,KAAK,aAAa,CAAC,MAAM,EAAE;gBAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9C,YAAA,KAAK,aAAa,CAAC,GAAG,EAAE;gBACvB,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9C,YAAA,KAAK,aAAa,CAAC,QAAQ,EAAE;AAC5B,gBAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9D,YAAA,KAAK,aAAa,CAAC,cAAc,EAAE;gBAClC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;;AAG9C,YAAA,KAAK,aAAa,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,4 +1,5 @@
|
|
|
1
|
-
import { EErrorStringAction } from '../../../enum/utility/error-string
|
|
1
|
+
import { EErrorStringAction } from '../../../enum/utility/error-string/action.enum.js';
|
|
2
|
+
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
2
3
|
import { HttpException, InternalServerErrorException } from '@nestjs/common';
|
|
3
4
|
import { ErrorException } from '../../../utility/error-exception.utility.js';
|
|
4
5
|
import { ErrorString } from '../../../utility/error-string.utility.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.decorator.js","sources":["../../../../../../src/decorator/api/function/create.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.decorator.js","sources":["../../../../../../src/decorator/api/function/create.decorator.ts"],"sourcesContent":[null],"names":[],"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,MAAM,cAAc,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,YAAY,aAAa,EAAE;AACnC,YAAA,MAAM,KAAK;;AAGZ,QAAA,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAE5G,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EErrorStringAction } from '../../../enum/utility/error-string
|
|
1
|
+
import { EErrorStringAction } from '../../../enum/utility/error-string/action.enum.js';
|
|
2
|
+
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
2
3
|
import { HttpException, InternalServerErrorException } from '@nestjs/common';
|
|
3
4
|
import { ErrorException } from '../../../utility/error-exception.utility.js';
|
|
4
5
|
import { ErrorString } from '../../../utility/error-string.utility.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.decorator.js","sources":["../../../../../../src/decorator/api/function/delete.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete.decorator.js","sources":["../../../../../../src/decorator/api/function/delete.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAaA;;;;AAIG;AACH;AACM,SAAU,iBAAiB,CAA2B,UAAkC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;IACrD,MAAM,YAAY,GAA6F,cAAc,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,MAAM,cAAc,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M,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAE5G,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EErrorStringAction } from '../../../enum/utility/error-string
|
|
1
|
+
import { EErrorStringAction } from '../../../enum/utility/error-string/action.enum.js';
|
|
2
|
+
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
2
3
|
import { HttpException, InternalServerErrorException } from '@nestjs/common';
|
|
3
4
|
import { ErrorException } from '../../../utility/error-exception.utility.js';
|
|
4
5
|
import { ErrorString } from '../../../utility/error-string.utility.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-list.decorator.js","sources":["../../../../../../src/decorator/api/function/get-list.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-list.decorator.js","sources":["../../../../../../src/decorator/api/function/get-list.decorator.ts"],"sourcesContent":[null],"names":[],"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,MAAM,cAAc,CAAC,6CAA6C,CAAC;;AAGpE,YAAA,OAAO,QAAQ,CAAI,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACrE,SAAC;AAED,QAA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,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EErrorStringAction } from '../../../enum/utility/error-string
|
|
1
|
+
import { EErrorStringAction } from '../../../enum/utility/error-string/action.enum.js';
|
|
2
|
+
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
2
3
|
import { NotFoundException, HttpException, InternalServerErrorException } from '@nestjs/common';
|
|
3
4
|
import { ErrorException } from '../../../utility/error-exception.utility.js';
|
|
4
5
|
import { ErrorString } from '../../../utility/error-string.utility.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-many.decorator.js","sources":["../../../../../../src/decorator/api/function/get-many.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-many.decorator.js","sources":["../../../../../../src/decorator/api/function/get-many.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAWA;;;;AAIG;AACH;AACM,SAAU,kBAAkB,CAA2B,UAAkC,EAAA;AAC9F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;AAErD,IAAA,OAAO,UAAU,MAAe,EAAE,WAAmB,EAAE,UAA8B,EAAA;AAMpF,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,MAAM,cAAc,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,OAAiD,EAAA;IAClG,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,GAA6C,OAAO;AAE1G,IAAA,IAAI;AACH,QAAA,IAAI,KAAe;QAEnB,IAAI,YAAY,EAAE;YACjB,MAAM,eAAe,GAAkB,YAAY,CAAC,aAAa,CAAI,MAAsB,CAAC;YAC5F,KAAK,GAAG,MAAM,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC;;aACxC;YACN,KAAK,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC;;AAG1C,QAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACvB,YAAA,MAAM,IAAI,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,CAAC,SAAS,EAAE,CAAC,CAAC;;AAGzF,QAAA,OAAO,KAAK;;IACX,OAAO,KAAK,EAAE;AACf,QAAA,IAAI,KAAK,YAAY,aAAa,EAAE;AACnC,YAAA,MAAM,KAAK;;AAGZ,QAAA,aAAa,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAA,+BAAA,EAAkC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAEtH,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;YACX,MAAM;YACN,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EErrorStringAction } from '../../../enum/utility/error-string
|
|
1
|
+
import { EErrorStringAction } from '../../../enum/utility/error-string/action.enum.js';
|
|
2
|
+
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
2
3
|
import { NotFoundException, HttpException, InternalServerErrorException } from '@nestjs/common';
|
|
3
4
|
import { ErrorException } from '../../../utility/error-exception.utility.js';
|
|
4
5
|
import { ErrorString } from '../../../utility/error-string.utility.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.decorator.js","sources":["../../../../../../src/decorator/api/function/get.decorator.ts"],"sourcesContent":[null],"names":[],"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,MAAM,cAAc,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,IAAI,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,CAAC,SAAS,EAAE,CAAC,CAAC;;AAGzF,QAAA,OAAO,IAAI;;IACV,OAAO,KAAK,EAAE;AACf,QAAA,IAAI,KAAK,YAAY,aAAa,EAAE;AACnC,YAAA,MAAM,KAAK;;AAGZ,QAAA,aAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAEzG,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;YACX,MAAM;YACN,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EErrorStringAction } from '../../../enum/utility/error-string
|
|
1
|
+
import { EErrorStringAction } from '../../../enum/utility/error-string/action.enum.js';
|
|
2
|
+
import '../../../enum/utility/error-string/composite-action.enum.js';
|
|
2
3
|
import { HttpException, InternalServerErrorException } from '@nestjs/common';
|
|
3
4
|
import { ErrorException } from '../../../utility/error-exception.utility.js';
|
|
4
5
|
import { ErrorString } from '../../../utility/error-string.utility.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.decorator.js","sources":["../../../../../../src/decorator/api/function/update.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAaA;;;;AAIG;AACH;AACM,SAAU,iBAAiB,CAA2B,UAAkC,EAAA;AAC7F,IAAA,MAAM,EAAE,MAAM,EAAE,GAA2B,UAAU;IACrD,MAAM,YAAY,GAA6F,cAAc,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;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AAG,KAAK;;;AAIhC,QAAA,MAAM,YAAY,GAAmB;AACpC,YAAA,GAAG,cAAc;AACjB,YAAA,GAAG,iBAAiB;SACpB;QAED,IAAI,YAAY,EAAE;YACjB,MAAM,eAAe,GAAkB,YAAY,CAAC,aAAa,CAAI,MAAsB,CAAC;AAE5F,YAAA,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC;;AAGhD,QAAA,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;;IACzC,OAAO,KAAK,EAAE;AACf,QAAA,IAAI,KAAK,YAAY,aAAa,EAAE;AACnC,YAAA,MAAM,KAAK;;AAGZ,QAAA,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAA,sBAAA,EAAyB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC;AAE5G,QAAA,MAAM,IAAI,4BAA4B,CACrC,WAAW,CAAC;AACX,YAAA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB,CAAC,cAAc;AACvC,SAAA,CAAC,CACF;;AAEH;;;;"}
|
|
@@ -83,10 +83,10 @@ function buildApiPropertyOptions(properties) {
|
|
|
83
83
|
const apiPropertyOptions = {
|
|
84
84
|
description: `${String(properties.entity.name)} ${properties.description ?? ""}`,
|
|
85
85
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
86
|
-
nullable: properties.isNullable,
|
|
86
|
+
nullable: !!properties.isNullable,
|
|
87
87
|
type: EApiPropertyDataType.BOOLEAN,
|
|
88
88
|
};
|
|
89
|
-
apiPropertyOptions.required = properties.
|
|
89
|
+
apiPropertyOptions.required = properties.isRequired;
|
|
90
90
|
if (properties.isArray) {
|
|
91
91
|
apiPropertyOptions.isArray = true;
|
|
92
92
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -157,7 +157,7 @@ function buildResponseDecorators(properties) {
|
|
|
157
157
|
const decorators = [];
|
|
158
158
|
if (properties.isResponse) {
|
|
159
159
|
decorators.push(ApiResponseProperty());
|
|
160
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
160
|
+
if (!("isExpose" in properties) || properties.isExpose === undefined || ("isExpose" in properties && properties.isExpose)) {
|
|
161
161
|
decorators.push(Expose());
|
|
162
162
|
}
|
|
163
163
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.decorator.js","sources":["../../../../../../src/decorator/api/property/boolean.decorator.ts"],"sourcesContent":[null],"names":[],"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,OAAO,eAAe,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":[],"mappings":";;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDG;AACG,SAAU,kBAAkB,CAAC,UAAsC,EAAA;IACxE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAuB,uBAAuB,CAAC,UAAU,CAAC;IAClF,MA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AAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,GAAG;AAAE,wBAAA,OAAO,IAAI;AAElD,oBAAA,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,GAAG;AAAE,wBAAA,OAAO,KAAK;AAEpD,oBAAA,OAAO,OAAO,CAAC,KAAK,CAAC;;AAGtB,gBAAA,OAAO,KAAK;aACZ,EACD,EAAE,WAAW,EAAE,IAAI,EAAE,CACrB,CACD;;;AAIH,IAAA,OAAO,UAAU;AAClB;AAEA;;;;;;AAMG;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,0BAAA,EAA6B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC;;AAEnE;;;;"}
|
|
@@ -88,10 +88,10 @@ function buildApiPropertyOptions(properties) {
|
|
|
88
88
|
const apiPropertyOptions = {
|
|
89
89
|
description: `${String(properties.entity.name)} ${getDescription(properties.identifier)}`,
|
|
90
90
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
91
|
-
nullable: properties.isNullable,
|
|
91
|
+
nullable: !!properties.isNullable,
|
|
92
92
|
type: EApiPropertyDataType.STRING,
|
|
93
93
|
};
|
|
94
|
-
apiPropertyOptions.required = properties.
|
|
94
|
+
apiPropertyOptions.required = properties.isRequired;
|
|
95
95
|
if (properties.isArray) {
|
|
96
96
|
apiPropertyOptions.isArray = true;
|
|
97
97
|
apiPropertyOptions.minItems = properties.minItems;
|
|
@@ -173,7 +173,7 @@ function buildResponseDecorators(properties) {
|
|
|
173
173
|
const decorators = [];
|
|
174
174
|
if (properties.isResponse) {
|
|
175
175
|
decorators.push(ApiResponseProperty());
|
|
176
|
-
if (properties.isExpose === undefined || properties.isExpose) {
|
|
176
|
+
if (!("isExpose" in properties) || properties.isExpose === undefined || ("isExpose" in properties && properties.isExpose)) {
|
|
177
177
|
decorators.push(Expose());
|
|
178
178
|
}
|
|
179
179
|
else {
|