@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,3 +1,4 @@
|
|
|
1
|
+
import '../../../constant/interface/api/property/default-string-format.constant.js';
|
|
1
2
|
import { STRING_PROPERTY_API_INTERFACE_CONSTANT } from '../../../constant/interface/api/property/string.constant.js';
|
|
2
3
|
import '../../../enum/decorator/api/action.enum.js';
|
|
3
4
|
import '../../../enum/decorator/api/authentication-type.enum.js';
|
|
@@ -17,7 +18,7 @@ import { applyDecorators } from '@nestjs/common';
|
|
|
17
18
|
import { ApiProperty, ApiResponseProperty } from '@nestjs/swagger';
|
|
18
19
|
import { IsRegularExpressionValidator } from '../../../validator/is-regular-expression.validator.js';
|
|
19
20
|
import { Expose, Exclude, Type } from 'class-transformer';
|
|
20
|
-
import { IsOptional, IsArray, ArrayMinSize, ArrayMaxSize, ArrayNotEmpty, IsUUID, IsUrl, IsString, IsUppercase, Validate, Matches, IsLowercase, IsIP, IsEmail, IsDate, Length } from 'class-validator';
|
|
21
|
+
import { IsOptional, IsArray, ArrayMinSize, ArrayMaxSize, ArrayNotEmpty, IsUUID, IsUrl, IsString, IsUppercase, IsTimeZone, IsSemVer, IsRgbColor, Validate, Matches, IsPostalCode, IsPhoneNumber, IsMongoId, IsMimeType, IsMACAddress, IsLowercase, IsLocale, IsJWT, IsISBN, IsIP, IsIBAN, IsHSL, IsHexColor, IsHash, IsEthereumAddress, IsEmail, IsFQDN, IsDate, IsDataURI, IsISO4217CurrencyCode, IsISO31661Alpha3, IsISO31661Alpha2, IsBtcAddress, IsBase64, Length } from 'class-validator';
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* Creates a decorator that applies NestJS Swagger and class-validator/class-transformer decorators
|
|
@@ -154,28 +155,177 @@ function buildFormatDecorators(properties) {
|
|
|
154
155
|
const decorators = [];
|
|
155
156
|
const isArray = properties.isArray ?? false;
|
|
156
157
|
if (properties.isResponse === undefined || !properties.isResponse) {
|
|
158
|
+
// eslint-disable-next-line @elsikora/sonar/max-switch-cases
|
|
157
159
|
switch (properties.format) {
|
|
160
|
+
case EApiPropertyStringType.API_KEY:
|
|
161
|
+
// falls through
|
|
162
|
+
case EApiPropertyStringType.COORDINATES:
|
|
163
|
+
// falls through
|
|
164
|
+
case EApiPropertyStringType.CRON:
|
|
165
|
+
// falls through
|
|
166
|
+
case EApiPropertyStringType.FILE_PATH:
|
|
167
|
+
// falls through
|
|
168
|
+
case EApiPropertyStringType.GIT_COMMIT_SHA:
|
|
169
|
+
// falls through
|
|
170
|
+
case EApiPropertyStringType.HSLA_COLOR:
|
|
171
|
+
// falls through
|
|
172
|
+
case EApiPropertyStringType.LANGUAGE_CODE_ISO639:
|
|
173
|
+
// falls through
|
|
174
|
+
case EApiPropertyStringType.NANOID:
|
|
175
|
+
// falls through
|
|
176
|
+
case EApiPropertyStringType.OAUTH2_SCOPE:
|
|
177
|
+
// falls through
|
|
178
|
+
case EApiPropertyStringType.RGBA_COLOR:
|
|
179
|
+
// falls through
|
|
180
|
+
case EApiPropertyStringType.SLUG:
|
|
181
|
+
// falls through
|
|
182
|
+
case EApiPropertyStringType.STRING:
|
|
183
|
+
// falls through
|
|
184
|
+
case EApiPropertyStringType.ULID:
|
|
185
|
+
// falls through
|
|
186
|
+
case EApiPropertyStringType.URL_PATH:
|
|
187
|
+
// falls through
|
|
188
|
+
case EApiPropertyStringType.USERNAME: {
|
|
189
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
190
|
+
decorators.push(IsString({ each: isArray }));
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
case EApiPropertyStringType.BASE64: {
|
|
194
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
195
|
+
decorators.push(IsBase64({ each: isArray }));
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
case EApiPropertyStringType.BCRYPT: {
|
|
199
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
200
|
+
decorators.push(IsHash("bcrypt", { each: isArray }));
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
case EApiPropertyStringType.BITCOIN_ADDRESS: {
|
|
204
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
205
|
+
decorators.push(IsBtcAddress({ each: isArray }));
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
case EApiPropertyStringType.COUNTRY_CODE_ALPHA2: {
|
|
209
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
210
|
+
decorators.push(IsISO31661Alpha2({ each: isArray }));
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
case EApiPropertyStringType.COUNTRY_CODE_ALPHA3: {
|
|
214
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
215
|
+
decorators.push(IsISO31661Alpha3({ each: isArray }));
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
case EApiPropertyStringType.CURRENCY_CODE: {
|
|
219
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
220
|
+
decorators.push(IsISO4217CurrencyCode({ each: isArray }));
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
case EApiPropertyStringType.DATA_URI: {
|
|
224
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
225
|
+
decorators.push(IsDataURI({ each: isArray }));
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
158
228
|
case EApiPropertyStringType.DATE: {
|
|
159
229
|
decorators.push(
|
|
160
230
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
161
231
|
IsDate({ each: isArray }), Type(() => Date));
|
|
162
232
|
break;
|
|
163
233
|
}
|
|
234
|
+
case EApiPropertyStringType.DOMAIN: {
|
|
235
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
236
|
+
decorators.push(IsFQDN({ each: isArray }));
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
164
239
|
case EApiPropertyStringType.EMAIL: {
|
|
165
240
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
166
241
|
decorators.push(IsEmail({}, { each: isArray }));
|
|
167
242
|
break;
|
|
168
243
|
}
|
|
169
|
-
case EApiPropertyStringType.
|
|
244
|
+
case EApiPropertyStringType.ETHEREUM_ADDRESS: {
|
|
245
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
246
|
+
decorators.push(IsEthereumAddress({ each: isArray }));
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
case EApiPropertyStringType.HASH_MD5: {
|
|
250
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
251
|
+
decorators.push(IsHash("md5", { each: isArray }));
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
case EApiPropertyStringType.HASH_SHA256: {
|
|
255
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
256
|
+
decorators.push(IsHash("sha256", { each: isArray }));
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
case EApiPropertyStringType.HEX_COLOR: {
|
|
260
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
261
|
+
decorators.push(IsHexColor({ each: isArray }));
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
case EApiPropertyStringType.HSL_COLOR: {
|
|
265
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
266
|
+
decorators.push(IsHSL({ each: isArray }));
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
case EApiPropertyStringType.IBAN: {
|
|
270
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
271
|
+
decorators.push(IsIBAN({ each: isArray }));
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
case EApiPropertyStringType.IPV4: {
|
|
170
275
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
171
276
|
decorators.push(IsIP(STRING_PROPERTY_API_INTERFACE_CONSTANT.IP_VERSION, { each: isArray }));
|
|
172
277
|
break;
|
|
173
278
|
}
|
|
279
|
+
case EApiPropertyStringType.IPV6: {
|
|
280
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
281
|
+
decorators.push(IsIP(STRING_PROPERTY_API_INTERFACE_CONSTANT.IP_VERSION_6, { each: isArray }));
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
case EApiPropertyStringType.ISBN: {
|
|
285
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
286
|
+
decorators.push(IsISBN(undefined, { each: isArray }));
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
case EApiPropertyStringType.JWT: {
|
|
290
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
291
|
+
decorators.push(IsJWT({ each: isArray }));
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
case EApiPropertyStringType.LOCALE: {
|
|
295
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
296
|
+
decorators.push(IsLocale({ each: isArray }));
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
174
299
|
case EApiPropertyStringType.LOWERCASE_STRING: {
|
|
175
300
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
176
301
|
decorators.push(IsString({ each: isArray }), IsLowercase({ each: isArray }));
|
|
177
302
|
break;
|
|
178
303
|
}
|
|
304
|
+
case EApiPropertyStringType.MAC_ADDRESS: {
|
|
305
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
306
|
+
decorators.push(IsMACAddress({ each: isArray }));
|
|
307
|
+
break;
|
|
308
|
+
}
|
|
309
|
+
case EApiPropertyStringType.MIME_TYPE: {
|
|
310
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
311
|
+
decorators.push(IsMimeType({ each: isArray }));
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
case EApiPropertyStringType.MONGODB_OBJECT_ID: {
|
|
315
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
316
|
+
decorators.push(IsMongoId({ each: isArray }));
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
case EApiPropertyStringType.PHONE_NUMBER: {
|
|
320
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
321
|
+
decorators.push(IsPhoneNumber(undefined, { each: isArray }));
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
case EApiPropertyStringType.POSTAL_CODE: {
|
|
325
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
326
|
+
decorators.push(IsPostalCode("any", { each: isArray }));
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
179
329
|
case EApiPropertyStringType.REGEXP: {
|
|
180
330
|
decorators.push(Validate(IsRegularExpressionValidator, {
|
|
181
331
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
@@ -186,9 +336,19 @@ function buildFormatDecorators(properties) {
|
|
|
186
336
|
Matches(new RegExp(properties.pattern.slice(1, -1)), { each: isArray }), Type(() => RegExp));
|
|
187
337
|
break;
|
|
188
338
|
}
|
|
189
|
-
case EApiPropertyStringType.
|
|
339
|
+
case EApiPropertyStringType.RGB_COLOR: {
|
|
190
340
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
191
|
-
decorators.push(
|
|
341
|
+
decorators.push(IsRgbColor(false, { each: isArray }));
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
case EApiPropertyStringType.SEMVER: {
|
|
345
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
346
|
+
decorators.push(IsSemVer({ each: isArray }));
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
case EApiPropertyStringType.TIMEZONE: {
|
|
350
|
+
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
351
|
+
decorators.push(IsTimeZone({ each: isArray }));
|
|
192
352
|
break;
|
|
193
353
|
}
|
|
194
354
|
case EApiPropertyStringType.UPPERCASE_STRING: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.decorator.js","sources":["../../../../../../src/decorator/api/property/string.decorator.ts"],"sourcesContent":[null],"names":[],"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,OAAO,eAAe,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,EAAE,oBAAoB,CAAC,MAAM;KACjC;AAED,IAAA,kBAAkB,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU;AAEnD,IAAA,IAAI,UAAU,CAAC,OAAO,KA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AI,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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEG;AACG,SAAU,iBAAiB,CAAC,UAAwC,EAAA;IACzE,eAAe,CAAC,UAAU,CAAC;AAE3B,IAAA,MAAM,kBAAkB,GAAu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KAAK,CAAC,OAAO,CAAC,UAAU,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;;;;"}
|
|
@@ -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
|
*/
|
|
@@ -24,7 +24,6 @@ import '../../enum/decorator/api/route-type.enum.js';
|
|
|
24
24
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
25
25
|
* @returns {Function} A class decorator function that extends the target class with CRUD methods
|
|
26
26
|
* @template E - The entity type
|
|
27
|
-
*
|
|
28
27
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apiservice | API Reference - ApiService}
|
|
29
28
|
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
30
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":[],"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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E,MAAM,MAAM;;AAEnB,gCAAA,QAAQ,EAAE,IAAI;6BACd;AAED,4BAAA,MAAM,mBAAmB,GAAuB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC;AAE/G,4BAAA,OAAQ,mBAAmB,CAAC,KAAiH,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC;wBACjL,CAAC;;AAED,wBAAA,QAAQ,EAAE,IAAI;AACd,qBAAA,CAAC;gBACH;YACD;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
|
}
|
|
@@ -1,20 +1,60 @@
|
|
|
1
1
|
var EApiPropertyDataType;
|
|
2
2
|
(function (EApiPropertyDataType) {
|
|
3
|
+
EApiPropertyDataType["API_KEY"] = "api-key";
|
|
4
|
+
EApiPropertyDataType["BASE64"] = "base64";
|
|
5
|
+
EApiPropertyDataType["BCRYPT"] = "bcrypt";
|
|
6
|
+
EApiPropertyDataType["BITCOIN_ADDRESS"] = "bitcoin-address";
|
|
3
7
|
EApiPropertyDataType["BOOLEAN"] = "boolean";
|
|
8
|
+
EApiPropertyDataType["COORDINATES"] = "coordinates";
|
|
9
|
+
EApiPropertyDataType["COUNTRY_CODE_ALPHA2"] = "country-code-alpha2";
|
|
10
|
+
EApiPropertyDataType["COUNTRY_CODE_ALPHA3"] = "country-code-alpha3";
|
|
11
|
+
EApiPropertyDataType["CRON"] = "cron";
|
|
12
|
+
EApiPropertyDataType["CURRENCY_CODE"] = "currency-code";
|
|
13
|
+
EApiPropertyDataType["DATA_URI"] = "data-uri";
|
|
4
14
|
EApiPropertyDataType["DATE"] = "date";
|
|
5
15
|
EApiPropertyDataType["DATE_TIME"] = "date-time";
|
|
16
|
+
EApiPropertyDataType["DOMAIN"] = "domain";
|
|
6
17
|
EApiPropertyDataType["DOUBLE"] = "double";
|
|
7
18
|
EApiPropertyDataType["EMAIL"] = "email";
|
|
19
|
+
EApiPropertyDataType["ETHEREUM_ADDRESS"] = "ethereum-address";
|
|
20
|
+
EApiPropertyDataType["FILE_PATH"] = "file-path";
|
|
21
|
+
EApiPropertyDataType["GIT_COMMIT_SHA"] = "git-commit-sha";
|
|
22
|
+
EApiPropertyDataType["HASH_MD5"] = "hash-md5";
|
|
23
|
+
EApiPropertyDataType["HASH_SHA256"] = "hash-sha256";
|
|
24
|
+
EApiPropertyDataType["HEX_COLOR"] = "hex-color";
|
|
25
|
+
EApiPropertyDataType["HSL_COLOR"] = "hsl-color";
|
|
26
|
+
EApiPropertyDataType["HSLA_COLOR"] = "hsla-color";
|
|
27
|
+
EApiPropertyDataType["IBAN"] = "iban";
|
|
8
28
|
EApiPropertyDataType["INTEGER"] = "integer";
|
|
9
|
-
EApiPropertyDataType["
|
|
29
|
+
EApiPropertyDataType["IPV4"] = "ipv4";
|
|
30
|
+
EApiPropertyDataType["IPV6"] = "ipv6";
|
|
31
|
+
EApiPropertyDataType["ISBN"] = "isbn";
|
|
32
|
+
EApiPropertyDataType["JWT"] = "jwt";
|
|
33
|
+
EApiPropertyDataType["LANGUAGE_CODE_ISO639"] = "language-code-iso639";
|
|
34
|
+
EApiPropertyDataType["LOCALE"] = "locale";
|
|
10
35
|
EApiPropertyDataType["LOWERCASE_STRING"] = "lowercase-string";
|
|
36
|
+
EApiPropertyDataType["MAC_ADDRESS"] = "mac-address";
|
|
37
|
+
EApiPropertyDataType["MIME_TYPE"] = "mime-type";
|
|
38
|
+
EApiPropertyDataType["MONGODB_OBJECT_ID"] = "mongodb-object-id";
|
|
39
|
+
EApiPropertyDataType["NANOID"] = "nanoid";
|
|
11
40
|
EApiPropertyDataType["NUMBER"] = "number";
|
|
41
|
+
EApiPropertyDataType["OAUTH2_SCOPE"] = "oauth2-scope";
|
|
42
|
+
EApiPropertyDataType["PHONE_NUMBER"] = "phone-number";
|
|
43
|
+
EApiPropertyDataType["POSTAL_CODE"] = "postal-code";
|
|
12
44
|
EApiPropertyDataType["REGEXP"] = "regexp";
|
|
45
|
+
EApiPropertyDataType["RGB_COLOR"] = "rgb-color";
|
|
46
|
+
EApiPropertyDataType["RGBA_COLOR"] = "rgba-color";
|
|
47
|
+
EApiPropertyDataType["SEMVER"] = "semver";
|
|
48
|
+
EApiPropertyDataType["SLUG"] = "slug";
|
|
13
49
|
EApiPropertyDataType["STRING"] = "string";
|
|
14
50
|
EApiPropertyDataType["TEXT"] = "text";
|
|
15
51
|
EApiPropertyDataType["TIME"] = "time";
|
|
52
|
+
EApiPropertyDataType["TIMEZONE"] = "timezone";
|
|
53
|
+
EApiPropertyDataType["ULID"] = "ulid";
|
|
16
54
|
EApiPropertyDataType["UPPERCASE_STRING"] = "uppercase-string";
|
|
17
55
|
EApiPropertyDataType["URL"] = "url";
|
|
56
|
+
EApiPropertyDataType["URL_PATH"] = "url-path";
|
|
57
|
+
EApiPropertyDataType["USERNAME"] = "username";
|
|
18
58
|
EApiPropertyDataType["UUID"] = "uuid";
|
|
19
59
|
})(EApiPropertyDataType || (EApiPropertyDataType = {}));
|
|
20
60
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/data-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;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":[],"mappings":"IAAY;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,UAAq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CRYPT = "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
|
}
|
|
@@ -2,14 +2,54 @@ import './data-type.enum.js';
|
|
|
2
2
|
|
|
3
3
|
var EApiPropertyStringType;
|
|
4
4
|
(function (EApiPropertyStringType) {
|
|
5
|
+
EApiPropertyStringType["API_KEY"] = "api-key";
|
|
6
|
+
EApiPropertyStringType["BASE64"] = "base64";
|
|
7
|
+
EApiPropertyStringType["BCRYPT"] = "bcrypt";
|
|
8
|
+
EApiPropertyStringType["BITCOIN_ADDRESS"] = "bitcoin-address";
|
|
9
|
+
EApiPropertyStringType["COORDINATES"] = "coordinates";
|
|
10
|
+
EApiPropertyStringType["COUNTRY_CODE_ALPHA2"] = "country-code-alpha2";
|
|
11
|
+
EApiPropertyStringType["COUNTRY_CODE_ALPHA3"] = "country-code-alpha3";
|
|
12
|
+
EApiPropertyStringType["CRON"] = "cron";
|
|
13
|
+
EApiPropertyStringType["CURRENCY_CODE"] = "currency-code";
|
|
14
|
+
EApiPropertyStringType["DATA_URI"] = "data-uri";
|
|
5
15
|
EApiPropertyStringType["DATE"] = "date";
|
|
16
|
+
EApiPropertyStringType["DOMAIN"] = "domain";
|
|
6
17
|
EApiPropertyStringType["EMAIL"] = "email";
|
|
7
|
-
EApiPropertyStringType["
|
|
18
|
+
EApiPropertyStringType["ETHEREUM_ADDRESS"] = "ethereum-address";
|
|
19
|
+
EApiPropertyStringType["FILE_PATH"] = "file-path";
|
|
20
|
+
EApiPropertyStringType["GIT_COMMIT_SHA"] = "git-commit-sha";
|
|
21
|
+
EApiPropertyStringType["HASH_MD5"] = "hash-md5";
|
|
22
|
+
EApiPropertyStringType["HASH_SHA256"] = "hash-sha256";
|
|
23
|
+
EApiPropertyStringType["HEX_COLOR"] = "hex-color";
|
|
24
|
+
EApiPropertyStringType["HSL_COLOR"] = "hsl-color";
|
|
25
|
+
EApiPropertyStringType["HSLA_COLOR"] = "hsla-color";
|
|
26
|
+
EApiPropertyStringType["IBAN"] = "iban";
|
|
27
|
+
EApiPropertyStringType["IPV4"] = "ipv4";
|
|
28
|
+
EApiPropertyStringType["IPV6"] = "ipv6";
|
|
29
|
+
EApiPropertyStringType["ISBN"] = "isbn";
|
|
30
|
+
EApiPropertyStringType["JWT"] = "jwt";
|
|
31
|
+
EApiPropertyStringType["LANGUAGE_CODE_ISO639"] = "language-code-iso639";
|
|
32
|
+
EApiPropertyStringType["LOCALE"] = "locale";
|
|
8
33
|
EApiPropertyStringType["LOWERCASE_STRING"] = "lowercase-string";
|
|
34
|
+
EApiPropertyStringType["MAC_ADDRESS"] = "mac-address";
|
|
35
|
+
EApiPropertyStringType["MIME_TYPE"] = "mime-type";
|
|
36
|
+
EApiPropertyStringType["MONGODB_OBJECT_ID"] = "mongodb-object-id";
|
|
37
|
+
EApiPropertyStringType["NANOID"] = "nanoid";
|
|
38
|
+
EApiPropertyStringType["OAUTH2_SCOPE"] = "oauth2-scope";
|
|
39
|
+
EApiPropertyStringType["PHONE_NUMBER"] = "phone-number";
|
|
40
|
+
EApiPropertyStringType["POSTAL_CODE"] = "postal-code";
|
|
9
41
|
EApiPropertyStringType["REGEXP"] = "regexp";
|
|
42
|
+
EApiPropertyStringType["RGB_COLOR"] = "rgb-color";
|
|
43
|
+
EApiPropertyStringType["RGBA_COLOR"] = "rgba-color";
|
|
44
|
+
EApiPropertyStringType["SEMVER"] = "semver";
|
|
45
|
+
EApiPropertyStringType["SLUG"] = "slug";
|
|
10
46
|
EApiPropertyStringType["STRING"] = "string";
|
|
47
|
+
EApiPropertyStringType["TIMEZONE"] = "timezone";
|
|
48
|
+
EApiPropertyStringType["ULID"] = "ulid";
|
|
11
49
|
EApiPropertyStringType["UPPERCASE_STRING"] = "uppercase-string";
|
|
12
50
|
EApiPropertyStringType["URL"] = "url";
|
|
51
|
+
EApiPropertyStringType["URL_PATH"] = "url-path";
|
|
52
|
+
EApiPropertyStringType["USERNAME"] = "username";
|
|
13
53
|
EApiPropertyStringType["UUID"] = "uuid";
|
|
14
54
|
})(EApiPropertyStringType || (EApiPropertyStringType = {}));
|
|
15
55
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-type.enum.js","sources":["../../../../../../../src/enum/decorator/api/property/string-type.enum.ts"],"sourcesContent":[null],"names":[],"mappings":";;IAEY;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":[],"mappings":";;IAEY;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,CAA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CAAA,cAAA,CAAA,GAAA,cAAgD;AAChD,IAAA,sBAAA,CAAA,aAAA,CAAA,GAAA,aAA8C;AAC9C,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAoC;AACpC,IAAA,sBAAA,CAAA,WAAA,CAAA,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,EAlDW,sBAAsB,KAAtB,sBAAsB,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -28,8 +28,10 @@ import { ApiControllerTransformData } from '../../utility/api/controller/transfo
|
|
|
28
28
|
import { ApiControllerValidateRequest } from '../../utility/api/controller/validate-request.utility.js';
|
|
29
29
|
import { ApiControllerWriteDtoSwagger } from '../../utility/api/controller/write-dto-swagger.utility.js';
|
|
30
30
|
import { ApiControllerWriteMethod } from '../../utility/api/controller/write-method.utility.js';
|
|
31
|
+
import '../../constant/interface/api/property/default-string-format.constant.js';
|
|
31
32
|
import 'typeorm';
|
|
32
33
|
import 'reflect-metadata';
|
|
34
|
+
import 'lodash/cloneDeep';
|
|
33
35
|
import { analyzeEntityMetadata } from '../../utility/dto/analize.utility.js';
|
|
34
36
|
import '../../constant/utility/dto/constant.js';
|
|
35
37
|
import { ErrorException } from '../../utility/error-exception.utility.js';
|