@emilgroup/insurance-sdk-node 1.9.0 → 1.10.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/.openapi-generator/FILES +10 -0
- package/README.md +2 -2
- package/api/lead-statuses-api.ts +479 -0
- package/api/product-versions-api.ts +34 -6
- package/api.ts +2 -0
- package/base.ts +3 -3
- package/dist/api/lead-statuses-api.d.ts +265 -0
- package/dist/api/lead-statuses-api.js +505 -0
- package/dist/api/product-versions-api.d.ts +21 -3
- package/dist/api/product-versions-api.js +18 -6
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -1
- package/dist/base.js +3 -3
- package/dist/models/create-lead-request-dto.d.ts +2 -9
- package/dist/models/create-lead-request-dto.js +0 -7
- package/dist/models/create-lead-status-request-dto.d.ts +30 -0
- package/dist/models/create-lead-status-request-dto.js +15 -0
- package/dist/models/create-lead-status-response-class.d.ts +25 -0
- package/dist/models/create-lead-status-response-class.js +15 -0
- package/dist/models/create-premium-formula-request-dto.d.ts +1 -0
- package/dist/models/create-premium-formula-request-dto.js +1 -0
- package/dist/models/currency-class.d.ts +48 -0
- package/dist/models/currency-class.js +15 -0
- package/dist/models/get-lead-status-response-class.d.ts +25 -0
- package/dist/models/get-lead-status-response-class.js +15 -0
- package/dist/models/get-product-version-request-dto.d.ts +12 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/invoice-class.d.ts +135 -0
- package/dist/models/invoice-class.js +15 -0
- package/dist/models/invoice-item-class.d.ts +117 -0
- package/dist/models/invoice-item-class.js +24 -0
- package/dist/models/invoice-status-class.d.ts +47 -0
- package/dist/models/invoice-status-class.js +20 -0
- package/dist/models/lead-class.d.ts +8 -8
- package/dist/models/lead-class.js +0 -7
- package/dist/models/lead-status-class.d.ts +36 -0
- package/dist/models/lead-status-class.js +15 -0
- package/dist/models/list-lead-statuses-response-class.d.ts +31 -0
- package/dist/models/list-lead-statuses-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +12 -0
- package/dist/models/policy-object-class.d.ts +12 -0
- package/dist/models/premium-override-dto.d.ts +1 -0
- package/dist/models/premium-override-dto.js +1 -0
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +1 -0
- package/dist/models/shared-update-premium-formula-request-dto.js +1 -0
- package/dist/models/store-product-factors-request-dto.d.ts +1 -1
- package/dist/models/timeslice-class.d.ts +2 -2
- package/dist/models/update-lead-request-dto.d.ts +7 -14
- package/dist/models/update-lead-request-dto.js +0 -7
- package/dist/models/update-premium-formula-request-dto.d.ts +1 -0
- package/dist/models/update-premium-formula-request-dto.js +1 -0
- package/models/create-lead-request-dto.ts +2 -12
- package/models/create-lead-status-request-dto.ts +36 -0
- package/models/create-lead-status-response-class.ts +31 -0
- package/models/create-premium-formula-request-dto.ts +1 -0
- package/models/currency-class.ts +54 -0
- package/models/get-lead-status-response-class.ts +31 -0
- package/models/get-product-version-request-dto.ts +12 -0
- package/models/index.ts +9 -0
- package/models/invoice-class.ts +141 -0
- package/models/invoice-item-class.ts +126 -0
- package/models/invoice-status-class.ts +56 -0
- package/models/lead-class.ts +8 -11
- package/models/lead-status-class.ts +42 -0
- package/models/list-lead-statuses-response-class.ts +37 -0
- package/models/policy-class.ts +12 -0
- package/models/policy-object-class.ts +12 -0
- package/models/premium-override-dto.ts +1 -0
- package/models/shared-update-premium-formula-request-dto.ts +1 -0
- package/models/store-product-factors-request-dto.ts +1 -1
- package/models/timeslice-class.ts +2 -2
- package/models/update-lead-request-dto.ts +7 -17
- package/models/update-premium-formula-request-dto.ts +1 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -5,6 +5,7 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/insured-object-types-api.ts
|
|
7
7
|
api/insured-objects-api.ts
|
|
8
|
+
api/lead-statuses-api.ts
|
|
8
9
|
api/leads-api.ts
|
|
9
10
|
api/policies-api.ts
|
|
10
11
|
api/premium-formulas-api.ts
|
|
@@ -28,6 +29,8 @@ models/create-insured-object-request-dto.ts
|
|
|
28
29
|
models/create-insured-object-response-class.ts
|
|
29
30
|
models/create-lead-request-dto.ts
|
|
30
31
|
models/create-lead-response-class.ts
|
|
32
|
+
models/create-lead-status-request-dto.ts
|
|
33
|
+
models/create-lead-status-response-class.ts
|
|
31
34
|
models/create-policy-request-dto.ts
|
|
32
35
|
models/create-policy-response-class.ts
|
|
33
36
|
models/create-premium-formula-request-dto.ts
|
|
@@ -37,10 +40,12 @@ models/create-product-field-response-class.ts
|
|
|
37
40
|
models/create-product-request-dto.ts
|
|
38
41
|
models/create-product-response-class.ts
|
|
39
42
|
models/csv-product-factor-dto.ts
|
|
43
|
+
models/currency-class.ts
|
|
40
44
|
models/delete-request-dto.ts
|
|
41
45
|
models/delete-response-class.ts
|
|
42
46
|
models/get-insured-object-response-class.ts
|
|
43
47
|
models/get-lead-response-class.ts
|
|
48
|
+
models/get-lead-status-response-class.ts
|
|
44
49
|
models/get-policy-data-by-date-request-dto.ts
|
|
45
50
|
models/get-policy-request-dto.ts
|
|
46
51
|
models/get-policy-response-class.ts
|
|
@@ -63,10 +68,15 @@ models/grouped-product-factors-response-class.ts
|
|
|
63
68
|
models/index.ts
|
|
64
69
|
models/insured-object-class.ts
|
|
65
70
|
models/insured-object-type-class.ts
|
|
71
|
+
models/invoice-class.ts
|
|
72
|
+
models/invoice-item-class.ts
|
|
73
|
+
models/invoice-status-class.ts
|
|
66
74
|
models/lead-bank-account-class.ts
|
|
67
75
|
models/lead-class.ts
|
|
76
|
+
models/lead-status-class.ts
|
|
68
77
|
models/list-insured-object-types-response-class.ts
|
|
69
78
|
models/list-insured-objects-response-class.ts
|
|
79
|
+
models/list-lead-statuses-response-class.ts
|
|
70
80
|
models/list-leads-response-class.ts
|
|
71
81
|
models/list-policies-response-class.ts
|
|
72
82
|
models/list-premium-formulas-response-class.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.10.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.10.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateLeadStatusRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateLeadStatusResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { GetLeadStatusResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListLeadStatusesResponseClass } from '../models';
|
|
33
|
+
// URLSearchParams not necessarily used
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import { URL, URLSearchParams } from 'url';
|
|
36
|
+
const FormData = require('form-data');
|
|
37
|
+
/**
|
|
38
|
+
* LeadStatusesApi - axios parameter creator
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export const LeadStatusesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
|
+
return {
|
|
43
|
+
/**
|
|
44
|
+
* This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
|
|
45
|
+
* @summary Create the lead status
|
|
46
|
+
* @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
|
|
47
|
+
* @param {string} [authorization] Bearer Token
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
createLeadStatus: async (createLeadStatusRequestDto: CreateLeadStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
52
|
+
// verify required parameter 'createLeadStatusRequestDto' is not null or undefined
|
|
53
|
+
assertParamExists('createLeadStatus', 'createLeadStatusRequestDto', createLeadStatusRequestDto)
|
|
54
|
+
const localVarPath = `/insuranceservice/v1/lead-statuses`;
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
let baseAccessToken;
|
|
59
|
+
if (configuration) {
|
|
60
|
+
baseOptions = configuration.baseOptions;
|
|
61
|
+
baseAccessToken = configuration.accessToken;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
65
|
+
const localVarHeaderParameter = {} as any;
|
|
66
|
+
const localVarQueryParameter = {} as any;
|
|
67
|
+
|
|
68
|
+
// authentication bearer required
|
|
69
|
+
// http bearer authentication required
|
|
70
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
|
+
|
|
72
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
79
|
+
|
|
80
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
81
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
83
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createLeadStatusRequestDto, localVarRequestOptions, configuration)
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
url: toPathString(localVarUrlObj),
|
|
87
|
+
options: localVarRequestOptions,
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
|
|
92
|
+
* @summary Delete the lead status
|
|
93
|
+
* @param {number} id
|
|
94
|
+
* @param {string} [authorization] Bearer Token
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
deleteLeadStatus: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
// verify required parameter 'id' is not null or undefined
|
|
100
|
+
assertParamExists('deleteLeadStatus', 'id', id)
|
|
101
|
+
const localVarPath = `/insuranceservice/v1/lead-statuses/{id}`
|
|
102
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105
|
+
let baseOptions;
|
|
106
|
+
let baseAccessToken;
|
|
107
|
+
if (configuration) {
|
|
108
|
+
baseOptions = configuration.baseOptions;
|
|
109
|
+
baseAccessToken = configuration.accessToken;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
113
|
+
const localVarHeaderParameter = {} as any;
|
|
114
|
+
const localVarQueryParameter = {} as any;
|
|
115
|
+
|
|
116
|
+
// authentication bearer required
|
|
117
|
+
// http bearer authentication required
|
|
118
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
|
+
|
|
120
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
121
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
url: toPathString(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
* Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
|
|
137
|
+
* @summary Retrieve the lead status
|
|
138
|
+
* @param {number} id
|
|
139
|
+
* @param {string} [authorization] Bearer Token
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
getLeadStatus: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
|
+
// verify required parameter 'id' is not null or undefined
|
|
145
|
+
assertParamExists('getLeadStatus', 'id', id)
|
|
146
|
+
const localVarPath = `/insuranceservice/v1/lead-statuses/{id}`
|
|
147
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
|
+
let baseOptions;
|
|
151
|
+
let baseAccessToken;
|
|
152
|
+
if (configuration) {
|
|
153
|
+
baseOptions = configuration.baseOptions;
|
|
154
|
+
baseAccessToken = configuration.accessToken;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
158
|
+
const localVarHeaderParameter = {} as any;
|
|
159
|
+
const localVarQueryParameter = {} as any;
|
|
160
|
+
|
|
161
|
+
// authentication bearer required
|
|
162
|
+
// http bearer authentication required
|
|
163
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
164
|
+
|
|
165
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
166
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
url: toPathString(localVarUrlObj),
|
|
177
|
+
options: localVarRequestOptions,
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
* Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
182
|
+
* @summary List lead statuses
|
|
183
|
+
* @param {string} [authorization] Bearer Token
|
|
184
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
listLeadStatuses: async (authorization?: string, filter?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
189
|
+
const localVarPath = `/insuranceservice/v1/lead-statuses`;
|
|
190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
192
|
+
let baseOptions;
|
|
193
|
+
let baseAccessToken;
|
|
194
|
+
if (configuration) {
|
|
195
|
+
baseOptions = configuration.baseOptions;
|
|
196
|
+
baseAccessToken = configuration.accessToken;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
200
|
+
const localVarHeaderParameter = {} as any;
|
|
201
|
+
const localVarQueryParameter = {} as any;
|
|
202
|
+
|
|
203
|
+
// authentication bearer required
|
|
204
|
+
// http bearer authentication required
|
|
205
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
206
|
+
|
|
207
|
+
if (filter !== undefined) {
|
|
208
|
+
localVarQueryParameter['filter'] = filter;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
212
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
219
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
220
|
+
|
|
221
|
+
return {
|
|
222
|
+
url: toPathString(localVarUrlObj),
|
|
223
|
+
options: localVarRequestOptions,
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* LeadStatusesApi - functional programming interface
|
|
231
|
+
* @export
|
|
232
|
+
*/
|
|
233
|
+
export const LeadStatusesApiFp = function(configuration?: Configuration) {
|
|
234
|
+
const localVarAxiosParamCreator = LeadStatusesApiAxiosParamCreator(configuration)
|
|
235
|
+
return {
|
|
236
|
+
/**
|
|
237
|
+
* This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
|
|
238
|
+
* @summary Create the lead status
|
|
239
|
+
* @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
|
|
240
|
+
* @param {string} [authorization] Bearer Token
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
async createLeadStatus(createLeadStatusRequestDto: CreateLeadStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadStatusResponseClass>> {
|
|
245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadStatus(createLeadStatusRequestDto, authorization, options);
|
|
246
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
247
|
+
},
|
|
248
|
+
/**
|
|
249
|
+
* Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
|
|
250
|
+
* @summary Delete the lead status
|
|
251
|
+
* @param {number} id
|
|
252
|
+
* @param {string} [authorization] Bearer Token
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
*/
|
|
256
|
+
async deleteLeadStatus(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLeadStatus(id, authorization, options);
|
|
258
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
|
|
262
|
+
* @summary Retrieve the lead status
|
|
263
|
+
* @param {number} id
|
|
264
|
+
* @param {string} [authorization] Bearer Token
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
async getLeadStatus(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadStatusResponseClass>> {
|
|
269
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLeadStatus(id, authorization, options);
|
|
270
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
* Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
274
|
+
* @summary List lead statuses
|
|
275
|
+
* @param {string} [authorization] Bearer Token
|
|
276
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
async listLeadStatuses(authorization?: string, filter?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadStatusesResponseClass>> {
|
|
281
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLeadStatuses(authorization, filter, options);
|
|
282
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
|
+
},
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* LeadStatusesApi - factory interface
|
|
289
|
+
* @export
|
|
290
|
+
*/
|
|
291
|
+
export const LeadStatusesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
292
|
+
const localVarFp = LeadStatusesApiFp(configuration)
|
|
293
|
+
return {
|
|
294
|
+
/**
|
|
295
|
+
* This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
|
|
296
|
+
* @summary Create the lead status
|
|
297
|
+
* @param {CreateLeadStatusRequestDto} createLeadStatusRequestDto
|
|
298
|
+
* @param {string} [authorization] Bearer Token
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
createLeadStatus(createLeadStatusRequestDto: CreateLeadStatusRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadStatusResponseClass> {
|
|
303
|
+
return localVarFp.createLeadStatus(createLeadStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
304
|
+
},
|
|
305
|
+
/**
|
|
306
|
+
* Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
|
|
307
|
+
* @summary Delete the lead status
|
|
308
|
+
* @param {number} id
|
|
309
|
+
* @param {string} [authorization] Bearer Token
|
|
310
|
+
* @param {*} [options] Override http request option.
|
|
311
|
+
* @throws {RequiredError}
|
|
312
|
+
*/
|
|
313
|
+
deleteLeadStatus(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
314
|
+
return localVarFp.deleteLeadStatus(id, authorization, options).then((request) => request(axios, basePath));
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
|
|
318
|
+
* @summary Retrieve the lead status
|
|
319
|
+
* @param {number} id
|
|
320
|
+
* @param {string} [authorization] Bearer Token
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
getLeadStatus(id: number, authorization?: string, options?: any): AxiosPromise<GetLeadStatusResponseClass> {
|
|
325
|
+
return localVarFp.getLeadStatus(id, authorization, options).then((request) => request(axios, basePath));
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
* Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
329
|
+
* @summary List lead statuses
|
|
330
|
+
* @param {string} [authorization] Bearer Token
|
|
331
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @throws {RequiredError}
|
|
334
|
+
*/
|
|
335
|
+
listLeadStatuses(authorization?: string, filter?: string, options?: any): AxiosPromise<ListLeadStatusesResponseClass> {
|
|
336
|
+
return localVarFp.listLeadStatuses(authorization, filter, options).then((request) => request(axios, basePath));
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Request parameters for createLeadStatus operation in LeadStatusesApi.
|
|
343
|
+
* @export
|
|
344
|
+
* @interface LeadStatusesApiCreateLeadStatusRequest
|
|
345
|
+
*/
|
|
346
|
+
export interface LeadStatusesApiCreateLeadStatusRequest {
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @type {CreateLeadStatusRequestDto}
|
|
350
|
+
* @memberof LeadStatusesApiCreateLeadStatus
|
|
351
|
+
*/
|
|
352
|
+
readonly createLeadStatusRequestDto: CreateLeadStatusRequestDto
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Bearer Token
|
|
356
|
+
* @type {string}
|
|
357
|
+
* @memberof LeadStatusesApiCreateLeadStatus
|
|
358
|
+
*/
|
|
359
|
+
readonly authorization?: string
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Request parameters for deleteLeadStatus operation in LeadStatusesApi.
|
|
364
|
+
* @export
|
|
365
|
+
* @interface LeadStatusesApiDeleteLeadStatusRequest
|
|
366
|
+
*/
|
|
367
|
+
export interface LeadStatusesApiDeleteLeadStatusRequest {
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @type {number}
|
|
371
|
+
* @memberof LeadStatusesApiDeleteLeadStatus
|
|
372
|
+
*/
|
|
373
|
+
readonly id: number
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Bearer Token
|
|
377
|
+
* @type {string}
|
|
378
|
+
* @memberof LeadStatusesApiDeleteLeadStatus
|
|
379
|
+
*/
|
|
380
|
+
readonly authorization?: string
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Request parameters for getLeadStatus operation in LeadStatusesApi.
|
|
385
|
+
* @export
|
|
386
|
+
* @interface LeadStatusesApiGetLeadStatusRequest
|
|
387
|
+
*/
|
|
388
|
+
export interface LeadStatusesApiGetLeadStatusRequest {
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @type {number}
|
|
392
|
+
* @memberof LeadStatusesApiGetLeadStatus
|
|
393
|
+
*/
|
|
394
|
+
readonly id: number
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Bearer Token
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @memberof LeadStatusesApiGetLeadStatus
|
|
400
|
+
*/
|
|
401
|
+
readonly authorization?: string
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Request parameters for listLeadStatuses operation in LeadStatusesApi.
|
|
406
|
+
* @export
|
|
407
|
+
* @interface LeadStatusesApiListLeadStatusesRequest
|
|
408
|
+
*/
|
|
409
|
+
export interface LeadStatusesApiListLeadStatusesRequest {
|
|
410
|
+
/**
|
|
411
|
+
* Bearer Token
|
|
412
|
+
* @type {string}
|
|
413
|
+
* @memberof LeadStatusesApiListLeadStatuses
|
|
414
|
+
*/
|
|
415
|
+
readonly authorization?: string
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
|
|
419
|
+
* @type {string}
|
|
420
|
+
* @memberof LeadStatusesApiListLeadStatuses
|
|
421
|
+
*/
|
|
422
|
+
readonly filter?: string
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* LeadStatusesApi - object-oriented interface
|
|
427
|
+
* @export
|
|
428
|
+
* @class LeadStatusesApi
|
|
429
|
+
* @extends {BaseAPI}
|
|
430
|
+
*/
|
|
431
|
+
export class LeadStatusesApi extends BaseAPI {
|
|
432
|
+
/**
|
|
433
|
+
* This will create a lead status. There are 3 predefined lead statuses in our service, but tenants can define their own custom lead statuses as well. Predefined lead statuses are \"created\",\"approved\" and \"declined\".
|
|
434
|
+
* @summary Create the lead status
|
|
435
|
+
* @param {LeadStatusesApiCreateLeadStatusRequest} requestParameters Request parameters.
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
* @memberof LeadStatusesApi
|
|
439
|
+
*/
|
|
440
|
+
public createLeadStatus(requestParameters: LeadStatusesApiCreateLeadStatusRequest, options?: AxiosRequestConfig) {
|
|
441
|
+
return LeadStatusesApiFp(this.configuration).createLeadStatus(requestParameters.createLeadStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted.
|
|
446
|
+
* @summary Delete the lead status
|
|
447
|
+
* @param {LeadStatusesApiDeleteLeadStatusRequest} requestParameters Request parameters.
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
* @memberof LeadStatusesApi
|
|
451
|
+
*/
|
|
452
|
+
public deleteLeadStatus(requestParameters: LeadStatusesApiDeleteLeadStatusRequest, options?: AxiosRequestConfig) {
|
|
453
|
+
return LeadStatusesApiFp(this.configuration).deleteLeadStatus(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information.
|
|
458
|
+
* @summary Retrieve the lead status
|
|
459
|
+
* @param {LeadStatusesApiGetLeadStatusRequest} requestParameters Request parameters.
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
* @memberof LeadStatusesApi
|
|
463
|
+
*/
|
|
464
|
+
public getLeadStatus(requestParameters: LeadStatusesApiGetLeadStatusRequest, options?: AxiosRequestConfig) {
|
|
465
|
+
return LeadStatusesApiFp(this.configuration).getLeadStatus(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
470
|
+
* @summary List lead statuses
|
|
471
|
+
* @param {LeadStatusesApiListLeadStatusesRequest} requestParameters Request parameters.
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
* @memberof LeadStatusesApi
|
|
475
|
+
*/
|
|
476
|
+
public listLeadStatuses(requestParameters: LeadStatusesApiListLeadStatusesRequest = {}, options?: AxiosRequestConfig) {
|
|
477
|
+
return LeadStatusesApiFp(this.configuration).listLeadStatuses(requestParameters.authorization, requestParameters.filter, options).then((request) => request(this.axios, this.basePath));
|
|
478
|
+
}
|
|
479
|
+
}
|
|
@@ -42,10 +42,12 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
42
42
|
* @param {string} id
|
|
43
43
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
44
44
|
* @param {string} [authorization] Bearer Token
|
|
45
|
+
* @param {string} [filter]
|
|
46
|
+
* @param {string} [expand]
|
|
45
47
|
* @param {*} [options] Override http request option.
|
|
46
48
|
* @throws {RequiredError}
|
|
47
49
|
*/
|
|
48
|
-
getProductVersion: async (id: string, id2: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
getProductVersion: async (id: string, id2: number, authorization?: string, filter?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
51
|
// verify required parameter 'id' is not null or undefined
|
|
50
52
|
assertParamExists('getProductVersion', 'id', id)
|
|
51
53
|
// verify required parameter 'id2' is not null or undefined
|
|
@@ -73,6 +75,14 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
73
75
|
localVarQueryParameter['id'] = id2;
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
if (filter !== undefined) {
|
|
79
|
+
localVarQueryParameter['filter'] = filter;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (expand !== undefined) {
|
|
83
|
+
localVarQueryParameter['expand'] = expand;
|
|
84
|
+
}
|
|
85
|
+
|
|
76
86
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
77
87
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
78
88
|
}
|
|
@@ -155,11 +165,13 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
|
155
165
|
* @param {string} id
|
|
156
166
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
157
167
|
* @param {string} [authorization] Bearer Token
|
|
168
|
+
* @param {string} [filter]
|
|
169
|
+
* @param {string} [expand]
|
|
158
170
|
* @param {*} [options] Override http request option.
|
|
159
171
|
* @throws {RequiredError}
|
|
160
172
|
*/
|
|
161
|
-
async getProductVersion(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductVersionResponseClass>> {
|
|
162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVersion(id, id2, authorization, options);
|
|
173
|
+
async getProductVersion(id: string, id2: number, authorization?: string, filter?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductVersionResponseClass>> {
|
|
174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVersion(id, id2, authorization, filter, expand, options);
|
|
163
175
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
176
|
},
|
|
165
177
|
/**
|
|
@@ -191,11 +203,13 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
|
|
|
191
203
|
* @param {string} id
|
|
192
204
|
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
193
205
|
* @param {string} [authorization] Bearer Token
|
|
206
|
+
* @param {string} [filter]
|
|
207
|
+
* @param {string} [expand]
|
|
194
208
|
* @param {*} [options] Override http request option.
|
|
195
209
|
* @throws {RequiredError}
|
|
196
210
|
*/
|
|
197
|
-
getProductVersion(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<GetProductVersionResponseClass> {
|
|
198
|
-
return localVarFp.getProductVersion(id, id2, authorization, options).then((request) => request(axios, basePath));
|
|
211
|
+
getProductVersion(id: string, id2: number, authorization?: string, filter?: string, expand?: string, options?: any): AxiosPromise<GetProductVersionResponseClass> {
|
|
212
|
+
return localVarFp.getProductVersion(id, id2, authorization, filter, expand, options).then((request) => request(axios, basePath));
|
|
199
213
|
},
|
|
200
214
|
/**
|
|
201
215
|
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -238,6 +252,20 @@ export interface ProductVersionsApiGetProductVersionRequest {
|
|
|
238
252
|
* @memberof ProductVersionsApiGetProductVersion
|
|
239
253
|
*/
|
|
240
254
|
readonly authorization?: string
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @type {string}
|
|
259
|
+
* @memberof ProductVersionsApiGetProductVersion
|
|
260
|
+
*/
|
|
261
|
+
readonly filter?: string
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {string}
|
|
266
|
+
* @memberof ProductVersionsApiGetProductVersion
|
|
267
|
+
*/
|
|
268
|
+
readonly expand?: string
|
|
241
269
|
}
|
|
242
270
|
|
|
243
271
|
/**
|
|
@@ -284,7 +312,7 @@ export class ProductVersionsApi extends BaseAPI {
|
|
|
284
312
|
* @memberof ProductVersionsApi
|
|
285
313
|
*/
|
|
286
314
|
public getProductVersion(requestParameters: ProductVersionsApiGetProductVersionRequest, options?: AxiosRequestConfig) {
|
|
287
|
-
return ProductVersionsApiFp(this.configuration).getProductVersion(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
315
|
+
return ProductVersionsApiFp(this.configuration).getProductVersion(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.filter, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
288
316
|
}
|
|
289
317
|
|
|
290
318
|
/**
|
package/api.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { InsuredObjectTypesApi } from './api';
|
|
28
28
|
import { InsuredObjectsApi } from './api';
|
|
29
|
+
import { LeadStatusesApi } from './api';
|
|
29
30
|
import { LeadsApi } from './api';
|
|
30
31
|
import { PoliciesApi } from './api';
|
|
31
32
|
import { PremiumFormulasApi } from './api';
|
|
@@ -37,6 +38,7 @@ import { ProductsApi } from './api';
|
|
|
37
38
|
|
|
38
39
|
export * from './api/insured-object-types-api';
|
|
39
40
|
export * from './api/insured-objects-api';
|
|
41
|
+
export * from './api/lead-statuses-api';
|
|
40
42
|
export * from './api/leads-api';
|
|
41
43
|
export * from './api/policies-api';
|
|
42
44
|
export * from './api/premium-formulas-api';
|
package/base.ts
CHANGED
|
@@ -170,7 +170,7 @@ export class BaseAPI {
|
|
|
170
170
|
this.configuration.refreshToken = refreshToken;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
async
|
|
173
|
+
async refreshTokenInternal(): Promise<string> {
|
|
174
174
|
const { username, refreshToken } = this.configuration;
|
|
175
175
|
|
|
176
176
|
|
|
@@ -220,7 +220,7 @@ export class BaseAPI {
|
|
|
220
220
|
if (err.response.status === 401 && !originalConfig._retry) {
|
|
221
221
|
originalConfig._retry = true;
|
|
222
222
|
try {
|
|
223
|
-
const tokenString = await this.
|
|
223
|
+
const tokenString = await this.refreshTokenInternal();
|
|
224
224
|
const accessToken = `Bearer ${tokenString}`;
|
|
225
225
|
|
|
226
226
|
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
@@ -245,7 +245,7 @@ export class BaseAPI {
|
|
|
245
245
|
){
|
|
246
246
|
_retry_count++;
|
|
247
247
|
try {
|
|
248
|
-
const tokenString = await this.
|
|
248
|
+
const tokenString = await this.refreshTokenInternal();
|
|
249
249
|
const accessToken = `Bearer ${tokenString}`;
|
|
250
250
|
|
|
251
251
|
_retry = true;
|