@redhat-cloud-services/notifications-client 2.5.6 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/DrawerResourceV1GetDrawerEntries/index.d.ts +3 -1
- package/dist/DrawerResourceV1GetDrawerEntries/index.d.ts.map +1 -1
- package/dist/DrawerResourceV1GetDrawerEntries/index.js.map +1 -1
- package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.d.ts +2 -1
- package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.d.ts.map +1 -1
- package/dist/DrawerResourceV1UpdateNotificationReadStatus/index.js.map +1 -1
- package/dist/EventResourceV1GetEvents/index.d.ts +3 -2
- package/dist/EventResourceV1GetEvents/index.d.ts.map +1 -1
- package/dist/EventResourceV1GetEvents/index.js.map +1 -1
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts +2 -1
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.js.map +1 -1
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts +3 -2
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.js.map +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts +2 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.js.map +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts +2 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.js.map +1 -1
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts +3 -1
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.js.map +1 -1
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.js.map +1 -1
- package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetApplicationsFacets/index.js.map +1 -1
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js.map +1 -1
- package/dist/NotificationResourceV1GetBundleByName/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetBundleByName/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetBundleByName/index.js.map +1 -1
- package/dist/NotificationResourceV1GetBundleFacets/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetBundleFacets/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetBundleFacets/index.js.map +1 -1
- package/dist/NotificationResourceV1GetEventTypes/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetEventTypes/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetEventTypes/index.js.map +1 -1
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js.map +1 -1
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.js.map +1 -1
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts +3 -1
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.js.map +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts +2 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.js.map +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts +2 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.js.map +1 -1
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts +2 -1
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.js.map +1 -1
- package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.d.ts +2 -1
- package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.d.ts.map +1 -1
- package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.js.map +1 -1
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts +2 -1
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts.map +1 -1
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.js.map +1 -1
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts +2 -1
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts.map +1 -1
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.js.map +1 -1
- package/dist/api.d.ts +53 -2383
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +33 -3124
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +23 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -26
- package/dist/index.js.map +1 -1
- package/dist/v2/EventResourceV2GetEvents/index.d.ts +113 -0
- package/dist/v2/EventResourceV2GetEvents/index.d.ts.map +1 -0
- package/dist/v2/EventResourceV2GetEvents/index.js +98 -0
- package/dist/v2/EventResourceV2GetEvents/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.d.ts +28 -0
- package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.js +48 -0
- package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.d.ts +23 -0
- package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.js +48 -0
- package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.d.ts +22 -0
- package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.js +47 -0
- package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.d.ts +28 -0
- package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.js +48 -0
- package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.d.ts +23 -0
- package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.js +47 -0
- package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.d.ts +29 -0
- package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.js +48 -0
- package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.d.ts +23 -0
- package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.js +49 -0
- package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +23 -0
- package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js +47 -0
- package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetBundleByName/index.d.ts +23 -0
- package/dist/v2/NotificationResourceV2GetBundleByName/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetBundleByName/index.js +47 -0
- package/dist/v2/NotificationResourceV2GetBundleByName/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetBundleFacets/index.d.ts +23 -0
- package/dist/v2/NotificationResourceV2GetBundleFacets/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetBundleFacets/index.js +49 -0
- package/dist/v2/NotificationResourceV2GetBundleFacets/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetEventTypes/index.d.ts +71 -0
- package/dist/v2/NotificationResourceV2GetEventTypes/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetEventTypes/index.js +73 -0
- package/dist/v2/NotificationResourceV2GetEventTypes/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +23 -0
- package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js +47 -0
- package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +35 -0
- package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.js +49 -0
- package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.d.ts +53 -0
- package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.js +62 -0
- package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.d.ts +29 -0
- package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.js +49 -0
- package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.d.ts +28 -0
- package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.js +49 -0
- package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.d.ts +28 -0
- package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.js +49 -0
- package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.js.map +1 -0
- package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.d.ts +28 -0
- package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.d.ts.map +1 -0
- package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.js +49 -0
- package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.js.map +1 -0
- package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.d.ts +16 -0
- package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.d.ts.map +1 -0
- package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.js +46 -0
- package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.js.map +1 -0
- package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.d.ts +22 -0
- package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.d.ts.map +1 -0
- package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.js +48 -0
- package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.js.map +1 -0
- package/dist/v2/api.d.ts +50 -0
- package/dist/v2/api.d.ts.map +1 -0
- package/dist/v2/api.js +34 -0
- package/dist/v2/api.js.map +1 -0
- package/dist/v2/index.d.ts +22 -0
- package/dist/v2/index.d.ts.map +1 -0
- package/dist/v2/index.js +46 -0
- package/dist/v2/index.js.map +1 -0
- package/dist/v2/types/index.d.ts +760 -0
- package/dist/v2/types/index.d.ts.map +1 -0
- package/dist/v2/types/index.js +42 -0
- package/dist/v2/types/index.js.map +1 -0
- package/package.json +2 -2
- package/dist/base.d.ts +0 -55
- package/dist/base.d.ts.map +0 -1
- package/dist/base.js +0 -67
- package/dist/base.js.map +0 -1
- package/dist/common.d.ts +0 -66
- package/dist/common.d.ts.map +0 -1
- package/dist/common.js +0 -207
- package/dist/common.js.map +0 -1
- package/dist/configuration.d.ts +0 -84
- package/dist/configuration.d.ts.map +0 -1
- package/dist/configuration.js +0 -45
- package/dist/configuration.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { UpdateBehaviorGroupRequest } from '../types';
|
|
4
|
+
export type NotificationResourceV2UpdateBehaviorGroupParams = {
|
|
5
|
+
/**
|
|
6
|
+
* The UUID of the behavior group to update
|
|
7
|
+
* @type { string }
|
|
8
|
+
* @memberof NotificationResourceV2UpdateBehaviorGroupApi
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* New parameters
|
|
13
|
+
* @type { UpdateBehaviorGroupRequest }
|
|
14
|
+
* @memberof NotificationResourceV2UpdateBehaviorGroupApi
|
|
15
|
+
*/
|
|
16
|
+
updateBehaviorGroupRequest: UpdateBehaviorGroupRequest;
|
|
17
|
+
options?: AxiosRequestConfig;
|
|
18
|
+
};
|
|
19
|
+
export type NotificationResourceV2UpdateBehaviorGroupReturnType = AxiosPromise<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Updates the details of a behavior group. Use this endpoint to update the list of related endpoints and event types associated with this behavior group.
|
|
22
|
+
* @summary Update a behavior group
|
|
23
|
+
* @param {NotificationResourceV2UpdateBehaviorGroupParams} config with all available params.
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
export declare const notificationResourceV2UpdateBehaviorGroupParamCreator: (...config: ([NotificationResourceV2UpdateBehaviorGroupParams] | [string, UpdateBehaviorGroupRequest, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
28
|
+
export default notificationResourceV2UpdateBehaviorGroupParamCreator;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2UpdateBehaviorGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAiB,kBAAkB,EAAU,MAAM,OAAO,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAMhG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAG3D,MAAM,MAAM,+CAA+C,GAAG;IAC5D;;;;MAIE;IACF,EAAE,EAAE,MAAM,CAAC;IACX;;;;MAIE;IACF,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,mDAAmD,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AAKxF;;;;;;EAME;AACF,eAAO,MAAM,qDAAqD,cAAqB,CAAC,CAAC,+CAA+C,CAAC,GAAG,CAAC,MAAM,EAAE,0BAA0B,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAuB1N,CAAA;AAED,eAAe,qDAAqD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2UpdateBehaviorGroupParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
|
+
var isNotificationResourceV2UpdateBehaviorGroupObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'id') && Object.prototype.hasOwnProperty.call(params, 'updateBehaviorGroupRequest');
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Updates the details of a behavior group. Use this endpoint to update the list of related endpoints and event types associated with this behavior group.
|
|
12
|
+
* @summary Update a behavior group
|
|
13
|
+
* @param {NotificationResourceV2UpdateBehaviorGroupParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2UpdateBehaviorGroupParamCreator = function () {
|
|
18
|
+
var config = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
config[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
+
var params, id, updateBehaviorGroupRequest, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2UpdateBehaviorGroupObjectParams(config) ? config[0] : ['id', 'updateBehaviorGroupRequest', 'options'].reduce(function (acc, curr, index) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
|
+
}, {});
|
|
29
|
+
id = params.id, updateBehaviorGroupRequest = params.updateBehaviorGroupRequest, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/behaviorGroups/{id}"
|
|
31
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'PUT' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
36
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
38
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
39
|
+
return [2 /*return*/, {
|
|
40
|
+
urlObj: localVarUrlObj,
|
|
41
|
+
options: localVarRequestOptions,
|
|
42
|
+
serializeData: updateBehaviorGroupRequest,
|
|
43
|
+
}];
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
exports.notificationResourceV2UpdateBehaviorGroupParamCreator = notificationResourceV2UpdateBehaviorGroupParamCreator;
|
|
48
|
+
exports.default = exports.notificationResourceV2UpdateBehaviorGroupParamCreator;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2UpdateBehaviorGroup/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA4BjU,IAAM,uDAAuD,GAAG,UAAC,MAAqE;IACpI,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAA;AAChK,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,qDAAqD,GAAG;IAAO,gBAAyH;SAAzH,UAAyH,EAAzH,qBAAyH,EAAzH,IAAyH;QAAzH,2BAAyH;;;;;YAC3L,MAAM,GAAG,uDAAuD,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,4BAA4B,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAoD,CAAC;YAC9P,EAAE,GAA+C,MAAM,GAArD,EAAE,0BAA0B,GAAmB,MAAM,2BAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAC1D,YAAY,GAAG,oCAAoC;iBACpD,OAAO,CAAC,WAAI,IAAI,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAEpD,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YACvD,sBAAsB,sBAAK,MAAM,EAAE,KAAe,IAAK,OAAO,CAAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAIzC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;YAE7D,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,0BAA0B;iBAC5C,EAAC;;;CACL,CAAA;AAvBY,QAAA,qDAAqD,yDAuBjE;AAED,kBAAe,6DAAqD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type NotificationResourceV2UpdateBehaviorGroupActionsParams = {
|
|
4
|
+
/**
|
|
5
|
+
* The UUID of the behavior group to update
|
|
6
|
+
* @type { string }
|
|
7
|
+
* @memberof NotificationResourceV2UpdateBehaviorGroupActionsApi
|
|
8
|
+
*/
|
|
9
|
+
behaviorGroupId: string;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { Array<string> }
|
|
13
|
+
* @memberof NotificationResourceV2UpdateBehaviorGroupActionsApi
|
|
14
|
+
*/
|
|
15
|
+
requestBody?: Array<string>;
|
|
16
|
+
options?: AxiosRequestConfig;
|
|
17
|
+
};
|
|
18
|
+
export type NotificationResourceV2UpdateBehaviorGroupActionsReturnType = AxiosPromise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Updates the list of actions to be executed in that particular behavior group after an event is received.
|
|
21
|
+
* @summary Update the list of behavior group actions
|
|
22
|
+
* @param {NotificationResourceV2UpdateBehaviorGroupActionsParams} config with all available params.
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
export declare const notificationResourceV2UpdateBehaviorGroupActionsParamCreator: (...config: ([NotificationResourceV2UpdateBehaviorGroupActionsParams] | [string, Array<string>, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
27
|
+
export default notificationResourceV2UpdateBehaviorGroupActionsParamCreator;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2UpdateBehaviorGroupActions/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAiB,kBAAkB,EAAU,MAAM,OAAO,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAShG,MAAM,MAAM,sDAAsD,GAAG;IACnE;;;;MAIE;IACF,eAAe,EAAE,MAAM,CAAC;IACxB;;;;MAIE;IACF,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,0DAA0D,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAK9F;;;;;;EAME;AACF,eAAO,MAAM,4DAA4D,cAAqB,CAAC,CAAC,sDAAsD,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAuB3N,CAAA;AAED,eAAe,4DAA4D,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2UpdateBehaviorGroupActionsParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
|
+
var isNotificationResourceV2UpdateBehaviorGroupActionsObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'behaviorGroupId') && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Updates the list of actions to be executed in that particular behavior group after an event is received.
|
|
12
|
+
* @summary Update the list of behavior group actions
|
|
13
|
+
* @param {NotificationResourceV2UpdateBehaviorGroupActionsParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2UpdateBehaviorGroupActionsParamCreator = function () {
|
|
18
|
+
var config = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
config[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
+
var params, behaviorGroupId, requestBody, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2UpdateBehaviorGroupActionsObjectParams(config) ? config[0] : ['behaviorGroupId', 'requestBody', 'options'].reduce(function (acc, curr, index) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
|
+
}, {});
|
|
29
|
+
behaviorGroupId = params.behaviorGroupId, requestBody = params.requestBody, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/behaviorGroups/{behaviorGroupId}/actions"
|
|
31
|
+
.replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'PUT' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
36
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
38
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
39
|
+
return [2 /*return*/, {
|
|
40
|
+
urlObj: localVarUrlObj,
|
|
41
|
+
options: localVarRequestOptions,
|
|
42
|
+
serializeData: requestBody,
|
|
43
|
+
}];
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
exports.notificationResourceV2UpdateBehaviorGroupActionsParamCreator = notificationResourceV2UpdateBehaviorGroupActionsParamCreator;
|
|
48
|
+
exports.default = exports.notificationResourceV2UpdateBehaviorGroupActionsParamCreator;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2UpdateBehaviorGroupActions/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA4BjU,IAAM,8DAA8D,GAAG,UAAC,MAA4E;IAClJ,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,IAAI,CAAA;AACvG,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,4DAA4D,GAAG;IAAO,gBAAmH;SAAnH,UAAmH,EAAnH,qBAAmH,EAAnH,IAAmH;QAAnH,2BAAmH;;;;;YAC5L,MAAM,GAAG,8DAA8D,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAA2D,CAAC;YAC1Q,eAAe,GAAgC,MAAM,gBAAtC,EAAE,WAAW,GAAmB,MAAM,YAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACxD,YAAY,GAAG,yDAAyD;iBACzE,OAAO,CAAC,WAAI,iBAAiB,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAE9E,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YACvD,sBAAsB,sBAAK,MAAM,EAAE,KAAe,IAAK,OAAO,CAAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAIzC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;YAE7D,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,WAAW;iBAC7B,EAAC;;;CACL,CAAA;AAvBY,QAAA,4DAA4D,gEAuBxE;AAED,kBAAe,oEAA4D,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type NotificationResourceV2UpdateEventTypeBehaviorsParams = {
|
|
4
|
+
/**
|
|
5
|
+
* UUID of the eventType to associate with the behavior group(s)
|
|
6
|
+
* @type { string }
|
|
7
|
+
* @memberof NotificationResourceV2UpdateEventTypeBehaviorsApi
|
|
8
|
+
*/
|
|
9
|
+
eventTypeId: string;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { Set<string> }
|
|
13
|
+
* @memberof NotificationResourceV2UpdateEventTypeBehaviorsApi
|
|
14
|
+
*/
|
|
15
|
+
requestBody?: Set<string>;
|
|
16
|
+
options?: AxiosRequestConfig;
|
|
17
|
+
};
|
|
18
|
+
export type NotificationResourceV2UpdateEventTypeBehaviorsReturnType = AxiosPromise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Updates the list of behavior groups associated with an event type.
|
|
21
|
+
* @summary Update the list of behavior groups for an event type
|
|
22
|
+
* @param {NotificationResourceV2UpdateEventTypeBehaviorsParams} config with all available params.
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
export declare const notificationResourceV2UpdateEventTypeBehaviorsParamCreator: (...config: ([NotificationResourceV2UpdateEventTypeBehaviorsParams] | [string, Set<string>, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
27
|
+
export default notificationResourceV2UpdateEventTypeBehaviorsParamCreator;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2UpdateEventTypeBehaviors/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAiB,kBAAkB,EAAU,MAAM,OAAO,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAShG,MAAM,MAAM,oDAAoD,GAAG;IACjE;;;;MAIE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB;;;;MAIE;IACF,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,wDAAwD,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAK5F;;;;;;EAME;AACF,eAAO,MAAM,0DAA0D,cAAqB,CAAC,CAAC,oDAAoD,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAuBrN,CAAA;AAED,eAAe,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2UpdateEventTypeBehaviorsParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
|
+
var isNotificationResourceV2UpdateEventTypeBehaviorsObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'eventTypeId') && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Updates the list of behavior groups associated with an event type.
|
|
12
|
+
* @summary Update the list of behavior groups for an event type
|
|
13
|
+
* @param {NotificationResourceV2UpdateEventTypeBehaviorsParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2UpdateEventTypeBehaviorsParamCreator = function () {
|
|
18
|
+
var config = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
config[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
+
var params, eventTypeId, requestBody, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2UpdateEventTypeBehaviorsObjectParams(config) ? config[0] : ['eventTypeId', 'requestBody', 'options'].reduce(function (acc, curr, index) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
|
+
}, {});
|
|
29
|
+
eventTypeId = params.eventTypeId, requestBody = params.requestBody, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups"
|
|
31
|
+
.replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'PUT' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
36
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
38
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
39
|
+
return [2 /*return*/, {
|
|
40
|
+
urlObj: localVarUrlObj,
|
|
41
|
+
options: localVarRequestOptions,
|
|
42
|
+
serializeData: requestBody,
|
|
43
|
+
}];
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
exports.notificationResourceV2UpdateEventTypeBehaviorsParamCreator = notificationResourceV2UpdateEventTypeBehaviorsParamCreator;
|
|
48
|
+
exports.default = exports.notificationResourceV2UpdateEventTypeBehaviorsParamCreator;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2UpdateEventTypeBehaviors/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA4BjU,IAAM,4DAA4D,GAAG,UAAC,MAA0E;IAC9I,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,IAAI,CAAA;AACnG,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,0DAA0D,GAAG;IAAO,gBAA+G;SAA/G,UAA+G,EAA/G,qBAA+G,EAA/G,IAA+G;QAA/G,2BAA+G;;;;;YACtL,MAAM,GAAG,4DAA4D,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAyD,CAAC;YAClQ,WAAW,GAAgC,MAAM,YAAtC,EAAE,WAAW,GAAmB,MAAM,YAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACpD,YAAY,GAAG,wDAAwD;iBACxE,OAAO,CAAC,WAAI,aAAa,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAEtE,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YACvD,sBAAsB,sBAAK,MAAM,EAAE,KAAe,IAAK,OAAO,CAAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAIzC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;YAE7D,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,WAAW;iBAC7B,EAAC;;;CACL,CAAA;AAvBY,QAAA,0DAA0D,8DAuBtE;AAED,kBAAe,kEAA0D,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type NotificationResourceV2UpdateEventTypeEndpointsParams = {
|
|
4
|
+
/**
|
|
5
|
+
* UUID of the eventType to associate with the endpoint(s)
|
|
6
|
+
* @type { string }
|
|
7
|
+
* @memberof NotificationResourceV2UpdateEventTypeEndpointsApi
|
|
8
|
+
*/
|
|
9
|
+
eventTypeId: string;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { Set<string> }
|
|
13
|
+
* @memberof NotificationResourceV2UpdateEventTypeEndpointsApi
|
|
14
|
+
*/
|
|
15
|
+
requestBody?: Set<string>;
|
|
16
|
+
options?: AxiosRequestConfig;
|
|
17
|
+
};
|
|
18
|
+
export type NotificationResourceV2UpdateEventTypeEndpointsReturnType = AxiosPromise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Updates the list of endpoints associated with an event type.
|
|
21
|
+
* @summary Update the list of endpoints for an event type
|
|
22
|
+
* @param {NotificationResourceV2UpdateEventTypeEndpointsParams} config with all available params.
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
export declare const notificationResourceV2UpdateEventTypeEndpointsParamCreator: (...config: ([NotificationResourceV2UpdateEventTypeEndpointsParams] | [string, Set<string>, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
27
|
+
export default notificationResourceV2UpdateEventTypeEndpointsParamCreator;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2UpdateEventTypeEndpoints/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAiB,kBAAkB,EAAU,MAAM,OAAO,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAShG,MAAM,MAAM,oDAAoD,GAAG;IACjE;;;;MAIE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB;;;;MAIE;IACF,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,wDAAwD,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAK5F;;;;;;EAME;AACF,eAAO,MAAM,0DAA0D,cAAqB,CAAC,CAAC,oDAAoD,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAuBrN,CAAA;AAED,eAAe,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2UpdateEventTypeEndpointsParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
|
+
var isNotificationResourceV2UpdateEventTypeEndpointsObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'eventTypeId') && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Updates the list of endpoints associated with an event type.
|
|
12
|
+
* @summary Update the list of endpoints for an event type
|
|
13
|
+
* @param {NotificationResourceV2UpdateEventTypeEndpointsParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2UpdateEventTypeEndpointsParamCreator = function () {
|
|
18
|
+
var config = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
config[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
+
var params, eventTypeId, requestBody, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2UpdateEventTypeEndpointsObjectParams(config) ? config[0] : ['eventTypeId', 'requestBody', 'options'].reduce(function (acc, curr, index) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
|
+
}, {});
|
|
29
|
+
eventTypeId = params.eventTypeId, requestBody = params.requestBody, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/eventTypes/{eventTypeId}/endpoints"
|
|
31
|
+
.replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'PUT' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
36
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
38
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
39
|
+
return [2 /*return*/, {
|
|
40
|
+
urlObj: localVarUrlObj,
|
|
41
|
+
options: localVarRequestOptions,
|
|
42
|
+
serializeData: requestBody,
|
|
43
|
+
}];
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
exports.notificationResourceV2UpdateEventTypeEndpointsParamCreator = notificationResourceV2UpdateEventTypeEndpointsParamCreator;
|
|
48
|
+
exports.default = exports.notificationResourceV2UpdateEventTypeEndpointsParamCreator;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2UpdateEventTypeEndpoints/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA4BjU,IAAM,4DAA4D,GAAG,UAAC,MAA0E;IAC9I,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,IAAI,CAAA;AACnG,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,0DAA0D,GAAG;IAAO,gBAA+G;SAA/G,UAA+G,EAA/G,qBAA+G,EAA/G,IAA+G;QAA/G,2BAA+G;;;;;YACtL,MAAM,GAAG,4DAA4D,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAyD,CAAC;YAClQ,WAAW,GAAgC,MAAM,YAAtC,EAAE,WAAW,GAAmB,MAAM,YAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACpD,YAAY,GAAG,mDAAmD;iBACnE,OAAO,CAAC,WAAI,aAAa,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAEtE,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YACvD,sBAAsB,sBAAK,MAAM,EAAE,KAAe,IAAK,OAAO,CAAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAIzC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;YAE7D,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,WAAW;iBAC7B,EAAC;;;CACL,CAAA;AAvBY,QAAA,0DAA0D,8DAuBtE;AAED,kBAAe,kEAA0D,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type OrgConfigResourceV2GetDailyDigestTimePreferenceParams = {
|
|
4
|
+
options?: AxiosRequestConfig;
|
|
5
|
+
};
|
|
6
|
+
export type OrgConfigResourceV2GetDailyDigestTimePreferenceReturnType = AxiosPromise<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the daily digest time setting. Use this endpoint to check the time that daily emails are sent.
|
|
9
|
+
* @summary Retrieve the daily digest time
|
|
10
|
+
* @param {OrgConfigResourceV2GetDailyDigestTimePreferenceParams} config with all available params.
|
|
11
|
+
* @param {*} [options] Override http request option.
|
|
12
|
+
* @throws {RequiredError}
|
|
13
|
+
*/
|
|
14
|
+
export declare const orgConfigResourceV2GetDailyDigestTimePreferenceParamCreator: (...config: ([OrgConfigResourceV2GetDailyDigestTimePreferenceParams] | [AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
15
|
+
export default orgConfigResourceV2GetDailyDigestTimePreferenceParamCreator;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAiB,kBAAkB,EAAU,MAAM,OAAO,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAShG,MAAM,MAAM,qDAAqD,GAAG;IAClE,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,yDAAyD,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAK7F;;;;;;EAME;AACF,eAAO,MAAM,2DAA2D,cAAqB,CAAC,CAAC,qDAAqD,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAmBlM,CAAA;AAED,eAAe,2DAA2D,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orgConfigResourceV2GetDailyDigestTimePreferenceParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
|
+
var isOrgConfigResourceV2GetDailyDigestTimePreferenceObjectParams = function (params) {
|
|
8
|
+
return params.length === 1;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the daily digest time setting. Use this endpoint to check the time that daily emails are sent.
|
|
12
|
+
* @summary Retrieve the daily digest time
|
|
13
|
+
* @param {OrgConfigResourceV2GetDailyDigestTimePreferenceParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var orgConfigResourceV2GetDailyDigestTimePreferenceParamCreator = function () {
|
|
18
|
+
var config = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
config[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
+
var params, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isOrgConfigResourceV2GetDailyDigestTimePreferenceObjectParams(config) ? config[0] : ['options'].reduce(function (acc, curr, index) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
|
+
}, {});
|
|
29
|
+
_a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/org-config/daily-digest/time-preference";
|
|
31
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
33
|
+
localVarHeaderParameter = {};
|
|
34
|
+
localVarQueryParameter = {};
|
|
35
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
36
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
37
|
+
return [2 /*return*/, {
|
|
38
|
+
urlObj: localVarUrlObj,
|
|
39
|
+
options: localVarRequestOptions,
|
|
40
|
+
}];
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
exports.orgConfigResourceV2GetDailyDigestTimePreferenceParamCreator = orgConfigResourceV2GetDailyDigestTimePreferenceParamCreator;
|
|
45
|
+
exports.default = exports.orgConfigResourceV2GetDailyDigestTimePreferenceParamCreator;
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAgBjU,IAAM,6DAA6D,GAAG,UAAC,MAA2E;IAChJ,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAA;AAC5B,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,2DAA2D,GAAG;IAAO,gBAA2F;SAA3F,UAA2F,EAA3F,qBAA2F,EAA3F,IAA2F;QAA3F,2BAA2F;;;;;YACnK,MAAM,GAAG,6DAA6D,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAA0D,CAAC;YACtO,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAC1B,YAAY,GAAG,0CAA0C,CAAC;YAE1D,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YACvD,sBAAsB,sBAAK,MAAM,EAAE,KAAe,IAAK,OAAO,CAAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAIzC,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AAnBY,QAAA,2DAA2D,+DAmBvE;AAED,kBAAe,mEAA2D,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type OrgConfigResourceV2SaveDailyDigestTimePreferenceParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { string }
|
|
7
|
+
* @memberof OrgConfigResourceV2SaveDailyDigestTimePreferenceApi
|
|
8
|
+
*/
|
|
9
|
+
body?: string;
|
|
10
|
+
options?: AxiosRequestConfig;
|
|
11
|
+
};
|
|
12
|
+
export type OrgConfigResourceV2SaveDailyDigestTimePreferenceReturnType = AxiosPromise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the daily digest UTC time. The accepted minute values are 00, 15, 30, and 45. Use this endpoint to set the time when daily emails are sent.
|
|
15
|
+
* @summary Set the daily digest time
|
|
16
|
+
* @param {OrgConfigResourceV2SaveDailyDigestTimePreferenceParams} config with all available params.
|
|
17
|
+
* @param {*} [options] Override http request option.
|
|
18
|
+
* @throws {RequiredError}
|
|
19
|
+
*/
|
|
20
|
+
export declare const orgConfigResourceV2SaveDailyDigestTimePreferenceParamCreator: (...config: ([OrgConfigResourceV2SaveDailyDigestTimePreferenceParams] | [string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
21
|
+
export default orgConfigResourceV2SaveDailyDigestTimePreferenceParamCreator;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAiB,kBAAkB,EAAU,MAAM,OAAO,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAShG,MAAM,MAAM,sDAAsD,GAAG;IACnE;;;;MAIE;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,0DAA0D,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;AAK5F;;;;;;EAME;AACF,eAAO,MAAM,4DAA4D,cAAqB,CAAC,CAAC,sDAAsD,CAAC,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAsB5M,CAAA;AAED,eAAe,4DAA4D,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orgConfigResourceV2SaveDailyDigestTimePreferenceParamCreator = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
var common_1 = require("@redhat-cloud-services/javascript-clients-shared/dist/common");
|
|
7
|
+
var isOrgConfigResourceV2SaveDailyDigestTimePreferenceObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Sets the daily digest UTC time. The accepted minute values are 00, 15, 30, and 45. Use this endpoint to set the time when daily emails are sent.
|
|
12
|
+
* @summary Set the daily digest time
|
|
13
|
+
* @param {OrgConfigResourceV2SaveDailyDigestTimePreferenceParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var orgConfigResourceV2SaveDailyDigestTimePreferenceParamCreator = function () {
|
|
18
|
+
var config = [];
|
|
19
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
20
|
+
config[_i] = arguments[_i];
|
|
21
|
+
}
|
|
22
|
+
return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
23
|
+
var params, body, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isOrgConfigResourceV2SaveDailyDigestTimePreferenceObjectParams(config) ? config[0] : ['body', 'options'].reduce(function (acc, curr, index) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
28
|
+
}, {});
|
|
29
|
+
body = params.body, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/org-config/daily-digest/time-preference";
|
|
31
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'PUT' }, options);
|
|
33
|
+
localVarHeaderParameter = {};
|
|
34
|
+
localVarQueryParameter = {};
|
|
35
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
36
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
37
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
38
|
+
return [2 /*return*/, {
|
|
39
|
+
urlObj: localVarUrlObj,
|
|
40
|
+
options: localVarRequestOptions,
|
|
41
|
+
serializeData: body,
|
|
42
|
+
}];
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
exports.orgConfigResourceV2SaveDailyDigestTimePreferenceParamCreator = orgConfigResourceV2SaveDailyDigestTimePreferenceParamCreator;
|
|
47
|
+
exports.default = exports.orgConfigResourceV2SaveDailyDigestTimePreferenceParamCreator;
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAsBjU,IAAM,8DAA8D,GAAG,UAAC,MAA4E;IAClJ,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAA;AACpC,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,4DAA4D,GAAG;IAAO,gBAAoG;SAApG,UAAoG,EAApG,qBAAoG,EAApG,IAAoG;QAApG,2BAAoG;;;;;YAC7K,MAAM,GAAG,8DAA8D,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uCAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAA2D,CAAC;YAChP,IAAI,GAAmB,MAAM,KAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAChC,YAAY,GAAG,0CAA0C,CAAC;YAE1D,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YACvD,sBAAsB,sBAAK,MAAM,EAAE,KAAe,IAAK,OAAO,CAAC,CAAC;YAChE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAIzC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;YAE7D,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yCAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,IAAI;iBACtB,EAAC;;;CACL,CAAA;AAtBY,QAAA,4DAA4D,gEAsBxE;AAED,kBAAe,oEAA4D,CAAC"}
|
package/dist/v2/api.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ApiConfig } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
2
|
+
import { EventResourceV2GetEventsReturnType, NotificationResourceV2AppendBehaviorGroupToEventTypeReturnType, NotificationResourceV2CreateBehaviorGroupReturnType, NotificationResourceV2DeleteBehaviorGroupReturnType, NotificationResourceV2DeleteBehaviorGroupFromEventTypeReturnType, NotificationResourceV2FindBehaviorGroupsByBundleIdReturnType, NotificationResourceV2GetApplicationByNameAndBundleNameReturnType, NotificationResourceV2GetApplicationsFacetsReturnType, NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointReturnType, NotificationResourceV2GetBundleByNameReturnType, NotificationResourceV2GetBundleFacetsReturnType, NotificationResourceV2GetEventTypesReturnType, NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupReturnType, NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameReturnType, NotificationResourceV2GetLinkedBehaviorGroupsReturnType, NotificationResourceV2UpdateBehaviorGroupReturnType, NotificationResourceV2UpdateBehaviorGroupActionsReturnType, NotificationResourceV2UpdateEventTypeBehaviorsReturnType, NotificationResourceV2UpdateEventTypeEndpointsReturnType, OrgConfigResourceV2GetDailyDigestTimePreferenceReturnType, OrgConfigResourceV2SaveDailyDigestTimePreferenceReturnType } from './index';
|
|
3
|
+
type endpointReturnTypes = {
|
|
4
|
+
eventResourceV2GetEvents: EventResourceV2GetEventsReturnType;
|
|
5
|
+
notificationResourceV2AppendBehaviorGroupToEventType: NotificationResourceV2AppendBehaviorGroupToEventTypeReturnType;
|
|
6
|
+
notificationResourceV2CreateBehaviorGroup: NotificationResourceV2CreateBehaviorGroupReturnType;
|
|
7
|
+
notificationResourceV2DeleteBehaviorGroup: NotificationResourceV2DeleteBehaviorGroupReturnType;
|
|
8
|
+
notificationResourceV2DeleteBehaviorGroupFromEventType: NotificationResourceV2DeleteBehaviorGroupFromEventTypeReturnType;
|
|
9
|
+
notificationResourceV2FindBehaviorGroupsByBundleId: NotificationResourceV2FindBehaviorGroupsByBundleIdReturnType;
|
|
10
|
+
notificationResourceV2GetApplicationByNameAndBundleName: NotificationResourceV2GetApplicationByNameAndBundleNameReturnType;
|
|
11
|
+
notificationResourceV2GetApplicationsFacets: NotificationResourceV2GetApplicationsFacetsReturnType;
|
|
12
|
+
notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint: NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointReturnType;
|
|
13
|
+
notificationResourceV2GetBundleByName: NotificationResourceV2GetBundleByNameReturnType;
|
|
14
|
+
notificationResourceV2GetBundleFacets: NotificationResourceV2GetBundleFacetsReturnType;
|
|
15
|
+
notificationResourceV2GetEventTypes: NotificationResourceV2GetEventTypesReturnType;
|
|
16
|
+
notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup: NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupReturnType;
|
|
17
|
+
notificationResourceV2GetEventTypesByNameAndBundleAndApplicationName: NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameReturnType;
|
|
18
|
+
notificationResourceV2GetLinkedBehaviorGroups: NotificationResourceV2GetLinkedBehaviorGroupsReturnType;
|
|
19
|
+
notificationResourceV2UpdateBehaviorGroup: NotificationResourceV2UpdateBehaviorGroupReturnType;
|
|
20
|
+
notificationResourceV2UpdateBehaviorGroupActions: NotificationResourceV2UpdateBehaviorGroupActionsReturnType;
|
|
21
|
+
notificationResourceV2UpdateEventTypeBehaviors: NotificationResourceV2UpdateEventTypeBehaviorsReturnType;
|
|
22
|
+
notificationResourceV2UpdateEventTypeEndpoints: NotificationResourceV2UpdateEventTypeEndpointsReturnType;
|
|
23
|
+
orgConfigResourceV2GetDailyDigestTimePreference: OrgConfigResourceV2GetDailyDigestTimePreferenceReturnType;
|
|
24
|
+
orgConfigResourceV2SaveDailyDigestTimePreference: OrgConfigResourceV2SaveDailyDigestTimePreferenceReturnType;
|
|
25
|
+
};
|
|
26
|
+
export declare const NotificationsClient: (BASE_PATH: string, instance?: ApiConfig) => import("packages/shared/dist/base").BaseAPI & import("@redhat-cloud-services/javascript-clients-shared/dist/utils").APIFactoryResponse<{
|
|
27
|
+
eventResourceV2GetEvents: (...config: [import("./EventResourceV2GetEvents").EventResourceV2GetEventsParams] | [Set<string>, Set<string>, string, Set<string>, string, boolean, boolean, boolean, Set<boolean>, number, number, number, string, string, string, Set<import("./types").EventLogEntryActionStatus>, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
28
|
+
notificationResourceV2AppendBehaviorGroupToEventType: (...config: [string, string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2AppendBehaviorGroupToEventType").NotificationResourceV2AppendBehaviorGroupToEventTypeParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
29
|
+
notificationResourceV2CreateBehaviorGroup: (...config: [import("./NotificationResourceV2CreateBehaviorGroup").NotificationResourceV2CreateBehaviorGroupParams] | [import("./types").CreateBehaviorGroupRequest, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
30
|
+
notificationResourceV2DeleteBehaviorGroup: (...config: [string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2DeleteBehaviorGroup").NotificationResourceV2DeleteBehaviorGroupParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
31
|
+
notificationResourceV2DeleteBehaviorGroupFromEventType: (...config: [string, string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2DeleteBehaviorGroupFromEventType").NotificationResourceV2DeleteBehaviorGroupFromEventTypeParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
32
|
+
notificationResourceV2FindBehaviorGroupsByBundleId: (...config: [string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2FindBehaviorGroupsByBundleId").NotificationResourceV2FindBehaviorGroupsByBundleIdParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
33
|
+
notificationResourceV2GetApplicationByNameAndBundleName: (...config: [string, string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetApplicationByNameAndBundleName").NotificationResourceV2GetApplicationByNameAndBundleNameParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
34
|
+
notificationResourceV2GetApplicationsFacets: (...config: [string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetApplicationsFacets").NotificationResourceV2GetApplicationsFacetsParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
35
|
+
notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint: (...config: [string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint").NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
36
|
+
notificationResourceV2GetBundleByName: (...config: [string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetBundleByName").NotificationResourceV2GetBundleByNameParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
37
|
+
notificationResourceV2GetBundleFacets: (...config: [boolean, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetBundleFacets").NotificationResourceV2GetBundleFacetsParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
38
|
+
notificationResourceV2GetEventTypes: (...config: [Set<string>, string, string, boolean, number, number, number, string, string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetEventTypes").NotificationResourceV2GetEventTypesParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
39
|
+
notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup: (...config: [string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup").NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
40
|
+
notificationResourceV2GetEventTypesByNameAndBundleAndApplicationName: (...config: [string, string, string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName").NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
41
|
+
notificationResourceV2GetLinkedBehaviorGroups: (...config: [string, number, number, number, string, string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2GetLinkedBehaviorGroups").NotificationResourceV2GetLinkedBehaviorGroupsParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
42
|
+
notificationResourceV2UpdateBehaviorGroup: (...config: [import("./NotificationResourceV2UpdateBehaviorGroup").NotificationResourceV2UpdateBehaviorGroupParams] | [string, import("./types").UpdateBehaviorGroupRequest, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
43
|
+
notificationResourceV2UpdateBehaviorGroupActions: (...config: [string, string[], import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2UpdateBehaviorGroupActions").NotificationResourceV2UpdateBehaviorGroupActionsParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
44
|
+
notificationResourceV2UpdateEventTypeBehaviors: (...config: [string, Set<string>, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2UpdateEventTypeBehaviors").NotificationResourceV2UpdateEventTypeBehaviorsParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
45
|
+
notificationResourceV2UpdateEventTypeEndpoints: (...config: [string, Set<string>, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2UpdateEventTypeEndpoints").NotificationResourceV2UpdateEventTypeEndpointsParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
46
|
+
orgConfigResourceV2GetDailyDigestTimePreference: (...config: [import("axios").AxiosRequestConfig<any>] | [import("./OrgConfigResourceV2GetDailyDigestTimePreference").OrgConfigResourceV2GetDailyDigestTimePreferenceParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
47
|
+
orgConfigResourceV2SaveDailyDigestTimePreference: (...config: [string, import("axios").AxiosRequestConfig<any>] | [import("./OrgConfigResourceV2SaveDailyDigestTimePreference").OrgConfigResourceV2SaveDailyDigestTimePreferenceParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
48
|
+
}, endpointReturnTypes>;
|
|
49
|
+
export default NotificationsClient;
|
|
50
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../v2/api.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,EACsB,kCAAkC,EACN,8DAA8D,EACzE,mDAAmD,EACnD,mDAAmD,EACtC,gEAAgE,EACpE,4DAA4D,EACvD,iEAAiE,EAC7E,qDAAqD,EAC9B,4EAA4E,EACzG,+CAA+C,EAC/C,+CAA+C,EACjD,6CAA6C,EACb,6EAA6E,EAC5E,8EAA8E,EACrG,uDAAuD,EAC3D,mDAAmD,EAC5C,0DAA0D,EAC5D,wDAAwD,EACxD,wDAAwD,EACvD,yDAAyD,EACxD,0DAA0D,EAE5G,MAAM,SAAS,CAAC;AA4BnB,KAAK,mBAAmB,GAAG;IACrB,wBAAwB,EAAE,kCAAkC,CAAC;IAC/D,oDAAoD,EAAE,8DAA8D,CAAC;IACrH,yCAAyC,EAAE,mDAAmD,CAAC;IAC/F,yCAAyC,EAAE,mDAAmD,CAAC;IAC/F,sDAAsD,EAAE,gEAAgE,CAAC;IACzH,kDAAkD,EAAE,4DAA4D,CAAC;IACjH,uDAAuD,EAAE,iEAAiE,CAAC;IAC3H,2CAA2C,EAAE,qDAAqD,CAAC;IACnG,kEAAkE,EAAE,4EAA4E,CAAC;IACjJ,qCAAqC,EAAE,+CAA+C,CAAC;IACvF,qCAAqC,EAAE,+CAA+C,CAAC;IACvF,mCAAmC,EAAE,6CAA6C,CAAC;IACnF,mEAAmE,EAAE,6EAA6E,CAAC;IACnJ,oEAAoE,EAAE,8EAA8E,CAAC;IACrJ,6CAA6C,EAAE,uDAAuD,CAAC;IACvG,yCAAyC,EAAE,mDAAmD,CAAC;IAC/F,gDAAgD,EAAE,0DAA0D,CAAC;IAC7G,8CAA8C,EAAE,wDAAwD,CAAC;IACzG,8CAA8C,EAAE,wDAAwD,CAAC;IACzG,+CAA+C,EAAE,yDAAyD,CAAC;IAC3G,gDAAgD,EAAE,0DAA0D,CAAC;CAGhH,CAAC;AAEF,eAAO,MAAM,mBAAmB,cAAe,MAAM,aAAa,SAAS;;;;;;;;;;;;;;;;;;;;;;uBAE1E,CAAA;AAED,eAAe,mBAAmB,CAAC"}
|