@twin.org/core 0.0.2-next.9 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/README.md +1 -9
  2. package/dist/es/encoding/base32.js +75 -0
  3. package/dist/es/encoding/base32.js.map +1 -0
  4. package/dist/es/encoding/base58.js +124 -0
  5. package/dist/es/encoding/base58.js.map +1 -0
  6. package/dist/es/encoding/base64.js +231 -0
  7. package/dist/es/encoding/base64.js.map +1 -0
  8. package/dist/es/encoding/base64Url.js +42 -0
  9. package/dist/es/encoding/base64Url.js.map +1 -0
  10. package/dist/es/errors/alreadyExistsError.js +22 -0
  11. package/dist/es/errors/alreadyExistsError.js.map +1 -0
  12. package/dist/es/errors/baseError.js +257 -0
  13. package/dist/es/errors/baseError.js.map +1 -0
  14. package/dist/es/errors/conflictError.js +23 -0
  15. package/dist/es/errors/conflictError.js.map +1 -0
  16. package/dist/es/errors/generalError.js +21 -0
  17. package/dist/es/errors/generalError.js.map +1 -0
  18. package/dist/es/errors/guardError.js +27 -0
  19. package/dist/es/errors/guardError.js.map +1 -0
  20. package/dist/es/errors/notFoundError.js +22 -0
  21. package/dist/es/errors/notFoundError.js.map +1 -0
  22. package/dist/es/errors/notImplementedError.js +24 -0
  23. package/dist/es/errors/notImplementedError.js.map +1 -0
  24. package/dist/es/errors/notSupportedError.js +21 -0
  25. package/dist/es/errors/notSupportedError.js.map +1 -0
  26. package/dist/es/errors/unauthorizedError.js +21 -0
  27. package/dist/es/errors/unauthorizedError.js.map +1 -0
  28. package/dist/es/errors/unprocessableError.js +21 -0
  29. package/dist/es/errors/unprocessableError.js.map +1 -0
  30. package/dist/es/errors/validationError.js +23 -0
  31. package/dist/es/errors/validationError.js.map +1 -0
  32. package/dist/es/factories/componentFactory.js +9 -0
  33. package/dist/es/factories/componentFactory.js.map +1 -0
  34. package/dist/es/factories/factory.js +297 -0
  35. package/dist/es/factories/factory.js.map +1 -0
  36. package/dist/es/helpers/arrayHelper.js +46 -0
  37. package/dist/es/helpers/arrayHelper.js.map +1 -0
  38. package/dist/es/helpers/envHelper.js +39 -0
  39. package/dist/es/helpers/envHelper.js.map +1 -0
  40. package/dist/es/helpers/errorHelper.js +100 -0
  41. package/dist/es/helpers/errorHelper.js.map +1 -0
  42. package/dist/es/helpers/filenameHelper.js +32 -0
  43. package/dist/es/helpers/filenameHelper.js.map +1 -0
  44. package/dist/es/helpers/hexHelper.js +45 -0
  45. package/dist/es/helpers/hexHelper.js.map +1 -0
  46. package/dist/es/helpers/jsonHelper.js +163 -0
  47. package/dist/es/helpers/jsonHelper.js.map +1 -0
  48. package/dist/es/helpers/numberHelper.js +30 -0
  49. package/dist/es/helpers/numberHelper.js.map +1 -0
  50. package/dist/es/helpers/objectHelper.js +309 -0
  51. package/dist/es/helpers/objectHelper.js.map +1 -0
  52. package/dist/es/helpers/randomHelper.js +66 -0
  53. package/dist/es/helpers/randomHelper.js.map +1 -0
  54. package/dist/es/helpers/stringHelper.js +252 -0
  55. package/dist/es/helpers/stringHelper.js.map +1 -0
  56. package/dist/es/helpers/uint8ArrayHelper.js +26 -0
  57. package/dist/es/helpers/uint8ArrayHelper.js.map +1 -0
  58. package/dist/es/index.js +60 -0
  59. package/dist/es/index.js.map +1 -0
  60. package/dist/es/models/IComponent.js +2 -0
  61. package/dist/es/models/IComponent.js.map +1 -0
  62. package/dist/es/models/IError.js +4 -0
  63. package/dist/es/models/IError.js.map +1 -0
  64. package/dist/es/models/IHealth.js +2 -0
  65. package/dist/es/models/IHealth.js.map +1 -0
  66. package/dist/es/models/II18nShared.js +2 -0
  67. package/dist/es/models/II18nShared.js.map +1 -0
  68. package/dist/es/models/IKeyValue.js +2 -0
  69. package/dist/es/models/IKeyValue.js.map +1 -0
  70. package/dist/es/models/ILabelledValue.js +2 -0
  71. package/dist/es/models/ILabelledValue.js.map +1 -0
  72. package/dist/es/models/ILocale.js +2 -0
  73. package/dist/es/models/ILocale.js.map +1 -0
  74. package/dist/es/models/ILocaleDictionary.js +4 -0
  75. package/dist/es/models/ILocaleDictionary.js.map +1 -0
  76. package/dist/es/models/ILocalesIndex.js +2 -0
  77. package/dist/es/models/ILocalesIndex.js.map +1 -0
  78. package/dist/es/models/IPatchOperation.js +4 -0
  79. package/dist/es/models/IPatchOperation.js.map +1 -0
  80. package/dist/es/models/IUrlParts.js +4 -0
  81. package/dist/es/models/IUrlParts.js.map +1 -0
  82. package/dist/es/models/IValidationFailure.js +2 -0
  83. package/dist/es/models/IValidationFailure.js.map +1 -0
  84. package/dist/es/models/coerceType.js +49 -0
  85. package/dist/es/models/coerceType.js.map +1 -0
  86. package/dist/es/models/compressionType.js +17 -0
  87. package/dist/es/models/compressionType.js.map +1 -0
  88. package/dist/es/models/healthStatus.js +21 -0
  89. package/dist/es/models/healthStatus.js.map +1 -0
  90. package/dist/es/types/bitString.js +98 -0
  91. package/dist/es/types/bitString.js.map +1 -0
  92. package/dist/es/types/objectOrArray.js +2 -0
  93. package/dist/es/types/objectOrArray.js.map +1 -0
  94. package/dist/es/types/singleOccurrenceArray.js +2 -0
  95. package/dist/es/types/singleOccurrenceArray.js.map +1 -0
  96. package/dist/es/types/url.js +144 -0
  97. package/dist/es/types/url.js.map +1 -0
  98. package/dist/es/types/urn.js +211 -0
  99. package/dist/es/types/urn.js.map +1 -0
  100. package/dist/es/utils/asyncCache.js +206 -0
  101. package/dist/es/utils/asyncCache.js.map +1 -0
  102. package/dist/es/utils/coerce.js +269 -0
  103. package/dist/es/utils/coerce.js.map +1 -0
  104. package/dist/es/utils/compression.js +49 -0
  105. package/dist/es/utils/compression.js.map +1 -0
  106. package/dist/es/utils/converter.js +256 -0
  107. package/dist/es/utils/converter.js.map +1 -0
  108. package/dist/es/utils/guards.js +385 -0
  109. package/dist/es/utils/guards.js.map +1 -0
  110. package/dist/es/utils/i18n.js +243 -0
  111. package/dist/es/utils/i18n.js.map +1 -0
  112. package/dist/es/utils/is.js +367 -0
  113. package/dist/es/utils/is.js.map +1 -0
  114. package/dist/es/utils/sharedStore.js +48 -0
  115. package/dist/es/utils/sharedStore.js.map +1 -0
  116. package/dist/es/utils/validation.js +774 -0
  117. package/dist/es/utils/validation.js.map +1 -0
  118. package/dist/types/encoding/base32.d.ts +5 -1
  119. package/dist/types/encoding/base58.d.ts +4 -0
  120. package/dist/types/encoding/base64.d.ts +4 -0
  121. package/dist/types/encoding/base64Url.d.ts +4 -0
  122. package/dist/types/errors/alreadyExistsError.d.ts +6 -3
  123. package/dist/types/errors/baseError.d.ts +2 -2
  124. package/dist/types/errors/conflictError.d.ts +6 -3
  125. package/dist/types/errors/generalError.d.ts +2 -2
  126. package/dist/types/errors/guardError.d.ts +2 -2
  127. package/dist/types/errors/notFoundError.d.ts +6 -3
  128. package/dist/types/errors/notImplementedError.d.ts +6 -2
  129. package/dist/types/errors/notSupportedError.d.ts +6 -3
  130. package/dist/types/errors/unauthorizedError.d.ts +7 -4
  131. package/dist/types/errors/unprocessableError.d.ts +2 -2
  132. package/dist/types/errors/validationError.d.ts +2 -2
  133. package/dist/types/factories/componentFactory.d.ts +2 -2
  134. package/dist/types/factories/factory.d.ts +27 -1
  135. package/dist/types/helpers/arrayHelper.d.ts +1 -8
  136. package/dist/types/helpers/errorHelper.d.ts +1 -1
  137. package/dist/types/helpers/jsonHelper.d.ts +5 -1
  138. package/dist/types/helpers/numberHelper.d.ts +17 -0
  139. package/dist/types/helpers/objectHelper.d.ts +24 -6
  140. package/dist/types/helpers/randomHelper.d.ts +16 -0
  141. package/dist/types/helpers/stringHelper.d.ts +12 -6
  142. package/dist/types/index.d.ts +57 -53
  143. package/dist/types/models/IComponent.d.ts +18 -7
  144. package/dist/types/models/IError.d.ts +1 -1
  145. package/dist/types/models/IHealth.d.ts +32 -0
  146. package/dist/types/models/ILocalesIndex.d.ts +1 -1
  147. package/dist/types/models/IValidationFailure.d.ts +0 -4
  148. package/dist/types/models/healthStatus.d.ts +21 -0
  149. package/dist/types/types/bitString.d.ts +4 -0
  150. package/dist/types/types/singleOccurrenceArray.d.ts +9 -0
  151. package/dist/types/types/url.d.ts +8 -3
  152. package/dist/types/types/urn.d.ts +7 -2
  153. package/dist/types/utils/asyncCache.d.ts +7 -0
  154. package/dist/types/utils/coerce.d.ts +1 -1
  155. package/dist/types/utils/compression.d.ts +5 -1
  156. package/dist/types/utils/guards.d.ts +11 -3
  157. package/dist/types/utils/i18n.d.ts +16 -1
  158. package/dist/types/utils/is.d.ts +8 -1
  159. package/dist/types/utils/validation.d.ts +1 -1
  160. package/docs/changelog.md +1224 -131
  161. package/docs/examples.md +308 -1
  162. package/docs/reference/classes/AlreadyExistsError.md +43 -39
  163. package/docs/reference/classes/ArrayHelper.md +10 -44
  164. package/docs/reference/classes/AsyncCache.md +12 -12
  165. package/docs/reference/classes/Base32.md +11 -3
  166. package/docs/reference/classes/Base58.md +10 -2
  167. package/docs/reference/classes/Base64.md +11 -3
  168. package/docs/reference/classes/Base64Url.md +10 -2
  169. package/docs/reference/classes/BaseError.md +37 -37
  170. package/docs/reference/classes/BitString.md +13 -5
  171. package/docs/reference/classes/Coerce.md +31 -31
  172. package/docs/reference/classes/Compression.md +10 -2
  173. package/docs/reference/classes/ConflictError.md +43 -39
  174. package/docs/reference/classes/Converter.md +18 -18
  175. package/docs/reference/classes/EnvHelper.md +1 -1
  176. package/docs/reference/classes/ErrorHelper.md +5 -5
  177. package/docs/reference/classes/Factory.md +122 -20
  178. package/docs/reference/classes/FilenameHelper.md +1 -1
  179. package/docs/reference/classes/GeneralError.md +38 -38
  180. package/docs/reference/classes/GuardError.md +38 -38
  181. package/docs/reference/classes/Guards.md +80 -34
  182. package/docs/reference/classes/HexHelper.md +6 -6
  183. package/docs/reference/classes/I18n.md +66 -14
  184. package/docs/reference/classes/Is.md +77 -43
  185. package/docs/reference/classes/JsonHelper.md +17 -9
  186. package/docs/reference/classes/NotFoundError.md +43 -39
  187. package/docs/reference/classes/NotImplementedError.md +48 -38
  188. package/docs/reference/classes/NotSupportedError.md +43 -39
  189. package/docs/reference/classes/NumberHelper.md +55 -0
  190. package/docs/reference/classes/ObjectHelper.md +163 -51
  191. package/docs/reference/classes/RandomHelper.md +53 -1
  192. package/docs/reference/classes/SharedStore.md +5 -5
  193. package/docs/reference/classes/StringHelper.md +52 -30
  194. package/docs/reference/classes/Uint8ArrayHelper.md +1 -1
  195. package/docs/reference/classes/UnauthorizedError.md +44 -40
  196. package/docs/reference/classes/UnprocessableError.md +38 -38
  197. package/docs/reference/classes/Url.md +24 -10
  198. package/docs/reference/classes/Urn.md +42 -28
  199. package/docs/reference/classes/Validation.md +27 -27
  200. package/docs/reference/classes/ValidationError.md +37 -37
  201. package/docs/reference/index.md +6 -0
  202. package/docs/reference/interfaces/IComponent.md +57 -27
  203. package/docs/reference/interfaces/IError.md +11 -11
  204. package/docs/reference/interfaces/IHealth.md +55 -0
  205. package/docs/reference/interfaces/II18nShared.md +4 -4
  206. package/docs/reference/interfaces/IKeyValue.md +2 -2
  207. package/docs/reference/interfaces/ILabelledValue.md +2 -2
  208. package/docs/reference/interfaces/ILocale.md +2 -2
  209. package/docs/reference/interfaces/ILocaleDictionary.md +1 -1
  210. package/docs/reference/interfaces/ILocalesIndex.md +1 -1
  211. package/docs/reference/interfaces/IPatchOperation.md +6 -6
  212. package/docs/reference/interfaces/IUrlParts.md +9 -9
  213. package/docs/reference/interfaces/IValidationFailure.md +4 -12
  214. package/docs/reference/type-aliases/HealthStatus.md +5 -0
  215. package/docs/reference/type-aliases/SingleOccurrenceArray.md +15 -0
  216. package/docs/reference/type-aliases/SingleOccurrenceArrayDepthHelper.md +19 -0
  217. package/docs/reference/variables/CoerceType.md +10 -10
  218. package/docs/reference/variables/CompressionType.md +2 -2
  219. package/docs/reference/variables/HealthStatus.md +25 -0
  220. package/locales/.validate-ignore +1 -0
  221. package/locales/en.json +9 -7
  222. package/package.json +24 -12
  223. package/dist/cjs/index.cjs +0 -5175
  224. package/dist/esm/index.mjs +0 -5133
  225. /package/dist/types/{models → types}/objectOrArray.d.ts +0 -0
