@emilgroup/public-api-sdk 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/api/products-api.ts +174 -0
- package/api.ts +0 -5
- 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 -4
- package/dist/api.js +0 -6
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- 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-field-class.d.ts +12 -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/index.ts +1 -1
- 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-field-class.ts +12 -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 -2
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@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.3.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.3.0
|
|
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
|
/**
|
|
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=1, your subsequent call can include pageToken=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=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=1, your subsequent call can include pageToken=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=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=1, your subsequent call can include pageToken=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=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
|
}
|
package/api.ts
CHANGED
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
|
@@ -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=1, your subsequent call can include pageToken=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=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=1, your subsequent call can include pageToken=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=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=1, your subsequent call can include pageToken=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=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;
|
package/dist/api.d.ts
CHANGED
|
@@ -14,7 +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
|
-
}
|
package/dist/api.js
CHANGED
|
@@ -27,14 +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 = 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
|
@@ -99,6 +99,7 @@ var Environment;
|
|
|
99
99
|
(function (Environment) {
|
|
100
100
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
101
101
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
102
|
+
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
102
103
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
103
104
|
var _retry_count = 0;
|
|
104
105
|
var _retry = null;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -27,8 +27,9 @@ 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.BaseAPI = void 0;
|
|
30
|
+
exports.BaseAPI = exports.Environment = void 0;
|
|
31
31
|
var base_1 = require("./base");
|
|
32
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
|
|
32
33
|
Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
|
|
33
34
|
__exportStar(require("./api"), exports);
|
|
34
35
|
__exportStar(require("./configuration"), exports);
|