@emilgroup/insurance-sdk-node 1.6.0 → 1.7.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.
Files changed (66) hide show
  1. package/.openapi-generator/FILES +1 -3
  2. package/README.md +2 -2
  3. package/api/policies-api.ts +12 -12
  4. package/api/product-versions-api.ts +0 -103
  5. package/api/products-api.ts +4 -4
  6. package/api.ts +1 -0
  7. package/dist/api/policies-api.d.ts +12 -12
  8. package/dist/api/policies-api.js +10 -10
  9. package/dist/api/product-versions-api.d.ts +0 -53
  10. package/dist/api/product-versions-api.js +0 -89
  11. package/dist/api/products-api.d.ts +4 -4
  12. package/dist/api/products-api.js +3 -3
  13. package/dist/api.d.ts +2 -1
  14. package/dist/api.js +1 -0
  15. package/dist/models/create-account-request-dto.d.ts +1 -18
  16. package/dist/models/create-account-request-dto.js +1 -5
  17. package/dist/models/create-dummy-policy-request-dto.d.ts +0 -6
  18. package/dist/models/create-insured-object-response-class.d.ts +3 -3
  19. package/dist/models/create-lead-request-dto.d.ts +0 -6
  20. package/dist/models/create-product-request-dto.d.ts +1 -1
  21. package/dist/models/index.d.ts +1 -3
  22. package/dist/models/index.js +1 -3
  23. package/dist/models/insured-object-class.d.ts +1 -1
  24. package/dist/models/insured-object-type-class.d.ts +1 -1
  25. package/dist/models/lead-class.d.ts +11 -18
  26. package/dist/models/lead-class.js +0 -7
  27. package/dist/models/list-insured-object-types-response-class.d.ts +1 -1
  28. package/dist/models/omit-type-class.d.ts +60 -0
  29. package/dist/models/policy-class.d.ts +7 -7
  30. package/dist/models/product-class.d.ts +1 -1
  31. package/dist/models/product-factor-class.d.ts +7 -0
  32. package/dist/models/product-field-class.d.ts +3 -3
  33. package/dist/models/shared-product-field-class.d.ts +3 -3
  34. package/dist/models/update-lead-request-dto.d.ts +0 -6
  35. package/dist/models/update-policy-request-dto.d.ts +4 -4
  36. package/dist/models/update-policy-request-dto.js +4 -4
  37. package/dist/models/update-product-request-dto.d.ts +1 -1
  38. package/models/create-account-request-dto.ts +1 -19
  39. package/models/create-dummy-policy-request-dto.ts +0 -6
  40. package/models/create-insured-object-response-class.ts +3 -3
  41. package/models/create-lead-request-dto.ts +0 -6
  42. package/models/create-product-request-dto.ts +1 -1
  43. package/models/index.ts +1 -3
  44. package/models/insured-object-class.ts +1 -1
  45. package/models/insured-object-type-class.ts +1 -1
  46. package/models/lead-class.ts +11 -21
  47. package/models/list-insured-object-types-response-class.ts +1 -1
  48. package/models/omit-type-class.ts +66 -0
  49. package/models/policy-class.ts +7 -7
  50. package/models/product-class.ts +1 -1
  51. package/models/product-factor-class.ts +7 -0
  52. package/models/product-field-class.ts +3 -3
  53. package/models/shared-product-field-class.ts +3 -3
  54. package/models/update-lead-request-dto.ts +0 -6
  55. package/models/update-policy-request-dto.ts +4 -4
  56. package/models/update-product-request-dto.ts +1 -1
  57. package/package.json +1 -1
  58. package/dist/models/clone-product-version-request-dto.d.ts +0 -36
  59. package/dist/models/clone-product-version-response-class.d.ts +0 -25
  60. package/dist/models/clone-product-version-response-class.js +0 -15
  61. package/dist/models/premium-override-request-class.d.ts +0 -25
  62. package/dist/models/premium-override-request-class.js +0 -15
  63. package/models/clone-product-version-request-dto.ts +0 -42
  64. package/models/clone-product-version-response-class.ts +0 -31
  65. package/models/premium-override-request-class.ts +0 -31
  66. /package/dist/models/{clone-product-version-request-dto.js → omit-type-class.js} +0 -0
