@rapidrest/core 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ClassLoader.js +6 -4
- package/dist/lib/ClassLoader.js.map +1 -1
- package/dist/lib/JWTUtils.js +102 -5
- package/dist/lib/JWTUtils.js.map +1 -1
- package/dist/lib/Logger.js +9 -2
- package/dist/lib/Logger.js.map +1 -1
- package/dist/lib/MessagingUtils.js +27 -22
- package/dist/lib/MessagingUtils.js.map +1 -1
- package/dist/lib/NotificationsUtils.js +4 -2
- package/dist/lib/NotificationsUtils.js.map +1 -1
- package/dist/lib/OASUtils.js +17 -3
- package/dist/lib/OASUtils.js.map +1 -1
- package/dist/lib/ObjectFactory.js +95 -77
- package/dist/lib/ObjectFactory.js.map +1 -1
- package/dist/lib/StringUtils.js +16 -12
- package/dist/lib/StringUtils.js.map +1 -1
- package/dist/lib/TelemetryUtils.js +2 -2
- package/dist/lib/TelemetryUtils.js.map +1 -1
- package/dist/lib/threads/ThreadPool.js +17 -8
- package/dist/lib/threads/ThreadPool.js.map +1 -1
- package/dist/types/JWTUtils.d.ts +22 -3
- package/dist/types/Logger.d.ts +1 -1
- package/dist/types/MessagingUtils.d.ts +4 -0
- package/dist/types/OASUtils.d.ts +2 -0
- package/dist/types/ObjectFactory.d.ts +6 -0
- package/dist/types/TelemetryUtils.d.ts +1 -1
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Config.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Destroy.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Init.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Inject.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Logger.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Nullable.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Validator.md +1 -1
- package/docs/reference/@rapidrest/namespaces/ObjectDecorators/type-aliases/ValidatorFunction.md +1 -1
- package/docs/reference/classes/AlertUtils.md +6 -6
- package/docs/reference/classes/ApiError.md +5 -5
- package/docs/reference/classes/ClassLoader.md +34 -34
- package/docs/reference/classes/Event.md +8 -8
- package/docs/reference/classes/EventUtils.md +6 -6
- package/docs/reference/classes/FileUtils.md +5 -5
- package/docs/reference/classes/JWTUtils.md +61 -13
- package/docs/reference/classes/MessagingUtils.md +8 -8
- package/docs/reference/classes/OASUtils.md +22 -8
- package/docs/reference/classes/ObjectFactory.md +14 -14
- package/docs/reference/classes/ObjectUtils.md +2 -2
- package/docs/reference/classes/StringUtils.md +6 -6
- package/docs/reference/classes/ThreadPool.md +11 -11
- package/docs/reference/classes/ThreadWorker.md +6 -6
- package/docs/reference/classes/UserUtils.md +6 -6
- package/docs/reference/classes/ValidationUtils.md +14 -14
- package/docs/reference/enumerations/AlertPriority.md +6 -6
- package/docs/reference/enumerations/JWTUtilsCompressionMethods.md +2 -2
- package/docs/reference/enumerations/WorkerMessageType.md +5 -5
- package/docs/reference/functions/sleep.md +1 -1
- package/docs/reference/interfaces/Alert.md +10 -10
- package/docs/reference/interfaces/AlertAttachment.md +5 -5
- package/docs/reference/interfaces/AlertClose.md +3 -3
- package/docs/reference/interfaces/AlertUtilsAttachmentOptions.md +4 -4
- package/docs/reference/interfaces/AlertUtilsOptions.md +4 -4
- package/docs/reference/interfaces/InstanceOptions.md +4 -4
- package/docs/reference/interfaces/JWTPayload.md +5 -5
- package/docs/reference/interfaces/JWTUser.md +5 -5
- package/docs/reference/interfaces/JWTUtilsConfig.md +4 -4
- package/docs/reference/interfaces/JWTUtilsPayloadKeyOptions.md +5 -5
- package/docs/reference/interfaces/JWTUtilsPayloadOptions.md +3 -3
- package/docs/reference/interfaces/JWTUtilsPayloadPasswordOptions.md +6 -6
- package/docs/reference/interfaces/NewEvent.md +2 -2
- package/docs/reference/interfaces/OriginSettings.md +3 -3
- package/docs/reference/interfaces/SlackConfig.md +4 -4
- package/docs/reference/interfaces/SmtpAuth.md +3 -3
- package/docs/reference/interfaces/SmtpConfig.md +5 -5
- package/docs/reference/interfaces/Template.md +13 -13
- package/docs/reference/interfaces/TemplateMapBase.md +1 -1
- package/docs/reference/interfaces/TwilioConfig.md +4 -4
- package/docs/reference/interfaces/WorkerMessage.md +3 -3
- package/docs/reference/interfaces/WorkerOptions.md +6 -6
- package/docs/reference/type-aliases/BooleanFunc.md +1 -1
- package/docs/reference/type-aliases/TemplateMap.md +1 -1
- package/docs/reference/type-aliases/WorkerCallback.md +1 -1
- package/docs/reference/variables/Logger.md +2 -2
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: NewEvent
|
|
8
8
|
|
|
9
|
-
Defined in: [src/TelemetryUtils.ts:13](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/TelemetryUtils.ts:13](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/TelemetryUtils.ts#L13)
|
|
10
10
|
|
|
11
11
|
Describes the required fields when creating a new telemetry event.
|
|
12
12
|
|
|
@@ -20,6 +20,6 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
|
|
|
20
20
|
|
|
21
21
|
> **type**: `string`
|
|
22
22
|
|
|
23
|
-
Defined in: [src/TelemetryUtils.ts:15](https://github.com/rapidrest/core/blob/
|
|
23
|
+
Defined in: [src/TelemetryUtils.ts:15](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/TelemetryUtils.ts#L15)
|
|
24
24
|
|
|
25
25
|
The type of event begin recorded.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: OriginSettings
|
|
8
8
|
|
|
9
|
-
Defined in: [src/MessagingUtils.ts:8](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/MessagingUtils.ts:8](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L8)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [src/MessagingUtils.ts:8](https://github.com/rapidrest/core/blob/0eb
|
|
|
14
14
|
|
|
15
15
|
> **email**: `string`
|
|
16
16
|
|
|
17
|
-
Defined in: [src/MessagingUtils.ts:9](https://github.com/rapidrest/core/blob/
|
|
17
|
+
Defined in: [src/MessagingUtils.ts:9](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L9)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,4 +22,4 @@ Defined in: [src/MessagingUtils.ts:9](https://github.com/rapidrest/core/blob/0eb
|
|
|
22
22
|
|
|
23
23
|
> **sms**: `string`
|
|
24
24
|
|
|
25
|
-
Defined in: [src/MessagingUtils.ts:10](https://github.com/rapidrest/core/blob/
|
|
25
|
+
Defined in: [src/MessagingUtils.ts:10](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L10)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: SlackConfig
|
|
8
8
|
|
|
9
|
-
Defined in: [src/MessagingUtils.ts:48](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/MessagingUtils.ts:48](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L48)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [src/MessagingUtils.ts:48](https://github.com/rapidrest/core/blob/0e
|
|
|
14
14
|
|
|
15
15
|
> **name**: `string`
|
|
16
16
|
|
|
17
|
-
Defined in: [src/MessagingUtils.ts:49](https://github.com/rapidrest/core/blob/
|
|
17
|
+
Defined in: [src/MessagingUtils.ts:49](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L49)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [src/MessagingUtils.ts:49](https://github.com/rapidrest/core/blob/0e
|
|
|
22
22
|
|
|
23
23
|
> **signingSecret**: `string`
|
|
24
24
|
|
|
25
|
-
Defined in: [src/MessagingUtils.ts:51](https://github.com/rapidrest/core/blob/
|
|
25
|
+
Defined in: [src/MessagingUtils.ts:51](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L51)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,4 +30,4 @@ Defined in: [src/MessagingUtils.ts:51](https://github.com/rapidrest/core/blob/0e
|
|
|
30
30
|
|
|
31
31
|
> **token**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [src/MessagingUtils.ts:50](https://github.com/rapidrest/core/blob/
|
|
33
|
+
Defined in: [src/MessagingUtils.ts:50](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L50)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: SmtpAuth
|
|
8
8
|
|
|
9
|
-
Defined in: [src/MessagingUtils.ts:54](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/MessagingUtils.ts:54](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L54)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [src/MessagingUtils.ts:54](https://github.com/rapidrest/core/blob/0e
|
|
|
14
14
|
|
|
15
15
|
> **pass**: `string`
|
|
16
16
|
|
|
17
|
-
Defined in: [src/MessagingUtils.ts:56](https://github.com/rapidrest/core/blob/
|
|
17
|
+
Defined in: [src/MessagingUtils.ts:56](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L56)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,4 +22,4 @@ Defined in: [src/MessagingUtils.ts:56](https://github.com/rapidrest/core/blob/0e
|
|
|
22
22
|
|
|
23
23
|
> **user**: `string`
|
|
24
24
|
|
|
25
|
-
Defined in: [src/MessagingUtils.ts:55](https://github.com/rapidrest/core/blob/
|
|
25
|
+
Defined in: [src/MessagingUtils.ts:55](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L55)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: SmtpConfig
|
|
8
8
|
|
|
9
|
-
Defined in: [src/MessagingUtils.ts:59](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/MessagingUtils.ts:59](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L59)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [src/MessagingUtils.ts:59](https://github.com/rapidrest/core/blob/0e
|
|
|
14
14
|
|
|
15
15
|
> `optional` **auth?**: [`SmtpAuth`](SmtpAuth.md)
|
|
16
16
|
|
|
17
|
-
Defined in: [src/MessagingUtils.ts:63](https://github.com/rapidrest/core/blob/
|
|
17
|
+
Defined in: [src/MessagingUtils.ts:63](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L63)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [src/MessagingUtils.ts:63](https://github.com/rapidrest/core/blob/0e
|
|
|
22
22
|
|
|
23
23
|
> **host**: `string`
|
|
24
24
|
|
|
25
|
-
Defined in: [src/MessagingUtils.ts:60](https://github.com/rapidrest/core/blob/
|
|
25
|
+
Defined in: [src/MessagingUtils.ts:60](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L60)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [src/MessagingUtils.ts:60](https://github.com/rapidrest/core/blob/0e
|
|
|
30
30
|
|
|
31
31
|
> **port**: `number`
|
|
32
32
|
|
|
33
|
-
Defined in: [src/MessagingUtils.ts:61](https://github.com/rapidrest/core/blob/
|
|
33
|
+
Defined in: [src/MessagingUtils.ts:61](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L61)
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
@@ -38,4 +38,4 @@ Defined in: [src/MessagingUtils.ts:61](https://github.com/rapidrest/core/blob/0e
|
|
|
38
38
|
|
|
39
39
|
> **secure**: `boolean`
|
|
40
40
|
|
|
41
|
-
Defined in: [src/MessagingUtils.ts:62](https://github.com/rapidrest/core/blob/
|
|
41
|
+
Defined in: [src/MessagingUtils.ts:62](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L62)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: Template
|
|
8
8
|
|
|
9
|
-
Defined in: [src/MessagingUtils.ts:21](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/MessagingUtils.ts:21](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L21)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [src/MessagingUtils.ts:21](https://github.com/rapidrest/core/blob/0e
|
|
|
14
14
|
|
|
15
15
|
> `optional` **email\_options?**: `any`
|
|
16
16
|
|
|
17
|
-
Defined in: [src/MessagingUtils.ts:27](https://github.com/rapidrest/core/blob/
|
|
17
|
+
Defined in: [src/MessagingUtils.ts:27](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L27)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [src/MessagingUtils.ts:27](https://github.com/rapidrest/core/blob/0e
|
|
|
22
22
|
|
|
23
23
|
> **enabled**: `boolean`
|
|
24
24
|
|
|
25
|
-
Defined in: [src/MessagingUtils.ts:23](https://github.com/rapidrest/core/blob/
|
|
25
|
+
Defined in: [src/MessagingUtils.ts:23](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L23)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [src/MessagingUtils.ts:23](https://github.com/rapidrest/core/blob/0e
|
|
|
30
30
|
|
|
31
31
|
> `optional` **html?**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [src/MessagingUtils.ts:31](https://github.com/rapidrest/core/blob/
|
|
33
|
+
Defined in: [src/MessagingUtils.ts:31](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L31)
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ Defined in: [src/MessagingUtils.ts:31](https://github.com/rapidrest/core/blob/0e
|
|
|
38
38
|
|
|
39
39
|
> `optional` **htmlPath?**: `string`
|
|
40
40
|
|
|
41
|
-
Defined in: [src/MessagingUtils.ts:33](https://github.com/rapidrest/core/blob/
|
|
41
|
+
Defined in: [src/MessagingUtils.ts:33](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L33)
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ Defined in: [src/MessagingUtils.ts:33](https://github.com/rapidrest/core/blob/0e
|
|
|
46
46
|
|
|
47
47
|
> `optional` **loaded?**: `boolean`
|
|
48
48
|
|
|
49
|
-
Defined in: [src/MessagingUtils.ts:25](https://github.com/rapidrest/core/blob/
|
|
49
|
+
Defined in: [src/MessagingUtils.ts:25](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L25)
|
|
50
50
|
|
|
51
51
|
***
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ Defined in: [src/MessagingUtils.ts:25](https://github.com/rapidrest/core/blob/0e
|
|
|
54
54
|
|
|
55
55
|
> `optional` **slack\_channel?**: `string`
|
|
56
56
|
|
|
57
|
-
Defined in: [src/MessagingUtils.ts:35](https://github.com/rapidrest/core/blob/
|
|
57
|
+
Defined in: [src/MessagingUtils.ts:35](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L35)
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ Defined in: [src/MessagingUtils.ts:35](https://github.com/rapidrest/core/blob/0e
|
|
|
62
62
|
|
|
63
63
|
> `optional` **slack\_text?**: `string`
|
|
64
64
|
|
|
65
|
-
Defined in: [src/MessagingUtils.ts:37](https://github.com/rapidrest/core/blob/
|
|
65
|
+
Defined in: [src/MessagingUtils.ts:37](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L37)
|
|
66
66
|
|
|
67
67
|
***
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@ Defined in: [src/MessagingUtils.ts:37](https://github.com/rapidrest/core/blob/0e
|
|
|
70
70
|
|
|
71
71
|
> `optional` **sms?**: `string`
|
|
72
72
|
|
|
73
|
-
Defined in: [src/MessagingUtils.ts:39](https://github.com/rapidrest/core/blob/
|
|
73
|
+
Defined in: [src/MessagingUtils.ts:39](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L39)
|
|
74
74
|
|
|
75
75
|
***
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ Defined in: [src/MessagingUtils.ts:39](https://github.com/rapidrest/core/blob/0e
|
|
|
78
78
|
|
|
79
79
|
> `optional` **sms\_options?**: `any`
|
|
80
80
|
|
|
81
|
-
Defined in: [src/MessagingUtils.ts:41](https://github.com/rapidrest/core/blob/
|
|
81
|
+
Defined in: [src/MessagingUtils.ts:41](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L41)
|
|
82
82
|
|
|
83
83
|
***
|
|
84
84
|
|
|
@@ -86,7 +86,7 @@ Defined in: [src/MessagingUtils.ts:41](https://github.com/rapidrest/core/blob/0e
|
|
|
86
86
|
|
|
87
87
|
> `optional` **subject?**: `string`
|
|
88
88
|
|
|
89
|
-
Defined in: [src/MessagingUtils.ts:29](https://github.com/rapidrest/core/blob/
|
|
89
|
+
Defined in: [src/MessagingUtils.ts:29](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L29)
|
|
90
90
|
|
|
91
91
|
***
|
|
92
92
|
|
|
@@ -94,7 +94,7 @@ Defined in: [src/MessagingUtils.ts:29](https://github.com/rapidrest/core/blob/0e
|
|
|
94
94
|
|
|
95
95
|
> `optional` **text?**: `string`
|
|
96
96
|
|
|
97
|
-
Defined in: [src/MessagingUtils.ts:43](https://github.com/rapidrest/core/blob/
|
|
97
|
+
Defined in: [src/MessagingUtils.ts:43](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L43)
|
|
98
98
|
|
|
99
99
|
***
|
|
100
100
|
|
|
@@ -102,4 +102,4 @@ Defined in: [src/MessagingUtils.ts:43](https://github.com/rapidrest/core/blob/0e
|
|
|
102
102
|
|
|
103
103
|
> `optional` **textPath?**: `string`
|
|
104
104
|
|
|
105
|
-
Defined in: [src/MessagingUtils.ts:45](https://github.com/rapidrest/core/blob/
|
|
105
|
+
Defined in: [src/MessagingUtils.ts:45](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L45)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: TemplateMapBase
|
|
8
8
|
|
|
9
|
-
Defined in: [src/MessagingUtils.ts:13](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/MessagingUtils.ts:13](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L13)
|
|
10
10
|
|
|
11
11
|
## Indexable
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: TwilioConfig
|
|
8
8
|
|
|
9
|
-
Defined in: [src/MessagingUtils.ts:66](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/MessagingUtils.ts:66](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L66)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [src/MessagingUtils.ts:66](https://github.com/rapidrest/core/blob/0e
|
|
|
14
14
|
|
|
15
15
|
> **accountSid**: `string`
|
|
16
16
|
|
|
17
|
-
Defined in: [src/MessagingUtils.ts:67](https://github.com/rapidrest/core/blob/
|
|
17
|
+
Defined in: [src/MessagingUtils.ts:67](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L67)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [src/MessagingUtils.ts:67](https://github.com/rapidrest/core/blob/0e
|
|
|
22
22
|
|
|
23
23
|
> `optional` **options?**: `any`
|
|
24
24
|
|
|
25
|
-
Defined in: [src/MessagingUtils.ts:69](https://github.com/rapidrest/core/blob/
|
|
25
|
+
Defined in: [src/MessagingUtils.ts:69](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L69)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,4 +30,4 @@ Defined in: [src/MessagingUtils.ts:69](https://github.com/rapidrest/core/blob/0e
|
|
|
30
30
|
|
|
31
31
|
> **token**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [src/MessagingUtils.ts:68](https://github.com/rapidrest/core/blob/
|
|
33
|
+
Defined in: [src/MessagingUtils.ts:68](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L68)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: WorkerMessage
|
|
8
8
|
|
|
9
|
-
Defined in: [src/threads/ThreadWorker.ts:17](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/threads/ThreadWorker.ts:17](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L17)
|
|
10
10
|
|
|
11
11
|
Describes a single message sent from the thread pool managger to a worker thread.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ Describes a single message sent from the thread pool managger to a worker thread
|
|
|
16
16
|
|
|
17
17
|
> `optional` **data?**: `any`
|
|
18
18
|
|
|
19
|
-
Defined in: [src/threads/ThreadWorker.ts:19](https://github.com/rapidrest/core/blob/
|
|
19
|
+
Defined in: [src/threads/ThreadWorker.ts:19](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L19)
|
|
20
20
|
|
|
21
21
|
The data associated with the message.
|
|
22
22
|
|
|
@@ -26,6 +26,6 @@ The data associated with the message.
|
|
|
26
26
|
|
|
27
27
|
> **type**: [`WorkerMessageType`](../enumerations/WorkerMessageType.md)
|
|
28
28
|
|
|
29
|
-
Defined in: [src/threads/ThreadWorker.ts:21](https://github.com/rapidrest/core/blob/
|
|
29
|
+
Defined in: [src/threads/ThreadWorker.ts:21](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L21)
|
|
30
30
|
|
|
31
31
|
The type of message sent.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: WorkerOptions
|
|
8
8
|
|
|
9
|
-
Defined in: [src/threads/ThreadPool.ts:25](https://github.com/rapidrest/core/blob/
|
|
9
|
+
Defined in: [src/threads/ThreadPool.ts:25](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L25)
|
|
10
10
|
|
|
11
11
|
Describes the various options that can be used when creating worker threads.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ Describes the various options that can be used when creating worker threads.
|
|
|
16
16
|
|
|
17
17
|
> `optional` **allowTs?**: `boolean`
|
|
18
18
|
|
|
19
|
-
Defined in: [src/threads/ThreadPool.ts:33](https://github.com/rapidrest/core/blob/
|
|
19
|
+
Defined in: [src/threads/ThreadPool.ts:33](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L33)
|
|
20
20
|
|
|
21
21
|
Set to `true` to enable support for importing TypeScript modules in the worker. Default is `true`.
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ Set to `true` to enable support for importing TypeScript modules in the worker.
|
|
|
26
26
|
|
|
27
27
|
> `optional` **args?**: `any`
|
|
28
28
|
|
|
29
|
-
Defined in: [src/threads/ThreadPool.ts:27](https://github.com/rapidrest/core/blob/
|
|
29
|
+
Defined in: [src/threads/ThreadPool.ts:27](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L27)
|
|
30
30
|
|
|
31
31
|
The list of initialization arguments to pass into the worker thread.
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ The list of initialization arguments to pass into the worker thread.
|
|
|
36
36
|
|
|
37
37
|
> `optional` **entry?**: `string`
|
|
38
38
|
|
|
39
|
-
Defined in: [src/threads/ThreadPool.ts:29](https://github.com/rapidrest/core/blob/
|
|
39
|
+
Defined in: [src/threads/ThreadPool.ts:29](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L29)
|
|
40
40
|
|
|
41
41
|
The path to the entry file create a worker thread from. Default is `ThreadWorkerEntry.js`.
|
|
42
42
|
|
|
@@ -46,7 +46,7 @@ The path to the entry file create a worker thread from. Default is `ThreadWorker
|
|
|
46
46
|
|
|
47
47
|
> `optional` **restartOnExit?**: `boolean`
|
|
48
48
|
|
|
49
|
-
Defined in: [src/threads/ThreadPool.ts:31](https://github.com/rapidrest/core/blob/
|
|
49
|
+
Defined in: [src/threads/ThreadPool.ts:31](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L31)
|
|
50
50
|
|
|
51
51
|
Indicates if a worker thread should automatically be restarted on exit.
|
|
52
52
|
|
|
@@ -56,6 +56,6 @@ Indicates if a worker thread should automatically be restarted on exit.
|
|
|
56
56
|
|
|
57
57
|
> `optional` **worker?**: `string`
|
|
58
58
|
|
|
59
|
-
Defined in: [src/threads/ThreadPool.ts:35](https://github.com/rapidrest/core/blob/
|
|
59
|
+
Defined in: [src/threads/ThreadPool.ts:35](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L35)
|
|
60
60
|
|
|
61
61
|
The path to the worker file. This must be set when using `ThreadWorkerEntry` as the default entry file.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **BooleanFunc** = (`val`) => `boolean`
|
|
10
10
|
|
|
11
|
-
Defined in: [src/ValidationUtils.ts:9](https://github.com/rapidrest/core/blob/
|
|
11
|
+
Defined in: [src/ValidationUtils.ts:9](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ValidationUtils.ts#L9)
|
|
12
12
|
|
|
13
13
|
A simple validation function that returns a boolean success or fail.
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **TemplateMap** = `Omit`\<[`TemplateMapBase`](../interfaces/TemplateMapBase.md), `"from"`\> & `object`
|
|
10
10
|
|
|
11
|
-
Defined in: [src/MessagingUtils.ts:17](https://github.com/rapidrest/core/blob/
|
|
11
|
+
Defined in: [src/MessagingUtils.ts:17](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L17)
|
|
12
12
|
|
|
13
13
|
## Type Declaration
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **WorkerCallback** = (`threadId`, `msg?`) => `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [src/threads/ThreadPool.ts:20](https://github.com/rapidrest/core/blob/
|
|
11
|
+
Defined in: [src/threads/ThreadPool.ts:20](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L20)
|
|
12
12
|
|
|
13
13
|
Callback function for `ThreadPool` events.
|
|
14
14
|
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
> `const` **Logger**: `any`
|
|
10
10
|
|
|
11
|
-
Defined in: [src/Logger.ts:
|
|
11
|
+
Defined in: [src/Logger.ts:19](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/Logger.ts#L19)
|
|
12
12
|
|
|
13
|
-
Creates a
|
|
13
|
+
Creates (or retrieves a cached) logger with the specified level and file name to output logs to.
|
|
14
14
|
|
|
15
15
|
## Param
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rapidrest/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "A collection of common utilities and core functionality for rapidly building RESTful applications.",
|
|
5
5
|
"repository": "https://github.com/rapidrest/core.git",
|
|
6
6
|
"author": "RapidREST <rapidrests@gmail.com>",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"packageManager": "yarn@4.5.0",
|
|
83
83
|
"engines": {
|
|
84
|
-
"node": ">=
|
|
84
|
+
"node": ">=24.0.0"
|
|
85
85
|
},
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"registry": "https://registry.npmjs.org/"
|