@emilgroup/public-api-sdk 1.1.0 → 1.2.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 (32) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/products-api.ts +174 -0
  4. package/dist/api/products-api.d.ts +101 -0
  5. package/dist/api/products-api.js +123 -0
  6. package/dist/models/create-account-request-dto.d.ts +19 -2
  7. package/dist/models/create-account-request-dto.js +5 -1
  8. package/dist/models/create-document-request-dto.d.ts +1 -1
  9. package/dist/models/document-class.d.ts +1 -1
  10. package/dist/models/index.d.ts +3 -0
  11. package/dist/models/index.js +3 -0
  12. package/dist/models/insured-object-type-class.d.ts +1 -1
  13. package/dist/models/list-products-response-class.d.ts +31 -0
  14. package/dist/models/list-products-response-class.js +15 -0
  15. package/dist/models/premium-override-dto.d.ts +1 -0
  16. package/dist/models/premium-override-dto.js +2 -1
  17. package/dist/models/product-class.d.ts +74 -0
  18. package/dist/models/product-class.js +15 -0
  19. package/dist/models/product-version-class.d.ts +61 -0
  20. package/dist/models/product-version-class.js +22 -0
  21. package/dist/models/send-notification-request-dto.d.ts +1 -1
  22. package/models/create-account-request-dto.ts +20 -2
  23. package/models/create-document-request-dto.ts +1 -1
  24. package/models/document-class.ts +1 -1
  25. package/models/index.ts +3 -0
  26. package/models/insured-object-type-class.ts +1 -1
  27. package/models/list-products-response-class.ts +37 -0
  28. package/models/premium-override-dto.ts +2 -1
  29. package/models/product-class.ts +80 -0
  30. package/models/product-version-class.ts +70 -0
  31. package/models/send-notification-request-dto.ts +1 -1
  32. package/package.json +1 -2
@@ -48,12 +48,15 @@ models/lead-class.ts
48
48
  models/lead-policy-class.ts
49
49
  models/lead-policy-object-class.ts
50
50
  models/list-documents-response-class.ts
51
+ models/list-products-response-class.ts
51
52
  models/payment-method-class.ts
52
53
  models/policy-object-request-dto.ts
53
54
  models/premium-override-dto.ts
54
55
  models/premium-override-request-dto.ts
56
+ models/product-class.ts
55
57
  models/product-factor-class.ts
56
58
  models/product-field-class.ts
59
+ models/product-version-class.ts
57
60
  models/send-notification-request-dto.ts
58
61
  models/send-notification-response-class.ts
59
62
  models/update-lead-request-dto.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/public-api-sdk@1.1.0 --save
20
+ npm install @emilgroup/public-api-sdk@1.2.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk@1.1.0
24
+ yarn add @emilgroup/public-api-sdk@1.2.0
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -35,6 +35,8 @@ import { InsuredObjectClass } from '../models';
35
35
  // @ts-ignore
36
36
  import { InsuredObjectTypeClass } from '../models';
37
37
  // @ts-ignore
38
+ import { ListProductsResponseClass } from '../models';
39
+ // @ts-ignore
38
40
  import { ProductFactorClass } from '../models';
