@redhat-cloud-services/notifications-client 3.0.1 → 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 +7 -0
- 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 +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2FindBehaviorGroupsByBundleIdParamCreator = 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 isNotificationResourceV2FindBehaviorGroupsByBundleIdObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'bundleId');
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Lists the behavior groups associated with a bundle. Use this endpoint to see the behavior groups that are configured for a particular bundle for a particular tenant.
|
|
12
|
+
* @summary List behavior groups in a bundle
|
|
13
|
+
* @param {NotificationResourceV2FindBehaviorGroupsByBundleIdParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2FindBehaviorGroupsByBundleIdParamCreator = 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, bundleId, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2FindBehaviorGroupsByBundleIdObjectParams(config) ? config[0] : ['bundleId', '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
|
+
bundleId = params.bundleId, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/bundles/{bundleId}/behaviorGroups"
|
|
31
|
+
.replace("{".concat("bundleId", "}"), encodeURIComponent(String(bundleId)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
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
|
+
}];
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
exports.notificationResourceV2FindBehaviorGroupsByBundleIdParamCreator = notificationResourceV2FindBehaviorGroupsByBundleIdParamCreator;
|
|
46
|
+
exports.default = exports.notificationResourceV2FindBehaviorGroupsByBundleIdParamCreator;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAsBjU,IAAM,gEAAgE,GAAG,UAAC,MAA8E;IACtJ,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AACxF,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,8DAA8D,GAAG;IAAO,gBAAsG;SAAtG,UAAsG,EAAtG,qBAAsG,EAAtG,IAAsG;QAAtG,2BAAsG;;;;;YACjL,MAAM,GAAG,gEAAgE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,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,CAA6D,CAAC;YACxP,QAAQ,GAAmB,MAAM,SAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACpC,YAAY,GAAG,kDAAkD;iBAClE,OAAO,CAAC,WAAI,UAAU,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAEhE,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;AApBY,QAAA,8DAA8D,kEAoB1E;AAED,kBAAe,sEAA8D,CAAC"}
|
|
@@ -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 { Application } from '../types';
|
|
4
|
+
export type NotificationResourceV2GetApplicationByNameAndBundleNameParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { string }
|
|
8
|
+
* @memberof NotificationResourceV2GetApplicationByNameAndBundleNameApi
|
|
9
|
+
*/
|
|
10
|
+
applicationName: string;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type { string }
|
|
14
|
+
* @memberof NotificationResourceV2GetApplicationByNameAndBundleNameApi
|
|
15
|
+
*/
|
|
16
|
+
bundleName: string;
|
|
17
|
+
options?: AxiosRequestConfig;
|
|
18
|
+
};
|
|
19
|
+
export type NotificationResourceV2GetApplicationByNameAndBundleNameReturnType = AxiosPromise<Application>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves an application by bundle and application names. Use this endpoint to find an application by searching for the bundle that the application is part of. This is useful if you do not know the UUID of the bundle or application.
|
|
22
|
+
* @summary Retrieve an application by bundle and application names
|
|
23
|
+
* @param {NotificationResourceV2GetApplicationByNameAndBundleNameParams} config with all available params.
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
export declare const notificationResourceV2GetApplicationByNameAndBundleNameParamCreator: (...config: ([NotificationResourceV2GetApplicationByNameAndBundleNameParams] | [string, string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
28
|
+
export default notificationResourceV2GetApplicationByNameAndBundleNameParamCreator;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetApplicationByNameAndBundleName/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,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,MAAM,6DAA6D,GAAG;IAC1E;;;;MAIE;IACF,eAAe,EAAE,MAAM,CAAC;IACxB;;;;MAIE;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,iEAAiE,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC;AAK1G;;;;;;EAME;AACF,eAAO,MAAM,mEAAmE,cAAqB,CAAC,CAAC,6DAA6D,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAqBlO,CAAA;AAED,eAAe,mEAAmE,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2GetApplicationByNameAndBundleNameParamCreator = 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 isNotificationResourceV2GetApplicationByNameAndBundleNameObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'applicationName') && Object.prototype.hasOwnProperty.call(params, 'bundleName');
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves an application by bundle and application names. Use this endpoint to find an application by searching for the bundle that the application is part of. This is useful if you do not know the UUID of the bundle or application.
|
|
12
|
+
* @summary Retrieve an application by bundle and application names
|
|
13
|
+
* @param {NotificationResourceV2GetApplicationByNameAndBundleNameParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2GetApplicationByNameAndBundleNameParamCreator = 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, applicationName, bundleName, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2GetApplicationByNameAndBundleNameObjectParams(config) ? config[0] : ['applicationName', 'bundleName', '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
|
+
applicationName = params.applicationName, bundleName = params.bundleName, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/bundles/{bundleName}/applications/{applicationName}"
|
|
31
|
+
.replace("{".concat("applicationName", "}"), encodeURIComponent(String(applicationName)))
|
|
32
|
+
.replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)));
|
|
33
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
34
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
35
|
+
localVarHeaderParameter = {};
|
|
36
|
+
localVarQueryParameter = {};
|
|
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
|
+
}];
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
exports.notificationResourceV2GetApplicationByNameAndBundleNameParamCreator = notificationResourceV2GetApplicationByNameAndBundleNameParamCreator;
|
|
47
|
+
exports.default = exports.notificationResourceV2GetApplicationByNameAndBundleNameParamCreator;
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AA4BjU,IAAM,qEAAqE,GAAG,UAAC,MAAmF;IAChK,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AAC7J,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,mEAAmE,GAAG;IAAO,gBAAmH;SAAnH,UAAmH,EAAnH,qBAAmH,EAAnH,IAAmH;QAAnH,2BAAmH;;;;;YACnM,MAAM,GAAG,qEAAqE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,YAAY,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,CAAkE,CAAC;YACvR,eAAe,GAA+B,MAAM,gBAArC,EAAE,UAAU,GAAmB,MAAM,WAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACvD,YAAY,GAAG,oEAAoE;iBACpF,OAAO,CAAC,WAAI,iBAAiB,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;iBAC9E,OAAO,CAAC,WAAI,YAAY,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAEpE,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;AArBY,QAAA,mEAAmE,uEAqB/E;AAED,kBAAe,2EAAmE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { Facet } from '../types';
|
|
4
|
+
export type NotificationResourceV2GetApplicationsFacetsParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { string }
|
|
8
|
+
* @memberof NotificationResourceV2GetApplicationsFacetsApi
|
|
9
|
+
*/
|
|
10
|
+
bundleName?: string;
|
|
11
|
+
options?: AxiosRequestConfig;
|
|
12
|
+
};
|
|
13
|
+
export type NotificationResourceV2GetApplicationsFacetsReturnType = AxiosPromise<Array<Facet>>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns a list of configured applications that includes the application name, the display name, and the ID. You can use this list to configure a filter in the UI.
|
|
16
|
+
* @summary List configured applications
|
|
17
|
+
* @param {NotificationResourceV2GetApplicationsFacetsParams} config with all available params.
|
|
18
|
+
* @param {*} [options] Override http request option.
|
|
19
|
+
* @throws {RequiredError}
|
|
20
|
+
*/
|
|
21
|
+
export declare const notificationResourceV2GetApplicationsFacetsParamCreator: (...config: ([NotificationResourceV2GetApplicationsFacetsParams] | [string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
22
|
+
export default notificationResourceV2GetApplicationsFacetsParamCreator;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetApplicationsFacets/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,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,MAAM,MAAM,iDAAiD,GAAG;IAC9D;;;;MAIE;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,qDAAqD,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAK/F;;;;;;EAME;AACF,eAAO,MAAM,uDAAuD,cAAqB,CAAC,CAAC,iDAAiD,CAAC,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAuBlM,CAAA;AAED,eAAe,uDAAuD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2GetApplicationsFacetsParamCreator = 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 isNotificationResourceV2GetApplicationsFacetsObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Returns a list of configured applications that includes the application name, the display name, and the ID. You can use this list to configure a filter in the UI.
|
|
12
|
+
* @summary List configured applications
|
|
13
|
+
* @param {NotificationResourceV2GetApplicationsFacetsParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2GetApplicationsFacetsParamCreator = 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, bundleName, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2GetApplicationsFacetsObjectParams(config) ? config[0] : ['bundleName', '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
|
+
bundleName = params.bundleName, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/facets/applications";
|
|
31
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
33
|
+
localVarHeaderParameter = {};
|
|
34
|
+
localVarQueryParameter = {};
|
|
35
|
+
if (bundleName !== undefined) {
|
|
36
|
+
localVarQueryParameter['bundleName'] = bundleName;
|
|
37
|
+
}
|
|
38
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
39
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
40
|
+
return [2 /*return*/, {
|
|
41
|
+
urlObj: localVarUrlObj,
|
|
42
|
+
options: localVarRequestOptions,
|
|
43
|
+
}];
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
exports.notificationResourceV2GetApplicationsFacetsParamCreator = notificationResourceV2GetApplicationsFacetsParamCreator;
|
|
48
|
+
exports.default = exports.notificationResourceV2GetApplicationsFacetsParamCreator;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetApplicationsFacets/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAsBjU,IAAM,yDAAyD,GAAG,UAAC,MAAuE;IACxI,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAA;AACpC,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,uDAAuD,GAAG;IAAO,gBAA+F;SAA/F,UAA+F,EAA/F,qBAA+F,EAA/F,IAA+F;QAA/F,2BAA+F;;;;;YACnK,MAAM,GAAG,yDAAyD,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,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,CAAsD,CAAC;YAC5O,UAAU,GAAmB,MAAM,WAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACtC,YAAY,GAAG,oCAAoC,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;YAEzC,IAAI,UAAU,KAAK,SAAS,EAAE;gBAC1B,sBAAsB,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;aACrD;YAID,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;AAvBY,QAAA,uDAAuD,2DAuBnE;AAED,kBAAe,+DAAuD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { BehaviorGroup } from '../types';
|
|
4
|
+
export type NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { string }
|
|
8
|
+
* @memberof NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointApi
|
|
9
|
+
*/
|
|
10
|
+
endpointId: string;
|
|
11
|
+
options?: AxiosRequestConfig;
|
|
12
|
+
};
|
|
13
|
+
export type NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointReturnType = AxiosPromise<Array<BehaviorGroup>>;
|
|
14
|
+
/**
|
|
15
|
+
* Lists the behavior groups that are affected by the removal of an endpoint. Use this endpoint to understand how removing an endpoint affects existing behavior groups.
|
|
16
|
+
* @summary List the behavior groups affected by the removal of an endpoint
|
|
17
|
+
* @param {NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParams} config with all available params.
|
|
18
|
+
* @param {*} [options] Override http request option.
|
|
19
|
+
* @throws {RequiredError}
|
|
20
|
+
*/
|
|
21
|
+
export declare const notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParamCreator: (...config: ([NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParams] | [string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
22
|
+
export default notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParamCreator;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/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,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,MAAM,MAAM,wEAAwE,GAAG;IACrF;;;;MAIE;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,4EAA4E,GAAG,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAK9H;;;;;;EAME;AACF,eAAO,MAAM,8EAA8E,cAAqB,CAAC,CAAC,wEAAwE,CAAC,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAoBhP,CAAA;AAED,eAAe,8EAA8E,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParamCreator = 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 isNotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'endpointId');
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Lists the behavior groups that are affected by the removal of an endpoint. Use this endpoint to understand how removing an endpoint affects existing behavior groups.
|
|
12
|
+
* @summary List the behavior groups affected by the removal of an endpoint
|
|
13
|
+
* @param {NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParamCreator = 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, endpointId, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointObjectParams(config) ? config[0] : ['endpointId', '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
|
+
endpointId = params.endpointId, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/behaviorGroups/affectedByRemovalOfEndpoint/{endpointId}"
|
|
31
|
+
.replace("{".concat("endpointId", "}"), encodeURIComponent(String(endpointId)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
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
|
+
}];
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
exports.notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParamCreator = notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParamCreator;
|
|
46
|
+
exports.default = exports.notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpointParamCreator;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAsBjU,IAAM,gFAAgF,GAAG,UAAC,MAA8F;IACtL,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AAC1F,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,8EAA8E,GAAG;IAAO,gBAAsH;SAAtH,UAAsH,EAAtH,qBAAsH,EAAtH,IAAsH;QAAtH,2BAAsH;;;;;YACjN,MAAM,GAAG,gFAAgF,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,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,CAA6E,CAAC;YAC1R,UAAU,GAAmB,MAAM,WAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACtC,YAAY,GAAG,wEAAwE;iBACxF,OAAO,CAAC,WAAI,YAAY,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAEpE,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;AApBY,QAAA,8EAA8E,kFAoB1F;AAED,kBAAe,sFAA8E,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { Bundle } from '../types';
|
|
4
|
+
export type NotificationResourceV2GetBundleByNameParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { string }
|
|
8
|
+
* @memberof NotificationResourceV2GetBundleByNameApi
|
|
9
|
+
*/
|
|
10
|
+
bundleName: string;
|
|
11
|
+
options?: AxiosRequestConfig;
|
|
12
|
+
};
|
|
13
|
+
export type NotificationResourceV2GetBundleByNameReturnType = AxiosPromise<Bundle>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the details of a bundle by searching by its name.
|
|
16
|
+
* @summary Retrieve a bundle by name
|
|
17
|
+
* @param {NotificationResourceV2GetBundleByNameParams} config with all available params.
|
|
18
|
+
* @param {*} [options] Override http request option.
|
|
19
|
+
* @throws {RequiredError}
|
|
20
|
+
*/
|
|
21
|
+
export declare const notificationResourceV2GetBundleByNameParamCreator: (...config: ([NotificationResourceV2GetBundleByNameParams] | [string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
22
|
+
export default notificationResourceV2GetBundleByNameParamCreator;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetBundleByName/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,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,MAAM,2CAA2C,GAAG;IACxD;;;;MAIE;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,+CAA+C,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAKnF;;;;;;EAME;AACF,eAAO,MAAM,iDAAiD,cAAqB,CAAC,CAAC,2CAA2C,CAAC,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAoBtL,CAAA;AAED,eAAe,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2GetBundleByNameParamCreator = 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 isNotificationResourceV2GetBundleByNameObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'bundleName');
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the details of a bundle by searching by its name.
|
|
12
|
+
* @summary Retrieve a bundle by name
|
|
13
|
+
* @param {NotificationResourceV2GetBundleByNameParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2GetBundleByNameParamCreator = 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, bundleName, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2GetBundleByNameObjectParams(config) ? config[0] : ['bundleName', '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
|
+
bundleName = params.bundleName, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/bundles/{bundleName}"
|
|
31
|
+
.replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)));
|
|
32
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
34
|
+
localVarHeaderParameter = {};
|
|
35
|
+
localVarQueryParameter = {};
|
|
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
|
+
}];
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
exports.notificationResourceV2GetBundleByNameParamCreator = notificationResourceV2GetBundleByNameParamCreator;
|
|
46
|
+
exports.default = exports.notificationResourceV2GetBundleByNameParamCreator;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetBundleByName/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAsBjU,IAAM,mDAAmD,GAAG,UAAC,MAAiE;IAC5H,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AAC1F,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,iDAAiD,GAAG;IAAO,gBAAyF;SAAzF,UAAyF,EAAzF,qBAAyF,EAAzF,IAAyF;QAAzF,2BAAyF;;;;;YACvJ,MAAM,GAAG,mDAAmD,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,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,CAAgD,CAAC;YAChO,UAAU,GAAmB,MAAM,WAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACtC,YAAY,GAAG,qCAAqC;iBACrD,OAAO,CAAC,WAAI,YAAY,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAEpE,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;AApBY,QAAA,iDAAiD,qDAoB7D;AAED,kBAAe,yDAAiD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { Facet } from '../types';
|
|
4
|
+
export type NotificationResourceV2GetBundleFacetsParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { boolean }
|
|
8
|
+
* @memberof NotificationResourceV2GetBundleFacetsApi
|
|
9
|
+
*/
|
|
10
|
+
includeApplications?: boolean;
|
|
11
|
+
options?: AxiosRequestConfig;
|
|
12
|
+
};
|
|
13
|
+
export type NotificationResourceV2GetBundleFacetsReturnType = AxiosPromise<Array<Facet>>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns a list of configured bundles that includes the bundle name, the display name, and the ID. You can use this list to configure a filter in the UI.
|
|
16
|
+
* @summary List configured bundles
|
|
17
|
+
* @param {NotificationResourceV2GetBundleFacetsParams} config with all available params.
|
|
18
|
+
* @param {*} [options] Override http request option.
|
|
19
|
+
* @throws {RequiredError}
|
|
20
|
+
*/
|
|
21
|
+
export declare const notificationResourceV2GetBundleFacetsParamCreator: (...config: ([NotificationResourceV2GetBundleFacetsParams] | [boolean, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
22
|
+
export default notificationResourceV2GetBundleFacetsParamCreator;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetBundleFacets/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,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,MAAM,MAAM,2CAA2C,GAAG;IACxD;;;;MAIE;IACF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,+CAA+C,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAKzF;;;;;;EAME;AACF,eAAO,MAAM,iDAAiD,cAAqB,CAAC,CAAC,2CAA2C,CAAC,GAAG,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAuBvL,CAAA;AAED,eAAe,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2GetBundleFacetsParamCreator = 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 isNotificationResourceV2GetBundleFacetsObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Returns a list of configured bundles that includes the bundle name, the display name, and the ID. You can use this list to configure a filter in the UI.
|
|
12
|
+
* @summary List configured bundles
|
|
13
|
+
* @param {NotificationResourceV2GetBundleFacetsParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2GetBundleFacetsParamCreator = 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, includeApplications, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2GetBundleFacetsObjectParams(config) ? config[0] : ['includeApplications', '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
|
+
includeApplications = params.includeApplications, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/facets/bundles";
|
|
31
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
33
|
+
localVarHeaderParameter = {};
|
|
34
|
+
localVarQueryParameter = {};
|
|
35
|
+
if (includeApplications !== undefined) {
|
|
36
|
+
localVarQueryParameter['includeApplications'] = includeApplications;
|
|
37
|
+
}
|
|
38
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
39
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
40
|
+
return [2 /*return*/, {
|
|
41
|
+
urlObj: localVarUrlObj,
|
|
42
|
+
options: localVarRequestOptions,
|
|
43
|
+
}];
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
exports.notificationResourceV2GetBundleFacetsParamCreator = notificationResourceV2GetBundleFacetsParamCreator;
|
|
48
|
+
exports.default = exports.notificationResourceV2GetBundleFacetsParamCreator;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetBundleFacets/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAsBjU,IAAM,mDAAmD,GAAG,UAAC,MAAiE;IAC5H,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAA;AACpC,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,iDAAiD,GAAG;IAAO,gBAA0F;SAA1F,UAA0F,EAA1F,qBAA0F,EAA1F,IAA0F;QAA1F,2BAA0F;;;;;YACxJ,MAAM,GAAG,mDAAmD,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB,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,CAAgD,CAAC;YACzO,mBAAmB,GAAmB,MAAM,oBAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAC/C,YAAY,GAAG,+BAA+B,CAAC;YAE/C,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;YAEzC,IAAI,mBAAmB,KAAK,SAAS,EAAE;gBACnC,sBAAsB,CAAC,qBAAqB,CAAC,GAAG,mBAAmB,CAAC;aACvE;YAID,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;AAvBY,QAAA,iDAAiD,qDAuB7D;AAED,kBAAe,yDAAiD,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { PageEventType } from '../types';
|
|
4
|
+
export type NotificationResourceV2GetEventTypesParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { Set<string> }
|
|
8
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
9
|
+
*/
|
|
10
|
+
applicationIds?: Set<string>;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type { string }
|
|
14
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
15
|
+
*/
|
|
16
|
+
bundleId?: string;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type { string }
|
|
20
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
21
|
+
*/
|
|
22
|
+
eventTypeName?: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type { boolean }
|
|
26
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
27
|
+
*/
|
|
28
|
+
excludeMutedTypes?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type { number }
|
|
32
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type { number }
|
|
38
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
39
|
+
*/
|
|
40
|
+
offset?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type { number }
|
|
44
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
45
|
+
*/
|
|
46
|
+
pageNumber?: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type { string }
|
|
50
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
51
|
+
*/
|
|
52
|
+
sortBy?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type { string }
|
|
56
|
+
* @memberof NotificationResourceV2GetEventTypesApi
|
|
57
|
+
*/
|
|
58
|
+
sortBy2?: string;
|
|
59
|
+
options?: AxiosRequestConfig;
|
|
60
|
+
};
|
|
61
|
+
export type NotificationResourceV2GetEventTypesReturnType = AxiosPromise<PageEventType>;
|
|
62
|
+
/**
|
|
63
|
+
* Lists all event types. You can filter the returned list by bundle, application name, or unmuted types.
|
|
64
|
+
* @summary List all event types
|
|
65
|
+
* @param {NotificationResourceV2GetEventTypesParams} config with all available params.
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
export declare const notificationResourceV2GetEventTypesParamCreator: (...config: ([NotificationResourceV2GetEventTypesParams] | [Set<string>, string, string, boolean, number, number, number, string, string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
70
|
+
export default notificationResourceV2GetEventTypesParamCreator;
|
|
71
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetEventTypes/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,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,MAAM,MAAM,yCAAyC,GAAG;IACtD;;;;MAIE;IACF,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;MAIE;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;MAIE;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;MAIE;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;MAIE;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;MAIE;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;MAIE;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;MAIE;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;MAIE;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,6CAA6C,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;AAKxF;;;;;;EAME;AACF,eAAO,MAAM,+CAA+C,cAAqB,CAAC,CAAC,yCAAyC,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAuDxP,CAAA;AAED,eAAe,+CAA+C,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationResourceV2GetEventTypesParamCreator = 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 isNotificationResourceV2GetEventTypesObjectParams = function (params) {
|
|
8
|
+
return params.length === 1 && true && true && true && true && true && true && true && true && true;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Lists all event types. You can filter the returned list by bundle, application name, or unmuted types.
|
|
12
|
+
* @summary List all event types
|
|
13
|
+
* @param {NotificationResourceV2GetEventTypesParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV2GetEventTypesParamCreator = 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, applicationIds, bundleId, eventTypeName, excludeMutedTypes, limit, offset, pageNumber, sortBy, sortBy2, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
params = isNotificationResourceV2GetEventTypesObjectParams(config) ? config[0] : ['applicationIds', 'bundleId', 'eventTypeName', 'excludeMutedTypes', 'limit', 'offset', 'pageNumber', 'sortBy', 'sortBy2', '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
|
+
applicationIds = params.applicationIds, bundleId = params.bundleId, eventTypeName = params.eventTypeName, excludeMutedTypes = params.excludeMutedTypes, limit = params.limit, offset = params.offset, pageNumber = params.pageNumber, sortBy = params.sortBy, sortBy2 = params.sortBy2, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
30
|
+
localVarPath = "/notifications/eventTypes";
|
|
31
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32
|
+
localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
|
|
33
|
+
localVarHeaderParameter = {};
|
|
34
|
+
localVarQueryParameter = {};
|
|
35
|
+
if (applicationIds) {
|
|
36
|
+
localVarQueryParameter['applicationIds'] = Array.from(applicationIds);
|
|
37
|
+
}
|
|
38
|
+
if (bundleId !== undefined) {
|
|
39
|
+
localVarQueryParameter['bundleId'] = bundleId;
|
|
40
|
+
}
|
|
41
|
+
if (eventTypeName !== undefined) {
|
|
42
|
+
localVarQueryParameter['eventTypeName'] = eventTypeName;
|
|
43
|
+
}
|
|
44
|
+
if (excludeMutedTypes !== undefined) {
|
|
45
|
+
localVarQueryParameter['excludeMutedTypes'] = excludeMutedTypes;
|
|
46
|
+
}
|
|
47
|
+
if (limit !== undefined) {
|
|
48
|
+
localVarQueryParameter['limit'] = limit;
|
|
49
|
+
}
|
|
50
|
+
if (offset !== undefined) {
|
|
51
|
+
localVarQueryParameter['offset'] = offset;
|
|
52
|
+
}
|
|
53
|
+
if (pageNumber !== undefined) {
|
|
54
|
+
localVarQueryParameter['pageNumber'] = pageNumber;
|
|
55
|
+
}
|
|
56
|
+
if (sortBy !== undefined) {
|
|
57
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
58
|
+
}
|
|
59
|
+
if (sortBy2 !== undefined) {
|
|
60
|
+
localVarQueryParameter['sort_by'] = sortBy2;
|
|
61
|
+
}
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
|
|
64
|
+
return [2 /*return*/, {
|
|
65
|
+
urlObj: localVarUrlObj,
|
|
66
|
+
options: localVarRequestOptions,
|
|
67
|
+
}];
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
exports.notificationResourceV2GetEventTypesParamCreator = notificationResourceV2GetEventTypesParamCreator;
|
|
72
|
+
exports.default = exports.notificationResourceV2GetEventTypesParamCreator;
|
|
73
|
+
//# sourceMappingURL=index.js.map
|