@emilgroup/insurance-sdk 1.54.1-beta.1 → 1.55.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/policies-api.ts +8 -8
- package/base.ts +3 -3
- package/dist/api/policies-api.d.ts +8 -8
- package/dist/api/policies-api.js +6 -6
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -2
- package/dist/models/create-product-field-request-dto.d.ts +0 -6
- package/dist/models/product-field-class.d.ts +0 -6
- package/dist/models/shared-product-field-class.d.ts +0 -6
- package/dist/models/update-product-field-request-dto.d.ts +0 -6
- package/models/create-product-field-request-dto.ts +0 -6
- package/models/product-field-class.ts +0 -6
- package/models/shared-product-field-class.ts +0 -6
- package/models/update-product-field-request-dto.ts +0 -6
- 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@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk@1.55.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk@1.55.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/policies-api.ts
CHANGED
|
@@ -416,11 +416,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
416
416
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
417
417
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
418
418
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
419
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
419
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
420
420
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
421
421
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
422
422
|
* @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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
423
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
423
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
424
424
|
* @param {*} [options] Override http request option.
|
|
425
425
|
* @throws {RequiredError}
|
|
426
426
|
*/
|
|
@@ -1053,11 +1053,11 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1053
1053
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1054
1054
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1055
1055
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1056
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1056
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1057
1057
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1058
1058
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1059
1059
|
* @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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
1060
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1060
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1061
1061
|
* @param {*} [options] Override http request option.
|
|
1062
1062
|
* @throws {RequiredError}
|
|
1063
1063
|
*/
|
|
@@ -1278,11 +1278,11 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1278
1278
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1279
1279
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1280
1280
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1281
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1281
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1282
1282
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1283
1283
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1284
1284
|
* @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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
1285
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1285
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1286
1286
|
* @param {*} [options] Override http request option.
|
|
1287
1287
|
* @throws {RequiredError}
|
|
1288
1288
|
*/
|
|
@@ -1609,7 +1609,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
1609
1609
|
readonly pageToken?: any
|
|
1610
1610
|
|
|
1611
1611
|
/**
|
|
1612
|
-
* 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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1612
|
+
* 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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1613
1613
|
* @type {string}
|
|
1614
1614
|
* @memberof PoliciesApiListPolicies
|
|
1615
1615
|
*/
|
|
@@ -1637,7 +1637,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
1637
1637
|
readonly expand?: string
|
|
1638
1638
|
|
|
1639
1639
|
/**
|
|
1640
|
-
* 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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1640
|
+
* 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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1641
1641
|
* @type {string}
|
|
1642
1642
|
* @memberof PoliciesApiListPolicies
|
|
1643
1643
|
*/
|
package/base.ts
CHANGED
|
@@ -34,7 +34,7 @@ export const COLLECTION_FORMATS = {
|
|
|
34
34
|
|
|
35
35
|
export interface LoginClass {
|
|
36
36
|
accessToken: string;
|
|
37
|
-
permissions:
|
|
37
|
+
permissions: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export enum Environment {
|
|
@@ -77,7 +77,7 @@ const TOKEN_DATA = 'APP_TOKEN';
|
|
|
77
77
|
export class BaseAPI {
|
|
78
78
|
protected configuration: Configuration | undefined;
|
|
79
79
|
private tokenData?: TokenData;
|
|
80
|
-
private permissions
|
|
80
|
+
private permissions?: string;
|
|
81
81
|
|
|
82
82
|
constructor(configuration?: Configuration,
|
|
83
83
|
protected basePath: string = BASE_PATH,
|
|
@@ -111,7 +111,7 @@ export class BaseAPI {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
getPermissions(): Array<string> {
|
|
114
|
-
return this.permissions;
|
|
114
|
+
return this.permissions.split(',');
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
async authorize(username: string, password: string): Promise<void> {
|
|
@@ -111,11 +111,11 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
111
111
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
112
112
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
113
113
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
114
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
114
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
115
115
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
116
116
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
117
117
|
* @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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
118
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
118
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
119
119
|
* @param {*} [options] Override http request option.
|
|
120
120
|
* @throws {RequiredError}
|
|
121
121
|
*/
|
|
@@ -291,11 +291,11 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
291
291
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
292
292
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
293
293
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
294
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
294
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
295
295
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
296
296
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
297
297
|
* @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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
298
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
298
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
299
299
|
* @param {*} [options] Override http request option.
|
|
300
300
|
* @throws {RequiredError}
|
|
301
301
|
*/
|
|
@@ -471,11 +471,11 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
471
471
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
472
472
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
473
473
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
474
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
474
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
475
475
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
476
476
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
477
477
|
* @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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
478
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
478
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
479
479
|
* @param {*} [options] Override http request option.
|
|
480
480
|
* @throws {RequiredError}
|
|
481
481
|
*/
|
|
@@ -760,7 +760,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
760
760
|
*/
|
|
761
761
|
readonly pageToken?: any;
|
|
762
762
|
/**
|
|
763
|
-
* 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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
763
|
+
* 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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
764
764
|
* @type {string}
|
|
765
765
|
* @memberof PoliciesApiListPolicies
|
|
766
766
|
*/
|
|
@@ -784,7 +784,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
784
784
|
*/
|
|
785
785
|
readonly expand?: string;
|
|
786
786
|
/**
|
|
787
|
-
* 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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
787
|
+
* 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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
788
788
|
* @type {string}
|
|
789
789
|
* @memberof PoliciesApiListPolicies
|
|
790
790
|
*/
|
package/dist/api/policies-api.js
CHANGED
|
@@ -457,11 +457,11 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
457
457
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
458
458
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
459
459
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
461
461
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
463
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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
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: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
465
465
|
* @param {*} [options] Override http request option.
|
|
466
466
|
* @throws {RequiredError}
|
|
467
467
|
*/
|
|
@@ -1157,11 +1157,11 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1157
1157
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1158
1158
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1159
1159
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1160
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1160
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1161
1161
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1162
1162
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1163
1163
|
* @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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
1164
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1164
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1165
1165
|
* @param {*} [options] Override http request option.
|
|
1166
1166
|
* @throws {RequiredError}
|
|
1167
1167
|
*/
|
|
@@ -1463,11 +1463,11 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1463
1463
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1464
1464
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1465
1465
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1466
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1466
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1467
1467
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1468
1468
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1469
1469
|
* @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/> <i>Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
1470
|
-
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData
|
|
1470
|
+
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1471
1471
|
* @param {*} [options] Override http request option.
|
|
1472
1472
|
* @throws {RequiredError}
|
|
1473
1473
|
*/
|
package/dist/base.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
24
24
|
};
|
|
25
25
|
export interface LoginClass {
|
|
26
26
|
accessToken: string;
|
|
27
|
-
permissions:
|
|
27
|
+
permissions: string;
|
|
28
28
|
}
|
|
29
29
|
export declare enum Environment {
|
|
30
30
|
Production = "https://apiv2.emil.de",
|
|
@@ -52,7 +52,7 @@ export declare class BaseAPI {
|
|
|
52
52
|
protected axios: AxiosInstance;
|
|
53
53
|
protected configuration: Configuration | undefined;
|
|
54
54
|
private tokenData?;
|
|
55
|
-
private permissions
|
|
55
|
+
private permissions?;
|
|
56
56
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
57
57
|
selectEnvironment(env: Environment): void;
|
|
58
58
|
selectBasePath(path: string): void;
|
package/dist/base.js
CHANGED
|
@@ -121,7 +121,6 @@ var BaseAPI = /** @class */ (function () {
|
|
|
121
121
|
if (axios === void 0) { axios = axios_1.default; }
|
|
122
122
|
this.basePath = basePath;
|
|
123
123
|
this.axios = axios;
|
|
124
|
-
this.permissions = [];
|
|
125
124
|
this.loadTokenData();
|
|
126
125
|
if (configuration) {
|
|
127
126
|
this.configuration = configuration;
|
|
@@ -145,7 +144,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
145
144
|
this.configuration.basePath = path;
|
|
146
145
|
};
|
|
147
146
|
BaseAPI.prototype.getPermissions = function () {
|
|
148
|
-
return this.permissions;
|
|
147
|
+
return this.permissions.split(',');
|
|
149
148
|
};
|
|
150
149
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
151
150
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -135,12 +135,6 @@ export interface CreateProductFieldRequestDto {
|
|
|
135
135
|
* @memberof CreateProductFieldRequestDto
|
|
136
136
|
*/
|
|
137
137
|
'legacyBfOrder'?: number;
|
|
138
|
-
/**
|
|
139
|
-
* Product field metadata object. The field may contain special data specific to the product.
|
|
140
|
-
* @type {object}
|
|
141
|
-
* @memberof CreateProductFieldRequestDto
|
|
142
|
-
*/
|
|
143
|
-
'metadata'?: object;
|
|
144
138
|
}
|
|
145
139
|
export declare const CreateProductFieldRequestDtoTypeEntityEnum: {
|
|
146
140
|
readonly SystemProductFieldType: "system_product_field_type";
|
|
@@ -123,12 +123,6 @@ export interface ProductFieldClass {
|
|
|
123
123
|
* @memberof ProductFieldClass
|
|
124
124
|
*/
|
|
125
125
|
'order': number;
|
|
126
|
-
/**
|
|
127
|
-
* Product field metadata object. The field may contain special data specific to the product.
|
|
128
|
-
* @type {object}
|
|
129
|
-
* @memberof ProductFieldClass
|
|
130
|
-
*/
|
|
131
|
-
'metadata'?: object;
|
|
132
126
|
/**
|
|
133
127
|
* Time at which the object was created.
|
|
134
128
|
* @type {string}
|
|
@@ -123,12 +123,6 @@ export interface SharedProductFieldClass {
|
|
|
123
123
|
* @memberof SharedProductFieldClass
|
|
124
124
|
*/
|
|
125
125
|
'order': number;
|
|
126
|
-
/**
|
|
127
|
-
* Product field metadata object. The field may contain special data specific to the product.
|
|
128
|
-
* @type {object}
|
|
129
|
-
* @memberof SharedProductFieldClass
|
|
130
|
-
*/
|
|
131
|
-
'metadata'?: object;
|
|
132
126
|
/**
|
|
133
127
|
* Time at which the object was created.
|
|
134
128
|
* @type {string}
|
|
@@ -141,12 +141,6 @@ export interface UpdateProductFieldRequestDto {
|
|
|
141
141
|
* @memberof UpdateProductFieldRequestDto
|
|
142
142
|
*/
|
|
143
143
|
'legacyBfOrder'?: number;
|
|
144
|
-
/**
|
|
145
|
-
* Product field metadata object. The field may contain special data specific to the product.
|
|
146
|
-
* @type {object}
|
|
147
|
-
* @memberof UpdateProductFieldRequestDto
|
|
148
|
-
*/
|
|
149
|
-
'metadata'?: object;
|
|
150
144
|
}
|
|
151
145
|
export declare const UpdateProductFieldRequestDtoTypeEntityEnum: {
|
|
152
146
|
readonly SystemProductFieldType: "system_product_field_type";
|
|
@@ -140,12 +140,6 @@ export interface CreateProductFieldRequestDto {
|
|
|
140
140
|
* @memberof CreateProductFieldRequestDto
|
|
141
141
|
*/
|
|
142
142
|
'legacyBfOrder'?: number;
|
|
143
|
-
/**
|
|
144
|
-
* Product field metadata object. The field may contain special data specific to the product.
|
|
145
|
-
* @type {object}
|
|
146
|
-
* @memberof CreateProductFieldRequestDto
|
|
147
|
-
*/
|
|
148
|
-
'metadata'?: object;
|
|
149
143
|
}
|
|
150
144
|
|
|
151
145
|
export const CreateProductFieldRequestDtoTypeEntityEnum = {
|
|
@@ -128,12 +128,6 @@ export interface ProductFieldClass {
|
|
|
128
128
|
* @memberof ProductFieldClass
|
|
129
129
|
*/
|
|
130
130
|
'order': number;
|
|
131
|
-
/**
|
|
132
|
-
* Product field metadata object. The field may contain special data specific to the product.
|
|
133
|
-
* @type {object}
|
|
134
|
-
* @memberof ProductFieldClass
|
|
135
|
-
*/
|
|
136
|
-
'metadata'?: object;
|
|
137
131
|
/**
|
|
138
132
|
* Time at which the object was created.
|
|
139
133
|
* @type {string}
|
|
@@ -128,12 +128,6 @@ export interface SharedProductFieldClass {
|
|
|
128
128
|
* @memberof SharedProductFieldClass
|
|
129
129
|
*/
|
|
130
130
|
'order': number;
|
|
131
|
-
/**
|
|
132
|
-
* Product field metadata object. The field may contain special data specific to the product.
|
|
133
|
-
* @type {object}
|
|
134
|
-
* @memberof SharedProductFieldClass
|
|
135
|
-
*/
|
|
136
|
-
'metadata'?: object;
|
|
137
131
|
/**
|
|
138
132
|
* Time at which the object was created.
|
|
139
133
|
* @type {string}
|
|
@@ -146,12 +146,6 @@ export interface UpdateProductFieldRequestDto {
|
|
|
146
146
|
* @memberof UpdateProductFieldRequestDto
|
|
147
147
|
*/
|
|
148
148
|
'legacyBfOrder'?: number;
|
|
149
|
-
/**
|
|
150
|
-
* Product field metadata object. The field may contain special data specific to the product.
|
|
151
|
-
* @type {object}
|
|
152
|
-
* @memberof UpdateProductFieldRequestDto
|
|
153
|
-
*/
|
|
154
|
-
'metadata'?: object;
|
|
155
149
|
}
|
|
156
150
|
|
|
157
151
|
export const UpdateProductFieldRequestDtoTypeEntityEnum = {
|