@emilgroup/tenant-sdk 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -57
- package/README.md +2 -2
- package/api/custom-schema-api.ts +52 -60
- package/api/data-report-api.ts +65 -75
- package/api/data-report-executor-api.ts +10 -26
- package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
- package/api/invite-users-api.ts +75 -79
- package/api/organizations-api.ts +455 -0
- package/api/users-api.ts +138 -148
- package/api.ts +4 -14
- package/dist/api/custom-schema-api.d.ts +42 -42
- package/dist/api/custom-schema-api.js +31 -38
- package/dist/api/data-report-api.d.ts +52 -52
- package/dist/api/data-report-api.js +40 -49
- package/dist/api/data-report-executor-api.d.ts +7 -16
- package/dist/api/data-report-executor-api.js +9 -17
- package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
- package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
- package/dist/api/invite-users-api.d.ts +63 -60
- package/dist/api/invite-users-api.js +40 -49
- package/dist/api/organizations-api.d.ts +261 -0
- package/dist/api/{settings-api.js → organizations-api.js} +135 -195
- package/dist/api/users-api.d.ts +113 -109
- package/dist/api/users-api.js +76 -93
- package/dist/api.d.ts +2 -7
- package/dist/api.js +2 -7
- package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
- package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
- package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
- package/dist/models/create-custom-schema-request-dto.js +2 -1
- package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
- package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
- package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
- package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
- package/dist/models/index.d.ts +12 -50
- package/dist/models/index.js +12 -50
- package/dist/models/invite-org-request-dto.d.ts +78 -0
- package/dist/models/invite-user-request-dto.d.ts +8 -2
- package/dist/models/invite-users-request-dto.d.ts +2 -2
- package/dist/models/invite-users-response-class.d.ts +24 -0
- package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
- package/dist/models/{list-alert-history-response-class.d.ts → list-organizations-response-class.d.ts} +9 -9
- package/dist/models/org-invitation-class.d.ts +103 -0
- package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
- package/dist/models/organization-class.d.ts +84 -0
- package/dist/models/set-setting-request-dto.d.ts +10 -4
- package/dist/models/subscription-class.d.ts +9 -2
- package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
- package/dist/models/update-custom-schema-request-dto.js +2 -1
- package/dist/models/user-class.d.ts +13 -5
- package/models/assign-user-roles-request-dto.ts +2 -2
- package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
- package/models/create-custom-schema-request-dto.ts +2 -1
- package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
- package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
- package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
- package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
- package/models/index.ts +12 -50
- package/models/invite-org-request-dto.ts +84 -0
- package/models/invite-user-request-dto.ts +8 -2
- package/models/invite-users-request-dto.ts +2 -2
- package/models/invite-users-response-class.ts +30 -0
- package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
- package/models/{list-alert-history-response-class.ts → list-organizations-response-class.ts} +9 -9
- package/models/org-invitation-class.ts +109 -0
- package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
- package/models/organization-class.ts +90 -0
- package/models/set-setting-request-dto.ts +10 -4
- package/models/subscription-class.ts +9 -2
- package/models/update-custom-schema-request-dto.ts +2 -1
- package/models/user-class.ts +13 -5
- package/package.json +1 -1
- package/api/alerts-api.ts +0 -860
- package/api/dashboard-api.ts +0 -792
- package/api/reports-api.ts +0 -860
- package/api/scenario-analysis-api.ts +0 -977
- package/api/settings-api.ts +0 -484
- package/api/tariff-comparisons-api.ts +0 -381
- package/dist/api/alerts-api.d.ts +0 -479
- package/dist/api/alerts-api.js +0 -752
- package/dist/api/dashboard-api.d.ts +0 -434
- package/dist/api/dashboard-api.js +0 -724
- package/dist/api/reports-api.d.ts +0 -479
- package/dist/api/reports-api.js +0 -752
- package/dist/api/scenario-analysis-api.d.ts +0 -529
- package/dist/api/scenario-analysis-api.js +0 -895
- package/dist/api/settings-api.d.ts +0 -264
- package/dist/api/tariff-comparisons-api.d.ts +0 -206
- package/dist/api/tariff-comparisons-api.js +0 -409
- package/dist/models/alert-class.d.ts +0 -90
- package/dist/models/alert-history-class.d.ts +0 -108
- package/dist/models/channel-response-class.d.ts +0 -30
- package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
- package/dist/models/compare-tariffs-request-dto.js +0 -22
- package/dist/models/compare-tariffs-response-class.d.ts +0 -31
- package/dist/models/condition-dto.d.ts +0 -43
- package/dist/models/condition-dto.js +0 -22
- package/dist/models/create-alert-request-dto.d.ts +0 -79
- package/dist/models/create-alert-request-dto.js +0 -27
- package/dist/models/create-dashboard-request-dto.d.ts +0 -70
- package/dist/models/create-dashboard-request-dto.js +0 -29
- package/dist/models/create-report-request-dto.d.ts +0 -49
- package/dist/models/create-report-request-dto.js +0 -22
- package/dist/models/create-report-response-class.d.ts +0 -25
- package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
- package/dist/models/create-scenario-analysis-request-dto.js +0 -22
- package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/dashboard-class.d.ts +0 -78
- package/dist/models/get-alert-response-class.d.ts +0 -25
- package/dist/models/get-dashboard-response-class.d.ts +0 -25
- package/dist/models/get-report-response-class.d.ts +0 -25
- package/dist/models/get-report-response-class.js +0 -15
- package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/get-scenario-analysis-response-class.js +0 -15
- package/dist/models/grouped-tariff-class.d.ts +0 -30
- package/dist/models/grouped-tariff-class.js +0 -15
- package/dist/models/insurance-company-response-class.js +0 -15
- package/dist/models/insurance-response-class.js +0 -15
- package/dist/models/list-alert-history-response-class.js +0 -15
- package/dist/models/list-alerts-response-class.d.ts +0 -31
- package/dist/models/list-alerts-response-class.js +0 -15
- package/dist/models/list-channels-response-class.d.ts +0 -25
- package/dist/models/list-channels-response-class.js +0 -15
- package/dist/models/list-dashboards-response-class.d.ts +0 -31
- package/dist/models/list-dashboards-response-class.js +0 -15
- package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
- package/dist/models/list-insurance-companies-response-class.js +0 -15
- package/dist/models/list-report-history-response-class.d.ts +0 -31
- package/dist/models/list-report-history-response-class.js +0 -15
- package/dist/models/list-reports-response-class.d.ts +0 -31
- package/dist/models/list-reports-response-class.js +0 -15
- package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
- package/dist/models/list-scenario-analyses-response-class.js +0 -15
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
- package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
- package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
- package/dist/models/list-tariffs-response-class.d.ts +0 -25
- package/dist/models/list-tariffs-response-class.js +0 -15
- package/dist/models/list-user-subscriptions-response-class.js +0 -15
- package/dist/models/manage-subscription-request-dto.js +0 -15
- package/dist/models/manage-subscription-response-class.d.ts +0 -25
- package/dist/models/manage-subscription-response-class.js +0 -15
- package/dist/models/report-class.d.ts +0 -66
- package/dist/models/report-class.js +0 -15
- package/dist/models/report-history-class.d.ts +0 -48
- package/dist/models/report-history-class.js +0 -15
- package/dist/models/scenario-analysis-class.d.ts +0 -108
- package/dist/models/scenario-analysis-class.js +0 -15
- package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
- package/dist/models/scenario-analysis-date-response-class.js +0 -15
- package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
- package/dist/models/set-tenant-setting-response-class.js +0 -15
- package/dist/models/update-alert-request-dto.d.ts +0 -72
- package/dist/models/update-alert-request-dto.js +0 -21
- package/dist/models/update-alert-response-class.d.ts +0 -25
- package/dist/models/update-alert-response-class.js +0 -15
- package/dist/models/update-dashboard-request-dto.d.ts +0 -76
- package/dist/models/update-dashboard-request-dto.js +0 -29
- package/dist/models/update-dashboard-response-class.d.ts +0 -25
- package/dist/models/update-dashboard-response-class.js +0 -15
- package/dist/models/update-report-request-dto.d.ts +0 -55
- package/dist/models/update-report-request-dto.js +0 -22
- package/dist/models/update-report-response-class.d.ts +0 -25
- package/dist/models/update-report-response-class.js +0 -15
- package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
- package/dist/models/update-scenario-analysis-request-dto.js +0 -22
- package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/update-scenario-analysis-response-class.js +0 -15
- package/models/alert-class.ts +0 -96
- package/models/alert-history-class.ts +0 -114
- package/models/compare-tariffs-request-dto.ts +0 -46
- package/models/compare-tariffs-response-class.ts +0 -37
- package/models/condition-dto.ts +0 -52
- package/models/create-alert-request-dto.ts +0 -89
- package/models/create-dashboard-request-dto.ts +0 -81
- package/models/create-dashboard-response-class.ts +0 -31
- package/models/create-report-request-dto.ts +0 -58
- package/models/create-report-response-class.ts +0 -31
- package/models/create-scenario-analysis-request-dto.ts +0 -83
- package/models/create-scenario-analysis-response-class.ts +0 -31
- package/models/dashboard-class.ts +0 -84
- package/models/get-alert-response-class.ts +0 -31
- package/models/get-dashboard-response-class.ts +0 -31
- package/models/get-report-response-class.ts +0 -31
- package/models/get-scenario-analysis-response-class.ts +0 -31
- package/models/grouped-tariff-class.ts +0 -36
- package/models/list-alerts-response-class.ts +0 -37
- package/models/list-channels-response-class.ts +0 -31
- package/models/list-dashboards-response-class.ts +0 -37
- package/models/list-insurance-companies-response-class.ts +0 -31
- package/models/list-report-history-response-class.ts +0 -37
- package/models/list-reports-response-class.ts +0 -37
- package/models/list-scenario-analyses-response-class.ts +0 -37
- package/models/list-scenario-analysis-dates-response-class.ts +0 -31
- package/models/list-tariff-insurance-companies-response-class.ts +0 -31
- package/models/list-tariffs-response-class.ts +0 -31
- package/models/manage-subscription-response-class.ts +0 -31
- package/models/report-class.ts +0 -72
- package/models/report-history-class.ts +0 -54
- package/models/scenario-analysis-class.ts +0 -114
- package/models/scenario-analysis-date-response-class.ts +0 -42
- package/models/set-tenant-setting-response-class.ts +0 -42
- package/models/update-alert-request-dto.ts +0 -81
- package/models/update-alert-response-class.ts +0 -31
- package/models/update-dashboard-request-dto.ts +0 -87
- package/models/update-dashboard-response-class.ts +0 -31
- package/models/update-report-request-dto.ts +0 -64
- package/models/update-report-response-class.ts +0 -31
- package/models/update-scenario-analysis-request-dto.ts +0 -83
- package/models/update-scenario-analysis-response-class.ts +0 -31
- /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
- /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
- /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
- /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
- /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
- /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
- /package/dist/models/{create-report-response-class.js → invite-users-response-class.js} +0 -0
- /package/dist/models/{create-scenario-analysis-response-class.js → list-org-invitations-response-class.js} +0 -0
- /package/dist/models/{dashboard-class.js → list-organizations-response-class.js} +0 -0
- /package/dist/models/{get-alert-response-class.js → org-invitation-class.js} +0 -0
- /package/dist/models/{get-dashboard-response-class.js → org-invitation-response-class.js} +0 -0
- /package/dist/models/{get-embedded-url-response-class.js → organization-class.js} +0 -0
|
@@ -1,381 +0,0 @@
|
|
|
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 { CompareTariffsRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CompareTariffsResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { ListTariffInsuranceCompaniesResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListTariffsResponseClass } from '../models';
|
|
31
|
-
// URLSearchParams not necessarily used
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
import { URL, URLSearchParams } from 'url';
|
|
34
|
-
const FormData = require('form-data');
|
|
35
|
-
/**
|
|
36
|
-
* TariffComparisonsApi - axios parameter creator
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
|
-
export const TariffComparisonsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
-
return {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @param {CompareTariffsRequestDto} compareTariffsRequestDto
|
|
44
|
-
* @param {string} [authorization] Bearer Token
|
|
45
|
-
* @param {*} [options] Override http request option.
|
|
46
|
-
* @throws {RequiredError}
|
|
47
|
-
*/
|
|
48
|
-
compareTariffs: async (compareTariffsRequestDto: CompareTariffsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
-
// verify required parameter 'compareTariffsRequestDto' is not null or undefined
|
|
50
|
-
assertParamExists('compareTariffs', 'compareTariffsRequestDto', compareTariffsRequestDto)
|
|
51
|
-
const localVarPath = `/tenantservice/v1/tariff-comparisons`;
|
|
52
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54
|
-
let baseOptions;
|
|
55
|
-
let baseAccessToken;
|
|
56
|
-
if (configuration) {
|
|
57
|
-
baseOptions = configuration.baseOptions;
|
|
58
|
-
baseAccessToken = configuration.accessToken;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
62
|
-
const localVarHeaderParameter = {} as any;
|
|
63
|
-
const localVarQueryParameter = {} as any;
|
|
64
|
-
|
|
65
|
-
// authentication bearer required
|
|
66
|
-
// http bearer authentication required
|
|
67
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68
|
-
|
|
69
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
70
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
76
|
-
|
|
77
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
78
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
79
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
80
|
-
localVarRequestOptions.data = serializeDataIfNeeded(compareTariffsRequestDto, localVarRequestOptions, configuration)
|
|
81
|
-
|
|
82
|
-
return {
|
|
83
|
-
url: toPathString(localVarUrlObj),
|
|
84
|
-
options: localVarRequestOptions,
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @param {string} [authorization] Bearer Token
|
|
90
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
*/
|
|
94
|
-
listTariffInsuranceCompanies: async (authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
-
const localVarPath = `/tenantservice/v1/tariff-comparisons/insurances`;
|
|
96
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
-
let baseOptions;
|
|
99
|
-
let baseAccessToken;
|
|
100
|
-
if (configuration) {
|
|
101
|
-
baseOptions = configuration.baseOptions;
|
|
102
|
-
baseAccessToken = configuration.accessToken;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
106
|
-
const localVarHeaderParameter = {} as any;
|
|
107
|
-
const localVarQueryParameter = {} as any;
|
|
108
|
-
|
|
109
|
-
// authentication bearer required
|
|
110
|
-
// http bearer authentication required
|
|
111
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
112
|
-
|
|
113
|
-
if (product !== undefined) {
|
|
114
|
-
localVarQueryParameter['product'] = product;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
118
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
126
|
-
|
|
127
|
-
return {
|
|
128
|
-
url: toPathString(localVarUrlObj),
|
|
129
|
-
options: localVarRequestOptions,
|
|
130
|
-
};
|
|
131
|
-
},
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @param {string} insurerName Insurer name
|
|
135
|
-
* @param {string} [authorization] Bearer Token
|
|
136
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
|
|
137
|
-
* @param {*} [options] Override http request option.
|
|
138
|
-
* @throws {RequiredError}
|
|
139
|
-
*/
|
|
140
|
-
listTariffs: async (insurerName: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
141
|
-
// verify required parameter 'insurerName' is not null or undefined
|
|
142
|
-
assertParamExists('listTariffs', 'insurerName', insurerName)
|
|
143
|
-
const localVarPath = `/tenantservice/v1/tariff-comparisons/tariffs`;
|
|
144
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146
|
-
let baseOptions;
|
|
147
|
-
let baseAccessToken;
|
|
148
|
-
if (configuration) {
|
|
149
|
-
baseOptions = configuration.baseOptions;
|
|
150
|
-
baseAccessToken = configuration.accessToken;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
154
|
-
const localVarHeaderParameter = {} as any;
|
|
155
|
-
const localVarQueryParameter = {} as any;
|
|
156
|
-
|
|
157
|
-
// authentication bearer required
|
|
158
|
-
// http bearer authentication required
|
|
159
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
160
|
-
|
|
161
|
-
if (insurerName !== undefined) {
|
|
162
|
-
localVarQueryParameter['insurerName'] = insurerName;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (product !== undefined) {
|
|
166
|
-
localVarQueryParameter['product'] = product;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
170
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
176
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
177
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
178
|
-
|
|
179
|
-
return {
|
|
180
|
-
url: toPathString(localVarUrlObj),
|
|
181
|
-
options: localVarRequestOptions,
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* TariffComparisonsApi - functional programming interface
|
|
189
|
-
* @export
|
|
190
|
-
*/
|
|
191
|
-
export const TariffComparisonsApiFp = function(configuration?: Configuration) {
|
|
192
|
-
const localVarAxiosParamCreator = TariffComparisonsApiAxiosParamCreator(configuration)
|
|
193
|
-
return {
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
* @param {CompareTariffsRequestDto} compareTariffsRequestDto
|
|
197
|
-
* @param {string} [authorization] Bearer Token
|
|
198
|
-
* @param {*} [options] Override http request option.
|
|
199
|
-
* @throws {RequiredError}
|
|
200
|
-
*/
|
|
201
|
-
async compareTariffs(compareTariffsRequestDto: CompareTariffsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompareTariffsResponseClass>> {
|
|
202
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.compareTariffs(compareTariffsRequestDto, authorization, options);
|
|
203
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
204
|
-
},
|
|
205
|
-
/**
|
|
206
|
-
*
|
|
207
|
-
* @param {string} [authorization] Bearer Token
|
|
208
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
209
|
-
* @param {*} [options] Override http request option.
|
|
210
|
-
* @throws {RequiredError}
|
|
211
|
-
*/
|
|
212
|
-
async listTariffInsuranceCompanies(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTariffInsuranceCompaniesResponseClass>> {
|
|
213
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTariffInsuranceCompanies(authorization, product, options);
|
|
214
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
215
|
-
},
|
|
216
|
-
/**
|
|
217
|
-
*
|
|
218
|
-
* @param {string} insurerName Insurer name
|
|
219
|
-
* @param {string} [authorization] Bearer Token
|
|
220
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
|
|
221
|
-
* @param {*} [options] Override http request option.
|
|
222
|
-
* @throws {RequiredError}
|
|
223
|
-
*/
|
|
224
|
-
async listTariffs(insurerName: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTariffsResponseClass>> {
|
|
225
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTariffs(insurerName, authorization, product, options);
|
|
226
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
227
|
-
},
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* TariffComparisonsApi - factory interface
|
|
233
|
-
* @export
|
|
234
|
-
*/
|
|
235
|
-
export const TariffComparisonsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
236
|
-
const localVarFp = TariffComparisonsApiFp(configuration)
|
|
237
|
-
return {
|
|
238
|
-
/**
|
|
239
|
-
*
|
|
240
|
-
* @param {CompareTariffsRequestDto} compareTariffsRequestDto
|
|
241
|
-
* @param {string} [authorization] Bearer Token
|
|
242
|
-
* @param {*} [options] Override http request option.
|
|
243
|
-
* @throws {RequiredError}
|
|
244
|
-
*/
|
|
245
|
-
compareTariffs(compareTariffsRequestDto: CompareTariffsRequestDto, authorization?: string, options?: any): AxiosPromise<CompareTariffsResponseClass> {
|
|
246
|
-
return localVarFp.compareTariffs(compareTariffsRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
247
|
-
},
|
|
248
|
-
/**
|
|
249
|
-
*
|
|
250
|
-
* @param {string} [authorization] Bearer Token
|
|
251
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
252
|
-
* @param {*} [options] Override http request option.
|
|
253
|
-
* @throws {RequiredError}
|
|
254
|
-
*/
|
|
255
|
-
listTariffInsuranceCompanies(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListTariffInsuranceCompaniesResponseClass> {
|
|
256
|
-
return localVarFp.listTariffInsuranceCompanies(authorization, product, options).then((request) => request(axios, basePath));
|
|
257
|
-
},
|
|
258
|
-
/**
|
|
259
|
-
*
|
|
260
|
-
* @param {string} insurerName Insurer name
|
|
261
|
-
* @param {string} [authorization] Bearer Token
|
|
262
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
|
|
263
|
-
* @param {*} [options] Override http request option.
|
|
264
|
-
* @throws {RequiredError}
|
|
265
|
-
*/
|
|
266
|
-
listTariffs(insurerName: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListTariffsResponseClass> {
|
|
267
|
-
return localVarFp.listTariffs(insurerName, authorization, product, options).then((request) => request(axios, basePath));
|
|
268
|
-
},
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Request parameters for compareTariffs operation in TariffComparisonsApi.
|
|
274
|
-
* @export
|
|
275
|
-
* @interface TariffComparisonsApiCompareTariffsRequest
|
|
276
|
-
*/
|
|
277
|
-
export interface TariffComparisonsApiCompareTariffsRequest {
|
|
278
|
-
/**
|
|
279
|
-
*
|
|
280
|
-
* @type {CompareTariffsRequestDto}
|
|
281
|
-
* @memberof TariffComparisonsApiCompareTariffs
|
|
282
|
-
*/
|
|
283
|
-
readonly compareTariffsRequestDto: CompareTariffsRequestDto
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Bearer Token
|
|
287
|
-
* @type {string}
|
|
288
|
-
* @memberof TariffComparisonsApiCompareTariffs
|
|
289
|
-
*/
|
|
290
|
-
readonly authorization?: string
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Request parameters for listTariffInsuranceCompanies operation in TariffComparisonsApi.
|
|
295
|
-
* @export
|
|
296
|
-
* @interface TariffComparisonsApiListTariffInsuranceCompaniesRequest
|
|
297
|
-
*/
|
|
298
|
-
export interface TariffComparisonsApiListTariffInsuranceCompaniesRequest {
|
|
299
|
-
/**
|
|
300
|
-
* Bearer Token
|
|
301
|
-
* @type {string}
|
|
302
|
-
* @memberof TariffComparisonsApiListTariffInsuranceCompanies
|
|
303
|
-
*/
|
|
304
|
-
readonly authorization?: string
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Product type [ car | homeowner | household | private-liability ]
|
|
308
|
-
* @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
|
|
309
|
-
* @memberof TariffComparisonsApiListTariffInsuranceCompanies
|
|
310
|
-
*/
|
|
311
|
-
readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability'
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Request parameters for listTariffs operation in TariffComparisonsApi.
|
|
316
|
-
* @export
|
|
317
|
-
* @interface TariffComparisonsApiListTariffsRequest
|
|
318
|
-
*/
|
|
319
|
-
export interface TariffComparisonsApiListTariffsRequest {
|
|
320
|
-
/**
|
|
321
|
-
* Insurer name
|
|
322
|
-
* @type {string}
|
|
323
|
-
* @memberof TariffComparisonsApiListTariffs
|
|
324
|
-
*/
|
|
325
|
-
readonly insurerName: string
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Bearer Token
|
|
329
|
-
* @type {string}
|
|
330
|
-
* @memberof TariffComparisonsApiListTariffs
|
|
331
|
-
*/
|
|
332
|
-
readonly authorization?: string
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Product
|
|
336
|
-
* @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
|
|
337
|
-
* @memberof TariffComparisonsApiListTariffs
|
|
338
|
-
*/
|
|
339
|
-
readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability'
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* TariffComparisonsApi - object-oriented interface
|
|
344
|
-
* @export
|
|
345
|
-
* @class TariffComparisonsApi
|
|
346
|
-
* @extends {BaseAPI}
|
|
347
|
-
*/
|
|
348
|
-
export class TariffComparisonsApi extends BaseAPI {
|
|
349
|
-
/**
|
|
350
|
-
*
|
|
351
|
-
* @param {TariffComparisonsApiCompareTariffsRequest} requestParameters Request parameters.
|
|
352
|
-
* @param {*} [options] Override http request option.
|
|
353
|
-
* @throws {RequiredError}
|
|
354
|
-
* @memberof TariffComparisonsApi
|
|
355
|
-
*/
|
|
356
|
-
public compareTariffs(requestParameters: TariffComparisonsApiCompareTariffsRequest, options?: AxiosRequestConfig) {
|
|
357
|
-
return TariffComparisonsApiFp(this.configuration).compareTariffs(requestParameters.compareTariffsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
*
|
|
362
|
-
* @param {TariffComparisonsApiListTariffInsuranceCompaniesRequest} requestParameters Request parameters.
|
|
363
|
-
* @param {*} [options] Override http request option.
|
|
364
|
-
* @throws {RequiredError}
|
|
365
|
-
* @memberof TariffComparisonsApi
|
|
366
|
-
*/
|
|
367
|
-
public listTariffInsuranceCompanies(requestParameters: TariffComparisonsApiListTariffInsuranceCompaniesRequest = {}, options?: AxiosRequestConfig) {
|
|
368
|
-
return TariffComparisonsApiFp(this.configuration).listTariffInsuranceCompanies(requestParameters.authorization, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
*
|
|
373
|
-
* @param {TariffComparisonsApiListTariffsRequest} requestParameters Request parameters.
|
|
374
|
-
* @param {*} [options] Override http request option.
|
|
375
|
-
* @throws {RequiredError}
|
|
376
|
-
* @memberof TariffComparisonsApi
|
|
377
|
-
*/
|
|
378
|
-
public listTariffs(requestParameters: TariffComparisonsApiListTariffsRequest, options?: AxiosRequestConfig) {
|
|
379
|
-
return TariffComparisonsApiFp(this.configuration).listTariffs(requestParameters.insurerName, requestParameters.authorization, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
|
|
380
|
-
}
|
|
381
|
-
}
|