@@ -14,7 +14,7 @@ Class to perform internationalization.
14
14
 
15
15
  ## Properties
16
16
 
17
- ### DEFAULT\_LOCALE
17
+ ### DEFAULT\_LOCALE {#default_locale}
18
18
 
19
19
  > `static` **DEFAULT\_LOCALE**: `string` = `"en"`
20
20
 
@@ -22,7 +22,7 @@ The default translation.
22
22
 
23
23
  ## Methods
24
24
 
25
- ### setLocale()
25
+ ### setLocale() {#setlocale}
26
26
 
27
27
  > `static` **setLocale**(`locale`): `void`
28
28
 
@@ -42,7 +42,7 @@ The new locale.
42
42
 
43
43
  ***
44
44
 
45
- ### getLocale()
45
+ ### getLocale() {#getlocale}
46
46
 
47
47
  > `static` **getLocale**(): `string`
48
48
 
@@ -56,7 +56,7 @@ The current locale.
56
56
 
57
57
  ***
58
58
 
59
- ### addDictionary()
59
+ ### addDictionary() {#adddictionary}
60
60
 
61
61
  > `static` **addDictionary**(`locale`, `dictionary`): `void`
62
62
 
@@ -82,9 +82,9 @@ The dictionary to add.
82
82
 
83
83
  ***
