@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.
Files changed (98) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/v2/EventResourceV2GetEvents/index.d.ts +113 -0
  3. package/dist/v2/EventResourceV2GetEvents/index.d.ts.map +1 -0
  4. package/dist/v2/EventResourceV2GetEvents/index.js +98 -0
  5. package/dist/v2/EventResourceV2GetEvents/index.js.map +1 -0
  6. package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.d.ts +28 -0
  7. package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.d.ts.map +1 -0
  8. package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.js +48 -0
  9. package/dist/v2/NotificationResourceV2AppendBehaviorGroupToEventType/index.js.map +1 -0
  10. package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.d.ts +23 -0
  11. package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.d.ts.map +1 -0
  12. package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.js +48 -0
  13. package/dist/v2/NotificationResourceV2CreateBehaviorGroup/index.js.map +1 -0
  14. package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.d.ts +22 -0
  15. package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.d.ts.map +1 -0
  16. package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.js +47 -0
  17. package/dist/v2/NotificationResourceV2DeleteBehaviorGroup/index.js.map +1 -0
  18. package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.d.ts +28 -0
  19. package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.d.ts.map +1 -0
  20. package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.js +48 -0
  21. package/dist/v2/NotificationResourceV2DeleteBehaviorGroupFromEventType/index.js.map +1 -0
  22. package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.d.ts +23 -0
  23. package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.d.ts.map +1 -0
  24. package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.js +47 -0
  25. package/dist/v2/NotificationResourceV2FindBehaviorGroupsByBundleId/index.js.map +1 -0
  26. package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.d.ts +29 -0
  27. package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.d.ts.map +1 -0
  28. package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.js +48 -0
  29. package/dist/v2/NotificationResourceV2GetApplicationByNameAndBundleName/index.js.map +1 -0
  30. package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.d.ts +23 -0
  31. package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.d.ts.map +1 -0
  32. package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.js +49 -0
  33. package/dist/v2/NotificationResourceV2GetApplicationsFacets/index.js.map +1 -0
  34. package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +23 -0
  35. package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts.map +1 -0
  36. package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js +47 -0
  37. package/dist/v2/NotificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js.map +1 -0
  38. package/dist/v2/NotificationResourceV2GetBundleByName/index.d.ts +23 -0
  39. package/dist/v2/NotificationResourceV2GetBundleByName/index.d.ts.map +1 -0
  40. package/dist/v2/NotificationResourceV2GetBundleByName/index.js +47 -0
  41. package/dist/v2/NotificationResourceV2GetBundleByName/index.js.map +1 -0
  42. package/dist/v2/NotificationResourceV2GetBundleFacets/index.d.ts +23 -0
  43. package/dist/v2/NotificationResourceV2GetBundleFacets/index.d.ts.map +1 -0
  44. package/dist/v2/NotificationResourceV2GetBundleFacets/index.js +49 -0
  45. package/dist/v2/NotificationResourceV2GetBundleFacets/index.js.map +1 -0
  46. package/dist/v2/NotificationResourceV2GetEventTypes/index.d.ts +71 -0
  47. package/dist/v2/NotificationResourceV2GetEventTypes/index.d.ts.map +1 -0
  48. package/dist/v2/NotificationResourceV2GetEventTypes/index.js +73 -0
  49. package/dist/v2/NotificationResourceV2GetEventTypes/index.js.map +1 -0
  50. package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +23 -0
  51. package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts.map +1 -0
  52. package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js +47 -0
  53. package/dist/v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js.map +1 -0
  54. package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +35 -0
  55. package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.d.ts.map +1 -0
  56. package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.js +49 -0
  57. package/dist/v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.js.map +1 -0
  58. package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.d.ts +53 -0
  59. package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.d.ts.map +1 -0
  60. package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.js +62 -0
  61. package/dist/v2/NotificationResourceV2GetLinkedBehaviorGroups/index.js.map +1 -0
  62. package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.d.ts +29 -0
  63. package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.d.ts.map +1 -0
  64. package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.js +49 -0
  65. package/dist/v2/NotificationResourceV2UpdateBehaviorGroup/index.js.map +1 -0
  66. package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.d.ts +28 -0
  67. package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.d.ts.map +1 -0
  68. package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.js +49 -0
  69. package/dist/v2/NotificationResourceV2UpdateBehaviorGroupActions/index.js.map +1 -0
  70. package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.d.ts +28 -0
  71. package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.d.ts.map +1 -0
  72. package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.js +49 -0
  73. package/dist/v2/NotificationResourceV2UpdateEventTypeBehaviors/index.js.map +1 -0
  74. package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.d.ts +28 -0
  75. package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.d.ts.map +1 -0
  76. package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.js +49 -0
  77. package/dist/v2/NotificationResourceV2UpdateEventTypeEndpoints/index.js.map +1 -0
  78. package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.d.ts +16 -0
  79. package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.d.ts.map +1 -0
  80. package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.js +46 -0
  81. package/dist/v2/OrgConfigResourceV2GetDailyDigestTimePreference/index.js.map +1 -0
  82. package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.d.ts +22 -0
  83. package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.d.ts.map +1 -0
  84. package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.js +48 -0
  85. package/dist/v2/OrgConfigResourceV2SaveDailyDigestTimePreference/index.js.map +1 -0
  86. package/dist/v2/api.d.ts +50 -0
  87. package/dist/v2/api.d.ts.map +1 -0
  88. package/dist/v2/api.js +34 -0
  89. package/dist/v2/api.js.map +1 -0
  90. package/dist/v2/index.d.ts +22 -0
  91. package/dist/v2/index.d.ts.map +1 -0
  92. package/dist/v2/index.js +46 -0
  93. package/dist/v2/index.js.map +1 -0
  94. package/dist/v2/types/index.d.ts +760 -0
  95. package/dist/v2/types/index.d.ts.map +1 -0
  96. package/dist/v2/types/index.js +42 -0
  97. package/dist/v2/types/index.js.map +1 -0
  98. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetEventTypes/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAsEjU,IAAM,iDAAiD,GAAG,UAAC,MAA+D;IACxH,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AACpG,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,+CAA+C,GAAG;IAAO,gBAA6J;SAA7J,UAA6J,EAA7J,qBAA6J,EAA7J,IAA6J;QAA7J,2BAA6J;;;;;YACzN,MAAM,GAAG,iDAAiD,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,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,CAA8C,CAAC;YACxU,cAAc,GAA2G,MAAM,eAAjH,EAAE,QAAQ,GAAiG,MAAM,SAAvG,EAA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AAS,EAAE;gBACtB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;aAC7C;YAED,IAAI,OAAO,KAAK,SAAS,EAAE;gBACvB,sBAAsB,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC;aAC/C;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;AAvDY,QAAA,+CAA+C,mDAuD3D;AAED,kBAAe,uDAA+C,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 { EventType } from '../types';
