@emilgroup/insurance-sdk-node 1.5.1 → 1.6.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 +2 -0
- package/README.md +2 -2
- package/api/policies-api.ts +8 -8
- package/api/product-versions-api.ts +103 -0
- package/dist/api/policies-api.d.ts +8 -8
- package/dist/api/policies-api.js +7 -7
- package/dist/api/product-versions-api.d.ts +53 -0
- package/dist/api/product-versions-api.js +89 -0
- package/dist/models/clone-product-version-request-dto.d.ts +36 -0
- package/dist/models/clone-product-version-request-dto.js +15 -0
- package/dist/models/clone-product-version-response-class.d.ts +25 -0
- package/dist/models/clone-product-version-response-class.js +15 -0
- package/dist/models/create-dummy-policy-request-dto.d.ts +6 -0
- package/dist/models/create-lead-request-dto.d.ts +6 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/policy-class.d.ts +3 -3
- package/dist/models/update-lead-request-dto.d.ts +6 -0
- package/dist/models/update-policy-request-dto.d.ts +4 -4
- package/dist/models/update-policy-request-dto.js +4 -4
- package/models/clone-product-version-request-dto.ts +42 -0
- package/models/clone-product-version-response-class.ts +31 -0
- package/models/create-dummy-policy-request-dto.ts +6 -0
- package/models/create-lead-request-dto.ts +6 -0
- package/models/index.ts +2 -0
- package/models/policy-class.ts +3 -3
- package/models/update-lead-request-dto.ts +6 -0
- package/models/update-policy-request-dto.ts +4 -4
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -19,6 +19,8 @@ git_push.sh
|
|
|
19
19
|
index.ts
|
|
20
20
|
models/calculate-custom-premium-request-dto.ts
|
|
21
21
|
models/calculate-premium-request-dto.ts
|
|
22
|
+
models/clone-product-version-request-dto.ts
|
|
23
|
+
models/clone-product-version-response-class.ts
|
|
22
24
|
models/create-account-request-dto.ts
|
|
23
25
|
models/create-bank-account-request-dto.ts
|
|
24
26
|
models/create-custom-application-request-dto.ts
|
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.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.6.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.6.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/policies-api.ts
CHANGED
|
@@ -151,7 +151,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
153
153
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
154
|
-
* @summary Retrieve
|
|
154
|
+
* @summary Retrieve current policy version
|
|
155
155
|
* @param {string} code Unique identifier for the object.
|
|
156
156
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
157
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -205,7 +205,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
205
205
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
206
|
* @param {number} [pageSize] Page size.
|
|
207
207
|
* @param {string} [pageToken] Page token.
|
|
208
|
-
* @param {string} [filter]
|
|
208
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
209
209
|
* @param {string} [search] Search query.
|
|
210
210
|
* @param {string} [order] Ordering criteria.
|
|
211
211
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -505,7 +505,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
505
505
|
},
|
|
506
506
|
/**
|
|
507
507
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
508
|
-
* @summary Retrieve
|
|
508
|
+
* @summary Retrieve current policy version
|
|
509
509
|
* @param {string} code Unique identifier for the object.
|
|
510
510
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
511
511
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -522,7 +522,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
522
522
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
523
|
* @param {number} [pageSize] Page size.
|
|
524
524
|
* @param {string} [pageToken] Page token.
|
|
525
|
-
* @param {string} [filter]
|
|
525
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
526
526
|
* @param {string} [search] Search query.
|
|
527
527
|
* @param {string} [order] Ordering criteria.
|
|
528
528
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -619,7 +619,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
619
619
|
},
|
|
620
620
|
/**
|
|
621
621
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
622
|
-
* @summary Retrieve
|
|
622
|
+
* @summary Retrieve current policy version
|
|
623
623
|
* @param {string} code Unique identifier for the object.
|
|
624
624
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
625
625
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -635,7 +635,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
635
635
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
636
636
|
* @param {number} [pageSize] Page size.
|
|
637
637
|
* @param {string} [pageToken] Page token.
|
|
638
|
-
* @param {string} [filter]
|
|
638
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
639
639
|
* @param {string} [search] Search query.
|
|
640
640
|
* @param {string} [order] Ordering criteria.
|
|
641
641
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -800,7 +800,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
800
800
|
readonly pageToken?: string
|
|
801
801
|
|
|
802
802
|
/**
|
|
803
|
-
*
|
|
803
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
804
804
|
* @type {string}
|
|
805
805
|
* @memberof PoliciesApiListPolicies
|
|
806
806
|
*/
|
|
@@ -966,7 +966,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
966
966
|
|
|
967
967
|
/**
|
|
968
968
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
969
|
-
* @summary Retrieve
|
|
969
|
+
* @summary Retrieve current policy version
|
|
970
970
|
* @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
|
|
971
971
|
* @param {*} [options] Override http request option.
|
|
972
972
|
* @throws {RequiredError}
|
|
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CloneProductVersionRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CloneProductVersionResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { GetProductVersionResponseClass } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
26
30
|
import { UpdateProductVersionRequestDto } from '../models';
|
|
@@ -36,6 +40,52 @@ const FormData = require('form-data');
|
|
|
36
40
|
*/
|
|
37
41
|
export const ProductVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
42
|
return {
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
46
|
+
* @param {string} [authorization] Bearer Token
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
cloneProductVersion: async (cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51
|
+
// verify required parameter 'cloneProductVersionRequestDto' is not null or undefined
|
|
52
|
+
assertParamExists('cloneProductVersion', 'cloneProductVersionRequestDto', cloneProductVersionRequestDto)
|
|
53
|
+
const localVarPath = `/insuranceservice/v1/product-versions/clone`;
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
+
let baseOptions;
|
|
57
|
+
let baseAccessToken;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
baseAccessToken = configuration.accessToken;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
64
|
+
const localVarHeaderParameter = {} as any;
|
|
65
|
+
const localVarQueryParameter = {} as any;
|
|
66
|
+
|
|
67
|
+
// authentication bearer required
|
|
68
|
+
// http bearer authentication required
|
|
69
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
|
+
|
|
71
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
78
|
+
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cloneProductVersionRequestDto, localVarRequestOptions, configuration)
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
},
|
|
39
89
|
/**
|
|
40
90
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
41
91
|
* @summary Retrieve the product version
|
|
@@ -149,6 +199,17 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
149
199
|
export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
150
200
|
const localVarAxiosParamCreator = ProductVersionsApiAxiosParamCreator(configuration)
|
|
151
201
|
return {
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
205
|
+
* @param {string} [authorization] Bearer Token
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
async cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloneProductVersionResponseClass>> {
|
|
210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cloneProductVersion(cloneProductVersionRequestDto, authorization, options);
|
|
211
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
212
|
+
},
|
|
152
213
|
/**
|
|
153
214
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
154
215
|
* @summary Retrieve the product version
|
|
@@ -185,6 +246,16 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
|
185
246
|
export const ProductVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
186
247
|
const localVarFp = ProductVersionsApiFp(configuration)
|
|
187
248
|
return {
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
252
|
+
* @param {string} [authorization] Bearer Token
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
*/
|
|
256
|
+
cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<CloneProductVersionResponseClass> {
|
|
257
|
+
return localVarFp.cloneProductVersion(cloneProductVersionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
258
|
+
},
|
|
188
259
|
/**
|
|
189
260
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
190
261
|
* @summary Retrieve the product version
|
|
@@ -212,6 +283,27 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
|
|
|
212
283
|
};
|
|
213
284
|
};
|
|
214
285
|
|
|
286
|
+
/**
|
|
287
|
+
* Request parameters for cloneProductVersion operation in ProductVersionsApi.
|
|
288
|
+
* @export
|
|
289
|
+
* @interface ProductVersionsApiCloneProductVersionRequest
|
|
290
|
+
*/
|
|
291
|
+
export interface ProductVersionsApiCloneProductVersionRequest {
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @type {CloneProductVersionRequestDto}
|
|
295
|
+
* @memberof ProductVersionsApiCloneProductVersion
|
|
296
|
+
*/
|
|
297
|
+
readonly cloneProductVersionRequestDto: CloneProductVersionRequestDto
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Bearer Token
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @memberof ProductVersionsApiCloneProductVersion
|
|
303
|
+
*/
|
|
304
|
+
readonly authorization?: string
|
|
305
|
+
}
|
|
306
|
+
|
|
215
307
|
/**
|
|
216
308
|
* Request parameters for getProductVersion operation in ProductVersionsApi.
|
|
217
309
|
* @export
|
|
@@ -275,6 +367,17 @@ export interface ProductVersionsApiUpdateProductVersionRequest {
|
|
|
275
367
|
* @extends {BaseAPI}
|
|
276
368
|
*/
|
|
277
369
|
export class ProductVersionsApi extends BaseAPI {
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
* @param {ProductVersionsApiCloneProductVersionRequest} requestParameters Request parameters.
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
* @memberof ProductVersionsApi
|
|
376
|
+
*/
|
|
377
|
+
public cloneProductVersion(requestParameters: ProductVersionsApiCloneProductVersionRequest, options?: AxiosRequestConfig) {
|
|
378
|
+
return ProductVersionsApiFp(this.configuration).cloneProductVersion(requestParameters.cloneProductVersionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
379
|
+
}
|
|
380
|
+
|
|
278
381
|
/**
|
|
279
382
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
280
383
|
* @summary Retrieve the product version
|
|
@@ -49,7 +49,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
49
49
|
getPolicy: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
50
|
/**
|
|
51
51
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
52
|
-
* @summary Retrieve
|
|
52
|
+
* @summary Retrieve current policy version
|
|
53
53
|
* @param {string} code Unique identifier for the object.
|
|
54
54
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
55
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -63,7 +63,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
63
63
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
64
64
|
* @param {number} [pageSize] Page size.
|
|
65
65
|
* @param {string} [pageToken] Page token.
|
|
66
|
-
* @param {string} [filter]
|
|
66
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
67
67
|
* @param {string} [search] Search query.
|
|
68
68
|
* @param {string} [order] Ordering criteria.
|
|
69
69
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -137,7 +137,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
137
137
|
getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
|
|
138
138
|
/**
|
|
139
139
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
140
|
-
* @summary Retrieve
|
|
140
|
+
* @summary Retrieve current policy version
|
|
141
141
|
* @param {string} code Unique identifier for the object.
|
|
142
142
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
143
143
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -151,7 +151,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
151
151
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
152
152
|
* @param {number} [pageSize] Page size.
|
|
153
153
|
* @param {string} [pageToken] Page token.
|
|
154
|
-
* @param {string} [filter]
|
|
154
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
155
155
|
* @param {string} [search] Search query.
|
|
156
156
|
* @param {string} [order] Ordering criteria.
|
|
157
157
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -225,7 +225,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
225
225
|
getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
|
|
226
226
|
/**
|
|
227
227
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
228
|
-
* @summary Retrieve
|
|
228
|
+
* @summary Retrieve current policy version
|
|
229
229
|
* @param {string} code Unique identifier for the object.
|
|
230
230
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
231
231
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -239,7 +239,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
239
239
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
240
240
|
* @param {number} [pageSize] Page size.
|
|
241
241
|
* @param {string} [pageToken] Page token.
|
|
242
|
-
* @param {string} [filter]
|
|
242
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
243
243
|
* @param {string} [search] Search query.
|
|
244
244
|
* @param {string} [order] Ordering criteria.
|
|
245
245
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -381,7 +381,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
381
381
|
*/
|
|
382
382
|
readonly pageToken?: string;
|
|
383
383
|
/**
|
|
384
|
-
*
|
|
384
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
385
385
|
* @type {string}
|
|
386
386
|
* @memberof PoliciesApiListPolicies
|
|
387
387
|
*/
|
|
@@ -526,7 +526,7 @@ export declare class PoliciesApi extends BaseAPI {
|
|
|
526
526
|
getPolicy(requestParameters: PoliciesApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
|
|
527
527
|
/**
|
|
528
528
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
529
|
-
* @summary Retrieve
|
|
529
|
+
* @summary Retrieve current policy version
|
|
530
530
|
* @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
|
|
531
531
|
* @param {*} [options] Override http request option.
|
|
532
532
|
* @throws {RequiredError}
|
package/dist/api/policies-api.js
CHANGED
|
@@ -199,7 +199,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
199
199
|
},
|
|
200
200
|
/**
|
|
201
201
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
202
|
-
* @summary Retrieve
|
|
202
|
+
* @summary Retrieve current policy version
|
|
203
203
|
* @param {string} code Unique identifier for the object.
|
|
204
204
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
205
205
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -255,7 +255,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
255
255
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
256
256
|
* @param {number} [pageSize] Page size.
|
|
257
257
|
* @param {string} [pageToken] Page token.
|
|
258
|
-
* @param {string} [filter]
|
|
258
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
259
259
|
* @param {string} [search] Search query.
|
|
260
260
|
* @param {string} [order] Ordering criteria.
|
|
261
261
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -579,7 +579,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
579
579
|
},
|
|
580
580
|
/**
|
|
581
581
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
582
|
-
* @summary Retrieve
|
|
582
|
+
* @summary Retrieve current policy version
|
|
583
583
|
* @param {string} code Unique identifier for the object.
|
|
584
584
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
585
585
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -605,7 +605,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
605
605
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
606
606
|
* @param {number} [pageSize] Page size.
|
|
607
607
|
* @param {string} [pageToken] Page token.
|
|
608
|
-
* @param {string} [filter]
|
|
608
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
609
609
|
* @param {string} [search] Search query.
|
|
610
610
|
* @param {string} [order] Ordering criteria.
|
|
611
611
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -747,7 +747,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
747
747
|
},
|
|
748
748
|
/**
|
|
749
749
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
750
|
-
* @summary Retrieve
|
|
750
|
+
* @summary Retrieve current policy version
|
|
751
751
|
* @param {string} code Unique identifier for the object.
|
|
752
752
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
753
753
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -763,7 +763,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
763
763
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
764
764
|
* @param {number} [pageSize] Page size.
|
|
765
765
|
* @param {string} [pageToken] Page token.
|
|
766
|
-
* @param {string} [filter]
|
|
766
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
767
767
|
* @param {string} [search] Search query.
|
|
768
768
|
* @param {string} [order] Ordering criteria.
|
|
769
769
|
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
@@ -860,7 +860,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
860
860
|
};
|
|
861
861
|
/**
|
|
862
862
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
863
|
-
* @summary Retrieve
|
|
863
|
+
* @summary Retrieve current policy version
|
|
864
864
|
* @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
|
|
865
865
|
* @param {*} [options] Override http request option.
|
|
866
866
|
* @throws {RequiredError}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CloneProductVersionRequestDto } from '../models';
|
|
16
|
+
import { CloneProductVersionResponseClass } from '../models';
|
|
15
17
|
import { GetProductVersionResponseClass } from '../models';
|
|
16
18
|
import { UpdateProductVersionRequestDto } from '../models';
|
|
17
19
|
import { UpdateProductVersionResponseClass } from '../models';
|
|
@@ -20,6 +22,14 @@ import { UpdateProductVersionResponseClass } from '../models';
|
|
|
20
22
|
* @export
|
|
21
23
|
*/
|
|
22
24
|
export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
28
|
+
* @param {string} [authorization] Bearer Token
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
cloneProductVersion: (cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
23
33
|
/**
|
|
24
34
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
25
35
|
* @summary Retrieve the product version
|
|
@@ -46,6 +56,14 @@ export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Confi
|
|
|
46
56
|
* @export
|
|
47
57
|
*/
|
|
48
58
|
export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
62
|
+
* @param {string} [authorization] Bearer Token
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloneProductVersionResponseClass>>;
|
|
49
67
|
/**
|
|
50
68
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
51
69
|
* @summary Retrieve the product version
|
|
@@ -72,6 +90,14 @@ export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
|
|
|
72
90
|
* @export
|
|
73
91
|
*/
|
|
74
92
|
export declare const ProductVersionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<CloneProductVersionResponseClass>;
|
|
75
101
|
/**
|
|
76
102
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
77
103
|
* @summary Retrieve the product version
|
|
@@ -93,6 +119,25 @@ export declare const ProductVersionsApiFactory: (configuration?: Configuration,
|
|
|
93
119
|
*/
|
|
94
120
|
updateProductVersion(id: number, updateProductVersionRequestDto: UpdateProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductVersionResponseClass>;
|
|
95
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* Request parameters for cloneProductVersion operation in ProductVersionsApi.
|
|
124
|
+
* @export
|
|
125
|
+
* @interface ProductVersionsApiCloneProductVersionRequest
|
|
126
|
+
*/
|
|
127
|
+
export interface ProductVersionsApiCloneProductVersionRequest {
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {CloneProductVersionRequestDto}
|
|
131
|
+
* @memberof ProductVersionsApiCloneProductVersion
|
|
132
|
+
*/
|
|
133
|
+
readonly cloneProductVersionRequestDto: CloneProductVersionRequestDto;
|
|
134
|
+
/**
|
|
135
|
+
* Bearer Token
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof ProductVersionsApiCloneProductVersion
|
|
138
|
+
*/
|
|
139
|
+
readonly authorization?: string;
|
|
140
|
+
}
|
|
96
141
|
/**
|
|
97
142
|
* Request parameters for getProductVersion operation in ProductVersionsApi.
|
|
98
143
|
* @export
|
|
@@ -150,6 +195,14 @@ export interface ProductVersionsApiUpdateProductVersionRequest {
|
|
|
150
195
|
* @extends {BaseAPI}
|
|
151
196
|
*/
|
|
152
197
|
export declare class ProductVersionsApi extends BaseAPI {
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @param {ProductVersionsApiCloneProductVersionRequest} requestParameters Request parameters.
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
* @memberof ProductVersionsApi
|
|
204
|
+
*/
|
|
205
|
+
cloneProductVersion(requestParameters: ProductVersionsApiCloneProductVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CloneProductVersionResponseClass, any>>;
|
|
153
206
|
/**
|
|
154
207
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
155
208
|
* @summary Retrieve the product version
|
|
@@ -96,6 +96,54 @@ var FormData = require('form-data');
|
|
|
96
96
|
var ProductVersionsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
102
|
+
* @param {string} [authorization] Bearer Token
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
cloneProductVersion: function (cloneProductVersionRequestDto, authorization, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
switch (_a.label) {
|
|
112
|
+
case 0:
|
|
113
|
+
// verify required parameter 'cloneProductVersionRequestDto' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('cloneProductVersion', 'cloneProductVersionRequestDto', cloneProductVersionRequestDto);
|
|
115
|
+
localVarPath = "/insuranceservice/v1/product-versions/clone";
|
|
116
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
baseAccessToken = configuration.accessToken;
|
|
120
|
+
}
|
|
121
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
122
|
+
localVarHeaderParameter = {};
|
|
123
|
+
localVarQueryParameter = {};
|
|
124
|
+
// authentication bearer required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
127
|
+
case 1:
|
|
128
|
+
// authentication bearer required
|
|
129
|
+
// http bearer authentication required
|
|
130
|
+
_a.sent();
|
|
131
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
132
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
|
+
}
|
|
134
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cloneProductVersionRequestDto, localVarRequestOptions, configuration);
|
|
139
|
+
return [2 /*return*/, {
|
|
140
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
+
options: localVarRequestOptions,
|
|
142
|
+
}];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
},
|
|
99
147
|
/**
|
|
100
148
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
101
149
|
* @summary Retrieve the product version
|
|
@@ -213,6 +261,26 @@ exports.ProductVersionsApiAxiosParamCreator = ProductVersionsApiAxiosParamCreato
|
|
|
213
261
|
var ProductVersionsApiFp = function (configuration) {
|
|
214
262
|
var localVarAxiosParamCreator = (0, exports.ProductVersionsApiAxiosParamCreator)(configuration);
|
|
215
263
|
return {
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
267
|
+
* @param {string} [authorization] Bearer Token
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
cloneProductVersion: function (cloneProductVersionRequestDto, authorization, options) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
273
|
+
var localVarAxiosArgs;
|
|
274
|
+
return __generator(this, function (_a) {
|
|
275
|
+
switch (_a.label) {
|
|
276
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.cloneProductVersion(cloneProductVersionRequestDto, authorization, options)];
|
|
277
|
+
case 1:
|
|
278
|
+
localVarAxiosArgs = _a.sent();
|
|
279
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
},
|
|
216
284
|
/**
|
|
217
285
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
218
286
|
* @summary Retrieve the product version
|
|
@@ -267,6 +335,16 @@ exports.ProductVersionsApiFp = ProductVersionsApiFp;
|
|
|
267
335
|
var ProductVersionsApiFactory = function (configuration, basePath, axios) {
|
|
268
336
|
var localVarFp = (0, exports.ProductVersionsApiFp)(configuration);
|
|
269
337
|
return {
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
341
|
+
* @param {string} [authorization] Bearer Token
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
cloneProductVersion: function (cloneProductVersionRequestDto, authorization, options) {
|
|
346
|
+
return localVarFp.cloneProductVersion(cloneProductVersionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
347
|
+
},
|
|
270
348
|
/**
|
|
271
349
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
272
350
|
* @summary Retrieve the product version
|
|
@@ -305,6 +383,17 @@ var ProductVersionsApi = /** @class */ (function (_super) {
|
|
|
305
383
|
function ProductVersionsApi() {
|
|
306
384
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
307
385
|
}
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @param {ProductVersionsApiCloneProductVersionRequest} requestParameters Request parameters.
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
* @memberof ProductVersionsApi
|
|
392
|
+
*/
|
|
393
|
+
ProductVersionsApi.prototype.cloneProductVersion = function (requestParameters, options) {
|
|
394
|
+
var _this = this;
|
|
395
|
+
return (0, exports.ProductVersionsApiFp)(this.configuration).cloneProductVersion(requestParameters.cloneProductVersionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
396
|
+
};
|
|
308
397
|
/**
|
|
309
398
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
310
399
|
* @summary Retrieve the product version
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CloneProductVersionRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CloneProductVersionRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier referencing the product.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CloneProductVersionRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'productId': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier referencing the product version.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CloneProductVersionRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'productVersionId': number;
|
|
30
|
+
/**
|
|
31
|
+
* product version description
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CloneProductVersionRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'description': string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { ProductVersionClass } from './product-version-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CloneProductVersionResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CloneProductVersionResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Product version
|
|
21
|
+
* @type {ProductVersionClass}
|
|
22
|
+
* @memberof CloneProductVersionResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'productVersion': ProductVersionClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -35,4 +35,10 @@ export interface CreateDummyPolicyRequestDto {
|
|
|
35
35
|
* @memberof CreateDummyPolicyRequestDto
|
|
36
36
|
*/
|
|
37
37
|
'premiumOverride'?: Array<PremiumOverrideRequestDto>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof CreateDummyPolicyRequestDto
|
|
42
|
+
*/
|
|
43
|
+
'productVersionId'?: number;
|
|
38
44
|
}
|
|
@@ -26,6 +26,12 @@ export interface CreateLeadRequestDto {
|
|
|
26
26
|
* @memberof CreateLeadRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'code'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier referencing the product version.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof CreateLeadRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'productVersionId'?: number;
|
|
29
35
|
/**
|
|
30
36
|
* Bank account details.
|
|
31
37
|
* @type {CreateBankAccountRequestDto}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './calculate-custom-premium-request-dto';
|
|
2
2
|
export * from './calculate-premium-request-dto';
|
|
3
|
+
export * from './clone-product-version-request-dto';
|
|
4
|
+
export * from './clone-product-version-response-class';
|
|
3
5
|
export * from './create-account-request-dto';
|
|
4
6
|
export * from './create-bank-account-request-dto';
|
|
5
7
|
export * from './create-custom-application-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./calculate-custom-premium-request-dto"), exports);
|
|
18
18
|
__exportStar(require("./calculate-premium-request-dto"), exports);
|
|
19
|
+
__exportStar(require("./clone-product-version-request-dto"), exports);
|
|
20
|
+
__exportStar(require("./clone-product-version-response-class"), exports);
|
|
19
21
|
__exportStar(require("./create-account-request-dto"), exports);
|
|
20
22
|
__exportStar(require("./create-bank-account-request-dto"), exports);
|
|
21
23
|
__exportStar(require("./create-custom-application-request-dto"), exports);
|
|
@@ -60,11 +60,11 @@ export interface PolicyClass {
|
|
|
60
60
|
*/
|
|
61
61
|
'accountCode': string;
|
|
62
62
|
/**
|
|
63
|
-
* Policy status. This property shows different
|
|
64
|
-
* @type {
|
|
63
|
+
* Policy status. This property shows different statuses depending on the status of a policy: ACTIVE, WITHDRAW, TERMINATED, SUSPENDED.
|
|
64
|
+
* @type {string}
|
|
65
65
|
* @memberof PolicyClass
|
|
66
66
|
*/
|
|
67
|
-
'status':
|
|
67
|
+
'status': string;
|
|
68
68
|
/**
|
|
69
69
|
* Policy holder name.
|
|
70
70
|
* @type {string}
|
|
@@ -20,6 +20,12 @@ import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
|
20
20
|
* @interface UpdateLeadRequestDto
|
|
21
21
|
*/
|
|
22
22
|
export interface UpdateLeadRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier referencing the product version.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof UpdateLeadRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'productVersionId'?: number;
|
|
23
29
|
/**
|
|
24
30
|
* Custom data.
|
|
25
31
|
* @type {object}
|
|
@@ -55,9 +55,9 @@ export interface UpdatePolicyRequestDto {
|
|
|
55
55
|
'leadCode'?: string;
|
|
56
56
|
}
|
|
57
57
|
export declare const UpdatePolicyRequestDtoStatusEnum: {
|
|
58
|
-
readonly Active: "
|
|
59
|
-
readonly
|
|
60
|
-
readonly Terminated: "
|
|
61
|
-
readonly Suspended: "
|
|
58
|
+
readonly Active: "ACTIVE";
|
|
59
|
+
readonly Withdraw: "WITHDRAW";
|
|
60
|
+
readonly Terminated: "TERMINATED";
|
|
61
|
+
readonly Suspended: "SUSPENDED";
|
|
62
62
|
};
|
|
63
63
|
export type UpdatePolicyRequestDtoStatusEnum = typeof UpdatePolicyRequestDtoStatusEnum[keyof typeof UpdatePolicyRequestDtoStatusEnum];
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UpdatePolicyRequestDtoStatusEnum = void 0;
|
|
17
17
|
exports.UpdatePolicyRequestDtoStatusEnum = {
|
|
18
|
-
Active: '
|
|
19
|
-
|
|
20
|
-
Terminated: '
|
|
21
|
-
Suspended: '
|
|
18
|
+
Active: 'ACTIVE',
|
|
19
|
+
Withdraw: 'WITHDRAW',
|
|
20
|
+
Terminated: 'TERMINATED',
|
|
21
|
+
Suspended: 'SUSPENDED'
|
|
22
22
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CloneProductVersionRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CloneProductVersionRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier referencing the product.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CloneProductVersionRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'productId': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier referencing the product version.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof CloneProductVersionRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'productVersionId': number;
|
|
35
|
+
/**
|
|
36
|
+
* product version description
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CloneProductVersionRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'description': string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { ProductVersionClass } from './product-version-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CloneProductVersionResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CloneProductVersionResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Product version
|
|
26
|
+
* @type {ProductVersionClass}
|
|
27
|
+
* @memberof CloneProductVersionResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'productVersion': ProductVersionClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -40,5 +40,11 @@ export interface CreateDummyPolicyRequestDto {
|
|
|
40
40
|
* @memberof CreateDummyPolicyRequestDto
|
|
41
41
|
*/
|
|
42
42
|
'premiumOverride'?: Array<PremiumOverrideRequestDto>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof CreateDummyPolicyRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'productVersionId'?: number;
|
|
43
49
|
}
|
|
44
50
|
|
|
@@ -31,6 +31,12 @@ export interface CreateLeadRequestDto {
|
|
|
31
31
|
* @memberof CreateLeadRequestDto
|
|
32
32
|
*/
|
|
33
33
|
'code'?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier referencing the product version.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CreateLeadRequestDto
|
|
38
|
+
*/
|
|
39
|
+
'productVersionId'?: number;
|
|
34
40
|
/**
|
|
35
41
|
* Bank account details.
|
|
36
42
|
* @type {CreateBankAccountRequestDto}
|
package/models/index.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './calculate-custom-premium-request-dto';
|
|
2
2
|
export * from './calculate-premium-request-dto';
|
|
3
|
+
export * from './clone-product-version-request-dto';
|
|
4
|
+
export * from './clone-product-version-response-class';
|
|
3
5
|
export * from './create-account-request-dto';
|
|
4
6
|
export * from './create-bank-account-request-dto';
|
|
5
7
|
export * from './create-custom-application-request-dto';
|
package/models/policy-class.ts
CHANGED
|
@@ -65,11 +65,11 @@ export interface PolicyClass {
|
|
|
65
65
|
*/
|
|
66
66
|
'accountCode': string;
|
|
67
67
|
/**
|
|
68
|
-
* Policy status. This property shows different
|
|
69
|
-
* @type {
|
|
68
|
+
* Policy status. This property shows different statuses depending on the status of a policy: ACTIVE, WITHDRAW, TERMINATED, SUSPENDED.
|
|
69
|
+
* @type {string}
|
|
70
70
|
* @memberof PolicyClass
|
|
71
71
|
*/
|
|
72
|
-
'status':
|
|
72
|
+
'status': string;
|
|
73
73
|
/**
|
|
74
74
|
* Policy holder name.
|
|
75
75
|
* @type {string}
|
|
@@ -25,6 +25,12 @@ import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
|
25
25
|
* @interface UpdateLeadRequestDto
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateLeadRequestDto {
|
|
28
|
+
/**
|
|
29
|
+
* Unique identifier referencing the product version.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdateLeadRequestDto
|
|
32
|
+
*/
|
|
33
|
+
'productVersionId'?: number;
|
|
28
34
|
/**
|
|
29
35
|
* Custom data.
|
|
30
36
|
* @type {object}
|
|
@@ -61,10 +61,10 @@ export interface UpdatePolicyRequestDto {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export const UpdatePolicyRequestDtoStatusEnum = {
|
|
64
|
-
Active: '
|
|
65
|
-
|
|
66
|
-
Terminated: '
|
|
67
|
-
Suspended: '
|
|
64
|
+
Active: 'ACTIVE',
|
|
65
|
+
Withdraw: 'WITHDRAW',
|
|
66
|
+
Terminated: 'TERMINATED',
|
|
67
|
+
Suspended: 'SUSPENDED'
|
|
68
68
|
} as const;
|
|
69
69
|
|
|
70
70
|
export type UpdatePolicyRequestDtoStatusEnum = typeof UpdatePolicyRequestDtoStatusEnum[keyof typeof UpdatePolicyRequestDtoStatusEnum];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/insurance-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/insurance-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|