@emilgroup/insurance-sdk 1.98.0 → 1.98.1-beta.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.
@@ -198,6 +198,7 @@ models/list-premium-formulas-response-class.ts
198
198
  models/list-product-factors-response-class.ts
199
199
  models/list-product-field-types-response-class.ts
200
200
  models/list-product-fields-response-class.ts
201
+ models/list-product-versions-response-class.ts
201
202
  models/list-products-response-class.ts
202
203
  models/list-request-dto.ts
203
204
  models/list-status-transition-rules-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@1.98.0 --save
20
+ npm install @emilgroup/insurance-sdk@1.98.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.98.0
24
+ yarn add @emilgroup/insurance-sdk@1.98.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -23,6 +23,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { GetProductVersionResponseClass } from '../models';
25
25
  // @ts-ignore
26
+ import { ListProductVersionsResponseClass } from '../models';
27
+ // @ts-ignore
26
28
  import { UpdateProductVersionRequestDto } from '../models';
27
29
  // @ts-ignore
28
30
  import { UpdateProductVersionResponseClass } from '../models';
@@ -85,6 +87,82 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
85
87
 
86
88
 
87
89
 
90
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
91
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
93
+
94
+ return {
95
+ url: toPathString(localVarUrlObj),
96
+ options: localVarRequestOptions,
97
+ };
98
+ },
99
+ /**
100
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
101
+ * @summary List product versions
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
104
+ * @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.
105
+ * @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, productId, description, status</i>
106
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
107
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, productId, description, status</i>
108
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: product<i>
109
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, productId, description, status</i>
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ listProductVersions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
114
+ const localVarPath = `/insuranceservice/v1/product-versions`;
115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
117
+ let baseOptions;
118
+ let baseAccessToken;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+
124
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
125
+ const localVarHeaderParameter = {} as any;
126
+ const localVarQueryParameter = {} as any;
127
+
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
131
+
132
+ if (pageSize !== undefined) {
133
+ localVarQueryParameter['pageSize'] = pageSize;
134
+ }
135
+
136
+ if (pageToken !== undefined) {
137
+ localVarQueryParameter['pageToken'] = pageToken;
138
+ }
139
+
140
+ if (filter !== undefined) {
141
+ localVarQueryParameter['filter'] = filter;
142
+ }
143
+
144
+ if (search !== undefined) {
145
+ localVarQueryParameter['search'] = search;
146
+ }
147
+
148
+ if (order !== undefined) {
149
+ localVarQueryParameter['order'] = order;
150
+ }
151
+
152
+ if (expand !== undefined) {
153
+ localVarQueryParameter['expand'] = expand;
154
+ }
155
+
156
+ if (filters !== undefined) {
157
+ localVarQueryParameter['filters'] = filters;
158
+ }
159
+
160
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
161
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
162
+ }
163
+
164
+
165
+
88
166
  setSearchParams(localVarUrlObj, localVarQueryParameter);
89
167
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
168
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -170,6 +248,24 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
170
248
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVersion(id, id2, authorization, filter, expand, options);
171
249
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
172
250
  },
251
+ /**
252
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
253
+ * @summary List product versions
254
+ * @param {string} [authorization] Bearer Token
255
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
256
+ * @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.
257
+ * @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, productId, description, status&lt;/i&gt;
258
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
259
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
260
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
261
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ async listProductVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductVersionsResponseClass>> {
266
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
267
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
268
+ },
173
269
  /**
174
270
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
175
271
  * @summary Update the product version
@@ -207,6 +303,23 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
207
303
  getProductVersion(id: string, id2: number, authorization?: string, filter?: string, expand?: string, options?: any): AxiosPromise<GetProductVersionResponseClass> {
208
304
  return localVarFp.getProductVersion(id, id2, authorization, filter, expand, options).then((request) => request(axios, basePath));
209
305
  },
306
+ /**
307
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
308
+ * @summary List product versions
309
+ * @param {string} [authorization] Bearer Token
310
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
311
+ * @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.
312
+ * @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, productId, description, status&lt;/i&gt;
313
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
314
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
315
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
316
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ listProductVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductVersionsResponseClass> {
321
+ return localVarFp.listProductVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
322
+ },
210
323
  /**
211
324
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
212
325
  * @summary Update the product version
@@ -264,6 +377,69 @@ export interface ProductVersionsApiGetProductVersionRequest {
264
377
  readonly expand?: string
265
378
  }
266
379
 
380
+ /**
381
+ * Request parameters for listProductVersions operation in ProductVersionsApi.
382
+ * @export
383
+ * @interface ProductVersionsApiListProductVersionsRequest
384
+ */
385
+ export interface ProductVersionsApiListProductVersionsRequest {
386
+ /**
387
+ * Bearer Token
388
+ * @type {string}
389
+ * @memberof ProductVersionsApiListProductVersions
390
+ */
391
+ readonly authorization?: string
392
+
393
+ /**
394
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
395
+ * @type {number}
396
+ * @memberof ProductVersionsApiListProductVersions
397
+ */
398
+ readonly pageSize?: number
399
+
400
+ /**
401
+ * 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.
402
+ * @type {string}
403
+ * @memberof ProductVersionsApiListProductVersions
404
+ */
405
+ readonly pageToken?: string
406
+
407
+ /**
408
+ * 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, productId, description, status&lt;/i&gt;
409
+ * @type {string}
410
+ * @memberof ProductVersionsApiListProductVersions
411
+ */
412
+ readonly filter?: string
413
+
414
+ /**
415
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
416
+ * @type {string}
417
+ * @memberof ProductVersionsApiListProductVersions
418
+ */
419
+ readonly search?: string
420
+
421
+ /**
422
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
423
+ * @type {string}
424
+ * @memberof ProductVersionsApiListProductVersions
425
+ */
426
+ readonly order?: string
427
+
428
+ /**
429
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
430
+ * @type {string}
431
+ * @memberof ProductVersionsApiListProductVersions
432
+ */
433
+ readonly expand?: string
434
+
435
+ /**
436
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
437
+ * @type {string}
438
+ * @memberof ProductVersionsApiListProductVersions
439
+ */
440
+ readonly filters?: string
441
+ }
442
+
267
443
  /**
268
444
  * Request parameters for updateProductVersion operation in ProductVersionsApi.
269
445
  * @export
@@ -311,6 +487,18 @@ export class ProductVersionsApi extends BaseAPI {
311
487
  return ProductVersionsApiFp(this.configuration).getProductVersion(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.filter, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
312
488
  }
313
489
 
490
+ /**
491
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
492
+ * @summary List product versions
493
+ * @param {ProductVersionsApiListProductVersionsRequest} requestParameters Request parameters.
494
+ * @param {*} [options] Override http request option.
495
+ * @throws {RequiredError}
496
+ * @memberof ProductVersionsApi
497
+ */
498
+ public listProductVersions(requestParameters: ProductVersionsApiListProductVersionsRequest = {}, options?: AxiosRequestConfig) {
499
+ return ProductVersionsApiFp(this.configuration).listProductVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
500
+ }
501
+
314
502
  /**
315
503
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
316
504
  * @summary Update the product version
@@ -13,6 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { GetProductVersionResponseClass } from '../models';
16
+ import { ListProductVersionsResponseClass } from '../models';
16
17
  import { UpdateProductVersionRequestDto } from '../models';
17
18
  import { UpdateProductVersionResponseClass } from '../models';
18
19
  /**
@@ -32,6 +33,21 @@ export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Confi
32
33
  * @throws {RequiredError}
33
34
  */
34
35
  getProductVersion: (id: string, id2: number, authorization?: string, filter?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
38
+ * @summary List product versions
39
+ * @param {string} [authorization] Bearer Token
40
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
41
+ * @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.
42
+ * @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, productId, description, status&lt;/i&gt;
43
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
44
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
45
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
46
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ listProductVersions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
51
  /**
36
52
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
37
53
  * @summary Update the product version
@@ -60,6 +76,21 @@ export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
60
76
  * @throws {RequiredError}
61
77
  */
62
78
  getProductVersion(id: string, id2: number, authorization?: string, filter?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductVersionResponseClass>>;
79
+ /**
80
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
81
+ * @summary List product versions
82
+ * @param {string} [authorization] Bearer Token
83
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
84
+ * @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.
85
+ * @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, productId, description, status&lt;/i&gt;
86
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
87
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
88
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
89
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ listProductVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductVersionsResponseClass>>;
63
94
  /**
64
95
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
65
96
  * @summary Update the product version
@@ -88,6 +119,21 @@ export declare const ProductVersionsApiFactory: (configuration?: Configuration,
88
119
  * @throws {RequiredError}
89
120
  */
90
121
  getProductVersion(id: string, id2: number, authorization?: string, filter?: string, expand?: string, options?: any): AxiosPromise<GetProductVersionResponseClass>;
122
+ /**
123
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
124
+ * @summary List product versions
125
+ * @param {string} [authorization] Bearer Token
126
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
127
+ * @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.
128
+ * @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, productId, description, status&lt;/i&gt;
129
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
130
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
131
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
132
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ listProductVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductVersionsResponseClass>;
91
137
  /**
92
138
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
93
139
  * @summary Update the product version
@@ -136,6 +182,61 @@ export interface ProductVersionsApiGetProductVersionRequest {
136
182
  */
137
183
  readonly expand?: string;
138
184
  }
185
+ /**
186
+ * Request parameters for listProductVersions operation in ProductVersionsApi.
187
+ * @export
188
+ * @interface ProductVersionsApiListProductVersionsRequest
189
+ */
190
+ export interface ProductVersionsApiListProductVersionsRequest {
191
+ /**
192
+ * Bearer Token
193
+ * @type {string}
194
+ * @memberof ProductVersionsApiListProductVersions
195
+ */
196
+ readonly authorization?: string;
197
+ /**
198
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
199
+ * @type {number}
200
+ * @memberof ProductVersionsApiListProductVersions
201
+ */
202
+ readonly pageSize?: number;
203
+ /**
204
+ * 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.
205
+ * @type {string}
206
+ * @memberof ProductVersionsApiListProductVersions
207
+ */
208
+ readonly pageToken?: string;
209
+ /**
210
+ * 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, productId, description, status&lt;/i&gt;
211
+ * @type {string}
212
+ * @memberof ProductVersionsApiListProductVersions
213
+ */
214
+ readonly filter?: string;
215
+ /**
216
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
217
+ * @type {string}
218
+ * @memberof ProductVersionsApiListProductVersions
219
+ */
220
+ readonly search?: string;
221
+ /**
222
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
223
+ * @type {string}
224
+ * @memberof ProductVersionsApiListProductVersions
225
+ */
226
+ readonly order?: string;
227
+ /**
228
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
229
+ * @type {string}
230
+ * @memberof ProductVersionsApiListProductVersions
231
+ */
232
+ readonly expand?: string;
233
+ /**
234
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
235
+ * @type {string}
236
+ * @memberof ProductVersionsApiListProductVersions
237
+ */
238
+ readonly filters?: string;
239
+ }
139
240
  /**
140
241
  * Request parameters for updateProductVersion operation in ProductVersionsApi.
141
242
  * @export
@@ -177,6 +278,15 @@ export declare class ProductVersionsApi extends BaseAPI {
177
278
  * @memberof ProductVersionsApi
178
279
  */
179
280
  getProductVersion(requestParameters: ProductVersionsApiGetProductVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductVersionResponseClass, any, {}>>;
281
+ /**
282
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
283
+ * @summary List product versions
284
+ * @param {ProductVersionsApiListProductVersionsRequest} requestParameters Request parameters.
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ * @memberof ProductVersionsApi
288
+ */
289
+ listProductVersions(requestParameters?: ProductVersionsApiListProductVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductVersionsResponseClass, any, {}>>;
180
290
  /**
181
291
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
182
292
  * @summary Update the product version
@@ -154,6 +154,78 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
154
154
  });
155
155
  });
156
156
  },
157
+ /**
158
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
159
+ * @summary List product versions
160
+ * @param {string} [authorization] Bearer Token
161
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
162
+ * @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.
163
+ * @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, productId, description, status&lt;/i&gt;
164
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
165
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
166
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
167
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ listProductVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
172
+ if (options === void 0) { options = {}; }
173
+ return __awaiter(_this, void 0, void 0, function () {
174
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
175
+ return __generator(this, function (_a) {
176
+ switch (_a.label) {
177
+ case 0:
178
+ localVarPath = "/insuranceservice/v1/product-versions";
179
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ baseAccessToken = configuration.accessToken;
183
+ }
184
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
185
+ localVarHeaderParameter = {};
186
+ localVarQueryParameter = {};
187
+ // authentication bearer required
188
+ // http bearer authentication required
189
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
190
+ case 1:
191
+ // authentication bearer required
192
+ // http bearer authentication required
193
+ _a.sent();
194
+ if (pageSize !== undefined) {
195
+ localVarQueryParameter['pageSize'] = pageSize;
196
+ }
197
+ if (pageToken !== undefined) {
198
+ localVarQueryParameter['pageToken'] = pageToken;
199
+ }
200
+ if (filter !== undefined) {
201
+ localVarQueryParameter['filter'] = filter;
202
+ }
203
+ if (search !== undefined) {
204
+ localVarQueryParameter['search'] = search;
205
+ }
206
+ if (order !== undefined) {
207
+ localVarQueryParameter['order'] = order;
208
+ }
209
+ if (expand !== undefined) {
210
+ localVarQueryParameter['expand'] = expand;
211
+ }
212
+ if (filters !== undefined) {
213
+ localVarQueryParameter['filters'] = filters;
214
+ }
215
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
216
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
217
+ }
218
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
219
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
221
+ return [2 /*return*/, {
222
+ url: (0, common_1.toPathString)(localVarUrlObj),
223
+ options: localVarRequestOptions,
224
+ }];
225
+ }
226
+ });
227
+ });
228
+ },
157
229
  /**
158
230
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
159
231
  * @summary Update the product version
@@ -241,6 +313,33 @@ var ProductVersionsApiFp = function (configuration) {
241
313
  });
242
314
  });
243
315
  },
316
+ /**
317
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
318
+ * @summary List product versions
319
+ * @param {string} [authorization] Bearer Token
320
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
321
+ * @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.
322
+ * @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, productId, description, status&lt;/i&gt;
323
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
324
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
325
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
326
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ listProductVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
331
+ return __awaiter(this, void 0, void 0, function () {
332
+ var localVarAxiosArgs;
333
+ return __generator(this, function (_a) {
334
+ switch (_a.label) {
335
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
336
+ case 1:
337
+ localVarAxiosArgs = _a.sent();
338
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
339
+ }
340
+ });
341
+ });
342
+ },
244
343
  /**
245
344
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
246
345
  * @summary Update the product version
@@ -287,6 +386,23 @@ var ProductVersionsApiFactory = function (configuration, basePath, axios) {
287
386
  getProductVersion: function (id, id2, authorization, filter, expand, options) {
288
387
  return localVarFp.getProductVersion(id, id2, authorization, filter, expand, options).then(function (request) { return request(axios, basePath); });
289
388
  },
389
+ /**
390
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
391
+ * @summary List product versions
392
+ * @param {string} [authorization] Bearer Token
393
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
394
+ * @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.
395
+ * @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, productId, description, status&lt;/i&gt;
396
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
397
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productId, description, status&lt;/i&gt;
398
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: product&lt;i&gt;
399
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, productId, description, status&lt;/i&gt;
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ listProductVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
404
+ return localVarFp.listProductVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
405
+ },
290
406
  /**
291
407
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
292
408
  * @summary Update the product version
@@ -325,6 +441,19 @@ var ProductVersionsApi = /** @class */ (function (_super) {
325
441
  var _this = this;
326
442
  return (0, exports.ProductVersionsApiFp)(this.configuration).getProductVersion(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.filter, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
327
443
  };
444
+ /**
445
+ * Returns a list of product versions you have previously created. The product versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
446
+ * @summary List product versions
447
+ * @param {ProductVersionsApiListProductVersionsRequest} requestParameters Request parameters.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ * @memberof ProductVersionsApi
451
+ */
452
+ ProductVersionsApi.prototype.listProductVersions = function (requestParameters, options) {
453
+ var _this = this;
454
+ if (requestParameters === void 0) { requestParameters = {}; }
455
+ return (0, exports.ProductVersionsApiFp)(this.configuration).listProductVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
456
+ };
328
457
  /**
329
458
  * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
330
459
  * @summary Update the product version
@@ -162,6 +162,7 @@ export * from './list-premium-formulas-response-class';
162
162
  export * from './list-product-factors-response-class';
163
163
  export * from './list-product-field-types-response-class';
164
164
  export * from './list-product-fields-response-class';
165
+ export * from './list-product-versions-response-class';
165
166
  export * from './list-products-response-class';
166
167
  export * from './list-request-dto';
167
168
  export * from './list-status-transition-rules-response-class';
@@ -178,6 +178,7 @@ __exportStar(require("./list-premium-formulas-response-class"), exports);
178
178
  __exportStar(require("./list-product-factors-response-class"), exports);
179
179
  __exportStar(require("./list-product-field-types-response-class"), exports);
180
180
  __exportStar(require("./list-product-fields-response-class"), exports);
181
+ __exportStar(require("./list-product-versions-response-class"), exports);
181
182
  __exportStar(require("./list-products-response-class"), exports);
182
183
  __exportStar(require("./list-request-dto"), exports);
183
184
  __exportStar(require("./list-status-transition-rules-response-class"), exports);
@@ -0,0 +1,31 @@
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 { ProductVersionClass } from './product-version-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListProductVersionsResponseClass
17
+ */
18
+ export interface ListProductVersionsResponseClass {
19
+ /**
20
+ * List of product versions.
21
+ * @type {Array<ProductVersionClass>}
22
+ * @memberof ListProductVersionsResponseClass
23
+ */
24
+ 'items': Array<ProductVersionClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListProductVersionsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -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 });
package/models/index.ts CHANGED
@@ -162,6 +162,7 @@ export * from './list-premium-formulas-response-class';
162
162
  export * from './list-product-factors-response-class';
163
163
  export * from './list-product-field-types-response-class';
164
164
  export * from './list-product-fields-response-class';
165
+ export * from './list-product-versions-response-class';
165
166
  export * from './list-products-response-class';
166
167
  export * from './list-request-dto';
167
168
  export * from './list-status-transition-rules-response-class';
@@ -0,0 +1,37 @@
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 { ProductVersionClass } from './product-version-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListProductVersionsResponseClass
22
+ */
23
+ export interface ListProductVersionsResponseClass {
24
+ /**
25
+ * List of product versions.
26
+ * @type {Array<ProductVersionClass>}
27
+ * @memberof ListProductVersionsResponseClass
28
+ */
29
+ 'items': Array<ProductVersionClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListProductVersionsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk",
3
- "version": "1.98.0",
3
+ "version": "1.98.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [