@redhat-cloud-services/notifications-client 2.3.2 → 2.4.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 (225) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/DrawerResourceV1GetDrawerEntries/index.d.ts +1 -1
  4. package/dist/DrawerResourceV1GetDrawerEntries/index.d.ts.map +1 -1
  5. package/dist/DrawerResourceV1GetDrawerEntries/index.js +1 -1
  6. package/dist/DrawerResourceV1GetDrawerEntries/index.js.map +1 -1
  7. package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.d.ts +1 -1
  8. package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.d.ts.map +1 -1
  9. package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.js +1 -1
  10. package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.js.map +1 -1
  11. package/dist/EventResourceV1GetEvents/index.d.ts +2 -2
  12. package/dist/EventResourceV1GetEvents/index.d.ts.map +1 -1
  13. package/dist/EventResourceV1GetEvents/index.js +2 -2
  14. package/dist/EventResourceV1GetEvents/index.js.map +1 -1
  15. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts +1 -1
  16. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts.map +1 -1
  17. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.js +1 -1
  18. package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.js.map +1 -1
  19. package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts +1 -1
  20. package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts.map +1 -1
  21. package/dist/NotificationResourceV1CreateBehaviorGroup/index.js +1 -1
  22. package/dist/NotificationResourceV1CreateBehaviorGroup/index.js.map +1 -1
  23. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts +1 -1
  24. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts.map +1 -1
  25. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.js +1 -1
  26. package/dist/NotificationResourceV1DeleteBehaviorGroup/index.js.map +1 -1
  27. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts +1 -1
  28. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts.map +1 -1
  29. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.js +1 -1
  30. package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.js.map +1 -1
  31. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts +1 -1
  32. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts.map +1 -1
  33. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.js +1 -1
  34. package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.js.map +1 -1
  35. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts +2 -2
  36. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts.map +1 -1
  37. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.js +2 -2
  38. package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.js.map +1 -1
  39. package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts +2 -2
  40. package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts.map +1 -1
  41. package/dist/NotificationResourceV1GetApplicationsFacets/index.js +2 -2
  42. package/dist/NotificationResourceV1GetApplicationsFacets/index.js.map +1 -1
  43. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +1 -1
  44. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts.map +1 -1
  45. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js +1 -1
  46. package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js.map +1 -1
  47. package/dist/NotificationResourceV1GetBundleByName/index.d.ts +1 -1
  48. package/dist/NotificationResourceV1GetBundleByName/index.d.ts.map +1 -1
  49. package/dist/NotificationResourceV1GetBundleByName/index.js +1 -1
  50. package/dist/NotificationResourceV1GetBundleByName/index.js.map +1 -1
  51. package/dist/NotificationResourceV1GetBundleFacets/index.d.ts +2 -2
  52. package/dist/NotificationResourceV1GetBundleFacets/index.d.ts.map +1 -1
  53. package/dist/NotificationResourceV1GetBundleFacets/index.js +2 -2
  54. package/dist/NotificationResourceV1GetBundleFacets/index.js.map +1 -1
  55. package/dist/NotificationResourceV1GetEventTypes/index.d.ts +2 -2
  56. package/dist/NotificationResourceV1GetEventTypes/index.d.ts.map +1 -1
  57. package/dist/NotificationResourceV1GetEventTypes/index.js +2 -2
  58. package/dist/NotificationResourceV1GetEventTypes/index.js.map +1 -1
  59. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +1 -1
  60. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts.map +1 -1
  61. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js +1 -1
  62. package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js.map +1 -1
  63. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +2 -2
  64. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts.map +1 -1
  65. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.js +2 -2
  66. package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.js.map +1 -1
  67. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts +1 -1
  68. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts.map +1 -1
  69. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.js +1 -1
  70. package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.js.map +1 -1
  71. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts +2 -2
  72. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts.map +1 -1
  73. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.js +1 -1
  74. package/dist/NotificationResourceV1UpdateBehaviorGroup/index.js.map +1 -1
  75. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts +2 -2
  76. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts.map +1 -1
  77. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.js +2 -2
  78. package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.js.map +1 -1
  79. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts +1 -1
  80. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts.map +1 -1
  81. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.js +1 -1
  82. package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.js.map +1 -1
  83. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts +1 -1
  84. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts.map +1 -1
  85. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.js +1 -1
  86. package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.js.map +1 -1
  87. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts +1 -1
  88. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts.map +1 -1
  89. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.js +1 -1
  90. package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.js.map +1 -1
  91. package/dist/api.d.ts +76 -70
  92. package/dist/api.d.ts.map +1 -1
  93. package/dist/api.js +34 -34
  94. package/dist/api.js.map +1 -1
  95. package/dist/base.d.ts +2 -2
  96. package/dist/base.js +1 -1
  97. package/dist/common.d.ts +1 -1
  98. package/dist/common.js +1 -1
  99. package/dist/configuration.d.ts +1 -1
  100. package/dist/index.d.ts +0 -3
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +0 -3
  103. package/dist/index.js.map +1 -1
  104. package/dist/types/index.d.ts +43 -37
  105. package/dist/types/index.d.ts.map +1 -1
  106. package/dist/types/index.js.map +1 -1
  107. package/doc/README.md +28 -56
  108. package/doc/classes/index.BaseAPI.md +73 -0
  109. package/doc/classes/{RequiredError.md → index.RequiredError.md} +15 -13
  110. package/doc/enums/{EndpointStatus.md → types.EndpointStatus.md} +9 -7
  111. package/doc/enums/{EndpointType.md → types.EndpointType.md} +8 -6
  112. package/doc/enums/{Environment.md → types.Environment.md} +7 -5
  113. package/doc/enums/{EventLogEntryActionStatus.md → types.EventLogEntryActionStatus.md} +8 -6
  114. package/doc/enums/types.HttpType.md +45 -0
  115. package/doc/enums/types.NotificationStatus.md +67 -0
  116. package/doc/enums/types.Status.md +34 -0
  117. package/doc/enums/types.SubscriptionType.md +45 -0
  118. package/doc/interfaces/index.RequestArgs.md +36 -0
  119. package/doc/interfaces/{AddAccessRequest.md → types.AddAccessRequest.md} +5 -3
  120. package/doc/interfaces/{AddApplicationRequest.md → types.AddApplicationRequest.md} +7 -5
  121. package/doc/interfaces/{AggregationEmailTemplate.md → types.AggregationEmailTemplate.md} +17 -15
  122. package/doc/interfaces/{AggregationEmailTemplateSubjectTemplate.md → types.AggregationEmailTemplateSubjectTemplate.md} +9 -7
  123. package/doc/interfaces/{Application.md → types.Application.md} +9 -7
  124. package/doc/interfaces/{Application1.md → types.Application1.md} +5 -3
  125. package/doc/interfaces/{ApplicationDTO.md → types.ApplicationDTO.md} +9 -7
  126. package/doc/interfaces/{ApplicationSettingsValue.md → types.ApplicationSettingsValue.md} +5 -3
  127. package/doc/interfaces/{BasicAuthentication.md → types.BasicAuthentication.md} +5 -3
  128. package/doc/interfaces/{BehaviorGroup.md → types.BehaviorGroup.md} +15 -13
  129. package/doc/interfaces/{BehaviorGroupAction.md → types.BehaviorGroupAction.md} +8 -6
  130. package/doc/interfaces/{BehaviorGroupActionId.md → types.BehaviorGroupActionId.md} +5 -3
  131. package/doc/interfaces/{Bundle.md → types.Bundle.md} +8 -6
  132. package/doc/interfaces/{BundleSettingsValue.md → types.BundleSettingsValue.md} +5 -3
  133. package/doc/interfaces/{CamelProperties.md → types.CamelProperties.md} +19 -17
  134. package/doc/interfaces/{CreateBehaviorGroupRequest.md → types.CreateBehaviorGroupRequest.md} +9 -7
  135. package/doc/interfaces/{CreateBehaviorGroupResponse.md → types.CreateBehaviorGroupResponse.md} +9 -7
  136. package/doc/interfaces/{CurrentStatus.md → types.CurrentStatus.md} +11 -9
  137. package/doc/interfaces/{DrawerEntryPayload.md → types.DrawerEntryPayload.md} +10 -8
  138. package/doc/interfaces/{DuplicateNameMigrationReport.md → types.DuplicateNameMigrationReport.md} +5 -3
  139. package/doc/interfaces/{Endpoint.md → types.Endpoint.md} +16 -14
  140. package/doc/interfaces/{EndpointPage.md → types.EndpointPage.md} +8 -6
  141. package/doc/interfaces/{EndpointTestRequest.md → types.EndpointTestRequest.md} +4 -2
  142. package/doc/interfaces/{EventLogEntry.md → types.EventLogEntry.md} +11 -9
  143. package/doc/interfaces/{EventLogEntryAction.md → types.EventLogEntryAction.md} +12 -10
  144. package/doc/interfaces/{EventType.md → types.EventType.md} +32 -15
  145. package/doc/interfaces/{EventTypeBehavior.md → types.EventTypeBehavior.md} +11 -9
  146. package/doc/interfaces/{EventTypeBehaviorId.md → types.EventTypeBehaviorId.md} +7 -5
  147. package/doc/interfaces/{EventTypeSettingsValue.md → types.EventTypeSettingsValue.md} +9 -7
  148. package/doc/interfaces/{Facet.md → types.Facet.md} +12 -10
  149. package/doc/interfaces/{InstantEmailTemplate.md → types.InstantEmailTemplate.md} +24 -22
  150. package/doc/interfaces/{InternalApplicationUserPermission.md → types.InternalApplicationUserPermission.md} +9 -7
  151. package/doc/interfaces/{InternalRoleAccess.md → types.InternalRoleAccess.md} +13 -11
  152. package/doc/interfaces/{InternalUserPermissions.md → types.InternalUserPermissions.md} +14 -12
  153. package/doc/interfaces/{MessageValidationResponse.md → types.MessageValidationResponse.md} +5 -3
  154. package/doc/interfaces/types.Meta.md +29 -0
  155. package/doc/interfaces/{NotificationHistory.md → types.NotificationHistory.md} +23 -21
  156. package/doc/interfaces/{PageBehaviorGroup.md → types.PageBehaviorGroup.md} +11 -9
  157. package/doc/interfaces/{PageDrawerEntryPayload.md → types.PageDrawerEntryPayload.md} +11 -9
  158. package/doc/interfaces/{PageEventLogEntry.md → types.PageEventLogEntry.md} +11 -9
  159. package/doc/interfaces/{PageEventType.md → types.PageEventType.md} +11 -9
  160. package/doc/interfaces/{PageNotificationHistory.md → types.PageNotificationHistory.md} +11 -9
  161. package/doc/interfaces/{RenderEmailTemplateRequest.md → types.RenderEmailTemplateRequest.md} +7 -5
  162. package/doc/interfaces/{RequestDefaultBehaviorGroupPropertyList.md → types.RequestDefaultBehaviorGroupPropertyList.md} +7 -5
  163. package/doc/interfaces/types.RequestSystemSubscriptionProperties.md +44 -0
  164. package/doc/interfaces/types.ServerInfo.md +29 -0
  165. package/doc/interfaces/types.SettingsValuesByEventType.md +33 -0
  166. package/doc/interfaces/{SystemSubscriptionProperties.md → types.SystemSubscriptionProperties.md} +13 -11
  167. package/doc/interfaces/{Template.md → types.Template.md} +15 -13
  168. package/doc/interfaces/{TriggerDailyDigestRequest.md → types.TriggerDailyDigestRequest.md} +13 -11
  169. package/doc/interfaces/{UpdateApplicationRequest.md → types.UpdateApplicationRequest.md} +9 -7
  170. package/doc/interfaces/{UpdateBehaviorGroupRequest.md → types.UpdateBehaviorGroupRequest.md} +11 -9
  171. package/doc/interfaces/types.UpdateNotificationDrawerStatus.md +44 -0
  172. package/doc/interfaces/{WebhookProperties.md → types.WebhookProperties.md} +24 -22
  173. package/doc/interfaces/{X509Certificate.md → types.X509Certificate.md} +13 -11
  174. package/doc/modules/DrawerResourceV1GetDrawerEntries.md +78 -0
  175. package/doc/modules/DrawerResourceV1UpdateNotificationReadStatus.md +68 -0
  176. package/doc/modules/EventResourceV1GetEvents.md +83 -0
  177. package/doc/modules/NotificationResourceV1AppendBehaviorGroupToEventType.md +67 -0
  178. package/doc/modules/NotificationResourceV1CreateBehaviorGroup.md +68 -0
  179. package/doc/modules/NotificationResourceV1DeleteBehaviorGroup.md +68 -0
  180. package/doc/modules/NotificationResourceV1DeleteBehaviorGroupFromEventType.md +69 -0
  181. package/doc/modules/NotificationResourceV1FindBehaviorGroupsByBundleId.md +68 -0
  182. package/doc/modules/NotificationResourceV1GetApplicationByNameAndBundleName.md +69 -0
  183. package/doc/modules/NotificationResourceV1GetApplicationsFacets.md +68 -0
  184. package/doc/modules/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint.md +68 -0
  185. package/doc/modules/NotificationResourceV1GetBundleByName.md +68 -0
  186. package/doc/modules/NotificationResourceV1GetBundleFacets.md +68 -0
  187. package/doc/modules/NotificationResourceV1GetEventTypes.md +75 -0
  188. package/doc/modules/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup.md +68 -0
  189. package/doc/modules/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName.md +70 -0
  190. package/doc/modules/NotificationResourceV1GetLinkedBehaviorGroups.md +73 -0
  191. package/doc/modules/NotificationResourceV1UpdateBehaviorGroup.md +69 -0
  192. package/doc/modules/NotificationResourceV1UpdateBehaviorGroupActions.md +69 -0
  193. package/doc/modules/NotificationResourceV1UpdateEventTypeBehaviors.md +69 -0
  194. package/doc/modules/OrgConfigResourceV1GetDailyDigestTimePreference.md +67 -0
  195. package/doc/modules/OrgConfigResourceV1SaveDailyDigestTimePreference.md +68 -0
  196. package/doc/modules/index.md +648 -0
  197. package/doc/modules/types.md +74 -0
  198. package/doc/modules.md +28 -1108
  199. package/package.json +3 -2
  200. package/dist/utils/base.d.ts +0 -85
  201. package/dist/utils/base.d.ts.map +0 -1
  202. package/dist/utils/base.js +0 -191
  203. package/dist/utils/base.js.map +0 -1
  204. package/dist/utils/common.d.ts +0 -55
  205. package/dist/utils/common.d.ts.map +0 -1
  206. package/dist/utils/common.js +0 -196
  207. package/dist/utils/common.js.map +0 -1
  208. package/dist/utils/configuration.d.ts +0 -73
  209. package/dist/utils/configuration.d.ts.map +0 -1
  210. package/dist/utils/configuration.js +0 -34
  211. package/dist/utils/configuration.js.map +0 -1
  212. package/doc/classes/BaseAPI.md +0 -133
  213. package/doc/classes/Configuration.md +0 -202
  214. package/doc/enums/HttpType.md +0 -43
  215. package/doc/enums/NotificationStatus.md +0 -65
  216. package/doc/enums/Status.md +0 -32
  217. package/doc/enums/SubscriptionType.md +0 -43
  218. package/doc/interfaces/ApiConfig.md +0 -30
  219. package/doc/interfaces/ConfigurationParameters.md +0 -93
  220. package/doc/interfaces/Meta.md +0 -27
  221. package/doc/interfaces/RequestArgs.md +0 -56
  222. package/doc/interfaces/RequestSystemSubscriptionProperties.md +0 -42
  223. package/doc/interfaces/ServerInfo.md +0 -27
  224. package/doc/interfaces/SettingsValuesByEventType.md +0 -31
  225. package/doc/interfaces/UpdateNotificationDrawerStatus.md +0 -42
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Configuration = void 0;
6
- var Configuration = /** @class */ (function () {
7
- function Configuration(param) {
8
- if (param === void 0) { param = {}; }
9
- this.apiKey = param.apiKey;
10
- this.username = param.username;
11
- this.password = param.password;
12
- this.accessToken = param.accessToken;
13
- this.basePath = param.basePath;
14
- this.baseOptions = param.baseOptions;
15
- this.formDataCtor = param.formDataCtor;
16
- }
17
- /**
18
- * Check if the given MIME is a JSON MIME.
19
- * JSON MIME examples:
20
- * application/json
21
- * application/json; charset=UTF8
22
- * APPLICATION/JSON
23
- * application/vnd.company+json
24
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
25
- * @return True if the given MIME is JSON, false otherwise.
26
- */
27
- Configuration.prototype.isJsonMime = function (mime) {
28
- var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
29
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
30
- };
31
- return Configuration;
32
- }());
33
- exports.Configuration = Configuration;
34
- //# sourceMappingURL=configuration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../utils/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;;;AAYpB;IAmDI,uBAAY,KAAmC;QAAnC,sBAAA,EAAA,UAAmC;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,kCAAU,GAAjB,UAAkB,IAAY;QAC1B,IAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;IACL,oBAAC;AAAD,CAAC,AA3ED,IA2EC;AA3EY,sCAAa"}
@@ -1,133 +0,0 @@
1
- [@redhat-cloud-services/notifications-client](../README.md) / [Exports](../modules.md) / BaseAPI
2
-
3
- # Class: BaseAPI
4
-
5
- Base API to store config, basepath and axios instance.
6
-
7
- **`Export`**
8
-
9
- BaseAPI
10
-
11
- ## Table of contents
12
-
13
- ### Constructors
14
-
15
- - [constructor](BaseAPI.md#constructor)
16
-
17
- ### Properties
18
-
19
- - [axios](BaseAPI.md#axios)
20
- - [basePath](BaseAPI.md#basepath)
21
- - [configuration](BaseAPI.md#configuration)
22
-
23
- ### Methods
24
-
25
- - [authConfig](BaseAPI.md#authconfig)
26
- - [sendRequest](BaseAPI.md#sendrequest)
27
-
28
- ## Constructors
29
-
30
- ### constructor
31
-
32
- • **new BaseAPI**(`basePath?`, `config?`): [`BaseAPI`](BaseAPI.md)
33
-
34
- Constructor to create baseAPI.
35
-
36
- #### Parameters
37
-
38
- | Name | Type | Default value | Description |
39
- | :------ | :------ | :------ | :------ |
40
- | `basePath` | `string` | `BASE_PATH` | basePath of api requests. |
41
- | `config` | [`ApiConfig`](../interfaces/ApiConfig.md) | `undefined` | to be passed down to axios. |
42
-
43
- #### Returns
44
-
45
- [`BaseAPI`](BaseAPI.md)
46
-
47
- #### Defined in
48
-
49
- [packages/notifications/utils/base.ts:70](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/base.ts#L70)
50
-
51
- ## Properties
52
-
53
- ### axios
54
-
55
- • `Protected` **axios**: `AxiosInstance`
56
-
57
- #### Defined in
58
-
59
- [packages/notifications/utils/base.ts:64](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/base.ts#L64)
60
-
61
- ___
62
-
63
- ### basePath
64
-
65
- • `Protected` **basePath**: `string` = `BASE_PATH`
66
-
67
- basePath of api requests.
68
-
69
- #### Defined in
70
-
71
- [packages/notifications/utils/base.ts:70](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/base.ts#L70)
72
-
73
- ___
74
-
75
- ### configuration
76
-
77
- • `Protected` **configuration**: `undefined` \| [`Configuration`](Configuration.md)
78
-
79
- #### Defined in
80
-
81
- [packages/notifications/utils/base.ts:63](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/base.ts#L63)
82
-
83
- ## Methods
84
-
85
- ### authConfig
86
-
87
- ▸ **authConfig**(`«destructured»`): `Promise`\<`void`\>
88
-
89
- #### Parameters
90
-
91
- | Name | Type |
92
- | :------ | :------ |
93
- | `«destructured»` | `Omit`\<[`RequestArgs`](../interfaces/RequestArgs.md), ``"authType"`` \| ``"authKey"``\> & \{ `authKey?`: `string` \| [`string`, `string`[]] ; `authType`: [`AuthTypeEnum`](../modules.md#authtypeenum) } |
94
-
95
- #### Returns
96
-
97
- `Promise`\<`void`\>
98
-
99
- #### Defined in
100
-
101
- [packages/notifications/utils/base.ts:83](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/base.ts#L83)
102
-
103
- ___
104
-
105
- ### sendRequest
106
-
107
- ▸ **sendRequest**\<`T`\>(`request`, `axios?`, `basePath?`): `Promise`\<`AxiosResponse`\<`T`, `any`\>\>
108
-
109
- Send axios request
110
-
111
- #### Type parameters
112
-
113
- | Name |
114
- | :------ |
115
- | `T` |
116
-
117
- #### Parameters
118
-
119
- | Name | Type | Description |
120
- | :------ | :------ | :------ |
121
- | `request` | `Promise`\<[`RequestArgs`](../interfaces/RequestArgs.md)\> | to be send trough axios. |
122
- | `axios?` | `AxiosInstance` | optional axios instance. |
123
- | `basePath?` | `string` | - |
124
-
125
- #### Returns
126
-
127
- `Promise`\<`AxiosResponse`\<`T`, `any`\>\>
128
-
129
- promisable axios response.
130
-
131
- #### Defined in
132
-
133
- [packages/notifications/utils/base.ts:111](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/base.ts#L111)
@@ -1,202 +0,0 @@
1
- [@redhat-cloud-services/notifications-client](../README.md) / [Exports](../modules.md) / Configuration
2
-
3
- # Class: Configuration
4
-
5
- ## Table of contents
6
-
7
- ### Constructors
8
-
9
- - [constructor](Configuration.md#constructor)
10
-
11
- ### Properties
12
-
13
- - [accessToken](Configuration.md#accesstoken)
14
- - [apiKey](Configuration.md#apikey)
15
- - [baseOptions](Configuration.md#baseoptions)
16
- - [basePath](Configuration.md#basepath)
17
- - [formDataCtor](Configuration.md#formdatactor)
18
- - [password](Configuration.md#password)
19
- - [username](Configuration.md#username)
20
-
21
- ### Methods
22
-
23
- - [isJsonMime](Configuration.md#isjsonmime)
24
-
25
- ## Constructors
26
-
27
- ### constructor
28
-
29
- • **new Configuration**(`param?`): [`Configuration`](Configuration.md)
30
-
31
- #### Parameters
32
-
33
- | Name | Type |
34
- | :------ | :------ |
35
- | `param` | [`ConfigurationParameters`](../interfaces/ConfigurationParameters.md) |
36
-
37
- #### Returns
38
-
39
- [`Configuration`](Configuration.md)
40
-
41
- #### Defined in
42
-
43
- [packages/notifications/utils/configuration.ts:65](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L65)
44
-
45
- ## Properties
46
-
47
- ### accessToken
48
-
49
- • `Optional` **accessToken**: `string` \| `Promise`\<`string`\> \| (`name?`: `string`, `scopes?`: `string`[]) => `string` \| (`name?`: `string`, `scopes?`: `string`[]) => `Promise`\<`string`\>
50
-
51
- parameter for oauth2 security
52
-
53
- **`Param`**
54
-
55
- security name
56
-
57
- **`Param`**
58
-
59
- oauth2 scope
60
-
61
- **`Memberof`**
62
-
63
- Configuration
64
-
65
- #### Defined in
66
-
67
- [packages/notifications/utils/configuration.ts:41](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L41)
68
-
69
- ___
70
-
71
- ### apiKey
72
-
73
- • `Optional` **apiKey**: `string` \| `Promise`\<`string`\> \| (`name`: `string`) => `string` \| (`name`: `string`) => `Promise`\<`string`\>
74
-
75
- parameter for apiKey security
76
-
77
- **`Param`**
78
-
79
- security name
80
-
81
- **`Memberof`**
82
-
83
- Configuration
84
-
85
- #### Defined in
86
-
87
- [packages/notifications/utils/configuration.ts:20](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L20)
88
-
89
- ___
90
-
91
- ### baseOptions
92
-
93
- • `Optional` **baseOptions**: `any`
94
-
95
- base options for axios calls
96
-
97
- **`Memberof`**
98
-
99
- Configuration
100
-
101
- #### Defined in
102
-
103
- [packages/notifications/utils/configuration.ts:55](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L55)
104
-
105
- ___
106
-
107
- ### basePath
108
-
109
- • `Optional` **basePath**: `string`
110
-
111
- override base path
112
-
113
- **`Memberof`**
114
-
115
- Configuration
116
-
117
- #### Defined in
118
-
119
- [packages/notifications/utils/configuration.ts:48](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L48)
120
-
121
- ___
122
-
123
- ### formDataCtor
124
-
125
- • `Optional` **formDataCtor**: () => `any`
126
-
127
- The FormData constructor that will be used to create multipart form data
128
- requests. You can inject this here so that execution environments that
129
- do not support the FormData class can still run the generated client.
130
-
131
- #### Type declaration
132
-
133
- • **new formDataCtor**(): `any`
134
-
135
- ##### Returns
136
-
137
- `any`
138
-
139
- #### Defined in
140
-
141
- [packages/notifications/utils/configuration.ts:63](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L63)
142
-
143
- ___
144
-
145
- ### password
146
-
147
- • `Optional` **password**: `string`
148
-
149
- parameter for basic security
150
-
151
- **`Memberof`**
152
-
153
- Configuration
154
-
155
- #### Defined in
156
-
157
- [packages/notifications/utils/configuration.ts:34](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L34)
158
-
159
- ___
160
-
161
- ### username
162
-
163
- • `Optional` **username**: `string`
164
-
165
- parameter for basic security
166
-
167
- **`Memberof`**
168
-
169
- Configuration
170
-
171
- #### Defined in
172
-
173
- [packages/notifications/utils/configuration.ts:27](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L27)
174
-
175
- ## Methods
176
-
177
- ### isJsonMime
178
-
179
- ▸ **isJsonMime**(`mime`): `boolean`
180
-
181
- Check if the given MIME is a JSON MIME.
182
- JSON MIME examples:
183
- application/json
184
- application/json; charset=UTF8
185
- APPLICATION/JSON
186
- application/vnd.company+json
187
-
188
- #### Parameters
189
-
190
- | Name | Type | Description |
191
- | :------ | :------ | :------ |
192
- | `mime` | `string` | MIME (Multipurpose Internet Mail Extensions) |
193
-
194
- #### Returns
195
-
196
- `boolean`
197
-
198
- True if the given MIME is JSON, false otherwise.
199
-
200
- #### Defined in
201
-
202
- [packages/notifications/utils/configuration.ts:85](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L85)
@@ -1,43 +0,0 @@
1
- [@redhat-cloud-services/notifications-client](../README.md) / [Exports](../modules.md) / HttpType
2
-
3
- # Enumeration: HttpType
4
-
5
- **`Export`**
6
-
7
- ## Table of contents
8
-
9
- ### Enumeration Members
10
-
11
- - [Get](HttpType.md#get)
12
- - [Post](HttpType.md#post)
13
- - [Put](HttpType.md#put)
14
-
15
- ## Enumeration Members
16
-
17
- ### Get
18
-
19
- • **Get** = ``"GET"``
20
-
21
- #### Defined in
22
-
23
- [packages/notifications/types/index.ts:1141](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1141)
24
-
25
- ___
26
-
27
- ### Post
28
-
29
- • **Post** = ``"POST"``
30
-
31
- #### Defined in
32
-
33
- [packages/notifications/types/index.ts:1142](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1142)
34
-
35
- ___
36
-
37
- ### Put
38
-
39
- • **Put** = ``"PUT"``
40
-
41
- #### Defined in
42
-
43
- [packages/notifications/types/index.ts:1143](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1143)
@@ -1,65 +0,0 @@
1
- [@redhat-cloud-services/notifications-client](../README.md) / [Exports](../modules.md) / NotificationStatus
2
-
3
- # Enumeration: NotificationStatus
4
-
5
- **`Export`**
6
-
7
- ## Table of contents
8
-
9
- ### Enumeration Members
10
-
11
- - [FailedExternal](NotificationStatus.md#failedexternal)
12
- - [FailedInternal](NotificationStatus.md#failedinternal)
13
- - [Processing](NotificationStatus.md#processing)
14
- - [Sent](NotificationStatus.md#sent)
15
- - [Success](NotificationStatus.md#success)
16
-
17
- ## Enumeration Members
18
-
19
- ### FailedExternal
20
-
21
- • **FailedExternal** = ``"FAILED_EXTERNAL"``
22
-
23
- #### Defined in
24
-
25
- [packages/notifications/types/index.ts:1383](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1383)
26
-
27
- ___
28
-
29
- ### FailedInternal
30
-
31
- • **FailedInternal** = ``"FAILED_INTERNAL"``
32
-
33
- #### Defined in
34
-
35
- [packages/notifications/types/index.ts:1382](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1382)
36
-
37
- ___
38
-
39
- ### Processing
40
-
41
- • **Processing** = ``"PROCESSING"``
42
-
43
- #### Defined in
44
-
45
- [packages/notifications/types/index.ts:1384](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1384)
46
-
47
- ___
48
-
49
- ### Sent
50
-
51
- • **Sent** = ``"SENT"``
52
-
53
- #### Defined in
54
-
55
- [packages/notifications/types/index.ts:1385](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1385)
56
-
57
- ___
58
-
59
- ### Success
60
-
61
- • **Success** = ``"SUCCESS"``
62
-
63
- #### Defined in
64
-
65
- [packages/notifications/types/index.ts:1386](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1386)
@@ -1,32 +0,0 @@
1
- [@redhat-cloud-services/notifications-client](../README.md) / [Exports](../modules.md) / Status
2
-
3
- # Enumeration: Status
4
-
5
- **`Export`**
6
-
7
- ## Table of contents
8
-
9
- ### Enumeration Members
10
-
11
- - [Maintenance](Status.md#maintenance)
12
- - [Up](Status.md#up)
13
-
14
- ## Enumeration Members
15
-
16
- ### Maintenance
17
-
18
- • **Maintenance** = ``"MAINTENANCE"``
19
-
20
- #### Defined in
21
-
22
- [packages/notifications/types/index.ts:1610](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1610)
23
-
24
- ___
25
-
26
- ### Up
27
-
28
- • **Up** = ``"UP"``
29
-
30
- #### Defined in
31
-
32
- [packages/notifications/types/index.ts:1609](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1609)
@@ -1,43 +0,0 @@
1
- [@redhat-cloud-services/notifications-client](../README.md) / [Exports](../modules.md) / SubscriptionType
2
-
3
- # Enumeration: SubscriptionType
4
-
5
- **`Export`**
6
-
7
- ## Table of contents
8
-
9
- ### Enumeration Members
10
-
11
- - [Daily](SubscriptionType.md#daily)
12
- - [Drawer](SubscriptionType.md#drawer)
13
- - [Instant](SubscriptionType.md#instant)
14
-
15
- ## Enumeration Members
16
-
17
- ### Daily
18
-
19
- • **Daily** = ``"DAILY"``
20
-
21
- #### Defined in
22
-
23
- [packages/notifications/types/index.ts:1624](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1624)
24
-
25
- ___
26
-
27
- ### Drawer
28
-
29
- • **Drawer** = ``"DRAWER"``
30
-
31
- #### Defined in
32
-
33
- [packages/notifications/types/index.ts:1625](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1625)
34
-
35
- ___
36
-
37
- ### Instant
38
-
39
- • **Instant** = ``"INSTANT"``
40
-
41
- #### Defined in
42
-
43
- [packages/notifications/types/index.ts:1623](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/types/index.ts#L1623)
@@ -1,30 +0,0 @@
1
- [@redhat-cloud-services/notifications-client](../README.md) / [Exports](../modules.md) / ApiConfig
2
-
3
- # Interface: ApiConfig
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [axios](ApiConfig.md#axios)
10
- - [configuration](ApiConfig.md#configuration)
11
-
12
- ## Properties
13
-
14
- ### axios
15
-
16
- • **axios**: `AxiosInstance`
17
-
18
- #### Defined in
19
-
20
- [packages/notifications/utils/base.ts:41](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/base.ts#L41)
21
-
22
- ___
23
-
24
- ### configuration
25
-
26
- • `Optional` **configuration**: [`Configuration`](../classes/Configuration.md)
27
-
28
- #### Defined in
29
-
30
- [packages/notifications/utils/base.ts:42](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/base.ts#L42)
@@ -1,93 +0,0 @@
1
- [@redhat-cloud-services/notifications-client](../README.md) / [Exports](../modules.md) / ConfigurationParameters
2
-
3
- # Interface: ConfigurationParameters
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [accessToken](ConfigurationParameters.md#accesstoken)
10
- - [apiKey](ConfigurationParameters.md#apikey)
11
- - [baseOptions](ConfigurationParameters.md#baseoptions)
12
- - [basePath](ConfigurationParameters.md#basepath)
13
- - [formDataCtor](ConfigurationParameters.md#formdatactor)
14
- - [password](ConfigurationParameters.md#password)
15
- - [username](ConfigurationParameters.md#username)
16
-
17
- ## Properties
18
-
19
- ### accessToken
20
-
21
- • `Optional` **accessToken**: `string` \| `Promise`\<`string`\> \| (`name?`: `string`, `scopes?`: `string`[]) => `string` \| (`name?`: `string`, `scopes?`: `string`[]) => `Promise`\<`string`\>
22
-
23
- #### Defined in
24
-
25
- [packages/notifications/utils/configuration.ts:8](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L8)
26
-
27
- ___
28
-
29
- ### apiKey
30
-
31
- • `Optional` **apiKey**: `string` \| `Promise`\<`string`\> \| (`name`: `string`) => `string` \| (`name`: `string`) => `Promise`\<`string`\>
32
-
33
- #### Defined in
34
-
35
- [packages/notifications/utils/configuration.ts:5](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L5)
36
-
37
- ___
38
-
39
- ### baseOptions
40
-
41
- • `Optional` **baseOptions**: `any`
42
-
43
- #### Defined in
44
-
45
- [packages/notifications/utils/configuration.ts:10](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L10)
46
-
47
- ___
48
-
49
- ### basePath
50
-
51
- • `Optional` **basePath**: `string`
52
-
53
- #### Defined in
54
-
55
- [packages/notifications/utils/configuration.ts:9](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L9)
56
-
57
- ___
58
-
59
- ### formDataCtor
60
-
61
- • `Optional` **formDataCtor**: () => `any`
62
-
63
- #### Type declaration
64
-
65
- • **new formDataCtor**(): `any`
66
-
67
- ##### Returns
68
-
69
- `any`
70
-
71
- #### Defined in
72
-
73
- [packages/notifications/utils/configuration.ts:11](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L11)
74
-
75
- ___
76
-
77
- ### password
78
-
79
- • `Optional` **password**: `string`
80
-
81
- #### Defined in
82
-
83
- [packages/notifications/utils/configuration.ts:7](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L7)
84
-
85
- ___
86
-
87
- ### username
88
-
89
- • `Optional` **username**: `string`
90
-
91
- #### Defined in
92
-
93
- [packages/notifications/utils/configuration.ts:6](https://github.com/RedHatInsights/javascript-clients/blob/main/packages/notifications/utils/configuration.ts#L6)