@@ -19,8 +19,6 @@ git_push.sh
19
19
  index.ts
20
20
  models/calculate-custom-premium-request-dto.ts
21
21
  models/calculate-premium-request-dto.ts
22
- models/clone-product-version-request-dto.ts
23
- models/clone-product-version-response-class.ts
24
22
  models/create-account-request-dto.ts
25
23
  models/create-bank-account-request-dto.ts
26
24
  models/create-custom-application-request-dto.ts
@@ -76,6 +74,7 @@ models/list-product-field-types-response-class.ts
76
74
  models/list-product-fields-response-class.ts
77
75
  models/list-products-response-class.ts
78
76
  models/list-request-dto.ts
77
+ models/omit-type-class.ts
79
78
  models/policy-class.ts
80
79
  models/policy-object-class.ts
81
80
  models/policy-object-dto.ts
@@ -84,7 +83,6 @@ models/policy-premium-item-class.ts
84
83
  models/policy-version-class.ts
85
84
  models/premium-formula-class.ts
86
85
  models/premium-override-dto.ts
87
- models/premium-override-request-class.ts
88
86
  models/premium-override-request-dto.ts
89
87
  models/product-class.ts
90
88
  models/product-factor-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.6.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.7.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.6.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.7.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -151,7 +151,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
151
151
  },
152
152
  /**
153
153
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
154
- * @summary Retrieve current policy version
154
+ * @summary Retrieve the policy
155
155
  * @param {string} code Unique identifier for the object.
156
156
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
157
157
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -205,10 +205,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
205
205
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
206
  * @param {number} [pageSize] Page size.
207
207
  * @param {string} [pageToken] Page token.
208
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
208
+ * @param {string} [filter] List filter
209
209
  * @param {string} [search] Search query.
210
210
  * @param {string} [order] Ordering criteria.
211
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
211
+ * @param {string} [expand] Extra fields to fetch.
212
212
  * @param {*} [options] Override http request option.
213
213
  * @throws {RequiredError}
214
214
  */
@@ -505,7 +505,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
505
505
  },
506
506
  /**
507
507
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
508
- * @summary Retrieve current policy version
508
+ * @summary Retrieve the policy
509
509
  * @param {string} code Unique identifier for the object.
510
510
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
511
511
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -522,10 +522,10 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
522
522
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
523
523
  * @param {number} [pageSize] Page size.
524
524
  * @param {string} [pageToken] Page token.
525
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
525
+ * @param {string} [filter] List filter
526
526
  * @param {string} [search] Search query.
527
527
  * @param {string} [order] Ordering criteria.
528
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
528
+ * @param {string} [expand] Extra fields to fetch.
529
529
  * @param {*} [options] Override http request option.
530
530
  * @throws {RequiredError}
531
531
  */
@@ -619,7 +619,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
619
619
  },
620
620
  /**
621
621
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
622
- * @summary Retrieve current policy version
622
+ * @summary Retrieve the policy
623
623
  * @param {string} code Unique identifier for the object.
624
624
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
625
625
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -635,10 +635,10 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
635
635
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
636
636
  * @param {number} [pageSize] Page size.
637
637
  * @param {string} [pageToken] Page token.
638
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
638
+ * @param {string} [filter] List filter
639
639
  * @param {string} [search] Search query.
640
640
  * @param {string} [order] Ordering criteria.
641
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
641
+ * @param {string} [expand] Extra fields to fetch.
642
642
  * @param {*} [options] Override http request option.
643
643
  * @throws {RequiredError}
644
644
  */
