@emilgroup/insurance-sdk-node 1.39.0 → 1.44.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.
@@ -57,6 +57,8 @@ models/create-status-transition-rule-response-class.ts
57
57
  models/csv-product-factor-dto.ts
58
58
  models/delete-response-class.ts
59
59
  models/empty-response-class.ts
60
+ models/filter-named-range-request-dto.ts
61
+ models/filter-named-range-response-class.ts
60
62
  models/get-insured-object-response-class.ts
61
63
  models/get-lead-response-class.ts
62
64
  models/get-lead-status-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.39.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.44.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.39.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.44.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -27,6 +27,8 @@ import { CreateNamedRangeResponseClass } from '../models';
27
27
  // @ts-ignore
28
28
  import { DeleteResponseClass } from '../models';
29
29
  // @ts-ignore
30
+ import { FilterNamedRangeResponseClass } from '../models';
31
+ // @ts-ignore
30
32
  import { GetNamedRangeResponseClass } from '../models';
31
33
  // @ts-ignore
32
34
  import { ListNamedRangesResponseClass } from '../models';
@@ -127,6 +129,76 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
127
129
 
128
130
 
129
131
 
132
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
133
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
135
+
136
+ return {
137
+ url: toPathString(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ },
141
+ /**
142
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
143
+ * @summary Filters the named range file rows.
144
+ * @param {string} code
145
+ * @param {string} [authorization] Bearer Token
146
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
147
+ * @param {string} [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.
148
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
149
+ * @param {string} [search] Search the list by any field.
150
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ filterNamedRanges: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
155
+ // verify required parameter 'code' is not null or undefined
156
+ assertParamExists('filterNamedRanges', 'code', code)
157
+ const localVarPath = `/insuranceservice/v1/named-ranges/{code}/records`
158
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
161
+ let baseOptions;
162
+ let baseAccessToken;
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ baseAccessToken = configuration.accessToken;
166
+ }
167
+
168
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
169
+ const localVarHeaderParameter = {} as any;
170
+ const localVarQueryParameter = {} as any;
171
+
172
+ // authentication bearer required
173
+ // http bearer authentication required
174
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
175
+
176
+ if (pageSize !== undefined) {
177
+ localVarQueryParameter['pageSize'] = pageSize;
178
+ }
179
+
180
+ if (pageToken !== undefined) {
181
+ localVarQueryParameter['pageToken'] = pageToken;
182
+ }
183
+
184
+ if (filters !== undefined) {
185
+ localVarQueryParameter['filters'] = filters;
186
+ }
187
+
188
+ if (search !== undefined) {
189
+ localVarQueryParameter['search'] = search;
190
+ }
191
+
192
+ if (order !== undefined) {
193
+ localVarQueryParameter['order'] = order;
194
+ }
195
+
196
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
197
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
198
+ }
199
+
200
+
201
+
130
202
  setSearchParams(localVarUrlObj, localVarQueryParameter);
131
203
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
204
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -337,6 +409,23 @@ export const NamedRangesApiFp = function(configuration?: Configuration) {
337
409
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNamedRange(id, authorization, options);
338
410
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
411
  },
412
+ /**
413
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
414
+ * @summary Filters the named range file rows.
415
+ * @param {string} code
416
+ * @param {string} [authorization] Bearer Token
417
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
418
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
419
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
420
+ * @param {string} [search] Search the list by any field.
421
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ async filterNamedRanges(code: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilterNamedRangeResponseClass>> {
426
+ const localVarAxiosArgs = await localVarAxiosParamCreator.filterNamedRanges(code, authorization, pageSize, pageToken, filters, search, order, options);
427
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
428
+ },
340
429
  /**
341
430
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
342
431
  * @summary Retrieve the named range
@@ -411,6 +500,22 @@ export const NamedRangesApiFactory = function (configuration?: Configuration, ba
411
500
  deleteNamedRange(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
412
501
  return localVarFp.deleteNamedRange(id, authorization, options).then((request) => request(axios, basePath));
413
502
  },
503
+ /**
504
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
505
+ * @summary Filters the named range file rows.
506
+ * @param {string} code
507
+ * @param {string} [authorization] Bearer Token
508
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
509
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
510
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
511
+ * @param {string} [search] Search the list by any field.
512
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ filterNamedRanges(code: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: any): AxiosPromise<FilterNamedRangeResponseClass> {
517
+ return localVarFp.filterNamedRanges(code, authorization, pageSize, pageToken, filters, search, order, options).then((request) => request(axios, basePath));
518
+ },
414
519
  /**
415
520
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
416
521
  * @summary Retrieve the named range
@@ -495,6 +600,62 @@ export interface NamedRangesApiDeleteNamedRangeRequest {
495
600
  readonly authorization?: string
496
601
  }
497
602
 
603
+ /**
604
+ * Request parameters for filterNamedRanges operation in NamedRangesApi.
605
+ * @export
606
+ * @interface NamedRangesApiFilterNamedRangesRequest
607
+ */
608
+ export interface NamedRangesApiFilterNamedRangesRequest {
609
+ /**
610
+ *
611
+ * @type {string}
612
+ * @memberof NamedRangesApiFilterNamedRanges
613
+ */
614
+ readonly code: string
615
+
616
+ /**
617
+ * Bearer Token
618
+ * @type {string}
619
+ * @memberof NamedRangesApiFilterNamedRanges
620
+ */
621
+ readonly authorization?: string
622
+
623
+ /**
624
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
625
+ * @type {number}
626
+ * @memberof NamedRangesApiFilterNamedRanges
627
+ */
628
+ readonly pageSize?: number
629
+
630
+ /**
631
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
632
+ * @type {string}
633
+ * @memberof NamedRangesApiFilterNamedRanges
634
+ */
635
+ readonly pageToken?: string
636
+
637
+ /**
638
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
639
+ * @type {string}
640
+ * @memberof NamedRangesApiFilterNamedRanges
641
+ */
642
+ readonly filters?: string
643
+
644
+ /**
645
+ * Search the list by any field.
646
+ * @type {string}
647
+ * @memberof NamedRangesApiFilterNamedRanges
648
+ */
649
+ readonly search?: string
650
+
651
+ /**
652
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
653
+ * @type {string}
654
+ * @memberof NamedRangesApiFilterNamedRanges
655
+ */
656
+ readonly order?: string
657
+ }
658
+
498
659
  /**
499
660
  * Request parameters for getNamedRange operation in NamedRangesApi.
500
661
  * @export
@@ -631,6 +792,18 @@ export class NamedRangesApi extends BaseAPI {
631
792
  return NamedRangesApiFp(this.configuration).deleteNamedRange(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
632
793
  }
633
794
 
795
+ /**
796
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
797
+ * @summary Filters the named range file rows.
798
+ * @param {NamedRangesApiFilterNamedRangesRequest} requestParameters Request parameters.
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ * @memberof NamedRangesApi
802
+ */
803
+ public filterNamedRanges(requestParameters: NamedRangesApiFilterNamedRangesRequest, options?: AxiosRequestConfig) {
804
+ return NamedRangesApiFp(this.configuration).filterNamedRanges(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then((request) => request(this.axios, this.basePath));
805
+ }
806
+
634
807
  /**
635
808
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
636
809
  * @summary Retrieve the named range
@@ -15,6 +15,7 @@ import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateNamedRangeRequestDto } from '../models';
16
16
  import { CreateNamedRangeResponseClass } from '../models';
17
17
  import { DeleteResponseClass } from '../models';
18
+ import { FilterNamedRangeResponseClass } from '../models';
18
19
  import { GetNamedRangeResponseClass } from '../models';
19
20
  import { ListNamedRangesResponseClass } from '../models';
20
21
  import { UpdateNamedRangeRequestDto } from '../models';
@@ -42,6 +43,20 @@ export declare const NamedRangesApiAxiosParamCreator: (configuration?: Configura
42
43
  * @throws {RequiredError}
43
44
  */
44
45
  deleteNamedRange: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
+ /**
47
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
48
+ * @summary Filters the named range file rows.
49
+ * @param {string} code
50
+ * @param {string} [authorization] Bearer Token
51
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
52
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
53
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
54
+ * @param {string} [search] Search the list by any field.
55
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ filterNamedRanges: (code: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
60
  /**
46
61
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
47
62
  * @summary Retrieve the named range
@@ -99,6 +114,20 @@ export declare const NamedRangesApiFp: (configuration?: Configuration) => {
99
114
  * @throws {RequiredError}
100
115
  */
101
116
  deleteNamedRange(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
117
+ /**
118
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
119
+ * @summary Filters the named range file rows.
120
+ * @param {string} code
121
+ * @param {string} [authorization] Bearer Token
122
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
123
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
124
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
125
+ * @param {string} [search] Search the list by any field.
126
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ filterNamedRanges(code: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilterNamedRangeResponseClass>>;
102
131
  /**
103
132
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
104
133
  * @summary Retrieve the named range
@@ -156,6 +185,20 @@ export declare const NamedRangesApiFactory: (configuration?: Configuration, base
156
185
  * @throws {RequiredError}
157
186
  */
158
187
  deleteNamedRange(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
188
+ /**
189
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
190
+ * @summary Filters the named range file rows.
191
+ * @param {string} code
192
+ * @param {string} [authorization] Bearer Token
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
195
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
196
+ * @param {string} [search] Search the list by any field.
197
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ filterNamedRanges(code: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: any): AxiosPromise<FilterNamedRangeResponseClass>;
159
202
  /**
160
203
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
161
204
  * @summary Retrieve the named range
@@ -228,6 +271,55 @@ export interface NamedRangesApiDeleteNamedRangeRequest {
228
271
  */
229
272
  readonly authorization?: string;
230
273
  }
274
+ /**
275
+ * Request parameters for filterNamedRanges operation in NamedRangesApi.
276
+ * @export
277
+ * @interface NamedRangesApiFilterNamedRangesRequest
278
+ */
279
+ export interface NamedRangesApiFilterNamedRangesRequest {
280
+ /**
281
+ *
282
+ * @type {string}
283
+ * @memberof NamedRangesApiFilterNamedRanges
284
+ */
285
+ readonly code: string;
286
+ /**
287
+ * Bearer Token
288
+ * @type {string}
289
+ * @memberof NamedRangesApiFilterNamedRanges
290
+ */
291
+ readonly authorization?: string;
292
+ /**
293
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
294
+ * @type {number}
295
+ * @memberof NamedRangesApiFilterNamedRanges
296
+ */
297
+ readonly pageSize?: number;
298
+ /**
299
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
300
+ * @type {string}
301
+ * @memberof NamedRangesApiFilterNamedRanges
302
+ */
303
+ readonly pageToken?: string;
304
+ /**
305
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
306
+ * @type {string}
307
+ * @memberof NamedRangesApiFilterNamedRanges
308
+ */
309
+ readonly filters?: string;
310
+ /**
311
+ * Search the list by any field.
312
+ * @type {string}
313
+ * @memberof NamedRangesApiFilterNamedRanges
314
+ */
315
+ readonly search?: string;
316
+ /**
317
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
318
+ * @type {string}
319
+ * @memberof NamedRangesApiFilterNamedRanges
320
+ */
321
+ readonly order?: string;
322
+ }
231
323
  /**
232
324
  * Request parameters for getNamedRange operation in NamedRangesApi.
233
325
  * @export
@@ -346,6 +438,15 @@ export declare class NamedRangesApi extends BaseAPI {
346
438
  * @memberof NamedRangesApi
347
439
  */
348
440
  deleteNamedRange(requestParameters: NamedRangesApiDeleteNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
441
+ /**
442
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
443
+ * @summary Filters the named range file rows.
444
+ * @param {NamedRangesApiFilterNamedRangesRequest} requestParameters Request parameters.
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ * @memberof NamedRangesApi
448
+ */
449
+ filterNamedRanges(requestParameters: NamedRangesApiFilterNamedRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FilterNamedRangeResponseClass, any>>;
349
450
  /**
350
451
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
351
452
  * @summary Retrieve the named range
@@ -193,6 +193,74 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
193
193
  });
194
194
  });
195
195
  },
196
+ /**
197
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
198
+ * @summary Filters the named range file rows.
199
+ * @param {string} code
200
+ * @param {string} [authorization] Bearer Token
201
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
202
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
203
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
204
+ * @param {string} [search] Search the list by any field.
205
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ filterNamedRanges: function (code, authorization, pageSize, pageToken, filters, search, order, options) {
210
+ if (options === void 0) { options = {}; }
211
+ return __awaiter(_this, void 0, void 0, function () {
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ return __generator(this, function (_a) {
214
+ switch (_a.label) {
215
+ case 0:
216
+ // verify required parameter 'code' is not null or undefined
217
+ (0, common_1.assertParamExists)('filterNamedRanges', 'code', code);
218
+ localVarPath = "/insuranceservice/v1/named-ranges/{code}/records"
219
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
220
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
221
+ if (configuration) {
222
+ baseOptions = configuration.baseOptions;
223
+ baseAccessToken = configuration.accessToken;
224
+ }
225
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
226
+ localVarHeaderParameter = {};
227
+ localVarQueryParameter = {};
228
+ // authentication bearer required
229
+ // http bearer authentication required
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
+ case 1:
232
+ // authentication bearer required
233
+ // http bearer authentication required
234
+ _a.sent();
235
+ if (pageSize !== undefined) {
236
+ localVarQueryParameter['pageSize'] = pageSize;
237
+ }
238
+ if (pageToken !== undefined) {
239
+ localVarQueryParameter['pageToken'] = pageToken;
240
+ }
241
+ if (filters !== undefined) {
242
+ localVarQueryParameter['filters'] = filters;
243
+ }
244
+ if (search !== undefined) {
245
+ localVarQueryParameter['search'] = search;
246
+ }
247
+ if (order !== undefined) {
248
+ localVarQueryParameter['order'] = order;
249
+ }
250
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ }
253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
256
+ return [2 /*return*/, {
257
+ url: (0, common_1.toPathString)(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ }];
260
+ }
261
+ });
262
+ });
263
+ },
196
264
  /**
197
265
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
198
266
  * @summary Retrieve the named range
@@ -414,6 +482,32 @@ var NamedRangesApiFp = function (configuration) {
414
482
  });
415
483
  });
416
484
  },
485
+ /**
486
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
487
+ * @summary Filters the named range file rows.
488
+ * @param {string} code
489
+ * @param {string} [authorization] Bearer Token
490
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
491
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
492
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
493
+ * @param {string} [search] Search the list by any field.
494
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ filterNamedRanges: function (code, authorization, pageSize, pageToken, filters, search, order, options) {
499
+ return __awaiter(this, void 0, void 0, function () {
500
+ var localVarAxiosArgs;
501
+ return __generator(this, function (_a) {
502
+ switch (_a.label) {
503
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.filterNamedRanges(code, authorization, pageSize, pageToken, filters, search, order, options)];
504
+ case 1:
505
+ localVarAxiosArgs = _a.sent();
506
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
507
+ }
508
+ });
509
+ });
510
+ },
417
511
  /**
418
512
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
419
513
  * @summary Retrieve the named range
@@ -515,6 +609,22 @@ var NamedRangesApiFactory = function (configuration, basePath, axios) {
515
609
  deleteNamedRange: function (id, authorization, options) {
516
610
  return localVarFp.deleteNamedRange(id, authorization, options).then(function (request) { return request(axios, basePath); });
517
611
  },
612
+ /**
613
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
614
+ * @summary Filters the named range file rows.
615
+ * @param {string} code
616
+ * @param {string} [authorization] Bearer Token
617
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
618
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
619
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
620
+ * @param {string} [search] Search the list by any field.
621
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ filterNamedRanges: function (code, authorization, pageSize, pageToken, filters, search, order, options) {
626
+ return localVarFp.filterNamedRanges(code, authorization, pageSize, pageToken, filters, search, order, options).then(function (request) { return request(axios, basePath); });
627
+ },
518
628
  /**
519
629
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
520
630
  * @summary Retrieve the named range
@@ -592,6 +702,18 @@ var NamedRangesApi = /** @class */ (function (_super) {
592
702
  var _this = this;
593
703
  return (0, exports.NamedRangesApiFp)(this.configuration).deleteNamedRange(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
594
704
  };
705
+ /**
706
+ * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output.
707
+ * @summary Filters the named range file rows.
708
+ * @param {NamedRangesApiFilterNamedRangesRequest} requestParameters Request parameters.
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ * @memberof NamedRangesApi
712
+ */
713
+ NamedRangesApi.prototype.filterNamedRanges = function (requestParameters, options) {
714
+ var _this = this;
715
+ return (0, exports.NamedRangesApiFp)(this.configuration).filterNamedRanges(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then(function (request) { return request(_this.axios, _this.basePath); });
716
+ };
595
717
  /**
596
718
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information.
597
719
  * @summary Retrieve the named range
@@ -0,0 +1,54 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface FilterNamedRangeRequestDto
16
+ */
17
+ export interface FilterNamedRangeRequestDto {
18
+ /**
19
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
20
+ * @type {number}
21
+ * @memberof FilterNamedRangeRequestDto
22
+ */
23
+ 'pageSize'?: number;
24
+ /**
25
+ * 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.
26
+ * @type {string}
27
+ * @memberof FilterNamedRangeRequestDto
28
+ */
29
+ 'pageToken'?: string;
30
+ /**
31
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
32
+ * @type {string}
33
+ * @memberof FilterNamedRangeRequestDto
34
+ */
35
+ 'filters'?: string;
36
+ /**
37
+ * Search the list by any field.
38
+ * @type {string}
39
+ * @memberof FilterNamedRangeRequestDto
40
+ */
41
+ 'search'?: string;
42
+ /**
43
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
44
+ * @type {string}
45
+ * @memberof FilterNamedRangeRequestDto
46
+ */
47
+ 'order'?: string;
48
+ /**
49
+ * Unique identifier of the named range that this object belongs to.
50
+ * @type {string}
51
+ * @memberof FilterNamedRangeRequestDto
52
+ */
53
+ 'code': string;
54
+ }
@@ -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 });
@@ -0,0 +1,42 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface FilterNamedRangeResponseClass
16
+ */
17
+ export interface FilterNamedRangeResponseClass {
18
+ /**
19
+ * Named range rows as an array of JSON objects.
20
+ * @type {Array<string>}
21
+ * @memberof FilterNamedRangeResponseClass
22
+ */
23
+ 'items': Array<string>;
24
+ /**
25
+ * Next page token.
26
+ * @type {string}
27
+ * @memberof FilterNamedRangeResponseClass
28
+ */
29
+ 'nextPageToken': string;
30
+ /**
31
+ * Items per page.
32
+ * @type {number}
33
+ * @memberof FilterNamedRangeResponseClass
34
+ */
35
+ 'itemsPerPage': number;
36
+ /**
37
+ * Total amount of items.
38
+ * @type {number}
39
+ * @memberof FilterNamedRangeResponseClass
40
+ */
41
+ 'totalItems': number;
42
+ }
@@ -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 });
@@ -33,6 +33,8 @@ export * from './create-status-transition-rule-response-class';
33
33
  export * from './csv-product-factor-dto';
