@emilgroup/insurance-sdk-node 1.37.0 → 1.39.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.
@@ -102,6 +102,7 @@ models/list-lead-versions-response-class.ts
102
102
  models/list-leads-response-class.ts
103
103
  models/list-named-ranges-response-class.ts
104
104
  models/list-policies-response-class.ts
105
+ models/list-policy-objects-response-class.ts
105
106
  models/list-premium-formulas-response-class.ts
106
107
  models/list-product-factors-response-class.ts
107
108
  models/list-product-field-types-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/insurance-sdk-node@1.37.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.39.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.37.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.39.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -33,6 +33,8 @@ import { GetPolicyResponseClass } from '../models';
33
33
  // @ts-ignore
34
34
  import { ListPoliciesResponseClass } from '../models';
35
35
  // @ts-ignore
36
+ import { ListPolicyObjectsResponseClass } from '../models';
37
+ // @ts-ignore
36
38
  import { PatchPolicyRequestDto } from '../models';
37
39
  // @ts-ignore
38
40
  import { PatchPolicyResponseClass } from '../models';
@@ -320,6 +322,79 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
320
322
 
321
323
 
322
324
 
325
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
326
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
327
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
328
+
329
+ return {
330
+ url: toPathString(localVarUrlObj),
331
+ options: localVarRequestOptions,
332
+ };
333
+ },
334
+ /**
335
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
336
+ * @summary List policy objects
337
+ * @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, policyCode, date</i> <br/> <i>policyCode</i> is required, other filters are optional.
338
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
339
+ * @param {number} [pageSize] Page size.
340
+ * @param {string} [pageToken] Page token.
341
+ * @param {string} [search] Search query.
342
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt</i>
343
+ * @param {string} [expand] No expanding supported
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ listPolicyObjects: async (filter: string, authorization?: string, pageSize?: number, pageToken?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
348
+ // verify required parameter 'filter' is not null or undefined
349
+ assertParamExists('listPolicyObjects', 'filter', filter)
350
+ const localVarPath = `/insuranceservice/v1/policies/policy-objects`;
351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
353
+ let baseOptions;
354
+ let baseAccessToken;
355
+ if (configuration) {
356
+ baseOptions = configuration.baseOptions;
357
+ baseAccessToken = configuration.accessToken;
358
+ }
359
+
360
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
361
+ const localVarHeaderParameter = {} as any;
362
+ const localVarQueryParameter = {} as any;
363
+
364
+ // authentication bearer required
365
+ // http bearer authentication required
366
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
367
+
368
+ if (pageSize !== undefined) {
369
+ localVarQueryParameter['pageSize'] = pageSize;
370
+ }
371
+
372
+ if (pageToken !== undefined) {
373
+ localVarQueryParameter['pageToken'] = pageToken;
374
+ }
375
+
376
+ if (filter !== undefined) {
377
+ localVarQueryParameter['filter'] = filter;
378
+ }
379
+
380
+ if (search !== undefined) {
381
+ localVarQueryParameter['search'] = search;
382
+ }
383
+
384
+ if (order !== undefined) {
385
+ localVarQueryParameter['order'] = order;
386
+ }
387
+
388
+ if (expand !== undefined) {
389
+ localVarQueryParameter['expand'] = expand;
390
+ }
391
+
392
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
393
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
394
+ }
395
+
396
+
397
+
323
398
  setSearchParams(localVarUrlObj, localVarQueryParameter);
324
399
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
325
400
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -662,6 +737,23 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
662
737
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options);
663
738
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
664
739
  },
740
+ /**
741
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
742
+ * @summary List policy objects
743
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
744
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
745
+ * @param {number} [pageSize] Page size.
746
+ * @param {string} [pageToken] Page token.
747
+ * @param {string} [search] Search query.
748
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
749
+ * @param {string} [expand] No expanding supported
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ */
753
+ async listPolicyObjects(filter: string, authorization?: string, pageSize?: number, pageToken?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyObjectsResponseClass>> {
754
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyObjects(filter, authorization, pageSize, pageToken, search, order, expand, options);
755
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
756
+ },
665
757
  /**
666
758
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
667
759
  * @summary Update the policy
@@ -800,6 +892,22 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
800
892
  listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass> {
801
893
  return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
802
894
  },
895
+ /**
896
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
897
+ * @summary List policy objects
898
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
899
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
900
+ * @param {number} [pageSize] Page size.
901
+ * @param {string} [pageToken] Page token.
902
+ * @param {string} [search] Search query.
903
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
904
+ * @param {string} [expand] No expanding supported
905
+ * @param {*} [options] Override http request option.
906
+ * @throws {RequiredError}
907
+ */
908
+ listPolicyObjects(filter: string, authorization?: string, pageSize?: number, pageToken?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPolicyObjectsResponseClass> {
909
+ return localVarFp.listPolicyObjects(filter, authorization, pageSize, pageToken, search, order, expand, options).then((request) => request(axios, basePath));
910
+ },
803
911
  /**
804
912
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
805
913
  * @summary Update the policy
@@ -1024,6 +1132,62 @@ export interface PoliciesApiListPoliciesRequest {
1024
1132
  readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'
1025
1133
  }
1026
1134
 
1135
+ /**
1136
+ * Request parameters for listPolicyObjects operation in PoliciesApi.
1137
+ * @export
1138
+ * @interface PoliciesApiListPolicyObjectsRequest
1139
+ */
1140
+ export interface PoliciesApiListPolicyObjectsRequest {
1141
+ /**
1142
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
1143
+ * @type {string}
1144
+ * @memberof PoliciesApiListPolicyObjects
1145
+ */
1146
+ readonly filter: string
1147
+
1148
+ /**
1149
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1150
+ * @type {string}
1151
+ * @memberof PoliciesApiListPolicyObjects
1152
+ */
1153
+ readonly authorization?: string
1154
+
1155
+ /**
1156
+ * Page size.
1157
+ * @type {number}
1158
+ * @memberof PoliciesApiListPolicyObjects
1159
+ */
1160
+ readonly pageSize?: number
1161
+
1162
+ /**
1163
+ * Page token.
1164
+ * @type {string}
1165
+ * @memberof PoliciesApiListPolicyObjects
1166
+ */
1167
+ readonly pageToken?: string
1168
+
1169
+ /**
1170
+ * Search query.
1171
+ * @type {string}
1172
+ * @memberof PoliciesApiListPolicyObjects
1173
+ */
1174
+ readonly search?: string
1175
+
1176
+ /**
1177
+ * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
1178
+ * @type {string}
1179
+ * @memberof PoliciesApiListPolicyObjects
1180
+ */
1181
+ readonly order?: string
1182
+
1183
+ /**
1184
+ * No expanding supported
1185
+ * @type {string}
1186
+ * @memberof PoliciesApiListPolicyObjects
1187
+ */
1188
+ readonly expand?: string
1189
+ }
1190
+
1027
1191
  /**
1028
1192
  * Request parameters for patchPolicy operation in PoliciesApi.
1029
1193
  * @export
@@ -1231,6 +1395,18 @@ export class PoliciesApi extends BaseAPI {
1231
1395
  return PoliciesApiFp(this.configuration).listPolicies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1232
1396
  }
1233
1397
 
1398
+ /**
1399
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
1400
+ * @summary List policy objects
1401
+ * @param {PoliciesApiListPolicyObjectsRequest} requestParameters Request parameters.
1402
+ * @param {*} [options] Override http request option.
1403
+ * @throws {RequiredError}
1404
+ * @memberof PoliciesApi
1405
+ */
1406
+ public listPolicyObjects(requestParameters: PoliciesApiListPolicyObjectsRequest, options?: AxiosRequestConfig) {
1407
+ return PoliciesApiFp(this.configuration).listPolicyObjects(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1408
+ }
1409
+
1234
1410
  /**
1235
1411
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1236
1412
  * @summary Update the policy
@@ -18,6 +18,7 @@ import { CreatePolicyRequestDto } from '../models';
18
18
  import { CreatePolicyResponseClass } from '../models';
19
19
  import { GetPolicyResponseClass } from '../models';
20
20
  import { ListPoliciesResponseClass } from '../models';
21
+ import { ListPolicyObjectsResponseClass } from '../models';
21
22
  import { PatchPolicyRequestDto } from '../models';
22
23
  import { PatchPolicyResponseClass } from '../models';
23
24
  import { SuspendPolicyRequestDto } from '../models';
@@ -85,6 +86,20 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
85
86
  * @throws {RequiredError}
86
87
  */
87
88
  listPolicies: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig) => Promise<RequestArgs>;
89
+ /**
90
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
91
+ * @summary List policy objects
92
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
94
+ * @param {number} [pageSize] Page size.
95
+ * @param {string} [pageToken] Page token.
96
+ * @param {string} [search] Search query.
97
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
98
+ * @param {string} [expand] No expanding supported
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ listPolicyObjects: (filter: string, authorization?: string, pageSize?: number, pageToken?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
88
103
  /**
89
104
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
90
105
  * @summary Update the policy
@@ -194,6 +209,20 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
194
209
  * @throws {RequiredError}
195
210
  */
196
211
  listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
212
+ /**
213
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
214
+ * @summary List policy objects
215
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
216
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
217
+ * @param {number} [pageSize] Page size.
218
+ * @param {string} [pageToken] Page token.
219
+ * @param {string} [search] Search query.
220
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
221
+ * @param {string} [expand] No expanding supported
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ listPolicyObjects(filter: string, authorization?: string, pageSize?: number, pageToken?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyObjectsResponseClass>>;
197
226
  /**
198
227
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
199
228
  * @summary Update the policy
@@ -303,6 +332,20 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
303
332
  * @throws {RequiredError}
304
333
  */
305
334
  listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass>;
335
+ /**
336
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
337
+ * @summary List policy objects
338
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
339
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
340
+ * @param {number} [pageSize] Page size.
341
+ * @param {string} [pageToken] Page token.
342
+ * @param {string} [search] Search query.
343
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
344
+ * @param {string} [expand] No expanding supported
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ listPolicyObjects(filter: string, authorization?: string, pageSize?: number, pageToken?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPolicyObjectsResponseClass>;
306
349
  /**
307
350
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
308
351
  * @summary Update the policy
@@ -497,6 +540,55 @@ export interface PoliciesApiListPoliciesRequest {
497
540
  */
498
541
  readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas';
499
542
  }
543
+ /**
544
+ * Request parameters for listPolicyObjects operation in PoliciesApi.
545
+ * @export
546
+ * @interface PoliciesApiListPolicyObjectsRequest
547
+ */
548
+ export interface PoliciesApiListPolicyObjectsRequest {
549
+ /**
550
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
551
+ * @type {string}
552
+ * @memberof PoliciesApiListPolicyObjects
553
+ */
554
+ readonly filter: string;
555
+ /**
556
+ * Bearer Token: provided by the login endpoint under the name accessToken.
557
+ * @type {string}
558
+ * @memberof PoliciesApiListPolicyObjects
559
+ */
560
+ readonly authorization?: string;
561
+ /**
562
+ * Page size.
563
+ * @type {number}
564
+ * @memberof PoliciesApiListPolicyObjects
565
+ */
566
+ readonly pageSize?: number;
567
+ /**
568
+ * Page token.
569
+ * @type {string}
570
+ * @memberof PoliciesApiListPolicyObjects
571
+ */
572
+ readonly pageToken?: string;
573
+ /**
574
+ * Search query.
575
+ * @type {string}
576
+ * @memberof PoliciesApiListPolicyObjects
577
+ */
578
+ readonly search?: string;
579
+ /**
580
+ * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
581
+ * @type {string}
582
+ * @memberof PoliciesApiListPolicyObjects
583
+ */
584
+ readonly order?: string;
585
+ /**
586
+ * No expanding supported
587
+ * @type {string}
588
+ * @memberof PoliciesApiListPolicyObjects
589
+ */
590
+ readonly expand?: string;
591
+ }
500
592
  /**
501
593
  * Request parameters for patchPolicy operation in PoliciesApi.
502
594
  * @export
@@ -674,6 +766,15 @@ export declare class PoliciesApi extends BaseAPI {
674
766
  * @memberof PoliciesApi
675
767
  */
676
768
  listPolicies(requestParameters?: PoliciesApiListPoliciesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
769
+ /**
770
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
771
+ * @summary List policy objects
772
+ * @param {PoliciesApiListPolicyObjectsRequest} requestParameters Request parameters.
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ * @memberof PoliciesApi
776
+ */
777
+ listPolicyObjects(requestParameters: PoliciesApiListPolicyObjectsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyObjectsResponseClass, any>>;
677
778
  /**
678
779
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
679
780
  * @summary Update the policy
@@ -370,6 +370,76 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
370
370
  });
371
371
  });
372
372
  },
373
+ /**
374
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
375
+ * @summary List policy objects
376
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
377
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
378
+ * @param {number} [pageSize] Page size.
379
+ * @param {string} [pageToken] Page token.
380
+ * @param {string} [search] Search query.
381
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
382
+ * @param {string} [expand] No expanding supported
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ listPolicyObjects: function (filter, authorization, pageSize, pageToken, search, order, expand, options) {
387
+ if (options === void 0) { options = {}; }
388
+ return __awaiter(_this, void 0, void 0, function () {
389
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
390
+ return __generator(this, function (_a) {
391
+ switch (_a.label) {
392
+ case 0:
393
+ // verify required parameter 'filter' is not null or undefined
394
+ (0, common_1.assertParamExists)('listPolicyObjects', 'filter', filter);
395
+ localVarPath = "/insuranceservice/v1/policies/policy-objects";
396
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
397
+ if (configuration) {
398
+ baseOptions = configuration.baseOptions;
399
+ baseAccessToken = configuration.accessToken;
400
+ }
401
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
402
+ localVarHeaderParameter = {};
403
+ localVarQueryParameter = {};
404
+ // authentication bearer required
405
+ // http bearer authentication required
406
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
407
+ case 1:
408
+ // authentication bearer required
409
+ // http bearer authentication required
410
+ _a.sent();
411
+ if (pageSize !== undefined) {
412
+ localVarQueryParameter['pageSize'] = pageSize;
413
+ }
414
+ if (pageToken !== undefined) {
415
+ localVarQueryParameter['pageToken'] = pageToken;
416
+ }
417
+ if (filter !== undefined) {
418
+ localVarQueryParameter['filter'] = filter;
419
+ }
420
+ if (search !== undefined) {
421
+ localVarQueryParameter['search'] = search;
422
+ }
423
+ if (order !== undefined) {
424
+ localVarQueryParameter['order'] = order;
425
+ }
426
+ if (expand !== undefined) {
427
+ localVarQueryParameter['expand'] = expand;
428
+ }
429
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
430
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
431
+ }
432
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
433
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
434
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
435
+ return [2 /*return*/, {
436
+ url: (0, common_1.toPathString)(localVarUrlObj),
437
+ options: localVarRequestOptions,
438
+ }];
439
+ }
440
+ });
441
+ });
442
+ },
373
443
  /**
374
444
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
375
445
  * @summary Update the policy
@@ -758,6 +828,32 @@ var PoliciesApiFp = function (configuration) {
758
828
  });
759
829
  });
760
830
  },
831
+ /**
832
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
833
+ * @summary List policy objects
834
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
835
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
836
+ * @param {number} [pageSize] Page size.
837
+ * @param {string} [pageToken] Page token.
838
+ * @param {string} [search] Search query.
839
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
840
+ * @param {string} [expand] No expanding supported
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ listPolicyObjects: function (filter, authorization, pageSize, pageToken, search, order, expand, options) {
845
+ return __awaiter(this, void 0, void 0, function () {
846
+ var localVarAxiosArgs;
847
+ return __generator(this, function (_a) {
848
+ switch (_a.label) {
849
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicyObjects(filter, authorization, pageSize, pageToken, search, order, expand, options)];
850
+ case 1:
851
+ localVarAxiosArgs = _a.sent();
852
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
853
+ }
854
+ });
855
+ });
856
+ },
761
857
  /**
762
858
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
763
859
  * @summary Update the policy
@@ -941,6 +1037,22 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
941
1037
  listPolicies: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
942
1038
  return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
943
1039
  },
1040
+ /**
1041
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
1042
+ * @summary List policy objects
1043
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, insuredObjectId, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
1044
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1045
+ * @param {number} [pageSize] Page size.
1046
+ * @param {string} [pageToken] Page token.
1047
+ * @param {string} [search] Search query.
1048
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, insuredObject, createdAt, updatedAt&lt;/i&gt;
1049
+ * @param {string} [expand] No expanding supported
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ listPolicyObjects: function (filter, authorization, pageSize, pageToken, search, order, expand, options) {
1054
+ return localVarFp.listPolicyObjects(filter, authorization, pageSize, pageToken, search, order, expand, options).then(function (request) { return request(axios, basePath); });
1055
+ },
944
1056
  /**
945
1057
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
946
1058
  * @summary Update the policy
@@ -1076,6 +1188,18 @@ var PoliciesApi = /** @class */ (function (_super) {
1076
1188
  if (requestParameters === void 0) { requestParameters = {}; }
1077
1189
  return (0, exports.PoliciesApiFp)(this.configuration).listPolicies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1078
1190
  };
1191
+ /**
1192
+ * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
1193
+ * @summary List policy objects
1194
+ * @param {PoliciesApiListPolicyObjectsRequest} requestParameters Request parameters.
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ * @memberof PoliciesApi
1198
+ */
1199
+ PoliciesApi.prototype.listPolicyObjects = function (requestParameters, options) {
1200
+ var _this = this;
1201
+ return (0, exports.PoliciesApiFp)(this.configuration).listPolicyObjects(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1202
+ };
1079
1203
  /**
1080
1204
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1081
1205
  * @summary Update the policy
@@ -77,6 +77,7 @@ export * from './list-lead-versions-response-class';
77
77
  export * from './list-leads-response-class';
78
78
  export * from './list-named-ranges-response-class';
79
79
  export * from './list-policies-response-class';
80
+ export * from './list-policy-objects-response-class';
80
81
  export * from './list-premium-formulas-response-class';
81
82
  export * from './list-product-factors-response-class';
82
83
  export * from './list-product-field-types-response-class';
@@ -93,6 +93,7 @@ __exportStar(require("./list-lead-versions-response-class"), exports);
93
93
  __exportStar(require("./list-leads-response-class"), exports);
94
94
  __exportStar(require("./list-named-ranges-response-class"), exports);
95
95
  __exportStar(require("./list-policies-response-class"), exports);
96
+ __exportStar(require("./list-policy-objects-response-class"), exports);
96
97
  __exportStar(require("./list-premium-formulas-response-class"), exports);
97
98
  __exportStar(require("./list-product-factors-response-class"), exports);
98
99
  __exportStar(require("./list-product-field-types-response-class"), exports);
@@ -0,0 +1,43 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PolicyObjectClass } from './policy-object-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListPolicyObjectsResponseClass
17
+ */
18
+ export interface ListPolicyObjectsResponseClass {
19
+ /**
20
+ * Policy objects
21
+ * @type {Array<PolicyObjectClass>}
22
+ * @memberof ListPolicyObjectsResponseClass
23
+ */
24
+ 'items': Array<PolicyObjectClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListPolicyObjectsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Items per page.
33
+ * @type {number}
34
+ * @memberof ListPolicyObjectsResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total amount of items.
39
+ * @type {number}
40
+ * @memberof ListPolicyObjectsResponseClass
41
+ */
42
+ 'totalItems': number;
43
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL InsuranceService
6
+ * The EMIL InsuranceService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,9 +26,9 @@ export interface TerminatePolicyRequestDto {
26
26
  * @type {string}
27
27
  * @memberof TerminatePolicyRequestDto
28
28
  */
29
- 'reason'?: TerminatePolicyRequestDtoReasonEnum;
29
+ 'terminationReason'?: TerminatePolicyRequestDtoTerminationReasonEnum;
30
30
  }
31
- export declare const TerminatePolicyRequestDtoReasonEnum: {
31
+ export declare const TerminatePolicyRequestDtoTerminationReasonEnum: {
32
32
  readonly TerminationAtRenewal: "termination_at_renewal";
33
33
  readonly TerminationAfterClaim: "termination_after_claim";
34
34
  readonly TerminationDueToUnderwriting: "termination_due_to_underwriting";
@@ -41,4 +41,4 @@ export declare const TerminatePolicyRequestDtoReasonEnum: {
41
41
  readonly Withdrawal: "withdrawal";
42
42
  readonly Other: "other";
43
43
  };
44
- export type TerminatePolicyRequestDtoReasonEnum = typeof TerminatePolicyRequestDtoReasonEnum[keyof typeof TerminatePolicyRequestDtoReasonEnum];
44
+ export type TerminatePolicyRequestDtoTerminationReasonEnum = typeof TerminatePolicyRequestDtoTerminationReasonEnum[keyof typeof TerminatePolicyRequestDtoTerminationReasonEnum];
@@ -13,8 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.TerminatePolicyRequestDtoReasonEnum = void 0;
17
- exports.TerminatePolicyRequestDtoReasonEnum = {
16
+ exports.TerminatePolicyRequestDtoTerminationReasonEnum = void 0;
17
+ exports.TerminatePolicyRequestDtoTerminationReasonEnum = {
18
18
  TerminationAtRenewal: 'termination_at_renewal',
19
19
  TerminationAfterClaim: 'termination_after_claim',
20
20
  TerminationDueToUnderwriting: 'termination_due_to_underwriting',
package/models/index.ts CHANGED
@@ -77,6 +77,7 @@ export * from './list-lead-versions-response-class';
77
77
  export * from './list-leads-response-class';
78
78
  export * from './list-named-ranges-response-class';
79
79
  export * from './list-policies-response-class';
80
+ export * from './list-policy-objects-response-class';
80
81
  export * from './list-premium-formulas-response-class';
81
82
  export * from './list-product-factors-response-class';
82
83
  export * from './list-product-field-types-response-class';
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { PolicyObjectClass } from './policy-object-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListPolicyObjectsResponseClass
22
+ */
23
+ export interface ListPolicyObjectsResponseClass {
24
+ /**
25
+ * Policy objects
26
+ * @type {Array<PolicyObjectClass>}
27
+ * @memberof ListPolicyObjectsResponseClass
28
+ */
29
+ 'items': Array<PolicyObjectClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListPolicyObjectsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListPolicyObjectsResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total amount of items.
44
+ * @type {number}
45
+ * @memberof ListPolicyObjectsResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
@@ -31,10 +31,10 @@ export interface TerminatePolicyRequestDto {
31
31
  * @type {string}
32
32
  * @memberof TerminatePolicyRequestDto
33
33
  */
34
- 'reason'?: TerminatePolicyRequestDtoReasonEnum;
34
+ 'terminationReason'?: TerminatePolicyRequestDtoTerminationReasonEnum;
35
35
  }
36
36
 
37
- export const TerminatePolicyRequestDtoReasonEnum = {
37
+ export const TerminatePolicyRequestDtoTerminationReasonEnum = {
38
38
  TerminationAtRenewal: 'termination_at_renewal',
39
39
  TerminationAfterClaim: 'termination_after_claim',
40
40
  TerminationDueToUnderwriting: 'termination_due_to_underwriting',
@@ -48,6 +48,6 @@ export const TerminatePolicyRequestDtoReasonEnum = {
48
48
  Other: 'other'
49
49
  } as const;
50
50
 
51
- export type TerminatePolicyRequestDtoReasonEnum = typeof TerminatePolicyRequestDtoReasonEnum[keyof typeof TerminatePolicyRequestDtoReasonEnum];
51
+ export type TerminatePolicyRequestDtoTerminationReasonEnum = typeof TerminatePolicyRequestDtoTerminationReasonEnum[keyof typeof TerminatePolicyRequestDtoTerminationReasonEnum];
52
52
 
53
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.37.0",
3
+ "version": "1.39.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [