@elsikora/nestjs-crud-automator 1.11.3 → 1.12.0

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.
Files changed (132) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/class/api/service-base.class.d.ts +0 -1
  3. package/dist/cjs/class/api/service-base.class.js +0 -1
  4. package/dist/cjs/class/api/service-base.class.js.map +1 -1
  5. package/dist/cjs/class/api/subscriber/function-base.class.d.ts +0 -1
  6. package/dist/cjs/class/api/subscriber/function-base.class.js +0 -1
  7. package/dist/cjs/class/api/subscriber/function-base.class.js.map +1 -1
  8. package/dist/cjs/class/api/subscriber/route-base.class.d.ts +0 -1
  9. package/dist/cjs/class/api/subscriber/route-base.class.js +0 -1
  10. package/dist/cjs/class/api/subscriber/route-base.class.js.map +1 -1
  11. package/dist/cjs/class/metadata-storage.class.d.ts +0 -1
  12. package/dist/cjs/class/metadata-storage.class.js +0 -1
  13. package/dist/cjs/class/metadata-storage.class.js.map +1 -1
  14. package/dist/cjs/constant/interface/api/property/default-string-format.constant.d.ts +4 -0
  15. package/dist/cjs/constant/interface/api/property/default-string-format.constant.js +373 -0
  16. package/dist/cjs/constant/interface/api/property/default-string-format.constant.js.map +1 -0
  17. package/dist/cjs/constant/interface/api/property/index.d.ts +1 -0
  18. package/dist/cjs/constant/interface/api/property/string.constant.d.ts +1 -0
  19. package/dist/cjs/constant/interface/api/property/string.constant.js +2 -0
  20. package/dist/cjs/constant/interface/api/property/string.constant.js.map +1 -1
  21. package/dist/cjs/decorator/api/controller/decorator.d.ts +18 -1
  22. package/dist/cjs/decorator/api/controller/decorator.js +18 -1
  23. package/dist/cjs/decorator/api/controller/decorator.js.map +1 -1
  24. package/dist/cjs/decorator/api/property/describe.decorator.d.ts +0 -1
  25. package/dist/cjs/decorator/api/property/describe.decorator.js +0 -1
  26. package/dist/cjs/decorator/api/property/describe.decorator.js.map +1 -1
  27. package/dist/cjs/decorator/api/property/string.decorator.js +163 -3
  28. package/dist/cjs/decorator/api/property/string.decorator.js.map +1 -1
  29. package/dist/cjs/decorator/api/service.decorator.d.ts +0 -1
  30. package/dist/cjs/decorator/api/service.decorator.js +0 -1
  31. package/dist/cjs/decorator/api/service.decorator.js.map +1 -1
  32. package/dist/cjs/enum/decorator/api/property/data-type.enum.d.ts +41 -1
  33. package/dist/cjs/enum/decorator/api/property/data-type.enum.js +41 -1
  34. package/dist/cjs/enum/decorator/api/property/data-type.enum.js.map +1 -1
  35. package/dist/cjs/enum/decorator/api/property/string-type.enum.d.ts +41 -1
  36. package/dist/cjs/enum/decorator/api/property/string-type.enum.js +41 -1
  37. package/dist/cjs/enum/decorator/api/property/string-type.enum.js.map +1 -1
  38. package/dist/cjs/factory/api/controller.factory.js +2 -0
  39. package/dist/cjs/factory/api/controller.factory.js.map +1 -1
  40. package/dist/cjs/index.js +4 -0
  41. package/dist/cjs/index.js.map +1 -1
  42. package/dist/cjs/interceptor/correlation-id-response-body.interceptor.d.ts +0 -1
  43. package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js +0 -1
  44. package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
  45. package/dist/cjs/module/api-subscriber.module.d.ts +0 -1
  46. package/dist/cjs/module/api-subscriber.module.js +0 -1
  47. package/dist/cjs/module/api-subscriber.module.js.map +1 -1
  48. package/dist/cjs/type/decorator/api/property/default/string/format/index.d.ts +2 -0
  49. package/dist/cjs/type/decorator/api/property/default/string/format/properties.type.d.ts +7 -0
  50. package/dist/cjs/type/decorator/api/property/default/string/format/type.d.ts +2 -0
  51. package/dist/cjs/type/decorator/api/property/default/string/index.d.ts +1 -0
  52. package/dist/cjs/type/decorator/api/property/index.d.ts +1 -0
  53. package/dist/cjs/utility/api/controller/apply-metadata.utility.js +1 -0
  54. package/dist/cjs/utility/api/controller/apply-metadata.utility.js.map +1 -1
  55. package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js +1 -0
  56. package/dist/cjs/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
  57. package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js +1 -0
  58. package/dist/cjs/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
  59. package/dist/cjs/utility/api/index.d.ts +1 -0
  60. package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.d.ts +21 -0
  61. package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.js +31 -0
  62. package/dist/cjs/utility/api/property/get-default-string-format-properties.utility.js.map +1 -0
  63. package/dist/cjs/utility/api/property/index.d.ts +1 -0
  64. package/dist/cjs/validator/all-or-none-of-listed-properties.validator.d.ts +0 -1
  65. package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js +0 -1
  66. package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
  67. package/dist/esm/class/api/service-base.class.d.ts +0 -1
  68. package/dist/esm/class/api/service-base.class.js +0 -1
  69. package/dist/esm/class/api/service-base.class.js.map +1 -1
  70. package/dist/esm/class/api/subscriber/function-base.class.d.ts +0 -1
  71. package/dist/esm/class/api/subscriber/function-base.class.js +0 -1
  72. package/dist/esm/class/api/subscriber/function-base.class.js.map +1 -1
  73. package/dist/esm/class/api/subscriber/route-base.class.d.ts +0 -1
  74. package/dist/esm/class/api/subscriber/route-base.class.js +0 -1
  75. package/dist/esm/class/api/subscriber/route-base.class.js.map +1 -1
  76. package/dist/esm/class/metadata-storage.class.d.ts +0 -1
  77. package/dist/esm/class/metadata-storage.class.js +0 -1
  78. package/dist/esm/class/metadata-storage.class.js.map +1 -1
  79. package/dist/esm/constant/interface/api/property/default-string-format.constant.d.ts +4 -0
  80. package/dist/esm/constant/interface/api/property/default-string-format.constant.js +371 -0
  81. package/dist/esm/constant/interface/api/property/default-string-format.constant.js.map +1 -0
  82. package/dist/esm/constant/interface/api/property/index.d.ts +1 -0
  83. package/dist/esm/constant/interface/api/property/string.constant.d.ts +1 -0
  84. package/dist/esm/constant/interface/api/property/string.constant.js +2 -0
  85. package/dist/esm/constant/interface/api/property/string.constant.js.map +1 -1
  86. package/dist/esm/decorator/api/controller/decorator.d.ts +18 -1
  87. package/dist/esm/decorator/api/controller/decorator.js +18 -1
  88. package/dist/esm/decorator/api/controller/decorator.js.map +1 -1
  89. package/dist/esm/decorator/api/property/describe.decorator.d.ts +0 -1
  90. package/dist/esm/decorator/api/property/describe.decorator.js +0 -1
  91. package/dist/esm/decorator/api/property/describe.decorator.js.map +1 -1
  92. package/dist/esm/decorator/api/property/string.decorator.js +164 -4
  93. package/dist/esm/decorator/api/property/string.decorator.js.map +1 -1
  94. package/dist/esm/decorator/api/service.decorator.d.ts +0 -1
  95. package/dist/esm/decorator/api/service.decorator.js +0 -1
  96. package/dist/esm/decorator/api/service.decorator.js.map +1 -1
  97. package/dist/esm/enum/decorator/api/property/data-type.enum.d.ts +41 -1
  98. package/dist/esm/enum/decorator/api/property/data-type.enum.js +41 -1
  99. package/dist/esm/enum/decorator/api/property/data-type.enum.js.map +1 -1
  100. package/dist/esm/enum/decorator/api/property/string-type.enum.d.ts +41 -1
  101. package/dist/esm/enum/decorator/api/property/string-type.enum.js +41 -1
  102. package/dist/esm/enum/decorator/api/property/string-type.enum.js.map +1 -1
  103. package/dist/esm/factory/api/controller.factory.js +2 -0
  104. package/dist/esm/factory/api/controller.factory.js.map +1 -1
  105. package/dist/esm/index.js +2 -0
  106. package/dist/esm/index.js.map +1 -1
  107. package/dist/esm/interceptor/correlation-id-response-body.interceptor.d.ts +0 -1
  108. package/dist/esm/interceptor/correlation-id-response-body.interceptor.js +0 -1
  109. package/dist/esm/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
  110. package/dist/esm/module/api-subscriber.module.d.ts +0 -1
  111. package/dist/esm/module/api-subscriber.module.js +0 -1
  112. package/dist/esm/module/api-subscriber.module.js.map +1 -1
  113. package/dist/esm/type/decorator/api/property/default/string/format/index.d.ts +2 -0
  114. package/dist/esm/type/decorator/api/property/default/string/format/properties.type.d.ts +7 -0
  115. package/dist/esm/type/decorator/api/property/default/string/format/type.d.ts +2 -0
  116. package/dist/esm/type/decorator/api/property/default/string/index.d.ts +1 -0
  117. package/dist/esm/type/decorator/api/property/index.d.ts +1 -0
  118. package/dist/esm/utility/api/controller/apply-metadata.utility.js +1 -0
  119. package/dist/esm/utility/api/controller/apply-metadata.utility.js.map +1 -1
  120. package/dist/esm/utility/api/controller/write-dto-swagger.utility.js +1 -0
  121. package/dist/esm/utility/api/controller/write-dto-swagger.utility.js.map +1 -1
  122. package/dist/esm/utility/api/filter-order-by-from-entity.utility.js +1 -0
  123. package/dist/esm/utility/api/filter-order-by-from-entity.utility.js.map +1 -1
  124. package/dist/esm/utility/api/index.d.ts +1 -0
  125. package/dist/esm/utility/api/property/get-default-string-format-properties.utility.d.ts +21 -0
  126. package/dist/esm/utility/api/property/get-default-string-format-properties.utility.js +29 -0
  127. package/dist/esm/utility/api/property/get-default-string-format-properties.utility.js.map +1 -0
  128. package/dist/esm/utility/api/property/index.d.ts +1 -0
  129. package/dist/esm/validator/all-or-none-of-listed-properties.validator.d.ts +0 -1
  130. package/dist/esm/validator/all-or-none-of-listed-properties.validator.js +0 -1
  131. package/dist/esm/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
  132. package/package.json +1 -1
