@emilgroup/insurance-sdk-node 1.47.1-beta.0 → 1.48.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 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.47.1-beta.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.48.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.47.1-beta.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.48.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -181,17 +181,11 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
181
181
  * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
182
182
  * @summary List lead statuses
183
183
  * @param {string} [authorization] Bearer Token
184
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
185
- * @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.
186
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
187
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
188
- * @param {any} [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.
189
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
190
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
184
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
191
185
  * @param {*} [options] Override http request option.
192
186
  * @throws {RequiredError}
193
187
  */
194
- listLeadStatuses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
188
+ listLeadStatuses: async (authorization?: string, filter?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
195
189
  const localVarPath = `/insuranceservice/v1/lead-statuses`;
196
190
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
197
191
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -210,34 +204,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
210
204
  // http bearer authentication required
211
205
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
212
206
 
213
- if (pageSize !== undefined) {
214
- localVarQueryParameter['pageSize'] = pageSize;
215
- }
216
-
217
- if (pageToken !== undefined) {
218
- localVarQueryParameter['pageToken'] = pageToken;
219
- }
220
-
221
207
  if (filter !== undefined) {
222
208
  localVarQueryParameter['filter'] = filter;
223
209
  }
224
210
 
225
- if (search !== undefined) {
226
- localVarQueryParameter['search'] = search;
227
- }
228
-
229
- if (order !== undefined) {
230
- localVarQueryParameter['order'] = order;
231
- }
232
-
233
- if (expand !== undefined) {
234
- localVarQueryParameter['expand'] = expand;
235
- }
236
-
237
- if (filters !== undefined) {
238
- localVarQueryParameter['filters'] = filters;
239
- }
240
-
241
211
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
242
212
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
213
  }
@@ -303,18 +273,12 @@ export const LeadStatusesApiFp = function(configuration?: Configuration) {
303
273
  * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
304
274
  * @summary List lead statuses
305
275
  * @param {string} [authorization] Bearer Token
306
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
307
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
308
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
309
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
310
- * @param {any} [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.
311
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
312
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
276
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
313
277
  * @param {*} [options] Override http request option.
314
278
  * @throws {RequiredError}
315
279
  */
316
- async listLeadStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadStatusesResponseClass>> {
317
- const localVarAxiosArgs = await localVarAxiosParamCreator.listLeadStatuses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
280
+ async listLeadStatuses(authorization?: string, filter?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadStatusesResponseClass>> {
281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listLeadStatuses(authorization, filter, options);
318
282
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
283
  },
320
284
  }
@@ -364,18 +328,12 @@ export const LeadStatusesApiFactory = function (configuration?: Configuration, b
364
328
  * Returns a list of lead statuses you have previously created. The lead statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
365
329
  * @summary List lead statuses
366
330
  * @param {string} [authorization] Bearer Token
367
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
369
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
370
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
371
- * @param {any} [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.
372
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
373
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
331
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
374
332
  * @param {*} [options] Override http request option.
375
333
  * @throws {RequiredError}
376
334
  */
377
- listLeadStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadStatusesResponseClass> {
378
- return localVarFp.listLeadStatuses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
335
+ listLeadStatuses(authorization?: string, filter?: string, options?: any): AxiosPromise<ListLeadStatusesResponseClass> {
336
+ return localVarFp.listLeadStatuses(authorization, filter, options).then((request) => request(axios, basePath));
379
337
  },
380
338
  };
381
339
  };
@@ -457,53 +415,11 @@ export interface LeadStatusesApiListLeadStatusesRequest {
457
415
  readonly authorization?: string
458
416
 
459
417
  /**
460
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
461
- * @type {any}
462
- * @memberof LeadStatusesApiListLeadStatuses
463
- */
464
- readonly pageSize?: any
465
-
466
- /**
467
- * 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.
468
- * @type {any}
469
- * @memberof LeadStatusesApiListLeadStatuses
470
- */
471
- readonly pageToken?: any
472
-
473
- /**
474
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
475
- * @type {any}
476
- * @memberof LeadStatusesApiListLeadStatuses
477
- */
478
- readonly filter?: any
479
-
480
- /**
481
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
482
- * @type {any}
483
- * @memberof LeadStatusesApiListLeadStatuses
484
- */
485
- readonly search?: any
486
-
487
- /**
488
- * 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.
489
- * @type {any}
490
- * @memberof LeadStatusesApiListLeadStatuses
491
- */
492
- readonly order?: any
493
-
494
- /**
495
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
496
- * @type {any}
497
- * @memberof LeadStatusesApiListLeadStatuses
498
- */
499
- readonly expand?: any
500
-
501
- /**
502
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
503
- * @type {any}
418
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: owner, id, name and productSlug.
419
+ * @type {string}
504
420
  * @memberof LeadStatusesApiListLeadStatuses
505
421
  */
506
- readonly filters?: any
422
+ readonly filter?: string
507
423
  }
508
424
 
509
425
  /**
@@ -558,6 +474,6 @@ export class LeadStatusesApi extends BaseAPI {
558
474
  * @memberof LeadStatusesApi
559
475
  */
560
476
  public listLeadStatuses(requestParameters: LeadStatusesApiListLeadStatusesRequest = {}, options?: AxiosRequestConfig) {
561
- return LeadStatusesApiFp(this.configuration).listLeadStatuses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
477
+ return LeadStatusesApiFp(this.configuration).listLeadStatuses(requestParameters.authorization, requestParameters.filter, options).then((request) => request(this.axios, this.basePath));
562
478
  }
563
479
  }