84
84
 
85
- ### getDictionary()
85
+ ### getDictionary() {#getdictionary}
86
86
 
87
- > `static` **getDictionary**(`locale`): `undefined` \| \{\[`key`: `string`\]: `string`; \}
87
+ > `static` **getDictionary**(`locale`): \{\[`key`: `string`\]: `string`; \} \| `undefined`
88
88
 
89
89
  Get a locale dictionary.
90
90
 
@@ -98,13 +98,13 @@ The locale.
98
98
 
99
99
  #### Returns
100
100
 
101
- `undefined` \| \{\[`key`: `string`\]: `string`; \}
101
+ \{\[`key`: `string`\]: `string`; \} \| `undefined`
102
102
 
103
103
  The dictionary of undefined if it does not exist.
104
104
 
105
105
  ***
106
106
 
107
- ### getAllDictionaries()
107
+ ### getAllDictionaries() {#getalldictionaries}
108
108
 
109
109
  > `static` **getAllDictionaries**(): `object`
110
110
 
@@ -118,7 +118,7 @@ The dictionaries.
118
118
 
119
119
  ***
120
120
 
121
- ### addLocaleHandler()
121
+ ### addLocaleHandler() {#addlocalehandler}
122
122
 
123
123
  > `static` **addLocaleHandler**(`id`, `handler`): `void`
