@redhat-cloud-services/notifications-client 2.5.3 → 2.5.5
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/NotificationResourceV1UpdateEventTypeEndpoints/index.d.ts +27 -0
- package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.d.ts.map +1 -0
- package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.js +49 -0
- package/dist/NotificationResourceV1UpdateEventTypeEndpoints/index.js.map +1 -0
- package/dist/api.d.ts +405 -1650
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +127 -101
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +351 -1659
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -100
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.5.5](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/notifications-client-2.5.4...@redhat-cloud-services/notifications-client-2.5.5) (2024-11-18)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@redhat-cloud-services/javascript-clients-shared` updated to version `1.2.5`
|
|
10
|
+
## [2.5.4](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/notifications-client-2.5.3...@redhat-cloud-services/notifications-client-2.5.4) (2024-11-06)
|
|
11
|
+
|
|
5
12
|
## [2.5.3](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/notifications-client-2.5.2...@redhat-cloud-services/notifications-client-2.5.3) (2024-10-21)
|
|
6
13
|
|
|
7
14
|
## [2.5.2](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/notifications-client-2.5.1...@redhat-cloud-services/notifications-client-2.5.2) (2024-10-15)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type NotificationResourceV1UpdateEventTypeEndpointsParams = {
|
|
4
|
+
/**
|
|
5
|
+
* UUID of the eventType to associate with the endpoint(s)
|
|
6
|
+
* @type { string }
|
|
7
|
+
* @memberof NotificationResourceV1UpdateEventTypeEndpointsApi
|
|
8
|
+
*/
|
|
9
|
+
eventTypeId: string;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { Set<string> }
|
|
13
|
+
* @memberof NotificationResourceV1UpdateEventTypeEndpointsApi
|
|
14
|
+
*/
|
|
15
|
+
requestBody?: Set<string>;
|
|
16
|
+
options?: AxiosRequestConfig;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Updates the list of endpoints associated with an event type.
|
|
20
|
+
* @summary Update the list of endpoints for an event type
|
|
21
|
+
* @param {NotificationResourceV1UpdateEventTypeEndpointsParams} config with all available params.
|
|
22
|
+
* @param {*} [options] Override http request option.
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
*/
|
|
25
|
+
export declare const notificationResourceV1UpdateEventTypeEndpointsParamCreator: (...config: ([NotificationResourceV1UpdateEventTypeEndpointsParams] | [string, Set<string>, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
26
|
+
export default notificationResourceV1UpdateEventTypeEndpointsParamCreator;
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../NotificationResourceV1UpdateEventTypeEndpoints/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA+B,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;AAKD;;;;;;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.notificationResourceV1UpdateEventTypeEndpointsParamCreator = 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 isNotificationResourceV1UpdateEventTypeEndpointsObjectParams = 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 {NotificationResourceV1UpdateEventTypeEndpointsParams} config with all available params.
|
|
14
|
+
* @param {*} [options] Override http request option.
|
|
15
|
+
* @throws {RequiredError}
|
|
16
|
+
*/
|
|
17
|
+
var notificationResourceV1UpdateEventTypeEndpointsParamCreator = 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 = isNotificationResourceV1UpdateEventTypeEndpointsObjectParams(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.notificationResourceV1UpdateEventTypeEndpointsParamCreator = notificationResourceV1UpdateEventTypeEndpointsParamCreator;
|
|
48
|
+
exports.default = exports.notificationResourceV1UpdateEventTypeEndpointsParamCreator;
|
|
49
|
+
//# s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