@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,977 @@
|
|
|
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 { CreateScenarioAnalysisRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateScenarioAnalysisResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetScenarioAnalysisResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListChannelsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListInsuranceCompaniesResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ListScenarioAnalysesResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { ListScenarioAnalysisDatesResponseClass } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UpdateScenarioAnalysisRequestDto } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { UpdateScenarioAnalysisResponseClass } from '../models';
|
|
41
|
+
// URLSearchParams not necessarily used
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
import { URL, URLSearchParams } from 'url';
|
|
44
|
+
const FormData = require('form-data');
|
|
45
|
+
/**
|
|
46
|
+
* ScenarioAnalysisApi - axios parameter creator
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export const ScenarioAnalysisApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
50
|
+
return {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @param {CreateScenarioAnalysisRequestDto} createScenarioAnalysisRequestDto
|
|
54
|
+
* @param {string} [authorization] Bearer Token
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
createScenarioAnalysis: async (createScenarioAnalysisRequestDto: CreateScenarioAnalysisRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
59
|
+
// verify required parameter 'createScenarioAnalysisRequestDto' is not null or undefined
|
|
60
|
+
assertParamExists('createScenarioAnalysis', 'createScenarioAnalysisRequestDto', createScenarioAnalysisRequestDto)
|
|
61
|
+
const localVarPath = `/tenantservice/v1/scenario-analyses`;
|
|
62
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
64
|
+
let baseOptions;
|
|
65
|
+
let baseAccessToken;
|
|
66
|
+
if (configuration) {
|
|
67
|
+
baseOptions = configuration.baseOptions;
|
|
68
|
+
baseAccessToken = configuration.accessToken;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
72
|
+
const localVarHeaderParameter = {} as any;
|
|
73
|
+
const localVarQueryParameter = {} as any;
|
|
74
|
+
|
|
75
|
+
// authentication bearer required
|
|
76
|
+
// http bearer authentication required
|
|
77
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
78
|
+
|
|
79
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
80
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
86
|
+
|
|
87
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
88
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
90
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createScenarioAnalysisRequestDto, localVarRequestOptions, configuration)
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
url: toPathString(localVarUrlObj),
|
|
94
|
+
options: localVarRequestOptions,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @param {number} id
|
|
100
|
+
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
deleteScenarioAnalysis: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
+
// verify required parameter 'id' is not null or undefined
|
|
106
|
+
assertParamExists('deleteScenarioAnalysis', 'id', id)
|
|
107
|
+
const localVarPath = `/tenantservice/v1/scenario-analyses/{id}`
|
|
108
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
let baseAccessToken;
|
|
113
|
+
if (configuration) {
|
|
114
|
+
baseOptions = configuration.baseOptions;
|
|
115
|
+
baseAccessToken = configuration.accessToken;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
119
|
+
const localVarHeaderParameter = {} as any;
|
|
120
|
+
const localVarQueryParameter = {} as any;
|
|
121
|
+
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
|
+
|
|
126
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
url: toPathString(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @param {string} code
|
|
144
|
+
* @param {string} code2 code
|
|
145
|
+
* @param {string} [authorization] Bearer Token
|
|
146
|
+
* @param {string} [expand] Fields to expand response by
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
getScenarioAnalysis: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
151
|
+
// verify required parameter 'code' is not null or undefined
|
|
152
|
+
assertParamExists('getScenarioAnalysis', 'code', code)
|
|
153
|
+
// verify required parameter 'code2' is not null or undefined
|
|
154
|
+
assertParamExists('getScenarioAnalysis', 'code2', code2)
|
|
155
|
+
const localVarPath = `/tenantservice/v1/scenario-analyses/{code}`
|
|
156
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
158
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
159
|
+
let baseOptions;
|
|
160
|
+
let baseAccessToken;
|
|
161
|
+
if (configuration) {
|
|
162
|
+
baseOptions = configuration.baseOptions;
|
|
163
|
+
baseAccessToken = configuration.accessToken;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
167
|
+
const localVarHeaderParameter = {} as any;
|
|
168
|
+
const localVarQueryParameter = {} as any;
|
|
169
|
+
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
173
|
+
|
|
174
|
+
if (code2 !== undefined) {
|
|
175
|
+
localVarQueryParameter['code'] = code2;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (expand !== undefined) {
|
|
179
|
+
localVarQueryParameter['expand'] = expand;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
190
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
191
|
+
|
|
192
|
+
return {
|
|
193
|
+
url: toPathString(localVarUrlObj),
|
|
194
|
+
options: localVarRequestOptions,
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @param {string} [authorization] Bearer Token
|
|
200
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
listChannels: async (authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
205
|
+
const localVarPath = `/tenantservice/v1/scenario-analyses/channels`;
|
|
206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
208
|
+
let baseOptions;
|
|
209
|
+
let baseAccessToken;
|
|
210
|
+
if (configuration) {
|
|
211
|
+
baseOptions = configuration.baseOptions;
|
|
212
|
+
baseAccessToken = configuration.accessToken;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
216
|
+
const localVarHeaderParameter = {} as any;
|
|
217
|
+
const localVarQueryParameter = {} as any;
|
|
218
|
+
|
|
219
|
+
// authentication bearer required
|
|
220
|
+
// http bearer authentication required
|
|
221
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
222
|
+
|
|
223
|
+
if (product !== undefined) {
|
|
224
|
+
localVarQueryParameter['product'] = product;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
228
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
236
|
+
|
|
237
|
+
return {
|
|
238
|
+
url: toPathString(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @param {string} [authorization] Bearer Token
|
|
245
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
listInsuranceCompanies: async (authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
250
|
+
const localVarPath = `/tenantservice/v1/scenario-analyses/insurance-companies`;
|
|
251
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
252
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
253
|
+
let baseOptions;
|
|
254
|
+
let baseAccessToken;
|
|
255
|
+
if (configuration) {
|
|
256
|
+
baseOptions = configuration.baseOptions;
|
|
257
|
+
baseAccessToken = configuration.accessToken;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
261
|
+
const localVarHeaderParameter = {} as any;
|
|
262
|
+
const localVarQueryParameter = {} as any;
|
|
263
|
+
|
|
264
|
+
// authentication bearer required
|
|
265
|
+
// http bearer authentication required
|
|
266
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
267
|
+
|
|
268
|
+
if (product !== undefined) {
|
|
269
|
+
localVarQueryParameter['product'] = product;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
273
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
281
|
+
|
|
282
|
+
return {
|
|
283
|
+
url: toPathString(localVarUrlObj),
|
|
284
|
+
options: localVarRequestOptions,
|
|
285
|
+
};
|
|
286
|
+
},
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @param {string} [authorization] Bearer Token
|
|
290
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
291
|
+
* @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.
|
|
292
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
293
|
+
* @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.
|
|
294
|
+
* @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.
|
|
295
|
+
* @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.
|
|
296
|
+
* @param {*} [options] Override http request option.
|
|
297
|
+
* @throws {RequiredError}
|
|
298
|
+
*/
|
|
299
|
+
listScenarioAnalyses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
300
|
+
const localVarPath = `/tenantservice/v1/scenario-analyses`;
|
|
301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
302
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
303
|
+
let baseOptions;
|
|
304
|
+
let baseAccessToken;
|
|
305
|
+
if (configuration) {
|
|
306
|
+
baseOptions = configuration.baseOptions;
|
|
307
|
+
baseAccessToken = configuration.accessToken;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
311
|
+
const localVarHeaderParameter = {} as any;
|
|
312
|
+
const localVarQueryParameter = {} as any;
|
|
313
|
+
|
|
314
|
+
// authentication bearer required
|
|
315
|
+
// http bearer authentication required
|
|
316
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
317
|
+
|
|
318
|
+
if (pageSize !== undefined) {
|
|
319
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (pageToken !== undefined) {
|
|
323
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
if (filter !== undefined) {
|
|
327
|
+
localVarQueryParameter['filter'] = filter;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
if (search !== undefined) {
|
|
331
|
+
localVarQueryParameter['search'] = search;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (order !== undefined) {
|
|
335
|
+
localVarQueryParameter['order'] = order;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (expand !== undefined) {
|
|
339
|
+
localVarQueryParameter['expand'] = expand;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
343
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
351
|
+
|
|
352
|
+
return {
|
|
353
|
+
url: toPathString(localVarUrlObj),
|
|
354
|
+
options: localVarRequestOptions,
|
|
355
|
+
};
|
|
356
|
+
},
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @param {string} [authorization] Bearer Token
|
|
360
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
listScenarioAnalysisDates: async (authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
365
|
+
const localVarPath = `/tenantservice/v1/scenario-analyses/dates`;
|
|
366
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
367
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
368
|
+
let baseOptions;
|
|
369
|
+
let baseAccessToken;
|
|
370
|
+
if (configuration) {
|
|
371
|
+
baseOptions = configuration.baseOptions;
|
|
372
|
+
baseAccessToken = configuration.accessToken;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
376
|
+
const localVarHeaderParameter = {} as any;
|
|
377
|
+
const localVarQueryParameter = {} as any;
|
|
378
|
+
|
|
379
|
+
// authentication bearer required
|
|
380
|
+
// http bearer authentication required
|
|
381
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
382
|
+
|
|
383
|
+
if (product !== undefined) {
|
|
384
|
+
localVarQueryParameter['product'] = product;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
388
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
395
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
396
|
+
|
|
397
|
+
return {
|
|
398
|
+
url: toPathString(localVarUrlObj),
|
|
399
|
+
options: localVarRequestOptions,
|
|
400
|
+
};
|
|
401
|
+
},
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @param {string} code
|
|
405
|
+
* @param {UpdateScenarioAnalysisRequestDto} updateScenarioAnalysisRequestDto
|
|
406
|
+
* @param {string} [authorization] Bearer Token
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
*/
|
|
410
|
+
updateScenarioAnalysis: async (code: string, updateScenarioAnalysisRequestDto: UpdateScenarioAnalysisRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
411
|
+
// verify required parameter 'code' is not null or undefined
|
|
412
|
+
assertParamExists('updateScenarioAnalysis', 'code', code)
|
|
413
|
+
// verify required parameter 'updateScenarioAnalysisRequestDto' is not null or undefined
|
|
414
|
+
assertParamExists('updateScenarioAnalysis', 'updateScenarioAnalysisRequestDto', updateScenarioAnalysisRequestDto)
|
|
415
|
+
const localVarPath = `/tenantservice/v1/scenario-analyses/{code}`
|
|
416
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
417
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
418
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
419
|
+
let baseOptions;
|
|
420
|
+
let baseAccessToken;
|
|
421
|
+
if (configuration) {
|
|
422
|
+
baseOptions = configuration.baseOptions;
|
|
423
|
+
baseAccessToken = configuration.accessToken;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
427
|
+
const localVarHeaderParameter = {} as any;
|
|
428
|
+
const localVarQueryParameter = {} as any;
|
|
429
|
+
|
|
430
|
+
// authentication bearer required
|
|
431
|
+
// http bearer authentication required
|
|
432
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
433
|
+
|
|
434
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
435
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
441
|
+
|
|
442
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
444
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
445
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateScenarioAnalysisRequestDto, localVarRequestOptions, configuration)
|
|
446
|
+
|
|
447
|
+
return {
|
|
448
|
+
url: toPathString(localVarUrlObj),
|
|
449
|
+
options: localVarRequestOptions,
|
|
450
|
+
};
|
|
451
|
+
},
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* ScenarioAnalysisApi - functional programming interface
|
|
457
|
+
* @export
|
|
458
|
+
*/
|
|
459
|
+
export const ScenarioAnalysisApiFp = function(configuration?: Configuration) {
|
|
460
|
+
const localVarAxiosParamCreator = ScenarioAnalysisApiAxiosParamCreator(configuration)
|
|
461
|
+
return {
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @param {CreateScenarioAnalysisRequestDto} createScenarioAnalysisRequestDto
|
|
465
|
+
* @param {string} [authorization] Bearer Token
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
async createScenarioAnalysis(createScenarioAnalysisRequestDto: CreateScenarioAnalysisRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateScenarioAnalysisResponseClass>> {
|
|
470
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createScenarioAnalysis(createScenarioAnalysisRequestDto, authorization, options);
|
|
471
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @param {number} id
|
|
476
|
+
* @param {string} [authorization] Bearer Token
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
async deleteScenarioAnalysis(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
481
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScenarioAnalysis(id, authorization, options);
|
|
482
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
483
|
+
},
|
|
484
|
+
/**
|
|
485
|
+
*
|
|
486
|
+
* @param {string} code
|
|
487
|
+
* @param {string} code2 code
|
|
488
|
+
* @param {string} [authorization] Bearer Token
|
|
489
|
+
* @param {string} [expand] Fields to expand response by
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
async getScenarioAnalysis(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetScenarioAnalysisResponseClass>> {
|
|
494
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getScenarioAnalysis(code, code2, authorization, expand, options);
|
|
495
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @param {string} [authorization] Bearer Token
|
|
500
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
async listChannels(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListChannelsResponseClass>> {
|
|
505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listChannels(authorization, product, options);
|
|
506
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @param {string} [authorization] Bearer Token
|
|
511
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
async listInsuranceCompanies(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInsuranceCompaniesResponseClass>> {
|
|
516
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInsuranceCompanies(authorization, product, options);
|
|
517
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
518
|
+
},
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @param {string} [authorization] Bearer Token
|
|
522
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
523
|
+
* @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.
|
|
524
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
525
|
+
* @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.
|
|
526
|
+
* @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.
|
|
527
|
+
* @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.
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
async listScenarioAnalyses(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListScenarioAnalysesResponseClass>> {
|
|
532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listScenarioAnalyses(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
533
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
534
|
+
},
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @param {string} [authorization] Bearer Token
|
|
538
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
async listScenarioAnalysisDates(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListScenarioAnalysisDatesResponseClass>> {
|
|
543
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listScenarioAnalysisDates(authorization, product, options);
|
|
544
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
545
|
+
},
|
|
546
|
+
/**
|
|
547
|
+
*
|
|
548
|
+
* @param {string} code
|
|
549
|
+
* @param {UpdateScenarioAnalysisRequestDto} updateScenarioAnalysisRequestDto
|
|
550
|
+
* @param {string} [authorization] Bearer Token
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
async updateScenarioAnalysis(code: string, updateScenarioAnalysisRequestDto: UpdateScenarioAnalysisRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateScenarioAnalysisResponseClass>> {
|
|
555
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateScenarioAnalysis(code, updateScenarioAnalysisRequestDto, authorization, options);
|
|
556
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
557
|
+
},
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* ScenarioAnalysisApi - factory interface
|
|
563
|
+
* @export
|
|
564
|
+
*/
|
|
565
|
+
export const ScenarioAnalysisApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
566
|
+
const localVarFp = ScenarioAnalysisApiFp(configuration)
|
|
567
|
+
return {
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
570
|
+
* @param {CreateScenarioAnalysisRequestDto} createScenarioAnalysisRequestDto
|
|
571
|
+
* @param {string} [authorization] Bearer Token
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
*/
|
|
575
|
+
createScenarioAnalysis(createScenarioAnalysisRequestDto: CreateScenarioAnalysisRequestDto, authorization?: string, options?: any): AxiosPromise<CreateScenarioAnalysisResponseClass> {
|
|
576
|
+
return localVarFp.createScenarioAnalysis(createScenarioAnalysisRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @param {number} id
|
|
581
|
+
* @param {string} [authorization] Bearer Token
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
deleteScenarioAnalysis(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
586
|
+
return localVarFp.deleteScenarioAnalysis(id, authorization, options).then((request) => request(axios, basePath));
|
|
587
|
+
},
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
* @param {string} code
|
|
591
|
+
* @param {string} code2 code
|
|
592
|
+
* @param {string} [authorization] Bearer Token
|
|
593
|
+
* @param {string} [expand] Fields to expand response by
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
*/
|
|
597
|
+
getScenarioAnalysis(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetScenarioAnalysisResponseClass> {
|
|
598
|
+
return localVarFp.getScenarioAnalysis(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
599
|
+
},
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @param {string} [authorization] Bearer Token
|
|
603
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
*/
|
|
607
|
+
listChannels(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListChannelsResponseClass> {
|
|
608
|
+
return localVarFp.listChannels(authorization, product, options).then((request) => request(axios, basePath));
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
*
|
|
612
|
+
* @param {string} [authorization] Bearer Token
|
|
613
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
*/
|
|
617
|
+
listInsuranceCompanies(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListInsuranceCompaniesResponseClass> {
|
|
618
|
+
return localVarFp.listInsuranceCompanies(authorization, product, options).then((request) => request(axios, basePath));
|
|
619
|
+
},
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @param {string} [authorization] Bearer Token
|
|
623
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
624
|
+
* @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.
|
|
625
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
626
|
+
* @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.
|
|
627
|
+
* @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.
|
|
628
|
+
* @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.
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
listScenarioAnalyses(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListScenarioAnalysesResponseClass> {
|
|
633
|
+
return localVarFp.listScenarioAnalyses(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
634
|
+
},
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @param {string} [authorization] Bearer Token
|
|
638
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
listScenarioAnalysisDates(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListScenarioAnalysisDatesResponseClass> {
|
|
643
|
+
return localVarFp.listScenarioAnalysisDates(authorization, product, options).then((request) => request(axios, basePath));
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @param {string} code
|
|
648
|
+
* @param {UpdateScenarioAnalysisRequestDto} updateScenarioAnalysisRequestDto
|
|
649
|
+
* @param {string} [authorization] Bearer Token
|
|
650
|
+
* @param {*} [options] Override http request option.
|
|
651
|
+
* @throws {RequiredError}
|
|
652
|
+
*/
|
|
653
|
+
updateScenarioAnalysis(code: string, updateScenarioAnalysisRequestDto: UpdateScenarioAnalysisRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateScenarioAnalysisResponseClass> {
|
|
654
|
+
return localVarFp.updateScenarioAnalysis(code, updateScenarioAnalysisRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
655
|
+
},
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Request parameters for createScenarioAnalysis operation in ScenarioAnalysisApi.
|
|
661
|
+
* @export
|
|
662
|
+
* @interface ScenarioAnalysisApiCreateScenarioAnalysisRequest
|
|
663
|
+
*/
|
|
664
|
+
export interface ScenarioAnalysisApiCreateScenarioAnalysisRequest {
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @type {CreateScenarioAnalysisRequestDto}
|
|
668
|
+
* @memberof ScenarioAnalysisApiCreateScenarioAnalysis
|
|
669
|
+
*/
|
|
670
|
+
readonly createScenarioAnalysisRequestDto: CreateScenarioAnalysisRequestDto
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Bearer Token
|
|
674
|
+
* @type {string}
|
|
675
|
+
* @memberof ScenarioAnalysisApiCreateScenarioAnalysis
|
|
676
|
+
*/
|
|
677
|
+
readonly authorization?: string
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Request parameters for deleteScenarioAnalysis operation in ScenarioAnalysisApi.
|
|
682
|
+
* @export
|
|
683
|
+
* @interface ScenarioAnalysisApiDeleteScenarioAnalysisRequest
|
|
684
|
+
*/
|
|
685
|
+
export interface ScenarioAnalysisApiDeleteScenarioAnalysisRequest {
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @type {number}
|
|
689
|
+
* @memberof ScenarioAnalysisApiDeleteScenarioAnalysis
|
|
690
|
+
*/
|
|
691
|
+
readonly id: number
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Bearer Token
|
|
695
|
+
* @type {string}
|
|
696
|
+
* @memberof ScenarioAnalysisApiDeleteScenarioAnalysis
|
|
697
|
+
*/
|
|
698
|
+
readonly authorization?: string
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Request parameters for getScenarioAnalysis operation in ScenarioAnalysisApi.
|
|
703
|
+
* @export
|
|
704
|
+
* @interface ScenarioAnalysisApiGetScenarioAnalysisRequest
|
|
705
|
+
*/
|
|
706
|
+
export interface ScenarioAnalysisApiGetScenarioAnalysisRequest {
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @type {string}
|
|
710
|
+
* @memberof ScenarioAnalysisApiGetScenarioAnalysis
|
|
711
|
+
*/
|
|
712
|
+
readonly code: string
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* code
|
|
716
|
+
* @type {string}
|
|
717
|
+
* @memberof ScenarioAnalysisApiGetScenarioAnalysis
|
|
718
|
+
*/
|
|
719
|
+
readonly code2: string
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Bearer Token
|
|
723
|
+
* @type {string}
|
|
724
|
+
* @memberof ScenarioAnalysisApiGetScenarioAnalysis
|
|
725
|
+
*/
|
|
726
|
+
readonly authorization?: string
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Fields to expand response by
|
|
730
|
+
* @type {string}
|
|
731
|
+
* @memberof ScenarioAnalysisApiGetScenarioAnalysis
|
|
732
|
+
*/
|
|
733
|
+
readonly expand?: string
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Request parameters for listChannels operation in ScenarioAnalysisApi.
|
|
738
|
+
* @export
|
|
739
|
+
* @interface ScenarioAnalysisApiListChannelsRequest
|
|
740
|
+
*/
|
|
741
|
+
export interface ScenarioAnalysisApiListChannelsRequest {
|
|
742
|
+
/**
|
|
743
|
+
* Bearer Token
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof ScenarioAnalysisApiListChannels
|
|
746
|
+
*/
|
|
747
|
+
readonly authorization?: string
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Product type [ car | homeowner | household | private-liability ]
|
|
751
|
+
* @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
|
|
752
|
+
* @memberof ScenarioAnalysisApiListChannels
|
|
753
|
+
*/
|
|
754
|
+
readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability'
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Request parameters for listInsuranceCompanies operation in ScenarioAnalysisApi.
|
|
759
|
+
* @export
|
|
760
|
+
* @interface ScenarioAnalysisApiListInsuranceCompaniesRequest
|
|
761
|
+
*/
|
|
762
|
+
export interface ScenarioAnalysisApiListInsuranceCompaniesRequest {
|
|
763
|
+
/**
|
|
764
|
+
* Bearer Token
|
|
765
|
+
* @type {string}
|
|
766
|
+
* @memberof ScenarioAnalysisApiListInsuranceCompanies
|
|
767
|
+
*/
|
|
768
|
+
readonly authorization?: string
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Product type [ car | homeowner | household | private-liability ]
|
|
772
|
+
* @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
|
|
773
|
+
* @memberof ScenarioAnalysisApiListInsuranceCompanies
|
|
774
|
+
*/
|
|
775
|
+
readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability'
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Request parameters for listScenarioAnalyses operation in ScenarioAnalysisApi.
|
|
780
|
+
* @export
|
|
781
|
+
* @interface ScenarioAnalysisApiListScenarioAnalysesRequest
|
|
782
|
+
*/
|
|
783
|
+
export interface ScenarioAnalysisApiListScenarioAnalysesRequest {
|
|
784
|
+
/**
|
|
785
|
+
* Bearer Token
|
|
786
|
+
* @type {string}
|
|
787
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalyses
|
|
788
|
+
*/
|
|
789
|
+
readonly authorization?: string
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
793
|
+
* @type {any}
|
|
794
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalyses
|
|
795
|
+
*/
|
|
796
|
+
readonly pageSize?: any
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* 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.
|
|
800
|
+
* @type {any}
|
|
801
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalyses
|
|
802
|
+
*/
|
|
803
|
+
readonly pageToken?: any
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
807
|
+
* @type {any}
|
|
808
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalyses
|
|
809
|
+
*/
|
|
810
|
+
readonly filter?: any
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
814
|
+
* @type {any}
|
|
815
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalyses
|
|
816
|
+
*/
|
|
817
|
+
readonly search?: any
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* 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.
|
|
821
|
+
* @type {any}
|
|
822
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalyses
|
|
823
|
+
*/
|
|
824
|
+
readonly order?: any
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* 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.
|
|
828
|
+
* @type {any}
|
|
829
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalyses
|
|
830
|
+
*/
|
|
831
|
+
readonly expand?: any
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Request parameters for listScenarioAnalysisDates operation in ScenarioAnalysisApi.
|
|
836
|
+
* @export
|
|
837
|
+
* @interface ScenarioAnalysisApiListScenarioAnalysisDatesRequest
|
|
838
|
+
*/
|
|
839
|
+
export interface ScenarioAnalysisApiListScenarioAnalysisDatesRequest {
|
|
840
|
+
/**
|
|
841
|
+
* Bearer Token
|
|
842
|
+
* @type {string}
|
|
843
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalysisDates
|
|
844
|
+
*/
|
|
845
|
+
readonly authorization?: string
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Product type [ car | homeowner | household | private-liability ]
|
|
849
|
+
* @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
|
|
850
|
+
* @memberof ScenarioAnalysisApiListScenarioAnalysisDates
|
|
851
|
+
*/
|
|
852
|
+
readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability'
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Request parameters for updateScenarioAnalysis operation in ScenarioAnalysisApi.
|
|
857
|
+
* @export
|
|
858
|
+
* @interface ScenarioAnalysisApiUpdateScenarioAnalysisRequest
|
|
859
|
+
*/
|
|
860
|
+
export interface ScenarioAnalysisApiUpdateScenarioAnalysisRequest {
|
|
861
|
+
/**
|
|
862
|
+
*
|
|
863
|
+
* @type {string}
|
|
864
|
+
* @memberof ScenarioAnalysisApiUpdateScenarioAnalysis
|
|
865
|
+
*/
|
|
866
|
+
readonly code: string
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @type {UpdateScenarioAnalysisRequestDto}
|
|
871
|
+
* @memberof ScenarioAnalysisApiUpdateScenarioAnalysis
|
|
872
|
+
*/
|
|
873
|
+
readonly updateScenarioAnalysisRequestDto: UpdateScenarioAnalysisRequestDto
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Bearer Token
|
|
877
|
+
* @type {string}
|
|
878
|
+
* @memberof ScenarioAnalysisApiUpdateScenarioAnalysis
|
|
879
|
+
*/
|
|
880
|
+
readonly authorization?: string
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* ScenarioAnalysisApi - object-oriented interface
|
|
885
|
+
* @export
|
|
886
|
+
* @class ScenarioAnalysisApi
|
|
887
|
+
* @extends {BaseAPI}
|
|
888
|
+
*/
|
|
889
|
+
export class ScenarioAnalysisApi extends BaseAPI {
|
|
890
|
+
/**
|
|
891
|
+
*
|
|
892
|
+
* @param {ScenarioAnalysisApiCreateScenarioAnalysisRequest} requestParameters Request parameters.
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
* @memberof ScenarioAnalysisApi
|
|
896
|
+
*/
|
|
897
|
+
public createScenarioAnalysis(requestParameters: ScenarioAnalysisApiCreateScenarioAnalysisRequest, options?: AxiosRequestConfig) {
|
|
898
|
+
return ScenarioAnalysisApiFp(this.configuration).createScenarioAnalysis(requestParameters.createScenarioAnalysisRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @param {ScenarioAnalysisApiDeleteScenarioAnalysisRequest} requestParameters Request parameters.
|
|
904
|
+
* @param {*} [options] Override http request option.
|
|
905
|
+
* @throws {RequiredError}
|
|
906
|
+
* @memberof ScenarioAnalysisApi
|
|
907
|
+
*/
|
|
908
|
+
public deleteScenarioAnalysis(requestParameters: ScenarioAnalysisApiDeleteScenarioAnalysisRequest, options?: AxiosRequestConfig) {
|
|
909
|
+
return ScenarioAnalysisApiFp(this.configuration).deleteScenarioAnalysis(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
* @param {ScenarioAnalysisApiGetScenarioAnalysisRequest} requestParameters Request parameters.
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
* @memberof ScenarioAnalysisApi
|
|
918
|
+
*/
|
|
919
|
+
public getScenarioAnalysis(requestParameters: ScenarioAnalysisApiGetScenarioAnalysisRequest, options?: AxiosRequestConfig) {
|
|
920
|
+
return ScenarioAnalysisApiFp(this.configuration).getScenarioAnalysis(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @param {ScenarioAnalysisApiListChannelsRequest} requestParameters Request parameters.
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
* @memberof ScenarioAnalysisApi
|
|
929
|
+
*/
|
|
930
|
+
public listChannels(requestParameters: ScenarioAnalysisApiListChannelsRequest = {}, options?: AxiosRequestConfig) {
|
|
931
|
+
return ScenarioAnalysisApiFp(this.configuration).listChannels(requestParameters.authorization, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
*
|
|
936
|
+
* @param {ScenarioAnalysisApiListInsuranceCompaniesRequest} requestParameters Request parameters.
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
* @memberof ScenarioAnalysisApi
|
|
940
|
+
*/
|
|
941
|
+
public listInsuranceCompanies(requestParameters: ScenarioAnalysisApiListInsuranceCompaniesRequest = {}, options?: AxiosRequestConfig) {
|
|
942
|
+
return ScenarioAnalysisApiFp(this.configuration).listInsuranceCompanies(requestParameters.authorization, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @param {ScenarioAnalysisApiListScenarioAnalysesRequest} requestParameters Request parameters.
|
|
948
|
+
* @param {*} [options] Override http request option.
|
|
949
|
+
* @throws {RequiredError}
|
|
950
|
+
* @memberof ScenarioAnalysisApi
|
|
951
|
+
*/
|
|
952
|
+
public listScenarioAnalyses(requestParameters: ScenarioAnalysisApiListScenarioAnalysesRequest = {}, options?: AxiosRequestConfig) {
|
|
953
|
+
return ScenarioAnalysisApiFp(this.configuration).listScenarioAnalyses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
*
|
|
958
|
+
* @param {ScenarioAnalysisApiListScenarioAnalysisDatesRequest} requestParameters Request parameters.
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
* @memberof ScenarioAnalysisApi
|
|
962
|
+
*/
|
|
963
|
+
public listScenarioAnalysisDates(requestParameters: ScenarioAnalysisApiListScenarioAnalysisDatesRequest = {}, options?: AxiosRequestConfig) {
|
|
964
|
+
return ScenarioAnalysisApiFp(this.configuration).listScenarioAnalysisDates(requestParameters.authorization, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @param {ScenarioAnalysisApiUpdateScenarioAnalysisRequest} requestParameters Request parameters.
|
|
970
|
+
* @param {*} [options] Override http request option.
|
|
971
|
+
* @throws {RequiredError}
|
|
972
|
+
* @memberof ScenarioAnalysisApi
|
|
973
|
+
*/
|
|
974
|
+
public updateScenarioAnalysis(requestParameters: ScenarioAnalysisApiUpdateScenarioAnalysisRequest, options?: AxiosRequestConfig) {
|
|
975
|
+
return ScenarioAnalysisApiFp(this.configuration).updateScenarioAnalysis(requestParameters.code, requestParameters.updateScenarioAnalysisRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
976
|
+
}
|
|
977
|
+
}
|