@rapidrest/core 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) 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/MessagingUtils.js +28 -13
  7. package/dist/lib/MessagingUtils.js.map +1 -1
  8. package/dist/lib/ObjectFactory.js +2 -2
  9. package/dist/lib/ObjectFactory.js.map +1 -1
  10. package/dist/lib/TelemetryUtils.js +2 -2
  11. package/dist/lib/TelemetryUtils.js.map +1 -1
  12. package/dist/types/MessagingUtils.d.ts +8 -0
  13. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/README.md +1 -1
  14. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Config.md +2 -2
  15. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Destroy.md +2 -2
  16. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Init.md +2 -2
  17. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Inject.md +2 -2
  18. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Logger.md +2 -2
  19. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Nullable.md +2 -2
  20. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Validator.md +2 -2
  21. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/type-aliases/ValidatorFunction.md +2 -2
  22. package/docs/reference/README.md +23 -61
  23. package/docs/reference/classes/AlertUtils.md +7 -7
  24. package/docs/reference/classes/ApiError.md +6 -6
  25. package/docs/reference/classes/ClassLoader.md +12 -12
  26. package/docs/reference/classes/Event.md +9 -9
  27. package/docs/reference/classes/EventUtils.md +5 -5
  28. package/docs/reference/classes/FileUtils.md +6 -6
  29. package/docs/reference/classes/JWTUtils.md +4 -4
  30. package/docs/reference/classes/MessagingUtils.md +30 -8
  31. package/docs/reference/classes/OASUtils.md +9 -9
  32. package/docs/reference/classes/ObjectFactory.md +15 -15
  33. package/docs/reference/classes/ObjectUtils.md +3 -3
  34. package/docs/reference/classes/StringUtils.md +7 -7
  35. package/docs/reference/classes/ThreadPool.md +12 -12
  36. package/docs/reference/classes/ThreadWorker.md +7 -7
  37. package/docs/reference/classes/UserUtils.md +9 -9
  38. package/docs/reference/classes/ValidationUtils.md +15 -15
  39. package/docs/reference/enumerations/AlertPriority.md +7 -7
  40. package/docs/reference/enumerations/JWTUtilsCompressionMethods.md +3 -3
  41. package/docs/reference/enumerations/WorkerMessageType.md +6 -6
  42. package/docs/reference/functions/sleep.md +2 -2
  43. package/docs/reference/globals.md +73 -0
  44. package/docs/reference/interfaces/Alert.md +11 -11
  45. package/docs/reference/interfaces/AlertAttachment.md +6 -6
  46. package/docs/reference/interfaces/AlertClose.md +4 -4
  47. package/docs/reference/interfaces/AlertUtilsAttachmentOptions.md +5 -5
  48. package/docs/reference/interfaces/AlertUtilsOptions.md +5 -5
  49. package/docs/reference/interfaces/InstanceOptions.md +5 -5
  50. package/docs/reference/interfaces/JWTPayload.md +6 -6
  51. package/docs/reference/interfaces/JWTUser.md +6 -6
  52. package/docs/reference/interfaces/JWTUtilsConfig.md +5 -5
  53. package/docs/reference/interfaces/JWTUtilsPayloadKeyOptions.md +6 -6
  54. package/docs/reference/interfaces/JWTUtilsPayloadOptions.md +4 -4
  55. package/docs/reference/interfaces/JWTUtilsPayloadPasswordOptions.md +7 -7
  56. package/docs/reference/interfaces/NewEvent.md +3 -3
  57. package/docs/reference/interfaces/OriginSettings.md +4 -4
  58. package/docs/reference/interfaces/SlackConfig.md +5 -5
  59. package/docs/reference/interfaces/SmtpAuth.md +4 -4
  60. package/docs/reference/interfaces/SmtpConfig.md +6 -6
  61. package/docs/reference/interfaces/Template.md +35 -11
  62. package/docs/reference/interfaces/TemplateMapBase.md +2 -2
  63. package/docs/reference/interfaces/TwilioConfig.md +5 -5
  64. package/docs/reference/interfaces/WorkerMessage.md +4 -4
  65. package/docs/reference/interfaces/WorkerOptions.md +7 -7
  66. package/docs/reference/type-aliases/BooleanFunc.md +2 -2
  67. package/docs/reference/type-aliases/TemplateMap.md +2 -2
  68. package/docs/reference/type-aliases/WorkerCallback.md +2 -2
  69. package/docs/reference/variables/Logger.md +2 -2
  70. package/package.json +96 -96
  71. package/dist/lib/threads/ThreadLogger.js +0 -43
  72. package/dist/lib/threads/ThreadLogger.js.map +0 -1
  73. package/dist/lib/threads/ThreadWorkerEntry.js +0 -77
  74. package/dist/lib/threads/ThreadWorkerEntry.js.map +0 -1
  75. package/dist/types/threads/ThreadLogger.d.ts +0 -15
  76. package/dist/types/threads/ThreadWorkerEntry.d.ts +0 -1
