@emilgroup/insurance-sdk-node 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-node@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.55.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.55.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/policies-api.ts
CHANGED
|
@@ -420,11 +420,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
420
420
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
421
421
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
422
422
|
* @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.
|
|
423
|
-
* @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
|
|
423
|
+
* @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>
|
|
424
424
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
425
425
|
* @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>
|
|
426
426
|
* @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>
|
|
427
|
-
* @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
|
|
427
|
+
* @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>
|
|
428
428
|
* @param {*} [options] Override http request option.
|
|
429
429
|
* @throws {RequiredError}
|
|
430
430
|
*/
|
|
@@ -1057,11 +1057,11 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1057
1057
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1058
1058
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1059
1059
|
* @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.
|
|
1060
|
-
* @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
|
|
1060
|
+
* @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>
|
|
1061
1061
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1062
1062
|
* @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>
|
|
1063
1063
|
* @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>
|
|
1064
|
-
* @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
|
|
1064
|
+
* @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>
|
|
1065
1065
|
* @param {*} [options] Override http request option.
|
|
1066
1066
|
* @throws {RequiredError}
|
|
1067
1067
|
*/
|
|
@@ -1282,11 +1282,11 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1282
1282
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1283
1283
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1284
1284
|
* @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.
|
|
1285
|
-
* @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
|
|
1285
|
+
* @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>
|
|
1286
1286
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1287
1287
|
* @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>
|
|
1288
1288
|
* @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>
|
|
1289
|
-
* @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
|
|
1289
|
+
* @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>
|
|
1290
1290
|
* @param {*} [options] Override http request option.
|
|
1291
1291
|
* @throws {RequiredError}
|
|
1292
1292
|
*/
|
|
@@ -1613,7 +1613,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
1613
1613
|
readonly pageToken?: any
|
|
1614
1614
|
|
|
1615
1615
|
/**
|
|
1616
|
-
* 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
|
|
1616
|
+
* 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>
|
|
1617
1617
|
* @type {string}
|
|
1618
1618
|
* @memberof PoliciesApiListPolicies
|
|
1619
1619
|
*/
|
|
@@ -1641,7 +1641,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
1641
1641
|
readonly expand?: string
|
|
1642
1642
|
|
|
1643
1643
|
/**
|
|
1644
|
-
* 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
|
|
1644
|
+
* 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>
|
|
1645
1645
|
* @type {string}
|
|
1646
1646
|
* @memberof PoliciesApiListPolicies
|
|
1647
1647
|
*/
|
package/base.ts
CHANGED
|
@@ -41,7 +41,7 @@ export const COLLECTION_FORMATS = {
|
|
|
41
41
|
|
|
42
42
|
export interface LoginClass {
|
|
43
43
|
accessToken: string;
|
|
44
|
-
permissions:
|
|
44
|
+
permissions: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export enum Environment {
|
|
@@ -79,7 +79,7 @@ export class BaseAPI {
|
|
|
79
79
|
protected configuration: Configuration;
|
|
80
80
|
private username?: string;
|
|
81
81
|
private password?: string;
|
|
82
|
-
private permissions
|
|
82
|
+
private permissions?: string;
|
|
83
83
|
|
|
84
84
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
85
85
|
if (configuration) {
|
|
@@ -151,7 +151,7 @@ export class BaseAPI {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
getPermissions(): Array<string> {
|
|
154
|
-
return this.permissions;
|
|
154
|
+
return this.permissions.split(',');
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
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
|
@@ -461,11 +461,11 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
461
461
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
462
462
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
463
463
|
* @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.
|
|
464
|
-
* @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
|
|
464
|
+
* @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>
|
|
465
465
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
466
466
|
* @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>
|
|
467
467
|
* @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>
|
|
468
|
-
* @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
|
|
468
|
+
* @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>
|
|
469
469
|
* @param {*} [options] Override http request option.
|
|
470
470
|
* @throws {RequiredError}
|
|
471
471
|
*/
|
|
@@ -1161,11 +1161,11 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1161
1161
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1162
1162
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1163
1163
|
* @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.
|
|
1164
|
-
* @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
|
|
1164
|
+
* @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>
|
|
1165
1165
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1166
1166
|
* @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>
|
|
1167
1167
|
* @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>
|
|
1168
|
-
* @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
|
|
1168
|
+
* @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>
|
|
1169
1169
|
* @param {*} [options] Override http request option.
|
|
1170
1170
|
* @throws {RequiredError}
|
|
1171
1171
|
*/
|
|
@@ -1467,11 +1467,11 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1467
1467
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1468
1468
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1469
1469
|
* @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.
|
|
1470
|
-
* @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
|
|
1470
|
+
* @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>
|
|
1471
1471
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1472
1472
|
* @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>
|
|
1473
1473
|
* @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>
|
|
1474
|
-
* @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
|
|
1474
|
+
* @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>
|
|
1475
1475
|
* @param {*} [options] Override http request option.
|
|
1476
1476
|
* @throws {RequiredError}
|
|
1477
1477
|
*/
|
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",
|
|
@@ -53,7 +53,7 @@ export declare class BaseAPI {
|
|
|
53
53
|
protected configuration: Configuration;
|
|
54
54
|
private username?;
|
|
55
55
|
private password?;
|
|
56
|
-
private permissions
|
|
56
|
+
private permissions?;
|
|
57
57
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
58
58
|
initialize(env?: Environment): Promise<void>;
|
|
59
59
|
private loadCredentials;
|
package/dist/base.js
CHANGED
|
@@ -150,7 +150,6 @@ var BaseAPI = /** @class */ (function () {
|
|
|
150
150
|
if (axios === void 0) { axios = axios_1.default; }
|
|
151
151
|
this.basePath = basePath;
|
|
152
152
|
this.axios = axios;
|
|
153
|
-
this.permissions = [];
|
|
154
153
|
if (configuration) {
|
|
155
154
|
this.configuration = configuration;
|
|
156
155
|
this.basePath = configuration.basePath || this.basePath;
|
|
@@ -244,7 +243,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
244
243
|
this.configuration.basePath = env;
|
|
245
244
|
};
|
|
246
245
|
BaseAPI.prototype.getPermissions = function () {
|
|
247
|
-
return this.permissions;
|
|
246
|
+
return this.permissions.split(',');
|
|
248
247
|
};
|
|
249
248
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
250
249
|
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 = {
|