@@ -0,0 +1,371 @@
1
+ import '../../../../enum/decorator/api/property/data-type.enum.js';
2
+ import '../../../../enum/decorator/api/property/date/identifier.enum.js';
3
+ import '../../../../enum/decorator/api/property/date/type.enum.js';
4
+ import '../../../../enum/decorator/api/property/desribe-type.enum.js';
5
+ import '../../../../enum/decorator/api/property/number-type.enum.js';
6
+ import { EApiPropertyStringType } from '../../../../enum/decorator/api/property/string-type.enum.js';
7
+
8
+ const BASE64 = {
9
+ description: "base64 encoded string",
10
+ exampleValue: "SGVsbG8gV29ybGQ=",
11
+ maxLength: 1_000_000,
12
+ minLength: 4,
13
+ pattern: String.raw `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`,
14
+ };
15
+ const BCRYPT = {
16
+ description: "bcrypt password hash",
17
+ // eslint-disable-next-line @elsikora/no-secrets/no-secrets
18
+ exampleValue: "$2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy",
19
+ maxLength: 60,
20
+ minLength: 60,
21
+ pattern: String.raw `/^\$2[aby]\$\d{1,2}\$[.\/A-Za-z0-9]{53}$/`,
22
+ };
23
+ const COUNTRY_CODE_ALPHA2 = {
24
+ description: "ISO 3166-1 alpha-2 country code",
25
+ exampleValue: "US",
26
+ maxLength: 2,
27
+ minLength: 2,
28
+ pattern: String.raw `/^[A-Z]{2}$/`,
29
+ };
30
+ const COUNTRY_CODE_ALPHA3 = {
31
+ description: "ISO 3166-1 alpha-3 country code",
32
+ exampleValue: "USA",
33
+ maxLength: 3,
34
+ minLength: 3,
35
+ pattern: String.raw `/^[A-Z]{3}$/`,
36
+ };
37
+ const CURRENCY_CODE = {
38
+ description: "ISO 4217 currency code",
39
+ exampleValue: "USD",
40
+ maxLength: 3,
41
+ minLength: 3,
42
+ pattern: String.raw `/^[A-Z]{3}$/`,
43
+ };
44
+ const DOMAIN = {
45
+ description: "domain name",
46
+ exampleValue: "example.com",
47
+ maxLength: 253,
48
+ minLength: 1,
49
+ pattern: String.raw `/^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/`,
50
+ };
51
+ const EMAIL = {
52
+ description: "email",
53
+ exampleValue: "user@example.com",
54
+ maxLength: 321,
55
+ minLength: 5,
56
+ pattern: String.raw `/^([a-zA-Z0-9_\-.+])+@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/`,
57
+ };
58
+ const HASH_MD5 = {
59
+ description: "MD5 hash",
60
+ exampleValue: "5d41402abc4b2a76b9719d911017c592",
61
+ maxLength: 32,
62
+ minLength: 32,
63
+ pattern: String.raw `/^[a-fA-F0-9]{32}$/`,
64
+ };
65
+ const HASH_SHA256 = {
66
+ description: "SHA-256 hash",
67
+ exampleValue: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
68
+ maxLength: 64,
69
+ minLength: 64,
70
+ pattern: String.raw `/^[a-fA-F0-9]{64}$/`,
71
+ };
72
+ const HEX_COLOR = {
73
+ description: "hexadecimal color code",
74
+ exampleValue: "#FF5733",
75
+ maxLength: 7,
76
+ minLength: 4,
77
+ pattern: String.raw `/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/`,
78
+ };
79
+ const IBAN = {
80
+ description: "International Bank Account Number",
81
+ exampleValue: "GB82WEST12345698765432",
82
+ maxLength: 34,
83
+ minLength: 15,
84
+ pattern: String.raw `/^[A-Z]{2}\d{2}[A-Z0-9]{1,30}$/`,
85
+ };
86
+ const IPV4 = {
87
+ description: "IPv4 address",
88
+ // eslint-disable-next-line @elsikora/sonar/no-hardcoded-ip
89
+ exampleValue: "192.168.0.1",
90
+ maxLength: 15,
91
+ minLength: 7,
92
+ pattern: String.raw `/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/`,
93
+ };
94
+ const IPV6 = {
95
+ description: "IPv6 address",
96
+ // eslint-disable-next-line @elsikora/sonar/no-hardcoded-ip
97
+ exampleValue: "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
98
+ maxLength: 45,
99
+ minLength: 2,
100
+ pattern: String.raw `/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|::)$/`,
101
+ };
102
+ const ISBN = {
103
+ description: "International Standard Book Number",
104
+ exampleValue: "978-3-16-148410-0",
105
+ maxLength: 17,
106
+ minLength: 10,
107
+ pattern: String.raw `/^(?:ISBN(?:-1[03])?:? )?(?=[0-9X]{10}$|(?=(?:[0-9]+[- ]){3})[- 0-9X]{13}$|97[89][0-9]{10}$|(?=(?:[0-9]+[- ]){4})[- 0-9]{17}$)(?:97[89][- ]?)?[0-9]{1,5}[- ]?[0-9]+[- ]?[0-9]+[- ]?[0-9X]$/`,
108
+ };
109
+ const JWT = {
110
+ description: "JSON Web Token",
111
+ // eslint-disable-next-line @elsikora/no-secrets/no-secrets
112
+ exampleValue: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
113
+ maxLength: 10_000,
114
+ minLength: 100,
115
+ pattern: String.raw `/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+$/`,
116
+ };
117
+ const LANGUAGE_CODE_ISO639 = {
118
+ description: "ISO 639-1 language code",
119
+ exampleValue: "en",
120
+ maxLength: 2,
121
+ minLength: 2,
122
+ pattern: String.raw `/^[a-z]{2}$/`,
123
+ };
124
+ const MAC_ADDRESS = {
125
+ description: "MAC address",
126
+ exampleValue: "00:1B:63:84:45:E6",
127
+ maxLength: 17,
128
+ minLength: 17,
129
+ pattern: String.raw `/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/`,
130
+ };
131
+ const MIME_TYPE = {
132
+ description: "MIME type",
133
+ exampleValue: "application/json",
134
+ maxLength: 255,
135
+ minLength: 3,
136
+ pattern: String.raw `/^[a-zA-Z0-9][a-zA-Z0-9!#$&^_+-]*(\/[a-zA-Z0-9][a-zA-Z0-9!#$&^_+.-]*)+$/`,
137
+ };
138
+ const PHONE_NUMBER = {
139
+ description: "E.164 phone number",
140
+ exampleValue: "+14155552671",
141
+ maxLength: 16,
142
+ minLength: 8,
143
+ pattern: String.raw `/^\+[1-9]\d{1,14}$/`,
144
+ };
145
+ const POSTAL_CODE = {
146
+ description: "postal code",
147
+ exampleValue: "12345",
148
+ maxLength: 10,
149
+ minLength: 3,
150
+ pattern: String.raw `/^[A-Z0-9][A-Z0-9 -]{1,8}[A-Z0-9]$/`,
151
+ };
152
+ const SEMVER = {
153
+ description: "semantic version",
154
+ exampleValue: "1.2.3",
155
+ maxLength: 50,
156
+ minLength: 5,
157
+ pattern: String.raw `/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/`,
158
+ };
159
+ const SLUG = {
160
+ description: "URL slug",
161
+ exampleValue: "my-blog-post",
162
+ maxLength: 200,
163
+ minLength: 1,
164
+ pattern: String.raw `/^[a-z0-9]+(?:-[a-z0-9]+)*$/`,
165
+ };
166
+ const TIMEZONE = {
167
+ description: "IANA timezone identifier",
168
+ exampleValue: "Europe/Kiev",
169
+ maxLength: 50,
170
+ minLength: 3,
171
+ pattern: String.raw `/^[A-Za-z]+(?:\/[A-Za-z_]+)+$/`,
172
+ };
173
+ const URL = {
174
+ description: "URL",
175
+ exampleValue: "https://example.com",
176
+ maxLength: 2048,
177
+ minLength: 3,
178
+ pattern: String.raw `/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/`,
179
+ };
180
+ // eslint-disable-next-line @elsikora/no-secrets/no-pattern-match
181
+ const API_KEY = {
182
+ description: "API key",
183
+ exampleValue: "sk_live_51HqT2xKz9pQr3sF8vN4hG2mL",
184
+ maxLength: 100,
185
+ minLength: 20,
186
+ pattern: String.raw `/^[a-zA-Z0-9_\-]{20,100}$/`,
187
+ };
188
+ const BITCOIN_ADDRESS = {
189
+ description: "Bitcoin address",
190
+ exampleValue: "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
191
+ maxLength: 35,
192
+ minLength: 26,
193
+ pattern: String.raw `/^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$/`,
194
+ };
195
+ const COORDINATES = {
196
+ description: "geographic coordinates (latitude,longitude)",
197
+ exampleValue: "50.4501,30.5234",
198
+ maxLength: 50,
199
+ minLength: 3,
200
+ pattern: String.raw `/^-?([1-8]?[0-9](\.\d+)?|90(\.0+)?),\s*-?(1[0-7][0-9](\.\d+)?|[1-9]?[0-9](\.\d+)?|180(\.0+)?)$/`,
201
+ };
202
+ const CRON = {
203
+ description: "cron expression",
204
+ exampleValue: "0 */6 * * *",
205
+ maxLength: 100,
206
+ minLength: 9,
207
+ pattern: String.raw `/^(\*|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])|\*\/([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])) (\*|([0-9]|1[0-9]|2[0-3])|\*\/([0-9]|1[0-9]|2[0-3])) (\*|([1-9]|1[0-9]|2[0-9]|3[0-1])|\*\/([1-9]|1[0-9]|2[0-9]|3[0-1])) (\*|([1-9]|1[0-2])|\*\/([1-9]|1[0-2])) (\*|([0-6])|\*\/([0-6]))$/`,
208
+ };
209
+ const DATA_URI = {
210
+ description: "data URI",
211
+ exampleValue: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA",
212
+ maxLength: 1_000_000,
213
+ minLength: 14,
214
+ pattern: String.raw `/^data:[a-zA-Z0-9\/+\-]+;base64,[A-Za-z0-9+\/=]+$/`,
215
+ };
216
+ const ETHEREUM_ADDRESS = {
217
+ description: "Ethereum address",
218
+ exampleValue: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
219
+ maxLength: 42,
220
+ minLength: 42,
221
+ pattern: String.raw `/^0x[a-fA-F0-9]{40}$/`,
222
+ };
223
+ const FILE_PATH = {
224
+ description: "file path",
225
+ exampleValue: "/home/user/documents/file.txt",
226
+ maxLength: 500,
227
+ minLength: 1,
228
+ pattern: String.raw `/^[^\0]+$/`,
229
+ };
230
+ const GIT_COMMIT_SHA = {
231
+ description: "Git commit SHA",
232
+ exampleValue: "a3c4f2b1e8d9c7a6b5e4d3c2b1a098765432",
233
+ maxLength: 40,
234
+ minLength: 7,
235
+ pattern: String.raw `/^[a-fA-F0-9]{7,40}$/`,
236
+ };
237
+ const HSL_COLOR = {
238
+ description: "HSL color",
239
+ exampleValue: "hsl(120, 100%, 50%)",
240
+ maxLength: 30,
241
+ minLength: 10,
242
+ pattern: String.raw `/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/`,
243
+ };
244
+ const HSLA_COLOR = {
245
+ description: "HSLA color",
246
+ exampleValue: "hsla(120, 100%, 50%, 0.5)",
247
+ maxLength: 40,
248
+ minLength: 15,
249
+ pattern: String.raw `/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*(0|1|0?\.\d+)\s*\)$/`,
250
+ };
251
+ const LOCALE = {
252
+ description: "locale identifier",
253
+ exampleValue: "en-US",
254
+ maxLength: 8,
255
+ minLength: 2,
256
+ pattern: String.raw `/^[a-z]{2}(-[A-Z]{2})?$/`,
257
+ };
258
+ const MONGODB_OBJECT_ID = {
259
+ description: "MongoDB ObjectId",
260
+ exampleValue: "507f1f77bcf86cd799439011",
261
+ maxLength: 24,
262
+ minLength: 24,
263
+ pattern: String.raw `/^[a-fA-F0-9]{24}$/`,
264
+ };
265
+ const NANOID = {
266
+ description: "NanoID",
267
+ exampleValue: "V1StGXR8_Z5jdHi6B-myT",
268
+ maxLength: 21,
269
+ minLength: 21,
270
+ pattern: String.raw `/^[A-Za-z0-9_-]{21}$/`,
271
+ };
272
+ const OAUTH2_SCOPE = {
273
+ description: "OAuth2 scope",
274
+ exampleValue: "read:user write:repo",
275
+ maxLength: 200,
276
+ minLength: 1,
277
+ pattern: String.raw `/^[a-zA-Z0-9_:\-]+(?: [a-zA-Z0-9_:\-]+)*$/`,
278
+ };
279
+ const RGB_COLOR = {
280
+ description: "RGB color",
281
+ exampleValue: "rgb(255, 128, 0)",
282
+ maxLength: 20,
283
+ minLength: 10,
284
+ pattern: String.raw `/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/`,
285
+ };
286
+ const RGBA_COLOR = {
287
+ description: "RGBA color",
288
+ exampleValue: "rgba(255, 128, 0, 0.5)",
289
+ maxLength: 30,
290
+ minLength: 15,
291
+ pattern: String.raw `/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0|1|0?\.\d+)\s*\)$/`,
292
+ };
293
+ const ULID = {
294
+ description: "ULID",
295
+ exampleValue: "01ARZ3NDEKTSV4RRFFQ69G5FAV",
296
+ maxLength: 26,
297
+ minLength: 26,
298
+ pattern: String.raw `/^[0-9A-HJKMNP-TV-Z]{26}$/`,
299
+ };
300
+ const URL_PATH = {
301
+ description: "URL path",
302
+ exampleValue: "/api/v1/users/123",
303
+ maxLength: 500,
304
+ minLength: 1,
305
+ pattern: String.raw `/^\/[a-zA-Z0-9\/_\-\.]*$/`,
306
+ };
307
+ const USERNAME = {
308
+ description: "username",
309
+ exampleValue: "john_doe123",
310
+ maxLength: 30,
311
+ minLength: 3,
312
+ pattern: String.raw `/^[a-zA-Z0-9_]{3,30}$/`,
313
+ };
314
+ const UUID = {
315
+ description: "UUID",
316
+ exampleValue: "123e4567-e89b-12d3-a456-426614174000",
317
+ maxLength: 36,
318
+ minLength: 36,
319
+ pattern: String.raw `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/`,
320
+ };
321
+ const DEFAULT_STRING_FORMAT_PROPERTY_API_INTERFACE_CONSTANT = {
322
+ DEFAULT_FORMAT_PROPERTIES: {
323
+ [EApiPropertyStringType.API_KEY]: API_KEY,
324
+ [EApiPropertyStringType.BASE64]: BASE64,
325
+ [EApiPropertyStringType.BCRYPT]: BCRYPT,
326
+ [EApiPropertyStringType.BITCOIN_ADDRESS]: BITCOIN_ADDRESS,
327
+ [EApiPropertyStringType.COORDINATES]: COORDINATES,
328
+ [EApiPropertyStringType.COUNTRY_CODE_ALPHA2]: COUNTRY_CODE_ALPHA2,
329
+ [EApiPropertyStringType.COUNTRY_CODE_ALPHA3]: COUNTRY_CODE_ALPHA3,
330
+ [EApiPropertyStringType.CRON]: CRON,
331
+ [EApiPropertyStringType.CURRENCY_CODE]: CURRENCY_CODE,
332
+ [EApiPropertyStringType.DATA_URI]: DATA_URI,
333
+ [EApiPropertyStringType.DOMAIN]: DOMAIN,
334
+ [EApiPropertyStringType.EMAIL]: EMAIL,
335
+ [EApiPropertyStringType.ETHEREUM_ADDRESS]: ETHEREUM_ADDRESS,
336
+ [EApiPropertyStringType.FILE_PATH]: FILE_PATH,
337
+ [EApiPropertyStringType.GIT_COMMIT_SHA]: GIT_COMMIT_SHA,
338
+ [EApiPropertyStringType.HASH_MD5]: HASH_MD5,
339
+ [EApiPropertyStringType.HASH_SHA256]: HASH_SHA256,
340
+ [EApiPropertyStringType.HEX_COLOR]: HEX_COLOR,
341
+ [EApiPropertyStringType.HSL_COLOR]: HSL_COLOR,
342
+ [EApiPropertyStringType.HSLA_COLOR]: HSLA_COLOR,
343
+ [EApiPropertyStringType.IBAN]: IBAN,
344
+ [EApiPropertyStringType.IPV4]: IPV4,
345
+ [EApiPropertyStringType.IPV6]: IPV6,
346
+ [EApiPropertyStringType.ISBN]: ISBN,
347
+ [EApiPropertyStringType.JWT]: JWT,
348
+ [EApiPropertyStringType.LANGUAGE_CODE_ISO639]: LANGUAGE_CODE_ISO639,
349
+ [EApiPropertyStringType.LOCALE]: LOCALE,
350
+ [EApiPropertyStringType.MAC_ADDRESS]: MAC_ADDRESS,
351
+ [EApiPropertyStringType.MIME_TYPE]: MIME_TYPE,
352
+ [EApiPropertyStringType.MONGODB_OBJECT_ID]: MONGODB_OBJECT_ID,
353
+ [EApiPropertyStringType.NANOID]: NANOID,
354
+ [EApiPropertyStringType.OAUTH2_SCOPE]: OAUTH2_SCOPE,
355
+ [EApiPropertyStringType.PHONE_NUMBER]: PHONE_NUMBER,
356
+ [EApiPropertyStringType.POSTAL_CODE]: POSTAL_CODE,
357
+ [EApiPropertyStringType.RGB_COLOR]: RGB_COLOR,
358
+ [EApiPropertyStringType.RGBA_COLOR]: RGBA_COLOR,
359
+ [EApiPropertyStringType.SEMVER]: SEMVER,
360
+ [EApiPropertyStringType.SLUG]: SLUG,
361
+ [EApiPropertyStringType.TIMEZONE]: TIMEZONE,
362
+ [EApiPropertyStringType.ULID]: ULID,
363
+ [EApiPropertyStringType.URL]: URL,
364
+ [EApiPropertyStringType.URL_PATH]: URL_PATH,
365
+ [EApiPropertyStringType.USERNAME]: USERNAME,
366
+ [EApiPropertyStringType.UUID]: UUID,
367
+ },
368
+ };
369
+
370
+ export { DEFAULT_STRING_FORMAT_PROPERTY_API_INTERFACE_CONSTANT };
371
+ //# sourceMappingURL=default-string-format.constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-string-format.constant.js","sources":["../../../../../../../src/constant/interface/api/property/default-string-format.constant.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAKA,MAAM,MAAM,GAA8C;AACzD,IAAA,WAAW,EAAE,uBAAuB;AACpC,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,SAAS,EAAE,SAAS;AACp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sB,CAAC,MAAM,GAAG,MAAM;AACvC,QAAA,CAAC,sBAAsB,CAAC,WAAW,GAAG,WAAW;AACjD,QAAA,CAAC,sBAAsB,CAAC,SAAS,GAAG,SAAS;AAC7C,QAAA,CAAC,sBAAsB,CAAC,iBAAiB,GAAG,iBAAiB;AAC7D,QAAA,CAAC,sBAAsB,CAAC,MAAM,GAAG,MAAM;AACvC,QAAA,CAAC,sBAAsB,CAAC,YAAY,GAAG,YAAY;AACnD,QAAA,CAAC,sBAAsB,CAAC,YAAY,GAAG,YAAY;AACnD,QAAA,CAAC,sBAAsB,CAAC,WAAW,GAAG,WAAW;AACjD,QAAA,CAAC,sBAAsB,CAAC,SAAS,GAAG,SAAS;AAC7C,QAAA,CAAC,sBAAsB,CAAC,UAAU,GAAG,UAAU;AAC/C,QAAA,CAAC,sBAAsB,CAAC,MAAM,GAAG,MAAM;AACvC,QAAA,CAAC,sBAAsB,CAAC,IAAI,GAAG,IAAI;AACnC,QAAA,CAAC,sBAAsB,CAAC,QAAQ,GAAG,QAAQ;AAC3C,QAAA,CAAC,sBAAsB,CAAC,IAAI,GAAG,IAAI;AACnC,QAAA,CAAC,sBAAsB,CAAC,GAAG,GAAG,GAAG;AACjC,QAAA,CAAC,sBAAsB,CAAC,QAAQ,GAAG,QAAQ;AAC3C,QAAA,CAAC,sBAAsB,CAAC,QAAQ,GAAG,QAAQ;AAC3C,QAAA,CAAC,sBAAsB,CAAC,IAAI,GAAG,IAAI;AACnC,KAAA;;;;;"}
@@ -1,2 +1,3 @@
1
+ export { DEFAULT_STRING_FORMAT_PROPERTY_API_INTERFACE_CONSTANT } from './default-string-format.constant';
1
2
  export { STRING_PROPERTY_API_INTERFACE_CONSTANT } from './string.constant';
