@emilgroup/insurance-sdk-node 1.93.0 → 1.93.1-beta.8
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 +20 -0
- package/README.md +2 -2
- package/api/product-configs-api.ts +242 -0
- package/api.ts +2 -0
- package/dist/api/product-configs-api.d.ts +134 -0
- package/dist/api/product-configs-api.js +309 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/amount-with-limit-class.d.ts +30 -0
- package/dist/models/amount-with-limit-class.js +15 -0
- package/dist/models/category-class.d.ts +57 -0
- package/dist/models/category-class.js +15 -0
- package/dist/models/claim-config-class.d.ts +39 -0
- package/dist/models/claim-config-class.js +15 -0
- package/dist/models/claim-position-fields-class.d.ts +31 -0
- package/dist/models/claim-position-fields-class.js +15 -0
- package/dist/models/coverage-class.d.ts +43 -0
- package/dist/models/coverage-class.js +15 -0
- package/dist/models/coverage-term-class.d.ts +54 -0
- package/dist/models/coverage-term-class.js +25 -0
- package/dist/models/custom-field-class.d.ts +50 -0
- package/dist/models/custom-field-class.js +23 -0
- package/dist/models/deductible-class.d.ts +60 -0
- package/dist/models/deductible-class.js +25 -0
- package/dist/models/general-setting-class.d.ts +56 -0
- package/dist/models/general-setting-class.js +33 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/dist/models/product-field-override-class.d.ts +48 -0
- package/dist/models/product-field-override-class.js +15 -0
- package/dist/models/product-version-config-class.d.ts +32 -0
- package/dist/models/product-version-config-class.js +15 -0
- package/dist/models/rest-create-product-config-response-class.d.ts +25 -0
- package/dist/models/rest-create-product-config-response-class.js +15 -0
- package/dist/models/rest-create-product-config-version-response-class.d.ts +25 -0
- package/dist/models/rest-create-product-config-version-response-class.js +15 -0
- package/dist/models/shared-product-config-class.d.ts +79 -0
- package/dist/models/shared-product-config-class.js +15 -0
- package/dist/models/shared-product-config-version-class.d.ts +85 -0
- package/dist/models/shared-product-config-version-class.js +21 -0
- package/dist/models/tariff-coverage-term-class.d.ts +72 -0
- package/dist/models/tariff-coverage-term-class.js +30 -0
- package/dist/models/tariff-variation-class.d.ts +64 -0
- package/dist/models/tariff-variation-class.js +15 -0
- package/dist/models/waiting-period-class.d.ts +41 -0
- package/dist/models/waiting-period-class.js +20 -0
- package/dist/models/warning-class.d.ts +47 -0
- package/dist/models/warning-class.js +20 -0
- package/models/amount-with-limit-class.ts +36 -0
- package/models/category-class.ts +63 -0
- package/models/claim-config-class.ts +45 -0
- package/models/claim-position-fields-class.ts +37 -0
- package/models/coverage-class.ts +49 -0
- package/models/coverage-term-class.ts +64 -0
- package/models/custom-field-class.ts +59 -0
- package/models/deductible-class.ts +70 -0
- package/models/general-setting-class.ts +66 -0
- package/models/index.ts +19 -0
- package/models/product-field-override-class.ts +54 -0
- package/models/product-version-config-class.ts +38 -0
- package/models/rest-create-product-config-response-class.ts +31 -0
- package/models/rest-create-product-config-version-response-class.ts +31 -0
- package/models/shared-product-config-class.ts +85 -0
- package/models/shared-product-config-version-class.ts +94 -0
- package/models/tariff-coverage-term-class.ts +83 -0
- package/models/tariff-variation-class.ts +70 -0
- package/models/waiting-period-class.ts +50 -0
- package/models/warning-class.ts +56 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -22,6 +22,7 @@ api/partner-links-api.ts
|
|
|
22
22
|
api/partner-roles-api.ts
|
|
23
23
|
api/policies-api.ts
|
|
24
24
|
api/premium-formulas-api.ts
|
|
25
|
+
api/product-configs-api.ts
|
|
25
26
|
api/product-factors-api.ts
|
|
26
27
|
api/product-fields-api.ts
|
|
27
28
|
api/product-versions-api.ts
|
|
@@ -34,12 +35,16 @@ git_push.sh
|
|
|
34
35
|
index.ts
|
|
35
36
|
models/activate-policy-request-dto.ts
|
|
36
37
|
models/activate-policy-response-class.ts
|
|
38
|
+
models/amount-with-limit-class.ts
|
|
37
39
|
models/bank-transfer-dto.ts
|
|
38
40
|
models/billing-address-dto.ts
|
|
39
41
|
models/booking-funnel-class.ts
|
|
40
42
|
models/calculate-custom-premium-request-dto.ts
|
|
41
43
|
models/calculate-premium-request-dto.ts
|
|
42
44
|
models/calculate-product-fields-request-dto.ts
|
|
45
|
+
models/category-class.ts
|
|
46
|
+
models/claim-config-class.ts
|
|
47
|
+
models/claim-position-fields-class.ts
|
|
43
48
|
models/clone-lead-request-dto.ts
|
|
44
49
|
models/clone-product-version-request-dto.ts
|
|
45
50
|
models/commission-agreement-class.ts
|
|
@@ -47,6 +52,8 @@ models/commission-agreement-item-class.ts
|
|
|
47
52
|
models/commission-agreement-product-class.ts
|
|
48
53
|
models/commission-agreement-version-class.ts
|
|
49
54
|
models/commission-recipient-class.ts
|
|
55
|
+
models/coverage-class.ts
|
|
56
|
+
models/coverage-term-class.ts
|
|
50
57
|
models/create-account-request-dto.ts
|
|
51
58
|
models/create-bank-account-request-dto.ts
|
|
52
59
|
models/create-booking-funnel-request-dto.ts
|
|
@@ -92,6 +99,8 @@ models/create-product-version-request-dto.ts
|
|
|
92
99
|
models/create-status-transition-rule-request-dto.ts
|
|
93
100
|
models/create-status-transition-rule-response-class.ts
|
|
94
101
|
models/csv-product-factor-dto.ts
|
|
102
|
+
models/custom-field-class.ts
|
|
103
|
+
models/deductible-class.ts
|
|
95
104
|
models/delete-draft-policy-request-dto.ts
|
|
96
105
|
models/delete-response-class.ts
|
|
97
106
|
models/emil-function-class.ts
|
|
@@ -100,6 +109,7 @@ models/empty-response-class.ts
|
|
|
100
109
|
models/execute-emil-function-request-dto.ts
|
|
101
110
|
models/filter-named-range-request-dto.ts
|
|
102
111
|
models/filter-named-range-response-class.ts
|
|
112
|
+
models/general-setting-class.ts
|
|
103
113
|
models/get-booking-funnel-response-class.ts
|
|
104
114
|
models/get-booking-funnel-version-request-dto.ts
|
|
105
115
|
models/get-commission-agreement-item-response-class.ts
|
|
@@ -209,9 +219,13 @@ models/product-factor-for-version-class.ts
|
|
|
209
219
|
models/product-factor-value-class.ts
|
|
210
220
|
models/product-factor-value-for-version-class.ts
|
|
211
221
|
models/product-field-class.ts
|
|
222
|
+
models/product-field-override-class.ts
|
|
212
223
|
models/product-field-type-class.ts
|
|
213
224
|
models/product-version-class.ts
|
|
225
|
+
models/product-version-config-class.ts
|
|
214
226
|
models/rest-clone-lead-account-request-dto.ts
|
|
227
|
+
models/rest-create-product-config-response-class.ts
|
|
228
|
+
models/rest-create-product-config-version-response-class.ts
|
|
215
229
|
models/restore-policy-version-request-dto.ts
|
|
216
230
|
models/restore-policy-version-response-class.ts
|
|
217
231
|
models/sepa-dto.ts
|
|
@@ -227,6 +241,8 @@ models/shared-mandate-hash-data-dto.ts
|
|
|
227
241
|
models/shared-mandate-hash-data-response-class.ts
|
|
228
242
|
models/shared-mandate-response-class.ts
|
|
229
243
|
models/shared-payment-method-response-class.ts
|
|
244
|
+
models/shared-product-config-class.ts
|
|
245
|
+
models/shared-product-config-version-class.ts
|
|
230
246
|
models/shared-product-field-class.ts
|
|
231
247
|
models/shared-sepa-response-class.ts
|
|
232
248
|
models/shared-update-named-range-request-dto.ts
|
|
@@ -239,6 +255,8 @@ models/suspend-policy-response-class.ts
|
|
|
239
255
|
models/swap-premium-formulas-order-request-dto.ts
|
|
240
256
|
models/swap-product-fields-order-request-dto.ts
|
|
241
257
|
models/tag-class.ts
|
|
258
|
+
models/tariff-coverage-term-class.ts
|
|
259
|
+
models/tariff-variation-class.ts
|
|
242
260
|
models/terminate-policy-request-dto.ts
|
|
243
261
|
models/terminate-policy-response-class.ts
|
|
244
262
|
models/timeslice-class.ts
|
|
@@ -280,6 +298,8 @@ models/update-status-transition-rule-request-dto.ts
|
|
|
280
298
|
models/update-status-transition-rule-response-class.ts
|
|
281
299
|
models/uploaded-document-dto.ts
|
|
282
300
|
models/validate-product-factors-request-dto.ts
|
|
301
|
+
models/waiting-period-class.ts
|
|
302
|
+
models/warning-class.ts
|
|
283
303
|
models/withdraw-policy-response-class.ts
|
|
284
304
|
package.json
|
|
285
305
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/insurance-sdk-node@1.93.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.93.1-beta.8 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.93.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.93.1-beta.8
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService 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 { RestCreateProductConfigResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { RestCreateProductConfigVersionResponseClass } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* ProductConfigsApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const ProductConfigsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml **Required Permissions** \"policy-management.products.create\"
|
|
39
|
+
* @summary Creates a new product config with optional initial version
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
createProductConfig: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
const localVarPath = `/insuranceservice/v1/product-configs`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
let baseAccessToken;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
baseAccessToken = configuration.accessToken;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication bearer required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
+
|
|
63
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
64
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
70
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
71
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
url: toPathString(localVarUrlObj),
|
|
75
|
+
options: localVarRequestOptions,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: versionNumber, config file **Required Permissions** \"policy-management.products.create\"
|
|
80
|
+
* @summary Creates a new version for a product config
|
|
81
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
createProductConfigVersion: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
86
|
+
const localVarPath = `/insuranceservice/v1/product-configs/versions`;
|
|
87
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
88
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
89
|
+
let baseOptions;
|
|
90
|
+
let baseAccessToken;
|
|
91
|
+
if (configuration) {
|
|
92
|
+
baseOptions = configuration.baseOptions;
|
|
93
|
+
baseAccessToken = configuration.accessToken;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
97
|
+
const localVarHeaderParameter = {} as any;
|
|
98
|
+
const localVarQueryParameter = {} as any;
|
|
99
|
+
|
|
100
|
+
// authentication bearer required
|
|
101
|
+
// http bearer authentication required
|
|
102
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
103
|
+
|
|
104
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
105
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
url: toPathString(localVarUrlObj),
|
|
116
|
+
options: localVarRequestOptions,
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* ProductConfigsApi - functional programming interface
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export const ProductConfigsApiFp = function(configuration?: Configuration) {
|
|
127
|
+
const localVarAxiosParamCreator = ProductConfigsApiAxiosParamCreator(configuration)
|
|
128
|
+
return {
|
|
129
|
+
/**
|
|
130
|
+
* Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml **Required Permissions** \"policy-management.products.create\"
|
|
131
|
+
* @summary Creates a new product config with optional initial version
|
|
132
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
async createProductConfig(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestCreateProductConfigResponseClass>> {
|
|
137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createProductConfig(authorization, options);
|
|
138
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
139
|
+
},
|
|
140
|
+
/**
|
|
141
|
+
* Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: versionNumber, config file **Required Permissions** \"policy-management.products.create\"
|
|
142
|
+
* @summary Creates a new version for a product config
|
|
143
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
async createProductConfigVersion(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestCreateProductConfigVersionResponseClass>> {
|
|
148
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createProductConfigVersion(authorization, options);
|
|
149
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
150
|
+
},
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* ProductConfigsApi - factory interface
|
|
156
|
+
* @export
|
|
157
|
+
*/
|
|
158
|
+
export const ProductConfigsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
159
|
+
const localVarFp = ProductConfigsApiFp(configuration)
|
|
160
|
+
return {
|
|
161
|
+
/**
|
|
162
|
+
* Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml **Required Permissions** \"policy-management.products.create\"
|
|
163
|
+
* @summary Creates a new product config with optional initial version
|
|
164
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
createProductConfig(authorization?: string, options?: any): AxiosPromise<RestCreateProductConfigResponseClass> {
|
|
169
|
+
return localVarFp.createProductConfig(authorization, options).then((request) => request(axios, basePath));
|
|
170
|
+
},
|
|
171
|
+
/**
|
|
172
|
+
* Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: versionNumber, config file **Required Permissions** \"policy-management.products.create\"
|
|
173
|
+
* @summary Creates a new version for a product config
|
|
174
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
createProductConfigVersion(authorization?: string, options?: any): AxiosPromise<RestCreateProductConfigVersionResponseClass> {
|
|
179
|
+
return localVarFp.createProductConfigVersion(authorization, options).then((request) => request(axios, basePath));
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Request parameters for createProductConfig operation in ProductConfigsApi.
|
|
186
|
+
* @export
|
|
187
|
+
* @interface ProductConfigsApiCreateProductConfigRequest
|
|
188
|
+
*/
|
|
189
|
+
export interface ProductConfigsApiCreateProductConfigRequest {
|
|
190
|
+
/**
|
|
191
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
192
|
+
* @type {string}
|
|
193
|
+
* @memberof ProductConfigsApiCreateProductConfig
|
|
194
|
+
*/
|
|
195
|
+
readonly authorization?: string
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Request parameters for createProductConfigVersion operation in ProductConfigsApi.
|
|
200
|
+
* @export
|
|
201
|
+
* @interface ProductConfigsApiCreateProductConfigVersionRequest
|
|
202
|
+
*/
|
|
203
|
+
export interface ProductConfigsApiCreateProductConfigVersionRequest {
|
|
204
|
+
/**
|
|
205
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof ProductConfigsApiCreateProductConfigVersion
|
|
208
|
+
*/
|
|
209
|
+
readonly authorization?: string
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* ProductConfigsApi - object-oriented interface
|
|
214
|
+
* @export
|
|
215
|
+
* @class ProductConfigsApi
|
|
216
|
+
* @extends {BaseAPI}
|
|
217
|
+
*/
|
|
218
|
+
export class ProductConfigsApi extends BaseAPI {
|
|
219
|
+
/**
|
|
220
|
+
* Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml **Required Permissions** \"policy-management.products.create\"
|
|
221
|
+
* @summary Creates a new product config with optional initial version
|
|
222
|
+
* @param {ProductConfigsApiCreateProductConfigRequest} requestParameters Request parameters.
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
* @memberof ProductConfigsApi
|
|
226
|
+
*/
|
|
227
|
+
public createProductConfig(requestParameters: ProductConfigsApiCreateProductConfigRequest = {}, options?: AxiosRequestConfig) {
|
|
228
|
+
return ProductConfigsApiFp(this.configuration).createProductConfig(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: versionNumber, config file **Required Permissions** \"policy-management.products.create\"
|
|
233
|
+
* @summary Creates a new version for a product config
|
|
234
|
+
* @param {ProductConfigsApiCreateProductConfigVersionRequest} requestParameters Request parameters.
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
* @memberof ProductConfigsApi
|
|
238
|
+
*/
|
|
239
|
+
public createProductConfigVersion(requestParameters: ProductConfigsApiCreateProductConfigVersionRequest = {}, options?: AxiosRequestConfig) {
|
|
240
|
+
return ProductConfigsApiFp(this.configuration).createProductConfigVersion(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
241
|
+
}
|
|
242
|
+
}
|
package/api.ts
CHANGED
|
@@ -43,6 +43,7 @@ import { PartnerLinksApi } from './api';
|
|
|
43
43
|
import { PartnerRolesApi } from './api';
|
|
44
44
|
import { PoliciesApi } from './api';
|
|
45
45
|
import { PremiumFormulasApi } from './api';
|
|
46
|
+
import { ProductConfigsApi } from './api';
|
|
46
47
|
import { ProductFactorsApi } from './api';
|
|
47
48
|
import { ProductFieldsApi } from './api';
|
|
48
49
|
import { ProductVersionsApi } from './api';
|
|
@@ -69,6 +70,7 @@ export * from './api/partner-links-api';
|
|
|
69
70
|
export * from './api/partner-roles-api';
|
|
70
71
|
export * from './api/policies-api';
|
|
71
72
|
export * from './api/premium-formulas-api';
|
|
73
|
+
export * from './api/product-configs-api';
|
|
72
74
|
export * from './api/product-factors-api';
|
|
73
75
|
export * from './api/product-fields-api';
|
|
74
76
|
export * from './api/product-versions-api';
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { RestCreateProductConfigResponseClass } from '../models';
|
|
16
|
+
import { RestCreateProductConfigVersionResponseClass } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* ProductConfigsApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const ProductConfigsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
* Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml **Required Permissions** \"policy-management.products.create\"
|
|
24
|
+
* @summary Creates a new product config with optional initial version
|
|
25
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
createProductConfig: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: versionNumber, config file **Required Permissions** \"policy-management.products.create\"
|
|
32
|
+
* @summary Creates a new version for a product config
|
|
33
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
createProductConfigVersion: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* ProductConfigsApi - functional programming interface
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export declare const ProductConfigsApiFp: (configuration?: Configuration) => {
|
|
44
|
+
/**
|
|
45
|
+
* Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml **Required Permissions** \"policy-management.products.create\"
|
|
46
|
+
* @summary Creates a new product config with optional initial version
|
|
47
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
createProductConfig(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestCreateProductConfigResponseClass>>;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: versionNumber, config file **Required Permissions** \"policy-management.products.create\"
|
|
54
|
+
* @summary Creates a new version for a product config
|
|
55
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
createProductConfigVersion(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestCreateProductConfigVersionResponseClass>>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* ProductConfigsApi - factory interface
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const ProductConfigsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
66
|
+
/**
|
|
67
|
+
* Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml **Required Permissions** \"policy-management.products.create\"
|
|
68
|
+
* @summary Creates a new product config with optional initial version
|
|
69
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
createProductConfig(authorization?: string, options?: any): AxiosPromise<RestCreateProductConfigResponseClass>;
|
|
74
|
+
/**
|
|
75
|
+
* Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: versionNumber, config file **Required Permissions** \"policy-management.products.create\"
|
|
76
|
+
* @summary Creates a new version for a product config
|
|
77
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
createProductConfigVersion(authorization?: string, options?: any): AxiosPromise<RestCreateProductConfigVersionResponseClass>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Request parameters for createProductConfig operation in ProductConfigsApi.
|
|
85
|
+
* @export
|
|
86
|
+
* @interface ProductConfigsApiCreateProductConfigRequest
|
|
87
|
+
*/
|
|
88
|
+
export interface ProductConfigsApiCreateProductConfigRequest {
|
|
89
|
+
/**
|
|
90
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof ProductConfigsApiCreateProductConfig
|
|
93
|
+
*/
|
|
94
|
+
readonly authorization?: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Request parameters for createProductConfigVersion operation in ProductConfigsApi.
|
|
98
|
+
* @export
|
|
99
|
+
* @interface ProductConfigsApiCreateProductConfigVersionRequest
|
|
100
|
+
*/
|
|
101
|
+
export interface ProductConfigsApiCreateProductConfigVersionRequest {
|
|
102
|
+
/**
|
|
103
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof ProductConfigsApiCreateProductConfigVersion
|
|
106
|
+
*/
|
|
107
|
+
readonly authorization?: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* ProductConfigsApi - object-oriented interface
|
|
111
|
+
* @export
|
|
112
|
+
* @class ProductConfigsApi
|
|
113
|
+
* @extends {BaseAPI}
|
|
114
|
+
*/
|
|
115
|
+
export declare class ProductConfigsApi extends BaseAPI {
|
|
116
|
+
/**
|
|
117
|
+
* Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml **Required Permissions** \"policy-management.products.create\"
|
|
118
|
+
* @summary Creates a new product config with optional initial version
|
|
119
|
+
* @param {ProductConfigsApiCreateProductConfigRequest} requestParameters Request parameters.
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
* @memberof ProductConfigsApi
|
|
123
|
+
*/
|
|
124
|
+
createProductConfig(requestParameters?: ProductConfigsApiCreateProductConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RestCreateProductConfigResponseClass, any, {}>>;
|
|
125
|
+
/**
|
|
126
|
+
* Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: versionNumber, config file **Required Permissions** \"policy-management.products.create\"
|
|
127
|
+
* @summary Creates a new version for a product config
|
|
128
|
+
* @param {ProductConfigsApiCreateProductConfigVersionRequest} requestParameters Request parameters.
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
* @memberof ProductConfigsApi
|
|
132
|
+
*/
|
|
133
|
+
createProductConfigVersion(requestParameters?: ProductConfigsApiCreateProductConfigVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RestCreateProductConfigVersionResponseClass, any, {}>>;
|
|
134
|
+
}
|