@rapidrest/core 1.0.1 → 1.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 (72) hide show
  1. package/{README.rst → README.md} +5 -11
  2. package/dist/lib/FileUtils.js +9 -9
  3. package/dist/lib/FileUtils.js.map +1 -1
  4. package/dist/lib/Logger.js +1 -1
  5. package/dist/lib/Logger.js.map +1 -1
  6. package/dist/lib/ObjectFactory.js +2 -2
  7. package/dist/lib/ObjectFactory.js.map +1 -1
  8. package/dist/lib/TelemetryUtils.js +2 -2
  9. package/dist/lib/TelemetryUtils.js.map +1 -1
  10. package/dist/lib/threads/ThreadLogger.js +1 -2
  11. package/dist/lib/threads/ThreadLogger.js.map +1 -1
  12. package/dist/lib/threads/ThreadWorkerEntry.js +2 -3
  13. package/dist/lib/threads/ThreadWorkerEntry.js.map +1 -1
  14. package/dist/types/threads/ThreadLogger.d.ts +1 -15
  15. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/README.md +1 -1
  16. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Config.md +2 -2
  17. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Destroy.md +2 -2
  18. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Init.md +2 -2
  19. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Inject.md +2 -2
  20. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Logger.md +2 -2
  21. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Nullable.md +2 -2
  22. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Validator.md +2 -2
  23. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/type-aliases/ValidatorFunction.md +2 -2
  24. package/docs/reference/README.md +23 -61
  25. package/docs/reference/classes/AlertUtils.md +7 -7
  26. package/docs/reference/classes/ApiError.md +6 -6
  27. package/docs/reference/classes/ClassLoader.md +12 -12
  28. package/docs/reference/classes/Event.md +9 -9
  29. package/docs/reference/classes/EventUtils.md +5 -5
  30. package/docs/reference/classes/FileUtils.md +6 -6
  31. package/docs/reference/classes/JWTUtils.md +4 -4
  32. package/docs/reference/classes/MessagingUtils.md +8 -8
  33. package/docs/reference/classes/OASUtils.md +9 -9
  34. package/docs/reference/classes/ObjectFactory.md +15 -15
  35. package/docs/reference/classes/ObjectUtils.md +3 -3
  36. package/docs/reference/classes/StringUtils.md +7 -7
  37. package/docs/reference/classes/ThreadPool.md +12 -12
  38. package/docs/reference/classes/ThreadWorker.md +7 -7
  39. package/docs/reference/classes/UserUtils.md +9 -9
  40. package/docs/reference/classes/ValidationUtils.md +15 -15
  41. package/docs/reference/enumerations/AlertPriority.md +7 -7
  42. package/docs/reference/enumerations/JWTUtilsCompressionMethods.md +3 -3
  43. package/docs/reference/enumerations/WorkerMessageType.md +6 -6
  44. package/docs/reference/functions/sleep.md +2 -2
  45. package/docs/reference/globals.md +73 -0
  46. package/docs/reference/interfaces/Alert.md +11 -11
  47. package/docs/reference/interfaces/AlertAttachment.md +6 -6
  48. package/docs/reference/interfaces/AlertClose.md +4 -4
  49. package/docs/reference/interfaces/AlertUtilsAttachmentOptions.md +5 -5
  50. package/docs/reference/interfaces/AlertUtilsOptions.md +5 -5
  51. package/docs/reference/interfaces/InstanceOptions.md +5 -5
  52. package/docs/reference/interfaces/JWTPayload.md +6 -6
  53. package/docs/reference/interfaces/JWTUser.md +6 -6
  54. package/docs/reference/interfaces/JWTUtilsConfig.md +5 -5
  55. package/docs/reference/interfaces/JWTUtilsPayloadKeyOptions.md +6 -6
  56. package/docs/reference/interfaces/JWTUtilsPayloadOptions.md +4 -4
  57. package/docs/reference/interfaces/JWTUtilsPayloadPasswordOptions.md +7 -7
  58. package/docs/reference/interfaces/NewEvent.md +3 -3
  59. package/docs/reference/interfaces/OriginSettings.md +4 -4
  60. package/docs/reference/interfaces/SlackConfig.md +5 -5
  61. package/docs/reference/interfaces/SmtpAuth.md +4 -4
  62. package/docs/reference/interfaces/SmtpConfig.md +6 -6
  63. package/docs/reference/interfaces/Template.md +11 -11
  64. package/docs/reference/interfaces/TemplateMapBase.md +2 -2
  65. package/docs/reference/interfaces/TwilioConfig.md +5 -5
  66. package/docs/reference/interfaces/WorkerMessage.md +4 -4
  67. package/docs/reference/interfaces/WorkerOptions.md +7 -7
  68. package/docs/reference/type-aliases/BooleanFunc.md +2 -2
  69. package/docs/reference/type-aliases/TemplateMap.md +2 -2
  70. package/docs/reference/type-aliases/WorkerCallback.md +2 -2
  71. package/docs/reference/variables/Logger.md +2 -2
  72. package/package.json +1 -1
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / StringUtils
5
+ [@rapidrest/core](../globals.md) / StringUtils
6
6
 
