@redhat-cloud-services/notifications-client 0.0.40 → 1.0.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/README.md +8 -8
- package/dist/EventResourceV1GetEvents/index.d.ts +111 -0
- package/dist/EventResourceV1GetEvents/index.js +143 -0
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.d.ts +26 -0
- package/dist/NotificationResourceV1AppendBehaviorGroupToEventType/index.js +93 -0
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.d.ts +21 -0
- package/dist/NotificationResourceV1CreateBehaviorGroup/index.js +93 -0
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.d.ts +20 -0
- package/dist/NotificationResourceV1DeleteBehaviorGroup/index.js +92 -0
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.d.ts +26 -0
- package/dist/NotificationResourceV1DeleteBehaviorGroupFromEventType/index.js +93 -0
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.d.ts +20 -0
- package/dist/NotificationResourceV1FindBehaviorGroupsByBundleId/index.js +92 -0
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.d.ts +26 -0
- package/dist/NotificationResourceV1GetApplicationByNameAndBundleName/index.js +93 -0
- package/dist/NotificationResourceV1GetApplicationsFacets/index.d.ts +20 -0
- package/dist/NotificationResourceV1GetApplicationsFacets/index.js +94 -0
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.d.ts +20 -0
- package/dist/NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint/index.js +92 -0
- package/dist/NotificationResourceV1GetBundleByName/index.d.ts +20 -0
- package/dist/NotificationResourceV1GetBundleByName/index.js +92 -0
- package/dist/NotificationResourceV1GetBundleFacets/index.d.ts +20 -0
- package/dist/NotificationResourceV1GetBundleFacets/index.js +94 -0
- package/dist/NotificationResourceV1GetEventTypes/index.d.ts +62 -0
- package/dist/NotificationResourceV1GetEventTypes/index.js +115 -0
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.d.ts +20 -0
- package/dist/NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup/index.js +92 -0
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.d.ts +32 -0
- package/dist/NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationName/index.js +94 -0
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.d.ts +50 -0
- package/dist/NotificationResourceV1GetLinkedBehaviorGroups/index.js +116 -0
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.d.ts +27 -0
- package/dist/NotificationResourceV1UpdateBehaviorGroup/index.js +94 -0
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.d.ts +26 -0
- package/dist/NotificationResourceV1UpdateBehaviorGroupActions/index.js +94 -0
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.d.ts +26 -0
- package/dist/NotificationResourceV1UpdateEventTypeBehaviors/index.js +94 -0
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.d.ts +13 -0
- package/dist/OrgConfigResourceV1GetDailyDigestTimePreference/index.js +90 -0
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.d.ts +20 -0
- package/dist/OrgConfigResourceV1SaveDailyDigestTimePreference/index.js +93 -0
- package/dist/UserConfigResourceV1GetPreferences/index.d.ts +25 -0
- package/dist/UserConfigResourceV1GetPreferences/index.js +92 -0
- package/dist/UserConfigResourceV1GetSettingsSchema/index.d.ts +19 -0
- package/dist/UserConfigResourceV1GetSettingsSchema/index.js +93 -0
- package/dist/UserConfigResourceV1SaveSettings/index.d.ts +20 -0
- package/dist/UserConfigResourceV1SaveSettings/index.js +92 -0
- package/dist/api.d.ts +2536 -759
- package/dist/api.js +2833 -778
- package/dist/base.d.ts +54 -0
- package/dist/base.js +80 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +252 -0
- package/dist/configuration.d.ts +24 -15
- package/dist/configuration.js +19 -12
- package/dist/index.d.ts +27 -13
- package/dist/index.js +89 -17
- package/dist/types/index.d.ts +1657 -0
- package/dist/types/index.js +90 -0
- package/dist/utils/base.d.ts +84 -0
- package/dist/utils/base.js +251 -0
- package/dist/utils/common.d.ts +54 -0
- package/dist/utils/common.js +241 -0
- package/dist/utils/configuration.d.ts +72 -0
- package/dist/utils/configuration.js +33 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +19 -0
- package/doc/.nojekyll +1 -0
- package/doc/README.md +11 -420
- package/doc/classes/BaseAPI.md +125 -0
- package/doc/classes/Configuration.md +194 -0
- package/doc/classes/RequiredError.md +179 -0
- package/doc/enums/EmailSubscriptionType.md +21 -0
- package/doc/enums/EndpointStatus.md +76 -0
- package/doc/enums/EndpointType.md +65 -0
- package/doc/enums/Environment.md +54 -0
- package/doc/enums/EventLogEntryActionStatus.md +65 -0
- package/doc/enums/HttpType.md +43 -0
- package/doc/enums/NotificationStatus.md +65 -0
- package/doc/enums/Status.md +32 -0
- package/doc/interfaces/AddAccessRequest.md +44 -0
- package/doc/interfaces/AddApplicationRequest.md +74 -0
- package/doc/interfaces/AggregationEmailTemplate.md +164 -0
- package/doc/interfaces/ApiConfig.md +30 -0
- package/doc/interfaces/Application.md +104 -0
- package/doc/interfaces/Application1.md +44 -0
- package/doc/interfaces/ApplicationSettingsValue.md +33 -0
- package/doc/interfaces/ApplicationSettingsValue1.md +48 -0
- package/doc/interfaces/BasicAuthentication.md +44 -0
- package/doc/interfaces/BehaviorGroup.md +149 -0
- package/doc/interfaces/BehaviorGroupAction.md +59 -0
- package/doc/interfaces/BehaviorGroupActionId.md +44 -0
- package/doc/interfaces/Bundle.md +89 -0
- package/doc/interfaces/BundleSettingsValue.md +33 -0
- package/doc/interfaces/BundleSettingsValue1.md +33 -0
- package/doc/interfaces/CamelProperties.md +93 -0
- package/doc/interfaces/ConfigurationParameters.md +89 -0
- package/doc/interfaces/CreateBehaviorGroupRequest.md +104 -0
- package/doc/interfaces/CreateBehaviorGroupResponse.md +104 -0
- package/doc/interfaces/CurrentStatus.md +59 -0
- package/doc/interfaces/DuplicateNameMigrationReport.md +44 -0
- package/doc/interfaces/Endpoint.md +179 -0
- package/doc/interfaces/EndpointPage.md +63 -0
- package/doc/interfaces/EndpointTestRequest.md +29 -0
- package/doc/interfaces/EventLogEntry.md +119 -0
- package/doc/interfaces/EventLogEntryAction.md +125 -0
- package/doc/interfaces/EventType.md +119 -0
- package/doc/interfaces/EventTypeBehavior.md +59 -0
- package/doc/interfaces/EventTypeBehaviorId.md +44 -0
- package/doc/interfaces/EventTypeSettingsValue.md +48 -0
- package/doc/interfaces/Facet.md +74 -0
- package/doc/interfaces/InstantEmailTemplate.md +149 -0
- package/doc/interfaces/InternalApplicationUserPermission.md +59 -0
- package/doc/interfaces/InternalRoleAccess.md +59 -0
- package/doc/interfaces/InternalUserPermissions.md +59 -0
- package/doc/interfaces/MessageValidationResponse.md +33 -0
- package/doc/interfaces/Meta.md +29 -0
- package/doc/interfaces/NotificationHistory.md +155 -0
- package/doc/interfaces/PageBehaviorGroup.md +63 -0
- package/doc/interfaces/PageEventLogEntry.md +63 -0
- package/doc/interfaces/PageEventType.md +63 -0
- package/doc/interfaces/PageNotificationHistory.md +63 -0
- package/doc/interfaces/RenderEmailTemplateRequest.md +44 -0
- package/doc/interfaces/RequestArgs.md +58 -0
- package/doc/interfaces/RequestDefaultBehaviorGroupPropertyList.md +44 -0
- package/doc/interfaces/RequestSystemSubscriptionProperties.md +44 -0
- package/doc/interfaces/ServerInfo.md +29 -0
- package/doc/interfaces/SettingsValues.md +33 -0
- package/doc/interfaces/SettingsValuesByEventType.md +33 -0
- package/doc/interfaces/SystemSubscriptionProperties.md +59 -0
- package/doc/interfaces/Template.md +104 -0
- package/doc/interfaces/TriggerDailyDigestRequest.md +89 -0
- package/doc/interfaces/UpdateBehaviorGroupRequest.md +74 -0
- package/doc/interfaces/UserConfigPreferences.md +44 -0
- package/doc/interfaces/WebhookProperties.md +89 -0
- package/doc/modules.md +1080 -0
- package/git_push.sh +57 -0
- package/openapitools.json +7 -0
- package/package.json +26 -31
- package/postProcess.sh +3 -11
- package/tsconfig-cjs.json +19 -0
- package/tsconfig-esm.json +21 -0
- package/tsconfig.json +18 -0
- package/doc/classes/appregistrationapi.md +0 -123
- package/doc/classes/appsapi.md +0 -149
- package/doc/classes/baseapi.md +0 -86
- package/doc/classes/configuration.md +0 -140
- package/doc/classes/endpointsapi.md +0 -255
- package/doc/classes/filtersapi.md +0 -124
- package/doc/classes/requirederror.md +0 -109
- package/doc/enums/app.typeenum.md +0 -28
- package/doc/enums/endpoint.typeenum.md +0 -28
- package/doc/enums/endpointattributes.lastdeliverystatusenum.md +0 -38
- package/doc/enums/eventtype.typeenum.md +0 -28
- package/doc/enums/inlineresponse2004data.typeenum.md +0 -28
- package/doc/enums/level.typeenum.md +0 -28
- package/doc/interfaces/appattributes.md +0 -54
- package/doc/interfaces/apprelationships.md +0 -36
- package/doc/interfaces/appsregisterapplication.md +0 -50
- package/doc/interfaces/appsregistereventtypes.md +0 -64
- package/doc/interfaces/appsregistereventtypeslevels.md +0 -50
- package/doc/interfaces/configurationparameters.md +0 -84
- package/doc/interfaces/endpointsendpoint.md +0 -78
- package/doc/interfaces/endpointsendpointfilter.md +0 -64
- package/doc/interfaces/endpointsidendpoint.md +0 -78
- package/doc/interfaces/endpointsidendpointfilter.md +0 -78
- package/doc/interfaces/errors.md +0 -36
- package/doc/interfaces/errorserrors.md +0 -120
- package/doc/interfaces/errorssource.md +0 -50
- package/doc/interfaces/eventtypeattributes.md +0 -54
- package/doc/interfaces/eventtyperelationships.md +0 -36
- package/doc/interfaces/inlineobject.md +0 -50
- package/doc/interfaces/inlineobject1.md +0 -36
- package/doc/interfaces/inlineobject2.md +0 -36
- package/doc/interfaces/inlineresponse200.md +0 -50
- package/doc/interfaces/inlineresponse2001.md +0 -36
- package/doc/interfaces/inlineresponse2002.md +0 -50
- package/doc/interfaces/inlineresponse2003.md +0 -64
- package/doc/interfaces/inlineresponse2004.md +0 -36
- package/doc/interfaces/inlineresponse2004dataattributes.md +0 -36
- package/doc/interfaces/inlineresponse2004datarelationships.md +0 -78
- package/doc/interfaces/inlineresponse201.md +0 -36
- package/doc/interfaces/levelattributes.md +0 -38
- package/doc/interfaces/links.md +0 -86
- package/doc/interfaces/metadata.md +0 -70
- package/doc/interfaces/relationship.md +0 -50
- package/doc/interfaces/relationships.md +0 -36
- package/doc/interfaces/requestargs.md +0 -42
- package/doc/modules/app.md +0 -82
- package/doc/modules/endpoint.md +0 -68
- package/doc/modules/endpointattributes.md +0 -118
- package/doc/modules/eventtype.md +0 -82
- package/doc/modules/inlineresponse2004data.md +0 -78
- package/doc/modules/level.md +0 -68
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Javascript client for
|
|
1
|
+
# Javascript client for Notifications API
|
|
2
2
|
If you want to use [RedHatInsights/notifications-backend](https://github.com/RedHatInsights/notifications-backend) you shouldn't use get requests directly, but rather use this client to integrate with this service.
|
|
3
3
|
|
|
4
4
|
## Install
|
|
@@ -19,19 +19,19 @@ To correctly bootstrap this API you should use this config (no need to define it
|
|
|
19
19
|
```JS
|
|
20
20
|
// api.js
|
|
21
21
|
import axios from 'axios';
|
|
22
|
-
import {
|
|
22
|
+
import { NotificationsApi } from '@redhat-cloud-services/notifications-client';
|
|
23
23
|
const instance = axios.create();
|
|
24
24
|
|
|
25
25
|
// BASE_PATH should be set in your constants file
|
|
26
|
-
const
|
|
27
|
-
export
|
|
26
|
+
const notificationsApi = new NotificationsApi(undefined, BASE_PATH, instance);
|
|
27
|
+
export notificationsApi;
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
If you want to add some interceptors you can use axios build in interceptors
|
|
31
31
|
```JS
|
|
32
32
|
// api.js
|
|
33
33
|
import axios from 'axios';
|
|
34
|
-
import {
|
|
34
|
+
import { NotificationsApi } from '@redhat-cloud-services/notifications-client';
|
|
35
35
|
const instance = axios.create();
|
|
36
36
|
|
|
37
37
|
// Request interceptor
|
|
@@ -50,10 +50,10 @@ instance.interceptors.response.use(null, (error) => {
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
// BASE_PATH should be set in your constants file
|
|
53
|
-
const
|
|
54
|
-
export
|
|
53
|
+
const notificationsApi = new NotificationsApi(undefined, BASE_PATH, instance);
|
|
54
|
+
export notificationsApi;
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
## API documentation
|
|
58
58
|
|
|
59
|
-
* [README](doc/README.md)
|
|
59
|
+
* [README](doc/README.md)
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '../utils/base';
|
|
3
|
+
import type { EventLogEntryActionStatus } from '../types';
|
|
4
|
+
export declare type EventResourceV1GetEventsParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { Set<string> }
|
|
8
|
+
* @memberof EventResourceV1GetEventsApi
|
|
9
|
+
*/
|
|
10
|
+
appIds?: Set<string>;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type { Set<string> }
|
|
14
|
+
* @memberof EventResourceV1GetEventsApi
|
|
15
|
+
*/
|
|
16
|
+
bundleIds?: Set<string>;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type { string }
|
|
20
|
+
* @memberof EventResourceV1GetEventsApi
|
|
21
|
+
*/
|
|
22
|
+
endDate?: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type { Set<string> }
|
|
26
|
+
* @memberof EventResourceV1GetEventsApi
|
|
27
|
+
*/
|
|
28
|
+
endpointTypes?: Set<string>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type { string }
|
|
32
|
+
* @memberof EventResourceV1GetEventsApi
|
|
33
|
+
*/
|
|
34
|
+
eventTypeDisplayName?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type { boolean }
|
|
38
|
+
* @memberof EventResourceV1GetEventsApi
|
|
39
|
+
*/
|
|
40
|
+
includeActions?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type { boolean }
|
|
44
|
+
* @memberof EventResourceV1GetEventsApi
|
|
45
|
+
*/
|
|
46
|
+
includeDetails?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type { boolean }
|
|
50
|
+
* @memberof EventResourceV1GetEventsApi
|
|
51
|
+
*/
|
|
52
|
+
includePayload?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type { Set<boolean> }
|
|
56
|
+
* @memberof EventResourceV1GetEventsApi
|
|
57
|
+
*/
|
|
58
|
+
invocationResults?: Set<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type { number }
|
|
62
|
+
* @memberof EventResourceV1GetEventsApi
|
|
63
|
+
*/
|
|
64
|
+
limit?: number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type { number }
|
|
68
|
+
* @memberof EventResourceV1GetEventsApi
|
|
69
|
+
*/
|
|
70
|
+
offset?: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type { number }
|
|
74
|
+
* @memberof EventResourceV1GetEventsApi
|
|
75
|
+
*/
|
|
76
|
+
pageNumber?: number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type { string }
|
|
80
|
+
* @memberof EventResourceV1GetEventsApi
|
|
81
|
+
*/
|
|
82
|
+
sortBy?: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type { string }
|
|
86
|
+
* @memberof EventResourceV1GetEventsApi
|
|
87
|
+
*/
|
|
88
|
+
sortBy2?: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type { string }
|
|
92
|
+
* @memberof EventResourceV1GetEventsApi
|
|
93
|
+
*/
|
|
94
|
+
startDate?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type { Set<EventLogEntryActionStatus> }
|
|
98
|
+
* @memberof EventResourceV1GetEventsApi
|
|
99
|
+
*/
|
|
100
|
+
status?: Set<EventLogEntryActionStatus>;
|
|
101
|
+
options?: AxiosRequestConfig;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Allowed `sort_by` fields are `bundle`, `application`, `event` and `created`. The ordering can be optionally specified by appending `:asc` or `:desc` to the field, e.g. `bundle:desc`. Defaults to `desc` for the `created` field and to `asc` for all other fields.
|
|
105
|
+
* @summary Retrieve the event log entries.
|
|
106
|
+
* @param {EventResourceV1GetEventsParams} config with all available params.
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
export declare const eventResourceV1GetEventsParamCreator: (...config: ([EventResourceV1GetEventsParams] | [Set<string>, Set<string>, string, Set<string>, string, boolean, boolean, boolean, Set<boolean>, number, number, number, string, string, string, Set<EventLogEntryActionStatus>, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
111
|
+
export default eventResourceV1GetEventsParamCreator;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.eventResourceV1GetEventsParamCreator = void 0;
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
var common_1 = require("../utils/common");
|
|
53
|
+
var isEventResourceV1GetEventsObjectParams = function (params) {
|
|
54
|
+
return params.length === 1 && true && true && true && true && true && true && true && true && true && true && true && true && true && true && true && true;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Allowed `sort_by` fields are `bundle`, `application`, `event` and `created`. The ordering can be optionally specified by appending `:asc` or `:desc` to the field, e.g. `bundle:desc`. Defaults to `desc` for the `created` field and to `asc` for all other fields.
|
|
58
|
+
* @summary Retrieve the event log entries.
|
|
59
|
+
* @param {EventResourceV1GetEventsParams} config with all available params.
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
var eventResourceV1GetEventsParamCreator = function () {
|
|
64
|
+
var config = [];
|
|
65
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
66
|
+
config[_i] = arguments[_i];
|
|
67
|
+
}
|
|
68
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
+
var params, appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
70
|
+
return __generator(this, function (_b) {
|
|
71
|
+
params = isEventResourceV1GetEventsObjectParams(config) ? config[0] : ['appIds', 'bundleIds', 'endDate', 'endpointTypes', 'eventTypeDisplayName', 'includeActions', 'includeDetails', 'includePayload', 'invocationResults', 'limit', 'offset', 'pageNumber', 'sortBy', 'sortBy2', 'startDate', 'status', 'options'].reduce(function (acc, curr, index) {
|
|
72
|
+
var _a;
|
|
73
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
74
|
+
}, {});
|
|
75
|
+
appIds = params.appIds, bundleIds = params.bundleIds, endDate = params.endDate, endpointTypes = params.endpointTypes, eventTypeDisplayName = params.eventTypeDisplayName, includeActions = params.includeActions, includeDetails = params.includeDetails, includePayload = params.includePayload, invocationResults = params.invocationResults, limit = params.limit, offset = params.offset, pageNumber = params.pageNumber, sortBy = params.sortBy, sortBy2 = params.sortBy2, startDate = params.startDate, status = params.status, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
76
|
+
localVarPath = "/notifications/events";
|
|
77
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
78
|
+
localVarRequestOptions = __assign({ method: 'GET' }, options);
|
|
79
|
+
localVarHeaderParameter = {};
|
|
80
|
+
localVarQueryParameter = {};
|
|
81
|
+
if (appIds) {
|
|
82
|
+
localVarQueryParameter['appIds'] = Array.from(appIds);
|
|
83
|
+
}
|
|
84
|
+
if (bundleIds) {
|
|
85
|
+
localVarQueryParameter['bundleIds'] = Array.from(bundleIds);
|
|
86
|
+
}
|
|
87
|
+
if (endDate !== undefined) {
|
|
88
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
89
|
+
endDate.toISOString().substr(0, 10) :
|
|
90
|
+
endDate;
|
|
91
|
+
}
|
|
92
|
+
if (endpointTypes) {
|
|
93
|
+
localVarQueryParameter['endpointTypes'] = Array.from(endpointTypes);
|
|
94
|
+
}
|
|
95
|
+
if (eventTypeDisplayName !== undefined) {
|
|
96
|
+
localVarQueryParameter['eventTypeDisplayName'] = eventTypeDisplayName;
|
|
97
|
+
}
|
|
98
|
+
if (includeActions !== undefined) {
|
|
99
|
+
localVarQueryParameter['includeActions'] = includeActions;
|
|
100
|
+
}
|
|
101
|
+
if (includeDetails !== undefined) {
|
|
102
|
+
localVarQueryParameter['includeDetails'] = includeDetails;
|
|
103
|
+
}
|
|
104
|
+
if (includePayload !== undefined) {
|
|
105
|
+
localVarQueryParameter['includePayload'] = includePayload;
|
|
106
|
+
}
|
|
107
|
+
if (invocationResults) {
|
|
108
|
+
localVarQueryParameter['invocationResults'] = Array.from(invocationResults);
|
|
109
|
+
}
|
|
110
|
+
if (limit !== undefined) {
|
|
111
|
+
localVarQueryParameter['limit'] = limit;
|
|
112
|
+
}
|
|
113
|
+
if (offset !== undefined) {
|
|
114
|
+
localVarQueryParameter['offset'] = offset;
|
|
115
|
+
}
|
|
116
|
+
if (pageNumber !== undefined) {
|
|
117
|
+
localVarQueryParameter['pageNumber'] = pageNumber;
|
|
118
|
+
}
|
|
119
|
+
if (sortBy !== undefined) {
|
|
120
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
121
|
+
}
|
|
122
|
+
if (sortBy2 !== undefined) {
|
|
123
|
+
localVarQueryParameter['sort_by'] = sortBy2;
|
|
124
|
+
}
|
|
125
|
+
if (startDate !== undefined) {
|
|
126
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
127
|
+
startDate.toISOString().substr(0, 10) :
|
|
128
|
+
startDate;
|
|
129
|
+
}
|
|
130
|
+
if (status) {
|
|
131
|
+
localVarQueryParameter['status'] = Array.from(status);
|
|
132
|
+
}
|
|
133
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
135
|
+
return [2 /*return*/, {
|
|
136
|
+
urlObj: localVarUrlObj,
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
}];
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
exports.eventResourceV1GetEventsParamCreator = eventResourceV1GetEventsParamCreator;
|
|
143
|
+
exports.default = exports.eventResourceV1GetEventsParamCreator;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '../utils/base';
|
|
3
|
+
export declare type NotificationResourceV1AppendBehaviorGroupToEventTypeParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { string }
|
|
7
|
+
* @memberof NotificationResourceV1AppendBehaviorGroupToEventTypeApi
|
|
8
|
+
*/
|
|
9
|
+
behaviorGroupUuid: string;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { string }
|
|
13
|
+
* @memberof NotificationResourceV1AppendBehaviorGroupToEventTypeApi
|
|
14
|
+
*/
|
|
15
|
+
eventTypeUuid: string;
|
|
16
|
+
options?: AxiosRequestConfig;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @summary Add a behavior group to the given event type.
|
|
21
|
+
* @param {NotificationResourceV1AppendBehaviorGroupToEventTypeParams} config with all available params.
|
|
22
|
+
* @param {*} [options] Override http request option.
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
*/
|
|
25
|
+
export declare const notificationResourceV1AppendBehaviorGroupToEventTypeParamCreator: (...config: ([NotificationResourceV1AppendBehaviorGroupToEventTypeParams] | [string, string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
26
|
+
export default notificationResourceV1AppendBehaviorGroupToEventTypeParamCreator;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.notificationResourceV1AppendBehaviorGroupToEventTypeParamCreator = void 0;
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
var common_1 = require("../utils/common");
|
|
53
|
+
var isNotificationResourceV1AppendBehaviorGroupToEventTypeObjectParams = function (params) {
|
|
54
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'behaviorGroupUuid') && Object.prototype.hasOwnProperty.call(params, 'eventTypeUuid');
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @summary Add a behavior group to the given event type.
|
|
59
|
+
* @param {NotificationResourceV1AppendBehaviorGroupToEventTypeParams} config with all available params.
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
var notificationResourceV1AppendBehaviorGroupToEventTypeParamCreator = function () {
|
|
64
|
+
var config = [];
|
|
65
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
66
|
+
config[_i] = arguments[_i];
|
|
67
|
+
}
|
|
68
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
+
var params, behaviorGroupUuid, eventTypeUuid, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
70
|
+
return __generator(this, function (_b) {
|
|
71
|
+
params = isNotificationResourceV1AppendBehaviorGroupToEventTypeObjectParams(config) ? config[0] : ['behaviorGroupUuid', 'eventTypeUuid', 'options'].reduce(function (acc, curr, index) {
|
|
72
|
+
var _a;
|
|
73
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
74
|
+
}, {});
|
|
75
|
+
behaviorGroupUuid = params.behaviorGroupUuid, eventTypeUuid = params.eventTypeUuid, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
76
|
+
localVarPath = "/notifications/eventTypes/{eventTypeUuid}/behaviorGroups/{behaviorGroupUuid}"
|
|
77
|
+
.replace("{".concat("behaviorGroupUuid", "}"), encodeURIComponent(String(behaviorGroupUuid)))
|
|
78
|
+
.replace("{".concat("eventTypeUuid", "}"), encodeURIComponent(String(eventTypeUuid)));
|
|
79
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
80
|
+
localVarRequestOptions = __assign({ method: 'PUT' }, options);
|
|
81
|
+
localVarHeaderParameter = {};
|
|
82
|
+
localVarQueryParameter = {};
|
|
83
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
85
|
+
return [2 /*return*/, {
|
|
86
|
+
urlObj: localVarUrlObj,
|
|
87
|
+
options: localVarRequestOptions,
|
|
88
|
+
}];
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
exports.notificationResourceV1AppendBehaviorGroupToEventTypeParamCreator = notificationResourceV1AppendBehaviorGroupToEventTypeParamCreator;
|
|
93
|
+
exports.default = exports.notificationResourceV1AppendBehaviorGroupToEventTypeParamCreator;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '../utils/base';
|
|
3
|
+
import type { CreateBehaviorGroupRequest } from '../types';
|
|
4
|
+
export declare type NotificationResourceV1CreateBehaviorGroupParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { CreateBehaviorGroupRequest }
|
|
8
|
+
* @memberof NotificationResourceV1CreateBehaviorGroupApi
|
|
9
|
+
*/
|
|
10
|
+
createBehaviorGroupRequest: CreateBehaviorGroupRequest;
|
|
11
|
+
options?: AxiosRequestConfig;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @summary Create a behavior group - assigning actions and linking to event types as requested
|
|
16
|
+
* @param {NotificationResourceV1CreateBehaviorGroupParams} config with all available params.
|
|
17
|
+
* @param {*} [options] Override http request option.
|
|
18
|
+
* @throws {RequiredError}
|
|
19
|
+
*/
|
|
20
|
+
export declare const notificationResourceV1CreateBehaviorGroupParamCreator: (...config: ([NotificationResourceV1CreateBehaviorGroupParams] | [CreateBehaviorGroupRequest, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
21
|
+
export default notificationResourceV1CreateBehaviorGroupParamCreator;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.notificationResourceV1CreateBehaviorGroupParamCreator = void 0;
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
var common_1 = require("../utils/common");
|
|
53
|
+
var isNotificationResourceV1CreateBehaviorGroupObjectParams = function (params) {
|
|
54
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'createBehaviorGroupRequest');
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @summary Create a behavior group - assigning actions and linking to event types as requested
|
|
59
|
+
* @param {NotificationResourceV1CreateBehaviorGroupParams} config with all available params.
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
var notificationResourceV1CreateBehaviorGroupParamCreator = function () {
|
|
64
|
+
var config = [];
|
|
65
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
66
|
+
config[_i] = arguments[_i];
|
|
67
|
+
}
|
|
68
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
+
var params, createBehaviorGroupRequest, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
70
|
+
return __generator(this, function (_b) {
|
|
71
|
+
params = isNotificationResourceV1CreateBehaviorGroupObjectParams(config) ? config[0] : ['createBehaviorGroupRequest', 'options'].reduce(function (acc, curr, index) {
|
|
72
|
+
var _a;
|
|
73
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
74
|
+
}, {});
|
|
75
|
+
createBehaviorGroupRequest = params.createBehaviorGroupRequest, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
76
|
+
localVarPath = "/notifications/behaviorGroups";
|
|
77
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
78
|
+
localVarRequestOptions = __assign({ method: 'POST' }, options);
|
|
79
|
+
localVarHeaderParameter = {};
|
|
80
|
+
localVarQueryParameter = {};
|
|
81
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
82
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
84
|
+
return [2 /*return*/, {
|
|
85
|
+
urlObj: localVarUrlObj,
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
serializeData: createBehaviorGroupRequest,
|
|
88
|
+
}];
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
exports.notificationResourceV1CreateBehaviorGroupParamCreator = notificationResourceV1CreateBehaviorGroupParamCreator;
|
|
93
|
+
exports.default = exports.notificationResourceV1CreateBehaviorGroupParamCreator;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '../utils/base';
|
|
3
|
+
export declare type NotificationResourceV1DeleteBehaviorGroupParams = {
|
|
4
|
+
/**
|
|
5
|
+
* The UUID of the behavior group to delete
|
|
6
|
+
* @type { string }
|
|
7
|
+
* @memberof NotificationResourceV1DeleteBehaviorGroupApi
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
options?: AxiosRequestConfig;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @summary Delete a behavior group.
|
|
15
|
+
* @param {NotificationResourceV1DeleteBehaviorGroupParams} config with all available params.
|
|
16
|
+
* @param {*} [options] Override http request option.
|
|
17
|
+
* @throws {RequiredError}
|
|
18
|
+
*/
|
|
19
|
+
export declare const notificationResourceV1DeleteBehaviorGroupParamCreator: (...config: ([NotificationResourceV1DeleteBehaviorGroupParams] | [string, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
20
|
+
export default notificationResourceV1DeleteBehaviorGroupParamCreator;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.notificationResourceV1DeleteBehaviorGroupParamCreator = void 0;
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
var common_1 = require("../utils/common");
|
|
53
|
+
var isNotificationResourceV1DeleteBehaviorGroupObjectParams = function (params) {
|
|
54
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'id');
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @summary Delete a behavior group.
|
|
59
|
+
* @param {NotificationResourceV1DeleteBehaviorGroupParams} config with all available params.
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
var notificationResourceV1DeleteBehaviorGroupParamCreator = function () {
|
|
64
|
+
var config = [];
|
|
65
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
66
|
+
config[_i] = arguments[_i];
|
|
67
|
+
}
|
|
68
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
+
var params, id, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
70
|
+
return __generator(this, function (_b) {
|
|
71
|
+
params = isNotificationResourceV1DeleteBehaviorGroupObjectParams(config) ? config[0] : ['id', 'options'].reduce(function (acc, curr, index) {
|
|
72
|
+
var _a;
|
|
73
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
74
|
+
}, {});
|
|
75
|
+
id = params.id, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
76
|
+
localVarPath = "/notifications/behaviorGroups/{id}"
|
|
77
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
78
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
79
|
+
localVarRequestOptions = __assign({ method: 'DELETE' }, options);
|
|
80
|
+
localVarHeaderParameter = {};
|
|
81
|
+
localVarQueryParameter = {};
|
|
82
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
84
|
+
return [2 /*return*/, {
|
|
85
|
+
urlObj: localVarUrlObj,
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
}];
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
exports.notificationResourceV1DeleteBehaviorGroupParamCreator = notificationResourceV1DeleteBehaviorGroupParamCreator;
|
|
92
|
+
exports.default = exports.notificationResourceV1DeleteBehaviorGroupParamCreator;
|