@@ -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/23a4f312bccd7ea3a0598e320bd5d984466027e5/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/23a4f312bccd7ea3a0598e320bd5d984466027e5/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/23a4f312bccd7ea3a0598e320bd5d984466027e5/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/23a4f312bccd7ea3a0598e320bd5d984466027e5/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/23a4f312bccd7ea3a0598e320bd5d984466027e5/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/23a4f312bccd7ea3a0598e320bd5d984466027e5/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)
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / Alert
5
+ [@rapidrest/core](../globals.md) / Alert
6
6
 
7
7
  # Interface: Alert
8
8
 
9
- Defined in: src/AlertUtils.ts:40
9
+ Defined in: [src/AlertUtils.ts:40](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L40)
10
10
 
11
11
  Describes a single system failure or other similar critical event that requires immediate attention.
12
12
 
@@ -16,7 +16,7 @@ Describes a single system failure or other similar critical event that requires
16
16
 
17
17
  > **alias**: `string`
18
18
 
19
- Defined in: src/AlertUtils.ts:42
19
+ Defined in: [src/AlertUtils.ts:42](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L42)
20
20
 
21
21
  The name of the alert that uniquely identifies the report for purposes of de-duplication.
22
22
 
@@ -26,7 +26,7 @@ The name of the alert that uniquely identifies the report for purposes of de-dup
26
26
 
27
27
  > **description**: `string`
28
28
 
29
- Defined in: src/AlertUtils.ts:44
29
+ Defined in: [src/AlertUtils.ts:44](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L44)
30
30
 
31
31
  The detailed information about the event that has occurred.
32
32
 
@@ -36,7 +36,7 @@ The detailed information about the event that has occurred.
36
36
 
37
37
  > `optional` **details**: `any`
38
38
 
39
- Defined in: src/AlertUtils.ts:46
39
+ Defined in: [src/AlertUtils.ts:46](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L46)
40
40
 
41
41
  A key-value map of custom information about the alert.
42
42
 
@@ -46,7 +46,7 @@ A key-value map of custom information about the alert.
46
46
 
47
47
  > `optional` **entity**: `string`
48
48
 
49
- Defined in: src/AlertUtils.ts:48
49
+ Defined in: [src/AlertUtils.ts:48](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L48)
50
50
 
51
51
  Used to specify a category or problem domain for filtering.
52
52
 
@@ -56,7 +56,7 @@ Used to specify a category or problem domain for filtering.
56
56
 
57
57
  > **message**: `string`
58
58
 
59
- Defined in: src/AlertUtils.ts:50
59
+ Defined in: [src/AlertUtils.ts:50](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L50)
60
60
 
61
61
  The basic summary of the alert that describes the event.
62
62
 
@@ -66,7 +66,7 @@ The basic summary of the alert that describes the event.
66
66
 
67
67
  > `optional` **note**: `string`
68
68
 
69
- Defined in: src/AlertUtils.ts:52
69
+ Defined in: [src/AlertUtils.ts:52](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L52)
70
70
 
71
71
  Additional detail about the event.
72
72
 
@@ -76,7 +76,7 @@ Additional detail about the event.
76
76
 
77
77
  > **priority**: [`AlertPriority`](../enumerations/AlertPriority.md)
78
78
 
79
- Defined in: src/AlertUtils.ts:54
79
+ Defined in: [src/AlertUtils.ts:54](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L54)
80
80
 
81
81
  The priority level of the alert.
82
82
 
@@ -86,7 +86,7 @@ The priority level of the alert.
86
86
 
87
87
  > **source**: `string`
88
88
 
89
- Defined in: src/AlertUtils.ts:56
89
+ Defined in: [src/AlertUtils.ts:56](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L56)
90
90
 
