@emilgroup/insurance-sdk-node 1.0.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 +97 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/insured-object-types-api.ts +236 -0
- package/api/insured-objects-api.ts +446 -0
- package/api/leads-api.ts +402 -0
- package/api/policies-api.ts +580 -0
- package/api/products-api.ts +3027 -0
- package/api.ts +44 -0
- package/base.ts +189 -0
- package/common.ts +138 -0
- package/configuration.ts +109 -0
- package/dist/api/insured-object-types-api.d.ts +141 -0
- package/dist/api/insured-object-types-api.js +258 -0
- package/dist/api/insured-objects-api.d.ts +254 -0
- package/dist/api/insured-objects-api.js +443 -0
- package/dist/api/leads-api.d.ts +225 -0
- package/dist/api/leads-api.js +427 -0
- package/dist/api/policies-api.d.ts +329 -0
- package/dist/api/policies-api.js +548 -0
- package/dist/api/products-api.d.ts +1683 -0
- package/dist/api/products-api.js +2521 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +40 -0
- package/dist/base.d.ts +69 -0
- package/dist/base.js +252 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/calculate-custom-premium-request-dto.d.ts +34 -0
- package/dist/models/calculate-custom-premium-request-dto.js +19 -0
- package/dist/models/calculate-premium-request-dto.d.ts +31 -0
- package/dist/models/calculate-premium-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +84 -0
- package/dist/models/create-account-request-dto.js +15 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-claim-request-dto.d.ts +83 -0
- package/dist/models/create-claim-request-dto.js +25 -0
- package/dist/models/create-custom-application-request-dto.d.ts +40 -0
- package/dist/models/create-custom-application-request-dto.js +19 -0
- package/dist/models/create-dummy-policy-request-dto.d.ts +31 -0
- package/dist/models/create-dummy-policy-request-dto.js +15 -0
- package/dist/models/create-insured-object-request-dto.d.ts +42 -0
- package/dist/models/create-insured-object-request-dto.js +15 -0
- package/dist/models/create-insured-object-response-class.d.ts +25 -0
- package/dist/models/create-insured-object-response-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +71 -0
- package/dist/models/create-lead-request-dto.js +22 -0
- package/dist/models/create-policy-request-dto.d.ts +37 -0
- package/dist/models/create-policy-request-dto.js +15 -0
- package/dist/models/create-policy-response-class.d.ts +25 -0
- package/dist/models/create-policy-response-class.js +15 -0
- package/dist/models/create-premium-formula-request-dto.d.ts +65 -0
- package/dist/models/create-premium-formula-request-dto.js +25 -0
- package/dist/models/create-premium-formula-response-class.d.ts +25 -0
- package/dist/models/create-premium-formula-response-class.js +15 -0
- package/dist/models/create-product-field-request-dto.d.ts +113 -0
- package/dist/models/create-product-field-request-dto.js +20 -0
- package/dist/models/create-product-field-response-class.d.ts +25 -0
- package/dist/models/create-product-field-response-class.js +15 -0
- package/dist/models/create-product-request-dto.d.ts +57 -0
- package/dist/models/create-product-request-dto.js +30 -0
- package/dist/models/create-product-response-class.d.ts +25 -0
- package/dist/models/create-product-response-class.js +15 -0
- package/dist/models/csv-product-factor-dto.d.ts +48 -0
- package/dist/models/csv-product-factor-dto.js +15 -0
- package/dist/models/delete-request-dto.d.ts +24 -0
- package/dist/models/delete-request-dto.js +15 -0
- package/dist/models/get-insured-object-request-dto.d.ts +24 -0
- package/dist/models/get-insured-object-request-dto.js +15 -0
- package/dist/models/get-insured-object-response-class.d.ts +25 -0
- package/dist/models/get-insured-object-response-class.js +15 -0
- package/dist/models/get-policy-request-dto.d.ts +30 -0
- package/dist/models/get-policy-request-dto.js +15 -0
- package/dist/models/get-policy-response-class.d.ts +25 -0
- package/dist/models/get-policy-response-class.js +15 -0
- package/dist/models/get-premium-formula-request-dto.d.ts +24 -0
- package/dist/models/get-premium-formula-request-dto.js +15 -0
- package/dist/models/get-premium-formula-response-class.d.ts +25 -0
- package/dist/models/get-premium-formula-response-class.js +15 -0
- package/dist/models/get-product-factor-response-class.d.ts +32 -0
- package/dist/models/get-product-factor-response-class.js +15 -0
- package/dist/models/get-product-factor-value-request-dto.d.ts +42 -0
- package/dist/models/get-product-factor-value-request-dto.js +15 -0
- package/dist/models/get-product-factor-value-response-class.d.ts +25 -0
- package/dist/models/get-product-factor-value-response-class.js +15 -0
- package/dist/models/get-product-field-request-dto.d.ts +24 -0
- package/dist/models/get-product-field-request-dto.js +15 -0
- package/dist/models/get-product-field-response-class.d.ts +25 -0
- package/dist/models/get-product-field-response-class.js +15 -0
- package/dist/models/get-product-request-dto.d.ts +36 -0
- package/dist/models/get-product-request-dto.js +15 -0
- package/dist/models/get-product-response-class.d.ts +25 -0
- package/dist/models/get-product-response-class.js +15 -0
- package/dist/models/get-product-version-request-dto.d.ts +24 -0
- package/dist/models/get-product-version-request-dto.js +15 -0
- package/dist/models/get-product-version-response-class.d.ts +25 -0
- package/dist/models/get-product-version-response-class.js +15 -0
- package/dist/models/grouped-product-factor-class.d.ts +37 -0
- package/dist/models/grouped-product-factor-class.js +15 -0
- package/dist/models/grouped-product-factor-value-class.d.ts +36 -0
- package/dist/models/grouped-product-factor-value-class.js +15 -0
- package/dist/models/grouped-product-factors-response-class.d.ts +25 -0
- package/dist/models/grouped-product-factors-response-class.js +15 -0
- package/dist/models/grpc-create-policy-request-dto.d.ts +37 -0
- package/dist/models/grpc-create-policy-request-dto.js +15 -0
- package/dist/models/index.d.ts +79 -0
- package/dist/models/index.js +95 -0
- package/dist/models/insured-object-class.d.ts +67 -0
- package/dist/models/insured-object-class.js +15 -0
- package/dist/models/insured-object-type-class.d.ts +48 -0
- package/dist/models/insured-object-type-class.js +15 -0
- package/dist/models/list-insured-object-types-response-class.d.ts +31 -0
- package/dist/models/list-insured-object-types-response-class.js +15 -0
- package/dist/models/list-insured-objects-response-class.d.ts +30 -0
- package/dist/models/list-insured-objects-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +31 -0
- package/dist/models/list-policies-response-class.js +15 -0
- package/dist/models/list-premium-formulas-response-class.d.ts +31 -0
- package/dist/models/list-premium-formulas-response-class.js +15 -0
- package/dist/models/list-product-factors-response-class.d.ts +31 -0
- package/dist/models/list-product-factors-response-class.js +15 -0
- package/dist/models/list-product-field-types-response-class.d.ts +30 -0
- package/dist/models/list-product-field-types-response-class.js +15 -0
- package/dist/models/list-product-fields-response-class.d.ts +31 -0
- package/dist/models/list-product-fields-response-class.js +15 -0
- package/dist/models/list-products-response-class.d.ts +31 -0
- package/dist/models/list-products-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/policy-class.d.ts +86 -0
- package/dist/models/policy-class.js +15 -0
- package/dist/models/policy-object-class.d.ts +42 -0
- package/dist/models/policy-object-class.js +15 -0
- package/dist/models/policy-object-dto.d.ts +30 -0
- package/dist/models/policy-object-dto.js +15 -0
- package/dist/models/policy-premium-class.d.ts +43 -0
- package/dist/models/policy-premium-class.js +15 -0
- package/dist/models/policy-premium-item-class.d.ts +49 -0
- package/dist/models/policy-premium-item-class.js +15 -0
- package/dist/models/policy-version-class.d.ts +55 -0
- package/dist/models/policy-version-class.js +15 -0
- package/dist/models/premium-formula-class.d.ts +79 -0
- package/dist/models/premium-formula-class.js +15 -0
- package/dist/models/product-class.d.ts +74 -0
- package/dist/models/product-class.js +15 -0
- package/dist/models/product-factor-class.d.ts +68 -0
- package/dist/models/product-factor-class.js +15 -0
- package/dist/models/product-factor-value-class.d.ts +80 -0
- package/dist/models/product-factor-value-class.js +15 -0
- package/dist/models/product-field-class.d.ts +114 -0
- package/dist/models/product-field-class.js +15 -0
- package/dist/models/product-version-class.d.ts +54 -0
- package/dist/models/product-version-class.js +15 -0
- package/dist/models/store-product-factors-request-dto.d.ts +31 -0
- package/dist/models/store-product-factors-request-dto.js +15 -0
- package/dist/models/store-product-factors-response-class.d.ts +25 -0
- package/dist/models/store-product-factors-response-class.js +15 -0
- package/dist/models/timeslice-class.d.ts +62 -0
- package/dist/models/timeslice-class.js +15 -0
- package/dist/models/update-insured-object-request-dto.d.ts +48 -0
- package/dist/models/update-insured-object-request-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +71 -0
- package/dist/models/update-lead-request-dto.js +22 -0
- package/dist/models/update-policy-request-dto.d.ts +43 -0
- package/dist/models/update-policy-request-dto.js +15 -0
- package/dist/models/update-policy-response-class.d.ts +25 -0
- package/dist/models/update-policy-response-class.js +15 -0
- package/dist/models/update-premium-formula-request-dto.d.ts +71 -0
- package/dist/models/update-premium-formula-request-dto.js +25 -0
- package/dist/models/update-premium-formula-response-class.d.ts +25 -0
- package/dist/models/update-premium-formula-response-class.js +15 -0
- package/dist/models/update-product-field-request-dto.d.ts +119 -0
- package/dist/models/update-product-field-request-dto.js +20 -0
- package/dist/models/update-product-field-response-class.d.ts +25 -0
- package/dist/models/update-product-field-response-class.js +15 -0
- package/dist/models/update-product-request-dto.d.ts +42 -0
- package/dist/models/update-product-request-dto.js +15 -0
- package/dist/models/update-product-response-class.d.ts +25 -0
- package/dist/models/update-product-response-class.js +15 -0
- package/dist/models/update-product-version-request-dto.d.ts +43 -0
- package/dist/models/update-product-version-request-dto.js +22 -0
- package/dist/models/update-product-version-response-class.d.ts +25 -0
- package/dist/models/update-product-version-response-class.js +15 -0
- package/dist/models/uploaded-document-dto.d.ts +24 -0
- package/dist/models/uploaded-document-dto.js +15 -0
- package/dist/models/validate-product-factors-request-dto.d.ts +31 -0
- package/dist/models/validate-product-factors-request-dto.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/calculate-custom-premium-request-dto.ts +43 -0
- package/models/calculate-premium-request-dto.ts +37 -0
- package/models/create-account-request-dto.ts +90 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/create-claim-request-dto.ts +93 -0
- package/models/create-custom-application-request-dto.ts +49 -0
- package/models/create-dummy-policy-request-dto.ts +37 -0
- package/models/create-insured-object-request-dto.ts +48 -0
- package/models/create-insured-object-response-class.ts +31 -0
- package/models/create-lead-request-dto.ts +80 -0
- package/models/create-policy-request-dto.ts +43 -0
- package/models/create-policy-response-class.ts +31 -0
- package/models/create-premium-formula-request-dto.ts +75 -0
- package/models/create-premium-formula-response-class.ts +31 -0
- package/models/create-product-field-request-dto.ts +122 -0
- package/models/create-product-field-response-class.ts +31 -0
- package/models/create-product-request-dto.ts +66 -0
- package/models/create-product-response-class.ts +31 -0
- package/models/csv-product-factor-dto.ts +54 -0
- package/models/delete-request-dto.ts +30 -0
- package/models/get-insured-object-request-dto.ts +30 -0
- package/models/get-insured-object-response-class.ts +31 -0
- package/models/get-policy-request-dto.ts +36 -0
- package/models/get-policy-response-class.ts +31 -0
- package/models/get-premium-formula-request-dto.ts +30 -0
- package/models/get-premium-formula-response-class.ts +31 -0
- package/models/get-product-factor-response-class.ts +38 -0
- package/models/get-product-factor-value-request-dto.ts +48 -0
- package/models/get-product-factor-value-response-class.ts +31 -0
- package/models/get-product-field-request-dto.ts +30 -0
- package/models/get-product-field-response-class.ts +31 -0
- package/models/get-product-request-dto.ts +42 -0
- package/models/get-product-response-class.ts +31 -0
- package/models/get-product-version-request-dto.ts +30 -0
- package/models/get-product-version-response-class.ts +31 -0
- package/models/grouped-product-factor-class.ts +43 -0
- package/models/grouped-product-factor-value-class.ts +42 -0
- package/models/grouped-product-factors-response-class.ts +31 -0
- package/models/grpc-create-policy-request-dto.ts +43 -0
- package/models/index.ts +79 -0
- package/models/insured-object-class.ts +73 -0
- package/models/insured-object-type-class.ts +54 -0
- package/models/list-insured-object-types-response-class.ts +37 -0
- package/models/list-insured-objects-response-class.ts +36 -0
- package/models/list-policies-response-class.ts +37 -0
- package/models/list-premium-formulas-response-class.ts +37 -0
- package/models/list-product-factors-response-class.ts +37 -0
- package/models/list-product-field-types-response-class.ts +36 -0
- package/models/list-product-fields-response-class.ts +37 -0
- package/models/list-products-response-class.ts +37 -0
- package/models/list-request-dto.ts +60 -0
- package/models/policy-class.ts +92 -0
- package/models/policy-object-class.ts +48 -0
- package/models/policy-object-dto.ts +36 -0
- package/models/policy-premium-class.ts +49 -0
- package/models/policy-premium-item-class.ts +55 -0
- package/models/policy-version-class.ts +61 -0
- package/models/premium-formula-class.ts +85 -0
- package/models/product-class.ts +80 -0
- package/models/product-factor-class.ts +74 -0
- package/models/product-factor-value-class.ts +86 -0
- package/models/product-field-class.ts +120 -0
- package/models/product-version-class.ts +60 -0
- package/models/store-product-factors-request-dto.ts +37 -0
- package/models/store-product-factors-response-class.ts +31 -0
- package/models/timeslice-class.ts +68 -0
- package/models/update-insured-object-request-dto.ts +54 -0
- package/models/update-lead-request-dto.ts +80 -0
- package/models/update-policy-request-dto.ts +49 -0
- package/models/update-policy-response-class.ts +31 -0
- package/models/update-premium-formula-request-dto.ts +81 -0
- package/models/update-premium-formula-response-class.ts +31 -0
- package/models/update-product-field-request-dto.ts +128 -0
- package/models/update-product-field-response-class.ts +31 -0
- package/models/update-product-request-dto.ts +48 -0
- package/models/update-product-response-class.ts +31 -0
- package/models/update-product-version-request-dto.ts +52 -0
- package/models/update-product-version-response-class.ts +31 -0
- package/models/uploaded-document-dto.ts +30 -0
- package/models/validate-product-factors-request-dto.ts +37 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
package/api.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
*
|
|
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 { Configuration } from './configuration';
|
|
17
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
18
|
+
// URLSearchParams not necessarily used
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { URL, URLSearchParams } from 'url';
|
|
21
|
+
import FormData from 'form-data'
|
|
22
|
+
// Some imports not used depending on template conditions
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
+
import { InsuredObjectTypesApi } from './api';
|
|
28
|
+
import { InsuredObjectsApi } from './api';
|
|
29
|
+
import { LeadsApi } from './api';
|
|
30
|
+
import { PoliciesApi } from './api';
|
|
31
|
+
import { ProductsApi } from './api';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export * from './api/insured-object-types-api';
|
|
35
|
+
export * from './api/insured-objects-api';
|
|
36
|
+
export * from './api/leads-api';
|
|
37
|
+
export * from './api/policies-api';
|
|
38
|
+
export * from './api/products-api';
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
export enum Environment {
|
|
42
|
+
Production = 'https://apiv2.emil.de',
|
|
43
|
+
Test = 'https://apiv2-test.emil.de',
|
|
44
|
+
}
|
package/base.ts
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
*
|
|
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 { Configuration } from "./configuration";
|
|
17
|
+
// Some imports not used depending on template conditions
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
20
|
+
|
|
21
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const COLLECTION_FORMATS = {
|
|
28
|
+
csv: ",",
|
|
29
|
+
ssv: " ",
|
|
30
|
+
tsv: "\t",
|
|
31
|
+
pipes: "|",
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export interface LoginClass {
|
|
35
|
+
accessToken: string;
|
|
36
|
+
permissions: Array<string>;
|
|
37
|
+
newPasswordRequired: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export enum Environment {
|
|
41
|
+
Production = 'https://apiv2.emil.de',
|
|
42
|
+
Test = 'https://apiv2-test.emil.de',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface RequestArgs
|
|
49
|
+
*/
|
|
50
|
+
export interface RequestArgs {
|
|
51
|
+
url: string;
|
|
52
|
+
options: AxiosRequestConfig;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @export
|
|
58
|
+
* @class BaseAPI
|
|
59
|
+
*/
|
|
60
|
+
export class BaseAPI {
|
|
61
|
+
protected configuration: Configuration;
|
|
62
|
+
|
|
63
|
+
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
64
|
+
if (configuration) {
|
|
65
|
+
this.configuration = configuration;
|
|
66
|
+
this.basePath = configuration.basePath || this.basePath;
|
|
67
|
+
} else {
|
|
68
|
+
this.configuration = new Configuration({
|
|
69
|
+
basePath: this.basePath,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
axios.interceptors.response.use(
|
|
74
|
+
(res) => {
|
|
75
|
+
return res;
|
|
76
|
+
},
|
|
77
|
+
async (err) => {
|
|
78
|
+
const originalConfig = err.config;
|
|
79
|
+
if (err.response) {
|
|
80
|
+
// Access Token was expired
|
|
81
|
+
if (err.response.status === 401 && !originalConfig._retry) {
|
|
82
|
+
originalConfig._retry = true;
|
|
83
|
+
try {
|
|
84
|
+
const tokenString = await this.refreshToken();
|
|
85
|
+
const accessToken = `Bearer ${tokenString}`;
|
|
86
|
+
|
|
87
|
+
const localVarHeaderParameter = {} as any;
|
|
88
|
+
localVarHeaderParameter['Authorization'] = accessToken;
|
|
89
|
+
|
|
90
|
+
originalConfig.headers = {
|
|
91
|
+
...originalConfig.headers,
|
|
92
|
+
...localVarHeaderParameter,
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
this.configuration.accessToken = accessToken;
|
|
96
|
+
|
|
97
|
+
return axios(originalConfig);
|
|
98
|
+
} catch (_error) {
|
|
99
|
+
if (_error.response && _error.response.data) {
|
|
100
|
+
return Promise.reject(_error.response.data);
|
|
101
|
+
}
|
|
102
|
+
return Promise.reject(_error);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (err.response.status === 403 && err.response.data) {
|
|
106
|
+
return Promise.reject(err.response.data);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return Promise.reject(err);
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
getConfiguration(): Configuration {
|
|
115
|
+
return this.configuration;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
selectEnvironment(env: Environment) {
|
|
119
|
+
this.configuration.basePath = env;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async authorize(username: string, password: string): Promise<void> {
|
|
123
|
+
const options: AxiosRequestConfig = {
|
|
124
|
+
method: 'POST',
|
|
125
|
+
url: `${this.configuration.basePath}/authservice/v1/login`,
|
|
126
|
+
headers: {'Content-Type': 'application/json'},
|
|
127
|
+
data: {
|
|
128
|
+
username,
|
|
129
|
+
password,
|
|
130
|
+
},
|
|
131
|
+
withCredentials: true,
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const response = await globalAxios.request<LoginClass>(options);
|
|
135
|
+
|
|
136
|
+
const { data: { accessToken } } = response;
|
|
137
|
+
const refreshToken = this.extractRefreshToken(response)
|
|
138
|
+
|
|
139
|
+
this.configuration.username = username;
|
|
140
|
+
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
141
|
+
this.configuration.refreshToken = refreshToken;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
async refreshToken(): Promise<string> {
|
|
145
|
+
const { username, refreshToken } = this.configuration;
|
|
146
|
+
|
|
147
|
+
if (!username || !refreshToken) {
|
|
148
|
+
return '';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const options: AxiosRequestConfig = {
|
|
152
|
+
method: 'POST',
|
|
153
|
+
url: `${this.configuration.basePath}/authservice/v1/refresh-token`,
|
|
154
|
+
headers: {
|
|
155
|
+
'Content-Type': 'application/json',
|
|
156
|
+
Cookie: refreshToken,
|
|
157
|
+
},
|
|
158
|
+
data: {username: username},
|
|
159
|
+
withCredentials: true,
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
163
|
+
|
|
164
|
+
return accessToken;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
private extractRefreshToken(response: AxiosResponse): string {
|
|
168
|
+
if (response.headers && response.headers['set-cookie']
|
|
169
|
+
&& response.headers['set-cookie'].length > 0) {
|
|
170
|
+
|
|
171
|
+
return `${response.headers['set-cookie'][0].split(';')[0]};`;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return '';
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @export
|
|
181
|
+
* @class RequiredError
|
|
182
|
+
* @extends {Error}
|
|
183
|
+
*/
|
|
184
|
+
export class RequiredError extends Error {
|
|
185
|
+
name: "RequiredError" = "RequiredError";
|
|
186
|
+
constructor(public field: string, msg?: string) {
|
|
187
|
+
super(msg);
|
|
188
|
+
}
|
|
189
|
+
}
|
package/common.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
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
|
+
*
|
|
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 { Configuration } from "./configuration";
|
|
17
|
+
import { RequiredError, RequestArgs } from "./base";
|
|
18
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
19
|
+
import { URL, URLSearchParams } from 'url';
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const DUMMY_BASE_URL = 'https://example.com'
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
32
|
+
if (paramValue === null || paramValue === undefined) {
|
|
33
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
42
|
+
if (configuration && configuration.apiKey) {
|
|
43
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
44
|
+
? await configuration.apiKey(keyParamName)
|
|
45
|
+
: await configuration.apiKey;
|
|
46
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
55
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
56
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
65
|
+
if (configuration && configuration.accessToken) {
|
|
66
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
67
|
+
? await configuration.accessToken()
|
|
68
|
+
: await configuration.accessToken;
|
|
69
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
78
|
+
if (configuration && configuration.accessToken) {
|
|
79
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
80
|
+
? await configuration.accessToken(name, scopes)
|
|
81
|
+
: await configuration.accessToken;
|
|
82
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
91
|
+
const searchParams = new URLSearchParams(url.search);
|
|
92
|
+
for (const object of objects) {
|
|
93
|
+
for (const key in object) {
|
|
94
|
+
if (Array.isArray(object[key])) {
|
|
95
|
+
searchParams.delete(key);
|
|
96
|
+
for (const item of object[key]) {
|
|
97
|
+
searchParams.append(key, item);
|
|
98
|
+
}
|
|
99
|
+
} else {
|
|
100
|
+
searchParams.set(key, object[key]);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
url.search = searchParams.toString();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
112
|
+
const nonString = typeof value !== 'string';
|
|
113
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
114
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
115
|
+
: nonString;
|
|
116
|
+
return needsSerialization
|
|
117
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
118
|
+
: (value || "");
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @export
|
|
124
|
+
*/
|
|
125
|
+
export const toPathString = function (url: URL) {
|
|
126
|
+
return url.pathname + url.search + url.hash
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @export
|
|
132
|
+
*/
|
|
133
|
+
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
134
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
135
|
+
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
136
|
+
return axios.request<T, R>(axiosRequestArgs);
|
|
137
|
+
};
|
|
138
|
+
}
|
package/configuration.ts
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
*
|
|
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
|
+
export interface ConfigurationParameters {
|
|
17
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
21
|
+
basePath?: string;
|
|
22
|
+
baseOptions?: any;
|
|
23
|
+
formDataCtor?: new () => any;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class Configuration {
|
|
27
|
+
/**
|
|
28
|
+
* parameter for apiKey security
|
|
29
|
+
* @param name security name
|
|
30
|
+
* @memberof Configuration
|
|
31
|
+
*/
|
|
32
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
33
|
+
/**
|
|
34
|
+
* parameter for basic security
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Configuration
|
|
38
|
+
*/
|
|
39
|
+
username?: string;
|
|
40
|
+
/**
|
|
41
|
+
* parameter for basic security
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Configuration
|
|
45
|
+
*/
|
|
46
|
+
password?: string;
|
|
47
|
+
/**
|
|
48
|
+
* parameter for oauth2 security
|
|
49
|
+
* @param name security name
|
|
50
|
+
* @param scopes oauth2 scope
|
|
51
|
+
* @memberof Configuration
|
|
52
|
+
*/
|
|
53
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* override base path
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Configuration
|
|
59
|
+
*/
|
|
60
|
+
basePath?: string;
|
|
61
|
+
/**
|
|
62
|
+
* base options for axios calls
|
|
63
|
+
*
|
|
64
|
+
* @type {any}
|
|
65
|
+
* @memberof Configuration
|
|
66
|
+
*/
|
|
67
|
+
baseOptions?: any;
|
|
68
|
+
/**
|
|
69
|
+
* The FormData constructor that will be used to create multipart form data
|
|
70
|
+
* requests. You can inject this here so that execution environments that
|
|
71
|
+
* do not support the FormData class can still run the generated client.
|
|
72
|
+
*
|
|
73
|
+
* @type {new () => FormData}
|
|
74
|
+
*/
|
|
75
|
+
formDataCtor?: new () => any;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* parameter for automatically refreshing access token for oauth2 security
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof Configuration
|
|
82
|
+
*/
|
|
83
|
+
refreshToken?: string;
|
|
84
|
+
|
|
85
|
+
constructor(param: ConfigurationParameters = {}) {
|
|
86
|
+
this.apiKey = param.apiKey;
|
|
87
|
+
this.username = param.username;
|
|
88
|
+
this.password = param.password;
|
|
89
|
+
this.accessToken = param.accessToken;
|
|
90
|
+
this.basePath = param.basePath;
|
|
91
|
+
this.baseOptions = param.baseOptions;
|
|
92
|
+
this.formDataCtor = param.formDataCtor;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if the given MIME is a JSON MIME.
|
|
97
|
+
* JSON MIME examples:
|
|
98
|
+
* application/json
|
|
99
|
+
* application/json; charset=UTF8
|
|
100
|
+
* APPLICATION/JSON
|
|
101
|
+
* application/vnd.company+json
|
|
102
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
103
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
104
|
+
*/
|
|
105
|
+
public isJsonMime(mime: string): boolean {
|
|
106
|
+
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
107
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 { ListInsuredObjectTypesResponseClass } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* InsuredObjectTypesApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const InsuredObjectTypesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Returns a list of insured obect types you have previously created. The insured obect types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
23
|
+
* @summary List insured obect types
|
|
24
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
25
|
+
* @param {number} [pageSize] Page size
|
|
26
|
+
* @param {string} [pageToken] Page token
|
|
27
|
+
* @param {string} [filter] List filter
|
|
28
|
+
* @param {string} [search] Search query
|
|
29
|
+
* @param {string} [order] Ordering criteria
|
|
30
|
+
* @param {string} [expand] Extra fields to fetch
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
listInsuredObjectTypes: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* InsuredObjectTypesApi - functional programming interface
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const InsuredObjectTypesApiFp: (configuration?: Configuration) => {
|
|
41
|
+
/**
|
|
42
|
+
* Returns a list of insured obect types you have previously created. The insured obect types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
43
|
+
* @summary List insured obect types
|
|
44
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
45
|
+
* @param {number} [pageSize] Page size
|
|
46
|
+
* @param {string} [pageToken] Page token
|
|
47
|
+
* @param {string} [filter] List filter
|
|
48
|
+
* @param {string} [search] Search query
|
|
49
|
+
* @param {string} [order] Ordering criteria
|
|
50
|
+
* @param {string} [expand] Extra fields to fetch
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
listInsuredObjectTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInsuredObjectTypesResponseClass>>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* InsuredObjectTypesApi - factory interface
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const InsuredObjectTypesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
61
|
+
/**
|
|
62
|
+
* Returns a list of insured obect types you have previously created. The insured obect types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
63
|
+
* @summary List insured obect types
|
|
64
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
65
|
+
* @param {number} [pageSize] Page size
|
|
66
|
+
* @param {string} [pageToken] Page token
|
|
67
|
+
* @param {string} [filter] List filter
|
|
68
|
+
* @param {string} [search] Search query
|
|
69
|
+
* @param {string} [order] Ordering criteria
|
|
70
|
+
* @param {string} [expand] Extra fields to fetch
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
listInsuredObjectTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListInsuredObjectTypesResponseClass>;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Request parameters for listInsuredObjectTypes operation in InsuredObjectTypesApi.
|
|
78
|
+
* @export
|
|
79
|
+
* @interface InsuredObjectTypesApiListInsuredObjectTypesRequest
|
|
80
|
+
*/
|
|
81
|
+
export interface InsuredObjectTypesApiListInsuredObjectTypesRequest {
|
|
82
|
+
/**
|
|
83
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
86
|
+
*/
|
|
87
|
+
readonly authorization?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Page size
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
92
|
+
*/
|
|
93
|
+
readonly pageSize?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Page token
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
98
|
+
*/
|
|
99
|
+
readonly pageToken?: string;
|
|
100
|
+
/**
|
|
101
|
+
* List filter
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
104
|
+
*/
|
|
105
|
+
readonly filter?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Search query
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
110
|
+
*/
|
|
111
|
+
readonly search?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Ordering criteria
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
116
|
+
*/
|
|
117
|
+
readonly order?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Extra fields to fetch
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
122
|
+
*/
|
|
123
|
+
readonly expand?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* InsuredObjectTypesApi - object-oriented interface
|
|
127
|
+
* @export
|
|
128
|
+
* @class InsuredObjectTypesApi
|
|
129
|
+
* @extends {BaseAPI}
|
|
130
|
+
*/
|
|
131
|
+
export declare class InsuredObjectTypesApi extends BaseAPI {
|
|
132
|
+
/**
|
|
133
|
+
* Returns a list of insured obect types you have previously created. The insured obect types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
134
|
+
* @summary List insured obect types
|
|
135
|
+
* @param {InsuredObjectTypesApiListInsuredObjectTypesRequest} requestParameters Request parameters.
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
* @memberof InsuredObjectTypesApi
|
|
139
|
+
*/
|
|
140
|
+
listInsuredObjectTypes(requestParameters?: InsuredObjectTypesApiListInsuredObjectTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInsuredObjectTypesResponseClass, any>>;
|
|
141
|
+
}
|