124
124
 
@@ -144,7 +144,7 @@ The handler to add.
144
144
 
145
145
  ***
146
146
 
147
- ### removeLocaleHandler()
147
+ ### removeLocaleHandler() {#removelocalehandler}
148
148
 
149
149
  > `static` **removeLocaleHandler**(`id`): `void`
150
150
 
@@ -164,7 +164,7 @@ The id of the handler.
164
164
 
165
165
  ***
166
166
 
167
- ### addDictionaryHandler()
167
+ ### addDictionaryHandler() {#adddictionaryhandler}
168
168
 
169
169
  > `static` **addDictionaryHandler**(`id`, `handler`): `void`
170
170
 
@@ -190,7 +190,7 @@ The handler to add.
190
190
 
191
191
  ***
192
192
 
193
- ### removeDictionaryHandler()
193
+ ### removeDictionaryHandler() {#removedictionaryhandler}
194
194
 
195
195
  > `static` **removeDictionaryHandler**(`id`): `void`
196
196
 
@@ -210,7 +210,7 @@ The id of the handler.
210
210
 
211
211
  ***
212
212
 
213
- ### formatMessage()
213
+ ### formatMessage() {#formatmessage}
214
214
 
215
215
  > `static` **formatMessage**(`key`, `values?`, `overrideLocale?`): `string`
