@emilgroup/insurance-sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -115
- package/api/insured-object-types-api.ts +4 -0
- package/api/insured-objects-api.ts +4 -0
- package/api/leads-api.ts +4 -0
- package/api/policies-api.ts +4 -0
- package/api/products-api.ts +4 -0
- package/api.ts +4 -0
- package/common.ts +1 -0
- package/dist/api/insured-object-types-api.js +9 -2
- package/dist/api/insured-objects-api.js +11 -4
- package/dist/api/leads-api.js +9 -2
- package/dist/api/policies-api.js +12 -5
- package/dist/api/products-api.js +24 -17
- package/dist/base.js +4 -1
- package/dist/common.d.ts +1 -0
- package/dist/common.js +2 -1
- package/package.json +4 -2
- package/tsconfig.json +1 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @emilgroup/insurance-sdk@1.0.
|
|
1
|
+
## @emilgroup/insurance-sdk@1.0.1
|
|
2
2
|
|
|
3
3
|
This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -22,105 +22,26 @@ It can be used in both TypeScript and JavaScript. In TypeScript, the definition
|
|
|
22
22
|
navigate to the folder of your consuming project and run one of the following commands.
|
|
23
23
|
|
|
24
24
|
```
|
|
25
|
-
npm install @emilgroup/insurance-sdk@1.0.
|
|
25
|
+
npm install @emilgroup/insurance-sdk@1.0.1 --save
|
|
26
26
|
```
|
|
27
|
-
|
|
28
|
-
And then you can import `AccountsApi`.
|
|
29
|
-
|
|
30
|
-
```ts
|
|
31
|
-
import { InsuredObjectTypesApi } from '@emilgroup/insurance-sdk'
|
|
32
|
-
|
|
33
|
-
const insuredObjectTypes = new InsuredObjectTypesApi();
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `AccountsApi`:
|
|
37
|
-
|
|
38
|
-
```ts
|
|
39
|
-
async function listPoliciess(): Promise<Void> {
|
|
40
|
-
try {
|
|
41
|
-
const insuredObjectTypes = new InsuredObjectTypesApi();
|
|
42
|
-
|
|
43
|
-
await insuredObjectTypes.authorize('username', 'password');
|
|
44
|
-
|
|
45
|
-
const { data: { items } } = await insuredObjectTypes.listPoliciess();
|
|
46
|
-
|
|
47
|
-
console.log(items);
|
|
48
|
-
} catch(error) {
|
|
49
|
-
// process error
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
And then you can import `AccountsApi`.
|
|
55
|
-
|
|
56
|
-
```ts
|
|
57
|
-
import { InsuredObjectsApi } from '@emilgroup/insurance-sdk'
|
|
58
|
-
|
|
59
|
-
const insuredObjects = new InsuredObjectsApi();
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `AccountsApi`:
|
|
63
|
-
|
|
64
|
-
```ts
|
|
65
|
-
async function listPoliciess(): Promise<Void> {
|
|
66
|
-
try {
|
|
67
|
-
const insuredObjects = new InsuredObjectsApi();
|
|
68
|
-
|
|
69
|
-
await insuredObjects.authorize('username', 'password');
|
|
70
|
-
|
|
71
|
-
const { data: { items } } = await insuredObjects.listPoliciess();
|
|
72
|
-
|
|
73
|
-
console.log(items);
|
|
74
|
-
} catch(error) {
|
|
75
|
-
// process error
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
And then you can import `AccountsApi`.
|
|
81
|
-
|
|
82
|
-
```ts
|
|
83
|
-
import { LeadsApi } from '@emilgroup/insurance-sdk'
|
|
84
|
-
|
|
85
|
-
const leads = new LeadsApi();
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `AccountsApi`:
|
|
89
|
-
|
|
90
|
-
```ts
|
|
91
|
-
async function listPoliciess(): Promise<Void> {
|
|
92
|
-
try {
|
|
93
|
-
const leads = new LeadsApi();
|
|
94
|
-
|
|
95
|
-
await leads.authorize('username', 'password');
|
|
96
|
-
|
|
97
|
-
const { data: { items } } = await leads.listPoliciess();
|
|
98
|
-
|
|
99
|
-
console.log(items);
|
|
100
|
-
} catch(error) {
|
|
101
|
-
// process error
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
And then you can import `AccountsApi`.
|
|
27
|
+
And then you can import `PoliciesApi`.
|
|
107
28
|
|
|
108
29
|
```ts
|
|
109
30
|
import { PoliciesApi } from '@emilgroup/insurance-sdk'
|
|
110
31
|
|
|
111
|
-
const
|
|
32
|
+
const policiesApi = new PoliciesApi();
|
|
112
33
|
```
|
|
113
34
|
|
|
114
|
-
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `
|
|
35
|
+
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `PoliciesApi`:
|
|
115
36
|
|
|
116
37
|
```ts
|
|
117
|
-
async function
|
|
38
|
+
async function listPolicies(): Promise<Void> {
|
|
118
39
|
try {
|
|
119
|
-
const
|
|
40
|
+
const policiesApi = new PoliciesApi();
|
|
120
41
|
|
|
121
|
-
await
|
|
42
|
+
await policiesApi.authorize('username', 'password');
|
|
122
43
|
|
|
123
|
-
const { data: { items } } = await
|
|
44
|
+
const { data: { items } } = await policiesApi.listPolicies();
|
|
124
45
|
|
|
125
46
|
console.log(items);
|
|
126
47
|
} catch(error) {
|
|
@@ -128,30 +49,3 @@ async function listPoliciess(): Promise<Void> {
|
|
|
128
49
|
}
|
|
129
50
|
}
|
|
130
51
|
```
|
|
131
|
-
|
|
132
|
-
And then you can import `AccountsApi`.
|
|
133
|
-
|
|
134
|
-
```ts
|
|
135
|
-
import { ProductsApi } from '@emilgroup/insurance-sdk'
|
|
136
|
-
|
|
137
|
-
const products = new ProductsApi();
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `AccountsApi`:
|
|
141
|
-
|
|
142
|
-
```ts
|
|
143
|
-
async function listPoliciess(): Promise<Void> {
|
|
144
|
-
try {
|
|
145
|
-
const products = new ProductsApi();
|
|
146
|
-
|
|
147
|
-
await products.authorize('username', 'password');
|
|
148
|
-
|
|
149
|
-
const { data: { items } } = await products.listPoliciess();
|
|
150
|
-
|
|
151
|
-
console.log(items);
|
|
152
|
-
} catch(error) {
|
|
153
|
-
// process error
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
```
|
|
157
|
-
|
|
@@ -22,6 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { ListInsuredObjectTypesResponseClass } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
25
29
|
/**
|
|
26
30
|
* InsuredObjectTypesApi - axios parameter creator
|
|
27
31
|
* @export
|
|
@@ -28,6 +28,10 @@ import { CreateInsuredObjectResponseClass } from '../models';
|
|
|
28
28
|
import { GetInsuredObjectResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListInsuredObjectsResponseClass } from '../models';
|
|
31
|
+
// URLSearchParams not necessarily used
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { URL, URLSearchParams } from 'url';
|
|
34
|
+
const FormData = require('form-data');
|
|
31
35
|
/**
|
|
32
36
|
* InsuredObjectsApi - axios parameter creator
|
|
33
37
|
* @export
|
package/api/leads-api.ts
CHANGED
|
@@ -22,6 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { SharedCreateLeadRequestDto } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
25
29
|
/**
|
|
26
30
|
* LeadsApi - axios parameter creator
|
|
27
31
|
* @export
|
package/api/policies-api.ts
CHANGED
|
@@ -32,6 +32,10 @@ import { ListPoliciesResponseClass } from '../models';
|
|
|
32
32
|
import { UpdatePolicyRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { UpdatePolicyResponseClass } from '../models';
|
|
35
|
+
// URLSearchParams not necessarily used
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import { URL, URLSearchParams } from 'url';
|
|
38
|
+
const FormData = require('form-data');
|
|
35
39
|
/**
|
|
36
40
|
* PoliciesApi - axios parameter creator
|
|
37
41
|
* @export
|
package/api/products-api.ts
CHANGED
|
@@ -58,6 +58,10 @@ import { ListProductFieldsResponseClass } from '../models';
|
|
|
58
58
|
import { ListProductsResponseClass } from '../models';
|
|
59
59
|
// @ts-ignore
|
|
60
60
|
import { StoreProductFactorsResponseClass } from '../models';
|
|
61
|
+
// URLSearchParams not necessarily used
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
import { URL, URLSearchParams } from 'url';
|
|
64
|
+
const FormData = require('form-data');
|
|
61
65
|
/**
|
|
62
66
|
* ProductsApi - axios parameter creator
|
|
63
67
|
* @export
|
package/api.ts
CHANGED
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
import { Configuration } from './configuration';
|
|
17
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'
|
|
18
22
|
// Some imports not used depending on template conditions
|
|
19
23
|
// @ts-ignore
|
|
20
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
package/common.ts
CHANGED
|
@@ -74,14 +74,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
77
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
81
|
exports.InsuredObjectTypesApi = exports.InsuredObjectTypesApiFactory = exports.InsuredObjectTypesApiFp = exports.InsuredObjectTypesApiAxiosParamCreator = void 0;
|
|
79
|
-
var axios_1 = require("axios");
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
80
83
|
// Some imports not used depending on template conditions
|
|
81
84
|
// @ts-ignore
|
|
82
85
|
var common_1 = require("../common");
|
|
83
86
|
// @ts-ignore
|
|
84
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
85
92
|
/**
|
|
86
93
|
* InsuredObjectTypesApi - axios parameter creator
|
|
87
94
|
* @export
|
|
@@ -110,7 +117,7 @@ var InsuredObjectTypesApiAxiosParamCreator = function (configuration) {
|
|
|
110
117
|
switch (_a.label) {
|
|
111
118
|
case 0:
|
|
112
119
|
localVarPath = "/insuranceservice/v1/insured-object-types";
|
|
113
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
121
|
if (configuration) {
|
|
115
122
|
baseOptions = configuration.baseOptions;
|
|
116
123
|
baseAccessToken = configuration.accessToken;
|
|
@@ -74,14 +74,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
77
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
81
|
exports.InsuredObjectsApi = exports.InsuredObjectsApiFactory = exports.InsuredObjectsApiFp = exports.InsuredObjectsApiAxiosParamCreator = void 0;
|
|
79
|
-
var axios_1 = require("axios");
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
80
83
|
// Some imports not used depending on template conditions
|
|
81
84
|
// @ts-ignore
|
|
82
85
|
var common_1 = require("../common");
|
|
83
86
|
// @ts-ignore
|
|
84
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
85
92
|
/**
|
|
86
93
|
* InsuredObjectsApi - axios parameter creator
|
|
87
94
|
* @export
|
|
@@ -107,7 +114,7 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
|
|
|
107
114
|
// verify required parameter 'createInsuredObjectRequestDto' is not null or undefined
|
|
108
115
|
(0, common_1.assertParamExists)('createInsuredObject', 'createInsuredObjectRequestDto', createInsuredObjectRequestDto);
|
|
109
116
|
localVarPath = "/insuranceservice/v1/insured-objects";
|
|
110
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
118
|
if (configuration) {
|
|
112
119
|
baseOptions = configuration.baseOptions;
|
|
113
120
|
baseAccessToken = configuration.accessToken;
|
|
@@ -157,7 +164,7 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
|
|
|
157
164
|
(0, common_1.assertParamExists)('getInsuredObject', 'id', id);
|
|
158
165
|
localVarPath = "/insuranceservice/v1/insured-objects/{id}"
|
|
159
166
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
160
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
161
168
|
if (configuration) {
|
|
162
169
|
baseOptions = configuration.baseOptions;
|
|
163
170
|
baseAccessToken = configuration.accessToken;
|
|
@@ -207,7 +214,7 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
|
|
|
207
214
|
switch (_a.label) {
|
|
208
215
|
case 0:
|
|
209
216
|
localVarPath = "/insuranceservice/v1/insured-objects";
|
|
210
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
211
218
|
if (configuration) {
|
|
212
219
|
baseOptions = configuration.baseOptions;
|
|
213
220
|
baseAccessToken = configuration.accessToken;
|
package/dist/api/leads-api.js
CHANGED
|
@@ -74,14 +74,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
77
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
81
|
exports.LeadsApi = exports.LeadsApiFactory = exports.LeadsApiFp = exports.LeadsApiAxiosParamCreator = void 0;
|
|
79
|
-
var axios_1 = require("axios");
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
80
83
|
// Some imports not used depending on template conditions
|
|
81
84
|
// @ts-ignore
|
|
82
85
|
var common_1 = require("../common");
|
|
83
86
|
// @ts-ignore
|
|
84
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
85
92
|
/**
|
|
86
93
|
* LeadsApi - axios parameter creator
|
|
87
94
|
* @export
|
|
@@ -107,7 +114,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
107
114
|
// verify required parameter 'sharedCreateLeadRequestDto' is not null or undefined
|
|
108
115
|
(0, common_1.assertParamExists)('createLead', 'sharedCreateLeadRequestDto', sharedCreateLeadRequestDto);
|
|
109
116
|
localVarPath = "/insuranceservice/v1/leads";
|
|
110
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
118
|
if (configuration) {
|
|
112
119
|
baseOptions = configuration.baseOptions;
|
|
113
120
|
baseAccessToken = configuration.accessToken;
|
package/dist/api/policies-api.js
CHANGED
|
@@ -74,14 +74,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
77
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
81
|
exports.PoliciesApi = exports.PoliciesApiFactory = exports.PoliciesApiFp = exports.PoliciesApiAxiosParamCreator = void 0;
|
|
79
|
-
var axios_1 = require("axios");
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
80
83
|
// Some imports not used depending on template conditions
|
|
81
84
|
// @ts-ignore
|
|
82
85
|
var common_1 = require("../common");
|
|
83
86
|
// @ts-ignore
|
|
84
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
85
92
|
/**
|
|
86
93
|
* PoliciesApi - axios parameter creator
|
|
87
94
|
* @export
|
|
@@ -107,7 +114,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
107
114
|
// verify required parameter 'createPolicyRequestDto' is not null or undefined
|
|
108
115
|
(0, common_1.assertParamExists)('createPolicy', 'createPolicyRequestDto', createPolicyRequestDto);
|
|
109
116
|
localVarPath = "/insuranceservice/v1/policies";
|
|
110
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
118
|
if (configuration) {
|
|
112
119
|
baseOptions = configuration.baseOptions;
|
|
113
120
|
baseAccessToken = configuration.accessToken;
|
|
@@ -158,7 +165,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
158
165
|
(0, common_1.assertParamExists)('getPolicy', 'code', code);
|
|
159
166
|
localVarPath = "/insuranceservice/v1/policies/{code}"
|
|
160
167
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
161
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
162
169
|
if (configuration) {
|
|
163
170
|
baseOptions = configuration.baseOptions;
|
|
164
171
|
baseAccessToken = configuration.accessToken;
|
|
@@ -211,7 +218,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
211
218
|
switch (_a.label) {
|
|
212
219
|
case 0:
|
|
213
220
|
localVarPath = "/insuranceservice/v1/policies";
|
|
214
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
221
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
222
|
if (configuration) {
|
|
216
223
|
baseOptions = configuration.baseOptions;
|
|
217
224
|
baseAccessToken = configuration.accessToken;
|
|
@@ -280,7 +287,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
280
287
|
(0, common_1.assertParamExists)('updatePolicy', 'updatePolicyRequestDto', updatePolicyRequestDto);
|
|
281
288
|
localVarPath = "/insuranceservice/v1/policies/{code}"
|
|
282
289
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
283
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
290
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
284
291
|
if (configuration) {
|
|
285
292
|
baseOptions = configuration.baseOptions;
|
|
286
293
|
baseAccessToken = configuration.accessToken;
|
package/dist/api/products-api.js
CHANGED
|
@@ -74,14 +74,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
77
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
81
|
exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = void 0;
|
|
79
|
-
var axios_1 = require("axios");
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
80
83
|
// Some imports not used depending on template conditions
|
|
81
84
|
// @ts-ignore
|
|
82
85
|
var common_1 = require("../common");
|
|
83
86
|
// @ts-ignore
|
|
84
87
|
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
85
92
|
/**
|
|
86
93
|
* ProductsApi - axios parameter creator
|
|
87
94
|
* @export
|
|
@@ -107,7 +114,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
107
114
|
// verify required parameter 'createPremiumFormulaRequestDto' is not null or undefined
|
|
108
115
|
(0, common_1.assertParamExists)('createPremiumFormula', 'createPremiumFormulaRequestDto', createPremiumFormulaRequestDto);
|
|
109
116
|
localVarPath = "/insuranceservice/v1/premium-formulas";
|
|
110
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
118
|
if (configuration) {
|
|
112
119
|
baseOptions = configuration.baseOptions;
|
|
113
120
|
baseAccessToken = configuration.accessToken;
|
|
@@ -156,7 +163,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
156
163
|
// verify required parameter 'createProductRequestDto' is not null or undefined
|
|
157
164
|
(0, common_1.assertParamExists)('createProduct', 'createProductRequestDto', createProductRequestDto);
|
|
158
165
|
localVarPath = "/insuranceservice/v1/products";
|
|
159
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
166
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
160
167
|
if (configuration) {
|
|
161
168
|
baseOptions = configuration.baseOptions;
|
|
162
169
|
baseAccessToken = configuration.accessToken;
|
|
@@ -205,7 +212,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
205
212
|
// verify required parameter 'createProductFieldRequestDto' is not null or undefined
|
|
206
213
|
(0, common_1.assertParamExists)('createProductField', 'createProductFieldRequestDto', createProductFieldRequestDto);
|
|
207
214
|
localVarPath = "/insuranceservice/v1/product-fields";
|
|
208
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
209
216
|
if (configuration) {
|
|
210
217
|
baseOptions = configuration.baseOptions;
|
|
211
218
|
baseAccessToken = configuration.accessToken;
|
|
@@ -258,7 +265,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
258
265
|
(0, common_1.assertParamExists)('getPremiumFormula', 'id2', id2);
|
|
259
266
|
localVarPath = "/insuranceservice/v1/premium-formulas/{id}"
|
|
260
267
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
261
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
268
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
262
269
|
if (configuration) {
|
|
263
270
|
baseOptions = configuration.baseOptions;
|
|
264
271
|
baseAccessToken = configuration.accessToken;
|
|
@@ -310,7 +317,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
310
317
|
(0, common_1.assertParamExists)('getProductByCode', 'code', code);
|
|
311
318
|
localVarPath = "/insuranceservice/v1/products/code/{code}"
|
|
312
319
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
313
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
320
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
314
321
|
if (configuration) {
|
|
315
322
|
baseOptions = configuration.baseOptions;
|
|
316
323
|
baseAccessToken = configuration.accessToken;
|
|
@@ -365,7 +372,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
365
372
|
(0, common_1.assertParamExists)('getProductFactor', 'id2', id2);
|
|
366
373
|
localVarPath = "/insuranceservice/v1/product-factors/{id}"
|
|
367
374
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
368
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
369
376
|
if (configuration) {
|
|
370
377
|
baseOptions = configuration.baseOptions;
|
|
371
378
|
baseAccessToken = configuration.accessToken;
|
|
@@ -421,7 +428,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
421
428
|
// verify required parameter 'label' is not null or undefined
|
|
422
429
|
(0, common_1.assertParamExists)('getProductFactorValue', 'label', label);
|
|
423
430
|
localVarPath = "/insuranceservice/v1/product-factors/values";
|
|
424
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
431
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
425
432
|
if (configuration) {
|
|
426
433
|
baseOptions = configuration.baseOptions;
|
|
427
434
|
baseAccessToken = configuration.accessToken;
|
|
@@ -475,7 +482,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
475
482
|
(0, common_1.assertParamExists)('getProductField', 'id', id);
|
|
476
483
|
localVarPath = "/insuranceservice/v1/product-fields/{id}"
|
|
477
484
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
478
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
485
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
479
486
|
if (configuration) {
|
|
480
487
|
baseOptions = configuration.baseOptions;
|
|
481
488
|
baseAccessToken = configuration.accessToken;
|
|
@@ -526,7 +533,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
526
533
|
(0, common_1.assertParamExists)('getProductVersion', 'id2', id2);
|
|
527
534
|
localVarPath = "/insuranceservice/v1/product-versions/{id}"
|
|
528
535
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
529
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
536
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
530
537
|
if (configuration) {
|
|
531
538
|
baseOptions = configuration.baseOptions;
|
|
532
539
|
baseAccessToken = configuration.accessToken;
|
|
@@ -579,7 +586,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
579
586
|
switch (_a.label) {
|
|
580
587
|
case 0:
|
|
581
588
|
localVarPath = "/insuranceservice/v1/premium-formulas";
|
|
582
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
589
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
583
590
|
if (configuration) {
|
|
584
591
|
baseOptions = configuration.baseOptions;
|
|
585
592
|
baseAccessToken = configuration.accessToken;
|
|
@@ -647,7 +654,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
647
654
|
switch (_a.label) {
|
|
648
655
|
case 0:
|
|
649
656
|
localVarPath = "/insuranceservice/v1/product-factors";
|
|
650
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
657
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
651
658
|
if (configuration) {
|
|
652
659
|
baseOptions = configuration.baseOptions;
|
|
653
660
|
baseAccessToken = configuration.accessToken;
|
|
@@ -715,7 +722,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
715
722
|
switch (_a.label) {
|
|
716
723
|
case 0:
|
|
717
724
|
localVarPath = "/insuranceservice/v1/product-fields/types";
|
|
718
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
725
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
719
726
|
if (configuration) {
|
|
720
727
|
baseOptions = configuration.baseOptions;
|
|
721
728
|
baseAccessToken = configuration.accessToken;
|
|
@@ -783,7 +790,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
783
790
|
switch (_a.label) {
|
|
784
791
|
case 0:
|
|
785
792
|
localVarPath = "/insuranceservice/v1/product-fields";
|
|
786
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
793
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
787
794
|
if (configuration) {
|
|
788
795
|
baseOptions = configuration.baseOptions;
|
|
789
796
|
baseAccessToken = configuration.accessToken;
|
|
@@ -851,7 +858,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
851
858
|
switch (_a.label) {
|
|
852
859
|
case 0:
|
|
853
860
|
localVarPath = "/insuranceservice/v1/products";
|
|
854
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
861
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
855
862
|
if (configuration) {
|
|
856
863
|
baseOptions = configuration.baseOptions;
|
|
857
864
|
baseAccessToken = configuration.accessToken;
|
|
@@ -915,7 +922,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
915
922
|
switch (_a.label) {
|
|
916
923
|
case 0:
|
|
917
924
|
localVarPath = "/insuranceservice/v1/product-factors";
|
|
918
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
925
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
919
926
|
if (configuration) {
|
|
920
927
|
baseOptions = configuration.baseOptions;
|
|
921
928
|
baseAccessToken = configuration.accessToken;
|
|
@@ -968,7 +975,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
968
975
|
switch (_a.label) {
|
|
969
976
|
case 0:
|
|
970
977
|
localVarPath = "/insuranceservice/v1/product-factors/validate";
|
|
971
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
978
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
972
979
|
if (configuration) {
|
|
973
980
|
baseOptions = configuration.baseOptions;
|
|
974
981
|
baseAccessToken = configuration.accessToken;
|
package/dist/base.js
CHANGED
|
@@ -74,12 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
77
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
81
|
exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
79
82
|
var configuration_1 = require("./configuration");
|
|
80
83
|
// Some imports not used depending on template conditions
|
|
81
84
|
// @ts-ignore
|
|
82
|
-
var axios_1 = require("axios");
|
|
85
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
86
|
exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
84
87
|
/**
|
|
85
88
|
*
|
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
|
@@ -62,6 +62,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
62
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
63
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
64
|
var base_1 = require("./base");
|
|
65
|
+
var url_1 = require("url");
|
|
65
66
|
/**
|
|
66
67
|
*
|
|
67
68
|
* @export
|
|
@@ -187,7 +188,7 @@ var setSearchParams = function (url) {
|
|
|
187
188
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
188
189
|
objects[_i - 1] = arguments[_i];
|
|
189
190
|
}
|
|
190
|
-
var searchParams = new URLSearchParams(url.search);
|
|
191
|
+
var searchParams = new url_1.URLSearchParams(url.search);
|
|
191
192
|
for (var _a = 0, objects_1 = objects; _a < objects_1.length; _a++) {
|
|
192
193
|
var object = objects_1[_a];
|
|
193
194
|
for (var key in object) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/insurance-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/insurance-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^0.26.1"
|
|
21
|
+
"axios": "^0.26.1",
|
|
22
|
+
"form-data": "^4.0.0",
|
|
23
|
+
"url": "^0.11.0"
|
|
22
24
|
},
|
|
23
25
|
"devDependencies": {
|
|
24
26
|
"@types/node": "^12.11.5",
|