@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/dist/api.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Notifications
|
|
6
|
+
* The API for Notifications
|
|
7
7
|
*
|
|
8
|
-
* OpenAPI
|
|
8
|
+
* The version of the OpenAPI document: v1.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,1073 +16,3128 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
var extendStatics = function (d, b) {
|
|
17
17
|
extendStatics = Object.setPrototypeOf ||
|
|
18
18
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
20
|
return extendStatics(d, b);
|
|
21
21
|
};
|
|
22
22
|
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
23
25
|
extendStatics(d, b);
|
|
24
26
|
function __() { this.constructor = d; }
|
|
25
27
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26
28
|
};
|
|
27
29
|
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (_) try {
|
|
57
|
+
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;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
28
77
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
|
|
78
|
+
exports.NotificationResourceV1GetBundleFacetsApiFp = exports.NotificationResourceV1GetBundleFacetsApiAxiosParamCreator = exports.NotificationResourceV1GetBundleByNameApi = exports.NotificationResourceV1GetBundleByNameApiFactory = exports.NotificationResourceV1GetBundleByNameApiFp = exports.NotificationResourceV1GetBundleByNameApiAxiosParamCreator = exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi = exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFactory = exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp = exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator = exports.NotificationResourceV1GetApplicationsFacetsApi = exports.NotificationResourceV1GetApplicationsFacetsApiFactory = exports.NotificationResourceV1GetApplicationsFacetsApiFp = exports.NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator = exports.NotificationResourceV1GetApplicationByNameAndBundleNameApi = exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFactory = exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFp = exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator = exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApi = exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFactory = exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp = exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator = exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi = exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFactory = exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp = exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator = exports.NotificationResourceV1DeleteBehaviorGroupApi = exports.NotificationResourceV1DeleteBehaviorGroupApiFactory = exports.NotificationResourceV1DeleteBehaviorGroupApiFp = exports.NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator = exports.NotificationResourceV1CreateBehaviorGroupApi = exports.NotificationResourceV1CreateBehaviorGroupApiFactory = exports.NotificationResourceV1CreateBehaviorGroupApiFp = exports.NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator = exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApi = exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFactory = exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp = exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator = exports.EventResourceV1GetEventsApi = exports.EventResourceV1GetEventsApiFactory = exports.EventResourceV1GetEventsApiFp = exports.EventResourceV1GetEventsApiAxiosParamCreator = exports.Status = exports.NotificationStatus = exports.HttpType = exports.EventLogEntryActionStatus = exports.Environment = exports.EndpointType = exports.EndpointStatus = exports.EmailSubscriptionType = void 0;
|
|
79
|
+
exports.UserConfigResourceV1SaveSettingsApi = exports.UserConfigResourceV1SaveSettingsApiFactory = exports.UserConfigResourceV1SaveSettingsApiFp = exports.UserConfigResourceV1SaveSettingsApiAxiosParamCreator = exports.UserConfigResourceV1GetSettingsSchemaApi = exports.UserConfigResourceV1GetSettingsSchemaApiFactory = exports.UserConfigResourceV1GetSettingsSchemaApiFp = exports.UserConfigResourceV1GetSettingsSchemaApiAxiosParamCreator = exports.UserConfigResourceV1GetPreferencesApi = exports.UserConfigResourceV1GetPreferencesApiFactory = exports.UserConfigResourceV1GetPreferencesApiFp = exports.UserConfigResourceV1GetPreferencesApiAxiosParamCreator = exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApi = exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFactory = exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp = exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator = exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApi = exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFactory = exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp = exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator = exports.NotificationResourceV1UpdateEventTypeBehaviorsApi = exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFactory = exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFp = exports.NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator = exports.NotificationResourceV1UpdateBehaviorGroupActionsApi = exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFactory = exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFp = exports.NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator = exports.NotificationResourceV1UpdateBehaviorGroupApi = exports.NotificationResourceV1UpdateBehaviorGroupApiFactory = exports.NotificationResourceV1UpdateBehaviorGroupApiFp = exports.NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator = exports.NotificationResourceV1GetLinkedBehaviorGroupsApi = exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFactory = exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFp = exports.NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator = exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi = exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFactory = exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp = exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator = exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi = exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFactory = exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp = exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator = exports.NotificationResourceV1GetEventTypesApi = exports.NotificationResourceV1GetEventTypesApiFactory = exports.NotificationResourceV1GetEventTypesApiFp = exports.NotificationResourceV1GetEventTypesApiAxiosParamCreator = exports.NotificationResourceV1GetBundleFacetsApi = exports.NotificationResourceV1GetBundleFacetsApiFactory = void 0;
|
|
30
80
|
var axios_1 = require("axios");
|
|
31
|
-
|
|
81
|
+
// Some imports not used depending on template conditions
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
var common_1 = require("./common");
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var base_1 = require("./base");
|
|
32
86
|
/**
|
|
33
87
|
*
|
|
34
88
|
* @export
|
|
89
|
+
* @enum {string}
|
|
35
90
|
*/
|
|
36
|
-
exports.
|
|
37
|
-
|
|
38
|
-
ssv: " ",
|
|
39
|
-
tsv: "\t",
|
|
40
|
-
pipes: "|",
|
|
91
|
+
exports.EmailSubscriptionType = {
|
|
92
|
+
Daily: 'DAILY'
|
|
41
93
|
};
|
|
42
94
|
/**
|
|
43
95
|
*
|
|
44
96
|
* @export
|
|
45
|
-
* @
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
this.basePath = configuration.basePath || this.basePath;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return BaseAPI;
|
|
59
|
-
}());
|
|
60
|
-
exports.BaseAPI = BaseAPI;
|
|
61
|
-
;
|
|
97
|
+
* @enum {string}
|
|
98
|
+
*/
|
|
99
|
+
exports.EndpointStatus = {
|
|
100
|
+
Ready: 'READY',
|
|
101
|
+
Unknown: 'UNKNOWN',
|
|
102
|
+
New: 'NEW',
|
|
103
|
+
Provisioning: 'PROVISIONING',
|
|
104
|
+
Deleting: 'DELETING',
|
|
105
|
+
Failed: 'FAILED'
|
|
106
|
+
};
|
|
62
107
|
/**
|
|
63
108
|
*
|
|
64
109
|
* @export
|
|
65
|
-
* @
|
|
66
|
-
* @extends {Error}
|
|
110
|
+
* @enum {string}
|
|
67
111
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
112
|
+
exports.EndpointType = {
|
|
113
|
+
Webhook: 'webhook',
|
|
114
|
+
EmailSubscription: 'email_subscription',
|
|
115
|
+
Camel: 'camel',
|
|
116
|
+
Ansible: 'ansible',
|
|
117
|
+
Drawer: 'drawer'
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @enum {string}
|
|
123
|
+
*/
|
|
124
|
+
exports.Environment = {
|
|
125
|
+
Prod: 'PROD',
|
|
126
|
+
Stage: 'STAGE',
|
|
127
|
+
Ephemeral: 'EPHEMERAL',
|
|
128
|
+
LocalServer: 'LOCAL_SERVER'
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @export
|
|
133
|
+
* @enum {string}
|
|
134
|
+
*/
|
|
135
|
+
exports.EventLogEntryActionStatus = {
|
|
136
|
+
Sent: 'SENT',
|
|
137
|
+
Success: 'SUCCESS',
|
|
138
|
+
Processing: 'PROCESSING',
|
|
139
|
+
Failed: 'FAILED',
|
|
140
|
+
Unknown: 'UNKNOWN'
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @export
|
|
145
|
+
* @enum {string}
|
|
146
|
+
*/
|
|
147
|
+
exports.HttpType = {
|
|
148
|
+
Get: 'GET',
|
|
149
|
+
Post: 'POST',
|
|
150
|
+
Put: 'PUT'
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @export
|
|
155
|
+
* @enum {string}
|
|
156
|
+
*/
|
|
157
|
+
exports.NotificationStatus = {
|
|
158
|
+
FailedInternal: 'FAILED_INTERNAL',
|
|
159
|
+
FailedExternal: 'FAILED_EXTERNAL',
|
|
160
|
+
Processing: 'PROCESSING',
|
|
161
|
+
Sent: 'SENT',
|
|
162
|
+
Success: 'SUCCESS'
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @export
|
|
167
|
+
* @enum {string}
|
|
168
|
+
*/
|
|
169
|
+
exports.Status = {
|
|
170
|
+
Up: 'UP',
|
|
171
|
+
Maintenance: 'MAINTENANCE'
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* EventResourceV1GetEventsApi - axios parameter creator
|
|
175
|
+
* @export
|
|
176
|
+
*/
|
|
177
|
+
var EventResourceV1GetEventsApiAxiosParamCreator = function (configuration) {
|
|
178
|
+
var _this = this;
|
|
179
|
+
return {
|
|
180
|
+
/**
|
|
181
|
+
* 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.
|
|
182
|
+
* @summary Retrieve the event log entries.
|
|
183
|
+
* @param {Set<string>} [appIds]
|
|
184
|
+
* @param {Set<string>} [bundleIds]
|
|
185
|
+
* @param {string} [endDate]
|
|
186
|
+
* @param {Set<string>} [endpointTypes]
|
|
187
|
+
* @param {string} [eventTypeDisplayName]
|
|
188
|
+
* @param {boolean} [includeActions]
|
|
189
|
+
* @param {boolean} [includeDetails]
|
|
190
|
+
* @param {boolean} [includePayload]
|
|
191
|
+
* @param {Set<boolean>} [invocationResults]
|
|
192
|
+
* @param {number} [limit]
|
|
193
|
+
* @param {number} [offset]
|
|
194
|
+
* @param {number} [pageNumber]
|
|
195
|
+
* @param {string} [sortBy]
|
|
196
|
+
* @param {string} [sortBy2]
|
|
197
|
+
* @param {string} [startDate]
|
|
198
|
+
* @param {Set<EventLogEntryActionStatus>} [status]
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
eventResourceV1GetEvents: function (appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options) {
|
|
203
|
+
if (options === void 0) { options = {}; }
|
|
204
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
205
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
localVarPath = "/notifications/events";
|
|
208
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
209
|
+
if (configuration) {
|
|
210
|
+
baseOptions = configuration.baseOptions;
|
|
211
|
+
}
|
|
212
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
213
|
+
localVarHeaderParameter = {};
|
|
214
|
+
localVarQueryParameter = {};
|
|
215
|
+
if (appIds) {
|
|
216
|
+
localVarQueryParameter['appIds'] = Array.from(appIds);
|
|
217
|
+
}
|
|
218
|
+
if (bundleIds) {
|
|
219
|
+
localVarQueryParameter['bundleIds'] = Array.from(bundleIds);
|
|
220
|
+
}
|
|
221
|
+
if (endDate !== undefined) {
|
|
222
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
223
|
+
endDate.toISOString().substring(0, 10) :
|
|
224
|
+
endDate;
|
|
225
|
+
}
|
|
226
|
+
if (endpointTypes) {
|
|
227
|
+
localVarQueryParameter['endpointTypes'] = Array.from(endpointTypes);
|
|
228
|
+
}
|
|
229
|
+
if (eventTypeDisplayName !== undefined) {
|
|
230
|
+
localVarQueryParameter['eventTypeDisplayName'] = eventTypeDisplayName;
|
|
231
|
+
}
|
|
232
|
+
if (includeActions !== undefined) {
|
|
233
|
+
localVarQueryParameter['includeActions'] = includeActions;
|
|
234
|
+
}
|
|
235
|
+
if (includeDetails !== undefined) {
|
|
236
|
+
localVarQueryParameter['includeDetails'] = includeDetails;
|
|
237
|
+
}
|
|
238
|
+
if (includePayload !== undefined) {
|
|
239
|
+
localVarQueryParameter['includePayload'] = includePayload;
|
|
240
|
+
}
|
|
241
|
+
if (invocationResults) {
|
|
242
|
+
localVarQueryParameter['invocationResults'] = Array.from(invocationResults);
|
|
243
|
+
}
|
|
244
|
+
if (limit !== undefined) {
|
|
245
|
+
localVarQueryParameter['limit'] = limit;
|
|
246
|
+
}
|
|
247
|
+
if (offset !== undefined) {
|
|
248
|
+
localVarQueryParameter['offset'] = offset;
|
|
249
|
+
}
|
|
250
|
+
if (pageNumber !== undefined) {
|
|
251
|
+
localVarQueryParameter['pageNumber'] = pageNumber;
|
|
252
|
+
}
|
|
253
|
+
if (sortBy !== undefined) {
|
|
254
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
255
|
+
}
|
|
256
|
+
if (sortBy2 !== undefined) {
|
|
257
|
+
localVarQueryParameter['sort_by'] = sortBy2;
|
|
258
|
+
}
|
|
259
|
+
if (startDate !== undefined) {
|
|
260
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
261
|
+
startDate.toISOString().substring(0, 10) :
|
|
262
|
+
startDate;
|
|
263
|
+
}
|
|
264
|
+
if (status) {
|
|
265
|
+
localVarQueryParameter['status'] = Array.from(status);
|
|
266
|
+
}
|
|
267
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
268
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
+
return [2 /*return*/, {
|
|
271
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
272
|
+
options: localVarRequestOptions,
|
|
273
|
+
}];
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
},
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
exports.EventResourceV1GetEventsApiAxiosParamCreator = EventResourceV1GetEventsApiAxiosParamCreator;
|
|
280
|
+
/**
|
|
281
|
+
* EventResourceV1GetEventsApi - functional programming interface
|
|
282
|
+
* @export
|
|
283
|
+
*/
|
|
284
|
+
var EventResourceV1GetEventsApiFp = function (configuration) {
|
|
285
|
+
var localVarAxiosParamCreator = (0, exports.EventResourceV1GetEventsApiAxiosParamCreator)(configuration);
|
|
286
|
+
return {
|
|
287
|
+
/**
|
|
288
|
+
* 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.
|
|
289
|
+
* @summary Retrieve the event log entries.
|
|
290
|
+
* @param {Set<string>} [appIds]
|
|
291
|
+
* @param {Set<string>} [bundleIds]
|
|
292
|
+
* @param {string} [endDate]
|
|
293
|
+
* @param {Set<string>} [endpointTypes]
|
|
294
|
+
* @param {string} [eventTypeDisplayName]
|
|
295
|
+
* @param {boolean} [includeActions]
|
|
296
|
+
* @param {boolean} [includeDetails]
|
|
297
|
+
* @param {boolean} [includePayload]
|
|
298
|
+
* @param {Set<boolean>} [invocationResults]
|
|
299
|
+
* @param {number} [limit]
|
|
300
|
+
* @param {number} [offset]
|
|
301
|
+
* @param {number} [pageNumber]
|
|
302
|
+
* @param {string} [sortBy]
|
|
303
|
+
* @param {string} [sortBy2]
|
|
304
|
+
* @param {string} [startDate]
|
|
305
|
+
* @param {Set<EventLogEntryActionStatus>} [status]
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
eventResourceV1GetEvents: function (appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
311
|
+
var localVarAxiosArgs;
|
|
312
|
+
return __generator(this, function (_a) {
|
|
313
|
+
switch (_a.label) {
|
|
314
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.eventResourceV1GetEvents(appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options)];
|
|
315
|
+
case 1:
|
|
316
|
+
localVarAxiosArgs = _a.sent();
|
|
317
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
},
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
exports.EventResourceV1GetEventsApiFp = EventResourceV1GetEventsApiFp;
|
|
325
|
+
/**
|
|
326
|
+
* EventResourceV1GetEventsApi - factory interface
|
|
327
|
+
* @export
|
|
328
|
+
*/
|
|
329
|
+
var EventResourceV1GetEventsApiFactory = function (configuration, basePath, axios) {
|
|
330
|
+
var localVarFp = (0, exports.EventResourceV1GetEventsApiFp)(configuration);
|
|
331
|
+
return {
|
|
332
|
+
/**
|
|
333
|
+
* 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.
|
|
334
|
+
* @summary Retrieve the event log entries.
|
|
335
|
+
* @param {Set<string>} [appIds]
|
|
336
|
+
* @param {Set<string>} [bundleIds]
|
|
337
|
+
* @param {string} [endDate]
|
|
338
|
+
* @param {Set<string>} [endpointTypes]
|
|
339
|
+
* @param {string} [eventTypeDisplayName]
|
|
340
|
+
* @param {boolean} [includeActions]
|
|
341
|
+
* @param {boolean} [includeDetails]
|
|
342
|
+
* @param {boolean} [includePayload]
|
|
343
|
+
* @param {Set<boolean>} [invocationResults]
|
|
344
|
+
* @param {number} [limit]
|
|
345
|
+
* @param {number} [offset]
|
|
346
|
+
* @param {number} [pageNumber]
|
|
347
|
+
* @param {string} [sortBy]
|
|
348
|
+
* @param {string} [sortBy2]
|
|
349
|
+
* @param {string} [startDate]
|
|
350
|
+
* @param {Set<EventLogEntryActionStatus>} [status]
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
eventResourceV1GetEvents: function (appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options) {
|
|
355
|
+
return localVarFp.eventResourceV1GetEvents(appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options).then(function (request) { return request(axios, basePath); });
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
exports.EventResourceV1GetEventsApiFactory = EventResourceV1GetEventsApiFactory;
|
|
79
360
|
/**
|
|
361
|
+
* EventResourceV1GetEventsApi - object-oriented interface
|
|
80
362
|
* @export
|
|
81
|
-
* @
|
|
363
|
+
* @class EventResourceV1GetEventsApi
|
|
364
|
+
* @extends {BaseAPI}
|
|
82
365
|
*/
|
|
83
|
-
var
|
|
84
|
-
(
|
|
366
|
+
var EventResourceV1GetEventsApi = /** @class */ (function (_super) {
|
|
367
|
+
__extends(EventResourceV1GetEventsApi, _super);
|
|
368
|
+
function EventResourceV1GetEventsApi() {
|
|
369
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
370
|
+
}
|
|
85
371
|
/**
|
|
86
|
-
*
|
|
87
|
-
* @
|
|
372
|
+
* 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.
|
|
373
|
+
* @summary Retrieve the event log entries.
|
|
374
|
+
* @param {Set<string>} [appIds]
|
|
375
|
+
* @param {Set<string>} [bundleIds]
|
|
376
|
+
* @param {string} [endDate]
|
|
377
|
+
* @param {Set<string>} [endpointTypes]
|
|
378
|
+
* @param {string} [eventTypeDisplayName]
|
|
379
|
+
* @param {boolean} [includeActions]
|
|
380
|
+
* @param {boolean} [includeDetails]
|
|
381
|
+
* @param {boolean} [includePayload]
|
|
382
|
+
* @param {Set<boolean>} [invocationResults]
|
|
383
|
+
* @param {number} [limit]
|
|
384
|
+
* @param {number} [offset]
|
|
385
|
+
* @param {number} [pageNumber]
|
|
386
|
+
* @param {string} [sortBy]
|
|
387
|
+
* @param {string} [sortBy2]
|
|
388
|
+
* @param {string} [startDate]
|
|
389
|
+
* @param {Set<EventLogEntryActionStatus>} [status]
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
* @memberof EventResourceV1GetEventsApi
|
|
88
393
|
*/
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
394
|
+
EventResourceV1GetEventsApi.prototype.eventResourceV1GetEvents = function (appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options) {
|
|
395
|
+
var _this = this;
|
|
396
|
+
return (0, exports.EventResourceV1GetEventsApiFp)(this.configuration).eventResourceV1GetEvents(appIds, bundleIds, endDate, endpointTypes, eventTypeDisplayName, includeActions, includeDetails, includePayload, invocationResults, limit, offset, pageNumber, sortBy, sortBy2, startDate, status, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
397
|
+
};
|
|
398
|
+
return EventResourceV1GetEventsApi;
|
|
399
|
+
}(base_1.BaseAPI));
|
|
400
|
+
exports.EventResourceV1GetEventsApi = EventResourceV1GetEventsApi;
|
|
401
|
+
/**
|
|
402
|
+
* NotificationResourceV1AppendBehaviorGroupToEventTypeApi - axios parameter creator
|
|
403
|
+
* @export
|
|
404
|
+
*/
|
|
405
|
+
var NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator = function (configuration) {
|
|
406
|
+
var _this = this;
|
|
407
|
+
return {
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @summary Add a behavior group to the given event type.
|
|
411
|
+
* @param {string} behaviorGroupUuid
|
|
412
|
+
* @param {string} eventTypeUuid
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
notificationResourceV1AppendBehaviorGroupToEventType: function (behaviorGroupUuid, eventTypeUuid, options) {
|
|
417
|
+
if (options === void 0) { options = {}; }
|
|
418
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
419
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
// verify required parameter 'behaviorGroupUuid' is not null or undefined
|
|
422
|
+
(0, common_1.assertParamExists)('notificationResourceV1AppendBehaviorGroupToEventType', 'behaviorGroupUuid', behaviorGroupUuid);
|
|
423
|
+
// verify required parameter 'eventTypeUuid' is not null or undefined
|
|
424
|
+
(0, common_1.assertParamExists)('notificationResourceV1AppendBehaviorGroupToEventType', 'eventTypeUuid', eventTypeUuid);
|
|
425
|
+
localVarPath = "/notifications/eventTypes/{eventTypeUuid}/behaviorGroups/{behaviorGroupUuid}"
|
|
426
|
+
.replace("{".concat("behaviorGroupUuid", "}"), encodeURIComponent(String(behaviorGroupUuid)))
|
|
427
|
+
.replace("{".concat("eventTypeUuid", "}"), encodeURIComponent(String(eventTypeUuid)));
|
|
428
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
429
|
+
if (configuration) {
|
|
430
|
+
baseOptions = configuration.baseOptions;
|
|
431
|
+
}
|
|
432
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
433
|
+
localVarHeaderParameter = {};
|
|
434
|
+
localVarQueryParameter = {};
|
|
435
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
436
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
437
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
438
|
+
return [2 /*return*/, {
|
|
439
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
440
|
+
options: localVarRequestOptions,
|
|
441
|
+
}];
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
},
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator = NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator;
|
|
448
|
+
/**
|
|
449
|
+
* NotificationResourceV1AppendBehaviorGroupToEventTypeApi - functional programming interface
|
|
450
|
+
* @export
|
|
451
|
+
*/
|
|
452
|
+
var NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp = function (configuration) {
|
|
453
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiAxiosParamCreator)(configuration);
|
|
454
|
+
return {
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @summary Add a behavior group to the given event type.
|
|
458
|
+
* @param {string} behaviorGroupUuid
|
|
459
|
+
* @param {string} eventTypeUuid
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
notificationResourceV1AppendBehaviorGroupToEventType: function (behaviorGroupUuid, eventTypeUuid, options) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
465
|
+
var localVarAxiosArgs;
|
|
466
|
+
return __generator(this, function (_a) {
|
|
467
|
+
switch (_a.label) {
|
|
468
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1AppendBehaviorGroupToEventType(behaviorGroupUuid, eventTypeUuid, options)];
|
|
469
|
+
case 1:
|
|
470
|
+
localVarAxiosArgs = _a.sent();
|
|
471
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
},
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp = NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp;
|
|
479
|
+
/**
|
|
480
|
+
* NotificationResourceV1AppendBehaviorGroupToEventTypeApi - factory interface
|
|
481
|
+
* @export
|
|
482
|
+
*/
|
|
483
|
+
var NotificationResourceV1AppendBehaviorGroupToEventTypeApiFactory = function (configuration, basePath, axios) {
|
|
484
|
+
var localVarFp = (0, exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp)(configuration);
|
|
485
|
+
return {
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @summary Add a behavior group to the given event type.
|
|
489
|
+
* @param {string} behaviorGroupUuid
|
|
490
|
+
* @param {string} eventTypeUuid
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
notificationResourceV1AppendBehaviorGroupToEventType: function (behaviorGroupUuid, eventTypeUuid, options) {
|
|
495
|
+
return localVarFp.notificationResourceV1AppendBehaviorGroupToEventType(behaviorGroupUuid, eventTypeUuid, options).then(function (request) { return request(axios, basePath); });
|
|
496
|
+
},
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFactory = NotificationResourceV1AppendBehaviorGroupToEventTypeApiFactory;
|
|
94
500
|
/**
|
|
501
|
+
* NotificationResourceV1AppendBehaviorGroupToEventTypeApi - object-oriented interface
|
|
95
502
|
* @export
|
|
96
|
-
* @
|
|
503
|
+
* @class NotificationResourceV1AppendBehaviorGroupToEventTypeApi
|
|
504
|
+
* @extends {BaseAPI}
|
|
97
505
|
*/
|
|
98
|
-
var
|
|
99
|
-
(
|
|
506
|
+
var NotificationResourceV1AppendBehaviorGroupToEventTypeApi = /** @class */ (function (_super) {
|
|
507
|
+
__extends(NotificationResourceV1AppendBehaviorGroupToEventTypeApi, _super);
|
|
508
|
+
function NotificationResourceV1AppendBehaviorGroupToEventTypeApi() {
|
|
509
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
510
|
+
}
|
|
100
511
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @
|
|
512
|
+
*
|
|
513
|
+
* @summary Add a behavior group to the given event type.
|
|
514
|
+
* @param {string} behaviorGroupUuid
|
|
515
|
+
* @param {string} eventTypeUuid
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
* @memberof NotificationResourceV1AppendBehaviorGroupToEventTypeApi
|
|
103
519
|
*/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
520
|
+
NotificationResourceV1AppendBehaviorGroupToEventTypeApi.prototype.notificationResourceV1AppendBehaviorGroupToEventType = function (behaviorGroupUuid, eventTypeUuid, options) {
|
|
521
|
+
var _this = this;
|
|
522
|
+
return (0, exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApiFp)(this.configuration).notificationResourceV1AppendBehaviorGroupToEventType(behaviorGroupUuid, eventTypeUuid, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
523
|
+
};
|
|
524
|
+
return NotificationResourceV1AppendBehaviorGroupToEventTypeApi;
|
|
525
|
+
}(base_1.BaseAPI));
|
|
526
|
+
exports.NotificationResourceV1AppendBehaviorGroupToEventTypeApi = NotificationResourceV1AppendBehaviorGroupToEventTypeApi;
|
|
527
|
+
/**
|
|
528
|
+
* NotificationResourceV1CreateBehaviorGroupApi - axios parameter creator
|
|
529
|
+
* @export
|
|
530
|
+
*/
|
|
531
|
+
var NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator = function (configuration) {
|
|
532
|
+
var _this = this;
|
|
533
|
+
return {
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @summary Create a behavior group - assigning actions and linking to event types as requested
|
|
537
|
+
* @param {CreateBehaviorGroupRequest} createBehaviorGroupRequest
|
|
538
|
+
* @param {*} [options] Override http request option.
|
|
539
|
+
* @throws {RequiredError}
|
|
540
|
+
*/
|
|
541
|
+
notificationResourceV1CreateBehaviorGroup: function (createBehaviorGroupRequest, options) {
|
|
542
|
+
if (options === void 0) { options = {}; }
|
|
543
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
544
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
545
|
+
return __generator(this, function (_a) {
|
|
546
|
+
// verify required parameter 'createBehaviorGroupRequest' is not null or undefined
|
|
547
|
+
(0, common_1.assertParamExists)('notificationResourceV1CreateBehaviorGroup', 'createBehaviorGroupRequest', createBehaviorGroupRequest);
|
|
548
|
+
localVarPath = "/notifications/behaviorGroups";
|
|
549
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
550
|
+
if (configuration) {
|
|
551
|
+
baseOptions = configuration.baseOptions;
|
|
552
|
+
}
|
|
553
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
554
|
+
localVarHeaderParameter = {};
|
|
555
|
+
localVarQueryParameter = {};
|
|
556
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
557
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
558
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
559
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
560
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBehaviorGroupRequest, localVarRequestOptions, configuration);
|
|
561
|
+
return [2 /*return*/, {
|
|
562
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
563
|
+
options: localVarRequestOptions,
|
|
564
|
+
}];
|
|
565
|
+
});
|
|
566
|
+
});
|
|
567
|
+
},
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
exports.NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator = NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator;
|
|
571
|
+
/**
|
|
572
|
+
* NotificationResourceV1CreateBehaviorGroupApi - functional programming interface
|
|
573
|
+
* @export
|
|
574
|
+
*/
|
|
575
|
+
var NotificationResourceV1CreateBehaviorGroupApiFp = function (configuration) {
|
|
576
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1CreateBehaviorGroupApiAxiosParamCreator)(configuration);
|
|
577
|
+
return {
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @summary Create a behavior group - assigning actions and linking to event types as requested
|
|
581
|
+
* @param {CreateBehaviorGroupRequest} createBehaviorGroupRequest
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
notificationResourceV1CreateBehaviorGroup: function (createBehaviorGroupRequest, options) {
|
|
586
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
587
|
+
var localVarAxiosArgs;
|
|
588
|
+
return __generator(this, function (_a) {
|
|
589
|
+
switch (_a.label) {
|
|
590
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1CreateBehaviorGroup(createBehaviorGroupRequest, options)];
|
|
591
|
+
case 1:
|
|
592
|
+
localVarAxiosArgs = _a.sent();
|
|
593
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
});
|
|
597
|
+
},
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
exports.NotificationResourceV1CreateBehaviorGroupApiFp = NotificationResourceV1CreateBehaviorGroupApiFp;
|
|
601
|
+
/**
|
|
602
|
+
* NotificationResourceV1CreateBehaviorGroupApi - factory interface
|
|
603
|
+
* @export
|
|
604
|
+
*/
|
|
605
|
+
var NotificationResourceV1CreateBehaviorGroupApiFactory = function (configuration, basePath, axios) {
|
|
606
|
+
var localVarFp = (0, exports.NotificationResourceV1CreateBehaviorGroupApiFp)(configuration);
|
|
607
|
+
return {
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @summary Create a behavior group - assigning actions and linking to event types as requested
|
|
611
|
+
* @param {CreateBehaviorGroupRequest} createBehaviorGroupRequest
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
notificationResourceV1CreateBehaviorGroup: function (createBehaviorGroupRequest, options) {
|
|
616
|
+
return localVarFp.notificationResourceV1CreateBehaviorGroup(createBehaviorGroupRequest, options).then(function (request) { return request(axios, basePath); });
|
|
617
|
+
},
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
exports.NotificationResourceV1CreateBehaviorGroupApiFactory = NotificationResourceV1CreateBehaviorGroupApiFactory;
|
|
109
621
|
/**
|
|
622
|
+
* NotificationResourceV1CreateBehaviorGroupApi - object-oriented interface
|
|
110
623
|
* @export
|
|
111
|
-
* @
|
|
624
|
+
* @class NotificationResourceV1CreateBehaviorGroupApi
|
|
625
|
+
* @extends {BaseAPI}
|
|
112
626
|
*/
|
|
113
|
-
var
|
|
114
|
-
(
|
|
627
|
+
var NotificationResourceV1CreateBehaviorGroupApi = /** @class */ (function (_super) {
|
|
628
|
+
__extends(NotificationResourceV1CreateBehaviorGroupApi, _super);
|
|
629
|
+
function NotificationResourceV1CreateBehaviorGroupApi() {
|
|
630
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
631
|
+
}
|
|
115
632
|
/**
|
|
116
|
-
*
|
|
117
|
-
* @
|
|
633
|
+
*
|
|
634
|
+
* @summary Create a behavior group - assigning actions and linking to event types as requested
|
|
635
|
+
* @param {CreateBehaviorGroupRequest} createBehaviorGroupRequest
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
* @memberof NotificationResourceV1CreateBehaviorGroupApi
|
|
118
639
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
640
|
+
NotificationResourceV1CreateBehaviorGroupApi.prototype.notificationResourceV1CreateBehaviorGroup = function (createBehaviorGroupRequest, options) {
|
|
641
|
+
var _this = this;
|
|
642
|
+
return (0, exports.NotificationResourceV1CreateBehaviorGroupApiFp)(this.configuration).notificationResourceV1CreateBehaviorGroup(createBehaviorGroupRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
643
|
+
};
|
|
644
|
+
return NotificationResourceV1CreateBehaviorGroupApi;
|
|
645
|
+
}(base_1.BaseAPI));
|
|
646
|
+
exports.NotificationResourceV1CreateBehaviorGroupApi = NotificationResourceV1CreateBehaviorGroupApi;
|
|
647
|
+
/**
|
|
648
|
+
* NotificationResourceV1DeleteBehaviorGroupApi - axios parameter creator
|
|
649
|
+
* @export
|
|
650
|
+
*/
|
|
651
|
+
var NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator = function (configuration) {
|
|
652
|
+
var _this = this;
|
|
653
|
+
return {
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @summary Delete a behavior group.
|
|
657
|
+
* @param {string} id The UUID of the behavior group to delete
|
|
658
|
+
* @param {*} [options] Override http request option.
|
|
659
|
+
* @throws {RequiredError}
|
|
660
|
+
*/
|
|
661
|
+
notificationResourceV1DeleteBehaviorGroup: function (id, options) {
|
|
662
|
+
if (options === void 0) { options = {}; }
|
|
663
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
664
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
665
|
+
return __generator(this, function (_a) {
|
|
666
|
+
// verify required parameter 'id' is not null or undefined
|
|
667
|
+
(0, common_1.assertParamExists)('notificationResourceV1DeleteBehaviorGroup', 'id', id);
|
|
668
|
+
localVarPath = "/notifications/behaviorGroups/{id}"
|
|
669
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
670
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
671
|
+
if (configuration) {
|
|
672
|
+
baseOptions = configuration.baseOptions;
|
|
673
|
+
}
|
|
674
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
675
|
+
localVarHeaderParameter = {};
|
|
676
|
+
localVarQueryParameter = {};
|
|
677
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
678
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
679
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
680
|
+
return [2 /*return*/, {
|
|
681
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
682
|
+
options: localVarRequestOptions,
|
|
683
|
+
}];
|
|
684
|
+
});
|
|
685
|
+
});
|
|
686
|
+
},
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
exports.NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator = NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator;
|
|
690
|
+
/**
|
|
691
|
+
* NotificationResourceV1DeleteBehaviorGroupApi - functional programming interface
|
|
692
|
+
* @export
|
|
693
|
+
*/
|
|
694
|
+
var NotificationResourceV1DeleteBehaviorGroupApiFp = function (configuration) {
|
|
695
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1DeleteBehaviorGroupApiAxiosParamCreator)(configuration);
|
|
696
|
+
return {
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
* @summary Delete a behavior group.
|
|
700
|
+
* @param {string} id The UUID of the behavior group to delete
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
notificationResourceV1DeleteBehaviorGroup: function (id, options) {
|
|
705
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
706
|
+
var localVarAxiosArgs;
|
|
707
|
+
return __generator(this, function (_a) {
|
|
708
|
+
switch (_a.label) {
|
|
709
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1DeleteBehaviorGroup(id, options)];
|
|
710
|
+
case 1:
|
|
711
|
+
localVarAxiosArgs = _a.sent();
|
|
712
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
});
|
|
716
|
+
},
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
exports.NotificationResourceV1DeleteBehaviorGroupApiFp = NotificationResourceV1DeleteBehaviorGroupApiFp;
|
|
720
|
+
/**
|
|
721
|
+
* NotificationResourceV1DeleteBehaviorGroupApi - factory interface
|
|
722
|
+
* @export
|
|
723
|
+
*/
|
|
724
|
+
var NotificationResourceV1DeleteBehaviorGroupApiFactory = function (configuration, basePath, axios) {
|
|
725
|
+
var localVarFp = (0, exports.NotificationResourceV1DeleteBehaviorGroupApiFp)(configuration);
|
|
726
|
+
return {
|
|
727
|
+
/**
|
|
728
|
+
*
|
|
729
|
+
* @summary Delete a behavior group.
|
|
730
|
+
* @param {string} id The UUID of the behavior group to delete
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
notificationResourceV1DeleteBehaviorGroup: function (id, options) {
|
|
735
|
+
return localVarFp.notificationResourceV1DeleteBehaviorGroup(id, options).then(function (request) { return request(axios, basePath); });
|
|
736
|
+
},
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
exports.NotificationResourceV1DeleteBehaviorGroupApiFactory = NotificationResourceV1DeleteBehaviorGroupApiFactory;
|
|
125
740
|
/**
|
|
741
|
+
* NotificationResourceV1DeleteBehaviorGroupApi - object-oriented interface
|
|
126
742
|
* @export
|
|
127
|
-
* @
|
|
743
|
+
* @class NotificationResourceV1DeleteBehaviorGroupApi
|
|
744
|
+
* @extends {BaseAPI}
|
|
128
745
|
*/
|
|
129
|
-
var
|
|
130
|
-
(
|
|
746
|
+
var NotificationResourceV1DeleteBehaviorGroupApi = /** @class */ (function (_super) {
|
|
747
|
+
__extends(NotificationResourceV1DeleteBehaviorGroupApi, _super);
|
|
748
|
+
function NotificationResourceV1DeleteBehaviorGroupApi() {
|
|
749
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
750
|
+
}
|
|
131
751
|
/**
|
|
132
|
-
*
|
|
133
|
-
* @
|
|
752
|
+
*
|
|
753
|
+
* @summary Delete a behavior group.
|
|
754
|
+
* @param {string} id The UUID of the behavior group to delete
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
* @memberof NotificationResourceV1DeleteBehaviorGroupApi
|
|
134
758
|
*/
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
|
|
759
|
+
NotificationResourceV1DeleteBehaviorGroupApi.prototype.notificationResourceV1DeleteBehaviorGroup = function (id, options) {
|
|
760
|
+
var _this = this;
|
|
761
|
+
return (0, exports.NotificationResourceV1DeleteBehaviorGroupApiFp)(this.configuration).notificationResourceV1DeleteBehaviorGroup(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
762
|
+
};
|
|
763
|
+
return NotificationResourceV1DeleteBehaviorGroupApi;
|
|
764
|
+
}(base_1.BaseAPI));
|
|
765
|
+
exports.NotificationResourceV1DeleteBehaviorGroupApi = NotificationResourceV1DeleteBehaviorGroupApi;
|
|
766
|
+
/**
|
|
767
|
+
* NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi - axios parameter creator
|
|
768
|
+
* @export
|
|
769
|
+
*/
|
|
770
|
+
var NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator = function (configuration) {
|
|
771
|
+
var _this = this;
|
|
772
|
+
return {
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @summary Delete a behavior group from the given event type.
|
|
776
|
+
* @param {string} behaviorGroupId
|
|
777
|
+
* @param {string} eventTypeId
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
notificationResourceV1DeleteBehaviorGroupFromEventType: function (behaviorGroupId, eventTypeId, options) {
|
|
782
|
+
if (options === void 0) { options = {}; }
|
|
783
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
784
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
785
|
+
return __generator(this, function (_a) {
|
|
786
|
+
// verify required parameter 'behaviorGroupId' is not null or undefined
|
|
787
|
+
(0, common_1.assertParamExists)('notificationResourceV1DeleteBehaviorGroupFromEventType', 'behaviorGroupId', behaviorGroupId);
|
|
788
|
+
// verify required parameter 'eventTypeId' is not null or undefined
|
|
789
|
+
(0, common_1.assertParamExists)('notificationResourceV1DeleteBehaviorGroupFromEventType', 'eventTypeId', eventTypeId);
|
|
790
|
+
localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups/{behaviorGroupId}"
|
|
791
|
+
.replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)))
|
|
792
|
+
.replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
|
|
793
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
794
|
+
if (configuration) {
|
|
795
|
+
baseOptions = configuration.baseOptions;
|
|
796
|
+
}
|
|
797
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
798
|
+
localVarHeaderParameter = {};
|
|
799
|
+
localVarQueryParameter = {};
|
|
800
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
801
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
802
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
803
|
+
return [2 /*return*/, {
|
|
804
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
805
|
+
options: localVarRequestOptions,
|
|
806
|
+
}];
|
|
807
|
+
});
|
|
808
|
+
});
|
|
809
|
+
},
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator = NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator;
|
|
813
|
+
/**
|
|
814
|
+
* NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi - functional programming interface
|
|
815
|
+
* @export
|
|
816
|
+
*/
|
|
817
|
+
var NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp = function (configuration) {
|
|
818
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiAxiosParamCreator)(configuration);
|
|
819
|
+
return {
|
|
820
|
+
/**
|
|
821
|
+
*
|
|
822
|
+
* @summary Delete a behavior group from the given event type.
|
|
823
|
+
* @param {string} behaviorGroupId
|
|
824
|
+
* @param {string} eventTypeId
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @throws {RequiredError}
|
|
827
|
+
*/
|
|
828
|
+
notificationResourceV1DeleteBehaviorGroupFromEventType: function (behaviorGroupId, eventTypeId, options) {
|
|
829
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
830
|
+
var localVarAxiosArgs;
|
|
831
|
+
return __generator(this, function (_a) {
|
|
832
|
+
switch (_a.label) {
|
|
833
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1DeleteBehaviorGroupFromEventType(behaviorGroupId, eventTypeId, options)];
|
|
834
|
+
case 1:
|
|
835
|
+
localVarAxiosArgs = _a.sent();
|
|
836
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
});
|
|
840
|
+
},
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp = NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp;
|
|
844
|
+
/**
|
|
845
|
+
* NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi - factory interface
|
|
846
|
+
* @export
|
|
847
|
+
*/
|
|
848
|
+
var NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFactory = function (configuration, basePath, axios) {
|
|
849
|
+
var localVarFp = (0, exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp)(configuration);
|
|
850
|
+
return {
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @summary Delete a behavior group from the given event type.
|
|
854
|
+
* @param {string} behaviorGroupId
|
|
855
|
+
* @param {string} eventTypeId
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
*/
|
|
859
|
+
notificationResourceV1DeleteBehaviorGroupFromEventType: function (behaviorGroupId, eventTypeId, options) {
|
|
860
|
+
return localVarFp.notificationResourceV1DeleteBehaviorGroupFromEventType(behaviorGroupId, eventTypeId, options).then(function (request) { return request(axios, basePath); });
|
|
861
|
+
},
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFactory = NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFactory;
|
|
140
865
|
/**
|
|
866
|
+
* NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi - object-oriented interface
|
|
141
867
|
* @export
|
|
142
|
-
* @
|
|
868
|
+
* @class NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi
|
|
869
|
+
* @extends {BaseAPI}
|
|
143
870
|
*/
|
|
144
|
-
var
|
|
145
|
-
(
|
|
871
|
+
var NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi = /** @class */ (function (_super) {
|
|
872
|
+
__extends(NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi, _super);
|
|
873
|
+
function NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi() {
|
|
874
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
875
|
+
}
|
|
146
876
|
/**
|
|
147
|
-
*
|
|
148
|
-
* @
|
|
877
|
+
*
|
|
878
|
+
* @summary Delete a behavior group from the given event type.
|
|
879
|
+
* @param {string} behaviorGroupId
|
|
880
|
+
* @param {string} eventTypeId
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
* @memberof NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi
|
|
149
884
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
885
|
+
NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi.prototype.notificationResourceV1DeleteBehaviorGroupFromEventType = function (behaviorGroupId, eventTypeId, options) {
|
|
886
|
+
var _this = this;
|
|
887
|
+
return (0, exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApiFp)(this.configuration).notificationResourceV1DeleteBehaviorGroupFromEventType(behaviorGroupId, eventTypeId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
888
|
+
};
|
|
889
|
+
return NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi;
|
|
890
|
+
}(base_1.BaseAPI));
|
|
891
|
+
exports.NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi = NotificationResourceV1DeleteBehaviorGroupFromEventTypeApi;
|
|
155
892
|
/**
|
|
893
|
+
* NotificationResourceV1FindBehaviorGroupsByBundleIdApi - axios parameter creator
|
|
156
894
|
* @export
|
|
157
|
-
* @namespace Level
|
|
158
895
|
*/
|
|
159
|
-
var
|
|
160
|
-
|
|
896
|
+
var NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator = function (configuration) {
|
|
897
|
+
var _this = this;
|
|
898
|
+
return {
|
|
899
|
+
/**
|
|
900
|
+
*
|
|
901
|
+
* @summary Retrieve the behavior groups of a bundle.
|
|
902
|
+
* @param {string} bundleId UUID of the bundle to retrieve the behavior groups for.
|
|
903
|
+
* @param {*} [options] Override http request option.
|
|
904
|
+
* @throws {RequiredError}
|
|
905
|
+
*/
|
|
906
|
+
notificationResourceV1FindBehaviorGroupsByBundleId: function (bundleId, options) {
|
|
907
|
+
if (options === void 0) { options = {}; }
|
|
908
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
909
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
910
|
+
return __generator(this, function (_a) {
|
|
911
|
+
// verify required parameter 'bundleId' is not null or undefined
|
|
912
|
+
(0, common_1.assertParamExists)('notificationResourceV1FindBehaviorGroupsByBundleId', 'bundleId', bundleId);
|
|
913
|
+
localVarPath = "/notifications/bundles/{bundleId}/behaviorGroups"
|
|
914
|
+
.replace("{".concat("bundleId", "}"), encodeURIComponent(String(bundleId)));
|
|
915
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
916
|
+
if (configuration) {
|
|
917
|
+
baseOptions = configuration.baseOptions;
|
|
918
|
+
}
|
|
919
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
920
|
+
localVarHeaderParameter = {};
|
|
921
|
+
localVarQueryParameter = {};
|
|
922
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
923
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
924
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
925
|
+
return [2 /*return*/, {
|
|
926
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
927
|
+
options: localVarRequestOptions,
|
|
928
|
+
}];
|
|
929
|
+
});
|
|
930
|
+
});
|
|
931
|
+
},
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator = NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator;
|
|
935
|
+
/**
|
|
936
|
+
* NotificationResourceV1FindBehaviorGroupsByBundleIdApi - functional programming interface
|
|
937
|
+
* @export
|
|
938
|
+
*/
|
|
939
|
+
var NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp = function (configuration) {
|
|
940
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiAxiosParamCreator)(configuration);
|
|
941
|
+
return {
|
|
942
|
+
/**
|
|
943
|
+
*
|
|
944
|
+
* @summary Retrieve the behavior groups of a bundle.
|
|
945
|
+
* @param {string} bundleId UUID of the bundle to retrieve the behavior groups for.
|
|
946
|
+
* @param {*} [options] Override http request option.
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
*/
|
|
949
|
+
notificationResourceV1FindBehaviorGroupsByBundleId: function (bundleId, options) {
|
|
950
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
951
|
+
var localVarAxiosArgs;
|
|
952
|
+
return __generator(this, function (_a) {
|
|
953
|
+
switch (_a.label) {
|
|
954
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1FindBehaviorGroupsByBundleId(bundleId, options)];
|
|
955
|
+
case 1:
|
|
956
|
+
localVarAxiosArgs = _a.sent();
|
|
957
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
});
|
|
961
|
+
},
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp = NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp;
|
|
965
|
+
/**
|
|
966
|
+
* NotificationResourceV1FindBehaviorGroupsByBundleIdApi - factory interface
|
|
967
|
+
* @export
|
|
968
|
+
*/
|
|
969
|
+
var NotificationResourceV1FindBehaviorGroupsByBundleIdApiFactory = function (configuration, basePath, axios) {
|
|
970
|
+
var localVarFp = (0, exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp)(configuration);
|
|
971
|
+
return {
|
|
972
|
+
/**
|
|
973
|
+
*
|
|
974
|
+
* @summary Retrieve the behavior groups of a bundle.
|
|
975
|
+
* @param {string} bundleId UUID of the bundle to retrieve the behavior groups for.
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
notificationResourceV1FindBehaviorGroupsByBundleId: function (bundleId, options) {
|
|
980
|
+
return localVarFp.notificationResourceV1FindBehaviorGroupsByBundleId(bundleId, options).then(function (request) { return request(axios, basePath); });
|
|
981
|
+
},
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFactory = NotificationResourceV1FindBehaviorGroupsByBundleIdApiFactory;
|
|
985
|
+
/**
|
|
986
|
+
* NotificationResourceV1FindBehaviorGroupsByBundleIdApi - object-oriented interface
|
|
987
|
+
* @export
|
|
988
|
+
* @class NotificationResourceV1FindBehaviorGroupsByBundleIdApi
|
|
989
|
+
* @extends {BaseAPI}
|
|
990
|
+
*/
|
|
991
|
+
var NotificationResourceV1FindBehaviorGroupsByBundleIdApi = /** @class */ (function (_super) {
|
|
992
|
+
__extends(NotificationResourceV1FindBehaviorGroupsByBundleIdApi, _super);
|
|
993
|
+
function NotificationResourceV1FindBehaviorGroupsByBundleIdApi() {
|
|
994
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
*
|
|
998
|
+
* @summary Retrieve the behavior groups of a bundle.
|
|
999
|
+
* @param {string} bundleId UUID of the bundle to retrieve the behavior groups for.
|
|
1000
|
+
* @param {*} [options] Override http request option.
|
|
1001
|
+
* @throws {RequiredError}
|
|
1002
|
+
* @memberof NotificationResourceV1FindBehaviorGroupsByBundleIdApi
|
|
1003
|
+
*/
|
|
1004
|
+
NotificationResourceV1FindBehaviorGroupsByBundleIdApi.prototype.notificationResourceV1FindBehaviorGroupsByBundleId = function (bundleId, options) {
|
|
1005
|
+
var _this = this;
|
|
1006
|
+
return (0, exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApiFp)(this.configuration).notificationResourceV1FindBehaviorGroupsByBundleId(bundleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1007
|
+
};
|
|
1008
|
+
return NotificationResourceV1FindBehaviorGroupsByBundleIdApi;
|
|
1009
|
+
}(base_1.BaseAPI));
|
|
1010
|
+
exports.NotificationResourceV1FindBehaviorGroupsByBundleIdApi = NotificationResourceV1FindBehaviorGroupsByBundleIdApi;
|
|
1011
|
+
/**
|
|
1012
|
+
* NotificationResourceV1GetApplicationByNameAndBundleNameApi - axios parameter creator
|
|
1013
|
+
* @export
|
|
1014
|
+
*/
|
|
1015
|
+
var NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator = function (configuration) {
|
|
1016
|
+
var _this = this;
|
|
1017
|
+
return {
|
|
1018
|
+
/**
|
|
1019
|
+
*
|
|
1020
|
+
* @summary Retrieve the application by name of a given bundle name
|
|
1021
|
+
* @param {string} applicationName
|
|
1022
|
+
* @param {string} bundleName
|
|
1023
|
+
* @param {*} [options] Override http request option.
|
|
1024
|
+
* @throws {RequiredError}
|
|
1025
|
+
*/
|
|
1026
|
+
notificationResourceV1GetApplicationByNameAndBundleName: function (applicationName, bundleName, options) {
|
|
1027
|
+
if (options === void 0) { options = {}; }
|
|
1028
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1029
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1030
|
+
return __generator(this, function (_a) {
|
|
1031
|
+
// verify required parameter 'applicationName' is not null or undefined
|
|
1032
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetApplicationByNameAndBundleName', 'applicationName', applicationName);
|
|
1033
|
+
// verify required parameter 'bundleName' is not null or undefined
|
|
1034
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetApplicationByNameAndBundleName', 'bundleName', bundleName);
|
|
1035
|
+
localVarPath = "/notifications/bundles/{bundleName}/applications/{applicationName}"
|
|
1036
|
+
.replace("{".concat("applicationName", "}"), encodeURIComponent(String(applicationName)))
|
|
1037
|
+
.replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)));
|
|
1038
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1039
|
+
if (configuration) {
|
|
1040
|
+
baseOptions = configuration.baseOptions;
|
|
1041
|
+
}
|
|
1042
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1043
|
+
localVarHeaderParameter = {};
|
|
1044
|
+
localVarQueryParameter = {};
|
|
1045
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1046
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1047
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1048
|
+
return [2 /*return*/, {
|
|
1049
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1050
|
+
options: localVarRequestOptions,
|
|
1051
|
+
}];
|
|
1052
|
+
});
|
|
1053
|
+
});
|
|
1054
|
+
},
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator = NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator;
|
|
1058
|
+
/**
|
|
1059
|
+
* NotificationResourceV1GetApplicationByNameAndBundleNameApi - functional programming interface
|
|
1060
|
+
* @export
|
|
1061
|
+
*/
|
|
1062
|
+
var NotificationResourceV1GetApplicationByNameAndBundleNameApiFp = function (configuration) {
|
|
1063
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiAxiosParamCreator)(configuration);
|
|
1064
|
+
return {
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @summary Retrieve the application by name of a given bundle name
|
|
1068
|
+
* @param {string} applicationName
|
|
1069
|
+
* @param {string} bundleName
|
|
1070
|
+
* @param {*} [options] Override http request option.
|
|
1071
|
+
* @throws {RequiredError}
|
|
1072
|
+
*/
|
|
1073
|
+
notificationResourceV1GetApplicationByNameAndBundleName: function (applicationName, bundleName, options) {
|
|
1074
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1075
|
+
var localVarAxiosArgs;
|
|
1076
|
+
return __generator(this, function (_a) {
|
|
1077
|
+
switch (_a.label) {
|
|
1078
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetApplicationByNameAndBundleName(applicationName, bundleName, options)];
|
|
1079
|
+
case 1:
|
|
1080
|
+
localVarAxiosArgs = _a.sent();
|
|
1081
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
});
|
|
1085
|
+
},
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFp = NotificationResourceV1GetApplicationByNameAndBundleNameApiFp;
|
|
1089
|
+
/**
|
|
1090
|
+
* NotificationResourceV1GetApplicationByNameAndBundleNameApi - factory interface
|
|
1091
|
+
* @export
|
|
1092
|
+
*/
|
|
1093
|
+
var NotificationResourceV1GetApplicationByNameAndBundleNameApiFactory = function (configuration, basePath, axios) {
|
|
1094
|
+
var localVarFp = (0, exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFp)(configuration);
|
|
1095
|
+
return {
|
|
1096
|
+
/**
|
|
1097
|
+
*
|
|
1098
|
+
* @summary Retrieve the application by name of a given bundle name
|
|
1099
|
+
* @param {string} applicationName
|
|
1100
|
+
* @param {string} bundleName
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
*/
|
|
1104
|
+
notificationResourceV1GetApplicationByNameAndBundleName: function (applicationName, bundleName, options) {
|
|
1105
|
+
return localVarFp.notificationResourceV1GetApplicationByNameAndBundleName(applicationName, bundleName, options).then(function (request) { return request(axios, basePath); });
|
|
1106
|
+
},
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFactory = NotificationResourceV1GetApplicationByNameAndBundleNameApiFactory;
|
|
1110
|
+
/**
|
|
1111
|
+
* NotificationResourceV1GetApplicationByNameAndBundleNameApi - object-oriented interface
|
|
1112
|
+
* @export
|
|
1113
|
+
* @class NotificationResourceV1GetApplicationByNameAndBundleNameApi
|
|
1114
|
+
* @extends {BaseAPI}
|
|
1115
|
+
*/
|
|
1116
|
+
var NotificationResourceV1GetApplicationByNameAndBundleNameApi = /** @class */ (function (_super) {
|
|
1117
|
+
__extends(NotificationResourceV1GetApplicationByNameAndBundleNameApi, _super);
|
|
1118
|
+
function NotificationResourceV1GetApplicationByNameAndBundleNameApi() {
|
|
1119
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
*
|
|
1123
|
+
* @summary Retrieve the application by name of a given bundle name
|
|
1124
|
+
* @param {string} applicationName
|
|
1125
|
+
* @param {string} bundleName
|
|
1126
|
+
* @param {*} [options] Override http request option.
|
|
1127
|
+
* @throws {RequiredError}
|
|
1128
|
+
* @memberof NotificationResourceV1GetApplicationByNameAndBundleNameApi
|
|
1129
|
+
*/
|
|
1130
|
+
NotificationResourceV1GetApplicationByNameAndBundleNameApi.prototype.notificationResourceV1GetApplicationByNameAndBundleName = function (applicationName, bundleName, options) {
|
|
1131
|
+
var _this = this;
|
|
1132
|
+
return (0, exports.NotificationResourceV1GetApplicationByNameAndBundleNameApiFp)(this.configuration).notificationResourceV1GetApplicationByNameAndBundleName(applicationName, bundleName, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1133
|
+
};
|
|
1134
|
+
return NotificationResourceV1GetApplicationByNameAndBundleNameApi;
|
|
1135
|
+
}(base_1.BaseAPI));
|
|
1136
|
+
exports.NotificationResourceV1GetApplicationByNameAndBundleNameApi = NotificationResourceV1GetApplicationByNameAndBundleNameApi;
|
|
1137
|
+
/**
|
|
1138
|
+
* NotificationResourceV1GetApplicationsFacetsApi - axios parameter creator
|
|
1139
|
+
* @export
|
|
1140
|
+
*/
|
|
1141
|
+
var NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator = function (configuration) {
|
|
1142
|
+
var _this = this;
|
|
1143
|
+
return {
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @summary Return a thin list of configured applications. This can be used to configure a filter in the UI
|
|
1147
|
+
* @param {string} [bundleName]
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
notificationResourceV1GetApplicationsFacets: function (bundleName, options) {
|
|
1152
|
+
if (options === void 0) { options = {}; }
|
|
1153
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1154
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1155
|
+
return __generator(this, function (_a) {
|
|
1156
|
+
localVarPath = "/notifications/facets/applications";
|
|
1157
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1158
|
+
if (configuration) {
|
|
1159
|
+
baseOptions = configuration.baseOptions;
|
|
1160
|
+
}
|
|
1161
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1162
|
+
localVarHeaderParameter = {};
|
|
1163
|
+
localVarQueryParameter = {};
|
|
1164
|
+
if (bundleName !== undefined) {
|
|
1165
|
+
localVarQueryParameter['bundleName'] = bundleName;
|
|
1166
|
+
}
|
|
1167
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1168
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1169
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1170
|
+
return [2 /*return*/, {
|
|
1171
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1172
|
+
options: localVarRequestOptions,
|
|
1173
|
+
}];
|
|
1174
|
+
});
|
|
1175
|
+
});
|
|
1176
|
+
},
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
exports.NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator = NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator;
|
|
1180
|
+
/**
|
|
1181
|
+
* NotificationResourceV1GetApplicationsFacetsApi - functional programming interface
|
|
1182
|
+
* @export
|
|
1183
|
+
*/
|
|
1184
|
+
var NotificationResourceV1GetApplicationsFacetsApiFp = function (configuration) {
|
|
1185
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetApplicationsFacetsApiAxiosParamCreator)(configuration);
|
|
1186
|
+
return {
|
|
1187
|
+
/**
|
|
1188
|
+
*
|
|
1189
|
+
* @summary Return a thin list of configured applications. This can be used to configure a filter in the UI
|
|
1190
|
+
* @param {string} [bundleName]
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
notificationResourceV1GetApplicationsFacets: function (bundleName, options) {
|
|
1195
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1196
|
+
var localVarAxiosArgs;
|
|
1197
|
+
return __generator(this, function (_a) {
|
|
1198
|
+
switch (_a.label) {
|
|
1199
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetApplicationsFacets(bundleName, options)];
|
|
1200
|
+
case 1:
|
|
1201
|
+
localVarAxiosArgs = _a.sent();
|
|
1202
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
});
|
|
1206
|
+
},
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
exports.NotificationResourceV1GetApplicationsFacetsApiFp = NotificationResourceV1GetApplicationsFacetsApiFp;
|
|
1210
|
+
/**
|
|
1211
|
+
* NotificationResourceV1GetApplicationsFacetsApi - factory interface
|
|
1212
|
+
* @export
|
|
1213
|
+
*/
|
|
1214
|
+
var NotificationResourceV1GetApplicationsFacetsApiFactory = function (configuration, basePath, axios) {
|
|
1215
|
+
var localVarFp = (0, exports.NotificationResourceV1GetApplicationsFacetsApiFp)(configuration);
|
|
1216
|
+
return {
|
|
1217
|
+
/**
|
|
1218
|
+
*
|
|
1219
|
+
* @summary Return a thin list of configured applications. This can be used to configure a filter in the UI
|
|
1220
|
+
* @param {string} [bundleName]
|
|
1221
|
+
* @param {*} [options] Override http request option.
|
|
1222
|
+
* @throws {RequiredError}
|
|
1223
|
+
*/
|
|
1224
|
+
notificationResourceV1GetApplicationsFacets: function (bundleName, options) {
|
|
1225
|
+
return localVarFp.notificationResourceV1GetApplicationsFacets(bundleName, options).then(function (request) { return request(axios, basePath); });
|
|
1226
|
+
},
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
exports.NotificationResourceV1GetApplicationsFacetsApiFactory = NotificationResourceV1GetApplicationsFacetsApiFactory;
|
|
1230
|
+
/**
|
|
1231
|
+
* NotificationResourceV1GetApplicationsFacetsApi - object-oriented interface
|
|
1232
|
+
* @export
|
|
1233
|
+
* @class NotificationResourceV1GetApplicationsFacetsApi
|
|
1234
|
+
* @extends {BaseAPI}
|
|
1235
|
+
*/
|
|
1236
|
+
var NotificationResourceV1GetApplicationsFacetsApi = /** @class */ (function (_super) {
|
|
1237
|
+
__extends(NotificationResourceV1GetApplicationsFacetsApi, _super);
|
|
1238
|
+
function NotificationResourceV1GetApplicationsFacetsApi() {
|
|
1239
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
*
|
|
1243
|
+
* @summary Return a thin list of configured applications. This can be used to configure a filter in the UI
|
|
1244
|
+
* @param {string} [bundleName]
|
|
1245
|
+
* @param {*} [options] Override http request option.
|
|
1246
|
+
* @throws {RequiredError}
|
|
1247
|
+
* @memberof NotificationResourceV1GetApplicationsFacetsApi
|
|
1248
|
+
*/
|
|
1249
|
+
NotificationResourceV1GetApplicationsFacetsApi.prototype.notificationResourceV1GetApplicationsFacets = function (bundleName, options) {
|
|
1250
|
+
var _this = this;
|
|
1251
|
+
return (0, exports.NotificationResourceV1GetApplicationsFacetsApiFp)(this.configuration).notificationResourceV1GetApplicationsFacets(bundleName, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1252
|
+
};
|
|
1253
|
+
return NotificationResourceV1GetApplicationsFacetsApi;
|
|
1254
|
+
}(base_1.BaseAPI));
|
|
1255
|
+
exports.NotificationResourceV1GetApplicationsFacetsApi = NotificationResourceV1GetApplicationsFacetsApi;
|
|
1256
|
+
/**
|
|
1257
|
+
* NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi - axios parameter creator
|
|
1258
|
+
* @export
|
|
1259
|
+
*/
|
|
1260
|
+
var NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator = function (configuration) {
|
|
1261
|
+
var _this = this;
|
|
1262
|
+
return {
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* @summary Retrieve the behavior groups affected by the removal of an endpoint.
|
|
1266
|
+
* @param {string} endpointId
|
|
1267
|
+
* @param {*} [options] Override http request option.
|
|
1268
|
+
* @throws {RequiredError}
|
|
1269
|
+
*/
|
|
1270
|
+
notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint: function (endpointId, options) {
|
|
1271
|
+
if (options === void 0) { options = {}; }
|
|
1272
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1273
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1274
|
+
return __generator(this, function (_a) {
|
|
1275
|
+
// verify required parameter 'endpointId' is not null or undefined
|
|
1276
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint', 'endpointId', endpointId);
|
|
1277
|
+
localVarPath = "/notifications/behaviorGroups/affectedByRemovalOfEndpoint/{endpointId}"
|
|
1278
|
+
.replace("{".concat("endpointId", "}"), encodeURIComponent(String(endpointId)));
|
|
1279
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1280
|
+
if (configuration) {
|
|
1281
|
+
baseOptions = configuration.baseOptions;
|
|
1282
|
+
}
|
|
1283
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1284
|
+
localVarHeaderParameter = {};
|
|
1285
|
+
localVarQueryParameter = {};
|
|
1286
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1287
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1288
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1289
|
+
return [2 /*return*/, {
|
|
1290
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1291
|
+
options: localVarRequestOptions,
|
|
1292
|
+
}];
|
|
1293
|
+
});
|
|
1294
|
+
});
|
|
1295
|
+
},
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator = NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator;
|
|
1299
|
+
/**
|
|
1300
|
+
* NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi - functional programming interface
|
|
1301
|
+
* @export
|
|
1302
|
+
*/
|
|
1303
|
+
var NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp = function (configuration) {
|
|
1304
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiAxiosParamCreator)(configuration);
|
|
1305
|
+
return {
|
|
1306
|
+
/**
|
|
1307
|
+
*
|
|
1308
|
+
* @summary Retrieve the behavior groups affected by the removal of an endpoint.
|
|
1309
|
+
* @param {string} endpointId
|
|
1310
|
+
* @param {*} [options] Override http request option.
|
|
1311
|
+
* @throws {RequiredError}
|
|
1312
|
+
*/
|
|
1313
|
+
notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint: function (endpointId, options) {
|
|
1314
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1315
|
+
var localVarAxiosArgs;
|
|
1316
|
+
return __generator(this, function (_a) {
|
|
1317
|
+
switch (_a.label) {
|
|
1318
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint(endpointId, options)];
|
|
1319
|
+
case 1:
|
|
1320
|
+
localVarAxiosArgs = _a.sent();
|
|
1321
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1322
|
+
}
|
|
1323
|
+
});
|
|
1324
|
+
});
|
|
1325
|
+
},
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp = NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp;
|
|
1329
|
+
/**
|
|
1330
|
+
* NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi - factory interface
|
|
1331
|
+
* @export
|
|
1332
|
+
*/
|
|
1333
|
+
var NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFactory = function (configuration, basePath, axios) {
|
|
1334
|
+
var localVarFp = (0, exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp)(configuration);
|
|
1335
|
+
return {
|
|
1336
|
+
/**
|
|
1337
|
+
*
|
|
1338
|
+
* @summary Retrieve the behavior groups affected by the removal of an endpoint.
|
|
1339
|
+
* @param {string} endpointId
|
|
1340
|
+
* @param {*} [options] Override http request option.
|
|
1341
|
+
* @throws {RequiredError}
|
|
1342
|
+
*/
|
|
1343
|
+
notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint: function (endpointId, options) {
|
|
1344
|
+
return localVarFp.notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint(endpointId, options).then(function (request) { return request(axios, basePath); });
|
|
1345
|
+
},
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFactory = NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFactory;
|
|
1349
|
+
/**
|
|
1350
|
+
* NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi - object-oriented interface
|
|
1351
|
+
* @export
|
|
1352
|
+
* @class NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi
|
|
1353
|
+
* @extends {BaseAPI}
|
|
1354
|
+
*/
|
|
1355
|
+
var NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi = /** @class */ (function (_super) {
|
|
1356
|
+
__extends(NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi, _super);
|
|
1357
|
+
function NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi() {
|
|
1358
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
*
|
|
1362
|
+
* @summary Retrieve the behavior groups affected by the removal of an endpoint.
|
|
1363
|
+
* @param {string} endpointId
|
|
1364
|
+
* @param {*} [options] Override http request option.
|
|
1365
|
+
* @throws {RequiredError}
|
|
1366
|
+
* @memberof NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi
|
|
1367
|
+
*/
|
|
1368
|
+
NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi.prototype.notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint = function (endpointId, options) {
|
|
1369
|
+
var _this = this;
|
|
1370
|
+
return (0, exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApiFp)(this.configuration).notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint(endpointId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1371
|
+
};
|
|
1372
|
+
return NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi;
|
|
1373
|
+
}(base_1.BaseAPI));
|
|
1374
|
+
exports.NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi = NotificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpointApi;
|
|
1375
|
+
/**
|
|
1376
|
+
* NotificationResourceV1GetBundleByNameApi - axios parameter creator
|
|
1377
|
+
* @export
|
|
1378
|
+
*/
|
|
1379
|
+
var NotificationResourceV1GetBundleByNameApiAxiosParamCreator = function (configuration) {
|
|
1380
|
+
var _this = this;
|
|
1381
|
+
return {
|
|
1382
|
+
/**
|
|
1383
|
+
*
|
|
1384
|
+
* @summary Retrieve the bundle by name
|
|
1385
|
+
* @param {string} bundleName
|
|
1386
|
+
* @param {*} [options] Override http request option.
|
|
1387
|
+
* @throws {RequiredError}
|
|
1388
|
+
*/
|
|
1389
|
+
notificationResourceV1GetBundleByName: function (bundleName, options) {
|
|
1390
|
+
if (options === void 0) { options = {}; }
|
|
1391
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1392
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1393
|
+
return __generator(this, function (_a) {
|
|
1394
|
+
// verify required parameter 'bundleName' is not null or undefined
|
|
1395
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetBundleByName', 'bundleName', bundleName);
|
|
1396
|
+
localVarPath = "/notifications/bundles/{bundleName}"
|
|
1397
|
+
.replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)));
|
|
1398
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1399
|
+
if (configuration) {
|
|
1400
|
+
baseOptions = configuration.baseOptions;
|
|
1401
|
+
}
|
|
1402
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1403
|
+
localVarHeaderParameter = {};
|
|
1404
|
+
localVarQueryParameter = {};
|
|
1405
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1406
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1407
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1408
|
+
return [2 /*return*/, {
|
|
1409
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1410
|
+
options: localVarRequestOptions,
|
|
1411
|
+
}];
|
|
1412
|
+
});
|
|
1413
|
+
});
|
|
1414
|
+
},
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
exports.NotificationResourceV1GetBundleByNameApiAxiosParamCreator = NotificationResourceV1GetBundleByNameApiAxiosParamCreator;
|
|
1418
|
+
/**
|
|
1419
|
+
* NotificationResourceV1GetBundleByNameApi - functional programming interface
|
|
1420
|
+
* @export
|
|
1421
|
+
*/
|
|
1422
|
+
var NotificationResourceV1GetBundleByNameApiFp = function (configuration) {
|
|
1423
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetBundleByNameApiAxiosParamCreator)(configuration);
|
|
1424
|
+
return {
|
|
1425
|
+
/**
|
|
1426
|
+
*
|
|
1427
|
+
* @summary Retrieve the bundle by name
|
|
1428
|
+
* @param {string} bundleName
|
|
1429
|
+
* @param {*} [options] Override http request option.
|
|
1430
|
+
* @throws {RequiredError}
|
|
1431
|
+
*/
|
|
1432
|
+
notificationResourceV1GetBundleByName: function (bundleName, options) {
|
|
1433
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1434
|
+
var localVarAxiosArgs;
|
|
1435
|
+
return __generator(this, function (_a) {
|
|
1436
|
+
switch (_a.label) {
|
|
1437
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetBundleByName(bundleName, options)];
|
|
1438
|
+
case 1:
|
|
1439
|
+
localVarAxiosArgs = _a.sent();
|
|
1440
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1443
|
+
});
|
|
1444
|
+
},
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1447
|
+
exports.NotificationResourceV1GetBundleByNameApiFp = NotificationResourceV1GetBundleByNameApiFp;
|
|
1448
|
+
/**
|
|
1449
|
+
* NotificationResourceV1GetBundleByNameApi - factory interface
|
|
1450
|
+
* @export
|
|
1451
|
+
*/
|
|
1452
|
+
var NotificationResourceV1GetBundleByNameApiFactory = function (configuration, basePath, axios) {
|
|
1453
|
+
var localVarFp = (0, exports.NotificationResourceV1GetBundleByNameApiFp)(configuration);
|
|
1454
|
+
return {
|
|
1455
|
+
/**
|
|
1456
|
+
*
|
|
1457
|
+
* @summary Retrieve the bundle by name
|
|
1458
|
+
* @param {string} bundleName
|
|
1459
|
+
* @param {*} [options] Override http request option.
|
|
1460
|
+
* @throws {RequiredError}
|
|
1461
|
+
*/
|
|
1462
|
+
notificationResourceV1GetBundleByName: function (bundleName, options) {
|
|
1463
|
+
return localVarFp.notificationResourceV1GetBundleByName(bundleName, options).then(function (request) { return request(axios, basePath); });
|
|
1464
|
+
},
|
|
1465
|
+
};
|
|
1466
|
+
};
|
|
1467
|
+
exports.NotificationResourceV1GetBundleByNameApiFactory = NotificationResourceV1GetBundleByNameApiFactory;
|
|
1468
|
+
/**
|
|
1469
|
+
* NotificationResourceV1GetBundleByNameApi - object-oriented interface
|
|
1470
|
+
* @export
|
|
1471
|
+
* @class NotificationResourceV1GetBundleByNameApi
|
|
1472
|
+
* @extends {BaseAPI}
|
|
1473
|
+
*/
|
|
1474
|
+
var NotificationResourceV1GetBundleByNameApi = /** @class */ (function (_super) {
|
|
1475
|
+
__extends(NotificationResourceV1GetBundleByNameApi, _super);
|
|
1476
|
+
function NotificationResourceV1GetBundleByNameApi() {
|
|
1477
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
*
|
|
1481
|
+
* @summary Retrieve the bundle by name
|
|
1482
|
+
* @param {string} bundleName
|
|
1483
|
+
* @param {*} [options] Override http request option.
|
|
1484
|
+
* @throws {RequiredError}
|
|
1485
|
+
* @memberof NotificationResourceV1GetBundleByNameApi
|
|
1486
|
+
*/
|
|
1487
|
+
NotificationResourceV1GetBundleByNameApi.prototype.notificationResourceV1GetBundleByName = function (bundleName, options) {
|
|
1488
|
+
var _this = this;
|
|
1489
|
+
return (0, exports.NotificationResourceV1GetBundleByNameApiFp)(this.configuration).notificationResourceV1GetBundleByName(bundleName, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1490
|
+
};
|
|
1491
|
+
return NotificationResourceV1GetBundleByNameApi;
|
|
1492
|
+
}(base_1.BaseAPI));
|
|
1493
|
+
exports.NotificationResourceV1GetBundleByNameApi = NotificationResourceV1GetBundleByNameApi;
|
|
1494
|
+
/**
|
|
1495
|
+
* NotificationResourceV1GetBundleFacetsApi - axios parameter creator
|
|
1496
|
+
* @export
|
|
1497
|
+
*/
|
|
1498
|
+
var NotificationResourceV1GetBundleFacetsApiAxiosParamCreator = function (configuration) {
|
|
1499
|
+
var _this = this;
|
|
1500
|
+
return {
|
|
1501
|
+
/**
|
|
1502
|
+
*
|
|
1503
|
+
* @summary Return a thin list of configured bundles. This can be used to configure a filter in the UI
|
|
1504
|
+
* @param {boolean} [includeApplications]
|
|
1505
|
+
* @param {*} [options] Override http request option.
|
|
1506
|
+
* @throws {RequiredError}
|
|
1507
|
+
*/
|
|
1508
|
+
notificationResourceV1GetBundleFacets: function (includeApplications, options) {
|
|
1509
|
+
if (options === void 0) { options = {}; }
|
|
1510
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1511
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1512
|
+
return __generator(this, function (_a) {
|
|
1513
|
+
localVarPath = "/notifications/facets/bundles";
|
|
1514
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1515
|
+
if (configuration) {
|
|
1516
|
+
baseOptions = configuration.baseOptions;
|
|
1517
|
+
}
|
|
1518
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1519
|
+
localVarHeaderParameter = {};
|
|
1520
|
+
localVarQueryParameter = {};
|
|
1521
|
+
if (includeApplications !== undefined) {
|
|
1522
|
+
localVarQueryParameter['includeApplications'] = includeApplications;
|
|
1523
|
+
}
|
|
1524
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1525
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1526
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1527
|
+
return [2 /*return*/, {
|
|
1528
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1529
|
+
options: localVarRequestOptions,
|
|
1530
|
+
}];
|
|
1531
|
+
});
|
|
1532
|
+
});
|
|
1533
|
+
},
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
exports.NotificationResourceV1GetBundleFacetsApiAxiosParamCreator = NotificationResourceV1GetBundleFacetsApiAxiosParamCreator;
|
|
1537
|
+
/**
|
|
1538
|
+
* NotificationResourceV1GetBundleFacetsApi - functional programming interface
|
|
1539
|
+
* @export
|
|
1540
|
+
*/
|
|
1541
|
+
var NotificationResourceV1GetBundleFacetsApiFp = function (configuration) {
|
|
1542
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetBundleFacetsApiAxiosParamCreator)(configuration);
|
|
1543
|
+
return {
|
|
1544
|
+
/**
|
|
1545
|
+
*
|
|
1546
|
+
* @summary Return a thin list of configured bundles. This can be used to configure a filter in the UI
|
|
1547
|
+
* @param {boolean} [includeApplications]
|
|
1548
|
+
* @param {*} [options] Override http request option.
|
|
1549
|
+
* @throws {RequiredError}
|
|
1550
|
+
*/
|
|
1551
|
+
notificationResourceV1GetBundleFacets: function (includeApplications, options) {
|
|
1552
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1553
|
+
var localVarAxiosArgs;
|
|
1554
|
+
return __generator(this, function (_a) {
|
|
1555
|
+
switch (_a.label) {
|
|
1556
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetBundleFacets(includeApplications, options)];
|
|
1557
|
+
case 1:
|
|
1558
|
+
localVarAxiosArgs = _a.sent();
|
|
1559
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1560
|
+
}
|
|
1561
|
+
});
|
|
1562
|
+
});
|
|
1563
|
+
},
|
|
1564
|
+
};
|
|
1565
|
+
};
|
|
1566
|
+
exports.NotificationResourceV1GetBundleFacetsApiFp = NotificationResourceV1GetBundleFacetsApiFp;
|
|
1567
|
+
/**
|
|
1568
|
+
* NotificationResourceV1GetBundleFacetsApi - factory interface
|
|
1569
|
+
* @export
|
|
1570
|
+
*/
|
|
1571
|
+
var NotificationResourceV1GetBundleFacetsApiFactory = function (configuration, basePath, axios) {
|
|
1572
|
+
var localVarFp = (0, exports.NotificationResourceV1GetBundleFacetsApiFp)(configuration);
|
|
1573
|
+
return {
|
|
1574
|
+
/**
|
|
1575
|
+
*
|
|
1576
|
+
* @summary Return a thin list of configured bundles. This can be used to configure a filter in the UI
|
|
1577
|
+
* @param {boolean} [includeApplications]
|
|
1578
|
+
* @param {*} [options] Override http request option.
|
|
1579
|
+
* @throws {RequiredError}
|
|
1580
|
+
*/
|
|
1581
|
+
notificationResourceV1GetBundleFacets: function (includeApplications, options) {
|
|
1582
|
+
return localVarFp.notificationResourceV1GetBundleFacets(includeApplications, options).then(function (request) { return request(axios, basePath); });
|
|
1583
|
+
},
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
exports.NotificationResourceV1GetBundleFacetsApiFactory = NotificationResourceV1GetBundleFacetsApiFactory;
|
|
1587
|
+
/**
|
|
1588
|
+
* NotificationResourceV1GetBundleFacetsApi - object-oriented interface
|
|
1589
|
+
* @export
|
|
1590
|
+
* @class NotificationResourceV1GetBundleFacetsApi
|
|
1591
|
+
* @extends {BaseAPI}
|
|
1592
|
+
*/
|
|
1593
|
+
var NotificationResourceV1GetBundleFacetsApi = /** @class */ (function (_super) {
|
|
1594
|
+
__extends(NotificationResourceV1GetBundleFacetsApi, _super);
|
|
1595
|
+
function NotificationResourceV1GetBundleFacetsApi() {
|
|
1596
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
*
|
|
1600
|
+
* @summary Return a thin list of configured bundles. This can be used to configure a filter in the UI
|
|
1601
|
+
* @param {boolean} [includeApplications]
|
|
1602
|
+
* @param {*} [options] Override http request option.
|
|
1603
|
+
* @throws {RequiredError}
|
|
1604
|
+
* @memberof NotificationResourceV1GetBundleFacetsApi
|
|
1605
|
+
*/
|
|
1606
|
+
NotificationResourceV1GetBundleFacetsApi.prototype.notificationResourceV1GetBundleFacets = function (includeApplications, options) {
|
|
1607
|
+
var _this = this;
|
|
1608
|
+
return (0, exports.NotificationResourceV1GetBundleFacetsApiFp)(this.configuration).notificationResourceV1GetBundleFacets(includeApplications, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1609
|
+
};
|
|
1610
|
+
return NotificationResourceV1GetBundleFacetsApi;
|
|
1611
|
+
}(base_1.BaseAPI));
|
|
1612
|
+
exports.NotificationResourceV1GetBundleFacetsApi = NotificationResourceV1GetBundleFacetsApi;
|
|
1613
|
+
/**
|
|
1614
|
+
* NotificationResourceV1GetEventTypesApi - axios parameter creator
|
|
1615
|
+
* @export
|
|
1616
|
+
*/
|
|
1617
|
+
var NotificationResourceV1GetEventTypesApiAxiosParamCreator = function (configuration) {
|
|
1618
|
+
var _this = this;
|
|
1619
|
+
return {
|
|
1620
|
+
/**
|
|
1621
|
+
*
|
|
1622
|
+
* @summary Retrieve all event types. The returned list can be filtered by bundle or application.
|
|
1623
|
+
* @param {Set<string>} [applicationIds]
|
|
1624
|
+
* @param {string} [bundleId]
|
|
1625
|
+
* @param {string} [eventTypeName]
|
|
1626
|
+
* @param {number} [limit]
|
|
1627
|
+
* @param {number} [offset]
|
|
1628
|
+
* @param {number} [pageNumber]
|
|
1629
|
+
* @param {string} [sortBy]
|
|
1630
|
+
* @param {string} [sortBy2]
|
|
1631
|
+
* @param {*} [options] Override http request option.
|
|
1632
|
+
* @throws {RequiredError}
|
|
1633
|
+
*/
|
|
1634
|
+
notificationResourceV1GetEventTypes: function (applicationIds, bundleId, eventTypeName, limit, offset, pageNumber, sortBy, sortBy2, options) {
|
|
1635
|
+
if (options === void 0) { options = {}; }
|
|
1636
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1637
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1638
|
+
return __generator(this, function (_a) {
|
|
1639
|
+
localVarPath = "/notifications/eventTypes";
|
|
1640
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1641
|
+
if (configuration) {
|
|
1642
|
+
baseOptions = configuration.baseOptions;
|
|
1643
|
+
}
|
|
1644
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1645
|
+
localVarHeaderParameter = {};
|
|
1646
|
+
localVarQueryParameter = {};
|
|
1647
|
+
if (applicationIds) {
|
|
1648
|
+
localVarQueryParameter['applicationIds'] = Array.from(applicationIds);
|
|
1649
|
+
}
|
|
1650
|
+
if (bundleId !== undefined) {
|
|
1651
|
+
localVarQueryParameter['bundleId'] = bundleId;
|
|
1652
|
+
}
|
|
1653
|
+
if (eventTypeName !== undefined) {
|
|
1654
|
+
localVarQueryParameter['eventTypeName'] = eventTypeName;
|
|
1655
|
+
}
|
|
1656
|
+
if (limit !== undefined) {
|
|
1657
|
+
localVarQueryParameter['limit'] = limit;
|
|
1658
|
+
}
|
|
1659
|
+
if (offset !== undefined) {
|
|
1660
|
+
localVarQueryParameter['offset'] = offset;
|
|
1661
|
+
}
|
|
1662
|
+
if (pageNumber !== undefined) {
|
|
1663
|
+
localVarQueryParameter['pageNumber'] = pageNumber;
|
|
1664
|
+
}
|
|
1665
|
+
if (sortBy !== undefined) {
|
|
1666
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
1667
|
+
}
|
|
1668
|
+
if (sortBy2 !== undefined) {
|
|
1669
|
+
localVarQueryParameter['sort_by'] = sortBy2;
|
|
1670
|
+
}
|
|
1671
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1672
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1673
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1674
|
+
return [2 /*return*/, {
|
|
1675
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1676
|
+
options: localVarRequestOptions,
|
|
1677
|
+
}];
|
|
1678
|
+
});
|
|
1679
|
+
});
|
|
1680
|
+
},
|
|
1681
|
+
};
|
|
1682
|
+
};
|
|
1683
|
+
exports.NotificationResourceV1GetEventTypesApiAxiosParamCreator = NotificationResourceV1GetEventTypesApiAxiosParamCreator;
|
|
1684
|
+
/**
|
|
1685
|
+
* NotificationResourceV1GetEventTypesApi - functional programming interface
|
|
1686
|
+
* @export
|
|
1687
|
+
*/
|
|
1688
|
+
var NotificationResourceV1GetEventTypesApiFp = function (configuration) {
|
|
1689
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetEventTypesApiAxiosParamCreator)(configuration);
|
|
1690
|
+
return {
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @summary Retrieve all event types. The returned list can be filtered by bundle or application.
|
|
1694
|
+
* @param {Set<string>} [applicationIds]
|
|
1695
|
+
* @param {string} [bundleId]
|
|
1696
|
+
* @param {string} [eventTypeName]
|
|
1697
|
+
* @param {number} [limit]
|
|
1698
|
+
* @param {number} [offset]
|
|
1699
|
+
* @param {number} [pageNumber]
|
|
1700
|
+
* @param {string} [sortBy]
|
|
1701
|
+
* @param {string} [sortBy2]
|
|
1702
|
+
* @param {*} [options] Override http request option.
|
|
1703
|
+
* @throws {RequiredError}
|
|
1704
|
+
*/
|
|
1705
|
+
notificationResourceV1GetEventTypes: function (applicationIds, bundleId, eventTypeName, limit, offset, pageNumber, sortBy, sortBy2, options) {
|
|
1706
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1707
|
+
var localVarAxiosArgs;
|
|
1708
|
+
return __generator(this, function (_a) {
|
|
1709
|
+
switch (_a.label) {
|
|
1710
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetEventTypes(applicationIds, bundleId, eventTypeName, limit, offset, pageNumber, sortBy, sortBy2, options)];
|
|
1711
|
+
case 1:
|
|
1712
|
+
localVarAxiosArgs = _a.sent();
|
|
1713
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1714
|
+
}
|
|
1715
|
+
});
|
|
1716
|
+
});
|
|
1717
|
+
},
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
exports.NotificationResourceV1GetEventTypesApiFp = NotificationResourceV1GetEventTypesApiFp;
|
|
1721
|
+
/**
|
|
1722
|
+
* NotificationResourceV1GetEventTypesApi - factory interface
|
|
1723
|
+
* @export
|
|
1724
|
+
*/
|
|
1725
|
+
var NotificationResourceV1GetEventTypesApiFactory = function (configuration, basePath, axios) {
|
|
1726
|
+
var localVarFp = (0, exports.NotificationResourceV1GetEventTypesApiFp)(configuration);
|
|
1727
|
+
return {
|
|
1728
|
+
/**
|
|
1729
|
+
*
|
|
1730
|
+
* @summary Retrieve all event types. The returned list can be filtered by bundle or application.
|
|
1731
|
+
* @param {Set<string>} [applicationIds]
|
|
1732
|
+
* @param {string} [bundleId]
|
|
1733
|
+
* @param {string} [eventTypeName]
|
|
1734
|
+
* @param {number} [limit]
|
|
1735
|
+
* @param {number} [offset]
|
|
1736
|
+
* @param {number} [pageNumber]
|
|
1737
|
+
* @param {string} [sortBy]
|
|
1738
|
+
* @param {string} [sortBy2]
|
|
1739
|
+
* @param {*} [options] Override http request option.
|
|
1740
|
+
* @throws {RequiredError}
|
|
1741
|
+
*/
|
|
1742
|
+
notificationResourceV1GetEventTypes: function (applicationIds, bundleId, eventTypeName, limit, offset, pageNumber, sortBy, sortBy2, options) {
|
|
1743
|
+
return localVarFp.notificationResourceV1GetEventTypes(applicationIds, bundleId, eventTypeName, limit, offset, pageNumber, sortBy, sortBy2, options).then(function (request) { return request(axios, basePath); });
|
|
1744
|
+
},
|
|
1745
|
+
};
|
|
1746
|
+
};
|
|
1747
|
+
exports.NotificationResourceV1GetEventTypesApiFactory = NotificationResourceV1GetEventTypesApiFactory;
|
|
1748
|
+
/**
|
|
1749
|
+
* NotificationResourceV1GetEventTypesApi - object-oriented interface
|
|
1750
|
+
* @export
|
|
1751
|
+
* @class NotificationResourceV1GetEventTypesApi
|
|
1752
|
+
* @extends {BaseAPI}
|
|
1753
|
+
*/
|
|
1754
|
+
var NotificationResourceV1GetEventTypesApi = /** @class */ (function (_super) {
|
|
1755
|
+
__extends(NotificationResourceV1GetEventTypesApi, _super);
|
|
1756
|
+
function NotificationResourceV1GetEventTypesApi() {
|
|
1757
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
*
|
|
1761
|
+
* @summary Retrieve all event types. The returned list can be filtered by bundle or application.
|
|
1762
|
+
* @param {Set<string>} [applicationIds]
|
|
1763
|
+
* @param {string} [bundleId]
|
|
1764
|
+
* @param {string} [eventTypeName]
|
|
1765
|
+
* @param {number} [limit]
|
|
1766
|
+
* @param {number} [offset]
|
|
1767
|
+
* @param {number} [pageNumber]
|
|
1768
|
+
* @param {string} [sortBy]
|
|
1769
|
+
* @param {string} [sortBy2]
|
|
1770
|
+
* @param {*} [options] Override http request option.
|
|
1771
|
+
* @throws {RequiredError}
|
|
1772
|
+
* @memberof NotificationResourceV1GetEventTypesApi
|
|
1773
|
+
*/
|
|
1774
|
+
NotificationResourceV1GetEventTypesApi.prototype.notificationResourceV1GetEventTypes = function (applicationIds, bundleId, eventTypeName, limit, offset, pageNumber, sortBy, sortBy2, options) {
|
|
1775
|
+
var _this = this;
|
|
1776
|
+
return (0, exports.NotificationResourceV1GetEventTypesApiFp)(this.configuration).notificationResourceV1GetEventTypes(applicationIds, bundleId, eventTypeName, limit, offset, pageNumber, sortBy, sortBy2, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1777
|
+
};
|
|
1778
|
+
return NotificationResourceV1GetEventTypesApi;
|
|
1779
|
+
}(base_1.BaseAPI));
|
|
1780
|
+
exports.NotificationResourceV1GetEventTypesApi = NotificationResourceV1GetEventTypesApi;
|
|
1781
|
+
/**
|
|
1782
|
+
* NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi - axios parameter creator
|
|
1783
|
+
* @export
|
|
1784
|
+
*/
|
|
1785
|
+
var NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator = function (configuration) {
|
|
1786
|
+
var _this = this;
|
|
1787
|
+
return {
|
|
1788
|
+
/**
|
|
1789
|
+
*
|
|
1790
|
+
* @summary Retrieve the event types affected by the removal of a behavior group.
|
|
1791
|
+
* @param {string} behaviorGroupId The UUID of the behavior group to check
|
|
1792
|
+
* @param {*} [options] Override http request option.
|
|
1793
|
+
* @throws {RequiredError}
|
|
1794
|
+
*/
|
|
1795
|
+
notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup: function (behaviorGroupId, options) {
|
|
1796
|
+
if (options === void 0) { options = {}; }
|
|
1797
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1798
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1799
|
+
return __generator(this, function (_a) {
|
|
1800
|
+
// verify required parameter 'behaviorGroupId' is not null or undefined
|
|
1801
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup', 'behaviorGroupId', behaviorGroupId);
|
|
1802
|
+
localVarPath = "/notifications/eventTypes/affectedByRemovalOfBehaviorGroup/{behaviorGroupId}"
|
|
1803
|
+
.replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)));
|
|
1804
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1805
|
+
if (configuration) {
|
|
1806
|
+
baseOptions = configuration.baseOptions;
|
|
1807
|
+
}
|
|
1808
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1809
|
+
localVarHeaderParameter = {};
|
|
1810
|
+
localVarQueryParameter = {};
|
|
1811
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1812
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1813
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1814
|
+
return [2 /*return*/, {
|
|
1815
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1816
|
+
options: localVarRequestOptions,
|
|
1817
|
+
}];
|
|
1818
|
+
});
|
|
1819
|
+
});
|
|
1820
|
+
},
|
|
1821
|
+
};
|
|
1822
|
+
};
|
|
1823
|
+
exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator = NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator;
|
|
1824
|
+
/**
|
|
1825
|
+
* NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi - functional programming interface
|
|
1826
|
+
* @export
|
|
1827
|
+
*/
|
|
1828
|
+
var NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp = function (configuration) {
|
|
1829
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiAxiosParamCreator)(configuration);
|
|
1830
|
+
return {
|
|
1831
|
+
/**
|
|
1832
|
+
*
|
|
1833
|
+
* @summary Retrieve the event types affected by the removal of a behavior group.
|
|
1834
|
+
* @param {string} behaviorGroupId The UUID of the behavior group to check
|
|
1835
|
+
* @param {*} [options] Override http request option.
|
|
1836
|
+
* @throws {RequiredError}
|
|
1837
|
+
*/
|
|
1838
|
+
notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup: function (behaviorGroupId, options) {
|
|
1839
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1840
|
+
var localVarAxiosArgs;
|
|
1841
|
+
return __generator(this, function (_a) {
|
|
1842
|
+
switch (_a.label) {
|
|
1843
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup(behaviorGroupId, options)];
|
|
1844
|
+
case 1:
|
|
1845
|
+
localVarAxiosArgs = _a.sent();
|
|
1846
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
1849
|
+
});
|
|
1850
|
+
},
|
|
1851
|
+
};
|
|
1852
|
+
};
|
|
1853
|
+
exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp = NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp;
|
|
1854
|
+
/**
|
|
1855
|
+
* NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi - factory interface
|
|
1856
|
+
* @export
|
|
1857
|
+
*/
|
|
1858
|
+
var NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFactory = function (configuration, basePath, axios) {
|
|
1859
|
+
var localVarFp = (0, exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp)(configuration);
|
|
1860
|
+
return {
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* @summary Retrieve the event types affected by the removal of a behavior group.
|
|
1864
|
+
* @param {string} behaviorGroupId The UUID of the behavior group to check
|
|
1865
|
+
* @param {*} [options] Override http request option.
|
|
1866
|
+
* @throws {RequiredError}
|
|
1867
|
+
*/
|
|
1868
|
+
notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup: function (behaviorGroupId, options) {
|
|
1869
|
+
return localVarFp.notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup(behaviorGroupId, options).then(function (request) { return request(axios, basePath); });
|
|
1870
|
+
},
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFactory = NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFactory;
|
|
1874
|
+
/**
|
|
1875
|
+
* NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi - object-oriented interface
|
|
1876
|
+
* @export
|
|
1877
|
+
* @class NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi
|
|
1878
|
+
* @extends {BaseAPI}
|
|
1879
|
+
*/
|
|
1880
|
+
var NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi = /** @class */ (function (_super) {
|
|
1881
|
+
__extends(NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi, _super);
|
|
1882
|
+
function NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi() {
|
|
1883
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
*
|
|
1887
|
+
* @summary Retrieve the event types affected by the removal of a behavior group.
|
|
1888
|
+
* @param {string} behaviorGroupId The UUID of the behavior group to check
|
|
1889
|
+
* @param {*} [options] Override http request option.
|
|
1890
|
+
* @throws {RequiredError}
|
|
1891
|
+
* @memberof NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi
|
|
1892
|
+
*/
|
|
1893
|
+
NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi.prototype.notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup = function (behaviorGroupId, options) {
|
|
1894
|
+
var _this = this;
|
|
1895
|
+
return (0, exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApiFp)(this.configuration).notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup(behaviorGroupId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1896
|
+
};
|
|
1897
|
+
return NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi;
|
|
1898
|
+
}(base_1.BaseAPI));
|
|
1899
|
+
exports.NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi = NotificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroupApi;
|
|
1900
|
+
/**
|
|
1901
|
+
* NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi - axios parameter creator
|
|
1902
|
+
* @export
|
|
1903
|
+
*/
|
|
1904
|
+
var NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator = function (configuration) {
|
|
1905
|
+
var _this = this;
|
|
1906
|
+
return {
|
|
1907
|
+
/**
|
|
1908
|
+
*
|
|
1909
|
+
* @summary Retrieve the event type by name of a given bundle name and application name
|
|
1910
|
+
* @param {string} applicationName
|
|
1911
|
+
* @param {string} bundleName
|
|
1912
|
+
* @param {string} eventTypeName
|
|
1913
|
+
* @param {*} [options] Override http request option.
|
|
1914
|
+
* @throws {RequiredError}
|
|
1915
|
+
*/
|
|
1916
|
+
notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName: function (applicationName, bundleName, eventTypeName, options) {
|
|
1917
|
+
if (options === void 0) { options = {}; }
|
|
1918
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1919
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1920
|
+
return __generator(this, function (_a) {
|
|
1921
|
+
// verify required parameter 'applicationName' is not null or undefined
|
|
1922
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName', 'applicationName', applicationName);
|
|
1923
|
+
// verify required parameter 'bundleName' is not null or undefined
|
|
1924
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName', 'bundleName', bundleName);
|
|
1925
|
+
// verify required parameter 'eventTypeName' is not null or undefined
|
|
1926
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName', 'eventTypeName', eventTypeName);
|
|
1927
|
+
localVarPath = "/notifications/bundles/{bundleName}/applications/{applicationName}/eventTypes/{eventTypeName}"
|
|
1928
|
+
.replace("{".concat("applicationName", "}"), encodeURIComponent(String(applicationName)))
|
|
1929
|
+
.replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)))
|
|
1930
|
+
.replace("{".concat("eventTypeName", "}"), encodeURIComponent(String(eventTypeName)));
|
|
1931
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1932
|
+
if (configuration) {
|
|
1933
|
+
baseOptions = configuration.baseOptions;
|
|
1934
|
+
}
|
|
1935
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1936
|
+
localVarHeaderParameter = {};
|
|
1937
|
+
localVarQueryParameter = {};
|
|
1938
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1939
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1940
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1941
|
+
return [2 /*return*/, {
|
|
1942
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1943
|
+
options: localVarRequestOptions,
|
|
1944
|
+
}];
|
|
1945
|
+
});
|
|
1946
|
+
});
|
|
1947
|
+
},
|
|
1948
|
+
};
|
|
1949
|
+
};
|
|
1950
|
+
exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator = NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator;
|
|
1951
|
+
/**
|
|
1952
|
+
* NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi - functional programming interface
|
|
1953
|
+
* @export
|
|
1954
|
+
*/
|
|
1955
|
+
var NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp = function (configuration) {
|
|
1956
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiAxiosParamCreator)(configuration);
|
|
1957
|
+
return {
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @summary Retrieve the event type by name of a given bundle name and application name
|
|
1961
|
+
* @param {string} applicationName
|
|
1962
|
+
* @param {string} bundleName
|
|
1963
|
+
* @param {string} eventTypeName
|
|
1964
|
+
* @param {*} [options] Override http request option.
|
|
1965
|
+
* @throws {RequiredError}
|
|
1966
|
+
*/
|
|
1967
|
+
notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName: function (applicationName, bundleName, eventTypeName, options) {
|
|
1968
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1969
|
+
var localVarAxiosArgs;
|
|
1970
|
+
return __generator(this, function (_a) {
|
|
1971
|
+
switch (_a.label) {
|
|
1972
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName(applicationName, bundleName, eventTypeName, options)];
|
|
1973
|
+
case 1:
|
|
1974
|
+
localVarAxiosArgs = _a.sent();
|
|
1975
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1976
|
+
}
|
|
1977
|
+
});
|
|
1978
|
+
});
|
|
1979
|
+
},
|
|
1980
|
+
};
|
|
1981
|
+
};
|
|
1982
|
+
exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp = NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp;
|
|
1983
|
+
/**
|
|
1984
|
+
* NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi - factory interface
|
|
1985
|
+
* @export
|
|
1986
|
+
*/
|
|
1987
|
+
var NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFactory = function (configuration, basePath, axios) {
|
|
1988
|
+
var localVarFp = (0, exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp)(configuration);
|
|
1989
|
+
return {
|
|
1990
|
+
/**
|
|
1991
|
+
*
|
|
1992
|
+
* @summary Retrieve the event type by name of a given bundle name and application name
|
|
1993
|
+
* @param {string} applicationName
|
|
1994
|
+
* @param {string} bundleName
|
|
1995
|
+
* @param {string} eventTypeName
|
|
1996
|
+
* @param {*} [options] Override http request option.
|
|
1997
|
+
* @throws {RequiredError}
|
|
1998
|
+
*/
|
|
1999
|
+
notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName: function (applicationName, bundleName, eventTypeName, options) {
|
|
2000
|
+
return localVarFp.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName(applicationName, bundleName, eventTypeName, options).then(function (request) { return request(axios, basePath); });
|
|
2001
|
+
},
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFactory = NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFactory;
|
|
2005
|
+
/**
|
|
2006
|
+
* NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi - object-oriented interface
|
|
2007
|
+
* @export
|
|
2008
|
+
* @class NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi
|
|
2009
|
+
* @extends {BaseAPI}
|
|
2010
|
+
*/
|
|
2011
|
+
var NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi = /** @class */ (function (_super) {
|
|
2012
|
+
__extends(NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi, _super);
|
|
2013
|
+
function NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi() {
|
|
2014
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2015
|
+
}
|
|
2016
|
+
/**
|
|
2017
|
+
*
|
|
2018
|
+
* @summary Retrieve the event type by name of a given bundle name and application name
|
|
2019
|
+
* @param {string} applicationName
|
|
2020
|
+
* @param {string} bundleName
|
|
2021
|
+
* @param {string} eventTypeName
|
|
2022
|
+
* @param {*} [options] Override http request option.
|
|
2023
|
+
* @throws {RequiredError}
|
|
2024
|
+
* @memberof NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi
|
|
2025
|
+
*/
|
|
2026
|
+
NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi.prototype.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName = function (applicationName, bundleName, eventTypeName, options) {
|
|
2027
|
+
var _this = this;
|
|
2028
|
+
return (0, exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApiFp)(this.configuration).notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName(applicationName, bundleName, eventTypeName, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2029
|
+
};
|
|
2030
|
+
return NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi;
|
|
2031
|
+
}(base_1.BaseAPI));
|
|
2032
|
+
exports.NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi = NotificationResourceV1GetEventTypesByNameAndBundleAndApplicationNameApi;
|
|
2033
|
+
/**
|
|
2034
|
+
* NotificationResourceV1GetLinkedBehaviorGroupsApi - axios parameter creator
|
|
2035
|
+
* @export
|
|
2036
|
+
*/
|
|
2037
|
+
var NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator = function (configuration) {
|
|
2038
|
+
var _this = this;
|
|
2039
|
+
return {
|
|
2040
|
+
/**
|
|
2041
|
+
*
|
|
2042
|
+
* @summary Retrieve the behavior groups linked to an event type.
|
|
2043
|
+
* @param {string} eventTypeId
|
|
2044
|
+
* @param {number} [limit]
|
|
2045
|
+
* @param {number} [offset]
|
|
2046
|
+
* @param {number} [pageNumber]
|
|
2047
|
+
* @param {string} [sortBy]
|
|
2048
|
+
* @param {string} [sortBy2]
|
|
2049
|
+
* @param {*} [options] Override http request option.
|
|
2050
|
+
* @throws {RequiredError}
|
|
2051
|
+
*/
|
|
2052
|
+
notificationResourceV1GetLinkedBehaviorGroups: function (eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options) {
|
|
2053
|
+
if (options === void 0) { options = {}; }
|
|
2054
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2055
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2056
|
+
return __generator(this, function (_a) {
|
|
2057
|
+
// verify required parameter 'eventTypeId' is not null or undefined
|
|
2058
|
+
(0, common_1.assertParamExists)('notificationResourceV1GetLinkedBehaviorGroups', 'eventTypeId', eventTypeId);
|
|
2059
|
+
localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups"
|
|
2060
|
+
.replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
|
|
2061
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2062
|
+
if (configuration) {
|
|
2063
|
+
baseOptions = configuration.baseOptions;
|
|
2064
|
+
}
|
|
2065
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2066
|
+
localVarHeaderParameter = {};
|
|
2067
|
+
localVarQueryParameter = {};
|
|
2068
|
+
// authentication SecurityScheme required
|
|
2069
|
+
// http basic authentication required
|
|
2070
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
2071
|
+
if (limit !== undefined) {
|
|
2072
|
+
localVarQueryParameter['limit'] = limit;
|
|
2073
|
+
}
|
|
2074
|
+
if (offset !== undefined) {
|
|
2075
|
+
localVarQueryParameter['offset'] = offset;
|
|
2076
|
+
}
|
|
2077
|
+
if (pageNumber !== undefined) {
|
|
2078
|
+
localVarQueryParameter['pageNumber'] = pageNumber;
|
|
2079
|
+
}
|
|
2080
|
+
if (sortBy !== undefined) {
|
|
2081
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
2082
|
+
}
|
|
2083
|
+
if (sortBy2 !== undefined) {
|
|
2084
|
+
localVarQueryParameter['sort_by'] = sortBy2;
|
|
2085
|
+
}
|
|
2086
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2087
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2088
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2089
|
+
return [2 /*return*/, {
|
|
2090
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2091
|
+
options: localVarRequestOptions,
|
|
2092
|
+
}];
|
|
2093
|
+
});
|
|
2094
|
+
});
|
|
2095
|
+
},
|
|
2096
|
+
};
|
|
2097
|
+
};
|
|
2098
|
+
exports.NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator = NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator;
|
|
2099
|
+
/**
|
|
2100
|
+
* NotificationResourceV1GetLinkedBehaviorGroupsApi - functional programming interface
|
|
2101
|
+
* @export
|
|
2102
|
+
*/
|
|
2103
|
+
var NotificationResourceV1GetLinkedBehaviorGroupsApiFp = function (configuration) {
|
|
2104
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1GetLinkedBehaviorGroupsApiAxiosParamCreator)(configuration);
|
|
2105
|
+
return {
|
|
2106
|
+
/**
|
|
2107
|
+
*
|
|
2108
|
+
* @summary Retrieve the behavior groups linked to an event type.
|
|
2109
|
+
* @param {string} eventTypeId
|
|
2110
|
+
* @param {number} [limit]
|
|
2111
|
+
* @param {number} [offset]
|
|
2112
|
+
* @param {number} [pageNumber]
|
|
2113
|
+
* @param {string} [sortBy]
|
|
2114
|
+
* @param {string} [sortBy2]
|
|
2115
|
+
* @param {*} [options] Override http request option.
|
|
2116
|
+
* @throws {RequiredError}
|
|
2117
|
+
*/
|
|
2118
|
+
notificationResourceV1GetLinkedBehaviorGroups: function (eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options) {
|
|
2119
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2120
|
+
var localVarAxiosArgs;
|
|
2121
|
+
return __generator(this, function (_a) {
|
|
2122
|
+
switch (_a.label) {
|
|
2123
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1GetLinkedBehaviorGroups(eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options)];
|
|
2124
|
+
case 1:
|
|
2125
|
+
localVarAxiosArgs = _a.sent();
|
|
2126
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2127
|
+
}
|
|
2128
|
+
});
|
|
2129
|
+
});
|
|
2130
|
+
},
|
|
2131
|
+
};
|
|
2132
|
+
};
|
|
2133
|
+
exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFp = NotificationResourceV1GetLinkedBehaviorGroupsApiFp;
|
|
2134
|
+
/**
|
|
2135
|
+
* NotificationResourceV1GetLinkedBehaviorGroupsApi - factory interface
|
|
2136
|
+
* @export
|
|
2137
|
+
*/
|
|
2138
|
+
var NotificationResourceV1GetLinkedBehaviorGroupsApiFactory = function (configuration, basePath, axios) {
|
|
2139
|
+
var localVarFp = (0, exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFp)(configuration);
|
|
2140
|
+
return {
|
|
2141
|
+
/**
|
|
2142
|
+
*
|
|
2143
|
+
* @summary Retrieve the behavior groups linked to an event type.
|
|
2144
|
+
* @param {string} eventTypeId
|
|
2145
|
+
* @param {number} [limit]
|
|
2146
|
+
* @param {number} [offset]
|
|
2147
|
+
* @param {number} [pageNumber]
|
|
2148
|
+
* @param {string} [sortBy]
|
|
2149
|
+
* @param {string} [sortBy2]
|
|
2150
|
+
* @param {*} [options] Override http request option.
|
|
2151
|
+
* @throws {RequiredError}
|
|
2152
|
+
*/
|
|
2153
|
+
notificationResourceV1GetLinkedBehaviorGroups: function (eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options) {
|
|
2154
|
+
return localVarFp.notificationResourceV1GetLinkedBehaviorGroups(eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options).then(function (request) { return request(axios, basePath); });
|
|
2155
|
+
},
|
|
2156
|
+
};
|
|
2157
|
+
};
|
|
2158
|
+
exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFactory = NotificationResourceV1GetLinkedBehaviorGroupsApiFactory;
|
|
2159
|
+
/**
|
|
2160
|
+
* NotificationResourceV1GetLinkedBehaviorGroupsApi - object-oriented interface
|
|
2161
|
+
* @export
|
|
2162
|
+
* @class NotificationResourceV1GetLinkedBehaviorGroupsApi
|
|
2163
|
+
* @extends {BaseAPI}
|
|
2164
|
+
*/
|
|
2165
|
+
var NotificationResourceV1GetLinkedBehaviorGroupsApi = /** @class */ (function (_super) {
|
|
2166
|
+
__extends(NotificationResourceV1GetLinkedBehaviorGroupsApi, _super);
|
|
2167
|
+
function NotificationResourceV1GetLinkedBehaviorGroupsApi() {
|
|
2168
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2169
|
+
}
|
|
161
2170
|
/**
|
|
162
|
-
*
|
|
163
|
-
* @
|
|
2171
|
+
*
|
|
2172
|
+
* @summary Retrieve the behavior groups linked to an event type.
|
|
2173
|
+
* @param {string} eventTypeId
|
|
2174
|
+
* @param {number} [limit]
|
|
2175
|
+
* @param {number} [offset]
|
|
2176
|
+
* @param {number} [pageNumber]
|
|
2177
|
+
* @param {string} [sortBy]
|
|
2178
|
+
* @param {string} [sortBy2]
|
|
2179
|
+
* @param {*} [options] Override http request option.
|
|
2180
|
+
* @throws {RequiredError}
|
|
2181
|
+
* @memberof NotificationResourceV1GetLinkedBehaviorGroupsApi
|
|
164
2182
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
2183
|
+
NotificationResourceV1GetLinkedBehaviorGroupsApi.prototype.notificationResourceV1GetLinkedBehaviorGroups = function (eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options) {
|
|
2184
|
+
var _this = this;
|
|
2185
|
+
return (0, exports.NotificationResourceV1GetLinkedBehaviorGroupsApiFp)(this.configuration).notificationResourceV1GetLinkedBehaviorGroups(eventTypeId, limit, offset, pageNumber, sortBy, sortBy2, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2186
|
+
};
|
|
2187
|
+
return NotificationResourceV1GetLinkedBehaviorGroupsApi;
|
|
2188
|
+
}(base_1.BaseAPI));
|
|
2189
|
+
exports.NotificationResourceV1GetLinkedBehaviorGroupsApi = NotificationResourceV1GetLinkedBehaviorGroupsApi;
|
|
170
2190
|
/**
|
|
171
|
-
*
|
|
2191
|
+
* NotificationResourceV1UpdateBehaviorGroupApi - axios parameter creator
|
|
172
2192
|
* @export
|
|
173
2193
|
*/
|
|
174
|
-
|
|
2194
|
+
var NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator = function (configuration) {
|
|
2195
|
+
var _this = this;
|
|
175
2196
|
return {
|
|
176
2197
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @
|
|
2198
|
+
*
|
|
2199
|
+
* @summary Update a behavior group.
|
|
2200
|
+
* @param {string} id The UUID of the behavior group to update
|
|
2201
|
+
* @param {UpdateBehaviorGroupRequest} updateBehaviorGroupRequest New parameters
|
|
179
2202
|
* @param {*} [options] Override http request option.
|
|
180
2203
|
* @throws {RequiredError}
|
|
181
2204
|
*/
|
|
182
|
-
|
|
2205
|
+
notificationResourceV1UpdateBehaviorGroup: function (id, updateBehaviorGroupRequest, options) {
|
|
183
2206
|
if (options === void 0) { options = {}; }
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
2207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2208
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2209
|
+
return __generator(this, function (_a) {
|
|
2210
|
+
// verify required parameter 'id' is not null or undefined
|
|
2211
|
+
(0, common_1.assertParamExists)('notificationResourceV1UpdateBehaviorGroup', 'id', id);
|
|
2212
|
+
// verify required parameter 'updateBehaviorGroupRequest' is not null or undefined
|
|
2213
|
+
(0, common_1.assertParamExists)('notificationResourceV1UpdateBehaviorGroup', 'updateBehaviorGroupRequest', updateBehaviorGroupRequest);
|
|
2214
|
+
localVarPath = "/notifications/behaviorGroups/{id}"
|
|
2215
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
2216
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2217
|
+
if (configuration) {
|
|
2218
|
+
baseOptions = configuration.baseOptions;
|
|
2219
|
+
}
|
|
2220
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2221
|
+
localVarHeaderParameter = {};
|
|
2222
|
+
localVarQueryParameter = {};
|
|
2223
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2224
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2225
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2226
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2227
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBehaviorGroupRequest, localVarRequestOptions, configuration);
|
|
2228
|
+
return [2 /*return*/, {
|
|
2229
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2230
|
+
options: localVarRequestOptions,
|
|
2231
|
+
}];
|
|
2232
|
+
});
|
|
2233
|
+
});
|
|
208
2234
|
},
|
|
209
2235
|
};
|
|
210
2236
|
};
|
|
2237
|
+
exports.NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator = NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator;
|
|
211
2238
|
/**
|
|
212
|
-
*
|
|
2239
|
+
* NotificationResourceV1UpdateBehaviorGroupApi - functional programming interface
|
|
213
2240
|
* @export
|
|
214
2241
|
*/
|
|
215
|
-
|
|
2242
|
+
var NotificationResourceV1UpdateBehaviorGroupApiFp = function (configuration) {
|
|
2243
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1UpdateBehaviorGroupApiAxiosParamCreator)(configuration);
|
|
216
2244
|
return {
|
|
217
2245
|
/**
|
|
218
|
-
*
|
|
219
|
-
* @
|
|
2246
|
+
*
|
|
2247
|
+
* @summary Update a behavior group.
|
|
2248
|
+
* @param {string} id The UUID of the behavior group to update
|
|
2249
|
+
* @param {UpdateBehaviorGroupRequest} updateBehaviorGroupRequest New parameters
|
|
220
2250
|
* @param {*} [options] Override http request option.
|
|
221
2251
|
* @throws {RequiredError}
|
|
222
2252
|
*/
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
2253
|
+
notificationResourceV1UpdateBehaviorGroup: function (id, updateBehaviorGroupRequest, options) {
|
|
2254
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2255
|
+
var localVarAxiosArgs;
|
|
2256
|
+
return __generator(this, function (_a) {
|
|
2257
|
+
switch (_a.label) {
|
|
2258
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1UpdateBehaviorGroup(id, updateBehaviorGroupRequest, options)];
|
|
2259
|
+
case 1:
|
|
2260
|
+
localVarAxiosArgs = _a.sent();
|
|
2261
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2262
|
+
}
|
|
2263
|
+
});
|
|
2264
|
+
});
|
|
231
2265
|
},
|
|
232
2266
|
};
|
|
233
2267
|
};
|
|
2268
|
+
exports.NotificationResourceV1UpdateBehaviorGroupApiFp = NotificationResourceV1UpdateBehaviorGroupApiFp;
|
|
234
2269
|
/**
|
|
235
|
-
*
|
|
2270
|
+
* NotificationResourceV1UpdateBehaviorGroupApi - factory interface
|
|
236
2271
|
* @export
|
|
237
2272
|
*/
|
|
238
|
-
|
|
2273
|
+
var NotificationResourceV1UpdateBehaviorGroupApiFactory = function (configuration, basePath, axios) {
|
|
2274
|
+
var localVarFp = (0, exports.NotificationResourceV1UpdateBehaviorGroupApiFp)(configuration);
|
|
239
2275
|
return {
|
|
240
2276
|
/**
|
|
241
|
-
*
|
|
242
|
-
* @
|
|
2277
|
+
*
|
|
2278
|
+
* @summary Update a behavior group.
|
|
2279
|
+
* @param {string} id The UUID of the behavior group to update
|
|
2280
|
+
* @param {UpdateBehaviorGroupRequest} updateBehaviorGroupRequest New parameters
|
|
243
2281
|
* @param {*} [options] Override http request option.
|
|
244
2282
|
* @throws {RequiredError}
|
|
245
2283
|
*/
|
|
246
|
-
|
|
247
|
-
return
|
|
2284
|
+
notificationResourceV1UpdateBehaviorGroup: function (id, updateBehaviorGroupRequest, options) {
|
|
2285
|
+
return localVarFp.notificationResourceV1UpdateBehaviorGroup(id, updateBehaviorGroupRequest, options).then(function (request) { return request(axios, basePath); });
|
|
248
2286
|
},
|
|
249
2287
|
};
|
|
250
2288
|
};
|
|
2289
|
+
exports.NotificationResourceV1UpdateBehaviorGroupApiFactory = NotificationResourceV1UpdateBehaviorGroupApiFactory;
|
|
251
2290
|
/**
|
|
252
|
-
*
|
|
2291
|
+
* NotificationResourceV1UpdateBehaviorGroupApi - object-oriented interface
|
|
253
2292
|
* @export
|
|
254
|
-
* @class
|
|
2293
|
+
* @class NotificationResourceV1UpdateBehaviorGroupApi
|
|
255
2294
|
* @extends {BaseAPI}
|
|
256
2295
|
*/
|
|
257
|
-
var
|
|
258
|
-
__extends(
|
|
259
|
-
function
|
|
2296
|
+
var NotificationResourceV1UpdateBehaviorGroupApi = /** @class */ (function (_super) {
|
|
2297
|
+
__extends(NotificationResourceV1UpdateBehaviorGroupApi, _super);
|
|
2298
|
+
function NotificationResourceV1UpdateBehaviorGroupApi() {
|
|
260
2299
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
261
2300
|
}
|
|
262
2301
|
/**
|
|
263
|
-
*
|
|
264
|
-
* @
|
|
2302
|
+
*
|
|
2303
|
+
* @summary Update a behavior group.
|
|
2304
|
+
* @param {string} id The UUID of the behavior group to update
|
|
2305
|
+
* @param {UpdateBehaviorGroupRequest} updateBehaviorGroupRequest New parameters
|
|
265
2306
|
* @param {*} [options] Override http request option.
|
|
266
2307
|
* @throws {RequiredError}
|
|
267
|
-
* @memberof
|
|
2308
|
+
* @memberof NotificationResourceV1UpdateBehaviorGroupApi
|
|
268
2309
|
*/
|
|
269
|
-
|
|
270
|
-
|
|
2310
|
+
NotificationResourceV1UpdateBehaviorGroupApi.prototype.notificationResourceV1UpdateBehaviorGroup = function (id, updateBehaviorGroupRequest, options) {
|
|
2311
|
+
var _this = this;
|
|
2312
|
+
return (0, exports.NotificationResourceV1UpdateBehaviorGroupApiFp)(this.configuration).notificationResourceV1UpdateBehaviorGroup(id, updateBehaviorGroupRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
271
2313
|
};
|
|
272
|
-
return
|
|
273
|
-
}(BaseAPI));
|
|
274
|
-
exports.
|
|
2314
|
+
return NotificationResourceV1UpdateBehaviorGroupApi;
|
|
2315
|
+
}(base_1.BaseAPI));
|
|
2316
|
+
exports.NotificationResourceV1UpdateBehaviorGroupApi = NotificationResourceV1UpdateBehaviorGroupApi;
|
|
275
2317
|
/**
|
|
276
|
-
*
|
|
2318
|
+
* NotificationResourceV1UpdateBehaviorGroupActionsApi - axios parameter creator
|
|
277
2319
|
* @export
|
|
278
2320
|
*/
|
|
279
|
-
|
|
2321
|
+
var NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator = function (configuration) {
|
|
2322
|
+
var _this = this;
|
|
280
2323
|
return {
|
|
281
2324
|
/**
|
|
282
|
-
*
|
|
283
|
-
* @
|
|
284
|
-
* @param {
|
|
285
|
-
* @
|
|
286
|
-
*/
|
|
287
|
-
appsIndex: function (X_RH_IDENTITY, options) {
|
|
288
|
-
if (options === void 0) { options = {}; }
|
|
289
|
-
// verify required parameter 'X_RH_IDENTITY' is not null or undefined
|
|
290
|
-
if (X_RH_IDENTITY === null || X_RH_IDENTITY === undefined) {
|
|
291
|
-
throw new RequiredError('X_RH_IDENTITY', 'Required parameter X_RH_IDENTITY was null or undefined when calling appsIndex.');
|
|
292
|
-
}
|
|
293
|
-
var localVarPath = "/apps";
|
|
294
|
-
var localVarUrlObj = url.parse(localVarPath, true);
|
|
295
|
-
var baseOptions;
|
|
296
|
-
if (configuration) {
|
|
297
|
-
baseOptions = configuration.baseOptions;
|
|
298
|
-
}
|
|
299
|
-
var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options);
|
|
300
|
-
var localVarHeaderParameter = {};
|
|
301
|
-
var localVarQueryParameter = {};
|
|
302
|
-
if (X_RH_IDENTITY !== undefined && X_RH_IDENTITY !== null) {
|
|
303
|
-
localVarHeaderParameter['X-RH-IDENTITY'] = String(X_RH_IDENTITY);
|
|
304
|
-
}
|
|
305
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
306
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
307
|
-
delete localVarUrlObj.search;
|
|
308
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
309
|
-
return {
|
|
310
|
-
url: url.format(localVarUrlObj),
|
|
311
|
-
options: localVarRequestOptions,
|
|
312
|
-
};
|
|
313
|
-
},
|
|
314
|
-
/**
|
|
315
|
-
* Shows the requested app
|
|
316
|
-
* @param {string} X_RH_IDENTITY
|
|
317
|
-
* @param {number} id
|
|
2325
|
+
*
|
|
2326
|
+
* @summary Update the list of actions of a behavior group.
|
|
2327
|
+
* @param {string} behaviorGroupId The UUID of the behavior group to update
|
|
2328
|
+
* @param {Array<string>} [requestBody]
|
|
318
2329
|
* @param {*} [options] Override http request option.
|
|
319
2330
|
* @throws {RequiredError}
|
|
320
2331
|
*/
|
|
321
|
-
|
|
2332
|
+
notificationResourceV1UpdateBehaviorGroupActions: function (behaviorGroupId, requestBody, options) {
|
|
322
2333
|
if (options === void 0) { options = {}; }
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
return {
|
|
349
|
-
url: url.format(localVarUrlObj),
|
|
350
|
-
options: localVarRequestOptions,
|
|
351
|
-
};
|
|
2334
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2335
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2336
|
+
return __generator(this, function (_a) {
|
|
2337
|
+
// verify required parameter 'behaviorGroupId' is not null or undefined
|
|
2338
|
+
(0, common_1.assertParamExists)('notificationResourceV1UpdateBehaviorGroupActions', 'behaviorGroupId', behaviorGroupId);
|
|
2339
|
+
localVarPath = "/notifications/behaviorGroups/{behaviorGroupId}/actions"
|
|
2340
|
+
.replace("{".concat("behaviorGroupId", "}"), encodeURIComponent(String(behaviorGroupId)));
|
|
2341
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2342
|
+
if (configuration) {
|
|
2343
|
+
baseOptions = configuration.baseOptions;
|
|
2344
|
+
}
|
|
2345
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2346
|
+
localVarHeaderParameter = {};
|
|
2347
|
+
localVarQueryParameter = {};
|
|
2348
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2349
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2350
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2351
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2352
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
2353
|
+
return [2 /*return*/, {
|
|
2354
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2355
|
+
options: localVarRequestOptions,
|
|
2356
|
+
}];
|
|
2357
|
+
});
|
|
2358
|
+
});
|
|
352
2359
|
},
|
|
353
2360
|
};
|
|
354
2361
|
};
|
|
2362
|
+
exports.NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator = NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator;
|
|
355
2363
|
/**
|
|
356
|
-
*
|
|
2364
|
+
* NotificationResourceV1UpdateBehaviorGroupActionsApi - functional programming interface
|
|
357
2365
|
* @export
|
|
358
2366
|
*/
|
|
359
|
-
|
|
2367
|
+
var NotificationResourceV1UpdateBehaviorGroupActionsApiFp = function (configuration) {
|
|
2368
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1UpdateBehaviorGroupActionsApiAxiosParamCreator)(configuration);
|
|
360
2369
|
return {
|
|
361
2370
|
/**
|
|
362
|
-
*
|
|
363
|
-
* @
|
|
364
|
-
* @param {
|
|
365
|
-
* @
|
|
366
|
-
*/
|
|
367
|
-
appsIndex: function (X_RH_IDENTITY, options) {
|
|
368
|
-
var localVarAxiosArgs = exports.AppsApiAxiosParamCreator(configuration).appsIndex(X_RH_IDENTITY, options);
|
|
369
|
-
return function (axios, basePath) {
|
|
370
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
371
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
372
|
-
var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
|
|
373
|
-
return axios.request(axiosRequestArgs);
|
|
374
|
-
};
|
|
375
|
-
},
|
|
376
|
-
/**
|
|
377
|
-
* Shows the requested app
|
|
378
|
-
* @param {string} X_RH_IDENTITY
|
|
379
|
-
* @param {number} id
|
|
2371
|
+
*
|
|
2372
|
+
* @summary Update the list of actions of a behavior group.
|
|
2373
|
+
* @param {string} behaviorGroupId The UUID of the behavior group to update
|
|
2374
|
+
* @param {Array<string>} [requestBody]
|
|
380
2375
|
* @param {*} [options] Override http request option.
|
|
381
2376
|
* @throws {RequiredError}
|
|
382
2377
|
*/
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
2378
|
+
notificationResourceV1UpdateBehaviorGroupActions: function (behaviorGroupId, requestBody, options) {
|
|
2379
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2380
|
+
var localVarAxiosArgs;
|
|
2381
|
+
return __generator(this, function (_a) {
|
|
2382
|
+
switch (_a.label) {
|
|
2383
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1UpdateBehaviorGroupActions(behaviorGroupId, requestBody, options)];
|
|
2384
|
+
case 1:
|
|
2385
|
+
localVarAxiosArgs = _a.sent();
|
|
2386
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2387
|
+
}
|
|
2388
|
+
});
|
|
2389
|
+
});
|
|
391
2390
|
},
|
|
392
2391
|
};
|
|
393
2392
|
};
|
|
2393
|
+
exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFp = NotificationResourceV1UpdateBehaviorGroupActionsApiFp;
|
|
394
2394
|
/**
|
|
395
|
-
*
|
|
2395
|
+
* NotificationResourceV1UpdateBehaviorGroupActionsApi - factory interface
|
|
396
2396
|
* @export
|
|
397
2397
|
*/
|
|
398
|
-
|
|
2398
|
+
var NotificationResourceV1UpdateBehaviorGroupActionsApiFactory = function (configuration, basePath, axios) {
|
|
2399
|
+
var localVarFp = (0, exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFp)(configuration);
|
|
399
2400
|
return {
|
|
400
2401
|
/**
|
|
401
|
-
*
|
|
402
|
-
* @
|
|
403
|
-
* @param {
|
|
404
|
-
* @
|
|
405
|
-
*/
|
|
406
|
-
appsIndex: function (X_RH_IDENTITY, options) {
|
|
407
|
-
return exports.AppsApiFp(configuration).appsIndex(X_RH_IDENTITY, options)(axios, basePath);
|
|
408
|
-
},
|
|
409
|
-
/**
|
|
410
|
-
* Shows the requested app
|
|
411
|
-
* @param {string} X_RH_IDENTITY
|
|
412
|
-
* @param {number} id
|
|
2402
|
+
*
|
|
2403
|
+
* @summary Update the list of actions of a behavior group.
|
|
2404
|
+
* @param {string} behaviorGroupId The UUID of the behavior group to update
|
|
2405
|
+
* @param {Array<string>} [requestBody]
|
|
413
2406
|
* @param {*} [options] Override http request option.
|
|
414
2407
|
* @throws {RequiredError}
|
|
415
2408
|
*/
|
|
416
|
-
|
|
417
|
-
return
|
|
2409
|
+
notificationResourceV1UpdateBehaviorGroupActions: function (behaviorGroupId, requestBody, options) {
|
|
2410
|
+
return localVarFp.notificationResourceV1UpdateBehaviorGroupActions(behaviorGroupId, requestBody, options).then(function (request) { return request(axios, basePath); });
|
|
418
2411
|
},
|
|
419
2412
|
};
|
|
420
2413
|
};
|
|
2414
|
+
exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFactory = NotificationResourceV1UpdateBehaviorGroupActionsApiFactory;
|
|
421
2415
|
/**
|
|
422
|
-
*
|
|
2416
|
+
* NotificationResourceV1UpdateBehaviorGroupActionsApi - object-oriented interface
|
|
423
2417
|
* @export
|
|
424
|
-
* @class
|
|
2418
|
+
* @class NotificationResourceV1UpdateBehaviorGroupActionsApi
|
|
425
2419
|
* @extends {BaseAPI}
|
|
426
2420
|
*/
|
|
427
|
-
var
|
|
428
|
-
__extends(
|
|
429
|
-
function
|
|
2421
|
+
var NotificationResourceV1UpdateBehaviorGroupActionsApi = /** @class */ (function (_super) {
|
|
2422
|
+
__extends(NotificationResourceV1UpdateBehaviorGroupActionsApi, _super);
|
|
2423
|
+
function NotificationResourceV1UpdateBehaviorGroupActionsApi() {
|
|
430
2424
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
431
2425
|
}
|
|
432
2426
|
/**
|
|
433
|
-
*
|
|
434
|
-
* @
|
|
435
|
-
* @param {
|
|
436
|
-
* @
|
|
437
|
-
* @memberof AppsApi
|
|
438
|
-
*/
|
|
439
|
-
AppsApi.prototype.appsIndex = function (X_RH_IDENTITY, options) {
|
|
440
|
-
return exports.AppsApiFp(this.configuration).appsIndex(X_RH_IDENTITY, options)(this.axios, this.basePath);
|
|
441
|
-
};
|
|
442
|
-
/**
|
|
443
|
-
* Shows the requested app
|
|
444
|
-
* @param {string} X_RH_IDENTITY
|
|
445
|
-
* @param {number} id
|
|
2427
|
+
*
|
|
2428
|
+
* @summary Update the list of actions of a behavior group.
|
|
2429
|
+
* @param {string} behaviorGroupId The UUID of the behavior group to update
|
|
2430
|
+
* @param {Array<string>} [requestBody]
|
|
446
2431
|
* @param {*} [options] Override http request option.
|
|
447
2432
|
* @throws {RequiredError}
|
|
448
|
-
* @memberof
|
|
2433
|
+
* @memberof NotificationResourceV1UpdateBehaviorGroupActionsApi
|
|
449
2434
|
*/
|
|
450
|
-
|
|
451
|
-
|
|
2435
|
+
NotificationResourceV1UpdateBehaviorGroupActionsApi.prototype.notificationResourceV1UpdateBehaviorGroupActions = function (behaviorGroupId, requestBody, options) {
|
|
2436
|
+
var _this = this;
|
|
2437
|
+
return (0, exports.NotificationResourceV1UpdateBehaviorGroupActionsApiFp)(this.configuration).notificationResourceV1UpdateBehaviorGroupActions(behaviorGroupId, requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
452
2438
|
};
|
|
453
|
-
return
|
|
454
|
-
}(BaseAPI));
|
|
455
|
-
exports.
|
|
2439
|
+
return NotificationResourceV1UpdateBehaviorGroupActionsApi;
|
|
2440
|
+
}(base_1.BaseAPI));
|
|
2441
|
+
exports.NotificationResourceV1UpdateBehaviorGroupActionsApi = NotificationResourceV1UpdateBehaviorGroupActionsApi;
|
|
456
2442
|
/**
|
|
457
|
-
*
|
|
2443
|
+
* NotificationResourceV1UpdateEventTypeBehaviorsApi - axios parameter creator
|
|
458
2444
|
* @export
|
|
459
2445
|
*/
|
|
460
|
-
|
|
2446
|
+
var NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator = function (configuration) {
|
|
2447
|
+
var _this = this;
|
|
461
2448
|
return {
|
|
462
|
-
/**
|
|
463
|
-
* Creates an endpoint
|
|
464
|
-
* @param {string} X_RH_IDENTITY
|
|
465
|
-
* @param {InlineObject1} inlineObject1
|
|
466
|
-
* @param {*} [options] Override http request option.
|
|
467
|
-
* @throws {RequiredError}
|
|
468
|
-
*/
|
|
469
|
-
endpointsCreate: function (X_RH_IDENTITY, inlineObject1, options) {
|
|
470
|
-
if (options === void 0) { options = {}; }
|
|
471
|
-
// verify required parameter 'X_RH_IDENTITY' is not null or undefined
|
|
472
|
-
if (X_RH_IDENTITY === null || X_RH_IDENTITY === undefined) {
|
|
473
|
-
throw new RequiredError('X_RH_IDENTITY', 'Required parameter X_RH_IDENTITY was null or undefined when calling endpointsCreate.');
|
|
474
|
-
}
|
|
475
|
-
// verify required parameter 'inlineObject1' is not null or undefined
|
|
476
|
-
if (inlineObject1 === null || inlineObject1 === undefined) {
|
|
477
|
-
throw new RequiredError('inlineObject1', 'Required parameter inlineObject1 was null or undefined when calling endpointsCreate.');
|
|
478
|
-
}
|
|
479
|
-
var localVarPath = "/endpoints";
|
|
480
|
-
var localVarUrlObj = url.parse(localVarPath, true);
|
|
481
|
-
var baseOptions;
|
|
482
|
-
if (configuration) {
|
|
483
|
-
baseOptions = configuration.baseOptions;
|
|
484
|
-
}
|
|
485
|
-
var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options);
|
|
486
|
-
var localVarHeaderParameter = {};
|
|
487
|
-
var localVarQueryParameter = {};
|
|
488
|
-
if (X_RH_IDENTITY !== undefined && X_RH_IDENTITY !== null) {
|
|
489
|
-
localVarHeaderParameter['X-RH-IDENTITY'] = String(X_RH_IDENTITY);
|
|
490
|
-
}
|
|
491
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
492
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
493
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
494
|
-
delete localVarUrlObj.search;
|
|
495
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
496
|
-
var needsSerialization = ("InlineObject1" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
497
|
-
localVarRequestOptions.data = needsSerialization ? JSON.stringify(inlineObject1 || {}) : (inlineObject1 || "");
|
|
498
|
-
return {
|
|
499
|
-
url: url.format(localVarUrlObj),
|
|
500
|
-
options: localVarRequestOptions,
|
|
501
|
-
};
|
|
502
|
-
},
|
|
503
2449
|
/**
|
|
504
2450
|
*
|
|
505
|
-
* @
|
|
506
|
-
* @param {
|
|
507
|
-
* @param {
|
|
508
|
-
* @throws {RequiredError}
|
|
509
|
-
*/
|
|
510
|
-
endpointsDestroy: function (X_RH_IDENTITY, id, options) {
|
|
511
|
-
if (options === void 0) { options = {}; }
|
|
512
|
-
// verify required parameter 'X_RH_IDENTITY' is not null or undefined
|
|
513
|
-
if (X_RH_IDENTITY === null || X_RH_IDENTITY === undefined) {
|
|
514
|
-
throw new RequiredError('X_RH_IDENTITY', 'Required parameter X_RH_IDENTITY was null or undefined when calling endpointsDestroy.');
|
|
515
|
-
}
|
|
516
|
-
// verify required parameter 'id' is not null or undefined
|
|
517
|
-
if (id === null || id === undefined) {
|
|
518
|
-
throw new RequiredError('id', 'Required parameter id was null or undefined when calling endpointsDestroy.');
|
|
519
|
-
}
|
|
520
|
-
var localVarPath = "/endpoints/{id}"
|
|
521
|
-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
522
|
-
var localVarUrlObj = url.parse(localVarPath, true);
|
|
523
|
-
var baseOptions;
|
|
524
|
-
if (configuration) {
|
|
525
|
-
baseOptions = configuration.baseOptions;
|
|
526
|
-
}
|
|
527
|
-
var localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions, options);
|
|
528
|
-
var localVarHeaderParameter = {};
|
|
529
|
-
var localVarQueryParameter = {};
|
|
530
|
-
if (X_RH_IDENTITY !== undefined && X_RH_IDENTITY !== null) {
|
|
531
|
-
localVarHeaderParameter['X-RH-IDENTITY'] = String(X_RH_IDENTITY);
|
|
532
|
-
}
|
|
533
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
534
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
535
|
-
delete localVarUrlObj.search;
|
|
536
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
537
|
-
return {
|
|
538
|
-
url: url.format(localVarUrlObj),
|
|
539
|
-
options: localVarRequestOptions,
|
|
540
|
-
};
|
|
541
|
-
},
|
|
542
|
-
/**
|
|
543
|
-
* List all endpoints
|
|
544
|
-
* @param {string} X_RH_IDENTITY
|
|
545
|
-
* @param {string} [order] The ordering by which the returned collection should be sorted.
|
|
546
|
-
* @param {number} [offset] The number of records to skip before returning.
|
|
547
|
-
* @param {number} [limit] The maximum number of records to return.
|
|
2451
|
+
* @summary Update the list of behavior groups of an event type.
|
|
2452
|
+
* @param {string} eventTypeId UUID of the eventType to associate with the behavior group(s)
|
|
2453
|
+
* @param {Set<string>} [requestBody]
|
|
548
2454
|
* @param {*} [options] Override http request option.
|
|
549
2455
|
* @throws {RequiredError}
|
|
550
2456
|
*/
|
|
551
|
-
|
|
2457
|
+
notificationResourceV1UpdateEventTypeBehaviors: function (eventTypeId, requestBody, options) {
|
|
552
2458
|
if (options === void 0) { options = {}; }
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}
|
|
578
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
579
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
580
|
-
delete localVarUrlObj.search;
|
|
581
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
582
|
-
return {
|
|
583
|
-
url: url.format(localVarUrlObj),
|
|
584
|
-
options: localVarRequestOptions,
|
|
585
|
-
};
|
|
2459
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2460
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2461
|
+
return __generator(this, function (_a) {
|
|
2462
|
+
// verify required parameter 'eventTypeId' is not null or undefined
|
|
2463
|
+
(0, common_1.assertParamExists)('notificationResourceV1UpdateEventTypeBehaviors', 'eventTypeId', eventTypeId);
|
|
2464
|
+
localVarPath = "/notifications/eventTypes/{eventTypeId}/behaviorGroups"
|
|
2465
|
+
.replace("{".concat("eventTypeId", "}"), encodeURIComponent(String(eventTypeId)));
|
|
2466
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2467
|
+
if (configuration) {
|
|
2468
|
+
baseOptions = configuration.baseOptions;
|
|
2469
|
+
}
|
|
2470
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2471
|
+
localVarHeaderParameter = {};
|
|
2472
|
+
localVarQueryParameter = {};
|
|
2473
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2474
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2475
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2476
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2477
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
2478
|
+
return [2 /*return*/, {
|
|
2479
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2480
|
+
options: localVarRequestOptions,
|
|
2481
|
+
}];
|
|
2482
|
+
});
|
|
2483
|
+
});
|
|
586
2484
|
},
|
|
2485
|
+
};
|
|
2486
|
+
};
|
|
2487
|
+
exports.NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator = NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator;
|
|
2488
|
+
/**
|
|
2489
|
+
* NotificationResourceV1UpdateEventTypeBehaviorsApi - functional programming interface
|
|
2490
|
+
* @export
|
|
2491
|
+
*/
|
|
2492
|
+
var NotificationResourceV1UpdateEventTypeBehaviorsApiFp = function (configuration) {
|
|
2493
|
+
var localVarAxiosParamCreator = (0, exports.NotificationResourceV1UpdateEventTypeBehaviorsApiAxiosParamCreator)(configuration);
|
|
2494
|
+
return {
|
|
587
2495
|
/**
|
|
588
|
-
*
|
|
589
|
-
* @
|
|
590
|
-
* @param {
|
|
2496
|
+
*
|
|
2497
|
+
* @summary Update the list of behavior groups of an event type.
|
|
2498
|
+
* @param {string} eventTypeId UUID of the eventType to associate with the behavior group(s)
|
|
2499
|
+
* @param {Set<string>} [requestBody]
|
|
591
2500
|
* @param {*} [options] Override http request option.
|
|
592
2501
|
* @throws {RequiredError}
|
|
593
2502
|
*/
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
var localVarUrlObj = url.parse(localVarPath, true);
|
|
607
|
-
var baseOptions;
|
|
608
|
-
if (configuration) {
|
|
609
|
-
baseOptions = configuration.baseOptions;
|
|
610
|
-
}
|
|
611
|
-
var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options);
|
|
612
|
-
var localVarHeaderParameter = {};
|
|
613
|
-
var localVarQueryParameter = {};
|
|
614
|
-
if (X_RH_IDENTITY !== undefined && X_RH_IDENTITY !== null) {
|
|
615
|
-
localVarHeaderParameter['X-RH-IDENTITY'] = String(X_RH_IDENTITY);
|
|
616
|
-
}
|
|
617
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
618
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
619
|
-
delete localVarUrlObj.search;
|
|
620
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
621
|
-
return {
|
|
622
|
-
url: url.format(localVarUrlObj),
|
|
623
|
-
options: localVarRequestOptions,
|
|
624
|
-
};
|
|
2503
|
+
notificationResourceV1UpdateEventTypeBehaviors: function (eventTypeId, requestBody, options) {
|
|
2504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2505
|
+
var localVarAxiosArgs;
|
|
2506
|
+
return __generator(this, function (_a) {
|
|
2507
|
+
switch (_a.label) {
|
|
2508
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.notificationResourceV1UpdateEventTypeBehaviors(eventTypeId, requestBody, options)];
|
|
2509
|
+
case 1:
|
|
2510
|
+
localVarAxiosArgs = _a.sent();
|
|
2511
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2512
|
+
}
|
|
2513
|
+
});
|
|
2514
|
+
});
|
|
625
2515
|
},
|
|
2516
|
+
};
|
|
2517
|
+
};
|
|
2518
|
+
exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFp = NotificationResourceV1UpdateEventTypeBehaviorsApiFp;
|
|
2519
|
+
/**
|
|
2520
|
+
* NotificationResourceV1UpdateEventTypeBehaviorsApi - factory interface
|
|
2521
|
+
* @export
|
|
2522
|
+
*/
|
|
2523
|
+
var NotificationResourceV1UpdateEventTypeBehaviorsApiFactory = function (configuration, basePath, axios) {
|
|
2524
|
+
var localVarFp = (0, exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFp)(configuration);
|
|
2525
|
+
return {
|
|
626
2526
|
/**
|
|
627
|
-
*
|
|
628
|
-
* @
|
|
629
|
-
* @param {
|
|
2527
|
+
*
|
|
2528
|
+
* @summary Update the list of behavior groups of an event type.
|
|
2529
|
+
* @param {string} eventTypeId UUID of the eventType to associate with the behavior group(s)
|
|
2530
|
+
* @param {Set<string>} [requestBody]
|
|
630
2531
|
* @param {*} [options] Override http request option.
|
|
631
2532
|
* @throws {RequiredError}
|
|
632
2533
|
*/
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
// verify required parameter 'X_RH_IDENTITY' is not null or undefined
|
|
636
|
-
if (X_RH_IDENTITY === null || X_RH_IDENTITY === undefined) {
|
|
637
|
-
throw new RequiredError('X_RH_IDENTITY', 'Required parameter X_RH_IDENTITY was null or undefined when calling endpointsTest.');
|
|
638
|
-
}
|
|
639
|
-
// verify required parameter 'id' is not null or undefined
|
|
640
|
-
if (id === null || id === undefined) {
|
|
641
|
-
throw new RequiredError('id', 'Required parameter id was null or undefined when calling endpointsTest.');
|
|
642
|
-
}
|
|
643
|
-
var localVarPath = "/endpoints/{id}/test"
|
|
644
|
-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
645
|
-
var localVarUrlObj = url.parse(localVarPath, true);
|
|
646
|
-
var baseOptions;
|
|
647
|
-
if (configuration) {
|
|
648
|
-
baseOptions = configuration.baseOptions;
|
|
649
|
-
}
|
|
650
|
-
var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options);
|
|
651
|
-
var localVarHeaderParameter = {};
|
|
652
|
-
var localVarQueryParameter = {};
|
|
653
|
-
if (X_RH_IDENTITY !== undefined && X_RH_IDENTITY !== null) {
|
|
654
|
-
localVarHeaderParameter['X-RH-IDENTITY'] = String(X_RH_IDENTITY);
|
|
655
|
-
}
|
|
656
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
657
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
658
|
-
delete localVarUrlObj.search;
|
|
659
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
660
|
-
return {
|
|
661
|
-
url: url.format(localVarUrlObj),
|
|
662
|
-
options: localVarRequestOptions,
|
|
663
|
-
};
|
|
2534
|
+
notificationResourceV1UpdateEventTypeBehaviors: function (eventTypeId, requestBody, options) {
|
|
2535
|
+
return localVarFp.notificationResourceV1UpdateEventTypeBehaviors(eventTypeId, requestBody, options).then(function (request) { return request(axios, basePath); });
|
|
664
2536
|
},
|
|
2537
|
+
};
|
|
2538
|
+
};
|
|
2539
|
+
exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFactory = NotificationResourceV1UpdateEventTypeBehaviorsApiFactory;
|
|
2540
|
+
/**
|
|
2541
|
+
* NotificationResourceV1UpdateEventTypeBehaviorsApi - object-oriented interface
|
|
2542
|
+
* @export
|
|
2543
|
+
* @class NotificationResourceV1UpdateEventTypeBehaviorsApi
|
|
2544
|
+
* @extends {BaseAPI}
|
|
2545
|
+
*/
|
|
2546
|
+
var NotificationResourceV1UpdateEventTypeBehaviorsApi = /** @class */ (function (_super) {
|
|
2547
|
+
__extends(NotificationResourceV1UpdateEventTypeBehaviorsApi, _super);
|
|
2548
|
+
function NotificationResourceV1UpdateEventTypeBehaviorsApi() {
|
|
2549
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2550
|
+
}
|
|
2551
|
+
/**
|
|
2552
|
+
*
|
|
2553
|
+
* @summary Update the list of behavior groups of an event type.
|
|
2554
|
+
* @param {string} eventTypeId UUID of the eventType to associate with the behavior group(s)
|
|
2555
|
+
* @param {Set<string>} [requestBody]
|
|
2556
|
+
* @param {*} [options] Override http request option.
|
|
2557
|
+
* @throws {RequiredError}
|
|
2558
|
+
* @memberof NotificationResourceV1UpdateEventTypeBehaviorsApi
|
|
2559
|
+
*/
|
|
2560
|
+
NotificationResourceV1UpdateEventTypeBehaviorsApi.prototype.notificationResourceV1UpdateEventTypeBehaviors = function (eventTypeId, requestBody, options) {
|
|
2561
|
+
var _this = this;
|
|
2562
|
+
return (0, exports.NotificationResourceV1UpdateEventTypeBehaviorsApiFp)(this.configuration).notificationResourceV1UpdateEventTypeBehaviors(eventTypeId, requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2563
|
+
};
|
|
2564
|
+
return NotificationResourceV1UpdateEventTypeBehaviorsApi;
|
|
2565
|
+
}(base_1.BaseAPI));
|
|
2566
|
+
exports.NotificationResourceV1UpdateEventTypeBehaviorsApi = NotificationResourceV1UpdateEventTypeBehaviorsApi;
|
|
2567
|
+
/**
|
|
2568
|
+
* OrgConfigResourceV1GetDailyDigestTimePreferenceApi - axios parameter creator
|
|
2569
|
+
* @export
|
|
2570
|
+
*/
|
|
2571
|
+
var OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator = function (configuration) {
|
|
2572
|
+
var _this = this;
|
|
2573
|
+
return {
|
|
665
2574
|
/**
|
|
666
|
-
*
|
|
667
|
-
* @param {string} X_RH_IDENTITY
|
|
668
|
-
* @param {number} id
|
|
669
|
-
* @param {InlineObject2} inlineObject2
|
|
2575
|
+
*
|
|
670
2576
|
* @param {*} [options] Override http request option.
|
|
671
2577
|
* @throws {RequiredError}
|
|
672
2578
|
*/
|
|
673
|
-
|
|
2579
|
+
orgConfigResourceV1GetDailyDigestTimePreference: function (options) {
|
|
674
2580
|
if (options === void 0) { options = {}; }
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
var localVarHeaderParameter = {};
|
|
696
|
-
var localVarQueryParameter = {};
|
|
697
|
-
if (X_RH_IDENTITY !== undefined && X_RH_IDENTITY !== null) {
|
|
698
|
-
localVarHeaderParameter['X-RH-IDENTITY'] = String(X_RH_IDENTITY);
|
|
699
|
-
}
|
|
700
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
701
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
702
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
703
|
-
delete localVarUrlObj.search;
|
|
704
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
705
|
-
var needsSerialization = ("InlineObject2" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
706
|
-
localVarRequestOptions.data = needsSerialization ? JSON.stringify(inlineObject2 || {}) : (inlineObject2 || "");
|
|
707
|
-
return {
|
|
708
|
-
url: url.format(localVarUrlObj),
|
|
709
|
-
options: localVarRequestOptions,
|
|
710
|
-
};
|
|
2581
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2582
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2583
|
+
return __generator(this, function (_a) {
|
|
2584
|
+
localVarPath = "/org-config/daily-digest/time-preference";
|
|
2585
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2586
|
+
if (configuration) {
|
|
2587
|
+
baseOptions = configuration.baseOptions;
|
|
2588
|
+
}
|
|
2589
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2590
|
+
localVarHeaderParameter = {};
|
|
2591
|
+
localVarQueryParameter = {};
|
|
2592
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2593
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2594
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2595
|
+
return [2 /*return*/, {
|
|
2596
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2597
|
+
options: localVarRequestOptions,
|
|
2598
|
+
}];
|
|
2599
|
+
});
|
|
2600
|
+
});
|
|
711
2601
|
},
|
|
712
2602
|
};
|
|
713
2603
|
};
|
|
2604
|
+
exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator = OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator;
|
|
714
2605
|
/**
|
|
715
|
-
*
|
|
2606
|
+
* OrgConfigResourceV1GetDailyDigestTimePreferenceApi - functional programming interface
|
|
716
2607
|
* @export
|
|
717
2608
|
*/
|
|
718
|
-
|
|
2609
|
+
var OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp = function (configuration) {
|
|
2610
|
+
var localVarAxiosParamCreator = (0, exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiAxiosParamCreator)(configuration);
|
|
719
2611
|
return {
|
|
720
|
-
/**
|
|
721
|
-
* Creates an endpoint
|
|
722
|
-
* @param {string} X_RH_IDENTITY
|
|
723
|
-
* @param {InlineObject1} inlineObject1
|
|
724
|
-
* @param {*} [options] Override http request option.
|
|
725
|
-
* @throws {RequiredError}
|
|
726
|
-
*/
|
|
727
|
-
endpointsCreate: function (X_RH_IDENTITY, inlineObject1, options) {
|
|
728
|
-
var localVarAxiosArgs = exports.EndpointsApiAxiosParamCreator(configuration).endpointsCreate(X_RH_IDENTITY, inlineObject1, options);
|
|
729
|
-
return function (axios, basePath) {
|
|
730
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
731
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
732
|
-
var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
|
|
733
|
-
return axios.request(axiosRequestArgs);
|
|
734
|
-
};
|
|
735
|
-
},
|
|
736
2612
|
/**
|
|
737
2613
|
*
|
|
738
|
-
* @param {string} X_RH_IDENTITY
|
|
739
|
-
* @param {number} id
|
|
740
2614
|
* @param {*} [options] Override http request option.
|
|
741
2615
|
* @throws {RequiredError}
|
|
742
2616
|
*/
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
2617
|
+
orgConfigResourceV1GetDailyDigestTimePreference: function (options) {
|
|
2618
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2619
|
+
var localVarAxiosArgs;
|
|
2620
|
+
return __generator(this, function (_a) {
|
|
2621
|
+
switch (_a.label) {
|
|
2622
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.orgConfigResourceV1GetDailyDigestTimePreference(options)];
|
|
2623
|
+
case 1:
|
|
2624
|
+
localVarAxiosArgs = _a.sent();
|
|
2625
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2626
|
+
}
|
|
2627
|
+
});
|
|
2628
|
+
});
|
|
751
2629
|
},
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp = OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp;
|
|
2633
|
+
/**
|
|
2634
|
+
* OrgConfigResourceV1GetDailyDigestTimePreferenceApi - factory interface
|
|
2635
|
+
* @export
|
|
2636
|
+
*/
|
|
2637
|
+
var OrgConfigResourceV1GetDailyDigestTimePreferenceApiFactory = function (configuration, basePath, axios) {
|
|
2638
|
+
var localVarFp = (0, exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp)(configuration);
|
|
2639
|
+
return {
|
|
752
2640
|
/**
|
|
753
|
-
*
|
|
754
|
-
* @param {string} X_RH_IDENTITY
|
|
755
|
-
* @param {string} [order] The ordering by which the returned collection should be sorted.
|
|
756
|
-
* @param {number} [offset] The number of records to skip before returning.
|
|
757
|
-
* @param {number} [limit] The maximum number of records to return.
|
|
2641
|
+
*
|
|
758
2642
|
* @param {*} [options] Override http request option.
|
|
759
2643
|
* @throws {RequiredError}
|
|
760
2644
|
*/
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
return function (axios, basePath) {
|
|
764
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
765
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
766
|
-
var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
|
|
767
|
-
return axios.request(axiosRequestArgs);
|
|
768
|
-
};
|
|
2645
|
+
orgConfigResourceV1GetDailyDigestTimePreference: function (options) {
|
|
2646
|
+
return localVarFp.orgConfigResourceV1GetDailyDigestTimePreference(options).then(function (request) { return request(axios, basePath); });
|
|
769
2647
|
},
|
|
2648
|
+
};
|
|
2649
|
+
};
|
|
2650
|
+
exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFactory = OrgConfigResourceV1GetDailyDigestTimePreferenceApiFactory;
|
|
2651
|
+
/**
|
|
2652
|
+
* OrgConfigResourceV1GetDailyDigestTimePreferenceApi - object-oriented interface
|
|
2653
|
+
* @export
|
|
2654
|
+
* @class OrgConfigResourceV1GetDailyDigestTimePreferenceApi
|
|
2655
|
+
* @extends {BaseAPI}
|
|
2656
|
+
*/
|
|
2657
|
+
var OrgConfigResourceV1GetDailyDigestTimePreferenceApi = /** @class */ (function (_super) {
|
|
2658
|
+
__extends(OrgConfigResourceV1GetDailyDigestTimePreferenceApi, _super);
|
|
2659
|
+
function OrgConfigResourceV1GetDailyDigestTimePreferenceApi() {
|
|
2660
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2661
|
+
}
|
|
2662
|
+
/**
|
|
2663
|
+
*
|
|
2664
|
+
* @param {*} [options] Override http request option.
|
|
2665
|
+
* @throws {RequiredError}
|
|
2666
|
+
* @memberof OrgConfigResourceV1GetDailyDigestTimePreferenceApi
|
|
2667
|
+
*/
|
|
2668
|
+
OrgConfigResourceV1GetDailyDigestTimePreferenceApi.prototype.orgConfigResourceV1GetDailyDigestTimePreference = function (options) {
|
|
2669
|
+
var _this = this;
|
|
2670
|
+
return (0, exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApiFp)(this.configuration).orgConfigResourceV1GetDailyDigestTimePreference(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2671
|
+
};
|
|
2672
|
+
return OrgConfigResourceV1GetDailyDigestTimePreferenceApi;
|
|
2673
|
+
}(base_1.BaseAPI));
|
|
2674
|
+
exports.OrgConfigResourceV1GetDailyDigestTimePreferenceApi = OrgConfigResourceV1GetDailyDigestTimePreferenceApi;
|
|
2675
|
+
/**
|
|
2676
|
+
* OrgConfigResourceV1SaveDailyDigestTimePreferenceApi - axios parameter creator
|
|
2677
|
+
* @export
|
|
2678
|
+
*/
|
|
2679
|
+
var OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator = function (configuration) {
|
|
2680
|
+
var _this = this;
|
|
2681
|
+
return {
|
|
770
2682
|
/**
|
|
771
|
-
*
|
|
772
|
-
* @
|
|
773
|
-
* @param {
|
|
2683
|
+
*
|
|
2684
|
+
* @summary Save the daily digest UTC time preference. To cover all time zones conversion to UTC, the accepted minute values are 00, 15, 30 and 45.
|
|
2685
|
+
* @param {string} [body]
|
|
774
2686
|
* @param {*} [options] Override http request option.
|
|
775
2687
|
* @throws {RequiredError}
|
|
776
2688
|
*/
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
return function (
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
2689
|
+
orgConfigResourceV1SaveDailyDigestTimePreference: function (body, options) {
|
|
2690
|
+
if (options === void 0) { options = {}; }
|
|
2691
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2692
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2693
|
+
return __generator(this, function (_a) {
|
|
2694
|
+
localVarPath = "/org-config/daily-digest/time-preference";
|
|
2695
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2696
|
+
if (configuration) {
|
|
2697
|
+
baseOptions = configuration.baseOptions;
|
|
2698
|
+
}
|
|
2699
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2700
|
+
localVarHeaderParameter = {};
|
|
2701
|
+
localVarQueryParameter = {};
|
|
2702
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2703
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2704
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2705
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2706
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2707
|
+
return [2 /*return*/, {
|
|
2708
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2709
|
+
options: localVarRequestOptions,
|
|
2710
|
+
}];
|
|
2711
|
+
});
|
|
2712
|
+
});
|
|
785
2713
|
},
|
|
2714
|
+
};
|
|
2715
|
+
};
|
|
2716
|
+
exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator = OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator;
|
|
2717
|
+
/**
|
|
2718
|
+
* OrgConfigResourceV1SaveDailyDigestTimePreferenceApi - functional programming interface
|
|
2719
|
+
* @export
|
|
2720
|
+
*/
|
|
2721
|
+
var OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp = function (configuration) {
|
|
2722
|
+
var localVarAxiosParamCreator = (0, exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiAxiosParamCreator)(configuration);
|
|
2723
|
+
return {
|
|
786
2724
|
/**
|
|
787
|
-
*
|
|
788
|
-
* @
|
|
789
|
-
* @param {
|
|
2725
|
+
*
|
|
2726
|
+
* @summary Save the daily digest UTC time preference. To cover all time zones conversion to UTC, the accepted minute values are 00, 15, 30 and 45.
|
|
2727
|
+
* @param {string} [body]
|
|
790
2728
|
* @param {*} [options] Override http request option.
|
|
791
2729
|
* @throws {RequiredError}
|
|
792
2730
|
*/
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
2731
|
+
orgConfigResourceV1SaveDailyDigestTimePreference: function (body, options) {
|
|
2732
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2733
|
+
var localVarAxiosArgs;
|
|
2734
|
+
return __generator(this, function (_a) {
|
|
2735
|
+
switch (_a.label) {
|
|
2736
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.orgConfigResourceV1SaveDailyDigestTimePreference(body, options)];
|
|
2737
|
+
case 1:
|
|
2738
|
+
localVarAxiosArgs = _a.sent();
|
|
2739
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2740
|
+
}
|
|
2741
|
+
});
|
|
2742
|
+
});
|
|
801
2743
|
},
|
|
2744
|
+
};
|
|
2745
|
+
};
|
|
2746
|
+
exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp = OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp;
|
|
2747
|
+
/**
|
|
2748
|
+
* OrgConfigResourceV1SaveDailyDigestTimePreferenceApi - factory interface
|
|
2749
|
+
* @export
|
|
2750
|
+
*/
|
|
2751
|
+
var OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFactory = function (configuration, basePath, axios) {
|
|
2752
|
+
var localVarFp = (0, exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp)(configuration);
|
|
2753
|
+
return {
|
|
802
2754
|
/**
|
|
803
|
-
*
|
|
804
|
-
* @
|
|
805
|
-
* @param {
|
|
806
|
-
* @param {InlineObject2} inlineObject2
|
|
2755
|
+
*
|
|
2756
|
+
* @summary Save the daily digest UTC time preference. To cover all time zones conversion to UTC, the accepted minute values are 00, 15, 30 and 45.
|
|
2757
|
+
* @param {string} [body]
|
|
807
2758
|
* @param {*} [options] Override http request option.
|
|
808
2759
|
* @throws {RequiredError}
|
|
809
2760
|
*/
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
return function (axios, basePath) {
|
|
813
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
814
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
815
|
-
var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
|
|
816
|
-
return axios.request(axiosRequestArgs);
|
|
817
|
-
};
|
|
2761
|
+
orgConfigResourceV1SaveDailyDigestTimePreference: function (body, options) {
|
|
2762
|
+
return localVarFp.orgConfigResourceV1SaveDailyDigestTimePreference(body, options).then(function (request) { return request(axios, basePath); });
|
|
818
2763
|
},
|
|
819
2764
|
};
|
|
820
2765
|
};
|
|
2766
|
+
exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFactory = OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFactory;
|
|
2767
|
+
/**
|
|
2768
|
+
* OrgConfigResourceV1SaveDailyDigestTimePreferenceApi - object-oriented interface
|
|
2769
|
+
* @export
|
|
2770
|
+
* @class OrgConfigResourceV1SaveDailyDigestTimePreferenceApi
|
|
2771
|
+
* @extends {BaseAPI}
|
|
2772
|
+
*/
|
|
2773
|
+
var OrgConfigResourceV1SaveDailyDigestTimePreferenceApi = /** @class */ (function (_super) {
|
|
2774
|
+
__extends(OrgConfigResourceV1SaveDailyDigestTimePreferenceApi, _super);
|
|
2775
|
+
function OrgConfigResourceV1SaveDailyDigestTimePreferenceApi() {
|
|
2776
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2777
|
+
}
|
|
2778
|
+
/**
|
|
2779
|
+
*
|
|
2780
|
+
* @summary Save the daily digest UTC time preference. To cover all time zones conversion to UTC, the accepted minute values are 00, 15, 30 and 45.
|
|
2781
|
+
* @param {string} [body]
|
|
2782
|
+
* @param {*} [options] Override http request option.
|
|
2783
|
+
* @throws {RequiredError}
|
|
2784
|
+
* @memberof OrgConfigResourceV1SaveDailyDigestTimePreferenceApi
|
|
2785
|
+
*/
|
|
2786
|
+
OrgConfigResourceV1SaveDailyDigestTimePreferenceApi.prototype.orgConfigResourceV1SaveDailyDigestTimePreference = function (body, options) {
|
|
2787
|
+
var _this = this;
|
|
2788
|
+
return (0, exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApiFp)(this.configuration).orgConfigResourceV1SaveDailyDigestTimePreference(body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2789
|
+
};
|
|
2790
|
+
return OrgConfigResourceV1SaveDailyDigestTimePreferenceApi;
|
|
2791
|
+
}(base_1.BaseAPI));
|
|
2792
|
+
exports.OrgConfigResourceV1SaveDailyDigestTimePreferenceApi = OrgConfigResourceV1SaveDailyDigestTimePreferenceApi;
|
|
821
2793
|
/**
|
|
822
|
-
*
|
|
2794
|
+
* UserConfigResourceV1GetPreferencesApi - axios parameter creator
|
|
823
2795
|
* @export
|
|
824
2796
|
*/
|
|
825
|
-
|
|
2797
|
+
var UserConfigResourceV1GetPreferencesApiAxiosParamCreator = function (configuration) {
|
|
2798
|
+
var _this = this;
|
|
826
2799
|
return {
|
|
827
2800
|
/**
|
|
828
|
-
*
|
|
829
|
-
* @param {string}
|
|
830
|
-
* @param {
|
|
2801
|
+
*
|
|
2802
|
+
* @param {string} applicationName
|
|
2803
|
+
* @param {string} bundleName
|
|
831
2804
|
* @param {*} [options] Override http request option.
|
|
832
2805
|
* @throws {RequiredError}
|
|
833
2806
|
*/
|
|
834
|
-
|
|
835
|
-
|
|
2807
|
+
userConfigResourceV1GetPreferences: function (applicationName, bundleName, options) {
|
|
2808
|
+
if (options === void 0) { options = {}; }
|
|
2809
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2810
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2811
|
+
return __generator(this, function (_a) {
|
|
2812
|
+
// verify required parameter 'applicationName' is not null or undefined
|
|
2813
|
+
(0, common_1.assertParamExists)('userConfigResourceV1GetPreferences', 'applicationName', applicationName);
|
|
2814
|
+
// verify required parameter 'bundleName' is not null or undefined
|
|
2815
|
+
(0, common_1.assertParamExists)('userConfigResourceV1GetPreferences', 'bundleName', bundleName);
|
|
2816
|
+
localVarPath = "/user-config/notification-preference/{bundleName}/{applicationName}"
|
|
2817
|
+
.replace("{".concat("applicationName", "}"), encodeURIComponent(String(applicationName)))
|
|
2818
|
+
.replace("{".concat("bundleName", "}"), encodeURIComponent(String(bundleName)));
|
|
2819
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2820
|
+
if (configuration) {
|
|
2821
|
+
baseOptions = configuration.baseOptions;
|
|
2822
|
+
}
|
|
2823
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2824
|
+
localVarHeaderParameter = {};
|
|
2825
|
+
localVarQueryParameter = {};
|
|
2826
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2827
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2828
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2829
|
+
return [2 /*return*/, {
|
|
2830
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2831
|
+
options: localVarRequestOptions,
|
|
2832
|
+
}];
|
|
2833
|
+
});
|
|
2834
|
+
});
|
|
836
2835
|
},
|
|
2836
|
+
};
|
|
2837
|
+
};
|
|
2838
|
+
exports.UserConfigResourceV1GetPreferencesApiAxiosParamCreator = UserConfigResourceV1GetPreferencesApiAxiosParamCreator;
|
|
2839
|
+
/**
|
|
2840
|
+
* UserConfigResourceV1GetPreferencesApi - functional programming interface
|
|
2841
|
+
* @export
|
|
2842
|
+
*/
|
|
2843
|
+
var UserConfigResourceV1GetPreferencesApiFp = function (configuration) {
|
|
2844
|
+
var localVarAxiosParamCreator = (0, exports.UserConfigResourceV1GetPreferencesApiAxiosParamCreator)(configuration);
|
|
2845
|
+
return {
|
|
837
2846
|
/**
|
|
838
2847
|
*
|
|
839
|
-
* @param {string}
|
|
840
|
-
* @param {
|
|
2848
|
+
* @param {string} applicationName
|
|
2849
|
+
* @param {string} bundleName
|
|
841
2850
|
* @param {*} [options] Override http request option.
|
|
842
2851
|
* @throws {RequiredError}
|
|
843
2852
|
*/
|
|
844
|
-
|
|
845
|
-
return
|
|
2853
|
+
userConfigResourceV1GetPreferences: function (applicationName, bundleName, options) {
|
|
2854
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2855
|
+
var localVarAxiosArgs;
|
|
2856
|
+
return __generator(this, function (_a) {
|
|
2857
|
+
switch (_a.label) {
|
|
2858
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.userConfigResourceV1GetPreferences(applicationName, bundleName, options)];
|
|
2859
|
+
case 1:
|
|
2860
|
+
localVarAxiosArgs = _a.sent();
|
|
2861
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2862
|
+
}
|
|
2863
|
+
});
|
|
2864
|
+
});
|
|
846
2865
|
},
|
|
2866
|
+
};
|
|
2867
|
+
};
|
|
2868
|
+
exports.UserConfigResourceV1GetPreferencesApiFp = UserConfigResourceV1GetPreferencesApiFp;
|
|
2869
|
+
/**
|
|
2870
|
+
* UserConfigResourceV1GetPreferencesApi - factory interface
|
|
2871
|
+
* @export
|
|
2872
|
+
*/
|
|
2873
|
+
var UserConfigResourceV1GetPreferencesApiFactory = function (configuration, basePath, axios) {
|
|
2874
|
+
var localVarFp = (0, exports.UserConfigResourceV1GetPreferencesApiFp)(configuration);
|
|
2875
|
+
return {
|
|
847
2876
|
/**
|
|
848
|
-
*
|
|
849
|
-
* @param {string}
|
|
850
|
-
* @param {string}
|
|
851
|
-
* @param {number} [offset] The number of records to skip before returning.
|
|
852
|
-
* @param {number} [limit] The maximum number of records to return.
|
|
2877
|
+
*
|
|
2878
|
+
* @param {string} applicationName
|
|
2879
|
+
* @param {string} bundleName
|
|
853
2880
|
* @param {*} [options] Override http request option.
|
|
854
2881
|
* @throws {RequiredError}
|
|
855
2882
|
*/
|
|
856
|
-
|
|
857
|
-
return
|
|
2883
|
+
userConfigResourceV1GetPreferences: function (applicationName, bundleName, options) {
|
|
2884
|
+
return localVarFp.userConfigResourceV1GetPreferences(applicationName, bundleName, options).then(function (request) { return request(axios, basePath); });
|
|
858
2885
|
},
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
exports.UserConfigResourceV1GetPreferencesApiFactory = UserConfigResourceV1GetPreferencesApiFactory;
|
|
2889
|
+
/**
|
|
2890
|
+
* UserConfigResourceV1GetPreferencesApi - object-oriented interface
|
|
2891
|
+
* @export
|
|
2892
|
+
* @class UserConfigResourceV1GetPreferencesApi
|
|
2893
|
+
* @extends {BaseAPI}
|
|
2894
|
+
*/
|
|
2895
|
+
var UserConfigResourceV1GetPreferencesApi = /** @class */ (function (_super) {
|
|
2896
|
+
__extends(UserConfigResourceV1GetPreferencesApi, _super);
|
|
2897
|
+
function UserConfigResourceV1GetPreferencesApi() {
|
|
2898
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2899
|
+
}
|
|
2900
|
+
/**
|
|
2901
|
+
*
|
|
2902
|
+
* @param {string} applicationName
|
|
2903
|
+
* @param {string} bundleName
|
|
2904
|
+
* @param {*} [options] Override http request option.
|
|
2905
|
+
* @throws {RequiredError}
|
|
2906
|
+
* @memberof UserConfigResourceV1GetPreferencesApi
|
|
2907
|
+
*/
|
|
2908
|
+
UserConfigResourceV1GetPreferencesApi.prototype.userConfigResourceV1GetPreferences = function (applicationName, bundleName, options) {
|
|
2909
|
+
var _this = this;
|
|
2910
|
+
return (0, exports.UserConfigResourceV1GetPreferencesApiFp)(this.configuration).userConfigResourceV1GetPreferences(applicationName, bundleName, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2911
|
+
};
|
|
2912
|
+
return UserConfigResourceV1GetPreferencesApi;
|
|
2913
|
+
}(base_1.BaseAPI));
|
|
2914
|
+
exports.UserConfigResourceV1GetPreferencesApi = UserConfigResourceV1GetPreferencesApi;
|
|
2915
|
+
/**
|
|
2916
|
+
* UserConfigResourceV1GetSettingsSchemaApi - axios parameter creator
|
|
2917
|
+
* @export
|
|
2918
|
+
*/
|
|
2919
|
+
var UserConfigResourceV1GetSettingsSchemaApiAxiosParamCreator = function (configuration) {
|
|
2920
|
+
var _this = this;
|
|
2921
|
+
return {
|
|
859
2922
|
/**
|
|
860
|
-
*
|
|
861
|
-
* @param {string}
|
|
862
|
-
* @param {number} id
|
|
2923
|
+
*
|
|
2924
|
+
* @param {string} [bundleName]
|
|
863
2925
|
* @param {*} [options] Override http request option.
|
|
864
2926
|
* @throws {RequiredError}
|
|
865
2927
|
*/
|
|
866
|
-
|
|
867
|
-
|
|
2928
|
+
userConfigResourceV1GetSettingsSchema: function (bundleName, options) {
|
|
2929
|
+
if (options === void 0) { options = {}; }
|
|
2930
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2931
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2932
|
+
return __generator(this, function (_a) {
|
|
2933
|
+
localVarPath = "/user-config/notification-preference";
|
|
2934
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2935
|
+
if (configuration) {
|
|
2936
|
+
baseOptions = configuration.baseOptions;
|
|
2937
|
+
}
|
|
2938
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2939
|
+
localVarHeaderParameter = {};
|
|
2940
|
+
localVarQueryParameter = {};
|
|
2941
|
+
if (bundleName !== undefined) {
|
|
2942
|
+
localVarQueryParameter['bundleName'] = bundleName;
|
|
2943
|
+
}
|
|
2944
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2945
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2946
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2947
|
+
return [2 /*return*/, {
|
|
2948
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2949
|
+
options: localVarRequestOptions,
|
|
2950
|
+
}];
|
|
2951
|
+
});
|
|
2952
|
+
});
|
|
868
2953
|
},
|
|
2954
|
+
};
|
|
2955
|
+
};
|
|
2956
|
+
exports.UserConfigResourceV1GetSettingsSchemaApiAxiosParamCreator = UserConfigResourceV1GetSettingsSchemaApiAxiosParamCreator;
|
|
2957
|
+
/**
|
|
2958
|
+
* UserConfigResourceV1GetSettingsSchemaApi - functional programming interface
|
|
2959
|
+
* @export
|
|
2960
|
+
*/
|
|
2961
|
+
var UserConfigResourceV1GetSettingsSchemaApiFp = function (configuration) {
|
|
2962
|
+
var localVarAxiosParamCreator = (0, exports.UserConfigResourceV1GetSettingsSchemaApiAxiosParamCreator)(configuration);
|
|
2963
|
+
return {
|
|
869
2964
|
/**
|
|
870
|
-
*
|
|
871
|
-
* @param {string}
|
|
872
|
-
* @param {number} id
|
|
2965
|
+
*
|
|
2966
|
+
* @param {string} [bundleName]
|
|
873
2967
|
* @param {*} [options] Override http request option.
|
|
874
2968
|
* @throws {RequiredError}
|
|
875
2969
|
*/
|
|
876
|
-
|
|
877
|
-
return
|
|
2970
|
+
userConfigResourceV1GetSettingsSchema: function (bundleName, options) {
|
|
2971
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2972
|
+
var localVarAxiosArgs;
|
|
2973
|
+
return __generator(this, function (_a) {
|
|
2974
|
+
switch (_a.label) {
|
|
2975
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.userConfigResourceV1GetSettingsSchema(bundleName, options)];
|
|
2976
|
+
case 1:
|
|
2977
|
+
localVarAxiosArgs = _a.sent();
|
|
2978
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2979
|
+
}
|
|
2980
|
+
});
|
|
2981
|
+
});
|
|
878
2982
|
},
|
|
2983
|
+
};
|
|
2984
|
+
};
|
|
2985
|
+
exports.UserConfigResourceV1GetSettingsSchemaApiFp = UserConfigResourceV1GetSettingsSchemaApiFp;
|
|
2986
|
+
/**
|
|
2987
|
+
* UserConfigResourceV1GetSettingsSchemaApi - factory interface
|
|
2988
|
+
* @export
|
|
2989
|
+
*/
|
|
2990
|
+
var UserConfigResourceV1GetSettingsSchemaApiFactory = function (configuration, basePath, axios) {
|
|
2991
|
+
var localVarFp = (0, exports.UserConfigResourceV1GetSettingsSchemaApiFp)(configuration);
|
|
2992
|
+
return {
|
|
879
2993
|
/**
|
|
880
|
-
*
|
|
881
|
-
* @param {string}
|
|
882
|
-
* @param {number} id
|
|
883
|
-
* @param {InlineObject2} inlineObject2
|
|
2994
|
+
*
|
|
2995
|
+
* @param {string} [bundleName]
|
|
884
2996
|
* @param {*} [options] Override http request option.
|
|
885
2997
|
* @throws {RequiredError}
|
|
886
2998
|
*/
|
|
887
|
-
|
|
888
|
-
return
|
|
2999
|
+
userConfigResourceV1GetSettingsSchema: function (bundleName, options) {
|
|
3000
|
+
return localVarFp.userConfigResourceV1GetSettingsSchema(bundleName, options).then(function (request) { return request(axios, basePath); });
|
|
889
3001
|
},
|
|
890
3002
|
};
|
|
891
3003
|
};
|
|
3004
|
+
exports.UserConfigResourceV1GetSettingsSchemaApiFactory = UserConfigResourceV1GetSettingsSchemaApiFactory;
|
|
892
3005
|
/**
|
|
893
|
-
*
|
|
3006
|
+
* UserConfigResourceV1GetSettingsSchemaApi - object-oriented interface
|
|
894
3007
|
* @export
|
|
895
|
-
* @class
|
|
3008
|
+
* @class UserConfigResourceV1GetSettingsSchemaApi
|
|
896
3009
|
* @extends {BaseAPI}
|
|
897
3010
|
*/
|
|
898
|
-
var
|
|
899
|
-
__extends(
|
|
900
|
-
function
|
|
3011
|
+
var UserConfigResourceV1GetSettingsSchemaApi = /** @class */ (function (_super) {
|
|
3012
|
+
__extends(UserConfigResourceV1GetSettingsSchemaApi, _super);
|
|
3013
|
+
function UserConfigResourceV1GetSettingsSchemaApi() {
|
|
901
3014
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
902
3015
|
}
|
|
903
|
-
/**
|
|
904
|
-
* Creates an endpoint
|
|
905
|
-
* @param {string} X_RH_IDENTITY
|
|
906
|
-
* @param {InlineObject1} inlineObject1
|
|
907
|
-
* @param {*} [options] Override http request option.
|
|
908
|
-
* @throws {RequiredError}
|
|
909
|
-
* @memberof EndpointsApi
|
|
910
|
-
*/
|
|
911
|
-
EndpointsApi.prototype.endpointsCreate = function (X_RH_IDENTITY, inlineObject1, options) {
|
|
912
|
-
return exports.EndpointsApiFp(this.configuration).endpointsCreate(X_RH_IDENTITY, inlineObject1, options)(this.axios, this.basePath);
|
|
913
|
-
};
|
|
914
3016
|
/**
|
|
915
3017
|
*
|
|
916
|
-
* @param {string}
|
|
917
|
-
* @param {number} id
|
|
918
|
-
* @param {*} [options] Override http request option.
|
|
919
|
-
* @throws {RequiredError}
|
|
920
|
-
* @memberof EndpointsApi
|
|
921
|
-
*/
|
|
922
|
-
EndpointsApi.prototype.endpointsDestroy = function (X_RH_IDENTITY, id, options) {
|
|
923
|
-
return exports.EndpointsApiFp(this.configuration).endpointsDestroy(X_RH_IDENTITY, id, options)(this.axios, this.basePath);
|
|
924
|
-
};
|
|
925
|
-
/**
|
|
926
|
-
* List all endpoints
|
|
927
|
-
* @param {string} X_RH_IDENTITY
|
|
928
|
-
* @param {string} [order] The ordering by which the returned collection should be sorted.
|
|
929
|
-
* @param {number} [offset] The number of records to skip before returning.
|
|
930
|
-
* @param {number} [limit] The maximum number of records to return.
|
|
931
|
-
* @param {*} [options] Override http request option.
|
|
932
|
-
* @throws {RequiredError}
|
|
933
|
-
* @memberof EndpointsApi
|
|
934
|
-
*/
|
|
935
|
-
EndpointsApi.prototype.endpointsIndex = function (X_RH_IDENTITY, order, offset, limit, options) {
|
|
936
|
-
return exports.EndpointsApiFp(this.configuration).endpointsIndex(X_RH_IDENTITY, order, offset, limit, options)(this.axios, this.basePath);
|
|
937
|
-
};
|
|
938
|
-
/**
|
|
939
|
-
* Shows the requested endpoint
|
|
940
|
-
* @param {string} X_RH_IDENTITY
|
|
941
|
-
* @param {number} id
|
|
942
|
-
* @param {*} [options] Override http request option.
|
|
943
|
-
* @throws {RequiredError}
|
|
944
|
-
* @memberof EndpointsApi
|
|
945
|
-
*/
|
|
946
|
-
EndpointsApi.prototype.endpointsShow = function (X_RH_IDENTITY, id, options) {
|
|
947
|
-
return exports.EndpointsApiFp(this.configuration).endpointsShow(X_RH_IDENTITY, id, options)(this.axios, this.basePath);
|
|
948
|
-
};
|
|
949
|
-
/**
|
|
950
|
-
* Send a test message to the endpoint
|
|
951
|
-
* @param {string} X_RH_IDENTITY
|
|
952
|
-
* @param {number} id
|
|
953
|
-
* @param {*} [options] Override http request option.
|
|
954
|
-
* @throws {RequiredError}
|
|
955
|
-
* @memberof EndpointsApi
|
|
956
|
-
*/
|
|
957
|
-
EndpointsApi.prototype.endpointsTest = function (X_RH_IDENTITY, id, options) {
|
|
958
|
-
return exports.EndpointsApiFp(this.configuration).endpointsTest(X_RH_IDENTITY, id, options)(this.axios, this.basePath);
|
|
959
|
-
};
|
|
960
|
-
/**
|
|
961
|
-
* Updates the requested endpoint
|
|
962
|
-
* @param {string} X_RH_IDENTITY
|
|
963
|
-
* @param {number} id
|
|
964
|
-
* @param {InlineObject2} inlineObject2
|
|
3018
|
+
* @param {string} [bundleName]
|
|
965
3019
|
* @param {*} [options] Override http request option.
|
|
966
3020
|
* @throws {RequiredError}
|
|
967
|
-
* @memberof
|
|
3021
|
+
* @memberof UserConfigResourceV1GetSettingsSchemaApi
|
|
968
3022
|
*/
|
|
969
|
-
|
|
970
|
-
|
|
3023
|
+
UserConfigResourceV1GetSettingsSchemaApi.prototype.userConfigResourceV1GetSettingsSchema = function (bundleName, options) {
|
|
3024
|
+
var _this = this;
|
|
3025
|
+
return (0, exports.UserConfigResourceV1GetSettingsSchemaApiFp)(this.configuration).userConfigResourceV1GetSettingsSchema(bundleName, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
971
3026
|
};
|
|
972
|
-
return
|
|
973
|
-
}(BaseAPI));
|
|
974
|
-
exports.
|
|
3027
|
+
return UserConfigResourceV1GetSettingsSchemaApi;
|
|
3028
|
+
}(base_1.BaseAPI));
|
|
3029
|
+
exports.UserConfigResourceV1GetSettingsSchemaApi = UserConfigResourceV1GetSettingsSchemaApi;
|
|
975
3030
|
/**
|
|
976
|
-
*
|
|
3031
|
+
* UserConfigResourceV1SaveSettingsApi - axios parameter creator
|
|
977
3032
|
* @export
|
|
978
3033
|
*/
|
|
979
|
-
|
|
3034
|
+
var UserConfigResourceV1SaveSettingsApiAxiosParamCreator = function (configuration) {
|
|
3035
|
+
var _this = this;
|
|
980
3036
|
return {
|
|
981
3037
|
/**
|
|
982
|
-
*
|
|
983
|
-
* @param {
|
|
984
|
-
* @param {number} endpointId
|
|
3038
|
+
*
|
|
3039
|
+
* @param {SettingsValues} [settingsValues]
|
|
985
3040
|
* @param {*} [options] Override http request option.
|
|
986
3041
|
* @throws {RequiredError}
|
|
987
3042
|
*/
|
|
988
|
-
|
|
3043
|
+
userConfigResourceV1SaveSettings: function (settingsValues, options) {
|
|
989
3044
|
if (options === void 0) { options = {}; }
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1013
|
-
delete localVarUrlObj.search;
|
|
1014
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
1015
|
-
return {
|
|
1016
|
-
url: url.format(localVarUrlObj),
|
|
1017
|
-
options: localVarRequestOptions,
|
|
1018
|
-
};
|
|
3045
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3046
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3047
|
+
return __generator(this, function (_a) {
|
|
3048
|
+
localVarPath = "/user-config/notification-preference";
|
|
3049
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3050
|
+
if (configuration) {
|
|
3051
|
+
baseOptions = configuration.baseOptions;
|
|
3052
|
+
}
|
|
3053
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
3054
|
+
localVarHeaderParameter = {};
|
|
3055
|
+
localVarQueryParameter = {};
|
|
3056
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3057
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3058
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3059
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3060
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(settingsValues, localVarRequestOptions, configuration);
|
|
3061
|
+
return [2 /*return*/, {
|
|
3062
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3063
|
+
options: localVarRequestOptions,
|
|
3064
|
+
}];
|
|
3065
|
+
});
|
|
3066
|
+
});
|
|
1019
3067
|
},
|
|
1020
3068
|
};
|
|
1021
3069
|
};
|
|
3070
|
+
exports.UserConfigResourceV1SaveSettingsApiAxiosParamCreator = UserConfigResourceV1SaveSettingsApiAxiosParamCreator;
|
|
1022
3071
|
/**
|
|
1023
|
-
*
|
|
3072
|
+
* UserConfigResourceV1SaveSettingsApi - functional programming interface
|
|
1024
3073
|
* @export
|
|
1025
3074
|
*/
|
|
1026
|
-
|
|
3075
|
+
var UserConfigResourceV1SaveSettingsApiFp = function (configuration) {
|
|
3076
|
+
var localVarAxiosParamCreator = (0, exports.UserConfigResourceV1SaveSettingsApiAxiosParamCreator)(configuration);
|
|
1027
3077
|
return {
|
|
1028
3078
|
/**
|
|
1029
|
-
*
|
|
1030
|
-
* @param {
|
|
1031
|
-
* @param {number} endpointId
|
|
3079
|
+
*
|
|
3080
|
+
* @param {SettingsValues} [settingsValues]
|
|
1032
3081
|
* @param {*} [options] Override http request option.
|
|
1033
3082
|
* @throws {RequiredError}
|
|
1034
3083
|
*/
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
3084
|
+
userConfigResourceV1SaveSettings: function (settingsValues, options) {
|
|
3085
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3086
|
+
var localVarAxiosArgs;
|
|
3087
|
+
return __generator(this, function (_a) {
|
|
3088
|
+
switch (_a.label) {
|
|
3089
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.userConfigResourceV1SaveSettings(settingsValues, options)];
|
|
3090
|
+
case 1:
|
|
3091
|
+
localVarAxiosArgs = _a.sent();
|
|
3092
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
3093
|
+
}
|
|
3094
|
+
});
|
|
3095
|
+
});
|
|
1043
3096
|
},
|
|
1044
3097
|
};
|
|
1045
3098
|
};
|
|
3099
|
+
exports.UserConfigResourceV1SaveSettingsApiFp = UserConfigResourceV1SaveSettingsApiFp;
|
|
1046
3100
|
/**
|
|
1047
|
-
*
|
|
3101
|
+
* UserConfigResourceV1SaveSettingsApi - factory interface
|
|
1048
3102
|
* @export
|
|
1049
3103
|
*/
|
|
1050
|
-
|
|
3104
|
+
var UserConfigResourceV1SaveSettingsApiFactory = function (configuration, basePath, axios) {
|
|
3105
|
+
var localVarFp = (0, exports.UserConfigResourceV1SaveSettingsApiFp)(configuration);
|
|
1051
3106
|
return {
|
|
1052
3107
|
/**
|
|
1053
|
-
*
|
|
1054
|
-
* @param {
|
|
1055
|
-
* @param {number} endpointId
|
|
3108
|
+
*
|
|
3109
|
+
* @param {SettingsValues} [settingsValues]
|
|
1056
3110
|
* @param {*} [options] Override http request option.
|
|
1057
3111
|
* @throws {RequiredError}
|
|
1058
3112
|
*/
|
|
1059
|
-
|
|
1060
|
-
return
|
|
3113
|
+
userConfigResourceV1SaveSettings: function (settingsValues, options) {
|
|
3114
|
+
return localVarFp.userConfigResourceV1SaveSettings(settingsValues, options).then(function (request) { return request(axios, basePath); });
|
|
1061
3115
|
},
|
|
1062
3116
|
};
|
|
1063
3117
|
};
|
|
3118
|
+
exports.UserConfigResourceV1SaveSettingsApiFactory = UserConfigResourceV1SaveSettingsApiFactory;
|
|
1064
3119
|
/**
|
|
1065
|
-
*
|
|
3120
|
+
* UserConfigResourceV1SaveSettingsApi - object-oriented interface
|
|
1066
3121
|
* @export
|
|
1067
|
-
* @class
|
|
3122
|
+
* @class UserConfigResourceV1SaveSettingsApi
|
|
1068
3123
|
* @extends {BaseAPI}
|
|
1069
3124
|
*/
|
|
1070
|
-
var
|
|
1071
|
-
__extends(
|
|
1072
|
-
function
|
|
3125
|
+
var UserConfigResourceV1SaveSettingsApi = /** @class */ (function (_super) {
|
|
3126
|
+
__extends(UserConfigResourceV1SaveSettingsApi, _super);
|
|
3127
|
+
function UserConfigResourceV1SaveSettingsApi() {
|
|
1073
3128
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1074
3129
|
}
|
|
1075
3130
|
/**
|
|
1076
|
-
*
|
|
1077
|
-
* @param {
|
|
1078
|
-
* @param {number} endpointId
|
|
3131
|
+
*
|
|
3132
|
+
* @param {SettingsValues} [settingsValues]
|
|
1079
3133
|
* @param {*} [options] Override http request option.
|
|
1080
3134
|
* @throws {RequiredError}
|
|
1081
|
-
* @memberof
|
|
3135
|
+
* @memberof UserConfigResourceV1SaveSettingsApi
|
|
1082
3136
|
*/
|
|
1083
|
-
|
|
1084
|
-
|
|
3137
|
+
UserConfigResourceV1SaveSettingsApi.prototype.userConfigResourceV1SaveSettings = function (settingsValues, options) {
|
|
3138
|
+
var _this = this;
|
|
3139
|
+
return (0, exports.UserConfigResourceV1SaveSettingsApiFp)(this.configuration).userConfigResourceV1SaveSettings(settingsValues, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1085
3140
|
};
|
|
1086
|
-
return
|
|
1087
|
-
}(BaseAPI));
|
|
1088
|
-
exports.
|
|
3141
|
+
return UserConfigResourceV1SaveSettingsApi;
|
|
3142
|
+
}(base_1.BaseAPI));
|
|
3143
|
+
exports.UserConfigResourceV1SaveSettingsApi = UserConfigResourceV1SaveSettingsApi;
|