39
41
  /**
40
42
  * ProductsApi - axios parameter creator
@@ -318,6 +320,77 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
318
320
 
319
321
 
320
322
 
323
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
324
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
325
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
326
+
327
+ return {
328
+ url: toPathString(localVarUrlObj),
329
+ options: localVarRequestOptions,
330
+ };
331
+ },
332
+ /**
333
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
334
+ * @summary List products
335
+ * @param {string} [authorization] Bearer Token
336
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
337
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
338
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
339
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
340
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
341
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ listProducts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
346
+ const localVarPath = `/publicapi/v1/products`;
347
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
348
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
349
+ let baseOptions;
350
+ let baseAccessToken;
351
+ if (configuration) {
352
+ baseOptions = configuration.baseOptions;
353
+ baseAccessToken = configuration.accessToken;
354
+ }
355
+
356
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
357
+ const localVarHeaderParameter = {} as any;
358
+ const localVarQueryParameter = {} as any;
359
+
360
+ // authentication bearer required
361
+ // http bearer authentication required
362
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
363
+
364
+ if (pageSize !== undefined) {
365
+ localVarQueryParameter['pageSize'] = pageSize;
366
+ }
367
+
368
+ if (pageToken !== undefined) {
369
+ localVarQueryParameter['pageToken'] = pageToken;
370
+ }
371
+
372
+ if (filter !== undefined) {
373
+ localVarQueryParameter['filter'] = filter;
374
+ }
375
+
376
+ if (search !== undefined) {
377
+ localVarQueryParameter['search'] = search;
378
+ }
379
+
380
+ if (order !== undefined) {
381
+ localVarQueryParameter['order'] = order;
382
+ }
383
+
384
+ if (expand !== undefined) {
385
+ localVarQueryParameter['expand'] = expand;
386
+ }
387
+
388
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
389
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
390
+ }
391
+
392
+
393
+
321
394
  setSearchParams(localVarUrlObj, localVarQueryParameter);
322
395
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
323
396
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -411,6 +484,23 @@ export const ProductsApiFp = function(configuration?: Configuration) {
411
484
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options);
412
485
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
413
486
  },
487
+ /**
488
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
489
+ * @summary List products
490
+ * @param {string} [authorization] Bearer Token
491
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
492
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
493
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
494
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
495
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
496
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ */
500
+ async listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
501
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options);
502
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
503
+ },
414
504
  }
415
505
  };
416
506
 
@@ -489,6 +579,22 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
489
579
  getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorClass>> {
490
580
  return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
491
581
  },
582
+ /**
583
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
584
+ * @summary List products
585
+ * @param {string} [authorization] Bearer Token
586
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
587
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
588
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
589
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
590
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
591
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductsResponseClass> {
596
+ return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
597
+ },
492
598
  };
493
599
  };
494
600
 
@@ -632,6 +738,62 @@ export interface ProductsApiGetProductFactorsRequest {
632
738
  readonly authorization?: string
633
739
  }
634
740
 
741
+ /**
742
+ * Request parameters for listProducts operation in ProductsApi.
743
+ * @export
744
+ * @interface ProductsApiListProductsRequest
745
+ */
746
+ export interface ProductsApiListProductsRequest {
747
+ /**
748
+ * Bearer Token
749
+ * @type {string}
750
+ * @memberof ProductsApiListProducts
751
+ */
752
+ readonly authorization?: string
753
+
754
+ /**
755
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
756
+ * @type {any}
757
+ * @memberof ProductsApiListProducts
758
+ */
759
+ readonly pageSize?: any
760
+
761
+ /**
762
+ * 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.
763
+ * @type {any}
764
+ * @memberof ProductsApiListProducts
765
+ */
766
+ readonly pageToken?: any
767
+
768
+ /**
769
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
770
+ * @type {any}
771
+ * @memberof ProductsApiListProducts
772
+ */
773
+ readonly filter?: any
774
+
775
+ /**
776
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
777
+ * @type {any}
778
+ * @memberof ProductsApiListProducts
779
+ */
780
+ readonly search?: any
781
+
782
+ /**
783
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
784
+ * @type {any}
785
+ * @memberof ProductsApiListProducts
786
+ */
787
+ readonly order?: any
788
+
789
+ /**
790
+ * You can expand product versions and insured object types list in this endpoint.
791
+ * @type {any}
792
+ * @memberof ProductsApiListProducts
793
+ */
794
+ readonly expand?: any
795
+ }
796
+
635
797
  /**
636
798
  * ProductsApi - object-oriented interface
637
799
  * @export
@@ -710,4 +872,16 @@ export class ProductsApi extends BaseAPI {
710
872
  public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
711
873
  return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
712
874
  }
875
+
876
+ /**
877
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
878
+ * @summary List products
879
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ * @memberof ProductsApi
883
+ */
884
+ public listProducts(requestParameters: ProductsApiListProductsRequest = {}, options?: AxiosRequestConfig) {
885
+ return ProductsApiFp(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
886
+ }
713
887
  }
@@ -19,6 +19,7 @@ import { CreateEstimatedInvoiceResponseClass } from '../models';
19
19
  import { GetCustomCssResponseClass } from '../models';
