@emilgroup/customer-sdk-node 1.9.0 → 1.9.1
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 +1 -0
- package/README.md +2 -2
- package/api/products-api.ts +3 -3
- package/dist/api/products-api.d.ts +4 -4
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/list-policies-response-class.d.ts +4 -4
- package/dist/models/list-products-response-class.d.ts +31 -0
- package/dist/models/list-products-response-class.js +15 -0
- package/models/index.ts +1 -0
- package/models/list-policies-response-class.ts +4 -4
- package/models/list-products-response-class.ts +37 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -46,6 +46,7 @@ models/invoice-class.ts
|
|
|
46
46
|
models/list-documents-response-class.ts
|
|
47
47
|
models/list-invoices-response-class.ts
|
|
48
48
|
models/list-policies-response-class.ts
|
|
49
|
+
models/list-products-response-class.ts
|
|
49
50
|
models/policy-class.ts
|
|
50
51
|
models/policy-object-class.ts
|
|
51
52
|
models/policy-premium-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.9.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.9.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.9.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.9.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/products-api.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { GetProductResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import {
|
|
26
|
+
import { ListProductsResponseClass } from '../models';
|
|
27
27
|
// URLSearchParams not necessarily used
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -187,7 +187,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
async 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<
|
|
190
|
+
async 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>> {
|
|
191
191
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
192
192
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
193
193
|
},
|
|
@@ -227,7 +227,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
227
227
|
* @param {*} [options] Override http request option.
|
|
228
228
|
* @throws {RequiredError}
|
|
229
229
|
*/
|
|
230
|
-
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<
|
|
230
|
+
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
231
231
|
return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
232
232
|
},
|
|
233
233
|
};
|
|
@@ -13,7 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { GetProductResponseClass } from '../models';
|
|
16
|
-
import {
|
|
16
|
+
import { ListProductsResponseClass } from '../models';
|
|
17
17
|
/**
|
|
18
18
|
* ProductsApi - axios parameter creator
|
|
19
19
|
* @export
|
|
@@ -74,7 +74,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
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<
|
|
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
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* ProductsApi - factory interface
|
|
@@ -105,7 +105,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
105
105
|
* @param {*} [options] Override http request option.
|
|
106
106
|
* @throws {RequiredError}
|
|
107
107
|
*/
|
|
108
|
-
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<
|
|
108
|
+
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass>;
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
111
|
* Request parameters for getProduct operation in ProductsApi.
|
|
@@ -211,5 +211,5 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
211
211
|
* @throws {RequiredError}
|
|
212
212
|
* @memberof ProductsApi
|
|
213
213
|
*/
|
|
214
|
-
listProducts(requestParameters: ProductsApiListProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
214
|
+
listProducts(requestParameters: ProductsApiListProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductsResponseClass, any>>;
|
|
215
215
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './invoice-class';
|
|
|
31
31
|
export * from './list-documents-response-class';
|
|
32
32
|
export * from './list-invoices-response-class';
|
|
33
33
|
export * from './list-policies-response-class';
|
|
34
|
+
export * from './list-products-response-class';
|
|
34
35
|
export * from './policy-class';
|
|
35
36
|
export * from './policy-object-class';
|
|
36
37
|
export * from './policy-premium-class';
|
package/dist/models/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __exportStar(require("./invoice-class"), exports);
|
|
|
47
47
|
__exportStar(require("./list-documents-response-class"), exports);
|
|
48
48
|
__exportStar(require("./list-invoices-response-class"), exports);
|
|
49
49
|
__exportStar(require("./list-policies-response-class"), exports);
|
|
50
|
+
__exportStar(require("./list-products-response-class"), exports);
|
|
50
51
|
__exportStar(require("./policy-class"), exports);
|
|
51
52
|
__exportStar(require("./policy-object-class"), exports);
|
|
52
53
|
__exportStar(require("./policy-premium-class"), exports);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { PolicyClass } from './policy-class';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,11 +17,11 @@ import { CustomerProductClass } from './customer-product-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface ListPoliciesResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<
|
|
20
|
+
* Policies
|
|
21
|
+
* @type {Array<PolicyClass>}
|
|
22
22
|
* @memberof ListPoliciesResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'items': Array<
|
|
24
|
+
'items': Array<PolicyClass>;
|
|
25
25
|
/**
|
|
26
26
|
* Next page token
|
|
27
27
|
* @type {string}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { CustomerProductClass } from './customer-product-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListProductsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListProductsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Products
|
|
21
|
+
* @type {Array<CustomerProductClass>}
|
|
22
|
+
* @memberof ListProductsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<CustomerProductClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Next page token
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListProductsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken': string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './invoice-class';
|
|
|
31
31
|
export * from './list-documents-response-class';
|
|
32
32
|
export * from './list-invoices-response-class';
|
|
33
33
|
export * from './list-policies-response-class';
|
|
34
|
+
export * from './list-products-response-class';
|
|
34
35
|
export * from './policy-class';
|
|
35
36
|
export * from './policy-object-class';
|
|
36
37
|
export * from './policy-premium-class';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { PolicyClass } from './policy-class';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -22,11 +22,11 @@ import { CustomerProductClass } from './customer-product-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPoliciesResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<
|
|
25
|
+
* Policies
|
|
26
|
+
* @type {Array<PolicyClass>}
|
|
27
27
|
* @memberof ListPoliciesResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'items': Array<
|
|
29
|
+
'items': Array<PolicyClass>;
|
|
30
30
|
/**
|
|
31
31
|
* Next page token
|
|
32
32
|
* @type {string}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { CustomerProductClass } from './customer-product-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListProductsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListProductsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Products
|
|
26
|
+
* @type {Array<CustomerProductClass>}
|
|
27
|
+
* @memberof ListProductsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<CustomerProductClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListProductsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|