216
216
 
@@ -242,7 +242,7 @@ The formatted string.
242
242
 
243
243
  ***
244
244
 
245
- ### hasMessage()
245
+ ### hasMessage() {#hasmessage}
246
246
 
247
247
  > `static` **hasMessage**(`key`): `boolean`
248
248
 
@@ -261,3 +261,55 @@ The key to check for existence.
261
261
  `boolean`
262
262
 
263
263
  True if the key exists.
264
+
265
+ ***
266
+
267
+ ### flattenTranslationKeys() {#flattentranslationkeys}
268
+
269
+ > `static` **flattenTranslationKeys**(`translation`, `propertyPath`, `mergedKeys`): `void`
270
+
271
+ Flatten the translation property paths for faster lookup.
272
+
273
+ #### Parameters
274
+
275
+ ##### translation
276
+
277
+ [`ILocaleDictionary`](../interfaces/ILocaleDictionary.md)
278
+
279
+ The translation to merge.
280
+
281
+ ##### propertyPath
282
+
283
+ `string`
284
+
285
+ The current root path.
286
+
287
+ ##### mergedKeys
288
+
289
+ The merged keys dictionary to populate.
290
+
291
+ #### Returns
292
+
293
+ `void`
294
+
295
+ ***
296
+
297
+ ### getPropertyNames() {#getpropertynames}
298
+
299
+ > `static` **getPropertyNames**(`message`): `string`[]
300
+
301
+ Get a list of the property names from the message.
302
+
303
+ #### Parameters
304
+
305
+ ##### message
306
+
307
+ `string`
308
+
309
+ The message to extract the property names from.
310
+
311
+ #### Returns
312
+
313
+ `string`[]
314
+
315
+ The list of property names.
@@ -14,7 +14,7 @@ Class to check types of objects.
14
14
 
15
15
  ## Methods
16
16
 
17
- ### undefined()
17
+ ### undefined() {#undefined}
18
18
 
19
19
  > `static` **undefined**(`value`): `value is undefined`
20
20
 
@@ -36,7 +36,7 @@ True if the value is a empty.
36
36
 
37
37
  ***
38
38
 
39
- ### null()
39
+ ### null() {#null}
40
40
 
41
41
  > `static` **null**(`value`): `value is null`
42
42
 
@@ -58,9 +58,9 @@ True if the value is a empty.
58
58
 
59
59
  ***
60
60
 
61
- ### empty()
61
+ ### empty() {#empty}
62
62
 
63
- > `static` **empty**(`value`): value is undefined \| null
63
+ > `static` **empty**(`value`): value is null \| undefined
64
64
 
65
65
  Is the property null or undefined.
66
66
 
@@ -74,13 +74,13 @@ The value to test.
74
74
 
75
75
  #### Returns
76
76
 
77
- value is undefined \| null
77
+ value is null \| undefined
78
78
 
79
79
  True if the value is a empty.
80
80
 
81
81
  ***
82
82
 
83
- ### notEmpty()
83
+ ### notEmpty() {#notempty}
84
84
 
85
85
  > `static` **notEmpty**(`value`): `boolean`
86
86
 
@@ -102,7 +102,7 @@ True if the value is a not empty.
102
102
 
103
103
  ***
104
104
 
105
- ### string()
105
+ ### string() {#string}
106
106
 
107
107
  > `static` **string**(`value`): `value is string`
108
108
 
@@ -124,7 +124,7 @@ True if the value is a string.
124
124
 
125
125
  ***
126
126
 
127
- ### stringValue()
127
+ ### stringValue() {#stringvalue}
128
128
 
129
129
  > `static` **stringValue**(`value`): `value is string`
