@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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/DrawerResourceV1GetDrawerEntries/index.d.ts +1 -1
- package/dist/DrawerResourceV1GetDrawerEntries/index.d.ts.map +1 -1
- package/dist/DrawerResourceV1GetDrawerEntries/index.js +1 -1
- package/dist/DrawerResourceV1GetDrawerEntries/index.js.map +1 -1
- package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.d.ts +1 -1
- package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.d.ts.map +1 -1
- package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.js +1 -1
- package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.js.map +1 -1
- package/dist/EventResourceV1GetEvents/index.d.ts +2 -2
- package/dist/EventResourceV1GetEvents/index.d.ts.map +1 -1
- package/dist/EventResourceV1GetEvents/index.js +2 -2
- package/dist/EventResourceV1GetEvents/index.js.map +1 -1
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts +1 -1
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.js +1 -1
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.js.map +1 -1
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts +1 -1
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.js +1 -1
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.js.map +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.js +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.js.map +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.js +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.js.map +1 -1
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts +1 -1
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.js +1 -1
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.js.map +1 -1
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts +2 -2
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.js +2 -2
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.js.map +1 -1
- package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts +2 -2
- package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetApplicationsFacets/index.js +2 -2
- package/dist/NotificationResourceV1GetApplicationsFacets/index.js.map +1 -1
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +1 -1
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js +1 -1
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js.map +1 -1
- package/dist/NotificationResourceV1GetBundleByName/index.d.ts +1 -1
- package/dist/NotificationResourceV1GetBundleByName/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetBundleByName/index.js +1 -1
- package/dist/NotificationResourceV1GetBundleByName/index.js.map +1 -1
- package/dist/NotificationResourceV1GetBundleFacets/index.d.ts +2 -2
- package/dist/NotificationResourceV1GetBundleFacets/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetBundleFacets/index.js +2 -2
- package/dist/NotificationResourceV1GetBundleFacets/index.js.map +1 -1
- package/dist/NotificationResourceV1GetEventTypes/index.d.ts +2 -2
- package/dist/NotificationResourceV1GetEventTypes/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetEventTypes/index.js +2 -2
- package/dist/NotificationResourceV1GetEventTypes/index.js.map +1 -1
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +1 -1
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js +1 -1
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js.map +1 -1
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +2 -2
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.js +2 -2
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.js.map +1 -1
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts +1 -1
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.js +1 -1
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.js.map +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts +2 -2
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.js +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.js.map +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts +2 -2
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.js +2 -2
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.js.map +1 -1
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts +1 -1
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.js +1 -1
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.js.map +1 -1
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts +1 -1
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts.map +1 -1
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.js +1 -1
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.js.map +1 -1
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts +1 -1
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts.map +1 -1
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.js +1 -1
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.js.map +1 -1
- package/dist/api.d.ts +76 -70
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +34 -34
- package/dist/api.js.map +1 -1
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +43 -37
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/doc/README.md +28 -56
- package/doc/classes/index.BaseAPI.md +73 -0
- package/doc/classes/{RequiredError.md → index.RequiredError.md} +15 -13
- package/doc/enums/{EndpointStatus.md → types.EndpointStatus.md} +9 -7
- package/doc/enums/{EndpointType.md → types.EndpointType.md} +8 -6
- package/doc/enums/{Environment.md → types.Environment.md} +7 -5
- package/doc/enums/{EventLogEntryActionStatus.md → types.EventLogEntryActionStatus.md} +8 -6
- package/doc/enums/types.HttpType.md +45 -0
- package/doc/enums/types.NotificationStatus.md +67 -0
- package/doc/enums/types.Status.md +34 -0
- package/doc/enums/types.SubscriptionType.md +45 -0
- package/doc/interfaces/index.RequestArgs.md +36 -0
- package/doc/interfaces/{AddAccessRequest.md → types.AddAccessRequest.md} +5 -3
- package/doc/interfaces/{AddApplicationRequest.md → types.AddApplicationRequest.md} +7 -5
- package/doc/interfaces/{AggregationEmailTemplate.md → types.AggregationEmailTemplate.md} +17 -15
- package/doc/interfaces/{AggregationEmailTemplateSubjectTemplate.md → types.AggregationEmailTemplateSubjectTemplate.md} +9 -7
- package/doc/interfaces/{Application.md → types.Application.md} +9 -7
- package/doc/interfaces/{Application1.md → types.Application1.md} +5 -3
- package/doc/interfaces/{ApplicationDTO.md → types.ApplicationDTO.md} +9 -7
- package/doc/interfaces/{ApplicationSettingsValue.md → types.ApplicationSettingsValue.md} +5 -3
- package/doc/interfaces/{BasicAuthentication.md → types.BasicAuthentication.md} +5 -3
- package/doc/interfaces/{BehaviorGroup.md → types.BehaviorGroup.md} +15 -13
- package/doc/interfaces/{BehaviorGroupAction.md → types.BehaviorGroupAction.md} +8 -6
- package/doc/interfaces/{BehaviorGroupActionId.md → types.BehaviorGroupActionId.md} +5 -3
- package/doc/interfaces/{Bundle.md → types.Bundle.md} +8 -6
- package/doc/interfaces/{BundleSettingsValue.md → types.BundleSettingsValue.md} +5 -3
- package/doc/interfaces/{CamelProperties.md → types.CamelProperties.md} +19 -17
- package/doc/interfaces/{CreateBehaviorGroupRequest.md → types.CreateBehaviorGroupRequest.md} +9 -7
- package/doc/interfaces/{CreateBehaviorGroupResponse.md → types.CreateBehaviorGroupResponse.md} +9 -7
- package/doc/interfaces/{CurrentStatus.md → types.CurrentStatus.md} +11 -9
- package/doc/interfaces/{DrawerEntryPayload.md → types.DrawerEntryPayload.md} +10 -8
- package/doc/interfaces/{DuplicateNameMigrationReport.md → types.DuplicateNameMigrationReport.md} +5 -3
- package/doc/interfaces/{Endpoint.md → types.Endpoint.md} +16 -14
- package/doc/interfaces/{EndpointPage.md → types.EndpointPage.md} +8 -6
- package/doc/interfaces/{EndpointTestRequest.md → types.EndpointTestRequest.md} +4 -2
- package/doc/interfaces/{EventLogEntry.md → types.EventLogEntry.md} +11 -9
- package/doc/interfaces/{EventLogEntryAction.md → types.EventLogEntryAction.md} +12 -10
- package/doc/interfaces/{EventType.md → types.EventType.md} +32 -15
- package/doc/interfaces/{EventTypeBehavior.md → types.EventTypeBehavior.md} +11 -9
- package/doc/interfaces/{EventTypeBehaviorId.md → types.EventTypeBehaviorId.md} +7 -5
- package/doc/interfaces/{EventTypeSettingsValue.md → types.EventTypeSettingsValue.md} +9 -7
- package/doc/interfaces/{Facet.md → types.Facet.md} +12 -10
- package/doc/interfaces/{InstantEmailTemplate.md → types.InstantEmailTemplate.md} +24 -22
- package/doc/interfaces/{InternalApplicationUserPermission.md → types.InternalApplicationUserPermission.md} +9 -7
- package/doc/interfaces/{InternalRoleAccess.md → types.InternalRoleAccess.md} +13 -11
- package/doc/interfaces/{InternalUserPermissions.md → types.InternalUserPermissions.md} +14 -12
- package/doc/interfaces/{MessageValidationResponse.md → types.MessageValidationResponse.md} +5 -3
- package/doc/interfaces/types.Meta.md +29 -0
- package/doc/interfaces/{NotificationHistory.md → types.NotificationHistory.md} +23 -21
- package/doc/interfaces/{PageBehaviorGroup.md → types.PageBehaviorGroup.md} +11 -9
- package/doc/interfaces/{PageDrawerEntryPayload.md → types.PageDrawerEntryPayload.md} +11 -9
- package/doc/interfaces/{PageEventLogEntry.md → types.PageEventLogEntry.md} +11 -9
- package/doc/interfaces/{PageEventType.md → types.PageEventType.md} +11 -9
- package/doc/interfaces/{PageNotificationHistory.md → types.PageNotificationHistory.md} +11 -9
- package/doc/interfaces/{RenderEmailTemplateRequest.md → types.RenderEmailTemplateRequest.md} +7 -5
- package/doc/interfaces/{RequestDefaultBehaviorGroupPropertyList.md → types.RequestDefaultBehaviorGroupPropertyList.md} +7 -5
- package/doc/interfaces/types.RequestSystemSubscriptionProperties.md +44 -0
- package/doc/interfaces/types.ServerInfo.md +29 -0
- package/doc/interfaces/types.SettingsValuesByEventType.md +33 -0
- package/doc/interfaces/{SystemSubscriptionProperties.md → types.SystemSubscriptionProperties.md} +13 -11
- package/doc/interfaces/{Template.md → types.Template.md} +15 -13
- package/doc/interfaces/{TriggerDailyDigestRequest.md → types.TriggerDailyDigestRequest.md} +13 -11
- package/doc/interfaces/{UpdateApplicationRequest.md → types.UpdateApplicationRequest.md} +9 -7
- package/doc/interfaces/{UpdateBehaviorGroupRequest.md → types.UpdateBehaviorGroupRequest.md} +11 -9
- package/doc/interfaces/types.UpdateNotificationDrawerStatus.md +44 -0
- package/doc/interfaces/{WebhookProperties.md → types.WebhookProperties.md} +24 -22
- package/doc/interfaces/{X509Certificate.md → types.X509Certificate.md} +13 -11
- package/doc/modules/DrawerResourceV1GetDrawerEntries.md +78 -0
- package/doc/modules/DrawerResourceV1UpdateNotificationReadStatus.md +68 -0
- package/doc/modules/EventResourceV1GetEvents.md +83 -0
- package/doc/modules/NotificationResourceV1AppendBehaviorGroupToEventType.md +67 -0
- package/doc/modules/NotificationResourceV1CreateBehaviorGroup.md +68 -0
- package/doc/modules/NotificationResourceV1DeleteBehaviorGroup.md +68 -0
- package/doc/modules/NotificationResourceV1DeleteBehaviorGroupFromEventType.md +69 -0
- package/doc/modules/NotificationResourceV1FindBehaviorGroupsByBundleId.md +68 -0
- package/doc/modules/NotificationResourceV1GetApplicationByNameAndBundleName.md +69 -0
- package/doc/modules/NotificationResourceV1GetApplicationsFacets.md +68 -0
- package/doc/modules/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint.md +68 -0
- package/doc/modules/NotificationResourceV1GetBundleByName.md +68 -0
- package/doc/modules/NotificationResourceV1GetBundleFacets.md +68 -0
- package/doc/modules/NotificationResourceV1GetEventTypes.md +75 -0
- package/doc/modules/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup.md +68 -0
- package/doc/modules/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName.md +70 -0
- package/doc/modules/NotificationResourceV1GetLinkedBehaviorGroups.md +73 -0
- package/doc/modules/NotificationResourceV1UpdateBehaviorGroup.md +69 -0
- package/doc/modules/NotificationResourceV1UpdateBehaviorGroupActions.md +69 -0
- package/doc/modules/NotificationResourceV1UpdateEventTypeBehaviors.md +69 -0
- package/doc/modules/OrgConfigResourceV1GetDailyDigestTimePreference.md +67 -0
- package/doc/modules/OrgConfigResourceV1SaveDailyDigestTimePreference.md +68 -0
- package/doc/modules/index.md +648 -0
- package/doc/modules/types.md +74 -0
- package/doc/modules.md +28 -1108
- package/package.json +3 -2
- package/dist/utils/base.d.ts +0 -85
- package/dist/utils/base.d.ts.map +0 -1
- package/dist/utils/base.js +0 -191
- package/dist/utils/base.js.map +0 -1
- package/dist/utils/common.d.ts +0 -55
- package/dist/utils/common.d.ts.map +0 -1
- package/dist/utils/common.js +0 -196
- package/dist/utils/common.js.map +0 -1
- package/dist/utils/configuration.d.ts +0 -73
- package/dist/utils/configuration.d.ts.map +0 -1
- package/dist/utils/configuration.js +0 -34
- package/dist/utils/configuration.js.map +0 -1
- package/doc/classes/BaseAPI.md +0 -133
- package/doc/classes/Configuration.md +0 -202
- package/doc/enums/HttpType.md +0 -43
- package/doc/enums/NotificationStatus.md +0 -65
- package/doc/enums/Status.md +0 -32
- package/doc/enums/SubscriptionType.md +0 -43
- package/doc/interfaces/ApiConfig.md +0 -30
- package/doc/interfaces/ConfigurationParameters.md +0 -93
- package/doc/interfaces/Meta.md +0 -27
- package/doc/interfaces/RequestArgs.md +0 -56
- package/doc/interfaces/RequestSystemSubscriptionProperties.md +0 -42
- package/doc/interfaces/ServerInfo.md +0 -27
- package/doc/interfaces/SettingsValuesByEventType.md +0 -31
- 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"}
|
package/doc/classes/BaseAPI.md
DELETED
|
@@ -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)
|
package/doc/enums/HttpType.md
DELETED
|
@@ -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)
|
package/doc/enums/Status.md
DELETED
|
@@ -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)
|