20
20
  import { InsuredObjectClass } from '../models';
21
21
  import { InsuredObjectTypeClass } from '../models';
22
+ import { ListProductsResponseClass } from '../models';
22
23
  import { ProductFactorClass } from '../models';
23
24
  /**
24
25
  * ProductsApi - axios parameter creator
@@ -81,6 +82,20 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
81
82
  * @throws {RequiredError}
82
83
  */
83
84
  getProductFactors: (productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
85
+ /**
86
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
87
+ * @summary List products
88
+ * @param {string} [authorization] Bearer Token
89
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
90
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
91
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
92
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
93
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
94
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ listProducts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
84
99
  };
85
100
  /**
86
101
  * ProductsApi - functional programming interface
@@ -143,6 +158,20 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
143
158
  * @throws {RequiredError}
144
159
  */
145
160
  getProductFactors(productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorClass>>>;
161
+ /**
162
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
163
+ * @summary List products
164
+ * @param {string} [authorization] Bearer Token
165
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
166
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
167
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
168
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
169
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
170
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>>;
146
175
  };
147
176
  /**
148
177
  * ProductsApi - factory interface
@@ -205,6 +234,20 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
205
234
  * @throws {RequiredError}
206
235
  */
207
236
  getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorClass>>;
237
+ /**
238
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
239
+ * @summary List products
240
+ * @param {string} [authorization] Bearer Token
241
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
242
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
243
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
244
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
245
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
246
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductsResponseClass>;
208
251
  };
209
252
  /**
210
253
  * Request parameters for createEstimatedInvoice operation in ProductsApi.
@@ -332,6 +375,55 @@ export interface ProductsApiGetProductFactorsRequest {
332
375
  */
333
376
  readonly authorization?: string;
334
377
  }
378
+ /**
379
+ * Request parameters for listProducts operation in ProductsApi.
380
+ * @export
381
+ * @interface ProductsApiListProductsRequest
382
+ */
383
+ export interface ProductsApiListProductsRequest {
384
+ /**
385
+ * Bearer Token
386
+ * @type {string}
387
+ * @memberof ProductsApiListProducts
388
+ */
389
+ readonly authorization?: string;
390
+ /**
391
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
392
+ * @type {any}
393
+ * @memberof ProductsApiListProducts
394
+ */
395
+ readonly pageSize?: any;
396
+ /**
397
+ * 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.
398
+ * @type {any}
399
+ * @memberof ProductsApiListProducts
400
+ */
401
+ readonly pageToken?: any;
402
+ /**
403
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
404
+ * @type {any}
405
+ * @memberof ProductsApiListProducts
406
+ */
407
+ readonly filter?: any;
408
+ /**
409
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
410
+ * @type {any}
411
+ * @memberof ProductsApiListProducts
412
+ */
413
+ readonly search?: any;
414
+ /**
415
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
416
+ * @type {any}
417
+ * @memberof ProductsApiListProducts
418
+ */
419
+ readonly order?: any;
420
+ /**
421
+ * You can expand product versions and insured object types list in this endpoint.
422
+ * @type {any}
423
+ * @memberof ProductsApiListProducts
424
+ */
425
+ readonly expand?: any;
426
+ }
335
427
  /**
336
428
  * ProductsApi - object-oriented interface
337
429
  * @export
@@ -393,4 +485,13 @@ export declare class ProductsApi extends BaseAPI {
393
485
  * @memberof ProductsApi
394
486
  */
395
487
  getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductFactorClass[], any>>;
488
+ /**
489
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
490
+ * @summary List products
491
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ * @memberof ProductsApi
495
+ */
496
+ listProducts(requestParameters?: ProductsApiListProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductsResponseClass, any>>;
396
497
  }
@@ -392,6 +392,74 @@ var ProductsApiAxiosParamCreator = function (configuration) {
392
392
  });
393
393
  });
394
394
  },