130
130
 
@@ -146,7 +146,7 @@ True if the value is a string.
146
146
 
147
147
  ***
148
148
 
149
- ### json()
149
+ ### json() {#json}
150
150
 
151
151
  > `static` **json**(`value`): `value is string`
152
152
 
@@ -168,7 +168,7 @@ True if the value is a JSON string.
168
168
 
169
169
  ***
170
170
 
171
- ### stringBase64()
171
+ ### stringBase64() {#stringbase64}
172
172
 
173
173
  > `static` **stringBase64**(`value`): `value is string`
174
174
 
@@ -190,7 +190,7 @@ True if the value is a base64 string.
190
190
 
191
191
  ***
192
192
 
193
- ### stringBase64Url()
193
+ ### stringBase64Url() {#stringbase64url}
194
194
 
195
195
  > `static` **stringBase64Url**(`value`): `value is string`
196
196
 
@@ -212,7 +212,7 @@ True if the value is a base64 string.
212
212
 
213
213
  ***
214
214
 
215
- ### stringBase58()
215
+ ### stringBase58() {#stringbase58}
216
216
 
217
217
  > `static` **stringBase58**(`value`): `value is string`
218
218
 
@@ -234,9 +234,9 @@ True if the value is a base58 string.
234
234
 
235
235
  ***
236
236
 
237
- ### stringHex()
237
+ ### stringHex() {#stringhex}
238
238
 
239
- > `static` **stringHex**(`value`, `allowPrefix`): `value is string`
239
+ > `static` **stringHex**(`value`, `allowPrefix?`): `value is string`
240
240
 
241
241
  Is the value a hex string.
242
242
 
@@ -248,7 +248,7 @@ Is the value a hex string.
248
248
 
249
249
  The value to test.
250
250
 
251
- ##### allowPrefix
251
+ ##### allowPrefix?
252
252
 
253
253
  `boolean` = `false`
254
254
 
@@ -262,9 +262,9 @@ True if the value is a hex string.
262
262
 
263
263
  ***
264
264
 
265
- ### stringHexLength()
265
+ ### stringHexLength() {#stringhexlength}
266
266
 
267
- > `static` **stringHexLength**(`value`, `length`, `allowPrefix`): `value is string`
267
+ > `static` **stringHexLength**(`value`, `length`, `allowPrefix?`): `value is string`
268
268
 
269
269
  Is the value a hex string of fixed length.
270
270
 
@@ -282,7 +282,7 @@ The value to test.
282
282
 
283
283
  The length to test.
284
284
 
285
- ##### allowPrefix
285
+ ##### allowPrefix?
286
286
 
287
287
  `boolean` = `false`
288
288
 
@@ -296,7 +296,7 @@ True if the value is a hex string of required length.
296
296
 
297
297
  ***
298
298
 
299
- ### number()
299
+ ### number() {#number}
300
300
 
301
301
  > `static` **number**(`value`): `value is number`
302
302
 
@@ -318,7 +318,7 @@ True if the value is a number.
318
318
 
319
319
  ***
320
320
 
321
- ### integer()
321
+ ### integer() {#integer}
322
322
 
323
323
  > `static` **integer**(`value`): `value is number`
324
324
 
@@ -340,7 +340,7 @@ True if the value is an integer.
340
340
 
341
341
  ***
342
342
 
343
- ### bigint()
343
+ ### bigint() {#bigint}
344
344
 
345
345
  > `static` **bigint**(`value`): `value is bigint`
346
346
 
@@ -362,7 +362,7 @@ True if the value is a big integer.
362
362
 
363
363
  ***
364
364
 
365
- ### boolean()
365
+ ### boolean() {#boolean}
366
366
 
367
367
  > `static` **boolean**(`value`): `value is boolean`
368
368
 
@@ -384,7 +384,7 @@ True if the value is a boolean.
384
384
 
385
385
  ***
386
386
 
387
- ### date()
387
+ ### date() {#date}
388
388
 
389
389
  > `static` **date**(`value`): `value is Date`
390
390
 
@@ -406,7 +406,7 @@ True if the value is a date.
406
406
 
407
407
  ***
408
408
 
409
- ### dateEmpty()
409
+ ### dateEmpty() {#dateempty}
410
410
 
411
411
  > `static` **dateEmpty**(`value`): `boolean`
412
412
 
@@ -428,7 +428,7 @@ True if the value is an empty date.
428
428
 
429
429
  ***
430
430
 
431
- ### dateString()
431
+ ### dateString() {#datestring}
432
432
 
433
433
  > `static` **dateString**(`value`): `boolean`
