@emilgroup/customer-sdk-node 1.25.1 → 1.26.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/README.md +2 -2
- package/models/claim-class.ts +14 -8
- package/models/create-customer-claim-request-dto.ts +9 -9
- package/models/lead-class.ts +6 -0
- package/models/update-customer-claim-request-dto.ts +9 -15
- package/package.json +2 -2
- package/dist/api/authentication-api.d.ts +0 -332
- package/dist/api/authentication-api.js +0 -604
- package/dist/api/claims-api.d.ts +0 -431
- package/dist/api/claims-api.js +0 -670
- package/dist/api/customers-api.d.ts +0 -271
- package/dist/api/customers-api.js +0 -425
- package/dist/api/default-api.d.ts +0 -66
- package/dist/api/default-api.js +0 -200
- package/dist/api/documents-api.d.ts +0 -262
- package/dist/api/documents-api.js +0 -417
- package/dist/api/invites-api.d.ts +0 -249
- package/dist/api/invites-api.js +0 -456
- package/dist/api/invoices-api.d.ts +0 -150
- package/dist/api/invoices-api.js +0 -253
- package/dist/api/leads-api.d.ts +0 -365
- package/dist/api/leads-api.js +0 -571
- package/dist/api/payments-api.d.ts +0 -162
- package/dist/api/payments-api.js +0 -306
- package/dist/api/policies-api.d.ts +0 -578
- package/dist/api/policies-api.js +0 -808
- package/dist/api/products-api.d.ts +0 -215
- package/dist/api/products-api.js +0 -341
- package/dist/api.d.ts +0 -22
- package/dist/api.js +0 -40
- package/dist/base.d.ts +0 -82
- package/dist/base.js +0 -502
- package/dist/common.d.ts +0 -66
- package/dist/common.js +0 -244
- package/dist/configuration.d.ts +0 -98
- package/dist/configuration.js +0 -45
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/account-class.d.ts +0 -169
- package/dist/models/account-class.js +0 -26
- package/dist/models/account-policy-class.d.ts +0 -30
- package/dist/models/account-policy-class.js +0 -15
- package/dist/models/authentication-result-class.d.ts +0 -30
- package/dist/models/authentication-result-class.js +0 -15
- package/dist/models/claim-class.d.ts +0 -156
- package/dist/models/claim-class.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-psp-request.d.ts +0 -32
- package/dist/models/complete-payment-setup-psp-request.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -24
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-account-request-dto.d.ts +0 -132
- package/dist/models/create-account-request-dto.js +0 -31
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-customer-claim-request-dto.d.ts +0 -114
- package/dist/models/create-customer-claim-request-dto.js +0 -15
- package/dist/models/create-customer-claim-response-class.d.ts +0 -25
- package/dist/models/create-customer-claim-response-class.js +0 -15
- package/dist/models/create-customer-request-dto.d.ts +0 -43
- package/dist/models/create-customer-request-dto.js +0 -15
- package/dist/models/create-customer-response-class.d.ts +0 -25
- package/dist/models/create-customer-response-class.js +0 -15
- package/dist/models/create-lead-request-dto.d.ts +0 -83
- package/dist/models/create-lead-request-dto.js +0 -15
- package/dist/models/create-lead-response-class.d.ts +0 -25
- package/dist/models/create-lead-response-class.js +0 -15
- package/dist/models/create-payment-method-request-dto.d.ts +0 -31
- package/dist/models/create-payment-method-request-dto.js +0 -15
- package/dist/models/create-policy-request-dto.d.ts +0 -56
- package/dist/models/create-policy-request-dto.js +0 -15
- package/dist/models/create-presigned-post-response-class.d.ts +0 -30
- package/dist/models/create-presigned-post-response-class.js +0 -15
- package/dist/models/customer-class.d.ts +0 -73
- package/dist/models/customer-class.js +0 -15
- package/dist/models/customer-document-class.d.ts +0 -99
- package/dist/models/customer-document-class.js +0 -36
- package/dist/models/customer-product-class.d.ts +0 -54
- package/dist/models/customer-product-class.js +0 -15
- package/dist/models/forgot-password-request-dto.d.ts +0 -30
- package/dist/models/forgot-password-request-dto.js +0 -15
- package/dist/models/get-customer-claim-response-class.d.ts +0 -25
- package/dist/models/get-customer-claim-response-class.js +0 -15
- package/dist/models/get-customer-document-download-url-response-class.d.ts +0 -24
- package/dist/models/get-customer-document-download-url-response-class.js +0 -15
- package/dist/models/get-customer-response-class.d.ts +0 -25
- package/dist/models/get-customer-response-class.js +0 -15
- package/dist/models/get-lead-response-class.d.ts +0 -25
- package/dist/models/get-lead-response-class.js +0 -15
- package/dist/models/get-policy-response-class.d.ts +0 -25
- package/dist/models/get-policy-response-class.js +0 -15
- package/dist/models/get-product-response-class.d.ts +0 -25
- package/dist/models/get-product-response-class.js +0 -15
- package/dist/models/grpc-update-lead-request-dto.d.ts +0 -50
- package/dist/models/grpc-update-lead-request-dto.js +0 -15
- package/dist/models/index.d.ts +0 -85
- package/dist/models/index.js +0 -101
- package/dist/models/initiate-auth-request-dto.d.ts +0 -36
- package/dist/models/initiate-auth-request-dto.js +0 -15
- package/dist/models/initiate-auth-response-class.d.ts +0 -43
- package/dist/models/initiate-auth-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- package/dist/models/invite-by-customer-request-dto.d.ts +0 -30
- package/dist/models/invite-by-customer-request-dto.js +0 -15
- package/dist/models/invite-by-customer-response-class.d.ts +0 -25
- package/dist/models/invite-by-customer-response-class.js +0 -15
- package/dist/models/invite-by-tenant-request-dto.d.ts +0 -24
- package/dist/models/invite-by-tenant-request-dto.js +0 -15
- package/dist/models/invite-by-tenant-response-class.d.ts +0 -25
- package/dist/models/invite-by-tenant-response-class.js +0 -15
- package/dist/models/invite-class.d.ts +0 -54
- package/dist/models/invite-class.js +0 -15
- package/dist/models/invoice-class.d.ts +0 -148
- package/dist/models/invoice-class.js +0 -28
- package/dist/models/lead-bank-account-class.d.ts +0 -30
- package/dist/models/lead-bank-account-class.js +0 -15
- package/dist/models/lead-class.d.ts +0 -121
- package/dist/models/lead-class.js +0 -15
- package/dist/models/list-customer-claims-response-class.d.ts +0 -31
- package/dist/models/list-customer-claims-response-class.js +0 -15
- package/dist/models/list-documents-response-class.d.ts +0 -31
- package/dist/models/list-documents-response-class.js +0 -15
- package/dist/models/list-invoices-response-class.d.ts +0 -31
- package/dist/models/list-invoices-response-class.js +0 -15
- package/dist/models/list-leads-response-class.d.ts +0 -43
- package/dist/models/list-leads-response-class.js +0 -15
- package/dist/models/list-policies-response-class.d.ts +0 -43
- package/dist/models/list-policies-response-class.js +0 -15
- package/dist/models/list-products-response-class.d.ts +0 -31
- package/dist/models/list-products-response-class.js +0 -15
- package/dist/models/policy-class.d.ts +0 -80
- package/dist/models/policy-class.js +0 -15
- package/dist/models/policy-object-class.d.ts +0 -54
- package/dist/models/policy-object-class.js +0 -15
- package/dist/models/policy-object-dto.d.ts +0 -42
- package/dist/models/policy-object-dto.js +0 -15
- package/dist/models/policy-premium-class.d.ts +0 -43
- package/dist/models/policy-premium-class.js +0 -15
- package/dist/models/policy-premium-item-class.d.ts +0 -36
- package/dist/models/policy-premium-item-class.js +0 -15
- package/dist/models/policy-version-class.d.ts +0 -49
- package/dist/models/policy-version-class.js +0 -15
- package/dist/models/premium-override-dto.d.ts +0 -55
- package/dist/models/premium-override-dto.js +0 -27
- package/dist/models/premium-override-request-class.d.ts +0 -25
- package/dist/models/premium-override-request-class.js +0 -15
- package/dist/models/premium-override-request-dto.d.ts +0 -25
- package/dist/models/premium-override-request-dto.js +0 -15
- package/dist/models/refresh-token-dto.d.ts +0 -30
- package/dist/models/refresh-token-dto.js +0 -15
- package/dist/models/request-policy-update-request-dto.d.ts +0 -43
- package/dist/models/request-policy-update-request-dto.js +0 -15
- package/dist/models/request-policy-update-response-class.d.ts +0 -25
- package/dist/models/request-policy-update-response-class.js +0 -15
- package/dist/models/reset-password-by-customer-request-dto.d.ts +0 -36
- package/dist/models/reset-password-by-customer-request-dto.js +0 -15
- package/dist/models/respond-to-auth-challenge-class.d.ts +0 -43
- package/dist/models/respond-to-auth-challenge-class.js +0 -15
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +0 -42
- package/dist/models/respond-to-auth-challenge-request-dto.js +0 -15
- package/dist/models/sepa-dto.d.ts +0 -30
- package/dist/models/sepa-dto.js +0 -15
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +0 -36
- package/dist/models/shared-customer-policy-object-request-dto.js +0 -15
- package/dist/models/shared-invoice-item-class.d.ts +0 -129
- package/dist/models/shared-invoice-item-class.js +0 -24
- package/dist/models/shared-invoice-status-class.d.ts +0 -47
- package/dist/models/shared-invoice-status-class.js +0 -20
- package/dist/models/terminate-customer-policy-request-dto.d.ts +0 -24
- package/dist/models/terminate-customer-policy-request-dto.js +0 -15
- package/dist/models/terminate-customer-policy-response-class.d.ts +0 -25
- package/dist/models/terminate-customer-policy-response-class.js +0 -15
- package/dist/models/timeslice-class.d.ts +0 -56
- package/dist/models/timeslice-class.js +0 -15
- package/dist/models/update-account-request-dto.d.ts +0 -113
- package/dist/models/update-account-request-dto.js +0 -25
- package/dist/models/update-customer-claim-request-dto.d.ts +0 -120
- package/dist/models/update-customer-claim-request-dto.js +0 -15
- package/dist/models/update-customer-claim-response-class.d.ts +0 -25
- package/dist/models/update-customer-claim-response-class.js +0 -15
- package/dist/models/update-customer-request-dto.d.ts +0 -31
- package/dist/models/update-customer-request-dto.js +0 -15
- package/dist/models/update-customer-response-class.d.ts +0 -25
- package/dist/models/update-customer-response-class.js +0 -15
- package/dist/models/update-lead-request-dto.d.ts +0 -44
- package/dist/models/update-lead-request-dto.js +0 -15
- package/dist/models/update-lead-response-class.d.ts +0 -25
- package/dist/models/update-lead-response-class.js +0 -15
- package/dist/models/upload-customer-claim-documents-request-dto.d.ts +0 -36
- package/dist/models/upload-customer-claim-documents-request-dto.js +0 -15
- package/dist/models/upload-customer-policy-documents-request-dto.d.ts +0 -47
- package/dist/models/upload-customer-policy-documents-request-dto.js +0 -20
- package/dist/models/uploaded-document-dto.d.ts +0 -24
- package/dist/models/uploaded-document-dto.js +0 -15
- package/dist/models/verify-customer-invite-response-class.d.ts +0 -36
- package/dist/models/verify-customer-invite-response-class.js +0 -15
- package/dist/models/withdraw-customer-policy-response-class.d.ts +0 -25
- package/dist/models/withdraw-customer-policy-response-class.js +0 -15
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL CustomerService
|
|
3
|
-
* The EMIL CustomerService 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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { GetProductResponseClass } from '../models';
|
|
16
|
-
import { ListProductsResponseClass } from '../models';
|
|
17
|
-
/**
|
|
18
|
-
* ProductsApi - axios parameter creator
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
export declare const ProductsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
-
/**
|
|
23
|
-
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
24
|
-
* @summary Get product details
|
|
25
|
-
* @param {string} productCode The product code.
|
|
26
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
27
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
28
|
-
* @param {*} [options] Override http request option.
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
*/
|
|
31
|
-
getProduct: (productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
-
/**
|
|
33
|
-
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
34
|
-
* @summary List available products
|
|
35
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
36
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
37
|
-
* @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.
|
|
38
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
39
|
-
* @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.
|
|
40
|
-
* @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.
|
|
41
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
42
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
43
|
-
* @param {*} [options] Override http request option.
|
|
44
|
-
* @throws {RequiredError}
|
|
45
|
-
*/
|
|
46
|
-
listProducts: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* ProductsApi - functional programming interface
|
|
50
|
-
* @export
|
|
51
|
-
*/
|
|
52
|
-
export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
53
|
-
/**
|
|
54
|
-
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
55
|
-
* @summary Get product details
|
|
56
|
-
* @param {string} productCode The product code.
|
|
57
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
58
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
59
|
-
* @param {*} [options] Override http request option.
|
|
60
|
-
* @throws {RequiredError}
|
|
61
|
-
*/
|
|
62
|
-
getProduct(productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
|
|
63
|
-
/**
|
|
64
|
-
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
65
|
-
* @summary List available products
|
|
66
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
67
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
68
|
-
* @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.
|
|
69
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
70
|
-
* @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.
|
|
71
|
-
* @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.
|
|
72
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
73
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
74
|
-
* @param {*} [options] Override http request option.
|
|
75
|
-
* @throws {RequiredError}
|
|
76
|
-
*/
|
|
77
|
-
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>>;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* ProductsApi - factory interface
|
|
81
|
-
* @export
|
|
82
|
-
*/
|
|
83
|
-
export declare const ProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
84
|
-
/**
|
|
85
|
-
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
86
|
-
* @summary Get product details
|
|
87
|
-
* @param {string} productCode The product code.
|
|
88
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
89
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
90
|
-
* @param {*} [options] Override http request option.
|
|
91
|
-
* @throws {RequiredError}
|
|
92
|
-
*/
|
|
93
|
-
getProduct(productCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetProductResponseClass>;
|
|
94
|
-
/**
|
|
95
|
-
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
96
|
-
* @summary List available products
|
|
97
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
98
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
99
|
-
* @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.
|
|
100
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
101
|
-
* @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.
|
|
102
|
-
* @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.
|
|
103
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
104
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
|
-
* @param {*} [options] Override http request option.
|
|
106
|
-
* @throws {RequiredError}
|
|
107
|
-
*/
|
|
108
|
-
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass>;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Request parameters for getProduct operation in ProductsApi.
|
|
112
|
-
* @export
|
|
113
|
-
* @interface ProductsApiGetProductRequest
|
|
114
|
-
*/
|
|
115
|
-
export interface ProductsApiGetProductRequest {
|
|
116
|
-
/**
|
|
117
|
-
* The product code.
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof ProductsApiGetProduct
|
|
120
|
-
*/
|
|
121
|
-
readonly productCode: string;
|
|
122
|
-
/**
|
|
123
|
-
* The customer code or \"me\" for the currently logged in customer.
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof ProductsApiGetProduct
|
|
126
|
-
*/
|
|
127
|
-
readonly customerCode: string;
|
|
128
|
-
/**
|
|
129
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
130
|
-
* @type {string}
|
|
131
|
-
* @memberof ProductsApiGetProduct
|
|
132
|
-
*/
|
|
133
|
-
readonly authorization?: string;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Request parameters for listProducts operation in ProductsApi.
|
|
137
|
-
* @export
|
|
138
|
-
* @interface ProductsApiListProductsRequest
|
|
139
|
-
*/
|
|
140
|
-
export interface ProductsApiListProductsRequest {
|
|
141
|
-
/**
|
|
142
|
-
* The customer code or \"me\" for the currently logged in customer.
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof ProductsApiListProducts
|
|
145
|
-
*/
|
|
146
|
-
readonly customerCode: string;
|
|
147
|
-
/**
|
|
148
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
149
|
-
* @type {any}
|
|
150
|
-
* @memberof ProductsApiListProducts
|
|
151
|
-
*/
|
|
152
|
-
readonly pageSize?: any;
|
|
153
|
-
/**
|
|
154
|
-
* 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.
|
|
155
|
-
* @type {any}
|
|
156
|
-
* @memberof ProductsApiListProducts
|
|
157
|
-
*/
|
|
158
|
-
readonly pageToken?: any;
|
|
159
|
-
/**
|
|
160
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
161
|
-
* @type {any}
|
|
162
|
-
* @memberof ProductsApiListProducts
|
|
163
|
-
*/
|
|
164
|
-
readonly filter?: any;
|
|
165
|
-
/**
|
|
166
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
167
|
-
* @type {any}
|
|
168
|
-
* @memberof ProductsApiListProducts
|
|
169
|
-
*/
|
|
170
|
-
readonly search?: any;
|
|
171
|
-
/**
|
|
172
|
-
* 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.
|
|
173
|
-
* @type {any}
|
|
174
|
-
* @memberof ProductsApiListProducts
|
|
175
|
-
*/
|
|
176
|
-
readonly order?: any;
|
|
177
|
-
/**
|
|
178
|
-
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
179
|
-
* @type {any}
|
|
180
|
-
* @memberof ProductsApiListProducts
|
|
181
|
-
*/
|
|
182
|
-
readonly expand?: any;
|
|
183
|
-
/**
|
|
184
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
|
-
* @type {string}
|
|
186
|
-
* @memberof ProductsApiListProducts
|
|
187
|
-
*/
|
|
188
|
-
readonly authorization?: string;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* ProductsApi - object-oriented interface
|
|
192
|
-
* @export
|
|
193
|
-
* @class ProductsApi
|
|
194
|
-
* @extends {BaseAPI}
|
|
195
|
-
*/
|
|
196
|
-
export declare class ProductsApi extends BaseAPI {
|
|
197
|
-
/**
|
|
198
|
-
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
199
|
-
* @summary Get product details
|
|
200
|
-
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
201
|
-
* @param {*} [options] Override http request option.
|
|
202
|
-
* @throws {RequiredError}
|
|
203
|
-
* @memberof ProductsApi
|
|
204
|
-
*/
|
|
205
|
-
getProduct(requestParameters: ProductsApiGetProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
|
|
206
|
-
/**
|
|
207
|
-
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
208
|
-
* @summary List available products
|
|
209
|
-
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
210
|
-
* @param {*} [options] Override http request option.
|
|
211
|
-
* @throws {RequiredError}
|
|
212
|
-
* @memberof ProductsApi
|
|
213
|
-
*/
|
|
214
|
-
listProducts(requestParameters: ProductsApiListProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductsResponseClass, any>>;
|
|
215
|
-
}
|
package/dist/api/products-api.js
DELETED
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL CustomerService
|
|
6
|
-
* The EMIL CustomerService 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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
-
};
|
|
80
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = void 0;
|
|
82
|
-
var axios_1 = __importDefault(require("axios"));
|
|
83
|
-
// Some imports not used depending on template conditions
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
var common_1 = require("../common");
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
var base_1 = require("../base");
|
|
88
|
-
// URLSearchParams not necessarily used
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
var url_1 = require("url");
|
|
91
|
-
var FormData = require('form-data');
|
|
92
|
-
/**
|
|
93
|
-
* ProductsApi - axios parameter creator
|
|
94
|
-
* @export
|
|
95
|
-
*/
|
|
96
|
-
var ProductsApiAxiosParamCreator = function (configuration) {
|
|
97
|
-
var _this = this;
|
|
98
|
-
return {
|
|
99
|
-
/**
|
|
100
|
-
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
101
|
-
* @summary Get product details
|
|
102
|
-
* @param {string} productCode The product code.
|
|
103
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
104
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
|
-
* @param {*} [options] Override http request option.
|
|
106
|
-
* @throws {RequiredError}
|
|
107
|
-
*/
|
|
108
|
-
getProduct: function (productCode, customerCode, authorization, options) {
|
|
109
|
-
if (options === void 0) { options = {}; }
|
|
110
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
// verify required parameter 'productCode' is not null or undefined
|
|
114
|
-
(0, common_1.assertParamExists)('getProduct', 'productCode', productCode);
|
|
115
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
116
|
-
(0, common_1.assertParamExists)('getProduct', 'customerCode', customerCode);
|
|
117
|
-
localVarPath = "/v1/customers/{customerCode}/products/{productCode}"
|
|
118
|
-
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
119
|
-
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
120
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
121
|
-
if (configuration) {
|
|
122
|
-
baseOptions = configuration.baseOptions;
|
|
123
|
-
baseAccessToken = configuration.accessToken;
|
|
124
|
-
}
|
|
125
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
126
|
-
localVarHeaderParameter = {};
|
|
127
|
-
localVarQueryParameter = {};
|
|
128
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
-
}
|
|
131
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
-
return [2 /*return*/, {
|
|
135
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
-
options: localVarRequestOptions,
|
|
137
|
-
}];
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
143
|
-
* @summary List available products
|
|
144
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
145
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
146
|
-
* @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.
|
|
147
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
148
|
-
* @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.
|
|
149
|
-
* @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.
|
|
150
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
151
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
152
|
-
* @param {*} [options] Override http request option.
|
|
153
|
-
* @throws {RequiredError}
|
|
154
|
-
*/
|
|
155
|
-
listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
156
|
-
if (options === void 0) { options = {}; }
|
|
157
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
|
-
return __generator(this, function (_a) {
|
|
160
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
161
|
-
(0, common_1.assertParamExists)('listProducts', 'customerCode', customerCode);
|
|
162
|
-
localVarPath = "/v1/customers/{customerCode}/products"
|
|
163
|
-
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
164
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
165
|
-
if (configuration) {
|
|
166
|
-
baseOptions = configuration.baseOptions;
|
|
167
|
-
baseAccessToken = configuration.accessToken;
|
|
168
|
-
}
|
|
169
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
170
|
-
localVarHeaderParameter = {};
|
|
171
|
-
localVarQueryParameter = {};
|
|
172
|
-
if (pageSize !== undefined) {
|
|
173
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
174
|
-
}
|
|
175
|
-
if (pageToken !== undefined) {
|
|
176
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
177
|
-
}
|
|
178
|
-
if (filter !== undefined) {
|
|
179
|
-
localVarQueryParameter['filter'] = filter;
|
|
180
|
-
}
|
|
181
|
-
if (search !== undefined) {
|
|
182
|
-
localVarQueryParameter['search'] = search;
|
|
183
|
-
}
|
|
184
|
-
if (order !== undefined) {
|
|
185
|
-
localVarQueryParameter['order'] = order;
|
|
186
|
-
}
|
|
187
|
-
if (expand !== undefined) {
|
|
188
|
-
localVarQueryParameter['expand'] = expand;
|
|
189
|
-
}
|
|
190
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
192
|
-
}
|
|
193
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
194
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
196
|
-
return [2 /*return*/, {
|
|
197
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
198
|
-
options: localVarRequestOptions,
|
|
199
|
-
}];
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
},
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
|
|
206
|
-
/**
|
|
207
|
-
* ProductsApi - functional programming interface
|
|
208
|
-
* @export
|
|
209
|
-
*/
|
|
210
|
-
var ProductsApiFp = function (configuration) {
|
|
211
|
-
var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
|
|
212
|
-
return {
|
|
213
|
-
/**
|
|
214
|
-
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
215
|
-
* @summary Get product details
|
|
216
|
-
* @param {string} productCode The product code.
|
|
217
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
218
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
219
|
-
* @param {*} [options] Override http request option.
|
|
220
|
-
* @throws {RequiredError}
|
|
221
|
-
*/
|
|
222
|
-
getProduct: function (productCode, customerCode, authorization, options) {
|
|
223
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
224
|
-
var localVarAxiosArgs;
|
|
225
|
-
return __generator(this, function (_a) {
|
|
226
|
-
switch (_a.label) {
|
|
227
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProduct(productCode, customerCode, authorization, options)];
|
|
228
|
-
case 1:
|
|
229
|
-
localVarAxiosArgs = _a.sent();
|
|
230
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
},
|
|
235
|
-
/**
|
|
236
|
-
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
237
|
-
* @summary List available products
|
|
238
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
239
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
240
|
-
* @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.
|
|
241
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
242
|
-
* @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.
|
|
243
|
-
* @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.
|
|
244
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
245
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
246
|
-
* @param {*} [options] Override http request option.
|
|
247
|
-
* @throws {RequiredError}
|
|
248
|
-
*/
|
|
249
|
-
listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
250
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
251
|
-
var localVarAxiosArgs;
|
|
252
|
-
return __generator(this, function (_a) {
|
|
253
|
-
switch (_a.label) {
|
|
254
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options)];
|
|
255
|
-
case 1:
|
|
256
|
-
localVarAxiosArgs = _a.sent();
|
|
257
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
|
-
},
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
exports.ProductsApiFp = ProductsApiFp;
|
|
265
|
-
/**
|
|
266
|
-
* ProductsApi - factory interface
|
|
267
|
-
* @export
|
|
268
|
-
*/
|
|
269
|
-
var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
270
|
-
var localVarFp = (0, exports.ProductsApiFp)(configuration);
|
|
271
|
-
return {
|
|
272
|
-
/**
|
|
273
|
-
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
274
|
-
* @summary Get product details
|
|
275
|
-
* @param {string} productCode The product code.
|
|
276
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
277
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
278
|
-
* @param {*} [options] Override http request option.
|
|
279
|
-
* @throws {RequiredError}
|
|
280
|
-
*/
|
|
281
|
-
getProduct: function (productCode, customerCode, authorization, options) {
|
|
282
|
-
return localVarFp.getProduct(productCode, customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
283
|
-
},
|
|
284
|
-
/**
|
|
285
|
-
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
286
|
-
* @summary List available products
|
|
287
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
288
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
289
|
-
* @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.
|
|
290
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
291
|
-
* @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.
|
|
292
|
-
* @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.
|
|
293
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
294
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
295
|
-
* @param {*} [options] Override http request option.
|
|
296
|
-
* @throws {RequiredError}
|
|
297
|
-
*/
|
|
298
|
-
listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
299
|
-
return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
300
|
-
},
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
exports.ProductsApiFactory = ProductsApiFactory;
|
|
304
|
-
/**
|
|
305
|
-
* ProductsApi - object-oriented interface
|
|
306
|
-
* @export
|
|
307
|
-
* @class ProductsApi
|
|
308
|
-
* @extends {BaseAPI}
|
|
309
|
-
*/
|
|
310
|
-
var ProductsApi = /** @class */ (function (_super) {
|
|
311
|
-
__extends(ProductsApi, _super);
|
|
312
|
-
function ProductsApi() {
|
|
313
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
317
|
-
* @summary Get product details
|
|
318
|
-
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
319
|
-
* @param {*} [options] Override http request option.
|
|
320
|
-
* @throws {RequiredError}
|
|
321
|
-
* @memberof ProductsApi
|
|
322
|
-
*/
|
|
323
|
-
ProductsApi.prototype.getProduct = function (requestParameters, options) {
|
|
324
|
-
var _this = this;
|
|
325
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProduct(requestParameters.productCode, requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
326
|
-
};
|
|
327
|
-
/**
|
|
328
|
-
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
329
|
-
* @summary List available products
|
|
330
|
-
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
331
|
-
* @param {*} [options] Override http request option.
|
|
332
|
-
* @throws {RequiredError}
|
|
333
|
-
* @memberof ProductsApi
|
|
334
|
-
*/
|
|
335
|
-
ProductsApi.prototype.listProducts = function (requestParameters, options) {
|
|
336
|
-
var _this = this;
|
|
337
|
-
return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
338
|
-
};
|
|
339
|
-
return ProductsApi;
|
|
340
|
-
}(base_1.BaseAPI));
|
|
341
|
-
exports.ProductsApi = ProductsApi;
|
package/dist/api.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL CustomerService
|
|
3
|
-
* The EMIL CustomerService 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
|
-
export * from './api/authentication-api';
|
|
13
|
-
export * from './api/claims-api';
|
|
14
|
-
export * from './api/customers-api';
|
|
15
|
-
export * from './api/default-api';
|
|
16
|
-
export * from './api/documents-api';
|
|
17
|
-
export * from './api/invites-api';
|
|
18
|
-
export * from './api/invoices-api';
|
|
19
|
-
export * from './api/leads-api';
|
|
20
|
-
export * from './api/payments-api';
|
|
21
|
-
export * from './api/policies-api';
|
|
22
|
-
export * from './api/products-api';
|
package/dist/api.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL CustomerService
|
|
6
|
-
* The EMIL CustomerService 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
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(o, k2, desc);
|
|
22
|
-
}) : (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
o[k2] = m[k];
|
|
25
|
-
}));
|
|
26
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api/authentication-api"), exports);
|
|
31
|
-
__exportStar(require("./api/claims-api"), exports);
|
|
32
|
-
__exportStar(require("./api/customers-api"), exports);
|
|
33
|
-
__exportStar(require("./api/default-api"), exports);
|
|
34
|
-
__exportStar(require("./api/documents-api"), exports);
|
|
35
|
-
__exportStar(require("./api/invites-api"), exports);
|
|
36
|
-
__exportStar(require("./api/invoices-api"), exports);
|
|
37
|
-
__exportStar(require("./api/leads-api"), exports);
|
|
38
|
-
__exportStar(require("./api/payments-api"), exports);
|
|
39
|
-
__exportStar(require("./api/policies-api"), exports);
|
|
40
|
-
__exportStar(require("./api/products-api"), exports);
|