2
3
  export { WALLET_PROPERTY_API_INTERFACE_CONSTANT } from './wallet.constant';
@@ -1,6 +1,7 @@
1
1
  import type { IsIpVersion } from "class-validator/types/decorator/string/IsIP";
2
2
  export declare const STRING_PROPERTY_API_INTERFACE_CONSTANT: {
3
3
  readonly IP_VERSION: IsIpVersion;
4
+ readonly IP_VERSION_6: IsIpVersion;
4
5
  readonly REGEX_FLAGS_INDEX: number;
5
6
  readonly REGEX_PATTERN_INDEX: number;
6
7
  };
@@ -1,8 +1,10 @@
1
1
  const REGEX_PATTERN_INDEX = 1;
2
2
  const REGEX_FLAGS_INDEX = 2;
3
3
  const IP_VERSION = 4;
4
+ const IP_VERSION_6 = 6;
4
5
  const STRING_PROPERTY_API_INTERFACE_CONSTANT = {
5
6
  IP_VERSION,
7
+ IP_VERSION_6,
6
8
  REGEX_FLAGS_INDEX,
7
9
  REGEX_PATTERN_INDEX,
8
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"string.constant.js","sources":["../../../../../../../src/constant/interface/api/property/string.constant.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAW,CAAC;AACrC,MAAM,iBAAiB,GAAW,CAAC;AACnC,MAAM,UAAU,GAAgB,CAAC;AAE1B,MAAM,sCAAsC,GAI/C;IACH,UAAU;IACV,iBAAiB;IACjB,mBAAmB;;;;;"}
1
+ {"version":3,"file":"string.constant.js","sources":["../../../../../../../src/constant/interface/api/property/string.constant.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAW,CAAC;AACrC,MAAM,iBAAiB,GAAW,CAAC;AACnC,MAAM,UAAU,GAAgB,CAAC;AACjC,MAAM,YAAY,GAAgB,CAAC;AAE5B,MAAM,sCAAsC,GAK/C;IACH,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,mBAAmB;;;;;"}
@@ -3,7 +3,24 @@ import type { IApiControllerProperties } from '../../../interface/decorator/api/
3
3
  import type { TApiControllerConstructor } from '../../../type/decorator/api/controller/index';
4
4
  /**
5
5
  * Automatically generates CRUD endpoints for an entity.
6
- *
6
+ * @param {IApiControllerProperties<E>} options - The controller properties
7
+ * @returns {TApiControllerConstructor} The controller constructor
8
+ * @template E - The entity type
9
+ * @example
10
+ * ```typescript
11
+ * @ApiController<UserEntity>({
12
+ * entity: UserEntity,
13
+ * name: "Users",
14
+ * routes: {
15
+ * [EApiRouteType.CREATE]: {},
16
+ * [EApiRouteType.GET]: {},
17
+ * [EApiRouteType.GET_LIST]: {},
18
+ * [EApiRouteType.UPDATE]: {},
19
+ * [EApiRouteType.DELETE]: {},
20
+ * },
21
+ * })
22
+ * export class UserController {}
23
+ * ```
7
24
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apicontroller | API Reference - ApiController}
8
25
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/controllers | Core Concepts - Controllers}
9
26
  */
@@ -2,7 +2,24 @@ import { ApiControllerFactory } from '../../../factory/api/controller.factory.js
2
2
 
3
3
  /**
4
4
  * Automatically generates CRUD endpoints for an entity.
5
- *
5
+ * @param {IApiControllerProperties<E>} options - The controller properties
6
+ * @returns {TApiControllerConstructor} The controller constructor
7
+ * @template E - The entity type
8
+ * @example
9
+ * ```typescript
10
+ * @ApiController<UserEntity>({
11
+ * entity: UserEntity,
12
+ * name: "Users",
13
+ * routes: {
14
+ * [EApiRouteType.CREATE]: {},
15
+ * [EApiRouteType.GET]: {},
16
+ * [EApiRouteType.GET_LIST]: {},
17
+ * [EApiRouteType.UPDATE]: {},
18
+ * [EApiRouteType.DELETE]: {},
19
+ * },
20
+ * })
21
+ * export class UserController {}
22
+ * ```
6
23
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apicontroller | API Reference - ApiController}
7
24
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/controllers | Core Concepts - Controllers}
8
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/controller/decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAMA;;;;;AAKG;AACI,MAAM,aAAa,GACzB,CAA2B,OAAoC,KAC/D,CAAsC,MAAS,KAAO;IACrD,MAAM,OAAO,GAA4B,IAAI,oBAAoB,CAAI,MAAM,EAAE,OAAO,CAAC;IACrF,OAAO,CAAC,IAAI,EAAE;;AAGd,IAAA,MAAM,mBAAmB,GAA2D,cAAc,MAAM,CAAA;;AAEvG,QAAA,WAAA,CAAY,GAAG,UAAe,EAAA;;AAE7B,YAAA,KAAK,CAAC,GAAG,UAAU,CAAC;QACrB;KACA;AACD,IAAA,MAAM,CAAC,cAAc,CAAC,mBAAmB,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;AAE1E,IAAA,OAAO,mBAAwB;AAChC;;;;"}
1
+ {"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/controller/decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAMA;;;;;;;;;;;;;;;;;;;;;;AAsBG;AACI,MAAM,aAAa,GACzB,CAA2B,OAAoC,KAC/D,CAAsC,MAAS,KAAO;IACrD,MAAM,OAAO,GAA4B,IAAI,oBAAoB,CAAI,MAAM,EAAE,OAAO,CAAC;IACrF,OAAO,CAAC,IAAI,EAAE;;AAGd,IAAA,MAAM,mBAAmB,GAA2D,cAAc,MAAM,CAAA;;AAEvG,QAAA,WAAA,CAAY,GAAG,UAAe,EAAA;;AAE7B,YAAA,KAAK,CAAC,GAAG,UAAU,CAAC;QACrB;KACA;AACD,IAAA,MAAM,CAAC,cAAc,CAAC,mBAAmB,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;AAE1E,IAAA,OAAO,mBAAwB;AAChC;;;;"}
@@ -79,7 +79,6 @@ import type { TApiPropertyDescribeProperties } from '../../../type/decorator/api
79
79
  * })
80
80
  * posts: Post[];
81
81
  * ```
82
- *
83
82
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apipropertydescribe | API Reference - ApiPropertyDescribe}
84
83
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/entities | Core Concepts - Entities}
85
84
  */
@@ -82,7 +82,6 @@ import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../../../constant/deco
82
82
  * })
83
83
  * posts: Post[];
84
84
  * ```
85
- *
86
85
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apipropertydescribe | API Reference - ApiPropertyDescribe}
87
86
  * @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/entities | Core Concepts - Entities}
88
87
  */
@@ -1 +1 @@
1
- {"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFG;AACG,SAAU,mBAAmB,CAAC,UAA0C,EAAA;AAC7E,IAAA,OAAO,CAAC,MAA8B,EAAE,WAA4B,KAAU;AAC7E,QAAA,MAAM,UAAU,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI;AAClD,QAAA,eAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,wCAAwC,CAAC,YAAY,EAAE,UAAU,CAAC;AACtI,IAAA,CAAC;AACF;;;;"}
1
+ {"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFG;AACG,SAAU,mBAAmB,CAAC,UAA0C,EAAA;AAC7E,IAAA,OAAO,CAAC,MAA8B,EAAE,WAA4B,KAAU;AAC7E,QAAA,MAAM,UAAU,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI;AAClD,QAAA,eAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,wCAAwC,CAAC,YAAY,EAAE,UAAU,CAAC;AACtI,IAAA,CAAC;AACF;;;;"}