@emilgroup/public-api-sdk-node 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/api/products-api.ts +174 -0
- package/api.ts +0 -6
- package/base.ts +1 -0
- package/dist/api/products-api.d.ts +101 -0
- package/dist/api/products-api.js +123 -0
- package/dist/api.d.ts +0 -5
- package/dist/api.js +0 -7
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/create-account-request-dto.d.ts +19 -2
- package/dist/models/create-account-request-dto.js +5 -1
- package/dist/models/create-document-request-dto.d.ts +1 -1
- package/dist/models/create-estimated-invoice-request-dto.d.ts +6 -0
- package/dist/models/create-lead-request-dto.d.ts +6 -0
- package/dist/models/document-class.d.ts +1 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/insured-object-type-class.d.ts +1 -1
- package/dist/models/lead-class.d.ts +12 -0
- package/dist/models/list-products-response-class.d.ts +31 -0
- package/dist/models/list-products-response-class.js +15 -0
- package/dist/models/premium-override-dto.d.ts +1 -0
- package/dist/models/premium-override-dto.js +2 -1
- package/dist/models/product-class.d.ts +74 -0
- package/dist/models/product-class.js +15 -0
- package/dist/models/product-version-class.d.ts +61 -0
- package/dist/models/product-version-class.js +22 -0
- package/dist/models/send-notification-request-dto.d.ts +1 -1
- package/dist/models/update-lead-request-dto.d.ts +6 -0
- package/models/create-account-request-dto.ts +20 -2
- package/models/create-document-request-dto.ts +1 -1
- package/models/create-estimated-invoice-request-dto.ts +6 -0
- package/models/create-lead-request-dto.ts +6 -0
- package/models/document-class.ts +1 -1
- package/models/index.ts +3 -0
- package/models/insured-object-type-class.ts +1 -1
- package/models/lead-class.ts +12 -0
- package/models/list-products-response-class.ts +37 -0
- package/models/premium-override-dto.ts +2 -1
- package/models/product-class.ts +80 -0
- package/models/product-version-class.ts +70 -0
- package/models/send-notification-request-dto.ts +1 -1
- package/models/update-lead-request-dto.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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-node@1.5.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.5.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.5.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.5.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/products-api.ts
CHANGED
|
@@ -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
|
// URLSearchParams not necessarily used
|
|
40
42
|
// @ts-ignore
|
|
@@ -322,6 +324,77 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
322
324
|
|
|
323
325
|
|
|
324
326
|
|
|
327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
329
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
330
|
+
|
|
331
|
+
return {
|
|
332
|
+
url: toPathString(localVarUrlObj),
|
|
333
|
+
options: localVarRequestOptions,
|
|
334
|
+
};
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
* 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.
|
|
338
|
+
* @summary List products
|
|
339
|
+
* @param {string} [authorization] Bearer Token
|
|
340
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
341
|
+
* @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.
|
|
342
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
343
|
+
* @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.
|
|
344
|
+
* @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.
|
|
345
|
+
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
*/
|
|
349
|
+
listProducts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
350
|
+
const localVarPath = `/publicapi/v1/products`;
|
|
351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
353
|
+
let baseOptions;
|
|
354
|
+
let baseAccessToken;
|
|
355
|
+
if (configuration) {
|
|
356
|
+
baseOptions = configuration.baseOptions;
|
|
357
|
+
baseAccessToken = configuration.accessToken;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
361
|
+
const localVarHeaderParameter = {} as any;
|
|
362
|
+
const localVarQueryParameter = {} as any;
|
|
363
|
+
|
|
364
|
+
// authentication bearer required
|
|
365
|
+
// http bearer authentication required
|
|
366
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
367
|
+
|
|
368
|
+
if (pageSize !== undefined) {
|
|
369
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (pageToken !== undefined) {
|
|
373
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
if (filter !== undefined) {
|
|
377
|
+
localVarQueryParameter['filter'] = filter;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
if (search !== undefined) {
|
|
381
|
+
localVarQueryParameter['search'] = search;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
if (order !== undefined) {
|
|
385
|
+
localVarQueryParameter['order'] = order;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
if (expand !== undefined) {
|
|
389
|
+
localVarQueryParameter['expand'] = expand;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
393
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
325
398
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
326
399
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
327
400
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -415,6 +488,23 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
415
488
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options);
|
|
416
489
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
490
|
},
|
|
491
|
+
/**
|
|
492
|
+
* 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.
|
|
493
|
+
* @summary List products
|
|
494
|
+
* @param {string} [authorization] Bearer Token
|
|
495
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
496
|
+
* @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.
|
|
497
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
498
|
+
* @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.
|
|
499
|
+
* @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.
|
|
500
|
+
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
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>> {
|
|
505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
506
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
507
|
+
},
|
|
418
508
|
}
|
|
419
509
|
};
|
|
420
510
|
|
|
@@ -493,6 +583,22 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
493
583
|
getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorClass>> {
|
|
494
584
|
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
|
|
495
585
|
},
|
|
586
|
+
/**
|
|
587
|
+
* 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.
|
|
588
|
+
* @summary List products
|
|
589
|
+
* @param {string} [authorization] Bearer Token
|
|
590
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
591
|
+
* @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.
|
|
592
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
593
|
+
* @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.
|
|
594
|
+
* @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.
|
|
595
|
+
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
600
|
+
return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
601
|
+
},
|
|
496
602
|
};
|
|
497
603
|
};
|
|
498
604
|
|
|
@@ -636,6 +742,62 @@ export interface ProductsApiGetProductFactorsRequest {
|
|
|
636
742
|
readonly authorization?: string
|
|
637
743
|
}
|
|
638
744
|
|
|
745
|
+
/**
|
|
746
|
+
* Request parameters for listProducts operation in ProductsApi.
|
|
747
|
+
* @export
|
|
748
|
+
* @interface ProductsApiListProductsRequest
|
|
749
|
+
*/
|
|
750
|
+
export interface ProductsApiListProductsRequest {
|
|
751
|
+
/**
|
|
752
|
+
* Bearer Token
|
|
753
|
+
* @type {string}
|
|
754
|
+
* @memberof ProductsApiListProducts
|
|
755
|
+
*/
|
|
756
|
+
readonly authorization?: string
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
760
|
+
* @type {any}
|
|
761
|
+
* @memberof ProductsApiListProducts
|
|
762
|
+
*/
|
|
763
|
+
readonly pageSize?: any
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* 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.
|
|
767
|
+
* @type {any}
|
|
768
|
+
* @memberof ProductsApiListProducts
|
|
769
|
+
*/
|
|
770
|
+
readonly pageToken?: any
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
774
|
+
* @type {any}
|
|
775
|
+
* @memberof ProductsApiListProducts
|
|
776
|
+
*/
|
|
777
|
+
readonly filter?: any
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
781
|
+
* @type {any}
|
|
782
|
+
* @memberof ProductsApiListProducts
|
|
783
|
+
*/
|
|
784
|
+
readonly search?: any
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* 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.
|
|
788
|
+
* @type {any}
|
|
789
|
+
* @memberof ProductsApiListProducts
|
|
790
|
+
*/
|
|
791
|
+
readonly order?: any
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* You can expand product versions and insured object types list in this endpoint.
|
|
795
|
+
* @type {any}
|
|
796
|
+
* @memberof ProductsApiListProducts
|
|
797
|
+
*/
|
|
798
|
+
readonly expand?: any
|
|
799
|
+
}
|
|
800
|
+
|
|
639
801
|
/**
|
|
640
802
|
* ProductsApi - object-oriented interface
|
|
641
803
|
* @export
|
|
@@ -714,4 +876,16 @@ export class ProductsApi extends BaseAPI {
|
|
|
714
876
|
public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
|
|
715
877
|
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
716
878
|
}
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* 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.
|
|
882
|
+
* @summary List products
|
|
883
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
* @memberof ProductsApi
|
|
887
|
+
*/
|
|
888
|
+
public listProducts(requestParameters: ProductsApiListProductsRequest = {}, options?: AxiosRequestConfig) {
|
|
889
|
+
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));
|
|
890
|
+
}
|
|
717
891
|
}
|
package/api.ts
CHANGED
|
@@ -37,9 +37,3 @@ export * from './api/notifications-api';
|
|
|
37
37
|
export * from './api/payments-setup-api';
|
|
38
38
|
export * from './api/products-api';
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
export enum Environment {
|
|
42
|
-
Production = 'https://apiv2.emil.de',
|
|
43
|
-
Test = 'https://apiv2-test.emil.de',
|
|
44
|
-
Development = 'https://apiv2-dev.emil.de',
|
|
45
|
-
}
|
package/base.ts
CHANGED
|
@@ -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=1, your subsequent call can include pageToken=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=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=1, your subsequent call can include pageToken=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=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=1, your subsequent call can include pageToken=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=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=1, your subsequent call can include pageToken=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=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
|
}
|
package/dist/api/products-api.js
CHANGED
|
@@ -396,6 +396,74 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
396
396
|
});
|
|
397
397
|
});
|
|
398
398
|
},
|
|
399
|
+
/**
|
|
400
|
+
* 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.
|
|
401
|
+
* @summary List products
|
|
402
|
+
* @param {string} [authorization] Bearer Token
|
|
403
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
404
|
+
* @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.
|
|
405
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
406
|
+
* @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.
|
|
407
|
+
* @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.
|
|
408
|
+
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
*/
|
|
412
|
+
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
413
|
+
if (options === void 0) { options = {}; }
|
|
414
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
415
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
416
|
+
return __generator(this, function (_a) {
|
|
417
|
+
switch (_a.label) {
|
|
418
|
+
case 0:
|
|
419
|
+
localVarPath = "/publicapi/v1/products";
|
|
420
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
421
|
+
if (configuration) {
|
|
422
|
+
baseOptions = configuration.baseOptions;
|
|
423
|
+
baseAccessToken = configuration.accessToken;
|
|
424
|
+
}
|
|
425
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
426
|
+
localVarHeaderParameter = {};
|
|
427
|
+
localVarQueryParameter = {};
|
|
428
|
+
// authentication bearer required
|
|
429
|
+
// http bearer authentication required
|
|
430
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
431
|
+
case 1:
|
|
432
|
+
// authentication bearer required
|
|
433
|
+
// http bearer authentication required
|
|
434
|
+
_a.sent();
|
|
435
|
+
if (pageSize !== undefined) {
|
|
436
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
437
|
+
}
|
|
438
|
+
if (pageToken !== undefined) {
|
|
439
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
440
|
+
}
|
|
441
|
+
if (filter !== undefined) {
|
|
442
|
+
localVarQueryParameter['filter'] = filter;
|
|
443
|
+
}
|
|
444
|
+
if (search !== undefined) {
|
|
445
|
+
localVarQueryParameter['search'] = search;
|
|
446
|
+
}
|
|
447
|
+
if (order !== undefined) {
|
|
448
|
+
localVarQueryParameter['order'] = order;
|
|
449
|
+
}
|
|
450
|
+
if (expand !== undefined) {
|
|
451
|
+
localVarQueryParameter['expand'] = expand;
|
|
452
|
+
}
|
|
453
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
454
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
455
|
+
}
|
|
456
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
457
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
458
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
459
|
+
return [2 /*return*/, {
|
|
460
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
461
|
+
options: localVarRequestOptions,
|
|
462
|
+
}];
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
},
|
|
399
467
|
};
|
|
400
468
|
};
|
|
401
469
|
exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
|
|
@@ -534,6 +602,32 @@ var ProductsApiFp = function (configuration) {
|
|
|
534
602
|
});
|
|
535
603
|
});
|
|
536
604
|
},
|
|
605
|
+
/**
|
|
606
|
+
* 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.
|
|
607
|
+
* @summary List products
|
|
608
|
+
* @param {string} [authorization] Bearer Token
|
|
609
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
610
|
+
* @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.
|
|
611
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
612
|
+
* @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.
|
|
613
|
+
* @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.
|
|
614
|
+
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
*/
|
|
618
|
+
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
619
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
620
|
+
var localVarAxiosArgs;
|
|
621
|
+
return __generator(this, function (_a) {
|
|
622
|
+
switch (_a.label) {
|
|
623
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
624
|
+
case 1:
|
|
625
|
+
localVarAxiosArgs = _a.sent();
|
|
626
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
627
|
+
}
|
|
628
|
+
});
|
|
629
|
+
});
|
|
630
|
+
},
|
|
537
631
|
};
|
|
538
632
|
};
|
|
539
633
|
exports.ProductsApiFp = ProductsApiFp;
|
|
@@ -612,6 +706,22 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
612
706
|
getProductFactors: function (productCode, allValues, authorization, options) {
|
|
613
707
|
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
614
708
|
},
|
|
709
|
+
/**
|
|
710
|
+
* 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.
|
|
711
|
+
* @summary List products
|
|
712
|
+
* @param {string} [authorization] Bearer Token
|
|
713
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
714
|
+
* @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.
|
|
715
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
716
|
+
* @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.
|
|
717
|
+
* @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.
|
|
718
|
+
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
723
|
+
return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
724
|
+
},
|
|
615
725
|
};
|
|
616
726
|
};
|
|
617
727
|
exports.ProductsApiFactory = ProductsApiFactory;
|
|
@@ -699,6 +809,19 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
699
809
|
var _this = this;
|
|
700
810
|
return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
701
811
|
};
|
|
812
|
+
/**
|
|
813
|
+
* 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.
|
|
814
|
+
* @summary List products
|
|
815
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
* @memberof ProductsApi
|
|
819
|
+
*/
|
|
820
|
+
ProductsApi.prototype.listProducts = function (requestParameters, options) {
|
|
821
|
+
var _this = this;
|
|
822
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
823
|
+
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); });
|
|
824
|
+
};
|
|
702
825
|
return ProductsApi;
|
|
703
826
|
}(base_1.BaseAPI));
|
|
704
827
|
exports.ProductsApi = ProductsApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -14,8 +14,3 @@ export * from './api/leads-api';
|
|
|
14
14
|
export * from './api/notifications-api';
|
|
15
15
|
export * from './api/payments-setup-api';
|
|
16
16
|
export * from './api/products-api';
|
|
17
|
-
export declare enum Environment {
|
|
18
|
-
Production = "https://apiv2.emil.de",
|
|
19
|
-
Test = "https://apiv2-test.emil.de",
|
|
20
|
-
Development = "https://apiv2-dev.emil.de"
|
|
21
|
-
}
|
package/dist/api.js
CHANGED
|
@@ -27,15 +27,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.Environment = void 0;
|
|
31
30
|
__exportStar(require("./api/documents-api"), exports);
|
|
32
31
|
__exportStar(require("./api/leads-api"), exports);
|
|
33
32
|
__exportStar(require("./api/notifications-api"), exports);
|
|
34
33
|
__exportStar(require("./api/payments-setup-api"), exports);
|
|
35
34
|
__exportStar(require("./api/products-api"), exports);
|
|
36
|
-
var Environment;
|
|
37
|
-
(function (Environment) {
|
|
38
|
-
Environment["Production"] = "https://apiv2.emil.de";
|
|
39
|
-
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
40
|
-
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
41
|
-
})(Environment = exports.Environment || (exports.Environment = {}));
|
package/dist/base.d.ts
CHANGED
|
@@ -28,7 +28,8 @@ export interface LoginClass {
|
|
|
28
28
|
}
|
|
29
29
|
export declare enum Environment {
|
|
30
30
|
Production = "https://apiv2.emil.de",
|
|
31
|
-
Test = "https://apiv2-test.emil.de"
|
|
31
|
+
Test = "https://apiv2-test.emil.de",
|
|
32
|
+
Development = "https://apiv2-dev.emil.de"
|
|
32
33
|
}
|
|
33
34
|
export declare function resetRetry(): void;
|
|
34
35
|
/**
|
package/dist/base.js
CHANGED
|
@@ -129,6 +129,7 @@ var Environment;
|
|
|
129
129
|
(function (Environment) {
|
|
130
130
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
131
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
+
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
132
133
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
133
134
|
var _retry_count = 0;
|
|
134
135
|
var _retry = null;
|
|
@@ -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'
|
|
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];
|