@emilgroup/tenant-sdk 1.0.0 → 1.0.1
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/.openapi-generator/FILES +57 -14
- package/README.md +2 -2
- package/api/alerts-api.ts +860 -0
- package/api/custom-schema-api.ts +60 -52
- package/api/dashboard-api.ts +792 -0
- package/api/data-report-api.ts +75 -65
- package/api/data-report-executor-api.ts +26 -10
- package/api/invite-users-api.ts +79 -75
- package/api/reports-api.ts +860 -0
- package/api/scenario-analysis-api.ts +977 -0
- package/api/settings-api.ts +484 -0
- package/api/tariff-comparisons-api.ts +381 -0
- package/api/{invite-organizations-api.ts → user-subscription-api.ts} +161 -139
- package/api/users-api.ts +148 -138
- package/api.ts +14 -4
- package/dist/api/alerts-api.d.ts +479 -0
- package/dist/api/alerts-api.js +752 -0
- package/dist/api/custom-schema-api.d.ts +42 -42
- package/dist/api/custom-schema-api.js +38 -31
- package/dist/api/dashboard-api.d.ts +434 -0
- package/dist/api/dashboard-api.js +724 -0
- package/dist/api/data-report-api.d.ts +52 -52
- package/dist/api/data-report-api.js +49 -40
- package/dist/api/data-report-executor-api.d.ts +16 -7
- package/dist/api/data-report-executor-api.js +17 -9
- package/dist/api/invite-users-api.d.ts +60 -63
- package/dist/api/invite-users-api.js +49 -40
- package/dist/api/reports-api.d.ts +479 -0
- package/dist/api/reports-api.js +752 -0
- package/dist/api/scenario-analysis-api.d.ts +529 -0
- package/dist/api/scenario-analysis-api.js +895 -0
- package/dist/api/settings-api.d.ts +264 -0
- package/dist/api/settings-api.js +509 -0
- package/dist/api/tariff-comparisons-api.d.ts +206 -0
- package/dist/api/{organizations-api.js → tariff-comparisons-api.js} +158 -99
- package/dist/api/{organizations-api.d.ts → user-subscription-api.d.ts} +103 -88
- package/dist/api/{invite-organizations-api.js → user-subscription-api.js} +114 -106
- package/dist/api/users-api.d.ts +109 -113
- package/dist/api/users-api.js +93 -76
- package/dist/api.d.ts +7 -2
- package/dist/api.js +7 -2
- package/dist/models/alert-class.d.ts +90 -0
- package/dist/models/alert-history-class.d.ts +108 -0
- package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
- package/dist/models/channel-response-class.d.ts +30 -0
- package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
- package/dist/models/compare-tariffs-request-dto.js +22 -0
- package/dist/models/compare-tariffs-response-class.d.ts +31 -0
- package/dist/models/condition-dto.d.ts +43 -0
- package/dist/models/condition-dto.js +22 -0
- package/dist/models/create-alert-request-dto.d.ts +79 -0
- package/dist/models/create-alert-request-dto.js +27 -0
- package/dist/models/create-alert-response-class.d.ts +25 -0
- package/dist/models/create-custom-schema-request-dto.d.ts +0 -1
- package/dist/models/create-custom-schema-request-dto.js +1 -2
- package/dist/models/create-dashboard-request-dto.d.ts +70 -0
- package/dist/models/create-dashboard-request-dto.js +29 -0
- package/dist/models/create-dashboard-response-class.d.ts +25 -0
- package/dist/models/create-report-request-dto.d.ts +49 -0
- package/dist/models/create-report-request-dto.js +22 -0
- package/dist/models/create-report-response-class.d.ts +25 -0
- package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
- package/dist/models/create-scenario-analysis-request-dto.js +22 -0
- package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/dashboard-class.d.ts +78 -0
- package/dist/models/get-alert-response-class.d.ts +25 -0
- package/dist/models/get-dashboard-response-class.d.ts +25 -0
- package/dist/models/{delete-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -6
- package/dist/models/get-report-response-class.d.ts +25 -0
- package/dist/models/get-report-response-class.js +15 -0
- package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/get-scenario-analysis-response-class.js +15 -0
- package/dist/models/grouped-tariff-class.d.ts +30 -0
- package/dist/models/grouped-tariff-class.js +15 -0
- package/dist/models/index.d.ts +50 -12
- package/dist/models/index.js +50 -12
- package/dist/models/{enable-users-response-class.d.ts → insurance-company-response-class.d.ts} +6 -6
- package/dist/models/insurance-company-response-class.js +15 -0
- package/dist/models/{disable-users-response-class.d.ts → insurance-response-class.d.ts} +6 -6
- package/dist/models/insurance-response-class.js +15 -0
- package/dist/models/invite-user-request-dto.d.ts +2 -8
- package/dist/models/invite-users-request-dto.d.ts +2 -2
- package/dist/models/{list-organizations-response-class.d.ts → list-alert-history-response-class.d.ts} +9 -9
- package/dist/models/list-alert-history-response-class.js +15 -0
- package/dist/models/list-alerts-response-class.d.ts +31 -0
- package/dist/models/list-alerts-response-class.js +15 -0
- package/dist/models/list-channels-response-class.d.ts +25 -0
- package/dist/models/list-channels-response-class.js +15 -0
- package/dist/models/list-dashboards-response-class.d.ts +31 -0
- package/dist/models/list-dashboards-response-class.js +15 -0
- package/dist/models/list-insurance-companies-response-class.d.ts +25 -0
- package/dist/models/list-insurance-companies-response-class.js +15 -0
- package/dist/models/list-report-history-response-class.d.ts +31 -0
- package/dist/models/list-report-history-response-class.js +15 -0
- package/dist/models/list-reports-response-class.d.ts +31 -0
- package/dist/models/list-reports-response-class.js +15 -0
- package/dist/models/list-scenario-analyses-response-class.d.ts +31 -0
- package/dist/models/list-scenario-analyses-response-class.js +15 -0
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +25 -0
- package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +25 -0
- package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
- package/dist/models/list-tariffs-response-class.d.ts +25 -0
- package/dist/models/list-tariffs-response-class.js +15 -0
- package/dist/models/{list-org-invitations-response-class.d.ts → list-user-subscriptions-response-class.d.ts} +8 -8
- package/dist/models/list-user-subscriptions-response-class.js +15 -0
- package/dist/models/{batch-delete-response-class.d.ts → manage-subscription-request-dto.d.ts} +5 -5
- package/dist/models/manage-subscription-request-dto.js +15 -0
- package/dist/models/manage-subscription-response-class.d.ts +25 -0
- package/dist/models/manage-subscription-response-class.js +15 -0
- package/dist/models/report-class.d.ts +66 -0
- package/dist/models/report-class.js +15 -0
- package/dist/models/report-history-class.d.ts +48 -0
- package/dist/models/report-history-class.js +15 -0
- package/dist/models/scenario-analysis-class.d.ts +108 -0
- package/dist/models/scenario-analysis-class.js +15 -0
- package/dist/models/scenario-analysis-date-response-class.d.ts +36 -0
- package/dist/models/scenario-analysis-date-response-class.js +15 -0
- package/dist/models/set-setting-request-dto.d.ts +4 -10
- package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
- package/dist/models/set-tenant-setting-response-class.js +15 -0
- package/dist/models/subscription-class.d.ts +2 -9
- package/dist/models/update-alert-request-dto.d.ts +72 -0
- package/dist/models/update-alert-request-dto.js +21 -0
- package/dist/models/update-alert-response-class.d.ts +25 -0
- package/dist/models/update-alert-response-class.js +15 -0
- package/dist/models/update-custom-schema-request-dto.d.ts +0 -1
- package/dist/models/update-custom-schema-request-dto.js +1 -2
- package/dist/models/update-dashboard-request-dto.d.ts +76 -0
- package/dist/models/update-dashboard-request-dto.js +29 -0
- package/dist/models/update-dashboard-response-class.d.ts +25 -0
- package/dist/models/update-dashboard-response-class.js +15 -0
- package/dist/models/update-report-request-dto.d.ts +55 -0
- package/dist/models/update-report-request-dto.js +22 -0
- package/dist/models/update-report-response-class.d.ts +25 -0
- package/dist/models/update-report-response-class.js +15 -0
- package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
- package/dist/models/update-scenario-analysis-request-dto.js +22 -0
- package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/update-scenario-analysis-response-class.js +15 -0
- package/dist/models/user-class.d.ts +5 -13
- package/models/alert-class.ts +96 -0
- package/models/alert-history-class.ts +114 -0
- package/models/assign-user-roles-request-dto.ts +2 -2
- package/models/channel-response-class.ts +36 -0
- package/models/compare-tariffs-request-dto.ts +46 -0
- package/models/compare-tariffs-response-class.ts +37 -0
- package/models/condition-dto.ts +52 -0
- package/models/create-alert-request-dto.ts +89 -0
- package/models/create-alert-response-class.ts +31 -0
- package/models/create-custom-schema-request-dto.ts +1 -2
- package/models/create-dashboard-request-dto.ts +81 -0
- package/models/create-dashboard-response-class.ts +31 -0
- package/models/create-report-request-dto.ts +58 -0
- package/models/create-report-response-class.ts +31 -0
- package/models/create-scenario-analysis-request-dto.ts +83 -0
- package/models/create-scenario-analysis-response-class.ts +31 -0
- package/models/dashboard-class.ts +84 -0
- package/models/get-alert-response-class.ts +31 -0
- package/models/get-dashboard-response-class.ts +31 -0
- package/models/{disable-users-response-class.ts → get-embedded-url-response-class.ts} +6 -6
- package/models/get-report-response-class.ts +31 -0
- package/models/get-scenario-analysis-response-class.ts +31 -0
- package/models/grouped-tariff-class.ts +36 -0
- package/models/index.ts +50 -12
- package/models/{enable-users-response-class.ts → insurance-company-response-class.ts} +6 -6
- package/models/{delete-response-class.ts → insurance-response-class.ts} +6 -6
- package/models/invite-user-request-dto.ts +2 -8
- package/models/invite-users-request-dto.ts +2 -2
- package/models/{list-organizations-response-class.ts → list-alert-history-response-class.ts} +9 -9
- package/models/list-alerts-response-class.ts +37 -0
- package/models/list-channels-response-class.ts +31 -0
- package/models/list-dashboards-response-class.ts +37 -0
- package/models/list-insurance-companies-response-class.ts +31 -0
- package/models/list-report-history-response-class.ts +37 -0
- package/models/list-reports-response-class.ts +37 -0
- package/models/list-scenario-analyses-response-class.ts +37 -0
- package/models/list-scenario-analysis-dates-response-class.ts +31 -0
- package/models/list-tariff-insurance-companies-response-class.ts +31 -0
- package/models/list-tariffs-response-class.ts +31 -0
- package/models/{list-org-invitations-response-class.ts → list-user-subscriptions-response-class.ts} +8 -8
- package/models/{batch-delete-response-class.ts → manage-subscription-request-dto.ts} +5 -5
- package/models/manage-subscription-response-class.ts +31 -0
- package/models/report-class.ts +72 -0
- package/models/report-history-class.ts +54 -0
- package/models/scenario-analysis-class.ts +114 -0
- package/models/scenario-analysis-date-response-class.ts +42 -0
- package/models/set-setting-request-dto.ts +4 -10
- package/models/set-tenant-setting-response-class.ts +42 -0
- package/models/subscription-class.ts +2 -9
- package/models/update-alert-request-dto.ts +81 -0
- package/models/update-alert-response-class.ts +31 -0
- package/models/update-custom-schema-request-dto.ts +1 -2
- package/models/update-dashboard-request-dto.ts +87 -0
- package/models/update-dashboard-response-class.ts +31 -0
- package/models/update-report-request-dto.ts +64 -0
- package/models/update-report-response-class.ts +31 -0
- package/models/update-scenario-analysis-request-dto.ts +83 -0
- package/models/update-scenario-analysis-response-class.ts +31 -0
- package/models/user-class.ts +5 -13
- package/package.json +1 -1
- package/api/organizations-api.ts +0 -339
- package/dist/api/invite-organizations-api.d.ts +0 -198
- package/dist/models/get-organization-response-class.d.ts +0 -25
- package/dist/models/invite-org-request-dto.d.ts +0 -78
- package/dist/models/invite-users-response-class.d.ts +0 -24
- package/dist/models/org-invitation-class.d.ts +0 -103
- package/dist/models/org-invitation-response-class.d.ts +0 -25
- package/dist/models/organization-class.d.ts +0 -84
- package/models/get-organization-response-class.ts +0 -31
- package/models/invite-org-request-dto.ts +0 -84
- package/models/invite-users-response-class.ts +0 -30
- package/models/org-invitation-class.ts +0 -109
- package/models/org-invitation-response-class.ts +0 -31
- package/models/organization-class.ts +0 -90
- /package/dist/models/{batch-delete-response-class.js → alert-class.js} +0 -0
- /package/dist/models/{delete-response-class.js → alert-history-class.js} +0 -0
- /package/dist/models/{disable-users-response-class.js → channel-response-class.js} +0 -0
- /package/dist/models/{enable-users-response-class.js → compare-tariffs-response-class.js} +0 -0
- /package/dist/models/{get-organization-response-class.js → create-alert-response-class.js} +0 -0
- /package/dist/models/{invite-org-request-dto.js → create-dashboard-response-class.js} +0 -0
- /package/dist/models/{invite-users-response-class.js → create-report-response-class.js} +0 -0
- /package/dist/models/{list-org-invitations-response-class.js → create-scenario-analysis-response-class.js} +0 -0
- /package/dist/models/{list-organizations-response-class.js → dashboard-class.js} +0 -0
- /package/dist/models/{org-invitation-class.js → get-alert-response-class.js} +0 -0
- /package/dist/models/{org-invitation-response-class.js → get-dashboard-response-class.js} +0 -0
- /package/dist/models/{organization-class.js → get-embedded-url-response-class.js} +0 -0
|
@@ -0,0 +1,860 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateAlertRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateAlertResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetAlertResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListAlertHistoryResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListAlertsResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateAlertRequestDto } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdateAlertResponseClass } from '../models';
|
|
37
|
+
// URLSearchParams not necessarily used
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import { URL, URLSearchParams } from 'url';
|
|
40
|
+
const FormData = require('form-data');
|
|
41
|
+
/**
|
|
42
|
+
* AlertsApi - axios parameter creator
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export const AlertsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
46
|
+
return {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @param {CreateAlertRequestDto} createAlertRequestDto
|
|
50
|
+
* @param {string} [authorization] Bearer Token
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
createAlert: async (createAlertRequestDto: CreateAlertRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55
|
+
// verify required parameter 'createAlertRequestDto' is not null or undefined
|
|
56
|
+
assertParamExists('createAlert', 'createAlertRequestDto', createAlertRequestDto)
|
|
57
|
+
const localVarPath = `/tenantservice/v1/alerts`;
|
|
58
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
|
+
let baseOptions;
|
|
61
|
+
let baseAccessToken;
|
|
62
|
+
if (configuration) {
|
|
63
|
+
baseOptions = configuration.baseOptions;
|
|
64
|
+
baseAccessToken = configuration.accessToken;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
68
|
+
const localVarHeaderParameter = {} as any;
|
|
69
|
+
const localVarQueryParameter = {} as any;
|
|
70
|
+
|
|
71
|
+
// authentication bearer required
|
|
72
|
+
// http bearer authentication required
|
|
73
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
74
|
+
|
|
75
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
82
|
+
|
|
83
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
86
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createAlertRequestDto, localVarRequestOptions, configuration)
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
url: toPathString(localVarUrlObj),
|
|
90
|
+
options: localVarRequestOptions,
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param {number} id
|
|
96
|
+
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
deleteAlert: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'id' is not null or undefined
|
|
102
|
+
assertParamExists('deleteAlert', 'id', id)
|
|
103
|
+
const localVarPath = `/tenantservice/v1/alerts/{id}`
|
|
104
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
let baseAccessToken;
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
baseAccessToken = configuration.accessToken;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
115
|
+
const localVarHeaderParameter = {} as any;
|
|
116
|
+
const localVarQueryParameter = {} as any;
|
|
117
|
+
|
|
118
|
+
// authentication bearer required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
+
|
|
122
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
url: toPathString(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @param {string} code
|
|
140
|
+
* @param {string} code2 code
|
|
141
|
+
* @param {string} [authorization] Bearer Token
|
|
142
|
+
* @param {string} [expand] Fields to expand response by
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
getAlert: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
|
+
// verify required parameter 'code' is not null or undefined
|
|
148
|
+
assertParamExists('getAlert', 'code', code)
|
|
149
|
+
// verify required parameter 'code2' is not null or undefined
|
|
150
|
+
assertParamExists('getAlert', 'code2', code2)
|
|
151
|
+
const localVarPath = `/tenantservice/v1/alerts/{code}`
|
|
152
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
let baseAccessToken;
|
|
157
|
+
if (configuration) {
|
|
158
|
+
baseOptions = configuration.baseOptions;
|
|
159
|
+
baseAccessToken = configuration.accessToken;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
163
|
+
const localVarHeaderParameter = {} as any;
|
|
164
|
+
const localVarQueryParameter = {} as any;
|
|
165
|
+
|
|
166
|
+
// authentication bearer required
|
|
167
|
+
// http bearer authentication required
|
|
168
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
169
|
+
|
|
170
|
+
if (code2 !== undefined) {
|
|
171
|
+
localVarQueryParameter['code'] = code2;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (expand !== undefined) {
|
|
175
|
+
localVarQueryParameter['expand'] = expand;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
url: toPathString(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @param {string} code
|
|
196
|
+
* @param {string} [authorization] Bearer Token
|
|
197
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
198
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
199
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
200
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
201
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
202
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
listAlertHistory: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
207
|
+
// verify required parameter 'code' is not null or undefined
|
|
208
|
+
assertParamExists('listAlertHistory', 'code', code)
|
|
209
|
+
const localVarPath = `/tenantservice/v1/alerts/{code}/history`
|
|
210
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
let baseAccessToken;
|
|
215
|
+
if (configuration) {
|
|
216
|
+
baseOptions = configuration.baseOptions;
|
|
217
|
+
baseAccessToken = configuration.accessToken;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
221
|
+
const localVarHeaderParameter = {} as any;
|
|
222
|
+
const localVarQueryParameter = {} as any;
|
|
223
|
+
|
|
224
|
+
// authentication bearer required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
227
|
+
|
|
228
|
+
if (pageSize !== undefined) {
|
|
229
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
if (pageToken !== undefined) {
|
|
233
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (filter !== undefined) {
|
|
237
|
+
localVarQueryParameter['filter'] = filter;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (search !== undefined) {
|
|
241
|
+
localVarQueryParameter['search'] = search;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (order !== undefined) {
|
|
245
|
+
localVarQueryParameter['order'] = order;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (expand !== undefined) {
|
|
249
|
+
localVarQueryParameter['expand'] = expand;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
253
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
261
|
+
|
|
262
|
+
return {
|
|
263
|
+
url: toPathString(localVarUrlObj),
|
|
264
|
+
options: localVarRequestOptions,
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @param {string} [authorization] Bearer Token
|
|
270
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
271
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
272
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
273
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
274
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
275
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
listAlerts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
280
|
+
const localVarPath = `/tenantservice/v1/alerts`;
|
|
281
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
282
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
283
|
+
let baseOptions;
|
|
284
|
+
let baseAccessToken;
|
|
285
|
+
if (configuration) {
|
|
286
|
+
baseOptions = configuration.baseOptions;
|
|
287
|
+
baseAccessToken = configuration.accessToken;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
291
|
+
const localVarHeaderParameter = {} as any;
|
|
292
|
+
const localVarQueryParameter = {} as any;
|
|
293
|
+
|
|
294
|
+
// authentication bearer required
|
|
295
|
+
// http bearer authentication required
|
|
296
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
297
|
+
|
|
298
|
+
if (pageSize !== undefined) {
|
|
299
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (pageToken !== undefined) {
|
|
303
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
if (filter !== undefined) {
|
|
307
|
+
localVarQueryParameter['filter'] = filter;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if (search !== undefined) {
|
|
311
|
+
localVarQueryParameter['search'] = search;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
if (order !== undefined) {
|
|
315
|
+
localVarQueryParameter['order'] = order;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (expand !== undefined) {
|
|
319
|
+
localVarQueryParameter['expand'] = expand;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
323
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
331
|
+
|
|
332
|
+
return {
|
|
333
|
+
url: toPathString(localVarUrlObj),
|
|
334
|
+
options: localVarRequestOptions,
|
|
335
|
+
};
|
|
336
|
+
},
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @param {number} id
|
|
340
|
+
* @param {UpdateAlertRequestDto} updateAlertRequestDto
|
|
341
|
+
* @param {string} [authorization] Bearer Token
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
updateAlert: async (id: number, updateAlertRequestDto: UpdateAlertRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
346
|
+
// verify required parameter 'id' is not null or undefined
|
|
347
|
+
assertParamExists('updateAlert', 'id', id)
|
|
348
|
+
// verify required parameter 'updateAlertRequestDto' is not null or undefined
|
|
349
|
+
assertParamExists('updateAlert', 'updateAlertRequestDto', updateAlertRequestDto)
|
|
350
|
+
const localVarPath = `/tenantservice/v1/alerts/{id}`
|
|
351
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
352
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
353
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
354
|
+
let baseOptions;
|
|
355
|
+
let baseAccessToken;
|
|
356
|
+
if (configuration) {
|
|
357
|
+
baseOptions = configuration.baseOptions;
|
|
358
|
+
baseAccessToken = configuration.accessToken;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
362
|
+
const localVarHeaderParameter = {} as any;
|
|
363
|
+
const localVarQueryParameter = {} as any;
|
|
364
|
+
|
|
365
|
+
// authentication bearer required
|
|
366
|
+
// http bearer authentication required
|
|
367
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
368
|
+
|
|
369
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
370
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
376
|
+
|
|
377
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
380
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateAlertRequestDto, localVarRequestOptions, configuration)
|
|
381
|
+
|
|
382
|
+
return {
|
|
383
|
+
url: toPathString(localVarUrlObj),
|
|
384
|
+
options: localVarRequestOptions,
|
|
385
|
+
};
|
|
386
|
+
},
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* AlertsApi - functional programming interface
|
|
392
|
+
* @export
|
|
393
|
+
*/
|
|
394
|
+
export const AlertsApiFp = function(configuration?: Configuration) {
|
|
395
|
+
const localVarAxiosParamCreator = AlertsApiAxiosParamCreator(configuration)
|
|
396
|
+
return {
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @param {CreateAlertRequestDto} createAlertRequestDto
|
|
400
|
+
* @param {string} [authorization] Bearer Token
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
async createAlert(createAlertRequestDto: CreateAlertRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAlertResponseClass>> {
|
|
405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAlert(createAlertRequestDto, authorization, options);
|
|
406
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @param {number} id
|
|
411
|
+
* @param {string} [authorization] Bearer Token
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
async deleteAlert(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlert(id, authorization, options);
|
|
417
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @param {string} code
|
|
422
|
+
* @param {string} code2 code
|
|
423
|
+
* @param {string} [authorization] Bearer Token
|
|
424
|
+
* @param {string} [expand] Fields to expand response by
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
*/
|
|
428
|
+
async getAlert(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAlertResponseClass>> {
|
|
429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAlert(code, code2, authorization, expand, options);
|
|
430
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @param {string} code
|
|
435
|
+
* @param {string} [authorization] Bearer Token
|
|
436
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
437
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
438
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
439
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
440
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
441
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
async listAlertHistory(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAlertHistoryResponseClass>> {
|
|
446
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAlertHistory(code, authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
447
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @param {string} [authorization] Bearer Token
|
|
452
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
453
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
454
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
455
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
456
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
457
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
async listAlerts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAlertsResponseClass>> {
|
|
462
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAlerts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
463
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
464
|
+
},
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @param {number} id
|
|
468
|
+
* @param {UpdateAlertRequestDto} updateAlertRequestDto
|
|
469
|
+
* @param {string} [authorization] Bearer Token
|
|
470
|
+
* @param {*} [options] Override http request option.
|
|
471
|
+
* @throws {RequiredError}
|
|
472
|
+
*/
|
|
473
|
+
async updateAlert(id: number, updateAlertRequestDto: UpdateAlertRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAlertResponseClass>> {
|
|
474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlert(id, updateAlertRequestDto, authorization, options);
|
|
475
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
476
|
+
},
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* AlertsApi - factory interface
|
|
482
|
+
* @export
|
|
483
|
+
*/
|
|
484
|
+
export const AlertsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
485
|
+
const localVarFp = AlertsApiFp(configuration)
|
|
486
|
+
return {
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* @param {CreateAlertRequestDto} createAlertRequestDto
|
|
490
|
+
* @param {string} [authorization] Bearer Token
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
createAlert(createAlertRequestDto: CreateAlertRequestDto, authorization?: string, options?: any): AxiosPromise<CreateAlertResponseClass> {
|
|
495
|
+
return localVarFp.createAlert(createAlertRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @param {number} id
|
|
500
|
+
* @param {string} [authorization] Bearer Token
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
deleteAlert(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
505
|
+
return localVarFp.deleteAlert(id, authorization, options).then((request) => request(axios, basePath));
|
|
506
|
+
},
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @param {string} code
|
|
510
|
+
* @param {string} code2 code
|
|
511
|
+
* @param {string} [authorization] Bearer Token
|
|
512
|
+
* @param {string} [expand] Fields to expand response by
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
*/
|
|
516
|
+
getAlert(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetAlertResponseClass> {
|
|
517
|
+
return localVarFp.getAlert(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
518
|
+
},
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @param {string} code
|
|
522
|
+
* @param {string} [authorization] Bearer Token
|
|
523
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
524
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
525
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
526
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
527
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
528
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
529
|
+
* @param {*} [options] Override http request option.
|
|
530
|
+
* @throws {RequiredError}
|
|
531
|
+
*/
|
|
532
|
+
listAlertHistory(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListAlertHistoryResponseClass> {
|
|
533
|
+
return localVarFp.listAlertHistory(code, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
534
|
+
},
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @param {string} [authorization] Bearer Token
|
|
538
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
539
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
540
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
541
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
542
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
543
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
listAlerts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListAlertsResponseClass> {
|
|
548
|
+
return localVarFp.listAlerts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
549
|
+
},
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @param {number} id
|
|
553
|
+
* @param {UpdateAlertRequestDto} updateAlertRequestDto
|
|
554
|
+
* @param {string} [authorization] Bearer Token
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
*/
|
|
558
|
+
updateAlert(id: number, updateAlertRequestDto: UpdateAlertRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateAlertResponseClass> {
|
|
559
|
+
return localVarFp.updateAlert(id, updateAlertRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
560
|
+
},
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Request parameters for createAlert operation in AlertsApi.
|
|
566
|
+
* @export
|
|
567
|
+
* @interface AlertsApiCreateAlertRequest
|
|
568
|
+
*/
|
|
569
|
+
export interface AlertsApiCreateAlertRequest {
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @type {CreateAlertRequestDto}
|
|
573
|
+
* @memberof AlertsApiCreateAlert
|
|
574
|
+
*/
|
|
575
|
+
readonly createAlertRequestDto: CreateAlertRequestDto
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Bearer Token
|
|
579
|
+
* @type {string}
|
|
580
|
+
* @memberof AlertsApiCreateAlert
|
|
581
|
+
*/
|
|
582
|
+
readonly authorization?: string
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Request parameters for deleteAlert operation in AlertsApi.
|
|
587
|
+
* @export
|
|
588
|
+
* @interface AlertsApiDeleteAlertRequest
|
|
589
|
+
*/
|
|
590
|
+
export interface AlertsApiDeleteAlertRequest {
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @type {number}
|
|
594
|
+
* @memberof AlertsApiDeleteAlert
|
|
595
|
+
*/
|
|
596
|
+
readonly id: number
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Bearer Token
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof AlertsApiDeleteAlert
|
|
602
|
+
*/
|
|
603
|
+
readonly authorization?: string
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Request parameters for getAlert operation in AlertsApi.
|
|
608
|
+
* @export
|
|
609
|
+
* @interface AlertsApiGetAlertRequest
|
|
610
|
+
*/
|
|
611
|
+
export interface AlertsApiGetAlertRequest {
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @type {string}
|
|
615
|
+
* @memberof AlertsApiGetAlert
|
|
616
|
+
*/
|
|
617
|
+
readonly code: string
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* code
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof AlertsApiGetAlert
|
|
623
|
+
*/
|
|
624
|
+
readonly code2: string
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Bearer Token
|
|
628
|
+
* @type {string}
|
|
629
|
+
* @memberof AlertsApiGetAlert
|
|
630
|
+
*/
|
|
631
|
+
readonly authorization?: string
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Fields to expand response by
|
|
635
|
+
* @type {string}
|
|
636
|
+
* @memberof AlertsApiGetAlert
|
|
637
|
+
*/
|
|
638
|
+
readonly expand?: string
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Request parameters for listAlertHistory operation in AlertsApi.
|
|
643
|
+
* @export
|
|
644
|
+
* @interface AlertsApiListAlertHistoryRequest
|
|
645
|
+
*/
|
|
646
|
+
export interface AlertsApiListAlertHistoryRequest {
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @type {string}
|
|
650
|
+
* @memberof AlertsApiListAlertHistory
|
|
651
|
+
*/
|
|
652
|
+
readonly code: string
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Bearer Token
|
|
656
|
+
* @type {string}
|
|
657
|
+
* @memberof AlertsApiListAlertHistory
|
|
658
|
+
*/
|
|
659
|
+
readonly authorization?: string
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
663
|
+
* @type {any}
|
|
664
|
+
* @memberof AlertsApiListAlertHistory
|
|
665
|
+
*/
|
|
666
|
+
readonly pageSize?: any
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
670
|
+
* @type {any}
|
|
671
|
+
* @memberof AlertsApiListAlertHistory
|
|
672
|
+
*/
|
|
673
|
+
readonly pageToken?: any
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
677
|
+
* @type {any}
|
|
678
|
+
* @memberof AlertsApiListAlertHistory
|
|
679
|
+
*/
|
|
680
|
+
readonly filter?: any
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
684
|
+
* @type {any}
|
|
685
|
+
* @memberof AlertsApiListAlertHistory
|
|
686
|
+
*/
|
|
687
|
+
readonly search?: any
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
691
|
+
* @type {any}
|
|
692
|
+
* @memberof AlertsApiListAlertHistory
|
|
693
|
+
*/
|
|
694
|
+
readonly order?: any
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
698
|
+
* @type {any}
|
|
699
|
+
* @memberof AlertsApiListAlertHistory
|
|
700
|
+
*/
|
|
701
|
+
readonly expand?: any
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Request parameters for listAlerts operation in AlertsApi.
|
|
706
|
+
* @export
|
|
707
|
+
* @interface AlertsApiListAlertsRequest
|
|
708
|
+
*/
|
|
709
|
+
export interface AlertsApiListAlertsRequest {
|
|
710
|
+
/**
|
|
711
|
+
* Bearer Token
|
|
712
|
+
* @type {string}
|
|
713
|
+
* @memberof AlertsApiListAlerts
|
|
714
|
+
*/
|
|
715
|
+
readonly authorization?: string
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
719
|
+
* @type {any}
|
|
720
|
+
* @memberof AlertsApiListAlerts
|
|
721
|
+
*/
|
|
722
|
+
readonly pageSize?: any
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
726
|
+
* @type {any}
|
|
727
|
+
* @memberof AlertsApiListAlerts
|
|
728
|
+
*/
|
|
729
|
+
readonly pageToken?: any
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
733
|
+
* @type {any}
|
|
734
|
+
* @memberof AlertsApiListAlerts
|
|
735
|
+
*/
|
|
736
|
+
readonly filter?: any
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
740
|
+
* @type {any}
|
|
741
|
+
* @memberof AlertsApiListAlerts
|
|
742
|
+
*/
|
|
743
|
+
readonly search?: any
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
747
|
+
* @type {any}
|
|
748
|
+
* @memberof AlertsApiListAlerts
|
|
749
|
+
*/
|
|
750
|
+
readonly order?: any
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
754
|
+
* @type {any}
|
|
755
|
+
* @memberof AlertsApiListAlerts
|
|
756
|
+
*/
|
|
757
|
+
readonly expand?: any
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Request parameters for updateAlert operation in AlertsApi.
|
|
762
|
+
* @export
|
|
763
|
+
* @interface AlertsApiUpdateAlertRequest
|
|
764
|
+
*/
|
|
765
|
+
export interface AlertsApiUpdateAlertRequest {
|
|
766
|
+
/**
|
|
767
|
+
*
|
|
768
|
+
* @type {number}
|
|
769
|
+
* @memberof AlertsApiUpdateAlert
|
|
770
|
+
*/
|
|
771
|
+
readonly id: number
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @type {UpdateAlertRequestDto}
|
|
776
|
+
* @memberof AlertsApiUpdateAlert
|
|
777
|
+
*/
|
|
778
|
+
readonly updateAlertRequestDto: UpdateAlertRequestDto
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Bearer Token
|
|
782
|
+
* @type {string}
|
|
783
|
+
* @memberof AlertsApiUpdateAlert
|
|
784
|
+
*/
|
|
785
|
+
readonly authorization?: string
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* AlertsApi - object-oriented interface
|
|
790
|
+
* @export
|
|
791
|
+
* @class AlertsApi
|
|
792
|
+
* @extends {BaseAPI}
|
|
793
|
+
*/
|
|
794
|
+
export class AlertsApi extends BaseAPI {
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @param {AlertsApiCreateAlertRequest} requestParameters Request parameters.
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
* @memberof AlertsApi
|
|
801
|
+
*/
|
|
802
|
+
public createAlert(requestParameters: AlertsApiCreateAlertRequest, options?: AxiosRequestConfig) {
|
|
803
|
+
return AlertsApiFp(this.configuration).createAlert(requestParameters.createAlertRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
*
|
|
808
|
+
* @param {AlertsApiDeleteAlertRequest} requestParameters Request parameters.
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
* @memberof AlertsApi
|
|
812
|
+
*/
|
|
813
|
+
public deleteAlert(requestParameters: AlertsApiDeleteAlertRequest, options?: AxiosRequestConfig) {
|
|
814
|
+
return AlertsApiFp(this.configuration).deleteAlert(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
*
|
|
819
|
+
* @param {AlertsApiGetAlertRequest} requestParameters Request parameters.
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @throws {RequiredError}
|
|
822
|
+
* @memberof AlertsApi
|
|
823
|
+
*/
|
|
824
|
+
public getAlert(requestParameters: AlertsApiGetAlertRequest, options?: AxiosRequestConfig) {
|
|
825
|
+
return AlertsApiFp(this.configuration).getAlert(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
*
|
|
830
|
+
* @param {AlertsApiListAlertHistoryRequest} requestParameters Request parameters.
|
|
831
|
+
* @param {*} [options] Override http request option.
|
|
832
|
+
* @throws {RequiredError}
|
|
833
|
+
* @memberof AlertsApi
|
|
834
|
+
*/
|
|
835
|
+
public listAlertHistory(requestParameters: AlertsApiListAlertHistoryRequest, options?: AxiosRequestConfig) {
|
|
836
|
+
return AlertsApiFp(this.configuration).listAlertHistory(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @param {AlertsApiListAlertsRequest} requestParameters Request parameters.
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
* @memberof AlertsApi
|
|
845
|
+
*/
|
|
846
|
+
public listAlerts(requestParameters: AlertsApiListAlertsRequest = {}, options?: AxiosRequestConfig) {
|
|
847
|
+
return AlertsApiFp(this.configuration).listAlerts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @param {AlertsApiUpdateAlertRequest} requestParameters Request parameters.
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
* @memberof AlertsApi
|
|
856
|
+
*/
|
|
857
|
+
public updateAlert(requestParameters: AlertsApiUpdateAlertRequest, options?: AxiosRequestConfig) {
|
|
858
|
+
return AlertsApiFp(this.configuration).updateAlert(requestParameters.id, requestParameters.updateAlertRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
859
|
+
}
|
|
860
|
+
}
|