91
91
  The source of the alert. Can be a pod/service name, IP address or other unique identifier.
92
92
 
@@ -96,6 +96,6 @@ The source of the alert. Can be a pod/service name, IP address or other unique i
96
96
 
97
97
  > `optional` **tags**: `string`[]
98
98
 
99
- Defined in: src/AlertUtils.ts:58
99
+ Defined in: [src/AlertUtils.ts:58](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L58)
100
100
 
101
101
  A list of unique tags to associate with the event.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / AlertAttachment
5
+ [@rapidrest/core](../globals.md) / AlertAttachment
6
6
 
7
7
  # Interface: AlertAttachment
8
8
 
9
- Defined in: src/AlertUtils.ts:64
9
+ Defined in: [src/AlertUtils.ts:64](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L64)
10
10
 
11
11
  Describes a single attachment that can be added to an alert.
12
12
 
@@ -16,7 +16,7 @@ Describes a single attachment that can be added to an alert.
16
16
 
17
17
  > **contentType**: `string`
18
18
 
19
- Defined in: src/AlertUtils.ts:66
19
+ Defined in: [src/AlertUtils.ts:66](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L66)
20
20
 
21
21
  The content-type of the attachment.
22
22
 
@@ -26,7 +26,7 @@ The content-type of the attachment.
26
26
 
27
27
  > **data**: `Buffer`\<`ArrayBufferLike`\> \| `ReadStream`
28
28
 
29
- Defined in: src/AlertUtils.ts:68
29
+ Defined in: [src/AlertUtils.ts:68](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L68)
30
30
 
31
31
  The contents of the attachment.
32
32
 
@@ -36,7 +36,7 @@ The contents of the attachment.
36
36
 
37
37
  > **filename**: `string`
38
38
 
39
- Defined in: src/AlertUtils.ts:70
39
+ Defined in: [src/AlertUtils.ts:70](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L70)
40
40
 
41
41
  The name of the attachment.
42
42
 
@@ -46,6 +46,6 @@ The name of the attachment.
46
46
 
47
47
  > `optional` **size**: `number`
48
48
 
49
- Defined in: src/AlertUtils.ts:72
49
+ Defined in: [src/AlertUtils.ts:72](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L72)
50
50
 
51
51
  The size of the attachment.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / AlertClose
5
+ [@rapidrest/core](../globals.md) / AlertClose
6
6
 
7
7
  # Interface: AlertClose
8
8
 
9
- Defined in: src/AlertUtils.ts:78
9
+ Defined in: [src/AlertUtils.ts:78](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L78)
10
10
 
11
11
  Describes a request to close an alert.
12
12
 
@@ -16,7 +16,7 @@ Describes a request to close an alert.
16
16
 
17
17
  > `optional` **note**: `string`
18
18
 
19
- Defined in: src/AlertUtils.ts:82
19
+ Defined in: [src/AlertUtils.ts:82](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L82)
20
20
 
21
21
  Additional alert note to add.
22
22
 
@@ -26,6 +26,6 @@ Additional alert note to add.
26
26
 
27
27
  > `optional` **source**: `string`
28
28
 
29
- Defined in: src/AlertUtils.ts:80
29
+ Defined in: [src/AlertUtils.ts:80](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L80)
30
30
 
31
31
  Display name of the request source.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / AlertUtilsAttachmentOptions
5
+ [@rapidrest/core](../globals.md) / AlertUtilsAttachmentOptions
6
6
 
7
7
  # Interface: AlertUtilsAttachmentOptions
8
8
 
9
- Defined in: src/AlertUtils.ts:100
9
+ Defined in: [src/AlertUtils.ts:100](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L100)
10
10
 
11
11
  Describes the alert attachment options to use when creating an alert.
12
12
 
@@ -16,7 +16,7 @@ Describes the alert attachment options to use when creating an alert.
16
16
 
17
17
  > **files**: [`AlertAttachment`](AlertAttachment.md)[]
18
18
 
19
- Defined in: src/AlertUtils.ts:102
19
+ Defined in: [src/AlertUtils.ts:102](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L102)
20
20
 
21
21
  The attachment files to upload with the alert.
22
22
 
@@ -26,7 +26,7 @@ The attachment files to upload with the alert.
26
26
 
27
27
  > `optional` **indexFile**: `string`
28
28
 
29
- Defined in: src/AlertUtils.ts:104
29
+ Defined in: [src/AlertUtils.ts:104](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L104)
30
30
 