34
34
  export * from './delete-response-class';
35
35
  export * from './empty-response-class';
36
+ export * from './filter-named-range-request-dto';
37
+ export * from './filter-named-range-response-class';
36
38
  export * from './get-insured-object-response-class';
37
39
  export * from './get-lead-response-class';
38
40
  export * from './get-lead-status-response-class';
@@ -49,6 +49,8 @@ __exportStar(require("./create-status-transition-rule-response-class"), exports)
49
49
  __exportStar(require("./csv-product-factor-dto"), exports);
50
50
  __exportStar(require("./delete-response-class"), exports);
51
51
  __exportStar(require("./empty-response-class"), exports);
52
+ __exportStar(require("./filter-named-range-request-dto"), exports);
53
+ __exportStar(require("./filter-named-range-response-class"), exports);
52
54
  __exportStar(require("./get-insured-object-response-class"), exports);
53
55
  __exportStar(require("./get-lead-response-class"), exports);
54
56
  __exportStar(require("./get-lead-status-response-class"), exports);
@@ -27,6 +27,12 @@ export interface NamedRangeClass {
27
27
  * @memberof NamedRangeClass
28
28
  */
29
29
  'productVersionId': number;
30
+ /**
31
+ * Unique identifier for the object.
32
+ * @type {string}
33
+ * @memberof NamedRangeClass
34
+ */
35
+ 'code': string;
30
36
  /**
31
37
  * Named range name.
32
38
  * @type {string}
@@ -33,6 +33,18 @@ export interface PolicyObjectClass {
33
33
  * @memberof PolicyObjectClass
34
34
  */
35
35
  'insuredObjectName': string;
36
+ /**
37
+ * Insured object label.
38
+ * @type {string}
39
+ * @memberof PolicyObjectClass
40
+ */
41
+ 'insuredObjectLabel': string;
42
+ /**
43
+ * A boolean value indicating whether the insured object accepts multiple objects.
44
+ * @type {boolean}
45
+ * @memberof PolicyObjectClass
46
+ */
47
+ 'isMultiInsuredObject': boolean;
36
48
  /**
37
49
  * Insured object data.
38
50
  * @type {object}
@@ -0,0 +1,60 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface FilterNamedRangeRequestDto
21
+ */
22
+ export interface FilterNamedRangeRequestDto {
23
+ /**
24
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
25
+ * @type {number}
26
+ * @memberof FilterNamedRangeRequestDto
27
+ */
28
+ 'pageSize'?: number;
29
+ /**
30
+ * 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.
31
+ * @type {string}
32
+ * @memberof FilterNamedRangeRequestDto
33
+ */
34
+ 'pageToken'?: string;
35
+ /**
36
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
37
+ * @type {string}
38
+ * @memberof FilterNamedRangeRequestDto
39
+ */
40
+ 'filters'?: string;
41
+ /**
42
+ * Search the list by any field.
43
+ * @type {string}
44
+ * @memberof FilterNamedRangeRequestDto
45
+ */
46
+ 'search'?: string;
47
+ /**
48
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
49
+ * @type {string}
50
+ * @memberof FilterNamedRangeRequestDto
51
+ */
52
+ 'order'?: string;
53
+ /**
54
+ * Unique identifier of the named range that this object belongs to.
55
+ * @type {string}
56
+ * @memberof FilterNamedRangeRequestDto
57
+ */
58
+ 'code': string;
59
+ }
60
+
@@ -0,0 +1,48 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface FilterNamedRangeResponseClass
21
+ */
22
+ export interface FilterNamedRangeResponseClass {
23
+ /**
24
+ * Named range rows as an array of JSON objects.
25
+ * @type {Array<string>}
26
+ * @memberof FilterNamedRangeResponseClass
27
+ */
28
+ 'items': Array<string>;
29
+ /**
30
+ * Next page token.
31
+ * @type {string}
32
+ * @memberof FilterNamedRangeResponseClass
33
+ */
34
+ 'nextPageToken': string;
35
+ /**
36
+ * Items per page.
37
+ * @type {number}
38
+ * @memberof FilterNamedRangeResponseClass
39
+ */
40
+ 'itemsPerPage': number;
41
+ /**
42
+ * Total amount of items.
43
+ * @type {number}
44
+ * @memberof FilterNamedRangeResponseClass
45
+ */
46
+ 'totalItems': number;
47
+ }
48
+
package/models/index.ts CHANGED
@@ -33,6 +33,8 @@ export * from './create-status-transition-rule-response-class';
33
33
  export * from './csv-product-factor-dto';
34
34
  export * from './delete-response-class';
35
35
  export * from './empty-response-class';
36
+ export * from './filter-named-range-request-dto';
37
+ export * from './filter-named-range-response-class';
36
38
  export * from './get-insured-object-response-class';
37
39
  export * from './get-lead-response-class';
38
40
  export * from './get-lead-status-response-class';
@@ -32,6 +32,12 @@ export interface NamedRangeClass {
32
32
  * @memberof NamedRangeClass
33
33
  */
34
34
  'productVersionId': number;
35
+ /**
36
+ * Unique identifier for the object.
37
+ * @type {string}
38
+ * @memberof NamedRangeClass
39
+ */
40
+ 'code': string;
35
41
  /**
36
42
  * Named range name.
37
43
  * @type {string}
@@ -38,6 +38,18 @@ export interface PolicyObjectClass {
38
38
  * @memberof PolicyObjectClass
39
39
  */
40
40
  'insuredObjectName': string;
41
+ /**
42
+ * Insured object label.
43
+ * @type {string}
44
+ * @memberof PolicyObjectClass
45
+ */
46
+ 'insuredObjectLabel': string;
47
+ /**
48
+ * A boolean value indicating whether the insured object accepts multiple objects.
49
+ * @type {boolean}
50
+ * @memberof PolicyObjectClass
51
+ */
52
+ 'isMultiInsuredObject': boolean;
41
53
  /**
42
54
  * Insured object data.
43
55
  * @type {object}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.39.0",
3
+ "version": "1.44.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [