@rapidrest/core 1.3.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.
Files changed (60) 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/types/JWTUtils.d.ts +1 -0
  6. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Config.md +1 -1
  7. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Destroy.md +1 -1
  8. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Init.md +1 -1
  9. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Inject.md +1 -1
  10. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Logger.md +1 -1
  11. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Nullable.md +1 -1
  12. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/functions/Validator.md +1 -1
  13. package/docs/reference/@rapidrest/namespaces/ObjectDecorators/type-aliases/ValidatorFunction.md +1 -1
  14. package/docs/reference/classes/AlertUtils.md +6 -6
  15. package/docs/reference/classes/ApiError.md +5 -5
  16. package/docs/reference/classes/ClassLoader.md +34 -34
  17. package/docs/reference/classes/Event.md +8 -8
  18. package/docs/reference/classes/EventUtils.md +4 -4
  19. package/docs/reference/classes/FileUtils.md +5 -5
  20. package/docs/reference/classes/JWTUtils.md +5 -5
  21. package/docs/reference/classes/MessagingUtils.md +8 -8
  22. package/docs/reference/classes/OASUtils.md +9 -9
  23. package/docs/reference/classes/ObjectFactory.md +14 -14
  24. package/docs/reference/classes/ObjectUtils.md +2 -2
  25. package/docs/reference/classes/StringUtils.md +6 -6
  26. package/docs/reference/classes/ThreadPool.md +11 -11
  27. package/docs/reference/classes/ThreadWorker.md +6 -6
  28. package/docs/reference/classes/UserUtils.md +6 -6
  29. package/docs/reference/classes/ValidationUtils.md +14 -14
  30. package/docs/reference/enumerations/AlertPriority.md +6 -6
  31. package/docs/reference/enumerations/JWTUtilsCompressionMethods.md +2 -2
  32. package/docs/reference/enumerations/WorkerMessageType.md +5 -5
  33. package/docs/reference/functions/sleep.md +1 -1
  34. package/docs/reference/interfaces/Alert.md +10 -10
  35. package/docs/reference/interfaces/AlertAttachment.md +5 -5
  36. package/docs/reference/interfaces/AlertClose.md +3 -3
  37. package/docs/reference/interfaces/AlertUtilsAttachmentOptions.md +4 -4
  38. package/docs/reference/interfaces/AlertUtilsOptions.md +4 -4
  39. package/docs/reference/interfaces/InstanceOptions.md +4 -4
  40. package/docs/reference/interfaces/JWTPayload.md +5 -5
  41. package/docs/reference/interfaces/JWTUser.md +5 -5
  42. package/docs/reference/interfaces/JWTUtilsConfig.md +4 -4
  43. package/docs/reference/interfaces/JWTUtilsPayloadKeyOptions.md +5 -5
  44. package/docs/reference/interfaces/JWTUtilsPayloadOptions.md +3 -3
  45. package/docs/reference/interfaces/JWTUtilsPayloadPasswordOptions.md +6 -6
  46. package/docs/reference/interfaces/NewEvent.md +2 -2
  47. package/docs/reference/interfaces/OriginSettings.md +3 -3
  48. package/docs/reference/interfaces/SlackConfig.md +4 -4
  49. package/docs/reference/interfaces/SmtpAuth.md +3 -3
  50. package/docs/reference/interfaces/SmtpConfig.md +5 -5
  51. package/docs/reference/interfaces/Template.md +13 -13
  52. package/docs/reference/interfaces/TemplateMapBase.md +1 -1
  53. package/docs/reference/interfaces/TwilioConfig.md +4 -4
  54. package/docs/reference/interfaces/WorkerMessage.md +3 -3
  55. package/docs/reference/interfaces/WorkerOptions.md +6 -6
  56. package/docs/reference/type-aliases/BooleanFunc.md +1 -1
  57. package/docs/reference/type-aliases/TemplateMap.md +1 -1
  58. package/docs/reference/type-aliases/WorkerCallback.md +1 -1
  59. package/docs/reference/variables/Logger.md +1 -1
  60. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: JWTUtils
8
8
 