7
7
  # Class: StringUtils
8
8
 
9
- Defined in: src/StringUtils.ts:10
9
+ Defined in: [src/StringUtils.ts:10](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/StringUtils.ts#L10)
10
10
 
11
11
  Utility functions for working with strings.
12
12
 
@@ -30,7 +30,7 @@ Jean-Philippe Steinmetz
30
30
 
31
31
  > `static` **findAndReplace**(`contents`, `variables`): `string`
32
32
 
33
- Defined in: src/StringUtils.ts:46
33
+ Defined in: [src/StringUtils.ts:46](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/StringUtils.ts#L46)
34
34
 
35
35
  Performs a search and replace on the provided contents with the map of variable replacements. The contents
36
36
  must use Mustache formatted tokens such as `{{toreplace}}`.
@@ -59,7 +59,7 @@ A map of key=>value pairs to search for and replace.
59
59
 
60
60
  > `static` **getParameters**(`str`): `string`[]
61
61
 
62
- Defined in: src/StringUtils.ts:18
62
+ Defined in: [src/StringUtils.ts:18](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/StringUtils.ts#L18)
63
63
 
64
64
  Returns a list of all parameters contained within the string. A parameter is a bracket delimited substring
65
65
  (e.g. /my/{key}/with/{id}).
@@ -84,7 +84,7 @@ A list of parameters contained in the provided string.
84
84
 
85
85
  > `static` **replaceAll**(`str`, `match`, `prefix`): `string`
86
86
 
87
- Defined in: src/StringUtils.ts:82
87
+ Defined in: [src/StringUtils.ts:82](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/StringUtils.ts#L82)
88
88
 
89
89
  Replaces all instances of the match regex pattern with the contents of the inner regular expression pattern for
90
90
  the given string.
@@ -126,7 +126,7 @@ The fully replaced contents of the string.
126
126
 
127
127
  > `static` **toCamelCase**(`str`): `string`
128
128
 
129
- Defined in: src/StringUtils.ts:100
129
+ Defined in: [src/StringUtils.ts:100](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/StringUtils.ts#L100)
130
130
 
131
131
  Converts the first character in the given string to be lowercase (e.g. myVariable).
132
132
 
@@ -150,7 +150,7 @@ The string converted to camelCase.
150
150
 
151
151
  > `static` **toPascalCase**(`str`): `string`
152
152
 
153
- Defined in: src/StringUtils.ts:110
153
+ Defined in: [src/StringUtils.ts:110](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/StringUtils.ts#L110)
154
154
 
155
155
  Converts the first character in the given string to be uppercase (e.g. MyVariable).
156
156
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / ThreadPool
5
+ [@rapidrest/core](../globals.md) / ThreadPool
6
6
 
7
7
  # Class: ThreadPool
8
8
 
9
- Defined in: src/threads/ThreadPool.ts:62
9
+ Defined in: [src/threads/ThreadPool.ts:62](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L62)
10
10
 
11
11
  The `ThreadPool` class provides an interface for managing a pool of execution threads that can be used for parallel
12
12
  code execution. `ThreadPool` is a wrapper to the `worker_threads` API to add support for multiple `Worker` instances.
@@ -42,7 +42,7 @@ Jean-Philippe Steinmetz
42
42
 
43
43
  > **new ThreadPool**(`max`, `logger?`): `ThreadPool`
44
44
 
45
- Defined in: src/threads/ThreadPool.ts:98
45
+ Defined in: [src/threads/ThreadPool.ts:98](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L98)
46
46
 
47
47
  Creates a new `ThreadPool` instance with the specified defaults.
48
48
 
@@ -70,7 +70,7 @@ The Winston logger instance to forward all worker thread logs to.
70
70
 
71
71
  > `readonly` **workers**: `Worker`[]
72
72
 
73
- Defined in: src/threads/ThreadPool.ts:74
73
+ Defined in: [src/threads/ThreadPool.ts:74](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L74)
74
74
 
75
75
  The list of active worker threads.
76
76
 
@@ -82,7 +82,7 @@ The list of active worker threads.
82
82
 
83
83
  > **get** **max**(): `number`
84
84
 
85
- Defined in: src/threads/ThreadPool.ts:81
85
+ Defined in: [src/threads/ThreadPool.ts:81](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L81)
86
86
 
87
87
  The maximum number of threads that can be created by the pool.
88
88
 
@@ -98,7 +98,7 @@ The maximum number of threads that can be created by the pool.
98
98
 
99
99
  > **get** **size**(): `number`
100
100
 
101
- Defined in: src/threads/ThreadPool.ts:88
101
+ Defined in: [src/threads/ThreadPool.ts:88](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L88)
102
102
 
103
103
  The number of active threads in the pool.
104
104
 
@@ -112,7 +112,7 @@ The number of active threads in the pool.
112
112
 
113
113
  > **on**(`type`, `func`): `void`
114
114
 
115
- Defined in: src/threads/ThreadPool.ts:251
115
+ Defined in: [src/threads/ThreadPool.ts:251](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L251)
116
116
 
117
117
  Registers a new callback function to be notified when the given event type is fired.
118
118
 
@@ -140,7 +140,7 @@ The callback function to register.
140
140
 
141
141
  > **send**(`msg`): `void`
142
142
 
143
- Defined in: src/threads/ThreadPool.ts:264
143
+ Defined in: [src/threads/ThreadPool.ts:264](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L264)
144
144
 
145
145
  Sends the provided message to the next available worker thread. Messages are sent in a round-robin order.
146
146
 
@@ -162,7 +162,7 @@ The message to send the next available worker thread.
162
162
 
163
163
  > **sendAll**(`msg`): `void`
164
164
 
165
- Defined in: src/threads/ThreadPool.ts:279
165
+ Defined in: [src/threads/ThreadPool.ts:279](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L279)
166
166
 
167
167
  Sends the provided message to all worker threads in the pool.
168
168
 
@@ -184,7 +184,7 @@ The message to send to all workers.
184
184
 
185
185
  > **sendTo**(`id`, `msg`): `void`
186
186
 
187
- Defined in: src/threads/ThreadPool.ts:290
187
+ Defined in: [src/threads/ThreadPool.ts:290](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L290)
188
188
 
189
189
  Sends the provided message to the worker thread with the specified id.
190
190
 
@@ -212,7 +212,7 @@ The message to send the next available worker thread.
212
212
 
213
213
  > **start**(`options?`, `num?`): `Promise`\<`void`\>
214
214
 
215
- Defined in: src/threads/ThreadPool.ts:177
215
+ Defined in: [src/threads/ThreadPool.ts:177](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L177)
216
216
 
217
217
  Initializes the thread pool with the initial worker threads and begins execution.
218
218
 
@@ -240,7 +240,7 @@ The number of initial threads to create, cannot be greater than max. Default is
240
240
 
241
241
  > **stop**(): `Promise`\<`void`\>
242
242
 
243
- Defined in: src/threads/ThreadPool.ts:224
243
+ Defined in: [src/threads/ThreadPool.ts:224](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadPool.ts#L224)
244
244
 
245
245
  Stops all running thread executions.
246
246
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / ThreadWorker
5
+ [@rapidrest/core](../globals.md) / ThreadWorker
6
6
 
7
7
  # Abstract Class: ThreadWorker
8
8
 
9
- Defined in: src/threads/ThreadWorker.ts:29
9
+ Defined in: [src/threads/ThreadWorker.ts:29](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L29)
10
10
 
11
11
  Provides a simple abstract interface for creating thread workers when using the `ThreadPool` system.
12
12
 
@@ -20,7 +20,7 @@ Jean-Philippe Steinmetz
20
20
 
21
21
  > **new ThreadWorker**(`logger`): `ThreadWorker`
22
22
 
23
- Defined in: src/threads/ThreadWorker.ts:32
23
+ Defined in: [src/threads/ThreadWorker.ts:32](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L32)
24
24
 
25
25
  #### Parameters
26
26
 
@@ -38,7 +38,7 @@ Defined in: src/threads/ThreadWorker.ts:32
38
38
 
39
39
  > `protected` **logger**: `any`
40
40
 
41
- Defined in: src/threads/ThreadWorker.ts:30
41
+ Defined in: [src/threads/ThreadWorker.ts:30](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L30)
42
42
 
43
43
  ## Methods
44
44
 
@@ -46,7 +46,7 @@ Defined in: src/threads/ThreadWorker.ts:30
46
46
 
47
47
  > `abstract` **onMessage**(`msg`): `void` \| `Promise`\<`void`\>
48
48
 
49
- Defined in: src/threads/ThreadWorker.ts:41
49
+ Defined in: [src/threads/ThreadWorker.ts:41](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L41)
50
50
 
51
51
  Callback function when a message is received from the thread pool manager.
52
52
 
@@ -68,7 +68,7 @@ The message that was received.
68
68
 
69
69
  > `abstract` **start**(): `void` \| `Promise`\<`void`\>
70
70
 
71
- Defined in: src/threads/ThreadWorker.ts:46
71
+ Defined in: [src/threads/ThreadWorker.ts:46](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L46)
72
72
 
73
73
  Starts execution of the thread worker.
74
74
 
@@ -82,7 +82,7 @@ Starts execution of the thread worker.
82
82
 
83
83
  > `abstract` **stop**(): `void` \| `Promise`\<`void`\>
84
84
 
85
- Defined in: src/threads/ThreadWorker.ts:51
85
+ Defined in: [src/threads/ThreadWorker.ts:51](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L51)
86
86
 
87
87
  Stops execution of all work and shuts down the thread worker.
88
88
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / UserUtils
5
+ [@rapidrest/core](../globals.md) / UserUtils
6
6
 
7
7
  # Class: UserUtils
8
8
 
9
- Defined in: src/UserUtils.ts:16
9
+ Defined in: [src/UserUtils.ts:16](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/UserUtils.ts#L16)
10
10
 
11
11
  Utilities for working with authenticated user objects. An user object is expected to have the following
12
12
  properties.
@@ -36,7 +36,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
36
36
 
37
37
  > `static` **getExternalId**(`user`, `type`): `string` \| `undefined`
38
38
 
39
- Defined in: src/UserUtils.ts:96
39
+ Defined in: [src/UserUtils.ts:96](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/UserUtils.ts#L96)
40
40
 
41
41
  Returns the unique identifier of the specified type associated with the given user.
42
42
 
@@ -66,7 +66,7 @@ The unique id of the external provider for the given type if found, otherwise `u
66
66
 
67
67
  > `static` **hasOrganization**(`user`, `organizationUid`): `boolean`
68
68
 
69
- Defined in: src/UserUtils.ts:22
69
+ Defined in: [src/UserUtils.ts:22](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/UserUtils.ts#L22)
70
70
 
71
71
  Returns `true` if the given user object is a member of the organization with the specified uid, otherwise returns `false`.
72
72
 
@@ -94,7 +94,7 @@ The universally unique identifier of the persona to search for.
94
94
 
95
95
  > `static` **hasOrganizations**(`user`, `organizationUids?`): `boolean`
96
96
 
97
- Defined in: src/UserUtils.ts:39
97
+ Defined in: [src/UserUtils.ts:39](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/UserUtils.ts#L39)
98
98
 
99
99
  Returns `true` if the given user object contains is a member of an organization matching one of the uids in the specified list, otherwise returns `false`.
100
100
 
@@ -122,7 +122,7 @@ The list of universally unique identifiers to search for.
122
122
 
123
123
  > `static` **hasPersona**(`user`, `personaUid?`): `boolean`
124
124
 
125
- Defined in: src/UserUtils.ts:58
125
+ Defined in: [src/UserUtils.ts:58](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/UserUtils.ts#L58)
126
126
 
127
127
  Returns `true` if the given user object contains a `Persona` object with the specified uid, otherwise returns `false`.
128
128
 
@@ -150,7 +150,7 @@ The universally unique identifier of the persona to search for.
150
150
 
151
151
  > `static` **hasPersonas**(`user`, `personaUids?`): `boolean`
152
152
 
153
- Defined in: src/UserUtils.ts:75
153
+ Defined in: [src/UserUtils.ts:75](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/UserUtils.ts#L75)
154
154
 
155
155
  Returns `true` if the given user object contains a `Persona` object matching one of the uids in the specified list, otherwise returns `false`.
156
156
 
@@ -176,7 +176,7 @@ The user object to inspect.
176
176
 
177
177
  > `static` **hasRole**(`user`, `role?`, `orgUid?`): `boolean`
178
178
 
179
- Defined in: src/UserUtils.ts:118
179
+ Defined in: [src/UserUtils.ts:118](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/UserUtils.ts#L118)
180
180
 
181
181
  Returns `true` if the given user object has a role with the specified name, otherwise returns `false`.
182
182
 
@@ -210,7 +210,7 @@ The unique identifier of an organization whose role will be verified.
210
210
 
211
211
  > `static` **hasRoles**(`user`, `roles?`, `orgUid?`): `boolean`
212
212
 
213
- Defined in: src/UserUtils.ts:143
213
+ Defined in: [src/UserUtils.ts:143](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/UserUtils.ts#L143)
214
214
 
215
215
  Returns `true` if the given user object has at least one role from the specified list of names, otherwise returns `false`.
216
216
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / ValidationUtils
5
+ [@rapidrest/core](../globals.md) / ValidationUtils
6
6
 
7
7
  # Class: ValidationUtils
8
8
 
9
- Defined in: src/ValidationUtils.ts:14
9
+ Defined in: [src/ValidationUtils.ts:14](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L14)
10
10
 
11
11
  A collection of validation functions to use with the `@Validator()` decorator.
12
12
 
@@ -26,7 +26,7 @@ A collection of validation functions to use with the `@Validator()` decorator.
26
26
 
27
27
  > `static` **check**(`val`, `func`): `any`
28
28
 
29
- Defined in: src/ValidationUtils.ts:23
29
+ Defined in: [src/ValidationUtils.ts:23](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L23)
30
30
 
31
31
  A simple wrapper that calls the specified boolean validation function with the given value and returns the
32
32
  value as a result if the validation function passes. Otherwise throws an error.
@@ -59,7 +59,7 @@ Throws an error if the value fails the boolean validation test.
59
59
 
60
60
  > `static` **checkDate**(`val`): `string`
61
61
 
62
- Defined in: src/ValidationUtils.ts:33
62
+ Defined in: [src/ValidationUtils.ts:33](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L33)
63
63
 
64
64
  Validates that the provided string represents a ISO, RFC or UTC date or timestamp.
65
65
 
@@ -79,7 +79,7 @@ Validates that the provided string represents a ISO, RFC or UTC date or timestam
79
79
 
80
80
  > `static` **checkEmail**(`val`): `string`
81
81
 
82
- Defined in: src/ValidationUtils.ts:43
82
+ Defined in: [src/ValidationUtils.ts:43](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L43)
83
83
 
84
84
  Validates that the provided string represents a valid e-mail address.
85
85
 
@@ -99,7 +99,7 @@ Validates that the provided string represents a valid e-mail address.
99
99
 
100
100
  > `static` **checkEmpty**(`val`): `any`[]
101
101
 
102
- Defined in: src/ValidationUtils.ts:53
102
+ Defined in: [src/ValidationUtils.ts:53](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L53)
103
103
 
104
104
  Validates that the provided array is not empty.
105
105
 
@@ -119,7 +119,7 @@ Validates that the provided array is not empty.
119
119
 
120
120
  > `static` **checkIP**(`val`): `string`
121
121
 
122
- Defined in: src/ValidationUtils.ts:63
122
+ Defined in: [src/ValidationUtils.ts:63](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L63)
123
123
 
124
124
  Validates that the provided string is a valid IP address.
125
125
 
@@ -139,7 +139,7 @@ Validates that the provided string is a valid IP address.
139
139
 
140
140
  > `static` **checkJSON**(`val`): `string`
141
141
 
142
- Defined in: src/ValidationUtils.ts:73
142
+ Defined in: [src/ValidationUtils.ts:73](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L73)
143
143
 
144
144
  Validates that the provided string is valid JSON (note: uses `JSON.parse`).
145
145
 
@@ -159,7 +159,7 @@ Validates that the provided string is valid JSON (note: uses `JSON.parse`).
159
159
 
160
160
  > `static` **checkName**(`val`): `string`
161
161
 
162
- Defined in: src/ValidationUtils.ts:83
162
+ Defined in: [src/ValidationUtils.ts:83](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L83)
163
163
 
164
164
  Validates that the provided string matches the regexp pattern /[a-zA-Z0-9_\-\.@:\+]+/.
165
165
 
@@ -179,7 +179,7 @@ Validates that the provided string matches the regexp pattern /[a-zA-Z0-9_\-\.@:
179
179
 
180
180
  > `static` **checkNull**(`val`): `any`
181
181
 
182
- Defined in: src/ValidationUtils.ts:93
182
+ Defined in: [src/ValidationUtils.ts:93](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L93)
183
183
 
184
184
  Validates that the provided object is not null or empty.
185
185
 
@@ -199,7 +199,7 @@ Validates that the provided object is not null or empty.
199
199
 
200
200
  > `static` **checkPhone**(`val`): `string`
201
201
 
202
- Defined in: src/ValidationUtils.ts:103
202
+ Defined in: [src/ValidationUtils.ts:103](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L103)
203
203
 
204
204
  Validates that the provided string represents a valid phone number.
205
205
 
@@ -219,7 +219,7 @@ Validates that the provided string represents a valid phone number.
219
219
 
220
220
  > `static` **checkSemVer**(`val`): `string`
221
221
 
222
- Defined in: src/ValidationUtils.ts:113
222
+ Defined in: [src/ValidationUtils.ts:113](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L113)
223
223
 
224
224
  Validates that the provided string represents a semantic version.
225
225
 
@@ -239,7 +239,7 @@ Validates that the provided string represents a semantic version.
239
239
 
240
240
  > `static` **checkURL**(`val`): `string`
241
241
 
242
- Defined in: src/ValidationUtils.ts:123
242
+ Defined in: [src/ValidationUtils.ts:123](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L123)
243
243
 
244
244
  Validates that the provided string is a valid URL.
245
245
 
@@ -259,7 +259,7 @@ Validates that the provided string is a valid URL.
259
259
 
260
260
  > `static` **checkUUID**(`val`): `string`
261
261
 
262
- Defined in: src/ValidationUtils.ts:133
262
+ Defined in: [src/ValidationUtils.ts:133](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L133)
263
263
 
264
264
  Validates that the provided string is a valid UUID.
265
265
 
@@ -279,7 +279,7 @@ Validates that the provided string is a valid UUID.
279
279
 
280
280
  > `static` **checkVersion**(`val`): `number`
281
281
 
282
- Defined in: src/ValidationUtils.ts:143
282
+ Defined in: [src/ValidationUtils.ts:143](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/ValidationUtils.ts#L143)
283
283
 
284
284
  Validates that the provided value is an entity `version` number (e.g. `value > 0`).
285
285
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / AlertPriority
5
+ [@rapidrest/core](../globals.md) / AlertPriority
6
6
 
7
7
  # Enumeration: AlertPriority
8
8
 
9
- Defined in: src/AlertUtils.ts:24
9
+ Defined in: [src/AlertUtils.ts:24](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/AlertUtils.ts#L24)
10
10
 
11
11
  Describes the level of priority for a given alert and an importance for triaging the problem.
12
12
 
@@ -16,7 +16,7 @@ Describes the level of priority for a given alert and an importance for triaging
16
16
 
17
17
  > **Critical**: `"P1"`
18
18
 
19
- Defined in: src/AlertUtils.ts:26
19
+ Defined in: [src/AlertUtils.ts:26](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/AlertUtils.ts#L26)
20
20
 
21
21
  Describes an alert that affects critical operating functionality or infrastructure.
22
22
 
@@ -26,7 +26,7 @@ Describes an alert that affects critical operating functionality or infrastructu
26
26
 
27
27
  > **Important**: `"P3"`
28
28
 
29
- Defined in: src/AlertUtils.ts:30
29
+ Defined in: [src/AlertUtils.ts:30](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/AlertUtils.ts#L30)
30
30
 
31
31
  Describes an alert that affects basic systems that may create a poor end-user experience.
32
32
 
@@ -36,7 +36,7 @@ Describes an alert that affects basic systems that may create a poor end-user ex
36
36
 
37
37
  > **Notice**: `"P5"`
38
38
 
39
- Defined in: src/AlertUtils.ts:34
39
+ Defined in: [src/AlertUtils.ts:34](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/AlertUtils.ts#L34)
40
40
 
41
41
  Describes an alert that has no material affect on end-user experience and no potential for escalation.
42
42
 
@@ -46,7 +46,7 @@ Describes an alert that has no material affect on end-user experience and no pot
46
46
 
47
47
  > **Severe**: `"P2"`
48
48
 
49
- Defined in: src/AlertUtils.ts:28
49
+ Defined in: [src/AlertUtils.ts:28](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/AlertUtils.ts#L28)
50
50
 
51
51
  Describes an alert that affects key systems that have great impact on end-user experiences.
52
52
 
@@ -56,6 +56,6 @@ Describes an alert that affects key systems that have great impact on end-user e
56
56
 
57
57
  > **Warning**: `"P4"`
58
58
 
59
- Defined in: src/AlertUtils.ts:32
59
+ Defined in: [src/AlertUtils.ts:32](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/AlertUtils.ts#L32)
60
60
 
61
61
  Describes an alert that has no material affect on the end-user experience but with potential to escalate.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / JWTUtilsCompressionMethods
5
+ [@rapidrest/core](../globals.md) / JWTUtilsCompressionMethods
6
6
 
7
7
  # Enumeration: JWTUtilsCompressionMethods
8
8
 
9
- Defined in: src/JWTUtils.ts:55
9
+ Defined in: [src/JWTUtils.ts:55](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/JWTUtils.ts#L55)
10
10
 
11
11
  Describes the different types of support compression methods for JWT payloads.
12
12
 
@@ -16,6 +16,6 @@ Describes the different types of support compression methods for JWT payloads.
16
16
 
17
17
  > **ZLIB**: `"zlib"`
18
18
 
19
- Defined in: src/JWTUtils.ts:57
19
+ Defined in: [src/JWTUtils.ts:57](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/JWTUtils.ts#L57)
20
20
 
21
21
  Uses the zlib compression method.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / WorkerMessageType
5
+ [@rapidrest/core](../globals.md) / WorkerMessageType
6
6
 
7
7
  # Enumeration: WorkerMessageType
8
8
 
9
- Defined in: src/threads/ThreadWorker.ts:7
9
+ Defined in: [src/threads/ThreadWorker.ts:7](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L7)
10
10
 
11
11
  Describes the types of messages passed between the parent thread pool manager and a worker thread.
12
12
 
@@ -16,7 +16,7 @@ Describes the types of messages passed between the parent thread pool manager an
16
16
 
17
17
  > **ERROR**: `"_WorkerError"`
18
18
 
19
- Defined in: src/threads/ThreadWorker.ts:8
19
+ Defined in: [src/threads/ThreadWorker.ts:8](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L8)
20
20
 
21
21
  ***
22
22
 
@@ -24,7 +24,7 @@ Defined in: src/threads/ThreadWorker.ts:8
24
24
 
25
25
  > **LOG**: `"_WorkerLog"`
26
26
 
27
- Defined in: src/threads/ThreadWorker.ts:9
27
+ Defined in: [src/threads/ThreadWorker.ts:9](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L9)
28
28
 
29
29
  ***
30
30
 
@@ -32,7 +32,7 @@ Defined in: src/threads/ThreadWorker.ts:9
32
32
 
33
33
  > **ONLINE**: `"_WorkerOnline"`
34
34
 
35
- Defined in: src/threads/ThreadWorker.ts:10
35
+ Defined in: [src/threads/ThreadWorker.ts:10](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L10)
36
36
 
37
37
  ***
38
38
 
@@ -40,4 +40,4 @@ Defined in: src/threads/ThreadWorker.ts:10
40
40
 
41
41
  > **STOP**: `"_StopWorker"`
42
42
 
43
- Defined in: src/threads/ThreadWorker.ts:11
43
+ Defined in: [src/threads/ThreadWorker.ts:11](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/threads/ThreadWorker.ts#L11)
@@ -2,13 +2,13 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / sleep
5
+ [@rapidrest/core](../globals.md) / sleep
6
6
 
7
7
  # Function: sleep()
8
8
 
9
9
  > **sleep**(`ms`): `Promise`\<`void`\>
10
10
 
11
- Defined in: src/sleep.ts:8
11
+ Defined in: [src/sleep.ts:8](https://github.com/rapidrest/core/blob/7282268947b97f019217897045e771d4e99f9ffa/src/sleep.ts#L8)
12
12
 
13
13
  Starts a timer to suspend execution for a given number of milliseconds.
14
14
 
@@ -0,0 +1,73 @@
1
+ [**@rapidrest/core**](README.md)
2
+
3
+ ***
4
+
5
+ # @rapidrest/core
6
+
7
+ ## Namespaces
8
+
9
+ - [ObjectDecorators](@rapidrest/namespaces/ObjectDecorators/README.md)
10
+
11
+ ## Enumerations
12
+
13
+ - [AlertPriority](enumerations/AlertPriority.md)
14
+ - [JWTUtilsCompressionMethods](enumerations/JWTUtilsCompressionMethods.md)
15
+ - [WorkerMessageType](enumerations/WorkerMessageType.md)
16
+
17
+ ## Classes
18
+
19
+ - [AlertUtils](classes/AlertUtils.md)
20
+ - [ApiError](classes/ApiError.md)
21
+ - [ClassLoader](classes/ClassLoader.md)
22
+ - [Event](classes/Event.md)
23
+ - [EventUtils](classes/EventUtils.md)
24
+ - [FileUtils](classes/FileUtils.md)
25
+ - [JWTUtils](classes/JWTUtils.md)
26
+ - [MessagingUtils](classes/MessagingUtils.md)
27
+ - [OASUtils](classes/OASUtils.md)
28
+ - [ObjectFactory](classes/ObjectFactory.md)
29
+ - [ObjectUtils](classes/ObjectUtils.md)
30
+ - [StringUtils](classes/StringUtils.md)
31
+ - [ThreadPool](classes/ThreadPool.md)
32
+ - [ThreadWorker](classes/ThreadWorker.md)
33
+ - [UserUtils](classes/UserUtils.md)
34
+ - [ValidationUtils](classes/ValidationUtils.md)
35
+
36
+ ## Interfaces
37
+
38
+ - [Alert](interfaces/Alert.md)
39
+ - [AlertAttachment](interfaces/AlertAttachment.md)
40
+ - [AlertClose](interfaces/AlertClose.md)
41
+ - [AlertUtilsAttachmentOptions](interfaces/AlertUtilsAttachmentOptions.md)
42
+ - [AlertUtilsOptions](interfaces/AlertUtilsOptions.md)
43
+ - [InstanceOptions](interfaces/InstanceOptions.md)
44
+ - [JWTPayload](interfaces/JWTPayload.md)
45
+ - [JWTUser](interfaces/JWTUser.md)
46
+ - [JWTUtilsConfig](interfaces/JWTUtilsConfig.md)
47
+ - [JWTUtilsPayloadKeyOptions](interfaces/JWTUtilsPayloadKeyOptions.md)
48
+ - [JWTUtilsPayloadOptions](interfaces/JWTUtilsPayloadOptions.md)
49
+ - [JWTUtilsPayloadPasswordOptions](interfaces/JWTUtilsPayloadPasswordOptions.md)
50
+ - [NewEvent](interfaces/NewEvent.md)
51
+ - [OriginSettings](interfaces/OriginSettings.md)
52
+ - [SlackConfig](interfaces/SlackConfig.md)
53
+ - [SmtpAuth](interfaces/SmtpAuth.md)
54
+ - [SmtpConfig](interfaces/SmtpConfig.md)
55
+ - [Template](interfaces/Template.md)
56
+ - [TemplateMapBase](interfaces/TemplateMapBase.md)
57
+ - [TwilioConfig](interfaces/TwilioConfig.md)
58
+ - [WorkerMessage](interfaces/WorkerMessage.md)
59
+ - [WorkerOptions](interfaces/WorkerOptions.md)
60
+
61
+ ## Type Aliases
62
+
63
+ - [BooleanFunc](type-aliases/BooleanFunc.md)
64
+ - [TemplateMap](type-aliases/TemplateMap.md)
65
+ - [WorkerCallback](type-aliases/WorkerCallback.md)
66
+
67
+ ## Variables
68
+
69
+ - [Logger](variables/Logger.md)
70
+
71
+ ## Functions
72
+
73
+ - [sleep](functions/sleep.md)