@rapidrest/core 1.3.0 → 1.3.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 (69) hide show
  1. package/dist/lib/ClassLoader.js +3 -2
  2. package/dist/lib/ClassLoader.js.map +1 -1
  3. package/dist/lib/JWTUtils.js +1 -0
  4. package/dist/lib/JWTUtils.js.map +1 -1
  5. package/dist/lib/StringUtils.js +3 -3
  6. package/dist/types/JWTUtils.d.ts +1 -0
  7. package/dist/types/StringUtils.d.ts +3 -3
  8. package/package.json +2 -7
  9. package/docs/Makefile +0 -20
  10. package/docs/conf.py +0 -58
  11. package/docs/index.rst +0 -17
  12. package/docs/make.bat +0 -35
  13. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/README.md +0 -21
  14. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Config.md +0 -33
  15. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Destroy.md +0 -27
  16. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Init.md +0 -33
  17. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Inject.md +0 -33
  18. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Logger.md +0 -27
  19. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Nullable.md +0 -27
  20. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Validator.md +0 -25
  21. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/type-aliases/ValidatorFunction.md +0 -31
  22. package/docs/reference/README.md +0 -35
  23. package/docs/reference/classes/AlertUtils.md +0 -158
  24. package/docs/reference/classes/ApiError.md +0 -251
  25. package/docs/reference/classes/ClassLoader.md +0 -224
  26. package/docs/reference/classes/Event.md +0 -109
  27. package/docs/reference/classes/EventUtils.md +0 -123
  28. package/docs/reference/classes/FileUtils.md +0 -193
  29. package/docs/reference/classes/JWTUtils.md +0 -139
  30. package/docs/reference/classes/MessagingUtils.md +0 -167
  31. package/docs/reference/classes/OASUtils.md +0 -227
  32. package/docs/reference/classes/ObjectFactory.md +0 -276
  33. package/docs/reference/classes/ObjectUtils.md +0 -60
  34. package/docs/reference/classes/StringUtils.md +0 -169
  35. package/docs/reference/classes/ThreadPool.md +0 -249
  36. package/docs/reference/classes/ThreadWorker.md +0 -91
  37. package/docs/reference/classes/UserUtils.md +0 -185
  38. package/docs/reference/classes/ValidationUtils.md +0 -294
  39. package/docs/reference/enumerations/AlertPriority.md +0 -61
  40. package/docs/reference/enumerations/JWTUtilsCompressionMethods.md +0 -21
  41. package/docs/reference/enumerations/WorkerMessageType.md +0 -43
  42. package/docs/reference/functions/sleep.md +0 -25
  43. package/docs/reference/globals.md +0 -73
  44. package/docs/reference/interfaces/Alert.md +0 -101
  45. package/docs/reference/interfaces/AlertAttachment.md +0 -51
  46. package/docs/reference/interfaces/AlertClose.md +0 -31
  47. package/docs/reference/interfaces/AlertUtilsAttachmentOptions.md +0 -42
  48. package/docs/reference/interfaces/AlertUtilsOptions.md +0 -41
  49. package/docs/reference/interfaces/InstanceOptions.md +0 -41
  50. package/docs/reference/interfaces/JWTPayload.md +0 -143
  51. package/docs/reference/interfaces/JWTUser.md +0 -55
  52. package/docs/reference/interfaces/JWTUtilsConfig.md +0 -45
  53. package/docs/reference/interfaces/JWTUtilsPayloadKeyOptions.md +0 -68
  54. package/docs/reference/interfaces/JWTUtilsPayloadOptions.md +0 -40
  55. package/docs/reference/interfaces/JWTUtilsPayloadPasswordOptions.md +0 -78
  56. package/docs/reference/interfaces/NewEvent.md +0 -25
  57. package/docs/reference/interfaces/OriginSettings.md +0 -25
  58. package/docs/reference/interfaces/SlackConfig.md +0 -33
  59. package/docs/reference/interfaces/SmtpAuth.md +0 -25
  60. package/docs/reference/interfaces/SmtpConfig.md +0 -41
  61. package/docs/reference/interfaces/Template.md +0 -105
  62. package/docs/reference/interfaces/TemplateMapBase.md +0 -13
  63. package/docs/reference/interfaces/TwilioConfig.md +0 -33
  64. package/docs/reference/interfaces/WorkerMessage.md +0 -31
  65. package/docs/reference/interfaces/WorkerOptions.md +0 -61
  66. package/docs/reference/type-aliases/BooleanFunc.md +0 -23
  67. package/docs/reference/type-aliases/TemplateMap.md +0 -17
  68. package/docs/reference/type-aliases/WorkerCallback.md +0 -31
  69. package/docs/reference/variables/Logger.md +0 -25