@@ -800,7 +800,7 @@ export interface PoliciesApiListPoliciesRequest {
800
800
  readonly pageToken?: string
801
801
 
802
802
  /**
803
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
803
+ * List filter
804
804
  * @type {string}
805
805
  * @memberof PoliciesApiListPolicies
806
806
  */
@@ -821,7 +821,7 @@ export interface PoliciesApiListPoliciesRequest {
821
821
  readonly order?: string
822
822
 
823
823
  /**
824
- * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
824
+ * Extra fields to fetch.
825
825
  * @type {string}
826
826
  * @memberof PoliciesApiListPolicies
827
827
  */
@@ -966,7 +966,7 @@ export class PoliciesApi extends BaseAPI {
966
966
 
967
967
  /**
968
968
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
969
- * @summary Retrieve current policy version
969
+ * @summary Retrieve the policy
970
970
  * @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
971
971
  * @param {*} [options] Override http request option.
972
972
  * @throws {RequiredError}
@@ -21,10 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { CloneProductVersionRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CloneProductVersionResponseClass } from '../models';
27
- // @ts-ignore
28
24
  import { GetProductVersionResponseClass } from '../models';
29
25
  // @ts-ignore
30
26
  import { UpdateProductVersionRequestDto } from '../models';
@@ -40,52 +36,6 @@ const FormData = require('form-data');
40
36
  */
41
37
  export const ProductVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
42
38
  return {
43
- /**
44
- *
45
- * @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
46
- * @param {string} [authorization] Bearer Token
47
- * @param {*} [options] Override http request option.
48
- * @throws {RequiredError}
49
- */
50
- cloneProductVersion: async (cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
- // verify required parameter 'cloneProductVersionRequestDto' is not null or undefined
52
- assertParamExists('cloneProductVersion', 'cloneProductVersionRequestDto', cloneProductVersionRequestDto)
53
- const localVarPath = `/insuranceservice/v1/product-versions/clone`;
54
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
- let baseOptions;
57
- let baseAccessToken;
58
- if (configuration) {
59
- baseOptions = configuration.baseOptions;
60
- baseAccessToken = configuration.accessToken;
61
- }
62
-
63
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
64
- const localVarHeaderParameter = {} as any;
65
- const localVarQueryParameter = {} as any;
66
-
67
- // authentication bearer required
68
- // http bearer authentication required
69
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
-
71
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
- }
74
-
75
-
76
-
77
- localVarHeaderParameter['Content-Type'] = 'application/json';
78
-
79
- setSearchParams(localVarUrlObj, localVarQueryParameter);
80
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
82
- localVarRequestOptions.data = serializeDataIfNeeded(cloneProductVersionRequestDto, localVarRequestOptions, configuration)
83
-
84
- return {
85
- url: toPathString(localVarUrlObj),
86
- options: localVarRequestOptions,
87
- };
88
- },
89
39
  /**
90
40
  * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
91
41
  * @summary Retrieve the product version
@@ -199,17 +149,6 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
199
149
  export const ProductVersionsApiFp = function(configuration?: Configuration) {
200
150
  const localVarAxiosParamCreator = ProductVersionsApiAxiosParamCreator(configuration)
201
151
  return {
202
- /**
203
- *
204
- * @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
205
- * @param {string} [authorization] Bearer Token
206
- * @param {*} [options] Override http request option.
207
- * @throws {RequiredError}
208
- */
209
- async cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloneProductVersionResponseClass>> {
210
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloneProductVersion(cloneProductVersionRequestDto, authorization, options);
211
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
212
- },
213
152
  /**
214
153
  * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
215
154
  * @summary Retrieve the product version
@@ -246,16 +185,6 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
246
185
  export const ProductVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
247
186
  const localVarFp = ProductVersionsApiFp(configuration)
248
187
  return {
249
- /**
250
- *
251
- * @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
252
- * @param {string} [authorization] Bearer Token
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- */
256
- cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<CloneProductVersionResponseClass> {
257
- return localVarFp.cloneProductVersion(cloneProductVersionRequestDto, authorization, options).then((request) => request(axios, basePath));
258
- },
259
188
  /**
260
189
  * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
261
190
  * @summary Retrieve the product version
@@ -283,27 +212,6 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
283
212
  };
284
213
  };
285
214
 
286
- /**
287
- * Request parameters for cloneProductVersion operation in ProductVersionsApi.
288
- * @export
289
- * @interface ProductVersionsApiCloneProductVersionRequest
290
- */
291
- export interface ProductVersionsApiCloneProductVersionRequest {
292
- /**
293
- *
294
- * @type {CloneProductVersionRequestDto}
295
- * @memberof ProductVersionsApiCloneProductVersion
296
- */
297
- readonly cloneProductVersionRequestDto: CloneProductVersionRequestDto
298
-
299
- /**
300
- * Bearer Token
301
- * @type {string}
302
- * @memberof ProductVersionsApiCloneProductVersion
303
- */
304
- readonly authorization?: string
305
- }
306
-
307
215
  /**
308
216
  * Request parameters for getProductVersion operation in ProductVersionsApi.
309
217
  * @export
@@ -367,17 +275,6 @@ export interface ProductVersionsApiUpdateProductVersionRequest {
367
275
  * @extends {BaseAPI}
368
276
  */
369
277
  export class ProductVersionsApi extends BaseAPI {
370
- /**
371
- *
372
- * @param {ProductVersionsApiCloneProductVersionRequest} requestParameters Request parameters.
373
- * @param {*} [options] Override http request option.
374
- * @throws {RequiredError}
375
- * @memberof ProductVersionsApi
376
- */
377
- public cloneProductVersion(requestParameters: ProductVersionsApiCloneProductVersionRequest, options?: AxiosRequestConfig) {
378
- return ProductVersionsApiFp(this.configuration).cloneProductVersion(requestParameters.cloneProductVersionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
379
- }
380
-
381
278
  /**
382
279
  * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
383
280
  * @summary Retrieve the product version
@@ -202,7 +202,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
202
202
  * @param {string} [filter] List filter
203
203
  * @param {string} [search] Search query.
204
204
  * @param {string} [order] Ordering criteria.
205
- * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; insuredObjectTypes will be an empty array.
205
+ * @param {string} [expand] Extra fields to fetch.
206
206
  * @param {*} [options] Override http request option.
207
207
  * @throws {RequiredError}
208
208
  */
@@ -372,7 +372,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
372
372
  * @param {string} [filter] List filter
373
373
  * @param {string} [search] Search query.
374
374
  * @param {string} [order] Ordering criteria.
375
- * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; insuredObjectTypes will be an empty array.
375
+ * @param {string} [expand] Extra fields to fetch.
376
376
  * @param {*} [options] Override http request option.
377
377
  * @throws {RequiredError}
378
378
  */
@@ -447,7 +447,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
447
447
  * @param {string} [filter] List filter
448
448
  * @param {string} [search] Search query.
449
449
  * @param {string} [order] Ordering criteria.
450
- * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; insuredObjectTypes will be an empty array.
450
+ * @param {string} [expand] Extra fields to fetch.
451
451
  * @param {*} [options] Override http request option.
452
452
  * @throws {RequiredError}
453
453
  */
@@ -595,7 +595,7 @@ export interface ProductsApiListProductsRequest {
595
595
  readonly order?: string
596
596
 
597
597
  /**
598
- * You can expand product versions and insured object types list in this endpoint. By default, versions &amp; insuredObjectTypes will be an empty array.
598
+ * Extra fields to fetch.
599
599
  * @type {string}
600
600
  * @memberof ProductsApiListProducts
601
601
  */
package/api.ts CHANGED
@@ -49,4 +49,5 @@ export * from './api/products-api';
49
49
  export enum Environment {
50
50
  Production = 'https://apiv2.emil.de',
51
51
  Test = 'https://apiv2-test.emil.de',
52
+ Development = 'https://apiv2-dev.emil.de',
52
53
  }
@@ -49,7 +49,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
49
49
  getPolicy: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
50
  /**
51
51
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
52
- * @summary Retrieve current policy version
52
+ * @summary Retrieve the policy
53
53
  * @param {string} code Unique identifier for the object.
54
54
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
55
55
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -63,10 +63,10 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
63
63
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
64
64
  * @param {number} [pageSize] Page size.
65
65
  * @param {string} [pageToken] Page token.
66
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
66
+ * @param {string} [filter] List filter
67
67
  * @param {string} [search] Search query.
68
68
  * @param {string} [order] Ordering criteria.
69
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
69
+ * @param {string} [expand] Extra fields to fetch.
70
70
  * @param {*} [options] Override http request option.
71
71
  * @throws {RequiredError}
72
72
  */
@@ -137,7 +137,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
137
137
  getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
138
138
  /**
139
139
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
140
- * @summary Retrieve current policy version
140
+ * @summary Retrieve the policy
141
141
  * @param {string} code Unique identifier for the object.
142
142
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
143
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -151,10 +151,10 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
151
151
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
152
  * @param {number} [pageSize] Page size.
153
153
  * @param {string} [pageToken] Page token.
154
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
154
+ * @param {string} [filter] List filter
155
155
  * @param {string} [search] Search query.
156
156
  * @param {string} [order] Ordering criteria.
157
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
157
+ * @param {string} [expand] Extra fields to fetch.
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
160
160
  */
@@ -225,7 +225,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
225
225
  getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
226
226
  /**
227
227
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
228
- * @summary Retrieve current policy version
228
+ * @summary Retrieve the policy
229
229
  * @param {string} code Unique identifier for the object.
230
230
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
231
231
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -239,10 +239,10 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
239
239
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
240
240
  * @param {number} [pageSize] Page size.
241
241
  * @param {string} [pageToken] Page token.
242
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
242
+ * @param {string} [filter] List filter
243
243
  * @param {string} [search] Search query.
244
244
  * @param {string} [order] Ordering criteria.
245
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
245
+ * @param {string} [expand] Extra fields to fetch.
246
246
  * @param {*} [options] Override http request option.
247
247
  * @throws {RequiredError}
248
248
  */
@@ -381,7 +381,7 @@ export interface PoliciesApiListPoliciesRequest {
381
381
  */
382
382
  readonly pageToken?: string;
383
383
  /**
384
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
384
+ * List filter
385
385
  * @type {string}
386
386
  * @memberof PoliciesApiListPolicies
387
387
  */
@@ -399,7 +399,7 @@ export interface PoliciesApiListPoliciesRequest {
399
399
  */
400
400
  readonly order?: string;
401
401
  /**
402
- * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
402
+ * Extra fields to fetch.
403
403
  * @type {string}
404
404
  * @memberof PoliciesApiListPolicies
405
405
  */
@@ -526,7 +526,7 @@ export declare class PoliciesApi extends BaseAPI {
526
526
  getPolicy(requestParameters: PoliciesApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
527
527
  /**
528
528
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
529
- * @summary Retrieve current policy version
529
+ * @summary Retrieve the policy
530
530
  * @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
531
531
  * @param {*} [options] Override http request option.
532
532
  * @throws {RequiredError}
@@ -199,7 +199,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
199
199
  },
200
200
  /**
201
201
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
202
- * @summary Retrieve current policy version
202
+ * @summary Retrieve the policy
203
203
  * @param {string} code Unique identifier for the object.
204
204
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
205
205
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -255,10 +255,10 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
255
255
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
256
  * @param {number} [pageSize] Page size.
257
257
  * @param {string} [pageToken] Page token.
258
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
258
+ * @param {string} [filter] List filter
259
259
  * @param {string} [search] Search query.
260
260
  * @param {string} [order] Ordering criteria.
261
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
261
+ * @param {string} [expand] Extra fields to fetch.
262
262
  * @param {*} [options] Override http request option.
263
263
  * @throws {RequiredError}
264
264
  */
@@ -579,7 +579,7 @@ var PoliciesApiFp = function (configuration) {
579
579
  },
580
580
  /**
581
581
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
582
- * @summary Retrieve current policy version
582
+ * @summary Retrieve the policy
583
583
  * @param {string} code Unique identifier for the object.
584
584
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
585
585
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -605,10 +605,10 @@ var PoliciesApiFp = function (configuration) {
605
605
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
606
606
  * @param {number} [pageSize] Page size.
607
607
  * @param {string} [pageToken] Page token.
608
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
608
+ * @param {string} [filter] List filter
609
609
  * @param {string} [search] Search query.
610
610
  * @param {string} [order] Ordering criteria.
611
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
611
+ * @param {string} [expand] Extra fields to fetch.
612
612
  * @param {*} [options] Override http request option.
613
613
  * @throws {RequiredError}
614
614
  */
@@ -747,7 +747,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
747
747
  },
748
748
  /**
749
749
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
750
- * @summary Retrieve current policy version
750
+ * @summary Retrieve the policy
751
751
  * @param {string} code Unique identifier for the object.
752
752
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
753
753
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
@@ -763,10 +763,10 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
763
763
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
764
764
  * @param {number} [pageSize] Page size.
765
765
  * @param {string} [pageToken] Page token.
766
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
766
+ * @param {string} [filter] List filter
767
767
  * @param {string} [search] Search query.
768
768
  * @param {string} [order] Ordering criteria.
769
- * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
769
+ * @param {string} [expand] Extra fields to fetch.
770
770
  * @param {*} [options] Override http request option.
771
771
  * @throws {RequiredError}
772
772
  */
@@ -860,7 +860,7 @@ var PoliciesApi = /** @class */ (function (_super) {
860
860
  };
861
861
  /**
862
862
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
863
- * @summary Retrieve current policy version
863
+ * @summary Retrieve the policy
864
864
  * @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
865
865
  * @param {*} [options] Override http request option.
866
866
  * @throws {RequiredError}
@@ -12,8 +12,6 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CloneProductVersionRequestDto } from '../models';
16
- import { CloneProductVersionResponseClass } from '../models';
17
15
  import { GetProductVersionResponseClass } from '../models';
18
16
  import { UpdateProductVersionRequestDto } from '../models';
19
17
  import { UpdateProductVersionResponseClass } from '../models';
@@ -22,14 +20,6 @@ import { UpdateProductVersionResponseClass } from '../models';
22
20
  * @export
23
21
  */
24
22
  export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Configuration) => {
25
- /**
26
- *
27
- * @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
28
- * @param {string} [authorization] Bearer Token
29
- * @param {*} [options] Override http request option.
30
- * @throws {RequiredError}
31
- */
32
- cloneProductVersion: (cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
23
  /**
34
24
  * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
35
25
  * @summary Retrieve the product version
@@ -56,14 +46,6 @@ export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Confi
56
46
  * @export
57
47
  */
58
48
  export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
59
- /**
60
- *
61
- * @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
62
- * @param {string} [authorization] Bearer Token
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloneProductVersionResponseClass>>;
67
49
  /**
68
50
  * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
69
51
  * @summary Retrieve the product version
@@ -90,14 +72,6 @@ export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
90
72
  * @export
91
73
  */
92
74
  export declare const ProductVersionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
93
- /**
94
- *
95
- * @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
96
- * @param {string} [authorization] Bearer Token
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<CloneProductVersionResponseClass>;
101
75
  /**
102
76
  * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
103
77
  * @summary Retrieve the product version
@@ -119,25 +93,6 @@ export declare const ProductVersionsApiFactory: (configuration?: Configuration,
119
93
  */
120
94
  updateProductVersion(id: number, updateProductVersionRequestDto: UpdateProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductVersionResponseClass>;
121
95
  };
122
- /**
123
- * Request parameters for cloneProductVersion operation in ProductVersionsApi.
124
- * @export
125
- * @interface ProductVersionsApiCloneProductVersionRequest
126
- */
127
- export interface ProductVersionsApiCloneProductVersionRequest {
128
- /**
129
- *
130
- * @type {CloneProductVersionRequestDto}
131
- * @memberof ProductVersionsApiCloneProductVersion
132
- */
133
- readonly cloneProductVersionRequestDto: CloneProductVersionRequestDto;
134
- /**
135
- * Bearer Token
136
- * @type {string}
137
- * @memberof ProductVersionsApiCloneProductVersion
138
- */
139
- readonly authorization?: string;
140
- }
141
96
  /**
142
97
  * Request parameters for getProductVersion operation in ProductVersionsApi.
143
98
  * @export
@@ -195,14 +150,6 @@ export interface ProductVersionsApiUpdateProductVersionRequest {
195
150
  * @extends {BaseAPI}
196
151
  */
197
152
  export declare class ProductVersionsApi extends BaseAPI {
198
- /**
199
- *
200
- * @param {ProductVersionsApiCloneProductVersionRequest} requestParameters Request parameters.
201
- * @param {*} [options] Override http request option.
202
- * @throws {RequiredError}
203
- * @memberof ProductVersionsApi
204
- */
205
- cloneProductVersion(requestParameters: ProductVersionsApiCloneProductVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CloneProductVersionResponseClass, any>>;
206
153
  /**
207
154
  * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
208
155
  * @summary Retrieve the product version