31
31
  The name of the index file when the attachment is a zip file.
32
32
 
@@ -36,7 +36,7 @@ The name of the index file when the attachment is a zip file.
36
36
 
37
37
  > `optional` **zip**: `boolean`
38
38
 
39
- Defined in: src/AlertUtils.ts:109
39
+ Defined in: [src/AlertUtils.ts:109](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L109)
40
40
 
41
41
  Set to `true` to to package all files into a single zip before being uploaded, otherwise set to `false` to
42
42
  upload each file individually.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / AlertUtilsOptions
5
+ [@rapidrest/core](../globals.md) / AlertUtilsOptions
6
6
 
7
7
  # Interface: AlertUtilsOptions
8
8
 
9
- Defined in: src/AlertUtils.ts:88
9
+ Defined in: [src/AlertUtils.ts:88](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L88)
10
10
 
11
11
  The set of configuration options to pass to AlertUtils when creating an instance.
12
12
 
@@ -16,7 +16,7 @@ The set of configuration options to pass to AlertUtils when creating an instance
16
16
 
17
17
  > **auth**: `string`
18
18
 
19
- Defined in: src/AlertUtils.ts:90
19
+ Defined in: [src/AlertUtils.ts:90](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L90)
20
20
 
21
21
  The value of the Authorization header to apply to all outgoing HTTP requests.
22
22
 
@@ -26,7 +26,7 @@ The value of the Authorization header to apply to all outgoing HTTP requests.
26
26
 
27
27
  > `optional` **logger**: `any`
28
28
 
29
- Defined in: src/AlertUtils.ts:94
29
+ Defined in: [src/AlertUtils.ts:94](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L94)
30
30
 
31
31
  The logging utility to use.
32
32
 
@@ -36,6 +36,6 @@ The logging utility to use.
36
36
 
37
37
  > **serviceUrl**: `string`
38
38
 