4
+ export type NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParams = {
5
+ /**
6
+ * The UUID of the behavior group to check
7
+ * @type { string }
8
+ * @memberof NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupApi
9
+ */
10
+ behaviorGroupId: string;
11
+ options?: AxiosRequestConfig;
12
+ };
13
+ export type NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupReturnType = AxiosPromise<Array<EventType>>;
14
+ /**
15
+ * Lists the event types that will be affected by the removal of a behavior group. Use this endpoint to see which event types will be removed if you delete a behavior group.
16
+ * @summary List the event types affected by the removal of a behavior group
17
+ * @param {NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParams} config with all available params.
18
+ * @param {*} [options] Override http request option.
19
+ * @throws {RequiredError}
20
+ */
21
+ export declare const notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParamCreator: (...config: ([NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParams] | [string, AxiosRequestConfig])) => Promise<RequestArgs>;
22
+ export default notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParamCreator;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/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,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,MAAM,MAAM,yEAAyE,GAAG;IACtF;;;;MAIE;IACF,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,6EAA6E,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AAK3H;;;;;;EAME;AACF,eAAO,MAAM,+EAA+E,cAAqB,CAAC,CAAC,yEAAyE,CAAC,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAoBlP,CAAA;AAED,eAAe,+EAA+E,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParamCreator = 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 isNotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'behaviorGroupId');
9
+ };
10
+ /**
11
+ * Lists the event types that will be affected by the removal of a behavior group. Use this endpoint to see which event types will be removed if you delete a behavior group.
12
+ * @summary List the event types affected by the removal of a behavior group
13
+ * @param {NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParamCreator = 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, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isNotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupObjectParams(config) ? config[0] : ['behaviorGroupId', '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, _a = params.options, options = _a === void 0 ? {} : _a;
30
+ localVarPath = "/notifications/eventTypes/affectedByRemovalOfBehaviorGroup/{behaviorGroupId}"
31
+ .replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)));
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.notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParamCreator = notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParamCreator;
46
+ exports.default = exports.notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroupParamCreator;
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAsBjU,IAAM,iFAAiF,GAAG,UAAC,MAA+F;IACxL,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAC/F,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,+EAA+E,GAAG;IAAO,gBAAuH;SAAvH,UAAuH,EAAvH,qBAAuH,EAAvH,IAAuH;QAAvH,2BAAuH;;;;;YACnN,MAAM,GAAG,iFAAiF,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,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,CAA8E,CAAC;YACjS,eAAe,GAAmB,MAAM,gBAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YAC3C,YAAY,GAAG,8EAA8E;iBAC9F,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,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,+EAA+E,mFAoB3F;AAED,kBAAe,uFAA+E,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { AxiosPromise, AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ import type { EventType } from '../types';
4
+ export type NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParams = {
5
+ /**
6
+ *
7
+ * @type { string }
8
+ * @memberof NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameApi
9
+ */
10
+ applicationName: string;
11
+ /**
12
+ *
13
+ * @type { string }
14
+ * @memberof NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameApi
15
+ */
16
+ bundleName: string;
17
+ /**
18
+ *
19
+ * @type { string }
20
+ * @memberof NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameApi
21
+ */
22
+ eventTypeName: string;
23
+ options?: AxiosRequestConfig;
24
+ };
25
+ export type NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameReturnType = AxiosPromise<EventType>;
26
+ /**
27
+ * Retrieves the details of an event type by specifying the bundle name, the application name, and the event type name.
28
+ * @summary Retrieve an event type by bundle, application and event type names
29
+ * @param {NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParams} config with all available params.
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ export declare const notificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParamCreator: (...config: ([NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParams] | [string, string, string, AxiosRequestConfig])) => Promise<RequestArgs>;
34
+ export default notificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParamCreator;
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/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,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,MAAM,MAAM,0EAA0E,GAAG;IACvF;;;;MAIE;IACF,eAAe,EAAE,MAAM,CAAC;IACxB;;;;MAIE;IACF,UAAU,EAAE,MAAM,CAAC;IACnB;;;;MAIE;IACF,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,8EAA8E,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;AAKrH;;;;;;EAME;AACF,eAAO,MAAM,gFAAgF,cAAqB,CAAC,CAAC,0EAA0E,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAsBpQ,CAAA;AAED,eAAe,gFAAgF,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.notificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParamCreator = 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 isNotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'applicationName') && Object.prototype.hasOwnProperty.call(params, 'bundleName') && Object.prototype.hasOwnProperty.call(params, 'eventTypeName');
9
+ };
10
+ /**
11
+ * Retrieves the details of an event type by specifying the bundle name, the application name, and the event type name.
12
+ * @summary Retrieve an event type by bundle, application and event type names
13
+ * @param {NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var notificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParamCreator = 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, eventTypeName, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isNotificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameObjectParams(config) ? config[0] : ['applicationName', 'bundleName', 'eventTypeName', '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, eventTypeName = params.eventTypeName, _a = params.options, options = _a === void 0 ? {} : _a;
30
+ localVarPath = "/notifications/bundles/{bundleName}/applications/{applicationName}/eventTypes/{eventTypeName}"
31
+ .replace("{".concat("applicationName", "}"), encodeURIComponent(String(applicationName)))
32
+ .replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)))
33
+ .replace("{".concat("eventTypeName", "}"), encodeURIComponent(String(eventTypeName)));
34
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
35
+ localVarRequestOptions = tslib_1.__assign({ method: 'GET' }, options);
36
+ localVarHeaderParameter = {};
37
+ localVarQueryParameter = {};
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.notificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParamCreator = notificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParamCreator;
48
+ exports.default = exports.notificationResourceV2GetEventTypesByNameAndBundleAndApplicationNameParamCreator;
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetEventTypesByNameAndBundleAndApplicationName/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAkCjU,IAAM,kFAAkF,GAAG,UAAC,MAAgG;IAC1L,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,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;AAC9N,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,gFAAgF,GAAG;IAAO,gBAAwI;SAAxI,UAAwI,EAAxI,qBAAwI,EAAxI,IAAwI;QAAxI,2BAAwI;;;;;YACrO,MAAM,GAAG,kFAAkF,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,YAAY,EAAE,eAAe,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,CAA+E,CAAC;YAClU,eAAe,GAA8C,MAAM,gBAApD,EAAE,UAAU,GAAkC,MAAM,WAAxC,EAAE,aAAa,GAAmB,MAAM,cAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACtE,YAAY,GAAG,+FAA+F;iBAC/G,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;iBACpE,OAAO,CAAC,WAAI,eAAe,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAE1E,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;AAtBY,QAAA,gFAAgF,oFAsB5F;AAED,kBAAe,wFAAgF,CAAC"}
@@ -0,0 +1,53 @@
1
+ import type { AxiosPromise, AxiosRequestConfig } from 'axios';
2
+ import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
3
+ import type { PageBehaviorGroup } from '../types';
4
+ export type NotificationResourceV2GetLinkedBehaviorGroupsParams = {
5
+ /**
6
+ *
7
+ * @type { string }
8
+ * @memberof NotificationResourceV2GetLinkedBehaviorGroupsApi
9
+ */
10
+ eventTypeId: string;
11
+ /**
12
+ *
13
+ * @type { number }
14
+ * @memberof NotificationResourceV2GetLinkedBehaviorGroupsApi
15
+ */
16
+ limit?: number;
17
+ /**
18
+ *
19
+ * @type { number }
20
+ * @memberof NotificationResourceV2GetLinkedBehaviorGroupsApi
21
+ */
22
+ offset?: number;
23
+ /**
24
+ *
25
+ * @type { number }
26
+ * @memberof NotificationResourceV2GetLinkedBehaviorGroupsApi
27
+ */
28
+ pageNumber?: number;
29
+ /**
30
+ *
31
+ * @type { string }
32
+ * @memberof NotificationResourceV2GetLinkedBehaviorGroupsApi
33
+ */
34
+ sortBy?: string;
35
+ /**
36
+ *
37
+ * @type { string }
38
+ * @memberof NotificationResourceV2GetLinkedBehaviorGroupsApi
39
+ */
40
+ sortBy2?: string;
41
+ options?: AxiosRequestConfig;
42
+ };
43
+ export type NotificationResourceV2GetLinkedBehaviorGroupsReturnType = AxiosPromise<PageBehaviorGroup>;
44
+ /**
45
+ * Get Linked Behavior Groups
46
+ * @summary Retrieve the behavior groups linked to an event type.
47
+ * @param {NotificationResourceV2GetLinkedBehaviorGroupsParams} config with all available params.
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ export declare const notificationResourceV2GetLinkedBehaviorGroupsParamCreator: (...config: ([NotificationResourceV2GetLinkedBehaviorGroupsParams] | [string, number, number, number, string, string, AxiosRequestConfig])) => Promise<RequestArgs>;
52
+ export default notificationResourceV2GetLinkedBehaviorGroupsParamCreator;
53
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetLinkedBehaviorGroups/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,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,MAAM,mDAAmD,GAAG;IAChE;;;;MAIE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB;;;;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,uDAAuD,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;AAKtG;;;;;;EAME;AACF,eAAO,MAAM,yDAAyD,cAAqB,CAAC,CAAC,mDAAmD,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC,KAAG,QAAQ,WAAW,CAwC9O,CAAA;AAED,eAAe,yDAAyD,CAAC"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.notificationResourceV2GetLinkedBehaviorGroupsParamCreator = 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 isNotificationResourceV2GetLinkedBehaviorGroupsObjectParams = function (params) {
8
+ return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'eventTypeId') && true && true && true && true && true;
9
+ };
10
+ /**
11
+ * Get Linked Behavior Groups
12
+ * @summary Retrieve the behavior groups linked to an event type.
13
+ * @param {NotificationResourceV2GetLinkedBehaviorGroupsParams} config with all available params.
14
+ * @param {*} [options] Override http request option.
15
+ * @throws {RequiredError}
16
+ */
17
+ var notificationResourceV2GetLinkedBehaviorGroupsParamCreator = 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, limit, offset, pageNumber, sortBy, sortBy2, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
24
+ return tslib_1.__generator(this, function (_b) {
25
+ params = isNotificationResourceV2GetLinkedBehaviorGroupsObjectParams(config) ? config[0] : ['eventTypeId', '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
+ eventTypeId = params.eventTypeId, 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/{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: 'GET' }, options);
34
+ localVarHeaderParameter = {};
35
+ localVarQueryParameter = {};
36
+ if (limit !== undefined) {
37
+ localVarQueryParameter['limit'] = limit;
38
+ }
39
+ if (offset !== undefined) {
40
+ localVarQueryParameter['offset'] = offset;
41
+ }
42
+ if (pageNumber !== undefined) {
43
+ localVarQueryParameter['pageNumber'] = pageNumber;
44
+ }
45
+ if (sortBy !== undefined) {
46
+ localVarQueryParameter['sortBy'] = sortBy;
47
+ }
48
+ if (sortBy2 !== undefined) {
49
+ localVarQueryParameter['sort_by'] = sortBy2;
50
+ }
51
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
52
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), options.headers);
53
+ return [2 /*return*/, {
54
+ urlObj: localVarUrlObj,
55
+ options: localVarRequestOptions,
56
+ }];
57
+ });
58
+ });
59
+ };
60
+ exports.notificationResourceV2GetLinkedBehaviorGroupsParamCreator = notificationResourceV2GetLinkedBehaviorGroupsParamCreator;
61
+ exports.default = exports.notificationResourceV2GetLinkedBehaviorGroupsParamCreator;
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v2/NotificationResourceV2GetLinkedBehaviorGroups/index.ts"],"names":[],"mappings":";;;;AAEA,aAAa;AACb,uFAAiU;AAoDjU,IAAM,2DAA2D,GAAG,UAAC,MAAyE;IAC5I,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAA;AACnI,CAAC,CAAA;AACD;;;;;;EAME;AACK,IAAM,yDAAyD,GAAG;IAAO,gBAAyI;SAAzI,UAAyI,EAAzI,qBAAyI,EAAzI,IAAyI;QAAzI,2BAAyI;;;;;YAC/M,MAAM,GAAG,2DAA2D,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,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,CAAwD,CAAC;YACvS,WAAW,GAA+D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AsB;iBAClC,EAAC;;;CACL,CAAA;AAxCY,QAAA,yDAAyD,6DAwCrE;AAED,kBAAe,iEAAyD,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 { 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,EAA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M,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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AA;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,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 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"}