434
434
 
@@ -450,7 +450,7 @@ True if the value is a string in ISO 8601 date format.
450
450
 
451
451
  ***
452
452
 
453
- ### dateTimeString()
453
+ ### dateTimeString() {#datetimestring}
454
454
 
455
455
  > `static` **dateTimeString**(`value`): `boolean`
456
456
 
@@ -472,7 +472,7 @@ True if the value is a string in ISO 8601 date/time format.
472
472
 
473
473
  ***
474
474
 
475
- ### timeString()
475
+ ### timeString() {#timestring}
476
476
 
477
477
  > `static` **timeString**(`value`): `boolean`
478
478
 
@@ -494,7 +494,7 @@ True if the value is a string in ISO 8601 time format.
494
494
 
495
495
  ***
496
496
 
497
- ### timestampSeconds()
497
+ ### timestampSeconds() {#timestampseconds}
498
498
 
499
499
  > `static` **timestampSeconds**(`value`): `value is number`
500
500
 
@@ -516,7 +516,7 @@ True if the value is a date.
516
516
 
517
517
  ***
518
518
 
519
- ### timestampMilliseconds()
519
+ ### timestampMilliseconds() {#timestampmilliseconds}
520
520
 
521
521
  > `static` **timestampMilliseconds**(`value`): `value is number`
522
522
 
@@ -538,7 +538,7 @@ True if the value is a date.
538
538
 
539
539
  ***
540
540
 
541
- ### object()
541
+ ### object() {#object}
542
542
 
543
543
  > `static` **object**\<`T`\>(`value`): `value is T`
544
544
 
@@ -566,7 +566,7 @@ True if the value is a object.
566
566
 
567
567
  ***
568
568
 
569
- ### objectValue()
569
+ ### objectValue() {#objectvalue}
570
570
 
571
571
  > `static` **objectValue**\<`T`\>(`value`): `value is T`
572
572
 
@@ -594,7 +594,7 @@ True if the value is a object.
594
594
 
595
595
  ***
596
596
 
597
- ### array()
597
+ ### array() {#array}
598
598
 
599
599
  > `static` **array**\<`T`\>(`value`): `value is T[]`
600
600
 
@@ -622,7 +622,7 @@ True if the value is an array.
622
622
 
623
623
  ***
624
624
 
625
- ### arrayValue()
625
+ ### arrayValue() {#arrayvalue}
626
626
 
627
627
  > `static` **arrayValue**\<`T`\>(`value`): `value is T[]`
628
628
 
@@ -650,7 +650,7 @@ True if the value is an array with at least one element.
650
650
 
651
651
  ***
652
652
 
653
- ### arrayOneOf()
653
+ ### arrayOneOf() {#arrayoneof}
654
654
 
655
655
  > `static` **arrayOneOf**\<`T`\>(`value`, `options`): `value is T`
656
656
 
@@ -684,7 +684,7 @@ True if the value is an element from the options array.
684
684
 
685
685
  ***
686
686
 
687
- ### uint8Array()
687
+ ### uint8Array() {#uint8array}
688
688
 
689
689
  > `static` **uint8Array**(`value`): `value is Uint8Array<ArrayBufferLike>`
690
690
 
@@ -706,7 +706,7 @@ True if the value is a Uint8Array.
706
706
 
707
707
  ***
708
708
 
709
- ### typedArray()
709
+ ### typedArray() {#typedarray}
710
710
 
711
711
  > `static` **typedArray**(`value`): value is Uint8Array\<ArrayBufferLike\> \| Int8Array\<ArrayBufferLike\> \| Uint16Array\<ArrayBufferLike\> \| Int16Array\<ArrayBufferLike\> \| Uint32Array\<ArrayBufferLike\> \| Int32Array\<ArrayBufferLike\> \| Float32Array\<ArrayBufferLike\> \| Float64Array\<ArrayBufferLike\>
712
712
 
@@ -728,12 +728,18 @@ True if the value is a TypedArray.
728
728
 
729
729
  ***
730
730
 
731
- ### function()
731
+ ### function() {#function}
732
732
 
733
- > `static` **function**(`value`): `value is (args: unknown[]) => unknown`
733
+ > `static` **function**\<`T`\>(`value`): `value is T`
734
734
 
735
735
  Is the property a function.
736
736
 
737
+ #### Type Parameters
738
+
739
+ ##### T
740
+
741
+ `T` *extends* (...`args`) => `any` = (...`args`) => `any`
742
+
737
743
  #### Parameters
738
744
 
739
745
  ##### value
@@ -744,13 +750,13 @@ The value to test.
744
750
 