395
+ /**
396
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
397
+ * @summary List products
398
+ * @param {string} [authorization] Bearer Token
399
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
400
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
401
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
402
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
403
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
404
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
409
+ if (options === void 0) { options = {}; }
410
+ return __awaiter(_this, void 0, void 0, function () {
411
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
412
+ return __generator(this, function (_a) {
413
+ switch (_a.label) {
414
+ case 0:
415
+ localVarPath = "/publicapi/v1/products";
416
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
417
+ if (configuration) {
418
+ baseOptions = configuration.baseOptions;
419
+ baseAccessToken = configuration.accessToken;
420
+ }
421
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
422
+ localVarHeaderParameter = {};
423
+ localVarQueryParameter = {};
424
+ // authentication bearer required
425
+ // http bearer authentication required
426
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
427
+ case 1:
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ _a.sent();
431
+ if (pageSize !== undefined) {
432
+ localVarQueryParameter['pageSize'] = pageSize;
433
+ }
434
+ if (pageToken !== undefined) {
435
+ localVarQueryParameter['pageToken'] = pageToken;
436
+ }
437
+ if (filter !== undefined) {
438
+ localVarQueryParameter['filter'] = filter;
439
+ }
440
+ if (search !== undefined) {
441
+ localVarQueryParameter['search'] = search;
442
+ }
443
+ if (order !== undefined) {
444
+ localVarQueryParameter['order'] = order;
445
+ }
446
+ if (expand !== undefined) {
447
+ localVarQueryParameter['expand'] = expand;
448
+ }
449
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
450
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
451
+ }
452
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
453
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
454
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
455
+ return [2 /*return*/, {
456
+ url: (0, common_1.toPathString)(localVarUrlObj),
457
+ options: localVarRequestOptions,
458
+ }];
459
+ }
460
+ });
461
+ });
462
+ },
395
463
  };
396
464
  };
397
465
  exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
@@ -530,6 +598,32 @@ var ProductsApiFp = function (configuration) {
530
598
  });
531
599
  });
532
600
  },
601
+ /**
602
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
603
+ * @summary List products
604
+ * @param {string} [authorization] Bearer Token
605
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
606
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
607
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
608
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
609
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
610
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
614
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
615
+ return __awaiter(this, void 0, void 0, function () {
616
+ var localVarAxiosArgs;
617
+ return __generator(this, function (_a) {
618
+ switch (_a.label) {
619
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
620
+ case 1:
621
+ localVarAxiosArgs = _a.sent();
622
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
623
+ }
624
+ });
625
+ });
626
+ },
533
627
  };
534
628
  };
535
629
  exports.ProductsApiFp = ProductsApiFp;
@@ -608,6 +702,22 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
608
702
  getProductFactors: function (productCode, allValues, authorization, options) {
609
703
  return localVarFp.getProductFactors(productCode, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
610
704
  },
705
+ /**
706
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
707
+ * @summary List products
708
+ * @param {string} [authorization] Bearer Token
709
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
710
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
711
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
712
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
713
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
714
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
715
+ * @param {*} [options] Override http request option.
716
+ * @throws {RequiredError}
717
+ */
718
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
719
+ return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
720
+ },
611
721
  };
612
722
  };
613
723
  exports.ProductsApiFactory = ProductsApiFactory;
@@ -695,6 +805,19 @@ var ProductsApi = /** @class */ (function (_super) {
695
805
  var _this = this;
696
806
  return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
697
807
  };
808
+ /**
809
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
810
+ * @summary List products
811
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
812
+ * @param {*} [options] Override http request option.
813
+ * @throws {RequiredError}
814
+ * @memberof ProductsApi
815
+ */
816
+ ProductsApi.prototype.listProducts = function (requestParameters, options) {
817
+ var _this = this;
818
+ if (requestParameters === void 0) { requestParameters = {}; }
819
+ return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
820
+ };
698
821
  return ProductsApi;
699
822
  }(base_1.BaseAPI));
700
823
  exports.ProductsApi = ProductsApi;