@@ -1,41 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / SmtpConfig
6
-
7
- # Interface: SmtpConfig
8
-
9
- Defined in: [src/MessagingUtils.ts:59](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L59)
10
-
11
- ## Properties
12
-
13
- ### auth?
14
-
15
- > `optional` **auth?**: [`SmtpAuth`](SmtpAuth.md)
16
-
17
- Defined in: [src/MessagingUtils.ts:63](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L63)
18
-
19
- ***
20
-
21
- ### host
22
-
23
- > **host**: `string`
24
-
25
- Defined in: [src/MessagingUtils.ts:60](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L60)
26
-
27
- ***
28
-
29
- ### port
30
-
31
- > **port**: `number`
32
-
33
- Defined in: [src/MessagingUtils.ts:61](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L61)
34
-
35
- ***
36
-
37
- ### secure
38
-
39
- > **secure**: `boolean`
40
-
41
- Defined in: [src/MessagingUtils.ts:62](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L62)
@@ -1,105 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / Template
6
-
7
- # Interface: Template
8
-
9
- Defined in: [src/MessagingUtils.ts:21](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L21)
10
-
11
- ## Properties
12
-
13
- ### email\_options?
14
-
15
- > `optional` **email\_options?**: `any`
16
-
17
- Defined in: [src/MessagingUtils.ts:27](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L27)
18
-
19
- ***
20
-
21
- ### enabled
22
-
23
- > **enabled**: `boolean`
24
-
25
- Defined in: [src/MessagingUtils.ts:23](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L23)
26
-
27
- ***
28
-
29
- ### html?
30
-
31
- > `optional` **html?**: `string`
32
-
33
- Defined in: [src/MessagingUtils.ts:31](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L31)
34
-
35
- ***
36
-
37
- ### htmlPath?
38
-
39
- > `optional` **htmlPath?**: `string`
40
-
41
- Defined in: [src/MessagingUtils.ts:33](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L33)
42
-
43
- ***
44
-
45
- ### loaded?
46
-
47
- > `optional` **loaded?**: `boolean`
48
-
49
- Defined in: [src/MessagingUtils.ts:25](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L25)
50
-
51
- ***
52
-
53
- ### slack\_channel?
54
-
55
- > `optional` **slack\_channel?**: `string`
56
-
57
- Defined in: [src/MessagingUtils.ts:35](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L35)
58
-
59
- ***
60
-
61
- ### slack\_text?
62
-
63
- > `optional` **slack\_text?**: `string`
64
-
65
- Defined in: [src/MessagingUtils.ts:37](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L37)
66
-
67
- ***
68
-
69
- ### sms?
70
-
71
- > `optional` **sms?**: `string`
72
-
73
- Defined in: [src/MessagingUtils.ts:39](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L39)
74
-
75
- ***
76
-
77
- ### sms\_options?
78
-
79
- > `optional` **sms\_options?**: `any`
80
-
81
- Defined in: [src/MessagingUtils.ts:41](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L41)
82
-
83
- ***
84
-
85
- ### subject?
86
-
87
- > `optional` **subject?**: `string`
88
-
89
- Defined in: [src/MessagingUtils.ts:29](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L29)
90
-
91
- ***
92
-
93
- ### text?
94
-
95
- > `optional` **text?**: `string`
96
-
97
- Defined in: [src/MessagingUtils.ts:43](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L43)
98
-
99
- ***
100
-
101
- ### textPath?
102
-
103
- > `optional` **textPath?**: `string`
104
-
105
- Defined in: [src/MessagingUtils.ts:45](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L45)
@@ -1,13 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / TemplateMapBase
6
-
7
- # Interface: TemplateMapBase
8
-
9
- Defined in: [src/MessagingUtils.ts:13](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L13)
10
-
11
- ## Indexable
12
-
13
- > \[`name`: `string`\]: [`Template`](Template.md)
@@ -1,33 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / TwilioConfig
6
-
7
- # Interface: TwilioConfig
8
-
9
- Defined in: [src/MessagingUtils.ts:66](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L66)
10
-
11
- ## Properties
12
-
13
- ### accountSid
14
-
15
- > **accountSid**: `string`
16
-
17
- Defined in: [src/MessagingUtils.ts:67](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L67)
18
-
19
- ***
20
-
21
- ### options?
22
-
23
- > `optional` **options?**: `any`
24
-
25
- Defined in: [src/MessagingUtils.ts:69](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L69)
26
-
27
- ***
28
-
29
- ### token
30
-
31
- > **token**: `string`
32
-
33
- Defined in: [src/MessagingUtils.ts:68](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L68)
@@ -1,31 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / WorkerMessage
6
-
7
- # Interface: WorkerMessage
8
-
9
- Defined in: [src/threads/ThreadWorker.ts:17](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L17)
10
-
11
- Describes a single message sent from the thread pool managger to a worker thread.
12
-
13
- ## Properties
14
-
15
- ### data?
16
-
17
- > `optional` **data?**: `any`
18
-
19
- Defined in: [src/threads/ThreadWorker.ts:19](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L19)
20
-
21
- The data associated with the message.
22
-
23
- ***
24
-
25
- ### type
26
-
27
- > **type**: [`WorkerMessageType`](../enumerations/WorkerMessageType.md)
28
-
29
- Defined in: [src/threads/ThreadWorker.ts:21](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L21)
30
-
31
- The type of message sent.
@@ -1,61 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / WorkerOptions
6
-
7
- # Interface: WorkerOptions
8
-
9
- Defined in: [src/threads/ThreadPool.ts:25](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L25)
10
-
11
- Describes the various options that can be used when creating worker threads.
12
-
13
- ## Properties
14
-
15
- ### allowTs?
16
-
17
- > `optional` **allowTs?**: `boolean`
18
-
19
- Defined in: [src/threads/ThreadPool.ts:33](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L33)
20
-
21
- Set to `true` to enable support for importing TypeScript modules in the worker. Default is `true`.
22
-
23
- ***
24
-
25
- ### args?
26
-
27
- > `optional` **args?**: `any`
28
-
29
- Defined in: [src/threads/ThreadPool.ts:27](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L27)
30
-
31
- The list of initialization arguments to pass into the worker thread.
32
-
33
- ***
34
-
35
- ### entry?
36
-
37
- > `optional` **entry?**: `string`
38
-
39
- Defined in: [src/threads/ThreadPool.ts:29](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L29)
40
-
41
- The path to the entry file create a worker thread from. Default is `ThreadWorkerEntry.js`.
42
-
43
- ***
44
-
45
- ### restartOnExit?
46
-
47
- > `optional` **restartOnExit?**: `boolean`
48
-
49
- Defined in: [src/threads/ThreadPool.ts:31](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L31)
50
-
51
- Indicates if a worker thread should automatically be restarted on exit.
52
-
53
- ***
54
-
55
- ### worker?
56
-
57
- > `optional` **worker?**: `string`
58
-
59
- Defined in: [src/threads/ThreadPool.ts:35](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L35)
60
-
61
- The path to the worker file. This must be set when using `ThreadWorkerEntry` as the default entry file.
@@ -1,23 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / BooleanFunc
6
-
7
- # Type Alias: BooleanFunc
8
-
9
- > **BooleanFunc** = (`val`) => `boolean`
10
-
11
- Defined in: [src/ValidationUtils.ts:9](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ValidationUtils.ts#L9)
12
-
13
- A simple validation function that returns a boolean success or fail.
14
-
15
- ## Parameters
16
-
17
- ### val
18
-
19
- `any`
20
-
21
- ## Returns
22
-
23
- `boolean`
@@ -1,17 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / TemplateMap
6
-
7
- # Type Alias: TemplateMap
8
-
9
- > **TemplateMap** = `Omit`\<[`TemplateMapBase`](../interfaces/TemplateMapBase.md), `"from"`\> & `object`
10
-
11
- Defined in: [src/MessagingUtils.ts:17](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L17)
12
-
13
- ## Type Declaration
14
-
15
- ### from
16
-
17
- > **from**: [`OriginSettings`](../interfaces/OriginSettings.md)
@@ -1,31 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / WorkerCallback
6
-
7
- # Type Alias: WorkerCallback
8
-
9
- > **WorkerCallback** = (`threadId`, `msg?`) => `void`
10
-
11
- Defined in: [src/threads/ThreadPool.ts:20](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L20)
12
-
13
- Callback function for `ThreadPool` events.
14
-
15
- ## Parameters
16
-
17
- ### threadId
18
-
19
- `number`
20
-
21
- The id of the thread that originated the event.
22
-
23
- ### msg?
24
-
25
- `any`
26
-
27
- The optional message data associated with the event.
28
-
29
- ## Returns
30
-
31
- `void`
@@ -1,25 +0,0 @@
1
- [**@rapidrest/core**](../README.md)
2
-
3
- ***
4
-
5
- [@rapidrest/core](../globals.md) / Logger
6
-
7
- # Variable: Logger
8
-
9
- > `const` **Logger**: `any`
10
-
11
- Defined in: [src/Logger.ts:19](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/Logger.ts#L19)
12
-
13
- Creates (or retrieves a cached) logger with the specified level and file name to output logs to.
14
-
15
- ## Param
16
-
17
- **level**
18
-
19
- The logging level to create the logger with.
20
-
21
- ## Param
22
-
23
- **file**
24
-
25
- The name (without an extension) of the file to output logs to.