745
751
  #### Returns
746
752
 
747
- `value is (args: unknown[]) => unknown`
753
+ `value is T`
748
754
 
749
755
  True if the value is a function.
750
756
 
751
757
  ***
752
758
 
753
- ### email()
759
+ ### email() {#email}
754
760
 
755
761
  > `static` **email**(`value`): `value is string`
756
762
 
@@ -772,7 +778,7 @@ True if the value is a string.
772
778
 
773
779
  ***
774
780
 
775
- ### promise()
781
+ ### promise() {#promise}
776
782
 
777
783
  > `static` **promise**\<`T`\>(`value`): `value is Promise<T>`
778
784
 
@@ -800,7 +806,7 @@ True if the value is a promise.
800
806
 
801
807
  ***
802
808
 
803
- ### regexp()
809
+ ### regexp() {#regexp}
804
810
 
805
811
  > `static` **regexp**(`value`): `value is RegExp`
806
812
 
@@ -822,7 +828,7 @@ True if the value is a regexp.
822
828
 
823
829
  ***
824
830
 
825
- ### class()
831
+ ### class() {#class}
826
832
 
827
833
  > `static` **class**\<`T`\>(`obj`): `obj is (args: any[]) => T`
828
834
 
@@ -847,3 +853,31 @@ The object to check.
847
853
  `obj is (args: any[]) => T`
848
854
 
849
855
  True if the object is a class, false otherwise.
856
+
857
+ ***
858
+
859
+ ### uuidV7() {#uuidv7}
860
+
861
+ > `static` **uuidV7**(`value`, `format?`): `value is string`
862
+
863
+ Is the value a uuidV7 string.
864
+
865
+ #### Parameters
866
+
867
+ ##### value
868
+
869
+ `unknown`
870
+
871
+ The value to test.
872
+
873
+ ##### format?
874
+
875
+ `"standard"` \| `"compact"`
876
+
877
+ The format of the UUIDv7 string.
878
+
879
+ #### Returns
880
+
881
+ `value is string`
882
+
883
+ True if the value is a uuidV7 string.
@@ -12,9 +12,17 @@ Helpers methods for JSON objects.
12
12
 
13
13
  `JsonHelper`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME {#class_name}
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
- ### canonicalize()
25
+ ### canonicalize() {#canonicalize}
18
26
 
19
27
  > `static` **canonicalize**(`object`): `string`
20
28
 
@@ -37,7 +45,7 @@ The serialized object.
37
45
 
38
46
  ***
39
47
 
40
- ### diff()
48
+ ### diff() {#diff}
41
49
 
42
50
  > `static` **diff**\<`T`\>(`object1`, `object2`): [`IPatchOperation`](../interfaces/IPatchOperation.md)[]
43
51
 
@@ -72,7 +80,7 @@ The list of patches.
72
80
 
73
81
  ***
74
82
 
75
- ### patch()
83
+ ### patch() {#patch}
76
84
 
77
85
  > `static` **patch**\<`T`\>(`object`, `patches`): `T`
78
86
 
@@ -111,7 +119,7 @@ GeneralError if the patch fails.
111
119
 
112
120
  ***
113
121
 
114
- ### stringifyEx()
122
+ ### stringifyEx() {#stringifyex}
115
123
 
116
124
  > `static` **stringifyEx**(`object`, `space?`): `string`
117
125
 
@@ -127,9 +135,9 @@ The object to stringify.
127
135
 
128
136
  ##### space?
129
137
 
130
- Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
138
+ `string` \| `number`
131
139
 
132
- `string` | `number`
140
+ Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
133
141
 
134
142
  #### Returns
135
143
 
@@ -139,7 +147,7 @@ The stringified object.
139
147
 
140
148
  ***
141
149
 
142
- ### parseEx()
150
+ ### parseEx() {#parseex}
143
151
 
144
152
  > `static` **parseEx**(`json`): `any`
145
153
 
@@ -161,7 +169,7 @@ The object.
161
169
 
162
170
  ***
163
171
 
164
- ### stringifyExReplacer()
172
+ ### stringifyExReplacer() {#stringifyexreplacer}
165
173
 
166
174
  > `static` **stringifyExReplacer**(`this`, `key`, `value`): `unknown`
167
175
 
@@ -195,7 +203,7 @@ The value.
195
203
 
196
204
  ***
197
205
 
198
- ### parseExReviver()
206
+ ### parseExReviver() {#parseexreviver}
199
207
 
200
208
  > `static` **parseExReviver**(`this`, `key`, `value`): `unknown`
201
209