39
- Defined in: src/AlertUtils.ts:92
39
+ Defined in: [src/AlertUtils.ts:92](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/AlertUtils.ts#L92)
40
40
 
41
41
  The full url of the REST API service that alerts will be sent to.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / InstanceOptions
5
+ [@rapidrest/core](../globals.md) / InstanceOptions
6
6
 
7
7
  # Interface: InstanceOptions
8
8
 
9
- Defined in: src/ObjectFactory.ts:11
9
+ Defined in: [src/ObjectFactory.ts:11](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/ObjectFactory.ts#L11)
10
10
 
11
11
  The set of options to use when creating new instances of objects.
12
12
 
@@ -16,7 +16,7 @@ The set of options to use when creating new instances of objects.
16
16
 
17
17
  > `optional` **args**: `any`[]
18
18
 
19
- Defined in: src/ObjectFactory.ts:12
19
+ Defined in: [src/ObjectFactory.ts:12](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/ObjectFactory.ts#L12)
20
20
 
21
21
  ***
22
22
 
@@ -24,7 +24,7 @@ Defined in: src/ObjectFactory.ts:12
24
24
 
25
25
  > `optional` **initialize**: `boolean`
26
26
 
27
- Defined in: src/ObjectFactory.ts:14
27
+ Defined in: [src/ObjectFactory.ts:14](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/ObjectFactory.ts#L14)
28
28
 
29
29
  ***
30
30
 
@@ -32,4 +32,4 @@ Defined in: src/ObjectFactory.ts:14
32
32
 
33
33
  > `optional` **name**: `string`
34
34
 
35
- Defined in: src/ObjectFactory.ts:13
35
+ Defined in: [src/ObjectFactory.ts:13](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/ObjectFactory.ts#L13)
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / JWTPayload
5
+ [@rapidrest/core](../globals.md) / JWTPayload
6
6
 
7
7
  # Interface: JWTPayload
8
8
 
9
- Defined in: src/JWTUtils.ts:38
9
+ Defined in: [src/JWTUtils.ts:38](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L38)
10
10
 
11
11
  Describes the payload data structure of signed JWT tokens.
12
12
 
@@ -36,7 +36,7 @@ Defined in: node\_modules/@types/jsonwebtoken/index.d.ts:115
36
36
 
37
37
  > `optional` **compression**: `"zlib"`
38
38
 
39
- Defined in: src/JWTUtils.ts:40
39
+ Defined in: [src/JWTUtils.ts:40](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L40)
40
40
 
41
41
  Indicates if the payload profile has been compressed and with what method.
42
42
 
@@ -46,7 +46,7 @@ Indicates if the payload profile has been compressed and with what method.
46
46
 
47
47
  > `optional` **encryption**: `boolean`
48
48
 
49
- Defined in: src/JWTUtils.ts:43
49
+ Defined in: [src/JWTUtils.ts:43](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L43)
50
50
 
51
51
  Indicates if the payload profile has been encrypted.
52
52
 
@@ -116,7 +116,7 @@ Defined in: node\_modules/@types/jsonwebtoken/index.d.ts:117
116
116
 
117
117
  > **profile**: `string` \| [`JWTUser`](JWTUser.md)
118
118
 
119
- Defined in: src/JWTUtils.ts:46
119
+ Defined in: [src/JWTUtils.ts:46](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L46)
120
120
 
121
121
  The user profile of the authenticated user the token is valid for.
122
122
 
@@ -126,7 +126,7 @@ The user profile of the authenticated user the token is valid for.
126
126
 
127
127
  > **sessionUid**: `string`
128
128
 
129
- Defined in: src/JWTUtils.ts:49
129
+ Defined in: [src/JWTUtils.ts:49](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L49)
130
130
 
131
131
  The unique identifier of the user's authentication session.
132
132
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / JWTUser
5
+ [@rapidrest/core](../globals.md) / JWTUser
6
6
 
7
7
  # Interface: JWTUser
8
8
 
9
- Defined in: src/JWTUtils.ts:13
9
+ Defined in: [src/JWTUtils.ts:13](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L13)
10
10
 
11
11
  Describes user data that is encoded in the payload of a JWT token.
12
12
 
@@ -20,7 +20,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
20
20
 
21
21
  > **name**: `string`
22
22
 
23
- Defined in: src/JWTUtils.ts:22
23
+ Defined in: [src/JWTUtils.ts:22](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L22)
24
24
 
25
25
  The unique name of the user.
26
26
 
@@ -30,7 +30,7 @@ The unique name of the user.
30
30
 
31
31
  > **roles**: `string`[]
32
32
 
33
- Defined in: src/JWTUtils.ts:27
33
+ Defined in: [src/JWTUtils.ts:27](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L27)
34
34
 
35
35
  The list of roles (by name) that the user is apart of and will assume privileges for.
36
36
 
@@ -40,7 +40,7 @@ The list of roles (by name) that the user is apart of and will assume privileges
40
40
 
41
41
  > **uid**: `string`
42
42
 
43
- Defined in: src/JWTUtils.ts:17
43
+ Defined in: [src/JWTUtils.ts:17](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L17)
44
44
 
45
45
  The universally unique identifier of the user.
46
46
 
@@ -50,6 +50,6 @@ The universally unique identifier of the user.
50
50
 
51
51
  > `optional` **verified**: `boolean`
52
52
 
53
- Defined in: src/JWTUtils.ts:32
53
+ Defined in: [src/JWTUtils.ts:32](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L32)
54
54
 
55
55
  Indicates if the user's e-mail address has been verified.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / JWTUtilsConfig
5
+ [@rapidrest/core](../globals.md) / JWTUtilsConfig
6
6
 
7
7
  # Interface: JWTUtilsConfig
8
8
 
9
- Defined in: src/JWTUtils.ts:123
9
+ Defined in: [src/JWTUtils.ts:123](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L123)
10
10
 
11
11
  Describes the configuration options to be used with `JWTUtils` functions.
12
12
 
@@ -20,7 +20,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
20
20
 
21
21
  > `optional` **options**: `VerifyOptions`
22
22
 
23
- Defined in: src/JWTUtils.ts:132
23
+ Defined in: [src/JWTUtils.ts:132](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L132)
24
24
 
25
25
  The options to use when performing JWT signing or verification.
26
26
 
@@ -30,7 +30,7 @@ The options to use when performing JWT signing or verification.
30
30
 
31
31
  > `optional` **payload**: [`JWTUtilsPayloadOptions`](JWTUtilsPayloadOptions.md) \| [`JWTUtilsPayloadPasswordOptions`](JWTUtilsPayloadPasswordOptions.md) \| [`JWTUtilsPayloadKeyOptions`](JWTUtilsPayloadKeyOptions.md)
32
32
 
33
- Defined in: src/JWTUtils.ts:137
33
+ Defined in: [src/JWTUtils.ts:137](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L137)
34
34
 
35
35
  The options that determine how JWT token payloads will be handled.
36
36
 
@@ -40,6 +40,6 @@ The options that determine how JWT token payloads will be handled.
40
40
 
41
41
  > **secret**: `Secret`
42
42
 
43
- Defined in: src/JWTUtils.ts:127
43
+ Defined in: [src/JWTUtils.ts:127](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L127)
44
44
 
45
45
  The secret to use for signing and verifying JWT tokens.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / JWTUtilsPayloadKeyOptions
5
+ [@rapidrest/core](../globals.md) / JWTUtilsPayloadKeyOptions
6
6
 
7
7
  # Interface: JWTUtilsPayloadKeyOptions
8
8
 
9
- Defined in: src/JWTUtils.ts:106
9
+ Defined in: [src/JWTUtils.ts:106](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L106)
10
10
 
11
11
  Describes the configuration options to be used with the `JWTUtilsConfig.payload` property when performing
12
12
  key-based encryption.
@@ -25,7 +25,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
25
25
 
26
26
  > `optional` **compress**: [`ZLIB`](../enumerations/JWTUtilsCompressionMethods.md#zlib)
27
27
 
28
- Defined in: src/JWTUtils.ts:69
28
+ Defined in: [src/JWTUtils.ts:69](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L69)
29
29
 
30
30
  Set the method to use for compressing the payload profile, otherwise set to `null` for no compression.
31
31
 
@@ -39,7 +39,7 @@ Set the method to use for compressing the payload profile, otherwise set to `nul
39
39
 
40
40
  > `optional` **encrypt**: `boolean`
41
41
 
42
- Defined in: src/JWTUtils.ts:74
42
+ Defined in: [src/JWTUtils.ts:74](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L74)
43
43
 
44
44
  Set to `true` to indicate that the JWT token payload is encrypted, otherwise set to `false`.
45
45
 
@@ -53,7 +53,7 @@ Set to `true` to indicate that the JWT token payload is encrypted, otherwise set
53
53
 
54
54
  > **private\_key**: `string`
55
55
 
56
- Defined in: src/JWTUtils.ts:110
56
+ Defined in: [src/JWTUtils.ts:110](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L110)
57
57
 
58
58
  The private key used to encrypt JWT token payloads.
59
59
 
@@ -63,6 +63,6 @@ The private key used to encrypt JWT token payloads.
63
63
 
64
64
  > **public\_key**: `string`
65
65
 
66
- Defined in: src/JWTUtils.ts:115
66
+ Defined in: [src/JWTUtils.ts:115](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L115)
67
67
 
68
68
  The public key used to decrypt JWT token payloads.
@@ -2,11 +2,11 @@
2
2
 
3
3
  ***
4
4
 
5
- [@rapidrest/core](../README.md) / JWTUtilsPayloadOptions
5
+ [@rapidrest/core](../globals.md) / JWTUtilsPayloadOptions
6
6
 
7
7
  # Interface: JWTUtilsPayloadOptions
8
8
 
9
- Defined in: src/JWTUtils.ts:65
9
+ Defined in: [src/JWTUtils.ts:65](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L65)
10
10
 
11
11
  Describes the configuration options to be used with the `JWTUtilsConfig.payload` property.
12
12
 
@@ -25,7 +25,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
25
25
 
26
26
  > `optional` **compress**: [`ZLIB`](../enumerations/JWTUtilsCompressionMethods.md#zlib)
27
27
 
28
- Defined in: src/JWTUtils.ts:69
28
+ Defined in: [src/JWTUtils.ts:69](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L69)
29
29
 
30
30
  Set the method to use for compressing the payload profile, otherwise set to `null` for no compression.
31
31
 
@@ -35,6 +35,6 @@ Set the method to use for compressing the payload profile, otherwise set to `nul
35
35
 
36
36
  > `optional` **encrypt**: `boolean`
37
37
 
38
- Defined in: src/JWTUtils.ts:74
38
+ Defined in: [src/JWTUtils.ts:74](https://github.com/rapidrest/core/blob/23a4f312bccd7ea3a0598e320bd5d984466027e5/src/JWTUtils.ts#L74)
39
39
 
40
40
  Set to `true` to indicate that the JWT token payload is encrypted, otherwise set to `false`.