9
- Defined in: [src/JWTUtils.ts:145](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/JWTUtils.ts#L145)
9
+ Defined in: [src/JWTUtils.ts:145](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/JWTUtils.ts#L145)
10
10
 
11
11
  Utility class for working with Json Web Token (JWT) authentication tokens.
12
12
 
@@ -30,7 +30,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
30
30
 
31
31
  > `static` **createToken**(`config`, `user`, `data?`): `Promise`\<`string`\>
32
32
 
33
- Defined in: [src/JWTUtils.ts:170](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/JWTUtils.ts#L170)
33
+ Defined in: [src/JWTUtils.ts:172](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/JWTUtils.ts#L172)
34
34
 
35
35
  #### Parameters
36
36
 
@@ -56,7 +56,7 @@ Defined in: [src/JWTUtils.ts:170](https://github.com/rapidrest/core/blob/df82e91
56
56
 
57
57
  > `static` **createTokenSync**(`config`, `user`, `data?`): `string`
58
58
 
59
- Defined in: [src/JWTUtils.ts:216](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/JWTUtils.ts#L216)
59
+ Defined in: [src/JWTUtils.ts:218](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/JWTUtils.ts#L218)
60
60
 
61
61
  #### Parameters
62
62
 
@@ -82,7 +82,7 @@ Defined in: [src/JWTUtils.ts:216](https://github.com/rapidrest/core/blob/df82e91
82
82
 
83
83
  > `static` **decodeToken**(`config`, `token`): `Promise`\<[`JWTPayload`](../interfaces/JWTPayload.md)\>
84
84
 
85
- Defined in: [src/JWTUtils.ts:270](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/JWTUtils.ts#L270)
85
+ Defined in: [src/JWTUtils.ts:272](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/JWTUtils.ts#L272)
86
86
 
87
87
  Decodes the given JWT authentication token using the provided configuration. If the token is not valid an
88
88
  error is thrown with the reason. Returns the encoded user object payload upon success.
@@ -113,7 +113,7 @@ The data encoded in the token's payload.
113
113
 
114
114
  > `static` **decodeTokenSync**(`config`, `token`): [`JWTPayload`](../interfaces/JWTPayload.md)
115
115
 
116
- Defined in: [src/JWTUtils.ts:320](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/JWTUtils.ts#L320)
116
+ Defined in: [src/JWTUtils.ts:322](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/JWTUtils.ts#L322)
117
117
 
118
118
  Decodes the given JWT authentication token using the provided configuration. If the token is not valid an
119
119
  error is thrown with the reason. Returns the encoded user object payload upon success.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: MessagingUtils
8
8
 
9
- Defined in: [src/MessagingUtils.ts:75](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L75)
9
+ Defined in: [src/MessagingUtils.ts:75](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L75)
10
10
 
11
11
  Simple utility class for sending templated messages via e-mail, SMS and more.
12
12
 
@@ -26,7 +26,7 @@ Simple utility class for sending templated messages via e-mail, SMS and more.
26
26
 
27
27
  > `protected` **slackApps**: `any`[] = `[]`
28
28
 
29
- Defined in: [src/MessagingUtils.ts:76](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L76)
29
+ Defined in: [src/MessagingUtils.ts:76](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L76)
30
30
 
31
31
  ***
32
32
 
@@ -34,7 +34,7 @@ Defined in: [src/MessagingUtils.ts:76](https://github.com/rapidrest/core/blob/df
34
34
 
35
35
  > `protected` **slackConfigs**: `any`[] = `[]`
36
36
 
37
- Defined in: [src/MessagingUtils.ts:78](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L78)
37
+ Defined in: [src/MessagingUtils.ts:78](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L78)
38
38
 
39
39
  ## Methods
40
40
 
@@ -42,7 +42,7 @@ Defined in: [src/MessagingUtils.ts:78](https://github.com/rapidrest/core/blob/df
42
42
 
43
43
  > **init**(): `Promise`\<`void`\>
44
44
 
45
- Defined in: [src/MessagingUtils.ts:96](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L96)
45
+ Defined in: [src/MessagingUtils.ts:96](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L96)
46
46
 
47
47
  #### Returns
48
48
 
@@ -54,7 +54,7 @@ Defined in: [src/MessagingUtils.ts:96](https://github.com/rapidrest/core/blob/df
54
54
 
55
55
  > **loadTemplate**(`name`): [`Template`](../interfaces/Template.md)
56
56
 
57
- Defined in: [src/MessagingUtils.ts:160](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L160)
57
+ Defined in: [src/MessagingUtils.ts:160](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L160)
58
58
 
59
59
  Loads the template with the given name and returns its contents as a string.
60
60
 
@@ -76,7 +76,7 @@ The name of the template to load.
76
76
 
77
77
  > **sendEmail**(`templateName`, `templateVars`, `options?`): `Promise`\<`any`\>
78
78
 
79
- Defined in: [src/MessagingUtils.ts:199](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L199)
79
+ Defined in: [src/MessagingUtils.ts:199](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L199)
80
80
 
81
81
  Sends an email using the given template name and variables.
82
82
 
@@ -110,7 +110,7 @@ The map of additional options to pass into the sendMail function.
110
110
 
111
111
  > **sendSlack**(`templateName`, `templateVars`): `Promise`\<`any`[] \| `undefined`\>
112
112
 
113
- Defined in: [src/MessagingUtils.ts:243](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L243)
113
+ Defined in: [src/MessagingUtils.ts:243](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L243)
114
114
 
115
115
  Sends an Slack message using the given template name and variables.
116
116
 
@@ -138,7 +138,7 @@ The map of variables to inject into the template.
138
138
 
139
139
  > **sendSMS**(`templateName`, `templateVars`, `options?`): `Promise`\<`any`\>
140
140
 
141
- Defined in: [src/MessagingUtils.ts:276](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/MessagingUtils.ts#L276)
141
+ Defined in: [src/MessagingUtils.ts:276](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/MessagingUtils.ts#L276)
142
142
 
143
143
  Sends an SMS using the given template name and variables.
144
144
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: OASUtils
8
8
 
9
- Defined in: [src/OASUtils.ts:17](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L17)
9
+ Defined in: [src/OASUtils.ts:17](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L17)
10
10
 
11
11
  ## Constructors
12
12
 
@@ -24,7 +24,7 @@ Defined in: [src/OASUtils.ts:17](https://github.com/rapidrest/core/blob/df82e91f
24
24
 
25
25
  > `static` **clearSpecCache**(): `void`
26
26
 
27
- Defined in: [src/OASUtils.ts:230](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L230)
27
+ Defined in: [src/OASUtils.ts:230](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L230)
28
28
 
29
29
  Clears the spec parse cache. Useful in tests to force re-loading of specs.
30
30
 
@@ -38,7 +38,7 @@ Clears the spec parse cache. Useful in tests to force re-loading of specs.
38
38
 
39
39
  > `static` **getDatastore**(`spec`, `name`): `any`
40
40
 
41
- Defined in: [src/OASUtils.ts:25](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L25)
41
+ Defined in: [src/OASUtils.ts:25](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L25)
42
42
 
43
43
  Gets the datastore definition with the specified name.
44
44
 
@@ -68,7 +68,7 @@ The definition for the datastore with the given name if found, otherwise `undefi
68
68
 
69
69
  > `static` **getObject**(`spec`, `path`): `any`
70
70
 
71
- Defined in: [src/OASUtils.ts:42](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L42)
71
+ Defined in: [src/OASUtils.ts:42](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L42)
72
72
 
73
73
  Gets the specification object at the specified path.
74
74
 
@@ -98,7 +98,7 @@ The object at the specified path if found, otherwise `undefined`.
98
98
 
99
99
  > `static` **getResponse**(`obj`): `any`
100
100
 
101
- Defined in: [src/OASUtils.ts:69](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L69)
101
+ Defined in: [src/OASUtils.ts:69](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L69)
102
102
 
103
103
  Returns the first available response object for a 2XX response as defined by the provided Operation schema object.
104
104
 
@@ -120,7 +120,7 @@ The Operation schema object to search.
120
120
 
121
121
  > `static` **getResponseContent**(`obj`): `any`
122
122
 
123
- Defined in: [src/OASUtils.ts:88](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L88)
123
+ Defined in: [src/OASUtils.ts:88](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L88)
124
124
 
125
125
  Returns the first available response content object for a 2XX response as defined by the provided Operation schema object.
126
126
 
@@ -142,7 +142,7 @@ The Operation schema object to search.
142
142
 
143
143
  > `static` **getSchema**(`spec`, `name`): `any`
144
144
 
145
- Defined in: [src/OASUtils.ts:100](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L100)
145
+ Defined in: [src/OASUtils.ts:100](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L100)
146
146
 
147
147
  Retrieves the schema definition with the given name.
148
148
 
@@ -172,7 +172,7 @@ The schema definition with the given name.
172
172
 
173
173
  > `static` **getTypeInfo**(`schemaDef`, `spec`, `convertDataType`): `any`
174
174
 
175
- Defined in: [src/OASUtils.ts:124](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L124)
175
+ Defined in: [src/OASUtils.ts:124](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L124)
176
176
 
177
177
  Extracts the type information for a given schema Object definition.
178
178
 
@@ -208,7 +208,7 @@ A tuple containing the type, subType and subSchemaRef information.
208
208
 
209
209
  > `static` **loadSpec**(`file`): `Promise`\<`any`\>
210
210
 
211
- Defined in: [src/OASUtils.ts:179](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/OASUtils.ts#L179)
211
+ Defined in: [src/OASUtils.ts:179](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/OASUtils.ts#L179)
212
212
 
213
213
  Attempts to load the Open API specification at the given path or URL.
214
214
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: ObjectFactory
8
8
 
9
- Defined in: [src/ObjectFactory.ts:36](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L36)
9
+ Defined in: [src/ObjectFactory.ts:36](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L36)
10
10
 
11
11
  The `ObjectFactory` is a manager for creating objects based on registered
12
12
  class types. This allows for the tracking of multiple instances of objects
@@ -22,7 +22,7 @@ Jean-Philippe Steinmetz
22
22
 
23
23
  > **new ObjectFactory**(`config?`, `logger?`): `ObjectFactory`
24
24
 
25
- Defined in: [src/ObjectFactory.ts:55](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L55)
25
+ Defined in: [src/ObjectFactory.ts:55](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L55)
26
26
 
27
27
  #### Parameters
28
28
 
@@ -44,7 +44,7 @@ Defined in: [src/ObjectFactory.ts:55](https://github.com/rapidrest/core/blob/df8
44
44
 
45
45
  > `readonly` **classes**: `Map`\<`string`, `any`\>
46
46
 
47
- Defined in: [src/ObjectFactory.ts:38](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L38)
47
+ Defined in: [src/ObjectFactory.ts:38](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L38)
48
48
 
49
49
  A map for string fully qualified class names to their class types.
50
50
 
@@ -54,7 +54,7 @@ A map for string fully qualified class names to their class types.
54
54
 
55
55
  > `protected` **config**: `any`
56
56
 
57
- Defined in: [src/ObjectFactory.ts:41](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L41)
57
+ Defined in: [src/ObjectFactory.ts:41](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L41)
58
58
 
59
59
  The global application configuration object.
60
60
 
@@ -64,7 +64,7 @@ The global application configuration object.
64
64
 
65
65
  > `readonly` **instances**: `Map`\<`string`, `any`\>
66
66
 
67
- Defined in: [src/ObjectFactory.ts:44](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L44)
67
+ Defined in: [src/ObjectFactory.ts:44](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L44)
68
68
 
69
69
  A map for the unique name to the intance of a particular class type.
70
70
 
@@ -74,7 +74,7 @@ A map for the unique name to the intance of a particular class type.
74
74
 
75
75
  > `protected` **logger**: `any`
76
76
 
77
- Defined in: [src/ObjectFactory.ts:47](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L47)
77
+ Defined in: [src/ObjectFactory.ts:47](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L47)
78
78
 
79
79
  The application logging utility.
80
80
 
@@ -84,7 +84,7 @@ The application logging utility.
84
84
 
85
85
  > **clear**(): `void`
86
86
 
87
- Defined in: [src/ObjectFactory.ts:158](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L158)
87
+ Defined in: [src/ObjectFactory.ts:158](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L158)
88
88
 
89
89
  Deletes all instantiated objects.
90
90
 
@@ -98,7 +98,7 @@ Deletes all instantiated objects.
98
98
 
99
99
  > **clearAll**(): `void`
100
100
 
101
- Defined in: [src/ObjectFactory.ts:166](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L166)
101
+ Defined in: [src/ObjectFactory.ts:166](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L166)
102
102
 
103
103
  Deletes all instantiated objects and registered class types.
104
104
 
@@ -112,7 +112,7 @@ Deletes all instantiated objects and registered class types.
112
112
 
113
113
  > **destroy**(`objs?`): `Promise`\<`void`\>
114
114
 
115
- Defined in: [src/ObjectFactory.ts:117](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L117)
115
+ Defined in: [src/ObjectFactory.ts:117](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L117)
116
116
 
117
117
  Destroys the specified objects. If `undefined` is passed in, all objects managed by the factory are destroyed.
118
118
 
@@ -132,7 +132,7 @@ Destroys the specified objects. If `undefined` is passed in, all objects managed
132
132
 
133
133
  > **getInitMethods**(`obj`): `Function`[]
134
134
 
135
- Defined in: [src/ObjectFactory.ts:248](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L248)
135
+ Defined in: [src/ObjectFactory.ts:248](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L248)
136
136
 
137
137
  Searches an object for one or more functions that implement a `@Init` decorator.
138
138
 
@@ -156,7 +156,7 @@ The list of functions that implements the `@Init` decorator if found, otherwise
156
156
 
157
157
  > **getInstance**\<`T`\>(`nameOrType`): `T` \| `undefined`
158
158
 
159
- Defined in: [src/ObjectFactory.ts:282](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L282)
159
+ Defined in: [src/ObjectFactory.ts:282](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L282)
160
160
 
161
161
  Returns the object instance with the given unique name. Unique names take the form `<ClassName>:<InstanceName>`.
162
162
  It is possible to only specifiy the `<ClassName>`, doing so will automatically look for the `<ClassName>:default`
@@ -188,7 +188,7 @@ The object instance associated with the given name if found, otherwise `undefine
188
188
 
189
189
  > **initialize**\<`T`\>(`obj`): `T` \| `Promise`\<`T`\>
190
190
 
191
- Defined in: [src/ObjectFactory.ts:175](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L175)
191
+ Defined in: [src/ObjectFactory.ts:175](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L175)
192
192
 
193
193
  Scans the given object for any properties with the `@Inject` decorator and assigns the correct values.
194
194
 
@@ -216,7 +216,7 @@ The object to initialize with injected defaults
216
216
 
217
217
  > **newInstance**\<`T`\>(`type`, `options?`): `T` \| `Promise`\<`T`\>
218
218
 
219
- Defined in: [src/ObjectFactory.ts:323](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L323)
219
+ Defined in: [src/ObjectFactory.ts:323](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L323)
220
220
 
221
221
  Creates a new instance of the class specified with the provided unique name or type and constructor arguments. If an existing
222
222
  object has already been created with the given name, that instance is returned, otherwise a new instance is created
@@ -253,7 +253,7 @@ The options to use when instantiating the new class object.
253
253
 
254
254
  > **register**(`clazz`, `fqn?`): `void`
255
255
 
256
- Defined in: [src/ObjectFactory.ts:399](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectFactory.ts#L399)
256
+ Defined in: [src/ObjectFactory.ts:399](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectFactory.ts#L399)
257
257
 
258
258
  Registers the given class type for the provided fully qualified name.
259
259
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: ObjectUtils
8
8
 
9
- Defined in: [src/ObjectUtils.ts:12](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectUtils.ts#L12)
9
+ Defined in: [src/ObjectUtils.ts:12](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectUtils.ts#L12)
10
10
 
11
11
  Utility class for working with objects.
12
12
 
@@ -30,7 +30,7 @@ Jean-Philippe Steinmetz
30
30
 
31
31
  > `static` **validate**(`obj`, `clazz?`, `recurse?`): `void`
32
32
 
33
- Defined in: [src/ObjectUtils.ts:21](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/ObjectUtils.ts#L21)
33
+ Defined in: [src/ObjectUtils.ts:21](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/ObjectUtils.ts#L21)
34
34
 
35
35
  Performs validation of the given object or array. Validation is performed by scanning the object class for properties
36
36
  decorated with `@Validator` and executing the provided validation function.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: StringUtils
8
8
 
9
- Defined in: [src/StringUtils.ts:10](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/StringUtils.ts#L10)
9
+ Defined in: [src/StringUtils.ts:10](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/StringUtils.ts#L10)
10
10
 
11
11
  Utility functions for working with strings.
12
12
 
@@ -30,7 +30,7 @@ Jean-Philippe Steinmetz
30
30
 
31
31
  > `static` **findAndReplace**(`contents`, `variables`): `string`
32
32
 
33
- Defined in: [src/StringUtils.ts:46](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/StringUtils.ts#L46)
33
+ Defined in: [src/StringUtils.ts:46](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/StringUtils.ts#L46)
34
34
 
35
35
  Performs a search and replace on the provided contents with the map of variable replacements. The contents
36
36
  must use Mustache formatted tokens such as `{{toreplace}}`.
@@ -59,7 +59,7 @@ A map of key=>value pairs to search for and replace.
59
59
 
60
60
  > `static` **getParameters**(`str`): `string`[]
61
61
 
62
- Defined in: [src/StringUtils.ts:18](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/StringUtils.ts#L18)
62
+ Defined in: [src/StringUtils.ts:18](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/StringUtils.ts#L18)
63
63
 
64
64
  Returns a list of all parameters contained within the string. A parameter is a bracket delimited substring
65
65
  (e.g. /my/{key}/with/{id}).
@@ -84,7 +84,7 @@ A list of parameters contained in the provided string.
84
84
 
85
85
  > `static` **replaceAll**(`str`, `match`, `prefix`): `string`
86
86
 
87
- Defined in: [src/StringUtils.ts:87](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/StringUtils.ts#L87)
87
+ Defined in: [src/StringUtils.ts:87](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/StringUtils.ts#L87)
88
88
 
89
89
  Replaces all instances of the match regex pattern with the contents of the inner regular expression pattern for
90
90
  the given string.
@@ -126,7 +126,7 @@ The fully replaced contents of the string.
126
126
 
127
127
  > `static` **toCamelCase**(`str`): `string`
128
128
 
129
- Defined in: [src/StringUtils.ts:104](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/StringUtils.ts#L104)
129
+ Defined in: [src/StringUtils.ts:104](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/StringUtils.ts#L104)
130
130
 
131
131
  Converts the first character in the given string to be lowercase (e.g. myVariable).
132
132
 
@@ -150,7 +150,7 @@ The string converted to camelCase.
150
150
 
151
151
  > `static` **toPascalCase**(`str`): `string`
152
152
 
153
- Defined in: [src/StringUtils.ts:114](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/StringUtils.ts#L114)
153
+ Defined in: [src/StringUtils.ts:114](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/StringUtils.ts#L114)
154
154
 
155
155
  Converts the first character in the given string to be uppercase (e.g. MyVariable).
156
156
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: ThreadPool
8
8
 
9
- Defined in: [src/threads/ThreadPool.ts:65](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L65)
9
+ Defined in: [src/threads/ThreadPool.ts:65](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L65)
10
10
 
11
11
  The `ThreadPool` class provides an interface for managing a pool of execution threads that can be used for parallel
12
12
  code execution. `ThreadPool` is a wrapper to the `worker_threads` API to add support for multiple `Worker` instances.
@@ -42,7 +42,7 @@ Jean-Philippe Steinmetz
42
42
 
43
43
  > **new ThreadPool**(`max?`, `logger?`): `ThreadPool`
44
44
 
45
- Defined in: [src/threads/ThreadPool.ts:101](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L101)
45
+ Defined in: [src/threads/ThreadPool.ts:101](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L101)
46
46
 
47
47
  Creates a new `ThreadPool` instance with the specified defaults.
48
48
 
@@ -70,7 +70,7 @@ The Winston logger instance to forward all worker thread logs to.
70
70
 
71
71
  > `readonly` **workers**: `Worker`[]
72
72
 
73
- Defined in: [src/threads/ThreadPool.ts:77](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L77)
73
+ Defined in: [src/threads/ThreadPool.ts:77](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L77)
74
74
 
75
75
  The list of active worker threads.
76
76
 
@@ -82,7 +82,7 @@ The list of active worker threads.
82
82
 
83
83
  > **get** **max**(): `number`
84
84
 
85
- Defined in: [src/threads/ThreadPool.ts:84](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L84)
85
+ Defined in: [src/threads/ThreadPool.ts:84](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L84)
86
86
 
87
87
  The maximum number of threads that can be created by the pool.
88
88
 
@@ -98,7 +98,7 @@ The maximum number of threads that can be created by the pool.
98
98
 
99
99
  > **get** **size**(): `number`
100
100
 
101
- Defined in: [src/threads/ThreadPool.ts:91](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L91)
101
+ Defined in: [src/threads/ThreadPool.ts:91](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L91)
102
102
 
103
103
  The number of active threads in the pool.
104
104
 
@@ -112,7 +112,7 @@ The number of active threads in the pool.
112
112
 
113
113
  > **on**(`type`, `func`): `void`
114
114
 
115
- Defined in: [src/threads/ThreadPool.ts:255](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L255)
115
+ Defined in: [src/threads/ThreadPool.ts:255](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L255)
116
116
 
117
117
  Registers a new callback function to be notified when the given event type is fired.
118
118
 
@@ -140,7 +140,7 @@ The callback function to register.
140
140
 
141
141
  > **send**(`msg`): `void`
142
142
 
143
- Defined in: [src/threads/ThreadPool.ts:268](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L268)
143
+ Defined in: [src/threads/ThreadPool.ts:268](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L268)
144
144
 
145
145
  Sends the provided message to the next available worker thread. Messages are sent in a round-robin order.
146
146
 
@@ -162,7 +162,7 @@ The message to send the next available worker thread.
162
162
 
163
163
  > **sendAll**(`msg`): `void`
164
164
 
165
- Defined in: [src/threads/ThreadPool.ts:289](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L289)
165
+ Defined in: [src/threads/ThreadPool.ts:289](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L289)
166
166
 
167
167
  Sends the provided message to all worker threads in the pool.
168
168
 
@@ -184,7 +184,7 @@ The message to send to all workers.
184
184
 
185
185
  > **sendTo**(`id`, `msg`): `void`
186
186
 
187
- Defined in: [src/threads/ThreadPool.ts:300](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L300)
187
+ Defined in: [src/threads/ThreadPool.ts:300](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L300)
188
188
 
189
189
  Sends the provided message to the worker thread with the specified id.
190
190
 
@@ -212,7 +212,7 @@ The message to send the next available worker thread.
212
212
 
213
213
  > **start**(`options?`, `num?`): `Promise`\<`void`\>
214
214
 
215
- Defined in: [src/threads/ThreadPool.ts:181](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L181)
215
+ Defined in: [src/threads/ThreadPool.ts:181](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L181)
216
216
 
217
217
  Initializes the thread pool with the initial worker threads and begins execution.
218
218
 
@@ -240,7 +240,7 @@ The number of initial threads to create, cannot be greater than max. Default is
240
240
 
241
241
  > **stop**(): `Promise`\<`void`\>
242
242
 
243
- Defined in: [src/threads/ThreadPool.ts:228](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadPool.ts#L228)
243
+ Defined in: [src/threads/ThreadPool.ts:228](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadPool.ts#L228)
244
244
 
245
245
  Stops all running thread executions.
246
246
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Abstract Class: ThreadWorker
8
8
 
9
- Defined in: [src/threads/ThreadWorker.ts:29](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L29)
9
+ Defined in: [src/threads/ThreadWorker.ts:29](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L29)
10
10
 
11
11
  Provides a simple abstract interface for creating thread workers when using the `ThreadPool` system.
12
12
 
@@ -20,7 +20,7 @@ Jean-Philippe Steinmetz
20
20
 
21
21
  > **new ThreadWorker**(`logger`): `ThreadWorker`
22
22
 
23
- Defined in: [src/threads/ThreadWorker.ts:32](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L32)
23
+ Defined in: [src/threads/ThreadWorker.ts:32](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L32)
24
24
 
25
25
  #### Parameters
26
26
 
@@ -38,7 +38,7 @@ Defined in: [src/threads/ThreadWorker.ts:32](https://github.com/rapidrest/core/b
38
38
 
39
39
  > `protected` **logger**: `any`
40
40
 
41
- Defined in: [src/threads/ThreadWorker.ts:30](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L30)
41
+ Defined in: [src/threads/ThreadWorker.ts:30](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L30)
42
42
 
43
43
  ## Methods
44
44
 
@@ -46,7 +46,7 @@ Defined in: [src/threads/ThreadWorker.ts:30](https://github.com/rapidrest/core/b
46
46
 
47
47
  > `abstract` **onMessage**(`msg`): `void` \| `Promise`\<`void`\>
48
48
 
49
- Defined in: [src/threads/ThreadWorker.ts:41](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L41)
49
+ Defined in: [src/threads/ThreadWorker.ts:41](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L41)
50
50
 
51
51
  Callback function when a message is received from the thread pool manager.
52
52
 
@@ -68,7 +68,7 @@ The message that was received.
68
68
 
69
69
  > `abstract` **start**(): `void` \| `Promise`\<`void`\>
70
70
 
71
- Defined in: [src/threads/ThreadWorker.ts:46](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L46)
71
+ Defined in: [src/threads/ThreadWorker.ts:46](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L46)
72
72
 
73
73
  Starts execution of the thread worker.
74
74
 
@@ -82,7 +82,7 @@ Starts execution of the thread worker.
82
82
 
83
83
  > `abstract` **stop**(): `void` \| `Promise`\<`void`\>
84
84
 
85
- Defined in: [src/threads/ThreadWorker.ts:51](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/threads/ThreadWorker.ts#L51)
85
+ Defined in: [src/threads/ThreadWorker.ts:51](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/threads/ThreadWorker.ts#L51)
86
86
 
87
87
  Stops execution of all work and shuts down the thread worker.
88
88
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: UserUtils
8
8
 
9
- Defined in: [src/UserUtils.ts:16](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/UserUtils.ts#L16)
9
+ Defined in: [src/UserUtils.ts:16](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/UserUtils.ts#L16)
10
10
 
11
11
  Utilities for working with authenticated user objects. An user object is expected to have the following
12
12
  properties.
@@ -36,7 +36,7 @@ Jean-Philippe Steinmetz <rapidrests@gmail.com>
36
36
 
37
37
  > `static` **getExternalId**(`user`, `type`): `string` \| `undefined`
38
38
 
39
- Defined in: [src/UserUtils.ts:60](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/UserUtils.ts#L60)
39
+ Defined in: [src/UserUtils.ts:60](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/UserUtils.ts#L60)
40
40
 
41
41
  Returns the unique identifier of the specified type associated with the given user.
42
42
 
@@ -66,7 +66,7 @@ The unique id of the external provider for the given type if found, otherwise `u
66
66
 
67
67
  > `static` **hasOrganization**(`user`, `organizationUid`): `boolean`
68
68
 
69
- Defined in: [src/UserUtils.ts:22](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/UserUtils.ts#L22)
69
+ Defined in: [src/UserUtils.ts:22](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/UserUtils.ts#L22)
70
70
 
71
71
  Returns `true` if the given user object is a member of the organization with the specified uid, otherwise returns `false`.
72
72
 
@@ -94,7 +94,7 @@ The universally unique identifier of the persona to search for.
94
94
 
95
95
  > `static` **hasOrganizations**(`user`, `organizationUids?`): `boolean`
96
96
 
97
- Defined in: [src/UserUtils.ts:39](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/UserUtils.ts#L39)
97
+ Defined in: [src/UserUtils.ts:39](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/UserUtils.ts#L39)
98
98
 
99
99
  Returns `true` if the given user object contains is a member of an organization matching one of the uids in the specified list, otherwise returns `false`.
100
100
 
@@ -122,7 +122,7 @@ The list of universally unique identifiers to search for.
122
122
 
123
123
  > `static` **hasRole**(`user`, `role?`, `orgUid?`): `boolean`
124
124
 
125
- Defined in: [src/UserUtils.ts:82](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/UserUtils.ts#L82)
125
+ Defined in: [src/UserUtils.ts:82](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/UserUtils.ts#L82)
126
126
 
127
127
  Returns `true` if the given user object has a role with the specified name, otherwise returns `false`.
128
128
 
@@ -156,7 +156,7 @@ The unique identifier of an organization whose role will be verified.
156
156
 
157
157
  > `static` **hasRoles**(`user`, `roles?`, `orgUid?`): `boolean`
158
158
 
159
- Defined in: [src/UserUtils.ts:107](https://github.com/rapidrest/core/blob/df82e91f4c858ef61526c7f35789a4199b84d999/src/UserUtils.ts#L107)
159
+ Defined in: [src/UserUtils.ts:107](https://github.com/rapidrest/core/blob/a4c031c9927a28230ae2f4bc0d881f4d5a54cdeb/src/UserUtils.ts#L107)
160
160
 
161
161
  Returns `true` if the given user object has at least one role from the specified list of names, otherwise returns `false`.
162
162