@emilgroup/insurance-sdk-node 1.60.0 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/commission-agreement-items-api.ts +4 -4
- package/api/commission-agreement-versions-api.ts +4 -4
- package/api/commission-recipients-api.ts +4 -4
- package/api/policies-api.ts +9 -9
- package/base.ts +7 -15
- package/dist/api/commission-agreement-items-api.d.ts +4 -4
- package/dist/api/commission-agreement-items-api.js +3 -3
- package/dist/api/commission-agreement-versions-api.d.ts +4 -4
- package/dist/api/commission-agreement-versions-api.js +3 -3
- package/dist/api/commission-recipients-api.d.ts +4 -4
- package/dist/api/commission-recipients-api.js +3 -3
- package/dist/api/policies-api.d.ts +9 -9
- package/dist/api/policies-api.js +3 -3
- package/dist/base.d.ts +1 -3
- package/dist/base.js +20 -26
- package/dist/models/link-lead-partner-request-dto.d.ts +2 -2
- package/models/link-lead-partner-request-dto.ts +2 -2
- package/package.json +1 -1
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.61.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.61.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
|
@@ -201,7 +201,7 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
|
|
|
201
201
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
202
202
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
203
203
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
204
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
204
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
205
205
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
206
206
|
* @param {*} [options] Override http request option.
|
|
207
207
|
* @throws {RequiredError}
|
|
@@ -376,7 +376,7 @@ export const CommissionAgreementItemsApiFp = function(configuration?: Configurat
|
|
|
376
376
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
377
377
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
378
378
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
379
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
379
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
380
380
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
381
381
|
* @param {*} [options] Override http request option.
|
|
382
382
|
* @throws {RequiredError}
|
|
@@ -452,7 +452,7 @@ export const CommissionAgreementItemsApiFactory = function (configuration?: Conf
|
|
|
452
452
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
453
453
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
454
454
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
455
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
455
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
456
456
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
457
457
|
* @param {*} [options] Override http request option.
|
|
458
458
|
* @throws {RequiredError}
|
|
@@ -601,7 +601,7 @@ export interface CommissionAgreementItemsApiListCommissionAgreementItemsRequest
|
|
|
601
601
|
readonly order?: string
|
|
602
602
|
|
|
603
603
|
/**
|
|
604
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
604
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
605
605
|
* @type {string}
|
|
606
606
|
* @memberof CommissionAgreementItemsApiListCommissionAgreementItems
|
|
607
607
|
*/
|
|
@@ -197,7 +197,7 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
|
|
|
197
197
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
198
198
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
199
199
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
200
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
200
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
201
201
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
@@ -321,7 +321,7 @@ export const CommissionAgreementVersionsApiFp = function(configuration?: Configu
|
|
|
321
321
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
322
322
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
323
323
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
324
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
324
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
325
325
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
326
326
|
* @param {*} [options] Override http request option.
|
|
327
327
|
* @throws {RequiredError}
|
|
@@ -384,7 +384,7 @@ export const CommissionAgreementVersionsApiFactory = function (configuration?: C
|
|
|
384
384
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
385
385
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
386
386
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
387
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
387
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
388
388
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
389
389
|
* @param {*} [options] Override http request option.
|
|
390
390
|
* @throws {RequiredError}
|
|
@@ -521,7 +521,7 @@ export interface CommissionAgreementVersionsApiListCommissionAgreementVersionsRe
|
|
|
521
521
|
readonly order?: string
|
|
522
522
|
|
|
523
523
|
/**
|
|
524
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
524
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
525
525
|
* @type {string}
|
|
526
526
|
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
527
527
|
*/
|
|
@@ -194,7 +194,7 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
194
194
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
195
195
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
196
196
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
197
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
197
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
198
198
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
199
199
|
* @param {*} [options] Override http request option.
|
|
200
200
|
* @throws {RequiredError}
|
|
@@ -368,7 +368,7 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
|
|
|
368
368
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
369
369
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
370
370
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
371
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
371
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
372
372
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
373
373
|
* @param {*} [options] Override http request option.
|
|
374
374
|
* @throws {RequiredError}
|
|
@@ -443,7 +443,7 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
|
|
|
443
443
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
444
444
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
445
445
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
446
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
446
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
447
447
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
448
448
|
* @param {*} [options] Override http request option.
|
|
449
449
|
* @throws {RequiredError}
|
|
@@ -585,7 +585,7 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
585
585
|
readonly order?: string
|
|
586
586
|
|
|
587
587
|
/**
|
|
588
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
588
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
589
589
|
* @type {string}
|
|
590
590
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
591
591
|
*/
|
package/api/policies-api.ts
CHANGED
|
@@ -499,12 +499,12 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
499
499
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
500
500
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
501
501
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
502
|
-
* @param {
|
|
502
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
503
503
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
504
504
|
* @param {*} [options] Override http request option.
|
|
505
505
|
* @throws {RequiredError}
|
|
506
506
|
*/
|
|
507
|
-
listPolicyObjects: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
507
|
+
listPolicyObjects: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
508
508
|
const localVarPath = `/insuranceservice/v1/policies/policy-objects`;
|
|
509
509
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
510
510
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1078,12 +1078,12 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1078
1078
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1079
1079
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1080
1080
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
1081
|
-
* @param {
|
|
1081
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1082
1082
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1083
1083
|
* @param {*} [options] Override http request option.
|
|
1084
1084
|
* @throws {RequiredError}
|
|
1085
1085
|
*/
|
|
1086
|
-
async listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
1086
|
+
async listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyObjectsResponseClass>> {
|
|
1087
1087
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyObjects(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1088
1088
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1089
1089
|
},
|
|
@@ -1302,12 +1302,12 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1302
1302
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1303
1303
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1304
1304
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
1305
|
-
* @param {
|
|
1305
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1306
1306
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1307
1307
|
* @param {*} [options] Override http request option.
|
|
1308
1308
|
* @throws {RequiredError}
|
|
1309
1309
|
*/
|
|
1310
|
-
listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
1310
|
+
listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyObjectsResponseClass> {
|
|
1311
1311
|
return localVarFp.listPolicyObjects(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1312
1312
|
},
|
|
1313
1313
|
/**
|
|
@@ -1697,11 +1697,11 @@ export interface PoliciesApiListPolicyObjectsRequest {
|
|
|
1697
1697
|
readonly order?: string
|
|
1698
1698
|
|
|
1699
1699
|
/**
|
|
1700
|
-
*
|
|
1701
|
-
* @type {
|
|
1700
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1701
|
+
* @type {string}
|
|
1702
1702
|
* @memberof PoliciesApiListPolicyObjects
|
|
1703
1703
|
*/
|
|
1704
|
-
readonly expand?:
|
|
1704
|
+
readonly expand?: string
|
|
1705
1705
|
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
package/base.ts
CHANGED
|
@@ -79,7 +79,6 @@ export class BaseAPI {
|
|
|
79
79
|
protected configuration: Configuration;
|
|
80
80
|
private username?: string;
|
|
81
81
|
private password?: string;
|
|
82
|
-
private permissions?: string;
|
|
83
82
|
|
|
84
83
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
85
84
|
if (configuration) {
|
|
@@ -150,10 +149,6 @@ export class BaseAPI {
|
|
|
150
149
|
this.configuration.basePath = env;
|
|
151
150
|
}
|
|
152
151
|
|
|
153
|
-
getPermissions(): Array<string> {
|
|
154
|
-
return this.permissions.split(',');
|
|
155
|
-
}
|
|
156
|
-
|
|
157
152
|
async authorize(username: string, password: string): Promise<void> {
|
|
158
153
|
const options: AxiosRequestConfig = {
|
|
159
154
|
method: 'POST',
|
|
@@ -168,21 +163,20 @@ export class BaseAPI {
|
|
|
168
163
|
|
|
169
164
|
const response = await globalAxios.request<LoginClass>(options);
|
|
170
165
|
|
|
171
|
-
const { data: { accessToken
|
|
166
|
+
const { data: { accessToken } } = response;
|
|
172
167
|
this.configuration.username = username;
|
|
173
168
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
174
|
-
this.permissions = permissions;
|
|
175
169
|
|
|
176
170
|
const refreshToken = this.extractRefreshToken(response)
|
|
177
171
|
this.configuration.refreshToken = refreshToken;
|
|
178
172
|
}
|
|
179
173
|
|
|
180
|
-
async refreshTokenInternal(): Promise<
|
|
174
|
+
async refreshTokenInternal(): Promise<string> {
|
|
181
175
|
const { username, refreshToken } = this.configuration;
|
|
182
176
|
|
|
183
177
|
|
|
184
178
|
if (!username || !refreshToken) {
|
|
185
|
-
|
|
179
|
+
return '';
|
|
186
180
|
}
|
|
187
181
|
|
|
188
182
|
const options: AxiosRequestConfig = {
|
|
@@ -196,9 +190,9 @@ export class BaseAPI {
|
|
|
196
190
|
withCredentials: true,
|
|
197
191
|
};
|
|
198
192
|
|
|
199
|
-
const
|
|
193
|
+
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
200
194
|
|
|
201
|
-
return
|
|
195
|
+
return accessToken;
|
|
202
196
|
}
|
|
203
197
|
|
|
204
198
|
private extractRefreshToken(response: AxiosResponse): string {
|
|
@@ -227,9 +221,8 @@ export class BaseAPI {
|
|
|
227
221
|
if (err.response.status === 401 && !originalConfig._retry) {
|
|
228
222
|
originalConfig._retry = true;
|
|
229
223
|
try {
|
|
230
|
-
const
|
|
224
|
+
const tokenString = await this.refreshTokenInternal();
|
|
231
225
|
const accessToken = `Bearer ${tokenString}`;
|
|
232
|
-
this.permissions = permissions;
|
|
233
226
|
|
|
234
227
|
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
235
228
|
|
|
@@ -253,9 +246,8 @@ export class BaseAPI {
|
|
|
253
246
|
){
|
|
254
247
|
_retry_count++;
|
|
255
248
|
try {
|
|
256
|
-
const
|
|
249
|
+
const tokenString = await this.refreshTokenInternal();
|
|
257
250
|
const accessToken = `Bearer ${tokenString}`;
|
|
258
|
-
this.permissions = permissions;
|
|
259
251
|
|
|
260
252
|
_retry = true;
|
|
261
253
|
originalConfig.headers['Authorization'] = accessToken;
|
|
@@ -62,7 +62,7 @@ export declare const CommissionAgreementItemsApiAxiosParamCreator: (configuratio
|
|
|
62
62
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
63
63
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
64
64
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
65
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
65
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
66
66
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
68
68
|
* @throws {RequiredError}
|
|
@@ -122,7 +122,7 @@ export declare const CommissionAgreementItemsApiFp: (configuration?: Configurati
|
|
|
122
122
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
123
123
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
124
124
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
125
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
125
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
126
126
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
127
127
|
* @param {*} [options] Override http request option.
|
|
128
128
|
* @throws {RequiredError}
|
|
@@ -182,7 +182,7 @@ export declare const CommissionAgreementItemsApiFactory: (configuration?: Config
|
|
|
182
182
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
183
183
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
184
184
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
185
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
185
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
186
186
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
@@ -311,7 +311,7 @@ export interface CommissionAgreementItemsApiListCommissionAgreementItemsRequest
|
|
|
311
311
|
*/
|
|
312
312
|
readonly order?: string;
|
|
313
313
|
/**
|
|
314
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
314
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
315
315
|
* @type {string}
|
|
316
316
|
* @memberof CommissionAgreementItemsApiListCommissionAgreementItems
|
|
317
317
|
*/
|
|
@@ -260,7 +260,7 @@ var CommissionAgreementItemsApiAxiosParamCreator = function (configuration) {
|
|
|
260
260
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
261
261
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
262
262
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
263
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
263
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
264
264
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
265
265
|
* @param {*} [options] Override http request option.
|
|
266
266
|
* @throws {RequiredError}
|
|
@@ -460,7 +460,7 @@ var CommissionAgreementItemsApiFp = function (configuration) {
|
|
|
460
460
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
461
461
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
462
462
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
463
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
463
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
464
464
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
465
465
|
* @param {*} [options] Override http request option.
|
|
466
466
|
* @throws {RequiredError}
|
|
@@ -554,7 +554,7 @@ var CommissionAgreementItemsApiFactory = function (configuration, basePath, axio
|
|
|
554
554
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
555
555
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: itemName, itemDescription, commissionFormula, code</i>
|
|
556
556
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt</i>
|
|
557
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
557
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
558
558
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId</i>
|
|
559
559
|
* @param {*} [options] Override http request option.
|
|
560
560
|
* @throws {RequiredError}
|
|
@@ -60,7 +60,7 @@ export declare const CommissionAgreementVersionsApiAxiosParamCreator: (configura
|
|
|
60
60
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
61
61
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
62
62
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
63
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
63
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
64
64
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
@@ -110,7 +110,7 @@ export declare const CommissionAgreementVersionsApiFp: (configuration?: Configur
|
|
|
110
110
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
111
111
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
112
112
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
113
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
113
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
114
114
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
115
115
|
* @param {*} [options] Override http request option.
|
|
116
116
|
* @throws {RequiredError}
|
|
@@ -160,7 +160,7 @@ export declare const CommissionAgreementVersionsApiFactory: (configuration?: Con
|
|
|
160
160
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
161
161
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
162
162
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
163
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
163
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
164
164
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
165
165
|
* @param {*} [options] Override http request option.
|
|
166
166
|
* @throws {RequiredError}
|
|
@@ -279,7 +279,7 @@ export interface CommissionAgreementVersionsApiListCommissionAgreementVersionsRe
|
|
|
279
279
|
*/
|
|
280
280
|
readonly order?: string;
|
|
281
281
|
/**
|
|
282
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
282
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
283
283
|
* @type {string}
|
|
284
284
|
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
285
285
|
*/
|
|
@@ -260,7 +260,7 @@ var CommissionAgreementVersionsApiAxiosParamCreator = function (configuration) {
|
|
|
260
260
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
261
261
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
262
262
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
263
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
263
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
264
264
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
265
265
|
* @param {*} [options] Override http request option.
|
|
266
266
|
* @throws {RequiredError}
|
|
@@ -407,7 +407,7 @@ var CommissionAgreementVersionsApiFp = function (configuration) {
|
|
|
407
407
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
408
408
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
409
409
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
410
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
410
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
411
411
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
412
412
|
* @param {*} [options] Override http request option.
|
|
413
413
|
* @throws {RequiredError}
|
|
@@ -479,7 +479,7 @@ var CommissionAgreementVersionsApiFactory = function (configuration, basePath, a
|
|
|
479
479
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
480
480
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: versionDescription, code</i>
|
|
481
481
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, versionDescription, code, createdAt, updatedAt</i>
|
|
482
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
482
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
483
483
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, description, commissionAgreementId</i>
|
|
484
484
|
* @param {*} [options] Override http request option.
|
|
485
485
|
* @throws {RequiredError}
|
|
@@ -61,7 +61,7 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
|
|
|
61
61
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
62
62
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
63
63
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
64
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
64
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
65
65
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
66
66
|
* @param {*} [options] Override http request option.
|
|
67
67
|
* @throws {RequiredError}
|
|
@@ -120,7 +120,7 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
|
|
|
120
120
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
121
121
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
122
122
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
123
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
123
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
124
124
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
@@ -179,7 +179,7 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
|
|
|
179
179
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
180
180
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
181
181
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
182
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
182
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
183
183
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
184
184
|
* @param {*} [options] Override http request option.
|
|
185
185
|
* @throws {RequiredError}
|
|
@@ -302,7 +302,7 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
302
302
|
*/
|
|
303
303
|
readonly order?: string;
|
|
304
304
|
/**
|
|
305
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
305
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
306
306
|
* @type {string}
|
|
307
307
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
308
308
|
*/
|
|
@@ -254,7 +254,7 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
254
254
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
255
255
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
256
256
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
257
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
257
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
258
258
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
259
259
|
* @param {*} [options] Override http request option.
|
|
260
260
|
* @throws {RequiredError}
|
|
@@ -453,7 +453,7 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
453
453
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
454
454
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
455
455
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
456
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
456
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
457
457
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
458
458
|
* @param {*} [options] Override http request option.
|
|
459
459
|
* @throws {RequiredError}
|
|
@@ -546,7 +546,7 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
|
|
|
546
546
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
547
547
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: displayName, partnerCode, code</i>
|
|
548
548
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, displayName, partnerCode, code, createdAt, updatedAt</i>
|
|
549
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
549
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
550
550
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, partnerCode, displayName, commissionAgreementId</i>
|
|
551
551
|
* @param {*} [options] Override http request option.
|
|
552
552
|
* @throws {RequiredError}
|
|
@@ -129,12 +129,12 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
129
129
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
130
130
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
131
131
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
132
|
-
* @param {
|
|
132
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
133
133
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
134
134
|
* @param {*} [options] Override http request option.
|
|
135
135
|
* @throws {RequiredError}
|
|
136
136
|
*/
|
|
137
|
-
listPolicyObjects: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
137
|
+
listPolicyObjects: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
138
138
|
/**
|
|
139
139
|
* Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
140
140
|
* @summary List policy versions
|
|
@@ -309,12 +309,12 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
309
309
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
310
310
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
311
311
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
312
|
-
* @param {
|
|
312
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
313
313
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
314
314
|
* @param {*} [options] Override http request option.
|
|
315
315
|
* @throws {RequiredError}
|
|
316
316
|
*/
|
|
317
|
-
listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
317
|
+
listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyObjectsResponseClass>>;
|
|
318
318
|
/**
|
|
319
319
|
* Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
320
320
|
* @summary List policy versions
|
|
@@ -489,12 +489,12 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
489
489
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
490
490
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
491
491
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
492
|
-
* @param {
|
|
492
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
493
493
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
494
494
|
* @param {*} [options] Override http request option.
|
|
495
495
|
* @throws {RequiredError}
|
|
496
496
|
*/
|
|
497
|
-
listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
497
|
+
listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyObjectsResponseClass>;
|
|
498
498
|
/**
|
|
499
499
|
* Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
500
500
|
* @summary List policy versions
|
|
@@ -833,11 +833,11 @@ export interface PoliciesApiListPolicyObjectsRequest {
|
|
|
833
833
|
*/
|
|
834
834
|
readonly order?: string;
|
|
835
835
|
/**
|
|
836
|
-
*
|
|
837
|
-
* @type {
|
|
836
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
837
|
+
* @type {string}
|
|
838
838
|
* @memberof PoliciesApiListPolicyObjects
|
|
839
839
|
*/
|
|
840
|
-
readonly expand?:
|
|
840
|
+
readonly expand?: string;
|
|
841
841
|
/**
|
|
842
842
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
843
843
|
* @type {string}
|
package/dist/api/policies-api.js
CHANGED
|
@@ -536,7 +536,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
536
536
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
537
537
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
538
538
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
539
|
-
* @param {
|
|
539
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
540
540
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
541
541
|
* @param {*} [options] Override http request option.
|
|
542
542
|
* @throws {RequiredError}
|
|
@@ -1191,7 +1191,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1191
1191
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1192
1192
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1193
1193
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
1194
|
-
* @param {
|
|
1194
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1195
1195
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1196
1196
|
* @param {*} [options] Override http request option.
|
|
1197
1197
|
* @throws {RequiredError}
|
|
@@ -1487,7 +1487,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1487
1487
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1488
1488
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1489
1489
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt</i>
|
|
1490
|
-
* @param {
|
|
1490
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1491
1491
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, insuredObjectId, insuredObjectName, policyCode, date</i>
|
|
1492
1492
|
* @param {*} [options] Override http request option.
|
|
1493
1493
|
* @throws {RequiredError}
|
package/dist/base.d.ts
CHANGED
|
@@ -53,16 +53,14 @@ export declare class BaseAPI {
|
|
|
53
53
|
protected configuration: Configuration;
|
|
54
54
|
private username?;
|
|
55
55
|
private password?;
|
|
56
|
-
private permissions?;
|
|
57
56
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
58
57
|
initialize(env?: Environment): Promise<void>;
|
|
59
58
|
private loadCredentials;
|
|
60
59
|
private readConfigFile;
|
|
61
60
|
private readEnvVariables;
|
|
62
61
|
selectEnvironment(env: Environment): void;
|
|
63
|
-
getPermissions(): Array<string>;
|
|
64
62
|
authorize(username: string, password: string): Promise<void>;
|
|
65
|
-
refreshTokenInternal(): Promise<
|
|
63
|
+
refreshTokenInternal(): Promise<string>;
|
|
66
64
|
private extractRefreshToken;
|
|
67
65
|
getConfiguration(): Configuration;
|
|
68
66
|
private attachInterceptor;
|
package/dist/base.js
CHANGED
|
@@ -242,14 +242,11 @@ var BaseAPI = /** @class */ (function () {
|
|
|
242
242
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
243
243
|
this.configuration.basePath = env;
|
|
244
244
|
};
|
|
245
|
-
BaseAPI.prototype.getPermissions = function () {
|
|
246
|
-
return this.permissions.split(',');
|
|
247
|
-
};
|
|
248
245
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
249
246
|
return __awaiter(this, void 0, void 0, function () {
|
|
250
|
-
var options, response,
|
|
251
|
-
return __generator(this, function (
|
|
252
|
-
switch (
|
|
247
|
+
var options, response, accessToken, refreshToken;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
253
250
|
case 0:
|
|
254
251
|
options = {
|
|
255
252
|
method: 'POST',
|
|
@@ -263,11 +260,10 @@ var BaseAPI = /** @class */ (function () {
|
|
|
263
260
|
};
|
|
264
261
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
265
262
|
case 1:
|
|
266
|
-
response =
|
|
267
|
-
|
|
263
|
+
response = _a.sent();
|
|
264
|
+
accessToken = response.data.accessToken;
|
|
268
265
|
this.configuration.username = username;
|
|
269
266
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
270
|
-
this.permissions = permissions;
|
|
271
267
|
refreshToken = this.extractRefreshToken(response);
|
|
272
268
|
this.configuration.refreshToken = refreshToken;
|
|
273
269
|
return [2 /*return*/];
|
|
@@ -277,13 +273,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
277
273
|
};
|
|
278
274
|
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
279
275
|
return __awaiter(this, void 0, void 0, function () {
|
|
280
|
-
var _a, username, refreshToken, options,
|
|
276
|
+
var _a, username, refreshToken, options, accessToken;
|
|
281
277
|
return __generator(this, function (_b) {
|
|
282
278
|
switch (_b.label) {
|
|
283
279
|
case 0:
|
|
284
280
|
_a = this.configuration, username = _a.username, refreshToken = _a.refreshToken;
|
|
285
281
|
if (!username || !refreshToken) {
|
|
286
|
-
|
|
282
|
+
return [2 /*return*/, ''];
|
|
287
283
|
}
|
|
288
284
|
options = {
|
|
289
285
|
method: 'POST',
|
|
@@ -297,8 +293,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
297
293
|
};
|
|
298
294
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
299
295
|
case 1:
|
|
300
|
-
|
|
301
|
-
return [2 /*return*/,
|
|
296
|
+
accessToken = (_b.sent()).data.accessToken;
|
|
297
|
+
return [2 /*return*/, accessToken];
|
|
302
298
|
}
|
|
303
299
|
});
|
|
304
300
|
});
|
|
@@ -318,27 +314,26 @@ var BaseAPI = /** @class */ (function () {
|
|
|
318
314
|
axios.interceptors.response.use(function (res) {
|
|
319
315
|
return res;
|
|
320
316
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
321
|
-
var originalConfig,
|
|
322
|
-
return __generator(this, function (
|
|
323
|
-
switch (
|
|
317
|
+
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
318
|
+
return __generator(this, function (_a) {
|
|
319
|
+
switch (_a.label) {
|
|
324
320
|
case 0:
|
|
325
321
|
originalConfig = err.config;
|
|
326
322
|
if (!err.response) return [3 /*break*/, 5];
|
|
327
323
|
if (!(err.response.status === 401 && !originalConfig._retry)) return [3 /*break*/, 4];
|
|
328
324
|
originalConfig._retry = true;
|
|
329
|
-
|
|
325
|
+
_a.label = 1;
|
|
330
326
|
case 1:
|
|
331
|
-
|
|
327
|
+
_a.trys.push([1, 3, , 4]);
|
|
332
328
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
333
329
|
case 2:
|
|
334
|
-
|
|
330
|
+
tokenString = _a.sent();
|
|
335
331
|
accessToken = "Bearer ".concat(tokenString);
|
|
336
|
-
this.permissions = permissions;
|
|
337
332
|
originalConfig.headers['Authorization'] = "Bearer ".concat(accessToken);
|
|
338
333
|
this.configuration.accessToken = accessToken;
|
|
339
334
|
return [2 /*return*/, axios.request(originalConfig)];
|
|
340
335
|
case 3:
|
|
341
|
-
_error_1 =
|
|
336
|
+
_error_1 = _a.sent();
|
|
342
337
|
if (_error_1.response && _error_1.response.data) {
|
|
343
338
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
344
339
|
}
|
|
@@ -354,20 +349,19 @@ var BaseAPI = /** @class */ (function () {
|
|
|
354
349
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
355
350
|
&& _retry_count < 4)) return [3 /*break*/, 9];
|
|
356
351
|
_retry_count++;
|
|
357
|
-
|
|
352
|
+
_a.label = 6;
|
|
358
353
|
case 6:
|
|
359
|
-
|
|
354
|
+
_a.trys.push([6, 8, , 9]);
|
|
360
355
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
361
356
|
case 7:
|
|
362
|
-
|
|
357
|
+
tokenString = _a.sent();
|
|
363
358
|
accessToken = "Bearer ".concat(tokenString);
|
|
364
|
-
this.permissions = permissions;
|
|
365
359
|
_retry = true;
|
|
366
360
|
originalConfig.headers['Authorization'] = accessToken;
|
|
367
361
|
this.configuration.accessToken = accessToken;
|
|
368
362
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
369
363
|
case 8:
|
|
370
|
-
_error_2 =
|
|
364
|
+
_error_2 = _a.sent();
|
|
371
365
|
if (_error_2.response && _error_2.response.data) {
|
|
372
366
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
373
367
|
}
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface LinkLeadPartnerRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
* The code of the partner with which the lead will be linked.
|
|
19
|
+
* The code of the partner with which the lead will be linked. Either this field or \'partnerNumber\' must be passed (\'partnerNumber\' is preferred).
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof LinkLeadPartnerRequestDto
|
|
22
22
|
*/
|
|
23
23
|
'partnerCode': string;
|
|
24
24
|
/**
|
|
25
|
-
* The code of role that the partner will have in the established link between the lead and the partner.
|
|
25
|
+
* The code of role that the partner will have in the established link between the lead and the partner. Either this field or \'partnerRoleSlug\' must be passed (\'partnerRoleSlug\' is preferred).
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof LinkLeadPartnerRequestDto
|
|
28
28
|
*/
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface LinkLeadPartnerRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
* The code of the partner with which the lead will be linked.
|
|
24
|
+
* The code of the partner with which the lead will be linked. Either this field or \'partnerNumber\' must be passed (\'partnerNumber\' is preferred).
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof LinkLeadPartnerRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'partnerCode': string;
|
|
29
29
|
/**
|
|
30
|
-
* The code of role that the partner will have in the established link between the lead and the partner.
|
|
30
|
+
* The code of role that the partner will have in the established link between the lead and the partner. Either this field or \'partnerRoleSlug\' must be passed (\'partnerRoleSlug\' is preferred).
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof LinkLeadPartnerRequestDto
|
|
33
33
|
*/
|