@elsikora/nestjs-crud-automator 1.11.3 → 1.12.0-dev.1
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/README.md +1 -1
- package/dist/cjs/class/api/service-base.class.d.ts +0 -1
- package/dist/cjs/class/api/service-base.class.js +0 -1
- package/dist/cjs/class/api/service-base.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/function-base.class.d.ts +0 -1
- package/dist/cjs/class/api/subscriber/function-base.class.js +0 -1
- package/dist/cjs/class/api/subscriber/function-base.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/route-base.class.d.ts +0 -1
- package/dist/cjs/class/api/subscriber/route-base.class.js +0 -1
- package/dist/cjs/class/api/subscriber/route-base.class.js.map +1 -1
- package/dist/cjs/class/metadata-storage.class.d.ts +0 -1
- package/dist/cjs/class/metadata-storage.class.js +0 -1
- package/dist/cjs/class/metadata-storage.class.js.map +1 -1
- package/dist/cjs/constant/interface/api/property/default-string-format.constant.d.ts +4 -0
- package/dist/cjs/constant/interface/api/property/default-string-format.constant.js +373 -0
- package/dist/cjs/constant/interface/api/property/default-string-format.constant.js.map +1 -0
- package/dist/cjs/constant/interface/api/property/index.d.ts +1 -0
- package/dist/cjs/constant/interface/api/property/string.constant.d.ts +1 -0
- package/dist/cjs/constant/interface/api/property/string.constant.js +2 -0
- package/dist/cjs/constant/interface/api/property/string.constant.js.map +1 -1
- package/dist/cjs/decorator/api/controller/decorator.d.ts +18 -1
- package/dist/cjs/decorator/api/controller/decorator.js +18 -1
- package/dist/cjs/decorator/api/controller/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.d.ts +0 -1
- package/dist/cjs/decorator/api/property/describe.decorator.js +0 -1
- package/dist/cjs/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/string.decorator.js +163 -3
- package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service.decorator.d.ts +0 -1
- package/dist/cjs/decorator/api/service.decorator.js +0 -1
- package/dist/cjs/decorator/api/service.decorator.js.map +1 -1
- package/dist/cjs/enum/decorator/api/property/data-type.enum.d.ts +41 -1
- package/dist/cjs/enum/decorator/api/property/data-type.enum.js +41 -1
- package/dist/cjs/enum/decorator/api/property/data-type.enum.js.map +1 -1
- package/dist/cjs/enum/decorator/api/property/string-type.enum.d.ts +41 -1
- package/dist/cjs/enum/decorator/api/property/string-type.enum.js +41 -1
- package/dist/cjs/enum/decorator/api/property/string-type.enum.js.map +1 -1
- package/dist/cjs/factory/api/controller.factory.js +2 -0
- package/dist/cjs/factory/api/controller.factory.js.map +1 -1
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.d.ts +0 -1
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js +0 -1
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/cjs/module/api-subscriber.module.d.ts +0 -1
- package/dist/cjs/module/api-subscriber.module.js +0 -1
- package/dist/cjs/module/api-subscriber.module.js.map +1 -1
- package/dist/cjs/type/decorator/api/property/default/string/format/index.d.ts +2 -0
- package/dist/cjs/type/decorator/api/property/default/string/format/properties.type.d.ts +7 -0
- package/dist/cjs/type/decorator/api/property/default/string/format/type.d.ts +2 -0
- package/dist/cjs/type/decorator/api/property/default/string/index.d.ts +1 -0
- package/dist/cjs/type/decorator/api/property/index.d.ts +1 -0
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js +1 -0
- package/dist/cjs/utility/api/controller/apply-metadata.utility.js.map +1 -1
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js +1 -0
- package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js +1 -0
- package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/cjs/utility/api/index.d.ts +1 -0
- package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.d.ts +21 -0
- package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.js +31 -0
- package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.js.map +1 -0
- package/dist/cjs/utility/api/property/index.d.ts +1 -0
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.d.ts +0 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js +0 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/class/api/service-base.class.d.ts +0 -1
- package/dist/esm/class/api/service-base.class.js +0 -1
- package/dist/esm/class/api/service-base.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/function-base.class.d.ts +0 -1
- package/dist/esm/class/api/subscriber/function-base.class.js +0 -1
- package/dist/esm/class/api/subscriber/function-base.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/route-base.class.d.ts +0 -1
- package/dist/esm/class/api/subscriber/route-base.class.js +0 -1
- package/dist/esm/class/api/subscriber/route-base.class.js.map +1 -1
- package/dist/esm/class/metadata-storage.class.d.ts +0 -1
- package/dist/esm/class/metadata-storage.class.js +0 -1
- package/dist/esm/class/metadata-storage.class.js.map +1 -1
- package/dist/esm/constant/interface/api/property/default-string-format.constant.d.ts +4 -0
- package/dist/esm/constant/interface/api/property/default-string-format.constant.js +371 -0
- package/dist/esm/constant/interface/api/property/default-string-format.constant.js.map +1 -0
- package/dist/esm/constant/interface/api/property/index.d.ts +1 -0
- package/dist/esm/constant/interface/api/property/string.constant.d.ts +1 -0
- package/dist/esm/constant/interface/api/property/string.constant.js +2 -0
- package/dist/esm/constant/interface/api/property/string.constant.js.map +1 -1
- package/dist/esm/decorator/api/controller/decorator.d.ts +18 -1
- package/dist/esm/decorator/api/controller/decorator.js +18 -1
- package/dist/esm/decorator/api/controller/decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/describe.decorator.d.ts +0 -1
- package/dist/esm/decorator/api/property/describe.decorator.js +0 -1
- package/dist/esm/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/string.decorator.js +164 -4
- package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service.decorator.d.ts +0 -1
- package/dist/esm/decorator/api/service.decorator.js +0 -1
- package/dist/esm/decorator/api/service.decorator.js.map +1 -1
- package/dist/esm/enum/decorator/api/property/data-type.enum.d.ts +41 -1
- package/dist/esm/enum/decorator/api/property/data-type.enum.js +41 -1
- package/dist/esm/enum/decorator/api/property/data-type.enum.js.map +1 -1
- package/dist/esm/enum/decorator/api/property/string-type.enum.d.ts +41 -1
- package/dist/esm/enum/decorator/api/property/string-type.enum.js +41 -1
- package/dist/esm/enum/decorator/api/property/string-type.enum.js.map +1 -1
- package/dist/esm/factory/api/controller.factory.js +2 -0
- package/dist/esm/factory/api/controller.factory.js.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.d.ts +0 -1
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js +0 -1
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/esm/module/api-subscriber.module.d.ts +0 -1
- package/dist/esm/module/api-subscriber.module.js +0 -1
- package/dist/esm/module/api-subscriber.module.js.map +1 -1
- package/dist/esm/type/decorator/api/property/default/string/format/index.d.ts +2 -0
- package/dist/esm/type/decorator/api/property/default/string/format/properties.type.d.ts +7 -0
- package/dist/esm/type/decorator/api/property/default/string/format/type.d.ts +2 -0
- package/dist/esm/type/decorator/api/property/default/string/index.d.ts +1 -0
- package/dist/esm/type/decorator/api/property/index.d.ts +1 -0
- package/dist/esm/utility/api/controller/apply-metadata.utility.js +1 -0
- package/dist/esm/utility/api/controller/apply-metadata.utility.js.map +1 -1
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js +1 -0
- package/dist/esm/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
- package/dist/esm/utility/api/filter-order-by-from-entity.utility.js +1 -0
- package/dist/esm/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
- package/dist/esm/utility/api/index.d.ts +1 -0
- package/dist/esm/utility/api/property/get-default-string-format-properties.utility.d.ts +21 -0
- package/dist/esm/utility/api/property/get-default-string-format-properties.utility.js +29 -0
- package/dist/esm/utility/api/property/get-default-string-format-properties.utility.js.map +1 -0
- package/dist/esm/utility/api/property/index.d.ts +1 -0
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.d.ts +0 -1
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js +0 -1
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../../../constant/interface/api/property/default-string-format.constant.js');
|
|
3
4
|
var string_constant = require('../../../constant/interface/api/property/string.constant.js');
|
|
4
5
|
require('../../../enum/decorator/api/action.enum.js');
|
|
5
6
|
require('../../../enum/decorator/api/authentication-type.enum.js');
|
|
@@ -156,28 +157,177 @@ function buildFormatDecorators(properties) {
|
|
|
156
157
|
const decorators = [];
|
|
157
158
|
const isArray = properties.isArray ?? false;
|
|
158
159
|
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
160
|
+
// eslint-disable-next-line @elsikora/sonar/max-switch-cases
|
|
159
161
|
switch (properties.format) {
|
|
162
|
+
case stringType_enum.EApiPropertyStringType.API_KEY:
|
|
163
|
+
// falls through
|
|
164
|
+
case stringType_enum.EApiPropertyStringType.COORDINATES:
|
|
165
|
+
// falls through
|
|
166
|
+
case stringType_enum.EApiPropertyStringType.CRON:
|
|
167
|
+
// falls through
|
|
168
|
+
case stringType_enum.EApiPropertyStringType.FILE_PATH:
|
|
169
|
+
// falls through
|
|
170
|
+
case stringType_enum.EApiPropertyStringType.GIT_COMMIT_SHA:
|
|
171
|
+
// falls through
|
|
172
|
+
case stringType_enum.EApiPropertyStringType.HSLA_COLOR:
|
|
173
|
+
// falls through
|
|
174
|
+
case stringType_enum.EApiPropertyStringType.LANGUAGE_CODE_ISO639:
|
|
175
|
+
// falls through
|
|
176
|
+
case stringType_enum.EApiPropertyStringType.NANOID:
|
|
177
|
+
// falls through
|
|
178
|
+
case stringType_enum.EApiPropertyStringType.OAUTH2_SCOPE:
|
|
179
|
+
// falls through
|
|
180
|
+
case stringType_enum.EApiPropertyStringType.RGBA_COLOR:
|
|
181
|
+
// falls through
|
|
182
|
+
case stringType_enum.EApiPropertyStringType.SLUG:
|
|
183
|
+
// falls through
|
|
184
|
+
case stringType_enum.EApiPropertyStringType.STRING:
|
|
185
|
+
// falls through
|
|
186
|
+
case stringType_enum.EApiPropertyStringType.ULID:
|
|
187
|
+
// falls through
|
|
188
|
+
case stringType_enum.EApiPropertyStringType.URL_PATH:
|
|
189
|
+
// falls through
|
|
190
|
+
case stringType_enum.EApiPropertyStringType.USERNAME: {
|
|
191
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
192
|
+
decorators.push(classValidator.IsString({ each: isArray }));
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
case stringType_enum.EApiPropertyStringType.BASE64: {
|
|
196
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
197
|
+
decorators.push(classValidator.IsBase64({ each: isArray }));
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
case stringType_enum.EApiPropertyStringType.BCRYPT: {
|
|
201
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
202
|
+
decorators.push(classValidator.IsHash("bcrypt", { each: isArray }));
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
case stringType_enum.EApiPropertyStringType.BITCOIN_ADDRESS: {
|
|
206
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
207
|
+
decorators.push(classValidator.IsBtcAddress({ each: isArray }));
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
case stringType_enum.EApiPropertyStringType.COUNTRY_CODE_ALPHA2: {
|
|
211
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
212
|
+
decorators.push(classValidator.IsISO31661Alpha2({ each: isArray }));
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
case stringType_enum.EApiPropertyStringType.COUNTRY_CODE_ALPHA3: {
|
|
216
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
217
|
+
decorators.push(classValidator.IsISO31661Alpha3({ each: isArray }));
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
case stringType_enum.EApiPropertyStringType.CURRENCY_CODE: {
|
|
221
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
222
|
+
decorators.push(classValidator.IsISO4217CurrencyCode({ each: isArray }));
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
case stringType_enum.EApiPropertyStringType.DATA_URI: {
|
|
226
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
227
|
+
decorators.push(classValidator.IsDataURI({ each: isArray }));
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
160
230
|
case stringType_enum.EApiPropertyStringType.DATE: {
|
|
161
231
|
decorators.push(
|
|
162
232
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
163
233
|
classValidator.IsDate({ each: isArray }), classTransformer.Type(() => Date));
|
|
164
234
|
break;
|
|
165
235
|
}
|
|
236
|
+
case stringType_enum.EApiPropertyStringType.DOMAIN: {
|
|
237
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
238
|
+
decorators.push(classValidator.IsFQDN({ each: isArray }));
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
166
241
|
case stringType_enum.EApiPropertyStringType.EMAIL: {
|
|
167
242
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
168
243
|
decorators.push(classValidator.IsEmail({}, { each: isArray }));
|
|
169
244
|
break;
|
|
170
245
|
}
|
|
171
|
-
case stringType_enum.EApiPropertyStringType.
|
|
246
|
+
case stringType_enum.EApiPropertyStringType.ETHEREUM_ADDRESS: {
|
|
247
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
248
|
+
decorators.push(classValidator.IsEthereumAddress({ each: isArray }));
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
case stringType_enum.EApiPropertyStringType.HASH_MD5: {
|
|
252
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
253
|
+
decorators.push(classValidator.IsHash("md5", { each: isArray }));
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
case stringType_enum.EApiPropertyStringType.HASH_SHA256: {
|
|
257
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
258
|
+
decorators.push(classValidator.IsHash("sha256", { each: isArray }));
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
case stringType_enum.EApiPropertyStringType.HEX_COLOR: {
|
|
262
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
263
|
+
decorators.push(classValidator.IsHexColor({ each: isArray }));
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
case stringType_enum.EApiPropertyStringType.HSL_COLOR: {
|
|
267
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
268
|
+
decorators.push(classValidator.IsHSL({ each: isArray }));
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
case stringType_enum.EApiPropertyStringType.IBAN: {
|
|
272
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
273
|
+
decorators.push(classValidator.IsIBAN({ each: isArray }));
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
case stringType_enum.EApiPropertyStringType.IPV4: {
|
|
172
277
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
173
278
|
decorators.push(classValidator.IsIP(string_constant.STRING_PROPERTY_API_INTERFACE_CONSTANT.IP_VERSION, { each: isArray }));
|
|
174
279
|
break;
|
|
175
280
|
}
|
|
281
|
+
case stringType_enum.EApiPropertyStringType.IPV6: {
|
|
282
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
283
|
+
decorators.push(classValidator.IsIP(string_constant.STRING_PROPERTY_API_INTERFACE_CONSTANT.IP_VERSION_6, { each: isArray }));
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
case stringType_enum.EApiPropertyStringType.ISBN: {
|
|
287
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
288
|
+
decorators.push(classValidator.IsISBN(undefined, { each: isArray }));
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
case stringType_enum.EApiPropertyStringType.JWT: {
|
|
292
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
293
|
+
decorators.push(classValidator.IsJWT({ each: isArray }));
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
case stringType_enum.EApiPropertyStringType.LOCALE: {
|
|
297
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
298
|
+
decorators.push(classValidator.IsLocale({ each: isArray }));
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
176
301
|
case stringType_enum.EApiPropertyStringType.LOWERCASE_STRING: {
|
|
177
302
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
178
303
|
decorators.push(classValidator.IsString({ each: isArray }), classValidator.IsLowercase({ each: isArray }));
|
|
179
304
|
break;
|
|
180
305
|
}
|
|
306
|
+
case stringType_enum.EApiPropertyStringType.MAC_ADDRESS: {
|
|
307
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
308
|
+
decorators.push(classValidator.IsMACAddress({ each: isArray }));
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
case stringType_enum.EApiPropertyStringType.MIME_TYPE: {
|
|
312
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
313
|
+
decorators.push(classValidator.IsMimeType({ each: isArray }));
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
case stringType_enum.EApiPropertyStringType.MONGODB_OBJECT_ID: {
|
|
317
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
318
|
+
decorators.push(classValidator.IsMongoId({ each: isArray }));
|
|
319
|
+
break;
|
|
320
|
+
}
|
|
321
|
+
case stringType_enum.EApiPropertyStringType.PHONE_NUMBER: {
|
|
322
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
323
|
+
decorators.push(classValidator.IsPhoneNumber(undefined, { each: isArray }));
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
case stringType_enum.EApiPropertyStringType.POSTAL_CODE: {
|
|
327
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
328
|
+
decorators.push(classValidator.IsPostalCode("any", { each: isArray }));
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
181
331
|
case stringType_enum.EApiPropertyStringType.REGEXP: {
|
|
182
332
|
decorators.push(classValidator.Validate(isRegularExpression_validator.IsRegularExpressionValidator, {
|
|
183
333
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
@@ -188,9 +338,19 @@ function buildFormatDecorators(properties) {
|
|
|
188
338
|
classValidator.Matches(new RegExp(properties.pattern.slice(1, -1)), { each: isArray }), classTransformer.Type(() => RegExp));
|
|
189
339
|
break;
|
|
190
340
|
}
|
|
191
|
-
case stringType_enum.EApiPropertyStringType.
|
|
341
|
+
case stringType_enum.EApiPropertyStringType.RGB_COLOR: {
|
|
192
342
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
193
|
-
decorators.push(classValidator.
|
|
343
|
+
decorators.push(classValidator.IsRgbColor(false, { each: isArray }));
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
case stringType_enum.EApiPropertyStringType.SEMVER: {
|
|
347
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
348
|
+
decorators.push(classValidator.IsSemVer({ each: isArray }));
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
case stringType_enum.EApiPropertyStringType.TIMEZONE: {
|
|
352
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
353
|
+
decorators.push(classValidator.IsTimeZone({ each: isArray }));
|
|
194
354
|
break;
|
|
195
355
|
}
|
|
196
356
|
case stringType_enum.EApiPropertyStringType.UPPERCASE_STRING: {
|
|
@@ -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,GAAiD;AACxE,QAAA,WAAW,EAAE,CAAA,EAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAA,CAAE;;AAEhF,QAAA,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU;QACjC,IAAI,EAAEC,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AU,CAAC,YAAY,CAAC,EAAE;AAC3C,QAAA,KAAK,MAAM,OAAO,IAAI,UAAU,CAAC,YAAY,EAAE;YAC9C,IAAI,OAAO,CAAC,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE;AAC1C,gBAAA,MAAM,CAAC,IAAI,CAAC,8CAA8C,GAAG,OAAO,CAAC;YACtE;QACD;IACD;SAAO,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE;QACjE,MAAM,CAAC,IAAI,CAAC,8CAA8C,GAAG,UAAU,CAAC,YAAY,CAAC;IACtF;AAEA,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;QACrD;AAEA,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;AAEA,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;QAEA,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;QAC/E;IACD;AAEA,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,yBAAA,EAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;IACjE;AACD;;;;"}
|
|
1
|
+
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":["applyDecorators","EApiPropertyDataType","ApiProperty","EApiPropertyStringType","IsString","IsBase64","IsHash","IsBtcAddress","IsISO31661Alpha2","IsISO31661Alpha3","IsISO4217CurrencyCode","IsDataURI","IsDate","Type","IsFQDN","IsEmail","IsEthereumAddress","IsHexColor","IsHSL","IsIBAN","IsIP","STRING_PROPERTY_API_INTERFACE_CONSTANT","IsISBN","IsJWT","IsLocale","IsLowercase","IsMACAddress","IsMimeType","IsMongoId","IsPhoneNumber","IsPostalCode","Validate","IsRegularExpressionValidator","Matches","IsRgbColor","IsSemVer","IsTimeZone","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,GAAiD;AACxE,QAAA,WAAW,EAAE,CAAA,EAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,CAAA,CAAE;;AAEhF,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,KAAK,IAAI,EAAE;AAChC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EA,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;QACrD;AAEA,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;AAEA,QAAA,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC5B,YAAA,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC;QACzC;QAEA,IAAI,UAAU,CAAC,aAAa,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,EAAE;AACzD,YAAA,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC;QAC/E;IACD;AAEA,IAAA,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,yBAAA,EAA4B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC;IACjE;AACD;;;;"}
|
|
@@ -5,7 +5,6 @@ import type { TApiServiceProperties } from '../../type/decorator/api/service/ind
|
|
|
5
5
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
6
6
|
* @returns {Function} A class decorator function that extends the target class with CRUD methods
|
|
7
7
|
* @template E - The entity type
|
|
8
|
-
*
|
|
9
8
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apiservice | API Reference - ApiService}
|
|
10
9
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
11
10
|
*/
|
|
@@ -26,7 +26,6 @@ require('../../enum/decorator/api/route-type.enum.js');
|
|
|
26
26
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
27
27
|
* @returns {Function} A class decorator function that extends the target class with CRUD methods
|
|
28
28
|
* @template E - The entity type
|
|
29
|
-
*
|
|
30
29
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apiservice | API Reference - ApiService}
|
|
31
30
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
32
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASA;;;;;;;AAOG;AACG,SAAU,UAAU,CAA2B,UAAoC,EAAA;AACxF,IAAA,MAAM,EAAE,MAAM,EAAE,GAA6B,UAAU;;AAGvD,IAAA,OAAO,UAAuE,MAAiB,EAAA;QAC9F,MAAM,mBAAmB,GAAc,MAAM;;AAG7C,QAAA,MAAM,aAAa,GAAmE,cAAc,mBAAmB,CAAA;;AAEtH,YAAA,WAAA,CAAY,GAAG,UAAsB,EAAA;;AAEpC,gBAAA,KAAK,CAAC,GAAG,UAAU,CAAC;AAEpB,gBAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAEA,0BAAgB,CAAC,QAAQ,CAAC,EAAE;oBAC3E,MAAM,CAAC,cAAc,CAAC,IAAI,EAAEA,0BAAgB,CAAC,QAAQ,EAAE;;AAEtD,wBAAA,YAAY,EAAE,IAAI;;AAElB,wBAAA,UAAU,EAAE,IAAI;AAChB,wBAAA,KAAK,EAAE,gBAAgB,UAA4C,EAAE,SAAkC,EAAE,YAA4B,EAAA;4BACpI,MAAM,oBAAoB,GAAmGC,qBAAW,CAAC;gCACxI,MAAM;gCAEN,IAAI,EAAED,0B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SACA;AAED,QAAA,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,mBAAmB,CAAC;AAEzD,QAAA,OAAO,aAA0B;AAClC,IAAA,CAAC;AACF;;;;"}
|
|
@@ -1,18 +1,58 @@
|
|
|
1
1
|
export declare enum EApiPropertyDataType {
|
|
2
|
+
API_KEY = "api-key",
|
|
3
|
+
BASE64 = "base64",
|
|
4
|
+
BCRYPT = "bcrypt",
|
|
5
|
+
BITCOIN_ADDRESS = "bitcoin-address",
|
|
2
6
|
BOOLEAN = "boolean",
|
|
7
|
+
COORDINATES = "coordinates",
|
|
8
|
+
COUNTRY_CODE_ALPHA2 = "country-code-alpha2",
|
|
9
|
+
COUNTRY_CODE_ALPHA3 = "country-code-alpha3",
|
|
10
|
+
CRON = "cron",
|
|
11
|
+
CURRENCY_CODE = "currency-code",
|
|
12
|
+
DATA_URI = "data-uri",
|
|
3
13
|
DATE = "date",
|
|
4
14
|
DATE_TIME = "date-time",
|
|
15
|
+
DOMAIN = "domain",
|
|
5
16
|
DOUBLE = "double",
|
|
6
17
|
EMAIL = "email",
|
|
18
|
+
ETHEREUM_ADDRESS = "ethereum-address",
|
|
19
|
+
FILE_PATH = "file-path",
|
|
20
|
+
GIT_COMMIT_SHA = "git-commit-sha",
|
|
21
|
+
HASH_MD5 = "hash-md5",
|
|
22
|
+
HASH_SHA256 = "hash-sha256",
|
|
23
|
+
HEX_COLOR = "hex-color",
|
|
24
|
+
HSL_COLOR = "hsl-color",
|
|
25
|
+
HSLA_COLOR = "hsla-color",
|
|
26
|
+
IBAN = "iban",
|
|
7
27
|
INTEGER = "integer",
|
|
8
|
-
|
|
28
|
+
IPV4 = "ipv4",
|
|
29
|
+
IPV6 = "ipv6",
|
|
30
|
+
ISBN = "isbn",
|
|
31
|
+
JWT = "jwt",
|
|
32
|
+
LANGUAGE_CODE_ISO639 = "language-code-iso639",
|
|
33
|
+
LOCALE = "locale",
|
|
9
34
|
LOWERCASE_STRING = "lowercase-string",
|
|
35
|
+
MAC_ADDRESS = "mac-address",
|
|
36
|
+
MIME_TYPE = "mime-type",
|
|
37
|
+
MONGODB_OBJECT_ID = "mongodb-object-id",
|
|
38
|
+
NANOID = "nanoid",
|
|
10
39
|
NUMBER = "number",
|
|
40
|
+
OAUTH2_SCOPE = "oauth2-scope",
|
|
41
|
+
PHONE_NUMBER = "phone-number",
|
|
42
|
+
POSTAL_CODE = "postal-code",
|
|
11
43
|
REGEXP = "regexp",
|
|
44
|
+
RGB_COLOR = "rgb-color",
|
|
45
|
+
RGBA_COLOR = "rgba-color",
|
|
46
|
+
SEMVER = "semver",
|
|
47
|
+
SLUG = "slug",
|
|
12
48
|
STRING = "string",
|
|
13
49
|
TEXT = "text",
|
|
14
50
|
TIME = "time",
|
|
51
|
+
TIMEZONE = "timezone",
|
|
52
|
+
ULID = "ulid",
|
|
15
53
|
UPPERCASE_STRING = "uppercase-string",
|
|
16
54
|
URL = "url",
|
|
55
|
+
URL_PATH = "url-path",
|
|
56
|
+
USERNAME = "username",
|
|
17
57
|
UUID = "uuid"
|
|
18
58
|
}
|
|
@@ -2,21 +2,61 @@
|
|
|
2
2
|
|
|
3
3
|
exports.EApiPropertyDataType = void 0;
|
|
4
4
|
(function (EApiPropertyDataType) {
|
|
5
|
+
EApiPropertyDataType["API_KEY"] = "api-key";
|
|
6
|
+
EApiPropertyDataType["BASE64"] = "base64";
|
|
7
|
+
EApiPropertyDataType["BCRYPT"] = "bcrypt";
|
|
8
|
+
EApiPropertyDataType["BITCOIN_ADDRESS"] = "bitcoin-address";
|
|
5
9
|
EApiPropertyDataType["BOOLEAN"] = "boolean";
|
|
10
|
+
EApiPropertyDataType["COORDINATES"] = "coordinates";
|
|
11
|
+
EApiPropertyDataType["COUNTRY_CODE_ALPHA2"] = "country-code-alpha2";
|
|
12
|
+
EApiPropertyDataType["COUNTRY_CODE_ALPHA3"] = "country-code-alpha3";
|
|
13
|
+
EApiPropertyDataType["CRON"] = "cron";
|
|
14
|
+
EApiPropertyDataType["CURRENCY_CODE"] = "currency-code";
|
|
15
|
+
EApiPropertyDataType["DATA_URI"] = "data-uri";
|
|
6
16
|
EApiPropertyDataType["DATE"] = "date";
|
|
7
17
|
EApiPropertyDataType["DATE_TIME"] = "date-time";
|
|
18
|
+
EApiPropertyDataType["DOMAIN"] = "domain";
|
|
8
19
|
EApiPropertyDataType["DOUBLE"] = "double";
|
|
9
20
|
EApiPropertyDataType["EMAIL"] = "email";
|
|
21
|
+
EApiPropertyDataType["ETHEREUM_ADDRESS"] = "ethereum-address";
|
|
22
|
+
EApiPropertyDataType["FILE_PATH"] = "file-path";
|
|
23
|
+
EApiPropertyDataType["GIT_COMMIT_SHA"] = "git-commit-sha";
|
|
24
|
+
EApiPropertyDataType["HASH_MD5"] = "hash-md5";
|
|
25
|
+
EApiPropertyDataType["HASH_SHA256"] = "hash-sha256";
|
|
26
|
+
EApiPropertyDataType["HEX_COLOR"] = "hex-color";
|
|
27
|
+
EApiPropertyDataType["HSL_COLOR"] = "hsl-color";
|
|
28
|
+
EApiPropertyDataType["HSLA_COLOR"] = "hsla-color";
|
|
29
|
+
EApiPropertyDataType["IBAN"] = "iban";
|
|
10
30
|
EApiPropertyDataType["INTEGER"] = "integer";
|
|
11
|
-
EApiPropertyDataType["
|
|
31
|
+
EApiPropertyDataType["IPV4"] = "ipv4";
|
|
32
|
+
EApiPropertyDataType["IPV6"] = "ipv6";
|
|
33
|
+
EApiPropertyDataType["ISBN"] = "isbn";
|
|
34
|
+
EApiPropertyDataType["JWT"] = "jwt";
|
|
35
|
+
EApiPropertyDataType["LANGUAGE_CODE_ISO639"] = "language-code-iso639";
|
|
36
|
+
EApiPropertyDataType["LOCALE"] = "locale";
|
|
12
37
|
EApiPropertyDataType["LOWERCASE_STRING"] = "lowercase-string";
|
|
38
|
+
EApiPropertyDataType["MAC_ADDRESS"] = "mac-address";
|
|
39
|
+
EApiPropertyDataType["MIME_TYPE"] = "mime-type";
|
|
40
|
+
EApiPropertyDataType["MONGODB_OBJECT_ID"] = "mongodb-object-id";
|
|
41
|
+
EApiPropertyDataType["NANOID"] = "nanoid";
|
|
13
42
|
EApiPropertyDataType["NUMBER"] = "number";
|
|
43
|
+
EApiPropertyDataType["OAUTH2_SCOPE"] = "oauth2-scope";
|
|
44
|
+
EApiPropertyDataType["PHONE_NUMBER"] = "phone-number";
|
|
45
|
+
EApiPropertyDataType["POSTAL_CODE"] = "postal-code";
|
|
14
46
|
EApiPropertyDataType["REGEXP"] = "regexp";
|
|
47
|
+
EApiPropertyDataType["RGB_COLOR"] = "rgb-color";
|
|
48
|
+
EApiPropertyDataType["RGBA_COLOR"] = "rgba-color";
|
|
49
|
+
EApiPropertyDataType["SEMVER"] = "semver";
|
|
50
|
+
EApiPropertyDataType["SLUG"] = "slug";
|
|
15
51
|
EApiPropertyDataType["STRING"] = "string";
|
|
16
52
|
EApiPropertyDataType["TEXT"] = "text";
|
|
17
53
|
EApiPropertyDataType["TIME"] = "time";
|
|
54
|
+
EApiPropertyDataType["TIMEZONE"] = "timezone";
|
|
55
|
+
EApiPropertyDataType["ULID"] = "ulid";
|
|
18
56
|
EApiPropertyDataType["UPPERCASE_STRING"] = "uppercase-string";
|
|
19
57
|
EApiPropertyDataType["URL"] = "url";
|
|
58
|
+
EApiPropertyDataType["URL_PATH"] = "url-path";
|
|
59
|
+
EApiPropertyDataType["USERNAME"] = "username";
|
|
20
60
|
EApiPropertyDataType["UUID"] = "uuid";
|
|
21
61
|
})(exports.EApiPropertyDataType || (exports.EApiPropertyDataType = {}));
|
|
22
62
|
//# sourceMappingURL=data-type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/data-type.enum.ts"],"sourcesContent":[null],"names":["EApiPropertyDataType"],"mappings":";;AAAYA;AAAZ,CAAA,UAAY,oBAAoB,EAAA;AAC/B,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oBAAA,CAAA,IAAA,CAAA,GAAA,
|
|
1
|
+
{"version":3,"file":"data-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/data-type.enum.ts"],"sourcesContent":[null],"names":["EApiPropertyDataType"],"mappings":";;AAAYA;AAAZ,CAAA,UAAY,oBAAoB,EAAA;AAC/B,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,iBAAA,CAAA,GAAA,iBAAmC;AACnC,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,oBAAA,CAAA,qBAAA,CAAA,GAAA,qBAA2C;AAC3C,IAAA,oBAAA,CAAA,qBAAA,CAAA,GAAA,qBAA2C;AAC3C,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/B,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,OAAA,CAAA,GAA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IAAA,oBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,oBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,oBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACrC,IAAA,oBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACd,CAAC,EAzDWA,4BAAoB,KAApBA,4BAAoB,GAAA,EAAA,CAAA,CAAA;;"}
|
|
@@ -1,11 +1,51 @@
|
|
|
1
1
|
export declare enum EApiPropertyStringType {
|
|
2
|
+
API_KEY = "api-key",
|
|
3
|
+
BASE64 = "base64",
|
|
4
|
+
BCRYPT = "bcrypt",
|
|
5
|
+
BITCOIN_ADDRESS = "bitcoin-address",
|
|
6
|
+
COORDINATES = "coordinates",
|
|
7
|
+
COUNTRY_CODE_ALPHA2 = "country-code-alpha2",
|
|
8
|
+
COUNTRY_CODE_ALPHA3 = "country-code-alpha3",
|
|
9
|
+
CRON = "cron",
|
|
10
|
+
CURRENCY_CODE = "currency-code",
|
|
11
|
+
DATA_URI = "data-uri",
|
|
2
12
|
DATE = "date",
|
|
13
|
+
DOMAIN = "domain",
|
|
3
14
|
EMAIL = "email",
|
|
4
|
-
|
|
15
|
+
ETHEREUM_ADDRESS = "ethereum-address",
|
|
16
|
+
FILE_PATH = "file-path",
|
|
17
|
+
GIT_COMMIT_SHA = "git-commit-sha",
|
|
18
|
+
HASH_MD5 = "hash-md5",
|
|
19
|
+
HASH_SHA256 = "hash-sha256",
|
|
20
|
+
HEX_COLOR = "hex-color",
|
|
21
|
+
HSL_COLOR = "hsl-color",
|
|
22
|
+
HSLA_COLOR = "hsla-color",
|
|
23
|
+
IBAN = "iban",
|
|
24
|
+
IPV4 = "ipv4",
|
|
25
|
+
IPV6 = "ipv6",
|
|
26
|
+
ISBN = "isbn",
|
|
27
|
+
JWT = "jwt",
|
|
28
|
+
LANGUAGE_CODE_ISO639 = "language-code-iso639",
|
|
29
|
+
LOCALE = "locale",
|
|
5
30
|
LOWERCASE_STRING = "lowercase-string",
|
|
31
|
+
MAC_ADDRESS = "mac-address",
|
|
32
|
+
MIME_TYPE = "mime-type",
|
|
33
|
+
MONGODB_OBJECT_ID = "mongodb-object-id",
|
|
34
|
+
NANOID = "nanoid",
|
|
35
|
+
OAUTH2_SCOPE = "oauth2-scope",
|
|
36
|
+
PHONE_NUMBER = "phone-number",
|
|
37
|
+
POSTAL_CODE = "postal-code",
|
|
6
38
|
REGEXP = "regexp",
|
|
39
|
+
RGB_COLOR = "rgb-color",
|
|
40
|
+
RGBA_COLOR = "rgba-color",
|
|
41
|
+
SEMVER = "semver",
|
|
42
|
+
SLUG = "slug",
|
|
7
43
|
STRING = "string",
|
|
44
|
+
TIMEZONE = "timezone",
|
|
45
|
+
ULID = "ulid",
|
|
8
46
|
UPPERCASE_STRING = "uppercase-string",
|
|
9
47
|
URL = "url",
|
|
48
|
+
URL_PATH = "url-path",
|
|
49
|
+
USERNAME = "username",
|
|
10
50
|
UUID = "uuid"
|
|
11
51
|
}
|
|
@@ -4,14 +4,54 @@ require('./data-type.enum.js');
|
|
|
4
4
|
|
|
5
5
|
exports.EApiPropertyStringType = void 0;
|
|
6
6
|
(function (EApiPropertyStringType) {
|
|
7
|
+
EApiPropertyStringType["API_KEY"] = "api-key";
|
|
8
|
+
EApiPropertyStringType["BASE64"] = "base64";
|
|
9
|
+
EApiPropertyStringType["BCRYPT"] = "bcrypt";
|
|
10
|
+
EApiPropertyStringType["BITCOIN_ADDRESS"] = "bitcoin-address";
|
|
11
|
+
EApiPropertyStringType["COORDINATES"] = "coordinates";
|
|
12
|
+
EApiPropertyStringType["COUNTRY_CODE_ALPHA2"] = "country-code-alpha2";
|
|
13
|
+
EApiPropertyStringType["COUNTRY_CODE_ALPHA3"] = "country-code-alpha3";
|
|
14
|
+
EApiPropertyStringType["CRON"] = "cron";
|
|
15
|
+
EApiPropertyStringType["CURRENCY_CODE"] = "currency-code";
|
|
16
|
+
EApiPropertyStringType["DATA_URI"] = "data-uri";
|
|
7
17
|
EApiPropertyStringType["DATE"] = "date";
|
|
18
|
+
EApiPropertyStringType["DOMAIN"] = "domain";
|
|
8
19
|
EApiPropertyStringType["EMAIL"] = "email";
|
|
9
|
-
EApiPropertyStringType["
|
|
20
|
+
EApiPropertyStringType["ETHEREUM_ADDRESS"] = "ethereum-address";
|
|
21
|
+
EApiPropertyStringType["FILE_PATH"] = "file-path";
|
|
22
|
+
EApiPropertyStringType["GIT_COMMIT_SHA"] = "git-commit-sha";
|
|
23
|
+
EApiPropertyStringType["HASH_MD5"] = "hash-md5";
|
|
24
|
+
EApiPropertyStringType["HASH_SHA256"] = "hash-sha256";
|
|
25
|
+
EApiPropertyStringType["HEX_COLOR"] = "hex-color";
|
|
26
|
+
EApiPropertyStringType["HSL_COLOR"] = "hsl-color";
|
|
27
|
+
EApiPropertyStringType["HSLA_COLOR"] = "hsla-color";
|
|
28
|
+
EApiPropertyStringType["IBAN"] = "iban";
|
|
29
|
+
EApiPropertyStringType["IPV4"] = "ipv4";
|
|
30
|
+
EApiPropertyStringType["IPV6"] = "ipv6";
|
|
31
|
+
EApiPropertyStringType["ISBN"] = "isbn";
|
|
32
|
+
EApiPropertyStringType["JWT"] = "jwt";
|
|
33
|
+
EApiPropertyStringType["LANGUAGE_CODE_ISO639"] = "language-code-iso639";
|
|
34
|
+
EApiPropertyStringType["LOCALE"] = "locale";
|
|
10
35
|
EApiPropertyStringType["LOWERCASE_STRING"] = "lowercase-string";
|
|
36
|
+
EApiPropertyStringType["MAC_ADDRESS"] = "mac-address";
|
|
37
|
+
EApiPropertyStringType["MIME_TYPE"] = "mime-type";
|
|
38
|
+
EApiPropertyStringType["MONGODB_OBJECT_ID"] = "mongodb-object-id";
|
|
39
|
+
EApiPropertyStringType["NANOID"] = "nanoid";
|
|
40
|
+
EApiPropertyStringType["OAUTH2_SCOPE"] = "oauth2-scope";
|
|
41
|
+
EApiPropertyStringType["PHONE_NUMBER"] = "phone-number";
|
|
42
|
+
EApiPropertyStringType["POSTAL_CODE"] = "postal-code";
|
|
11
43
|
EApiPropertyStringType["REGEXP"] = "regexp";
|
|
44
|
+
EApiPropertyStringType["RGB_COLOR"] = "rgb-color";
|
|
45
|
+
EApiPropertyStringType["RGBA_COLOR"] = "rgba-color";
|
|
46
|
+
EApiPropertyStringType["SEMVER"] = "semver";
|
|
47
|
+
EApiPropertyStringType["SLUG"] = "slug";
|
|
12
48
|
EApiPropertyStringType["STRING"] = "string";
|
|
49
|
+
EApiPropertyStringType["TIMEZONE"] = "timezone";
|
|
50
|
+
EApiPropertyStringType["ULID"] = "ulid";
|
|
13
51
|
EApiPropertyStringType["UPPERCASE_STRING"] = "uppercase-string";
|
|
14
52
|
EApiPropertyStringType["URL"] = "url";
|
|
53
|
+
EApiPropertyStringType["URL_PATH"] = "url-path";
|
|
54
|
+
EApiPropertyStringType["USERNAME"] = "username";
|
|
15
55
|
EApiPropertyStringType["UUID"] = "uuid";
|
|
16
56
|
})(exports.EApiPropertyStringType || (exports.EApiPropertyStringType = {}));
|
|
17
57
|
//# sourceMappingURL=string-type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/string-type.enum.ts"],"sourcesContent":[null],"names":["EApiPropertyStringType"],"mappings":";;;;AAEYA;AAAZ,CAAA,UAAY,sBAAsB,EAAA;AACjC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AAChC,IAAA,sBAAA,CAAA,OAAA,CAAA,GAAA,OAAkC;AAClC,IAAA,sBAAA,CAAA,IAAA,CAAA,GAAA,
|
|
1
|
+
{"version":3,"file":"string-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/string-type.enum.ts"],"sourcesContent":[null],"names":["EApiPropertyStringType"],"mappings":";;;;AAEYA;AAAZ,CAAA,UAAY,sBAAsB,EAAA;AACjC,IAAA,sBAAA,CAAA,SAAA,CAAA,GAAA,SAAsC;AACtC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,iBAAA,CAAA,GAAA,iBAAsD;AACtD,IAAA,sBAAA,CAAA,aAAA,CAAA,GAAA,aAA8C;AAC9C,IAAA,sBAAA,CAAA,qBAAA,CAAA,GAAA,qBAA8D;AAC9D,IAAA,sBAAA,CAAA,qBAAA,CAAA,GAAA,qBAA8D;AAC9D,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AAChC,IAAA,sBAAA,CAAA,eAAA,CAAA,GAAA,eAAkD;AAClD,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AAChC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,OAAA,CAAA,GAAA,OAAkC;AAClC,IAAA,sBAAA,CAAA,kBAAA,CAAA,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AA,GAAA,WAA0C;AAC1C,IAAA,sBAAA,CAAA,YAAA,CAAA,GAAA,YAA4C;AAC5C,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AAChC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AAChC,IAAA,sBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAwD;AACxD,IAAA,sBAAA,CAAA,KAAA,CAAA,GAAA,KAA8B;AAC9B,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAwC;AACxC,IAAA,sBAAA,CAAA,MAAA,CAAA,GAAA,MAAgC;AACjC,CAAC,EAlDWA,8BAAsB,KAAtBA,8BAAsB,GAAA,EAAA,CAAA,CAAA;;"}
|
|
@@ -30,8 +30,10 @@ var transformData_utility = require('../../utility/api/controller/transform-data
|
|
|
30
30
|
var validateRequest_utility = require('../../utility/api/controller/validate-request.utility.js');
|
|
31
31
|
var writeDtoSwagger_utility = require('../../utility/api/controller/write-dto-swagger.utility.js');
|
|
32
32
|
var writeMethod_utility = require('../../utility/api/controller/write-method.utility.js');
|
|
33
|
+
require('../../constant/interface/api/property/default-string-format.constant.js');
|
|
33
34
|
require('typeorm');
|
|
34
35
|
require('reflect-metadata');
|
|
36
|
+
require('lodash/cloneDeep');
|
|
35
37
|
var analize_utility = require('../../utility/dto/analize.utility.js');
|
|
36
38
|
require('../../constant/utility/dto/constant.js');
|
|
37
39
|
var errorException_utility = require('../../utility/error-exception.utility.js');
|