@rapidrest/core 1.3.1 → 1.4.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.
- package/dist/lib/AlertUtils.js +7 -8
- package/dist/lib/AlertUtils.js.map +1 -1
- package/dist/lib/ClassLoader.js +7 -0
- package/dist/lib/ClassLoader.js.map +1 -1
- package/dist/lib/FileUtils.js +58 -79
- package/dist/lib/FileUtils.js.map +1 -1
- package/dist/lib/JWTUtils.js +26 -2
- package/dist/lib/JWTUtils.js.map +1 -1
- package/dist/lib/MessagingUtils.js +6 -3
- package/dist/lib/MessagingUtils.js.map +1 -1
- package/dist/lib/OASUtils.js +22 -1
- package/dist/lib/OASUtils.js.map +1 -1
- package/dist/lib/StringUtils.js +8 -5
- package/dist/lib/StringUtils.js.map +1 -1
- package/dist/lib/ValidationUtils.js +2 -2
- package/dist/lib/ValidationUtils.js.map +1 -1
- package/dist/types/FileUtils.d.ts +27 -9
- package/dist/types/JWTUtils.d.ts +9 -0
- package/dist/types/OASUtils.d.ts +17 -1
- package/dist/types/StringUtils.d.ts +3 -3
- package/package.json +2 -8
- package/docs/Makefile +0 -20
- package/docs/conf.py +0 -58
- package/docs/index.rst +0 -17
- package/docs/make.bat +0 -35
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/README.md +0 -21
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Config.md +0 -33
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Destroy.md +0 -27
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Init.md +0 -33
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Inject.md +0 -33
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Logger.md +0 -27
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Nullable.md +0 -27
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Validator.md +0 -25
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/type-aliases/ValidatorFunction.md +0 -31
- package/docs/reference/README.md +0 -35
- package/docs/reference/classes/AlertUtils.md +0 -158
- package/docs/reference/classes/ApiError.md +0 -251
- package/docs/reference/classes/ClassLoader.md +0 -224
- package/docs/reference/classes/Event.md +0 -109
- package/docs/reference/classes/EventUtils.md +0 -123
- package/docs/reference/classes/FileUtils.md +0 -193
- package/docs/reference/classes/JWTUtils.md +0 -139
- package/docs/reference/classes/MessagingUtils.md +0 -167
- package/docs/reference/classes/OASUtils.md +0 -227
- package/docs/reference/classes/ObjectFactory.md +0 -276
- package/docs/reference/classes/ObjectUtils.md +0 -60
- package/docs/reference/classes/StringUtils.md +0 -169
- package/docs/reference/classes/ThreadPool.md +0 -249
- package/docs/reference/classes/ThreadWorker.md +0 -91
- package/docs/reference/classes/UserUtils.md +0 -185
- package/docs/reference/classes/ValidationUtils.md +0 -294
- package/docs/reference/enumerations/AlertPriority.md +0 -61
- package/docs/reference/enumerations/JWTUtilsCompressionMethods.md +0 -21
- package/docs/reference/enumerations/WorkerMessageType.md +0 -43
- package/docs/reference/functions/sleep.md +0 -25
- package/docs/reference/globals.md +0 -73
- package/docs/reference/interfaces/Alert.md +0 -101
- package/docs/reference/interfaces/AlertAttachment.md +0 -51
- package/docs/reference/interfaces/AlertClose.md +0 -31
- package/docs/reference/interfaces/AlertUtilsAttachmentOptions.md +0 -42
- package/docs/reference/interfaces/AlertUtilsOptions.md +0 -41
- package/docs/reference/interfaces/InstanceOptions.md +0 -41
- package/docs/reference/interfaces/JWTPayload.md +0 -143
- package/docs/reference/interfaces/JWTUser.md +0 -55
- package/docs/reference/interfaces/JWTUtilsConfig.md +0 -45
- package/docs/reference/interfaces/JWTUtilsPayloadKeyOptions.md +0 -68
- package/docs/reference/interfaces/JWTUtilsPayloadOptions.md +0 -40
- package/docs/reference/interfaces/JWTUtilsPayloadPasswordOptions.md +0 -78
- package/docs/reference/interfaces/NewEvent.md +0 -25
- package/docs/reference/interfaces/OriginSettings.md +0 -25
- package/docs/reference/interfaces/SlackConfig.md +0 -33
- package/docs/reference/interfaces/SmtpAuth.md +0 -25
- package/docs/reference/interfaces/SmtpConfig.md +0 -41
- package/docs/reference/interfaces/Template.md +0 -105
- package/docs/reference/interfaces/TemplateMapBase.md +0 -13
- package/docs/reference/interfaces/TwilioConfig.md +0 -33
- package/docs/reference/interfaces/WorkerMessage.md +0 -31
- package/docs/reference/interfaces/WorkerOptions.md +0 -61
- package/docs/reference/type-aliases/BooleanFunc.md +0 -23
- package/docs/reference/type-aliases/TemplateMap.md +0 -17
- package/docs/reference/type-aliases/WorkerCallback.md +0 -31
- package/docs/reference/variables/Logger.md +0 -25
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
[**@rapidrest/core**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@rapidrest/core](../globals.md) / ValidationUtils
|
|
6
|
-
|
|
7
|
-
# Class: ValidationUtils
|
|
8
|
-
|
|
9
|
-
Defined in: [src/ValidationUtils.ts:14](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L14)
|
|
10
|
-
|
|
11
|
-
A collection of validation functions to use with the `@Validator()` decorator.
|
|
12
|
-
|
|
13
|
-
## Constructors
|
|
14
|
-
|
|
15
|
-
### Constructor
|
|
16
|
-
|
|
17
|
-
> **new ValidationUtils**(): `ValidationUtils`
|
|
18
|
-
|
|
19
|
-
#### Returns
|
|
20
|
-
|
|
21
|
-
`ValidationUtils`
|
|
22
|
-
|
|
23
|
-
## Methods
|
|
24
|
-
|
|
25
|
-
### check()
|
|
26
|
-
|
|
27
|
-
> `static` **check**(`val`, `func`): `any`
|
|
28
|
-
|
|
29
|
-
Defined in: [src/ValidationUtils.ts:23](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L23)
|
|
30
|
-
|
|
31
|
-
A simple wrapper that calls the specified boolean validation function with the given value and returns the
|
|
32
|
-
value as a result if the validation function passes. Otherwise throws an error.
|
|
33
|
-
|
|
34
|
-
#### Parameters
|
|
35
|
-
|
|
36
|
-
##### val
|
|
37
|
-
|
|
38
|
-
`any`
|
|
39
|
-
|
|
40
|
-
The value to validate.
|
|
41
|
-
|
|
42
|
-
##### func
|
|
43
|
-
|
|
44
|
-
[`BooleanFunc`](../type-aliases/BooleanFunc.md)
|
|
45
|
-
|
|
46
|
-
The boolean validation function to check the value.
|
|
47
|
-
|
|
48
|
-
#### Returns
|
|
49
|
-
|
|
50
|
-
`any`
|
|
51
|
-
|
|
52
|
-
#### Throws
|
|
53
|
-
|
|
54
|
-
Throws an error if the value fails the boolean validation test.
|
|
55
|
-
|
|
56
|
-
***
|
|
57
|
-
|
|
58
|
-
### checkDate()
|
|
59
|
-
|
|
60
|
-
> `static` **checkDate**(`val`): `string`
|
|
61
|
-
|
|
62
|
-
Defined in: [src/ValidationUtils.ts:33](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L33)
|
|
63
|
-
|
|
64
|
-
Validates that the provided string represents a ISO, RFC or UTC date or timestamp.
|
|
65
|
-
|
|
66
|
-
#### Parameters
|
|
67
|
-
|
|
68
|
-
##### val
|
|
69
|
-
|
|
70
|
-
`string`
|
|
71
|
-
|
|
72
|
-
#### Returns
|
|
73
|
-
|
|
74
|
-
`string`
|
|
75
|
-
|
|
76
|
-
***
|
|
77
|
-
|
|
78
|
-
### checkEmail()
|
|
79
|
-
|
|
80
|
-
> `static` **checkEmail**(`val`): `string`
|
|
81
|
-
|
|
82
|
-
Defined in: [src/ValidationUtils.ts:43](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L43)
|
|
83
|
-
|
|
84
|
-
Validates that the provided string represents a valid e-mail address.
|
|
85
|
-
|
|
86
|
-
#### Parameters
|
|
87
|
-
|
|
88
|
-
##### val
|
|
89
|
-
|
|
90
|
-
`string`
|
|
91
|
-
|
|
92
|
-
#### Returns
|
|
93
|
-
|
|
94
|
-
`string`
|
|
95
|
-
|
|
96
|
-
***
|
|
97
|
-
|
|
98
|
-
### checkEmpty()
|
|
99
|
-
|
|
100
|
-
> `static` **checkEmpty**(`val`): `any`[]
|
|
101
|
-
|
|
102
|
-
Defined in: [src/ValidationUtils.ts:53](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L53)
|
|
103
|
-
|
|
104
|
-
Validates that the provided array is not empty.
|
|
105
|
-
|
|
106
|
-
#### Parameters
|
|
107
|
-
|
|
108
|
-
##### val
|
|
109
|
-
|
|
110
|
-
`any`[]
|
|
111
|
-
|
|
112
|
-
#### Returns
|
|
113
|
-
|
|
114
|
-
`any`[]
|
|
115
|
-
|
|
116
|
-
***
|
|
117
|
-
|
|
118
|
-
### checkIP()
|
|
119
|
-
|
|
120
|
-
> `static` **checkIP**(`val`): `string`
|
|
121
|
-
|
|
122
|
-
Defined in: [src/ValidationUtils.ts:63](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L63)
|
|
123
|
-
|
|
124
|
-
Validates that the provided string is a valid IP address.
|
|
125
|
-
|
|
126
|
-
#### Parameters
|
|
127
|
-
|
|
128
|
-
##### val
|
|
129
|
-
|
|
130
|
-
`string`
|
|
131
|
-
|
|
132
|
-
#### Returns
|
|
133
|
-
|
|
134
|
-
`string`
|
|
135
|
-
|
|
136
|
-
***
|
|
137
|
-
|
|
138
|
-
### checkJSON()
|
|
139
|
-
|
|
140
|
-
> `static` **checkJSON**(`val`): `string`
|
|
141
|
-
|
|
142
|
-
Defined in: [src/ValidationUtils.ts:73](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L73)
|
|
143
|
-
|
|
144
|
-
Validates that the provided string is valid JSON (note: uses `JSON.parse`).
|
|
145
|
-
|
|
146
|
-
#### Parameters
|
|
147
|
-
|
|
148
|
-
##### val
|
|
149
|
-
|
|
150
|
-
`string`
|
|
151
|
-
|
|
152
|
-
#### Returns
|
|
153
|
-
|
|
154
|
-
`string`
|
|
155
|
-
|
|
156
|
-
***
|
|
157
|
-
|
|
158
|
-
### checkName()
|
|
159
|
-
|
|
160
|
-
> `static` **checkName**(`val`): `string`
|
|
161
|
-
|
|
162
|
-
Defined in: [src/ValidationUtils.ts:83](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L83)
|
|
163
|
-
|
|
164
|
-
Validates that the provided string matches the regexp pattern /[a-zA-Z0-9_\-\.@:\+]+/.
|
|
165
|
-
|
|
166
|
-
#### Parameters
|
|
167
|
-
|
|
168
|
-
##### val
|
|
169
|
-
|
|
170
|
-
`string`
|
|
171
|
-
|
|
172
|
-
#### Returns
|
|
173
|
-
|
|
174
|
-
`string`
|
|
175
|
-
|
|
176
|
-
***
|
|
177
|
-
|
|
178
|
-
### checkNull()
|
|
179
|
-
|
|
180
|
-
> `static` **checkNull**(`val`): `any`
|
|
181
|
-
|
|
182
|
-
Defined in: [src/ValidationUtils.ts:93](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L93)
|
|
183
|
-
|
|
184
|
-
Validates that the provided object is not null or empty.
|
|
185
|
-
|
|
186
|
-
#### Parameters
|
|
187
|
-
|
|
188
|
-
##### val
|
|
189
|
-
|
|
190
|
-
`any`
|
|
191
|
-
|
|
192
|
-
#### Returns
|
|
193
|
-
|
|
194
|
-
`any`
|
|
195
|
-
|
|
196
|
-
***
|
|
197
|
-
|
|
198
|
-
### checkPhone()
|
|
199
|
-
|
|
200
|
-
> `static` **checkPhone**(`val`): `string`
|
|
201
|
-
|
|
202
|
-
Defined in: [src/ValidationUtils.ts:103](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L103)
|
|
203
|
-
|
|
204
|
-
Validates that the provided string represents a valid phone number.
|
|
205
|
-
|
|
206
|
-
#### Parameters
|
|
207
|
-
|
|
208
|
-
##### val
|
|
209
|
-
|
|
210
|
-
`string`
|
|
211
|
-
|
|
212
|
-
#### Returns
|
|
213
|
-
|
|
214
|
-
`string`
|
|
215
|
-
|
|
216
|
-
***
|
|
217
|
-
|
|
218
|
-
### checkSemVer()
|
|
219
|
-
|
|
220
|
-
> `static` **checkSemVer**(`val`): `string`
|
|
221
|
-
|
|
222
|
-
Defined in: [src/ValidationUtils.ts:113](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L113)
|
|
223
|
-
|
|
224
|
-
Validates that the provided string represents a semantic version.
|
|
225
|
-
|
|
226
|
-
#### Parameters
|
|
227
|
-
|
|
228
|
-
##### val
|
|
229
|
-
|
|
230
|
-
`string`
|
|
231
|
-
|
|
232
|
-
#### Returns
|
|
233
|
-
|
|
234
|
-
`string`
|
|
235
|
-
|
|
236
|
-
***
|
|
237
|
-
|
|
238
|
-
### checkURL()
|
|
239
|
-
|
|
240
|
-
> `static` **checkURL**(`val`): `string`
|
|
241
|
-
|
|
242
|
-
Defined in: [src/ValidationUtils.ts:123](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L123)
|
|
243
|
-
|
|
244
|
-
Validates that the provided string is a valid URL.
|
|
245
|
-
|
|
246
|
-
#### Parameters
|
|
247
|
-
|
|
248
|
-
##### val
|
|
249
|
-
|
|
250
|
-
`string`
|
|
251
|
-
|
|
252
|
-
#### Returns
|
|
253
|
-
|
|
254
|
-
`string`
|
|
255
|
-
|
|
256
|
-
***
|
|
257
|
-
|
|
258
|
-
### checkUUID()
|
|
259
|
-
|
|
260
|
-
> `static` **checkUUID**(`val`): `string`
|
|
261
|
-
|
|
262
|
-
Defined in: [src/ValidationUtils.ts:133](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L133)
|
|
263
|
-
|
|
264
|
-
Validates that the provided string is a valid UUID.
|
|
265
|
-
|
|
266
|
-
#### Parameters
|
|
267
|
-
|
|
268
|
-
##### val
|
|
269
|
-
|
|
270
|
-
`string`
|
|
271
|
-
|
|
272
|
-
#### Returns
|
|
273
|
-
|
|
274
|
-
`string`
|
|
275
|
-
|
|
276
|
-
***
|
|
277
|
-
|
|
278
|
-
### checkVersion()
|
|
279
|
-
|
|
280
|
-
> `static` **checkVersion**(`val`): `number`
|
|
281
|
-
|
|
282
|
-
Defined in: [src/ValidationUtils.ts:143](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L143)
|
|
283
|
-
|
|
284
|
-
Validates that the provided value is an entity `version` number (e.g. `value > 0`).
|
|
285
|
-
|
|
286
|
-
#### Parameters
|
|
287
|
-
|
|
288
|
-
##### val
|
|
289
|
-
|
|
290
|
-
`any`
|
|
291
|
-
|
|
292
|
-
#### Returns
|
|
293
|
-
|
|
294
|
-
`number`
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
[**@rapidrest/core**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@rapidrest/core](../globals.md) / AlertPriority
|
|
6
|
-
|
|
7
|
-
# Enumeration: AlertPriority
|
|
8
|
-
|
|
9
|
-
Defined in: [src/AlertUtils.ts:24](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L24)
|
|
10
|
-
|
|
11
|
-
Describes the level of priority for a given alert and an importance for triaging the problem.
|
|
12
|
-
|
|
13
|
-
## Enumeration Members
|
|
14
|
-
|
|
15
|
-
### Critical
|
|
16
|
-
|
|
17
|
-
> **Critical**: `"P1"`
|
|
18
|
-
|
|
19
|
-
Defined in: [src/AlertUtils.ts:26](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L26)
|
|
20
|
-
|
|
21
|
-
Describes an alert that affects critical operating functionality or infrastructure.
|
|
22
|
-
|
|
23
|
-
***
|
|
24
|
-
|
|
25
|
-
### Important
|
|
26
|
-
|
|
27
|
-
> **Important**: `"P3"`
|
|
28
|
-
|
|
29
|
-
Defined in: [src/AlertUtils.ts:30](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L30)
|
|
30
|
-
|
|
31
|
-
Describes an alert that affects basic systems that may create a poor end-user experience.
|
|
32
|
-
|
|
33
|
-
***
|
|
34
|
-
|
|
35
|
-
### Notice
|
|
36
|
-
|
|
37
|
-
> **Notice**: `"P5"`
|
|
38
|
-
|
|
39
|
-
Defined in: [src/AlertUtils.ts:34](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L34)
|
|
40
|
-
|
|
41
|
-
Describes an alert that has no material affect on end-user experience and no potential for escalation.
|
|
42
|
-
|
|
43
|
-
***
|
|
44
|
-
|
|
45
|
-
### Severe
|
|
46
|
-
|
|
47
|
-
> **Severe**: `"P2"`
|
|
48
|
-
|
|
49
|
-
Defined in: [src/AlertUtils.ts:28](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L28)
|
|
50
|
-
|
|
51
|
-
Describes an alert that affects key systems that have great impact on end-user experiences.
|
|
52
|
-
|
|
53
|
-
***
|
|
54
|
-
|
|
55
|
-
### Warning
|
|
56
|
-
|
|
57
|
-
> **Warning**: `"P4"`
|
|
58
|
-
|
|
59
|
-
Defined in: [src/AlertUtils.ts:32](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L32)
|
|
60
|
-
|
|
61
|
-
Describes an alert that has no material affect on the end-user experience but with potential to escalate.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
[**@rapidrest/core**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@rapidrest/core](../globals.md) / JWTUtilsCompressionMethods
|
|
6
|
-
|
|
7
|
-
# Enumeration: JWTUtilsCompressionMethods
|
|
8
|
-
|
|
9
|
-
Defined in: [src/JWTUtils.ts:55](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/JWTUtils.ts#L55)
|
|
10
|
-
|
|
11
|
-
Describes the different types of support compression methods for JWT payloads.
|
|
12
|
-
|
|
13
|
-
## Enumeration Members
|
|
14
|
-
|
|
15
|
-
### ZLIB
|
|
16
|
-
|
|
17
|
-
> **ZLIB**: `"zlib"`
|
|
18
|
-
|
|
19
|
-
Defined in: [src/JWTUtils.ts:57](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/JWTUtils.ts#L57)
|
|
20
|
-
|
|
21
|
-
Uses the zlib compression method.
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
[**@rapidrest/core**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@rapidrest/core](../globals.md) / WorkerMessageType
|
|
6
|
-
|
|
7
|
-
# Enumeration: WorkerMessageType
|
|
8
|
-
|
|
9
|
-
Defined in: [src/threads/ThreadWorker.ts:7](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L7)
|
|
10
|
-
|
|
11
|
-
Describes the types of messages passed between the parent thread pool manager and a worker thread.
|
|
12
|
-
|
|
13
|
-
## Enumeration Members
|
|
14
|
-
|
|
15
|
-
### ERROR
|
|
16
|
-
|
|
17
|
-
> **ERROR**: `"_WorkerError"`
|
|
18
|
-
|
|
19
|
-
Defined in: [src/threads/ThreadWorker.ts:8](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L8)
|
|
20
|
-
|
|
21
|
-
***
|
|
22
|
-
|
|
23
|
-
### LOG
|
|
24
|
-
|
|
25
|
-
> **LOG**: `"_WorkerLog"`
|
|
26
|
-
|
|
27
|
-
Defined in: [src/threads/ThreadWorker.ts:9](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L9)
|
|
28
|
-
|
|
29
|
-
***
|
|
30
|
-
|
|
31
|
-
### ONLINE
|
|
32
|
-
|
|
33
|
-
> **ONLINE**: `"_WorkerOnline"`
|
|
34
|
-
|
|
35
|
-
Defined in: [src/threads/ThreadWorker.ts:10](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L10)
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
|
-
### STOP
|
|
40
|
-
|
|
41
|
-
> **STOP**: `"_StopWorker"`
|
|
42
|
-
|
|
43
|
-
Defined in: [src/threads/ThreadWorker.ts:11](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L11)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**@rapidrest/core**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@rapidrest/core](../globals.md) / sleep
|
|
6
|
-
|
|
7
|
-
# Function: sleep()
|
|
8
|
-
|
|
9
|
-
> **sleep**(`ms?`): `Promise`\<`void`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [src/sleep.ts:8](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/sleep.ts#L8)
|
|
12
|
-
|
|
13
|
-
Starts a timer to suspend execution for a given number of milliseconds.
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### ms?
|
|
18
|
-
|
|
19
|
-
`number` = `1`
|
|
20
|
-
|
|
21
|
-
The number of milliseconds to suspend. Default is `1`.
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`Promise`\<`void`\>
|
|
@@ -1,73 +0,0 @@
|
|
|
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)
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
[**@rapidrest/core**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@rapidrest/core](../globals.md) / Alert
|
|
6
|
-
|
|
7
|
-
# Interface: Alert
|
|
8
|
-
|
|
9
|
-
Defined in: [src/AlertUtils.ts:40](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L40)
|
|
10
|
-
|
|
11
|
-
Describes a single system failure or other similar critical event that requires immediate attention.
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### alias
|
|
16
|
-
|
|
17
|
-
> **alias**: `string`
|
|
18
|
-
|
|
19
|
-
Defined in: [src/AlertUtils.ts:42](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L42)
|
|
20
|
-
|
|
21
|
-
The name of the alert that uniquely identifies the report for purposes of de-duplication.
|
|
22
|
-
|
|
23
|
-
***
|
|
24
|
-
|
|
25
|
-
### description
|
|
26
|
-
|
|
27
|
-
> **description**: `string`
|
|
28
|
-
|
|
29
|
-
Defined in: [src/AlertUtils.ts:44](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L44)
|
|
30
|
-
|
|
31
|
-
The detailed information about the event that has occurred.
|
|
32
|
-
|
|
33
|
-
***
|
|
34
|
-
|
|
35
|
-
### details?
|
|
36
|
-
|
|
37
|
-
> `optional` **details?**: `any`
|
|
38
|
-
|
|
39
|
-
Defined in: [src/AlertUtils.ts:46](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L46)
|
|
40
|
-
|
|
41
|
-
A key-value map of custom information about the alert.
|
|
42
|
-
|
|
43
|
-
***
|
|
44
|
-
|
|
45
|
-
### entity?
|
|
46
|
-
|
|
47
|
-
> `optional` **entity?**: `string`
|
|
48
|
-
|
|
49
|
-
Defined in: [src/AlertUtils.ts:48](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L48)
|
|
50
|
-
|
|
51
|
-
Used to specify a category or problem domain for filtering.
|
|
52
|
-
|
|
53
|
-
***
|
|
54
|
-
|
|
55
|
-
### message
|
|
56
|
-
|
|
57
|
-
> **message**: `string`
|
|
58
|
-
|
|
59
|
-
Defined in: [src/AlertUtils.ts:50](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L50)
|
|
60
|
-
|
|
61
|
-
The basic summary of the alert that describes the event.
|
|
62
|
-
|
|
63
|
-
***
|
|
64
|
-
|
|
65
|
-
### note?
|
|
66
|
-
|
|
67
|
-
> `optional` **note?**: `string`
|
|
68
|
-
|
|
69
|
-
Defined in: [src/AlertUtils.ts:52](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L52)
|
|
70
|
-
|
|
71
|
-
Additional detail about the event.
|
|
72
|
-
|
|
73
|
-
***
|
|
74
|
-
|
|
75
|
-
### priority
|
|
76
|
-
|
|
77
|
-
> **priority**: [`AlertPriority`](../enumerations/AlertPriority.md)
|
|
78
|
-
|
|
79
|
-
Defined in: [src/AlertUtils.ts:54](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L54)
|
|
80
|
-
|
|
81
|
-
The priority level of the alert.
|
|
82
|
-
|
|
83
|
-
***
|
|
84
|
-
|
|
85
|
-
### source
|
|
86
|
-
|
|
87
|
-
> **source**: `string`
|
|
88
|
-
|
|
89
|
-
Defined in: [src/AlertUtils.ts:56](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L56)
|
|
90
|
-
|
|
91
|
-
The source of the alert. Can be a pod/service name, IP address or other unique identifier.
|
|
92
|
-
|
|
93
|
-
***
|
|
94
|
-
|
|
95
|
-
### tags?
|
|
96
|
-
|
|
97
|
-
> `optional` **tags?**: `string`[]
|
|
98
|
-
|
|
99
|
-
Defined in: [src/AlertUtils.ts:58](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L58)
|
|
100
|
-
|
|
101
|
-
A list of unique tags to associate with the event.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
[**@rapidrest/core**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@rapidrest/core](../globals.md) / AlertAttachment
|
|
6
|
-
|
|
7
|
-
# Interface: AlertAttachment
|
|
8
|
-
|
|
9
|
-
Defined in: [src/AlertUtils.ts:64](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L64)
|
|
10
|
-
|
|
11
|
-
Describes a single attachment that can be added to an alert.
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### contentType
|
|
16
|
-
|
|
17
|
-
> **contentType**: `string`
|
|
18
|
-
|
|
19
|
-
Defined in: [src/AlertUtils.ts:66](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L66)
|
|
20
|
-
|
|
21
|
-
The content-type of the attachment.
|
|
22
|
-
|
|
23
|
-
***
|
|
24
|
-
|
|
25
|
-
### data
|
|
26
|
-
|
|
27
|
-
> **data**: `Buffer`\<`ArrayBufferLike`\> \| `ReadStream`
|
|
28
|
-
|
|
29
|
-
Defined in: [src/AlertUtils.ts:68](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L68)
|
|
30
|
-
|
|
31
|
-
The contents of the attachment.
|
|
32
|
-
|
|
33
|
-
***
|
|
34
|
-
|
|
35
|
-
### filename
|
|
36
|
-
|
|
37
|
-
> **filename**: `string`
|
|
38
|
-
|
|
39
|
-
Defined in: [src/AlertUtils.ts:70](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L70)
|
|
40
|
-
|
|
41
|
-
The name of the attachment.
|
|
42
|
-
|
|
43
|
-
***
|
|
44
|
-
|
|
45
|
-
### size?
|
|
46
|
-
|
|
47
|
-
> `optional` **size?**: `number`
|
|
48
|
-
|
|
49
|
-
Defined in: [src/AlertUtils.ts:72](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L72)
|
|
50
|
-
|
|
51
|
-
The size of the attachment.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**@rapidrest/core**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@rapidrest/core](../globals.md) / AlertClose
|
|
6
|
-
|
|
7
|
-
# Interface: AlertClose
|
|
8
|
-
|
|
9
|
-
Defined in: [src/AlertUtils.ts:78](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L78)
|
|
10
|
-
|
|
11
|
-
Describes a request to close an alert.
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### note?
|
|
16
|
-
|
|
17
|
-
> `optional` **note?**: `string`
|
|
18
|
-
|
|
19
|
-
Defined in: [src/AlertUtils.ts:82](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L82)
|
|
20
|
-
|
|
21
|
-
Additional alert note to add.
|
|
22
|
-
|
|
23
|
-
***
|
|
24
|
-
|
|
25
|
-
### source?
|
|
26
|
-
|
|
27
|
-
> `optional` **source?**: `string`
|
|
28
|
-
|
|
29
|
-
Defined in: [src/AlertUtils.ts:80](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/AlertUtils.ts#L80)
|
|
30
|
-
|
|
31
|
-
Display name of the request source.
|