@emilgroup/insurance-sdk-node 1.23.0 → 1.24.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 +0 -2
- package/README.md +2 -2
- package/api/premium-formulas-api.ts +0 -107
- package/api/products-api.ts +4 -122
- package/dist/api/premium-formulas-api.d.ts +0 -57
- package/dist/api/premium-formulas-api.js +0 -93
- package/dist/api/products-api.d.ts +4 -68
- package/dist/api/products-api.js +3 -103
- package/dist/models/create-lead-policy-request-dto.d.ts +1 -1
- package/dist/models/create-lead-request-dto.d.ts +7 -7
- package/dist/models/create-premium-formula-request-dto.d.ts +0 -12
- package/dist/models/get-product-request-dto.d.ts +4 -10
- package/dist/models/grpc-patch-lead-request-dto.d.ts +1 -1
- package/dist/models/grpc-update-lead-request-dto.d.ts +7 -7
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/dist/models/patch-lead-request-dto.d.ts +1 -1
- package/dist/models/policy-object-dto.d.ts +1 -1
- package/dist/models/premium-formula-class.d.ts +0 -12
- package/dist/models/shared-create-lead-policy-request-dto.d.ts +1 -1
- package/dist/models/shared-lead-policy-object-dto.d.ts +1 -1
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +0 -12
- package/dist/models/update-lead-request-dto.d.ts +7 -7
- package/dist/models/update-premium-formula-request-dto.d.ts +0 -12
- package/models/create-lead-policy-request-dto.ts +1 -1
- package/models/create-lead-request-dto.ts +7 -7
- package/models/create-premium-formula-request-dto.ts +0 -12
- package/models/get-product-request-dto.ts +4 -10
- package/models/grpc-patch-lead-request-dto.ts +1 -1
- package/models/grpc-update-lead-request-dto.ts +7 -7
- package/models/index.ts +0 -2
- package/models/patch-lead-request-dto.ts +1 -1
- package/models/policy-object-dto.ts +1 -1
- package/models/premium-formula-class.ts +0 -12
- package/models/shared-create-lead-policy-request-dto.ts +1 -1
- package/models/shared-lead-policy-object-dto.ts +1 -1
- package/models/shared-update-premium-formula-request-dto.ts +0 -12
- package/models/update-lead-request-dto.ts +7 -7
- package/models/update-premium-formula-request-dto.ts +0 -12
- package/package.json +1 -1
- package/dist/models/empty-response-class.d.ts +0 -24
- package/dist/models/empty-response-class.js +0 -15
- package/dist/models/swap-premium-formulas-order-requestt-dto.d.ts +0 -30
- package/dist/models/swap-premium-formulas-order-requestt-dto.js +0 -15
- package/models/empty-response-class.ts +0 -30
- package/models/swap-premium-formulas-order-requestt-dto.ts +0 -36
package/.openapi-generator/FILES
CHANGED
|
@@ -49,7 +49,6 @@ models/create-product-response-class.ts
|
|
|
49
49
|
models/csv-product-factor-dto.ts
|
|
50
50
|
models/delete-request-dto.ts
|
|
51
51
|
models/delete-response-class.ts
|
|
52
|
-
models/empty-response-class.ts
|
|
53
52
|
models/get-insured-object-response-class.ts
|
|
54
53
|
models/get-lead-response-class.ts
|
|
55
54
|
models/get-lead-status-response-class.ts
|
|
@@ -127,7 +126,6 @@ models/store-product-factors-request-dto.ts
|
|
|
127
126
|
models/store-product-factors-response-class.ts
|
|
128
127
|
models/suspend-policy-request-dto.ts
|
|
129
128
|
models/suspend-policy-response-class.ts
|
|
130
|
-
models/swap-premium-formulas-order-requestt-dto.ts
|
|
131
129
|
models/terminate-policy-request-dto.ts
|
|
132
130
|
models/terminate-policy-response-class.ts
|
|
133
131
|
models/timeslice-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.24.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.24.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
|
@@ -27,14 +27,10 @@ import { CreatePremiumFormulaResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { DeleteResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
-
import { EmptyResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
30
|
import { GetPremiumFormulaResponseClass } from '../models';
|
|
33
31
|
// @ts-ignore
|
|
34
32
|
import { ListPremiumFormulasResponseClass } from '../models';
|
|
35
33
|
// @ts-ignore
|
|
36
|
-
import { SwapPremiumFormulasOrderRequesttDto } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
34
|
import { UpdatePremiumFormulaRequestDto } from '../models';
|
|
39
35
|
// @ts-ignore
|
|
40
36
|
import { UpdatePremiumFormulaResponseClass } from '../models';
|
|
@@ -256,53 +252,6 @@ export const PremiumFormulasApiAxiosParamCreator = function (configuration?: Con
|
|
|
256
252
|
options: localVarRequestOptions,
|
|
257
253
|
};
|
|
258
254
|
},
|
|
259
|
-
/**
|
|
260
|
-
* Swaps premium formulas order.
|
|
261
|
-
* @summary Swaps premium formulas order
|
|
262
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
263
|
-
* @param {string} [authorization] Bearer Token
|
|
264
|
-
* @param {*} [options] Override http request option.
|
|
265
|
-
* @throws {RequiredError}
|
|
266
|
-
*/
|
|
267
|
-
swapPremiumFormulasOrder: async (swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
268
|
-
// verify required parameter 'swapPremiumFormulasOrderRequesttDto' is not null or undefined
|
|
269
|
-
assertParamExists('swapPremiumFormulasOrder', 'swapPremiumFormulasOrderRequesttDto', swapPremiumFormulasOrderRequesttDto)
|
|
270
|
-
const localVarPath = `/insuranceservice/v1/premium-formulas/reorder`;
|
|
271
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
273
|
-
let baseOptions;
|
|
274
|
-
let baseAccessToken;
|
|
275
|
-
if (configuration) {
|
|
276
|
-
baseOptions = configuration.baseOptions;
|
|
277
|
-
baseAccessToken = configuration.accessToken;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
281
|
-
const localVarHeaderParameter = {} as any;
|
|
282
|
-
const localVarQueryParameter = {} as any;
|
|
283
|
-
|
|
284
|
-
// authentication bearer required
|
|
285
|
-
// http bearer authentication required
|
|
286
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
287
|
-
|
|
288
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
289
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
295
|
-
|
|
296
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(swapPremiumFormulasOrderRequesttDto, localVarRequestOptions, configuration)
|
|
300
|
-
|
|
301
|
-
return {
|
|
302
|
-
url: toPathString(localVarUrlObj),
|
|
303
|
-
options: localVarRequestOptions,
|
|
304
|
-
};
|
|
305
|
-
},
|
|
306
255
|
/**
|
|
307
256
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
308
257
|
* @summary Update the premium formula
|
|
@@ -417,18 +366,6 @@ export const PremiumFormulasApiFp = function(configuration?: Configuration) {
|
|
|
417
366
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
418
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
419
368
|
},
|
|
420
|
-
/**
|
|
421
|
-
* Swaps premium formulas order.
|
|
422
|
-
* @summary Swaps premium formulas order
|
|
423
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
424
|
-
* @param {string} [authorization] Bearer Token
|
|
425
|
-
* @param {*} [options] Override http request option.
|
|
426
|
-
* @throws {RequiredError}
|
|
427
|
-
*/
|
|
428
|
-
async swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptyResponseClass>> {
|
|
429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options);
|
|
430
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
|
-
},
|
|
432
369
|
/**
|
|
433
370
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
434
371
|
* @summary Update the premium formula
|
|
@@ -501,17 +438,6 @@ export const PremiumFormulasApiFactory = function (configuration?: Configuration
|
|
|
501
438
|
listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPremiumFormulasResponseClass> {
|
|
502
439
|
return localVarFp.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
503
440
|
},
|
|
504
|
-
/**
|
|
505
|
-
* Swaps premium formulas order.
|
|
506
|
-
* @summary Swaps premium formulas order
|
|
507
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
508
|
-
* @param {string} [authorization] Bearer Token
|
|
509
|
-
* @param {*} [options] Override http request option.
|
|
510
|
-
* @throws {RequiredError}
|
|
511
|
-
*/
|
|
512
|
-
swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: any): AxiosPromise<EmptyResponseClass> {
|
|
513
|
-
return localVarFp.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options).then((request) => request(axios, basePath));
|
|
514
|
-
},
|
|
515
441
|
/**
|
|
516
442
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
517
443
|
* @summary Update the premium formula
|
|
@@ -646,27 +572,6 @@ export interface PremiumFormulasApiListPremiumFormulasRequest {
|
|
|
646
572
|
readonly expand?: string
|
|
647
573
|
}
|
|
648
574
|
|
|
649
|
-
/**
|
|
650
|
-
* Request parameters for swapPremiumFormulasOrder operation in PremiumFormulasApi.
|
|
651
|
-
* @export
|
|
652
|
-
* @interface PremiumFormulasApiSwapPremiumFormulasOrderRequest
|
|
653
|
-
*/
|
|
654
|
-
export interface PremiumFormulasApiSwapPremiumFormulasOrderRequest {
|
|
655
|
-
/**
|
|
656
|
-
*
|
|
657
|
-
* @type {SwapPremiumFormulasOrderRequesttDto}
|
|
658
|
-
* @memberof PremiumFormulasApiSwapPremiumFormulasOrder
|
|
659
|
-
*/
|
|
660
|
-
readonly swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* Bearer Token
|
|
664
|
-
* @type {string}
|
|
665
|
-
* @memberof PremiumFormulasApiSwapPremiumFormulasOrder
|
|
666
|
-
*/
|
|
667
|
-
readonly authorization?: string
|
|
668
|
-
}
|
|
669
|
-
|
|
670
575
|
/**
|
|
671
576
|
* Request parameters for updatePremiumFormula operation in PremiumFormulasApi.
|
|
672
577
|
* @export
|
|
@@ -750,18 +655,6 @@ export class PremiumFormulasApi extends BaseAPI {
|
|
|
750
655
|
return PremiumFormulasApiFp(this.configuration).listPremiumFormulas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
751
656
|
}
|
|
752
657
|
|
|
753
|
-
/**
|
|
754
|
-
* Swaps premium formulas order.
|
|
755
|
-
* @summary Swaps premium formulas order
|
|
756
|
-
* @param {PremiumFormulasApiSwapPremiumFormulasOrderRequest} requestParameters Request parameters.
|
|
757
|
-
* @param {*} [options] Override http request option.
|
|
758
|
-
* @throws {RequiredError}
|
|
759
|
-
* @memberof PremiumFormulasApi
|
|
760
|
-
*/
|
|
761
|
-
public swapPremiumFormulasOrder(requestParameters: PremiumFormulasApiSwapPremiumFormulasOrderRequest, options?: AxiosRequestConfig) {
|
|
762
|
-
return PremiumFormulasApiFp(this.configuration).swapPremiumFormulasOrder(requestParameters.swapPremiumFormulasOrderRequesttDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
-
}
|
|
764
|
-
|
|
765
658
|
/**
|
|
766
659
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
767
660
|
* @summary Update the premium formula
|
package/api/products-api.ts
CHANGED
|
@@ -140,7 +140,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
140
140
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
141
141
|
* @summary Retrieve the product
|
|
142
142
|
* @param {string} code Unique identifier for the object.
|
|
143
|
-
* @param {number} id
|
|
143
|
+
* @param {number} id Product id
|
|
144
144
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
145
145
|
* @param {string} [expand] Fields to expand response by
|
|
146
146
|
* @param {*} [options] Override http request option.
|
|
@@ -184,59 +184,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
|
|
187
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
188
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
190
|
-
|
|
191
|
-
return {
|
|
192
|
-
url: toPathString(localVarUrlObj),
|
|
193
|
-
options: localVarRequestOptions,
|
|
194
|
-
};
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
197
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
198
|
-
* @summary Retrieve the product
|
|
199
|
-
* @param {number} id Unique identifier referencing the product.
|
|
200
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
|
-
* @param {string} [expand] Fields to expand response by
|
|
202
|
-
* @param {*} [options] Override http request option.
|
|
203
|
-
* @throws {RequiredError}
|
|
204
|
-
*/
|
|
205
|
-
getProductByIdentifier: async (id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
206
|
-
// verify required parameter 'id' is not null or undefined
|
|
207
|
-
assertParamExists('getProductByIdentifier', 'id', id)
|
|
208
|
-
const localVarPath = `/insuranceservice/v1/products/get-by-identifier`;
|
|
209
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
211
|
-
let baseOptions;
|
|
212
|
-
let baseAccessToken;
|
|
213
|
-
if (configuration) {
|
|
214
|
-
baseOptions = configuration.baseOptions;
|
|
215
|
-
baseAccessToken = configuration.accessToken;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
219
|
-
const localVarHeaderParameter = {} as any;
|
|
220
|
-
const localVarQueryParameter = {} as any;
|
|
221
|
-
|
|
222
|
-
// authentication bearer required
|
|
223
|
-
// http bearer authentication required
|
|
224
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
225
|
-
|
|
226
|
-
if (id !== undefined) {
|
|
227
|
-
localVarQueryParameter['id'] = id;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
if (expand !== undefined) {
|
|
231
|
-
localVarQueryParameter['expand'] = expand;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
235
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
187
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
241
188
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
189
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -406,7 +353,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
406
353
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
407
354
|
* @summary Retrieve the product
|
|
408
355
|
* @param {string} code Unique identifier for the object.
|
|
409
|
-
* @param {number} id
|
|
356
|
+
* @param {number} id Product id
|
|
410
357
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
358
|
* @param {string} [expand] Fields to expand response by
|
|
412
359
|
* @param {*} [options] Override http request option.
|
|
@@ -416,19 +363,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
416
363
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options);
|
|
417
364
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
418
365
|
},
|
|
419
|
-
/**
|
|
420
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
421
|
-
* @summary Retrieve the product
|
|
422
|
-
* @param {number} id Unique identifier referencing the product.
|
|
423
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
424
|
-
* @param {string} [expand] Fields to expand response by
|
|
425
|
-
* @param {*} [options] Override http request option.
|
|
426
|
-
* @throws {RequiredError}
|
|
427
|
-
*/
|
|
428
|
-
async getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
|
|
429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(id, authorization, expand, options);
|
|
430
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
|
-
},
|
|
432
366
|
/**
|
|
433
367
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
434
368
|
* @summary List products
|
|
@@ -495,7 +429,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
495
429
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
496
430
|
* @summary Retrieve the product
|
|
497
431
|
* @param {string} code Unique identifier for the object.
|
|
498
|
-
* @param {number} id
|
|
432
|
+
* @param {number} id Product id
|
|
499
433
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
500
434
|
* @param {string} [expand] Fields to expand response by
|
|
501
435
|
* @param {*} [options] Override http request option.
|
|
@@ -504,18 +438,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
504
438
|
getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
|
|
505
439
|
return localVarFp.getProductByCode(code, id, authorization, expand, options).then((request) => request(axios, basePath));
|
|
506
440
|
},
|
|
507
|
-
/**
|
|
508
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
509
|
-
* @summary Retrieve the product
|
|
510
|
-
* @param {number} id Unique identifier referencing the product.
|
|
511
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
512
|
-
* @param {string} [expand] Fields to expand response by
|
|
513
|
-
* @param {*} [options] Override http request option.
|
|
514
|
-
* @throws {RequiredError}
|
|
515
|
-
*/
|
|
516
|
-
getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
|
|
517
|
-
return localVarFp.getProductByIdentifier(id, authorization, expand, options).then((request) => request(axios, basePath));
|
|
518
|
-
},
|
|
519
441
|
/**
|
|
520
442
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
521
443
|
* @summary List products
|
|
@@ -603,7 +525,7 @@ export interface ProductsApiGetProductByCodeRequest {
|
|
|
603
525
|
readonly code: string
|
|
604
526
|
|
|
605
527
|
/**
|
|
606
|
-
*
|
|
528
|
+
* Product id
|
|
607
529
|
* @type {number}
|
|
608
530
|
* @memberof ProductsApiGetProductByCode
|
|
609
531
|
*/
|
|
@@ -624,34 +546,6 @@ export interface ProductsApiGetProductByCodeRequest {
|
|
|
624
546
|
readonly expand?: string
|
|
625
547
|
}
|
|
626
548
|
|
|
627
|
-
/**
|
|
628
|
-
* Request parameters for getProductByIdentifier operation in ProductsApi.
|
|
629
|
-
* @export
|
|
630
|
-
* @interface ProductsApiGetProductByIdentifierRequest
|
|
631
|
-
*/
|
|
632
|
-
export interface ProductsApiGetProductByIdentifierRequest {
|
|
633
|
-
/**
|
|
634
|
-
* Unique identifier referencing the product.
|
|
635
|
-
* @type {number}
|
|
636
|
-
* @memberof ProductsApiGetProductByIdentifier
|
|
637
|
-
*/
|
|
638
|
-
readonly id: number
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
642
|
-
* @type {string}
|
|
643
|
-
* @memberof ProductsApiGetProductByIdentifier
|
|
644
|
-
*/
|
|
645
|
-
readonly authorization?: string
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* Fields to expand response by
|
|
649
|
-
* @type {string}
|
|
650
|
-
* @memberof ProductsApiGetProductByIdentifier
|
|
651
|
-
*/
|
|
652
|
-
readonly expand?: string
|
|
653
|
-
}
|
|
654
|
-
|
|
655
549
|
/**
|
|
656
550
|
* Request parameters for listProducts operation in ProductsApi.
|
|
657
551
|
* @export
|
|
@@ -779,18 +673,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
779
673
|
return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
780
674
|
}
|
|
781
675
|
|
|
782
|
-
/**
|
|
783
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
784
|
-
* @summary Retrieve the product
|
|
785
|
-
* @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
|
|
786
|
-
* @param {*} [options] Override http request option.
|
|
787
|
-
* @throws {RequiredError}
|
|
788
|
-
* @memberof ProductsApi
|
|
789
|
-
*/
|
|
790
|
-
public getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig) {
|
|
791
|
-
return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
792
|
-
}
|
|
793
|
-
|
|
794
676
|
/**
|
|
795
677
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
796
678
|
* @summary List products
|
|
@@ -15,10 +15,8 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreatePremiumFormulaRequestDto } from '../models';
|
|
16
16
|
import { CreatePremiumFormulaResponseClass } from '../models';
|
|
17
17
|
import { DeleteResponseClass } from '../models';
|
|
18
|
-
import { EmptyResponseClass } from '../models';
|
|
19
18
|
import { GetPremiumFormulaResponseClass } from '../models';
|
|
20
19
|
import { ListPremiumFormulasResponseClass } from '../models';
|
|
21
|
-
import { SwapPremiumFormulasOrderRequesttDto } from '../models';
|
|
22
20
|
import { UpdatePremiumFormulaRequestDto } from '../models';
|
|
23
21
|
import { UpdatePremiumFormulaResponseClass } from '../models';
|
|
24
22
|
/**
|
|
@@ -67,15 +65,6 @@ export declare const PremiumFormulasApiAxiosParamCreator: (configuration?: Confi
|
|
|
67
65
|
* @throws {RequiredError}
|
|
68
66
|
*/
|
|
69
67
|
listPremiumFormulas: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
|
-
/**
|
|
71
|
-
* Swaps premium formulas order.
|
|
72
|
-
* @summary Swaps premium formulas order
|
|
73
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
74
|
-
* @param {string} [authorization] Bearer Token
|
|
75
|
-
* @param {*} [options] Override http request option.
|
|
76
|
-
* @throws {RequiredError}
|
|
77
|
-
*/
|
|
78
|
-
swapPremiumFormulasOrder: (swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
68
|
/**
|
|
80
69
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
81
70
|
* @summary Update the premium formula
|
|
@@ -133,15 +122,6 @@ export declare const PremiumFormulasApiFp: (configuration?: Configuration) => {
|
|
|
133
122
|
* @throws {RequiredError}
|
|
134
123
|
*/
|
|
135
124
|
listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPremiumFormulasResponseClass>>;
|
|
136
|
-
/**
|
|
137
|
-
* Swaps premium formulas order.
|
|
138
|
-
* @summary Swaps premium formulas order
|
|
139
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
140
|
-
* @param {string} [authorization] Bearer Token
|
|
141
|
-
* @param {*} [options] Override http request option.
|
|
142
|
-
* @throws {RequiredError}
|
|
143
|
-
*/
|
|
144
|
-
swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptyResponseClass>>;
|
|
145
125
|
/**
|
|
146
126
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
147
127
|
* @summary Update the premium formula
|
|
@@ -199,15 +179,6 @@ export declare const PremiumFormulasApiFactory: (configuration?: Configuration,
|
|
|
199
179
|
* @throws {RequiredError}
|
|
200
180
|
*/
|
|
201
181
|
listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPremiumFormulasResponseClass>;
|
|
202
|
-
/**
|
|
203
|
-
* Swaps premium formulas order.
|
|
204
|
-
* @summary Swaps premium formulas order
|
|
205
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
206
|
-
* @param {string} [authorization] Bearer Token
|
|
207
|
-
* @param {*} [options] Override http request option.
|
|
208
|
-
* @throws {RequiredError}
|
|
209
|
-
*/
|
|
210
|
-
swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: any): AxiosPromise<EmptyResponseClass>;
|
|
211
182
|
/**
|
|
212
183
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
213
184
|
* @summary Update the premium formula
|
|
@@ -325,25 +296,6 @@ export interface PremiumFormulasApiListPremiumFormulasRequest {
|
|
|
325
296
|
*/
|
|
326
297
|
readonly expand?: string;
|
|
327
298
|
}
|
|
328
|
-
/**
|
|
329
|
-
* Request parameters for swapPremiumFormulasOrder operation in PremiumFormulasApi.
|
|
330
|
-
* @export
|
|
331
|
-
* @interface PremiumFormulasApiSwapPremiumFormulasOrderRequest
|
|
332
|
-
*/
|
|
333
|
-
export interface PremiumFormulasApiSwapPremiumFormulasOrderRequest {
|
|
334
|
-
/**
|
|
335
|
-
*
|
|
336
|
-
* @type {SwapPremiumFormulasOrderRequesttDto}
|
|
337
|
-
* @memberof PremiumFormulasApiSwapPremiumFormulasOrder
|
|
338
|
-
*/
|
|
339
|
-
readonly swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto;
|
|
340
|
-
/**
|
|
341
|
-
* Bearer Token
|
|
342
|
-
* @type {string}
|
|
343
|
-
* @memberof PremiumFormulasApiSwapPremiumFormulasOrder
|
|
344
|
-
*/
|
|
345
|
-
readonly authorization?: string;
|
|
346
|
-
}
|
|
347
299
|
/**
|
|
348
300
|
* Request parameters for updatePremiumFormula operation in PremiumFormulasApi.
|
|
349
301
|
* @export
|
|
@@ -412,15 +364,6 @@ export declare class PremiumFormulasApi extends BaseAPI {
|
|
|
412
364
|
* @memberof PremiumFormulasApi
|
|
413
365
|
*/
|
|
414
366
|
listPremiumFormulas(requestParameters?: PremiumFormulasApiListPremiumFormulasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPremiumFormulasResponseClass, any>>;
|
|
415
|
-
/**
|
|
416
|
-
* Swaps premium formulas order.
|
|
417
|
-
* @summary Swaps premium formulas order
|
|
418
|
-
* @param {PremiumFormulasApiSwapPremiumFormulasOrderRequest} requestParameters Request parameters.
|
|
419
|
-
* @param {*} [options] Override http request option.
|
|
420
|
-
* @throws {RequiredError}
|
|
421
|
-
* @memberof PremiumFormulasApi
|
|
422
|
-
*/
|
|
423
|
-
swapPremiumFormulasOrder(requestParameters: PremiumFormulasApiSwapPremiumFormulasOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EmptyResponseClass, any>>;
|
|
424
367
|
/**
|
|
425
368
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
426
369
|
* @summary Update the premium formula
|
|
@@ -309,55 +309,6 @@ var PremiumFormulasApiAxiosParamCreator = function (configuration) {
|
|
|
309
309
|
});
|
|
310
310
|
});
|
|
311
311
|
},
|
|
312
|
-
/**
|
|
313
|
-
* Swaps premium formulas order.
|
|
314
|
-
* @summary Swaps premium formulas order
|
|
315
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
316
|
-
* @param {string} [authorization] Bearer Token
|
|
317
|
-
* @param {*} [options] Override http request option.
|
|
318
|
-
* @throws {RequiredError}
|
|
319
|
-
*/
|
|
320
|
-
swapPremiumFormulasOrder: function (swapPremiumFormulasOrderRequesttDto, authorization, options) {
|
|
321
|
-
if (options === void 0) { options = {}; }
|
|
322
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
323
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
324
|
-
return __generator(this, function (_a) {
|
|
325
|
-
switch (_a.label) {
|
|
326
|
-
case 0:
|
|
327
|
-
// verify required parameter 'swapPremiumFormulasOrderRequesttDto' is not null or undefined
|
|
328
|
-
(0, common_1.assertParamExists)('swapPremiumFormulasOrder', 'swapPremiumFormulasOrderRequesttDto', swapPremiumFormulasOrderRequesttDto);
|
|
329
|
-
localVarPath = "/insuranceservice/v1/premium-formulas/reorder";
|
|
330
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
331
|
-
if (configuration) {
|
|
332
|
-
baseOptions = configuration.baseOptions;
|
|
333
|
-
baseAccessToken = configuration.accessToken;
|
|
334
|
-
}
|
|
335
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
336
|
-
localVarHeaderParameter = {};
|
|
337
|
-
localVarQueryParameter = {};
|
|
338
|
-
// authentication bearer required
|
|
339
|
-
// http bearer authentication required
|
|
340
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
341
|
-
case 1:
|
|
342
|
-
// authentication bearer required
|
|
343
|
-
// http bearer authentication required
|
|
344
|
-
_a.sent();
|
|
345
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
346
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
347
|
-
}
|
|
348
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
349
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
350
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
351
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
352
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(swapPremiumFormulasOrderRequesttDto, localVarRequestOptions, configuration);
|
|
353
|
-
return [2 /*return*/, {
|
|
354
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
355
|
-
options: localVarRequestOptions,
|
|
356
|
-
}];
|
|
357
|
-
}
|
|
358
|
-
});
|
|
359
|
-
});
|
|
360
|
-
},
|
|
361
312
|
/**
|
|
362
313
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
363
314
|
* @summary Update the premium formula
|
|
@@ -510,27 +461,6 @@ var PremiumFormulasApiFp = function (configuration) {
|
|
|
510
461
|
});
|
|
511
462
|
});
|
|
512
463
|
},
|
|
513
|
-
/**
|
|
514
|
-
* Swaps premium formulas order.
|
|
515
|
-
* @summary Swaps premium formulas order
|
|
516
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
517
|
-
* @param {string} [authorization] Bearer Token
|
|
518
|
-
* @param {*} [options] Override http request option.
|
|
519
|
-
* @throws {RequiredError}
|
|
520
|
-
*/
|
|
521
|
-
swapPremiumFormulasOrder: function (swapPremiumFormulasOrderRequesttDto, authorization, options) {
|
|
522
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
523
|
-
var localVarAxiosArgs;
|
|
524
|
-
return __generator(this, function (_a) {
|
|
525
|
-
switch (_a.label) {
|
|
526
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options)];
|
|
527
|
-
case 1:
|
|
528
|
-
localVarAxiosArgs = _a.sent();
|
|
529
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
530
|
-
}
|
|
531
|
-
});
|
|
532
|
-
});
|
|
533
|
-
},
|
|
534
464
|
/**
|
|
535
465
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
536
466
|
* @summary Update the premium formula
|
|
@@ -612,17 +542,6 @@ var PremiumFormulasApiFactory = function (configuration, basePath, axios) {
|
|
|
612
542
|
listPremiumFormulas: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
613
543
|
return localVarFp.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
614
544
|
},
|
|
615
|
-
/**
|
|
616
|
-
* Swaps premium formulas order.
|
|
617
|
-
* @summary Swaps premium formulas order
|
|
618
|
-
* @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
|
|
619
|
-
* @param {string} [authorization] Bearer Token
|
|
620
|
-
* @param {*} [options] Override http request option.
|
|
621
|
-
* @throws {RequiredError}
|
|
622
|
-
*/
|
|
623
|
-
swapPremiumFormulasOrder: function (swapPremiumFormulasOrderRequesttDto, authorization, options) {
|
|
624
|
-
return localVarFp.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
625
|
-
},
|
|
626
545
|
/**
|
|
627
546
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
628
547
|
* @summary Update the premium formula
|
|
@@ -698,18 +617,6 @@ var PremiumFormulasApi = /** @class */ (function (_super) {
|
|
|
698
617
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
699
618
|
return (0, exports.PremiumFormulasApiFp)(this.configuration).listPremiumFormulas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
700
619
|
};
|
|
701
|
-
/**
|
|
702
|
-
* Swaps premium formulas order.
|
|
703
|
-
* @summary Swaps premium formulas order
|
|
704
|
-
* @param {PremiumFormulasApiSwapPremiumFormulasOrderRequest} requestParameters Request parameters.
|
|
705
|
-
* @param {*} [options] Override http request option.
|
|
706
|
-
* @throws {RequiredError}
|
|
707
|
-
* @memberof PremiumFormulasApi
|
|
708
|
-
*/
|
|
709
|
-
PremiumFormulasApi.prototype.swapPremiumFormulasOrder = function (requestParameters, options) {
|
|
710
|
-
var _this = this;
|
|
711
|
-
return (0, exports.PremiumFormulasApiFp)(this.configuration).swapPremiumFormulasOrder(requestParameters.swapPremiumFormulasOrderRequesttDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
712
|
-
};
|
|
713
620
|
/**
|
|
714
621
|
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
715
622
|
* @summary Update the premium formula
|