@@ -70,17 +70,29 @@ export interface CreateAccountRequestDto {
70
70
  */
71
71
  'houseNumber': string;
72
72
  /**
73
- * Customer birth date
73
+ * Customer birth date (Required for account of type person).
74
74
  * @type {string}
75
75
  * @memberof CreateAccountRequestDto
76
76
  */
77
- 'birthDate': string;
77
+ 'birthDate'?: string;
78
78
  /**
79
79
  * Customer phone number
80
80
  * @type {string}
81
81
  * @memberof CreateAccountRequestDto
82
82
  */
83
83
  'phone': string;
84
+ /**
85
+ * Optional field to enter the type of the account.
86
+ * @type {string}
87
+ * @memberof CreateAccountRequestDto
88
+ */
89
+ 'type'?: CreateAccountRequestDtoTypeEnum;
90
+ /**
91
+ * Customer company name (Required for account of type org).
92
+ * @type {string}
93
+ * @memberof CreateAccountRequestDto
94
+ */
95
+ 'companyName'?: string;
84
96
  /**
85
97
  * Account number
86
98
  * @type {string}
@@ -113,3 +125,8 @@ export declare const CreateAccountRequestDtoGenderEnum: {
113
125
  readonly Unspecified: "unspecified";
114
126
  };
115
127
  export type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
128
+ export declare const CreateAccountRequestDtoTypeEnum: {
129
+ readonly Person: "person";
130
+ readonly Org: "org";
131
+ };
132
+ export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateAccountRequestDtoGenderEnum = exports.CreateAccountRequestDtoTitleEnum = void 0;
16
+ exports.CreateAccountRequestDtoTypeEnum = exports.CreateAccountRequestDtoGenderEnum = exports.CreateAccountRequestDtoTitleEnum = void 0;
17
17
  exports.CreateAccountRequestDtoTitleEnum = {
18
18
  Empty: '',
19
19
  Dr: 'Dr.',
@@ -25,3 +25,7 @@ exports.CreateAccountRequestDtoGenderEnum = {
25
25
  Female: 'female',
26
26
  Unspecified: 'unspecified'
27
27
  };
28
+ exports.CreateAccountRequestDtoTypeEnum = {
29
+ Person: 'person',
30
+ Org: 'org'
31
+ };
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface CreateDocumentRequestDto {
18
18
  /**
19
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the document.
19
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
20
20
  * @type {string}
21
21
  * @memberof CreateDocumentRequestDto
22
22
  */
@@ -28,7 +28,7 @@ export interface DocumentClass {
28
28
  */
29
29
  'code': string;
30
30
  /**
31
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the document.
31
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
32
32
  * @type {string}
33
33
  * @memberof DocumentClass
34
34
  */
@@ -32,12 +32,15 @@ export * from './lead-class';
32
32
  export * from './lead-policy-class';
33
33
  export * from './lead-policy-object-class';
34
34
  export * from './list-documents-response-class';
35
+ export * from './list-products-response-class';
35
36
  export * from './payment-method-class';
36
37
  export * from './policy-object-request-dto';
37
38
  export * from './premium-override-dto';
38
39
  export * from './premium-override-request-dto';
40
+ export * from './product-class';
39
41
  export * from './product-factor-class';
40
42
  export * from './product-field-class';
43
+ export * from './product-version-class';
41
44
  export * from './send-notification-request-dto';
42
45
  export * from './send-notification-response-class';
43
46
  export * from './update-lead-request-dto';
@@ -48,12 +48,15 @@ __exportStar(require("./lead-class"), exports);
48
48
  __exportStar(require("./lead-policy-class"), exports);
49
49
  __exportStar(require("./lead-policy-object-class"), exports);
50
50
  __exportStar(require("./list-documents-response-class"), exports);
51
+ __exportStar(require("./list-products-response-class"), exports);
51
52
  __exportStar(require("./payment-method-class"), exports);
52
53
  __exportStar(require("./policy-object-request-dto"), exports);
53
54
  __exportStar(require("./premium-override-dto"), exports);
54
55
  __exportStar(require("./premium-override-request-dto"), exports);
56
+ __exportStar(require("./product-class"), exports);
55
57
  __exportStar(require("./product-factor-class"), exports);
56
58
  __exportStar(require("./product-field-class"), exports);
59
+ __exportStar(require("./product-version-class"), exports);
57
60
  __exportStar(require("./send-notification-request-dto"), exports);
58
61
  __exportStar(require("./send-notification-response-class"), exports);
59
62
  __exportStar(require("./update-lead-request-dto"), exports);
@@ -28,7 +28,7 @@ export interface InsuredObjectTypeClass {
28
28
  */
29
29
  'name': string;
30
30
  /**
31
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the undefined.
31
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
32
32
  * @type {string}
33
33
  * @memberof InsuredObjectTypeClass
34
34
  */
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public 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 { ProductClass } from './product-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListProductsResponseClass
17
+ */
18
+ export interface ListProductsResponseClass {
19
+ /**
20
+ * List of products.
21
+ * @type {Array<ProductClass>}
22
+ * @memberof ListProductsResponseClass
23
+ */
24
+ 'items': Array<ProductClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListProductsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public 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 });
@@ -49,5 +49,6 @@ export declare const PremiumOverrideDtoUnitEnum: {
49
49
  readonly Week: "week";
50
50
  readonly Month: "month";
51
51
  readonly Year: "year";
52
+ readonly OneTimePayment: "oneTimePayment";
52
53
  };
53
54
  export type PremiumOverrideDtoUnitEnum = typeof PremiumOverrideDtoUnitEnum[keyof typeof PremiumOverrideDtoUnitEnum];
@@ -21,5 +21,6 @@ exports.PremiumOverrideDtoUnitEnum = {
21
21
  Day: 'day',
22
22
  Week: 'week',
23
23
  Month: 'month',
24
- Year: 'year'
24
+ Year: 'year',
25
+ OneTimePayment: 'oneTimePayment'
25
26
  };
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public 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 { InsuredObjectTypeClass } from './insured-object-type-class';
13
+ import { ProductVersionClass } from './product-version-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProductClass
18
+ */
19
+ export interface ProductClass {
20
+ /**
21
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
22
+ * @type {number}
23
+ * @memberof ProductClass
24
+ */
25
+ 'id': number;
26
+ /**
27
+ * Unique identifier for the object.
28
+ * @type {string}
29
+ * @memberof ProductClass
30
+ */
31
+ 'code': string;
32
+ /**
33
+ * Product\'s name.
34
+ * @type {string}
35
+ * @memberof ProductClass
36
+ */
37
+ 'name': string;
38
+ /**
39
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
40
+ * @type {string}
41
+ * @memberof ProductClass
42
+ */
43
+ 'slug': string;
44
+ /**
45
+ * Insured object types covered under product.
46
+ * @type {Array<InsuredObjectTypeClass>}
47
+ * @memberof ProductClass
48
+ */
49
+ 'insuredObjectTypes': Array<InsuredObjectTypeClass>;
50
+ /**
51
+ * Contract duration in days.
52
+ * @type {number}
53
+ * @memberof ProductClass
54
+ */
55
+ 'contractDurationDays': number;
56
+ /**
57
+ * Product versions.
58
+ * @type {Array<ProductVersionClass>}
59
+ * @memberof ProductClass
60
+ */
61
+ 'versions': Array<ProductVersionClass>;
62
+ /**
63
+ * Time at which the object was created.
64
+ * @type {string}
65
+ * @memberof ProductClass
66
+ */
67
+ 'createdAt': string;
68
+ /**
69
+ * Time at which the object was updated.
70
+ * @type {string}
71
+ * @memberof ProductClass
72
+ */
73
+ 'updatedAt': string;
74
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ProductVersionClass
16
+ */
17
+ export interface ProductVersionClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof ProductVersionClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier referencing the product.
26
+ * @type {number}
27
+ * @memberof ProductVersionClass
28
+ */
29
+ 'productId': number;
30
+ /**
31
+ * Product version description.
32
+ * @type {string}
33
+ * @memberof ProductVersionClass
34
+ */
35
+ 'description': string;
36
+ /**
37
+ * Product version status.
38
+ * @type {string}
39
+ * @memberof ProductVersionClass
40
+ */
41
+ 'status': ProductVersionClassStatusEnum;
42
+ /**
43
+ * Time at which the object was created.
44
+ * @type {string}
45
+ * @memberof ProductVersionClass
46
+ */
47
+ 'createdAt': string;
48
+ /**
49
+ * Time at which the object was updated.
50
+ * @type {string}
51
+ * @memberof ProductVersionClass
52
+ */
53
+ 'updatedAt': string;
54
+ }
55
+ export declare const ProductVersionClassStatusEnum: {
56
+ readonly Draft: "draft";
57
+ readonly Active: "active";
58
+ readonly Passive: "passive";
59
+ readonly Archived: "archived";
60
+ };
61
+ export type ProductVersionClassStatusEnum = typeof ProductVersionClassStatusEnum[keyof typeof ProductVersionClassStatusEnum];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public 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 });
16
+ exports.ProductVersionClassStatusEnum = void 0;
17
+ exports.ProductVersionClassStatusEnum = {
18
+ Draft: 'draft',
19
+ Active: 'active',
20
+ Passive: 'passive',
21
+ Archived: 'archived'
22
+ };
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface SendNotificationRequestDto {
18
18
  /**
19
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the email.
19
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
20
20
  * @type {string}
21
21
  * @memberof SendNotificationRequestDto
22
22
  */
@@ -75,17 +75,29 @@ export interface CreateAccountRequestDto {
75
75
  */
76
76
  'houseNumber': string;
77
77
  /**
78
- * Customer birth date
78
+ * Customer birth date (Required for account of type person).
79
79
  * @type {string}
80
80
  * @memberof CreateAccountRequestDto
81
81
  */
82
- 'birthDate': string;
82
+ 'birthDate'?: string;
83
83
  /**
84
84
  * Customer phone number
85
85
  * @type {string}
86
86
  * @memberof CreateAccountRequestDto
87
87
  */
88
88
  'phone': string;
89
+ /**
90
+ * Optional field to enter the type of the account.
91
+ * @type {string}
92
+ * @memberof CreateAccountRequestDto
93
+ */
94
+ 'type'?: CreateAccountRequestDtoTypeEnum;
95
+ /**
96
+ * Customer company name (Required for account of type org).
97
+ * @type {string}
98
+ * @memberof CreateAccountRequestDto
99
+ */
100
+ 'companyName'?: string;
89
101
  /**
90
102
  * Account number
91
103
  * @type {string}
@@ -121,5 +133,11 @@ export const CreateAccountRequestDtoGenderEnum = {
121
133
  } as const;
122
134
 
123
135
  export type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
136
+ export const CreateAccountRequestDtoTypeEnum = {
137
+ Person: 'person',
138
+ Org: 'org'
139
+ } as const;
140
+
141
+ export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
124
142
 
125
143
 
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface CreateDocumentRequestDto {
23
23
  /**
24
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the document.
24
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
25
  * @type {string}
26
26
  * @memberof CreateDocumentRequestDto
27
27
  */
@@ -33,7 +33,7 @@ export interface DocumentClass {
33
33
  */
34
34
  'code': string;
35
35
  /**
36
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the document.
36
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
37
37
  * @type {string}
38
38
  * @memberof DocumentClass
39
39
  */
package/models/index.ts CHANGED
@@ -32,12 +32,15 @@ export * from './lead-class';
32
32
  export * from './lead-policy-class';
33
33
  export * from './lead-policy-object-class';
34
34
  export * from './list-documents-response-class';
35
+ export * from './list-products-response-class';
35
36
  export * from './payment-method-class';
36
37
  export * from './policy-object-request-dto';
37
38
  export * from './premium-override-dto';
38
39
  export * from './premium-override-request-dto';
40
+ export * from './product-class';
39
41
  export * from './product-factor-class';
40
42
  export * from './product-field-class';
43
+ export * from './product-version-class';
41
44
  export * from './send-notification-request-dto';
42
45
  export * from './send-notification-response-class';
43
46
  export * from './update-lead-request-dto';
@@ -33,7 +33,7 @@ export interface InsuredObjectTypeClass {
33
33
  */
34
34
  'name': string;
35
35
  /**
36
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the undefined.
36
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
37
37
  * @type {string}
38
38
  * @memberof InsuredObjectTypeClass
39
39
  */
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public 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 { ProductClass } from './product-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListProductsResponseClass
22
+ */
23
+ export interface ListProductsResponseClass {
24
+ /**
25
+ * List of products.
26
+ * @type {Array<ProductClass>}
27
+ * @memberof ListProductsResponseClass
28
+ */
29
+ 'items': Array<ProductClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListProductsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -55,7 +55,8 @@ export const PremiumOverrideDtoUnitEnum = {
55
55
  Day: 'day',
56
56
  Week: 'week',
57
57
  Month: 'month',
58
- Year: 'year'
58
+ Year: 'year',
59
+ OneTimePayment: 'oneTimePayment'
59
60
  } as const;
60
61
 
61
62
  export type PremiumOverrideDtoUnitEnum = typeof PremiumOverrideDtoUnitEnum[keyof typeof PremiumOverrideDtoUnitEnum];
@@ -0,0 +1,80 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public 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 { InsuredObjectTypeClass } from './insured-object-type-class';
17
+ import { ProductVersionClass } from './product-version-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface ProductClass
23
+ */
24
+ export interface ProductClass {
25
+ /**
26
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
27
+ * @type {number}
28
+ * @memberof ProductClass
29
+ */
30
+ 'id': number;
31
+ /**
32
+ * Unique identifier for the object.
33
+ * @type {string}
34
+ * @memberof ProductClass
35
+ */
36
+ 'code': string;
37
+ /**
38
+ * Product\'s name.
39
+ * @type {string}
40
+ * @memberof ProductClass
41
+ */
42
+ 'name': string;
43
+ /**
44
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
45
+ * @type {string}
46
+ * @memberof ProductClass
47
+ */
48
+ 'slug': string;
49
+ /**
50
+ * Insured object types covered under product.
51
+ * @type {Array<InsuredObjectTypeClass>}
52
+ * @memberof ProductClass
53
+ */
54
+ 'insuredObjectTypes': Array<InsuredObjectTypeClass>;
55
+ /**
56
+ * Contract duration in days.
57
+ * @type {number}
58
+ * @memberof ProductClass
59
+ */
60
+ 'contractDurationDays': number;
61
+ /**
62
+ * Product versions.
63
+ * @type {Array<ProductVersionClass>}
64
+ * @memberof ProductClass
65
+ */
66
+ 'versions': Array<ProductVersionClass>;
67
+ /**
68
+ * Time at which the object was created.
69
+ * @type {string}
70
+ * @memberof ProductClass
71
+ */
72
+ 'createdAt': string;
73
+ /**
74
+ * Time at which the object was updated.
75
+ * @type {string}
76
+ * @memberof ProductClass
77
+ */
78
+ 'updatedAt': string;
79
+ }
80
+
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ProductVersionClass
21
+ */
22
+ export interface ProductVersionClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof ProductVersionClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the product.
31
+ * @type {number}
32
+ * @memberof ProductVersionClass
33
+ */
34
+ 'productId': number;
35
+ /**
36
+ * Product version description.
37
+ * @type {string}
38
+ * @memberof ProductVersionClass
39
+ */
40
+ 'description': string;
41
+ /**
42
+ * Product version status.
43
+ * @type {string}
44
+ * @memberof ProductVersionClass
45
+ */
46
+ 'status': ProductVersionClassStatusEnum;
47
+ /**
48
+ * Time at which the object was created.
49
+ * @type {string}
50
+ * @memberof ProductVersionClass
51
+ */
52
+ 'createdAt': string;
53
+ /**
54
+ * Time at which the object was updated.
55
+ * @type {string}
56
+ * @memberof ProductVersionClass
57
+ */
58
+ 'updatedAt': string;
59
+ }
60
+
61
+ export const ProductVersionClassStatusEnum = {
62
+ Draft: 'draft',
63
+ Active: 'active',
64
+ Passive: 'passive',
65
+ Archived: 'archived'
66
+ } as const;
67
+
68
+ export type ProductVersionClassStatusEnum = typeof ProductVersionClassStatusEnum[keyof typeof ProductVersionClassStatusEnum];
69
+
70
+
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface SendNotificationRequestDto {
23
23
  /**
24
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the email.
24
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
25
  * @type {string}
26
26
  * @memberof SendNotificationRequestDto
27
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/public-api-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "OpenAPI client for @emilgroup/public-api-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,7 +21,6 @@
21
21
  "axios": "^0.27.2"
22
22
  },
23
23
  "devDependencies": {
24
-
25
24
  "typescript": "^4.0"
26
25
  }
27
26
  }