@emilgroup/public-api-sdk 1.30.0 → 1.32.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 +1 -0
- package/README.md +2 -2
- package/api/named-ranges-api.ts +20 -6
- package/api/product-versions-api.ts +280 -0
- package/api.ts +2 -0
- package/base.ts +1 -0
- package/dist/api/named-ranges-api.d.ts +12 -3
- package/dist/api/named-ranges-api.js +12 -6
- package/dist/api/product-versions-api.d.ts +161 -0
- package/dist/api/product-versions-api.js +323 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +1 -0
- package/dist/models/booking-funnel-class.d.ts +6 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
- package/dist/models/link-lead-partner-request-dto.d.ts +14 -2
- package/dist/models/partner-role-class.d.ts +6 -0
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/update-lead-request-dto.d.ts +1 -1
- package/models/booking-funnel-class.ts +6 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
- package/models/link-lead-partner-request-dto.ts +14 -2
- package/models/partner-role-class.ts +6 -0
- package/models/payment-method-class.ts +6 -0
- package/models/update-lead-request-dto.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
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.32.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.32.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/named-ranges-api.ts
CHANGED
|
@@ -34,6 +34,7 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
34
34
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
35
35
|
* @param {string} name Name of Named Range.
|
|
36
36
|
* @param {string} [authorization] Bearer Token
|
|
37
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
37
38
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
38
39
|
* @param {string} [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.
|
|
39
40
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -42,7 +43,7 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
42
43
|
* @param {*} [options] Override http request option.
|
|
43
44
|
* @throws {RequiredError}
|
|
44
45
|
*/
|
|
45
|
-
filterNamedRange: async (productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
filterNamedRange: async (productSlug: string, name: string, authorization?: string, productVersionId?: number, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
47
|
// verify required parameter 'productSlug' is not null or undefined
|
|
47
48
|
assertParamExists('filterNamedRange', 'productSlug', productSlug)
|
|
48
49
|
// verify required parameter 'name' is not null or undefined
|
|
@@ -69,6 +70,10 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
69
70
|
localVarQueryParameter['productSlug'] = productSlug;
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
if (productVersionId !== undefined) {
|
|
74
|
+
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
75
|
+
}
|
|
76
|
+
|
|
72
77
|
if (name !== undefined) {
|
|
73
78
|
localVarQueryParameter['name'] = name;
|
|
74
79
|
}
|
|
@@ -124,6 +129,7 @@ export const NamedRangesApiFp = function(configuration?: Configuration) {
|
|
|
124
129
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
125
130
|
* @param {string} name Name of Named Range.
|
|
126
131
|
* @param {string} [authorization] Bearer Token
|
|
132
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
127
133
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
128
134
|
* @param {string} [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.
|
|
129
135
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -132,8 +138,8 @@ export const NamedRangesApiFp = function(configuration?: Configuration) {
|
|
|
132
138
|
* @param {*} [options] Override http request option.
|
|
133
139
|
* @throws {RequiredError}
|
|
134
140
|
*/
|
|
135
|
-
async filterNamedRange(productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilterNamedRangeResponseClass>> {
|
|
136
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.filterNamedRange(productSlug, name, authorization, pageSize, pageToken, filters, search, order, options);
|
|
141
|
+
async filterNamedRange(productSlug: string, name: string, authorization?: string, productVersionId?: number, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilterNamedRangeResponseClass>> {
|
|
142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.filterNamedRange(productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options);
|
|
137
143
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
138
144
|
},
|
|
139
145
|
}
|
|
@@ -152,6 +158,7 @@ export const NamedRangesApiFactory = function (configuration?: Configuration, ba
|
|
|
152
158
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
153
159
|
* @param {string} name Name of Named Range.
|
|
154
160
|
* @param {string} [authorization] Bearer Token
|
|
161
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
155
162
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
156
163
|
* @param {string} [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.
|
|
157
164
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -160,8 +167,8 @@ export const NamedRangesApiFactory = function (configuration?: Configuration, ba
|
|
|
160
167
|
* @param {*} [options] Override http request option.
|
|
161
168
|
* @throws {RequiredError}
|
|
162
169
|
*/
|
|
163
|
-
filterNamedRange(productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: any): AxiosPromise<FilterNamedRangeResponseClass> {
|
|
164
|
-
return localVarFp.filterNamedRange(productSlug, name, authorization, pageSize, pageToken, filters, search, order, options).then((request) => request(axios, basePath));
|
|
170
|
+
filterNamedRange(productSlug: string, name: string, authorization?: string, productVersionId?: number, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: any): AxiosPromise<FilterNamedRangeResponseClass> {
|
|
171
|
+
return localVarFp.filterNamedRange(productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options).then((request) => request(axios, basePath));
|
|
165
172
|
},
|
|
166
173
|
};
|
|
167
174
|
};
|
|
@@ -193,6 +200,13 @@ export interface NamedRangesApiFilterNamedRangeRequest {
|
|
|
193
200
|
*/
|
|
194
201
|
readonly authorization?: string
|
|
195
202
|
|
|
203
|
+
/**
|
|
204
|
+
* The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
205
|
+
* @type {number}
|
|
206
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
207
|
+
*/
|
|
208
|
+
readonly productVersionId?: number
|
|
209
|
+
|
|
196
210
|
/**
|
|
197
211
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
198
212
|
* @type {number}
|
|
@@ -245,6 +259,6 @@ export class NamedRangesApi extends BaseAPI {
|
|
|
245
259
|
* @memberof NamedRangesApi
|
|
246
260
|
*/
|
|
247
261
|
public filterNamedRange(requestParameters: NamedRangesApiFilterNamedRangeRequest, options?: AxiosRequestConfig) {
|
|
248
|
-
return NamedRangesApiFp(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then((request) => request(this.axios, this.basePath));
|
|
262
|
+
return NamedRangesApiFp(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.productVersionId, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then((request) => request(this.axios, this.basePath));
|
|
249
263
|
}
|
|
250
264
|
}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil PublicAPI
|
|
5
|
+
* The Emil Public API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { InsuredObjectClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ProductFactorForVersionClass } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* ProductVersionsApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const ProductVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
35
|
+
* @summary List insured objects
|
|
36
|
+
* @param {number} productVersionId
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
getInsuredObjectsPerVersion: async (productVersionId: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
43
|
+
assertParamExists('getInsuredObjectsPerVersion', 'productVersionId', productVersionId)
|
|
44
|
+
const localVarPath = `/publicapi/v1/product_versions/{product_version_id}/insured-objects`
|
|
45
|
+
.replace(`{${"product_version_id"}}`, encodeURIComponent(String(productVersionId)));
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
let baseAccessToken;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
baseAccessToken = configuration.accessToken;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication bearer required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
+
|
|
63
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
64
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
70
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
71
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
url: toPathString(localVarUrlObj),
|
|
75
|
+
options: localVarRequestOptions,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
80
|
+
* @summary List product factors
|
|
81
|
+
* @param {number} productVersionId
|
|
82
|
+
* @param {string} allValues
|
|
83
|
+
* @param {string} [authorization] Bearer Token
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
getProductFactorsPerVersion: async (productVersionId: number, allValues: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
88
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
89
|
+
assertParamExists('getProductFactorsPerVersion', 'productVersionId', productVersionId)
|
|
90
|
+
// verify required parameter 'allValues' is not null or undefined
|
|
91
|
+
assertParamExists('getProductFactorsPerVersion', 'allValues', allValues)
|
|
92
|
+
const localVarPath = `/publicapi/v1/product_versions/{product_version_id}/product-factors`
|
|
93
|
+
.replace(`{${"product_version_id"}}`, encodeURIComponent(String(productVersionId)));
|
|
94
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
95
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
96
|
+
let baseOptions;
|
|
97
|
+
let baseAccessToken;
|
|
98
|
+
if (configuration) {
|
|
99
|
+
baseOptions = configuration.baseOptions;
|
|
100
|
+
baseAccessToken = configuration.accessToken;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
104
|
+
const localVarHeaderParameter = {} as any;
|
|
105
|
+
const localVarQueryParameter = {} as any;
|
|
106
|
+
|
|
107
|
+
// authentication bearer required
|
|
108
|
+
// http bearer authentication required
|
|
109
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
110
|
+
|
|
111
|
+
if (allValues !== undefined) {
|
|
112
|
+
localVarQueryParameter['all_values'] = allValues;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
116
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
url: toPathString(localVarUrlObj),
|
|
127
|
+
options: localVarRequestOptions,
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* ProductVersionsApi - functional programming interface
|
|
135
|
+
* @export
|
|
136
|
+
*/
|
|
137
|
+
export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
138
|
+
const localVarAxiosParamCreator = ProductVersionsApiAxiosParamCreator(configuration)
|
|
139
|
+
return {
|
|
140
|
+
/**
|
|
141
|
+
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
142
|
+
* @summary List insured objects
|
|
143
|
+
* @param {number} productVersionId
|
|
144
|
+
* @param {string} [authorization] Bearer Token
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
async getInsuredObjectsPerVersion(productVersionId: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
|
|
149
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectsPerVersion(productVersionId, authorization, options);
|
|
150
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
154
|
+
* @summary List product factors
|
|
155
|
+
* @param {number} productVersionId
|
|
156
|
+
* @param {string} allValues
|
|
157
|
+
* @param {string} [authorization] Bearer Token
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
async getProductFactorsPerVersion(productVersionId: number, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>> {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactorsPerVersion(productVersionId, allValues, authorization, options);
|
|
163
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
|
+
},
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* ProductVersionsApi - factory interface
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
export const ProductVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
173
|
+
const localVarFp = ProductVersionsApiFp(configuration)
|
|
174
|
+
return {
|
|
175
|
+
/**
|
|
176
|
+
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
177
|
+
* @summary List insured objects
|
|
178
|
+
* @param {number} productVersionId
|
|
179
|
+
* @param {string} [authorization] Bearer Token
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
getInsuredObjectsPerVersion(productVersionId: number, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
|
|
184
|
+
return localVarFp.getInsuredObjectsPerVersion(productVersionId, authorization, options).then((request) => request(axios, basePath));
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
188
|
+
* @summary List product factors
|
|
189
|
+
* @param {number} productVersionId
|
|
190
|
+
* @param {string} allValues
|
|
191
|
+
* @param {string} [authorization] Bearer Token
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
getProductFactorsPerVersion(productVersionId: number, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>> {
|
|
196
|
+
return localVarFp.getProductFactorsPerVersion(productVersionId, allValues, authorization, options).then((request) => request(axios, basePath));
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Request parameters for getInsuredObjectsPerVersion operation in ProductVersionsApi.
|
|
203
|
+
* @export
|
|
204
|
+
* @interface ProductVersionsApiGetInsuredObjectsPerVersionRequest
|
|
205
|
+
*/
|
|
206
|
+
export interface ProductVersionsApiGetInsuredObjectsPerVersionRequest {
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @type {number}
|
|
210
|
+
* @memberof ProductVersionsApiGetInsuredObjectsPerVersion
|
|
211
|
+
*/
|
|
212
|
+
readonly productVersionId: number
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Bearer Token
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @memberof ProductVersionsApiGetInsuredObjectsPerVersion
|
|
218
|
+
*/
|
|
219
|
+
readonly authorization?: string
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Request parameters for getProductFactorsPerVersion operation in ProductVersionsApi.
|
|
224
|
+
* @export
|
|
225
|
+
* @interface ProductVersionsApiGetProductFactorsPerVersionRequest
|
|
226
|
+
*/
|
|
227
|
+
export interface ProductVersionsApiGetProductFactorsPerVersionRequest {
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {number}
|
|
231
|
+
* @memberof ProductVersionsApiGetProductFactorsPerVersion
|
|
232
|
+
*/
|
|
233
|
+
readonly productVersionId: number
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof ProductVersionsApiGetProductFactorsPerVersion
|
|
239
|
+
*/
|
|
240
|
+
readonly allValues: string
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Bearer Token
|
|
244
|
+
* @type {string}
|
|
245
|
+
* @memberof ProductVersionsApiGetProductFactorsPerVersion
|
|
246
|
+
*/
|
|
247
|
+
readonly authorization?: string
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* ProductVersionsApi - object-oriented interface
|
|
252
|
+
* @export
|
|
253
|
+
* @class ProductVersionsApi
|
|
254
|
+
* @extends {BaseAPI}
|
|
255
|
+
*/
|
|
256
|
+
export class ProductVersionsApi extends BaseAPI {
|
|
257
|
+
/**
|
|
258
|
+
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
259
|
+
* @summary List insured objects
|
|
260
|
+
* @param {ProductVersionsApiGetInsuredObjectsPerVersionRequest} requestParameters Request parameters.
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
* @memberof ProductVersionsApi
|
|
264
|
+
*/
|
|
265
|
+
public getInsuredObjectsPerVersion(requestParameters: ProductVersionsApiGetInsuredObjectsPerVersionRequest, options?: AxiosRequestConfig) {
|
|
266
|
+
return ProductVersionsApiFp(this.configuration).getInsuredObjectsPerVersion(requestParameters.productVersionId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
271
|
+
* @summary List product factors
|
|
272
|
+
* @param {ProductVersionsApiGetProductFactorsPerVersionRequest} requestParameters Request parameters.
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
* @memberof ProductVersionsApi
|
|
276
|
+
*/
|
|
277
|
+
public getProductFactorsPerVersion(requestParameters: ProductVersionsApiGetProductFactorsPerVersionRequest, options?: AxiosRequestConfig) {
|
|
278
|
+
return ProductVersionsApiFp(this.configuration).getProductFactorsPerVersion(requestParameters.productVersionId, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
279
|
+
}
|
|
280
|
+
}
|
package/api.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { LeadsApi } from './api';
|
|
|
28
28
|
import { NamedRangesApi } from './api';
|
|
29
29
|
import { NotificationsApi } from './api';
|
|
30
30
|
import { PaymentsSetupApi } from './api';
|
|
31
|
+
import { ProductVersionsApi } from './api';
|
|
31
32
|
import { ProductsApi } from './api';
|
|
32
33
|
|
|
33
34
|
|
|
@@ -39,5 +40,6 @@ export * from './api/leads-api';
|
|
|
39
40
|
export * from './api/named-ranges-api';
|
|
40
41
|
export * from './api/notifications-api';
|
|
41
42
|
export * from './api/payments-setup-api';
|
|
43
|
+
export * from './api/product-versions-api';
|
|
42
44
|
export * from './api/products-api';
|
|
43
45
|
|
package/base.ts
CHANGED
|
@@ -40,6 +40,7 @@ export interface LoginClass {
|
|
|
40
40
|
export enum Environment {
|
|
41
41
|
Production = 'https://apiv2.emil.de',
|
|
42
42
|
Test = 'https://apiv2-test.emil.de',
|
|
43
|
+
Staging = 'https://apiv2-staging.emil.de',
|
|
43
44
|
Development = 'https://apiv2-dev.emil.de',
|
|
44
45
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
45
46
|
}
|
|
@@ -24,6 +24,7 @@ export declare const NamedRangesApiAxiosParamCreator: (configuration?: Configura
|
|
|
24
24
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
25
25
|
* @param {string} name Name of Named Range.
|
|
26
26
|
* @param {string} [authorization] Bearer Token
|
|
27
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
27
28
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
28
29
|
* @param {string} [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.
|
|
29
30
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -32,7 +33,7 @@ export declare const NamedRangesApiAxiosParamCreator: (configuration?: Configura
|
|
|
32
33
|
* @param {*} [options] Override http request option.
|
|
33
34
|
* @throws {RequiredError}
|
|
34
35
|
*/
|
|
35
|
-
filterNamedRange: (productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
filterNamedRange: (productSlug: string, name: string, authorization?: string, productVersionId?: number, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
37
|
};
|
|
37
38
|
/**
|
|
38
39
|
* NamedRangesApi - functional programming interface
|
|
@@ -45,6 +46,7 @@ export declare const NamedRangesApiFp: (configuration?: Configuration) => {
|
|
|
45
46
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
46
47
|
* @param {string} name Name of Named Range.
|
|
47
48
|
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
48
50
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
49
51
|
* @param {string} [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.
|
|
50
52
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -53,7 +55,7 @@ export declare const NamedRangesApiFp: (configuration?: Configuration) => {
|
|
|
53
55
|
* @param {*} [options] Override http request option.
|
|
54
56
|
* @throws {RequiredError}
|
|
55
57
|
*/
|
|
56
|
-
filterNamedRange(productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilterNamedRangeResponseClass>>;
|
|
58
|
+
filterNamedRange(productSlug: string, name: string, authorization?: string, productVersionId?: number, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilterNamedRangeResponseClass>>;
|
|
57
59
|
};
|
|
58
60
|
/**
|
|
59
61
|
* NamedRangesApi - factory interface
|
|
@@ -66,6 +68,7 @@ export declare const NamedRangesApiFactory: (configuration?: Configuration, base
|
|
|
66
68
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
67
69
|
* @param {string} name Name of Named Range.
|
|
68
70
|
* @param {string} [authorization] Bearer Token
|
|
71
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
69
72
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
70
73
|
* @param {string} [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.
|
|
71
74
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -74,7 +77,7 @@ export declare const NamedRangesApiFactory: (configuration?: Configuration, base
|
|
|
74
77
|
* @param {*} [options] Override http request option.
|
|
75
78
|
* @throws {RequiredError}
|
|
76
79
|
*/
|
|
77
|
-
filterNamedRange(productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: any): AxiosPromise<FilterNamedRangeResponseClass>;
|
|
80
|
+
filterNamedRange(productSlug: string, name: string, authorization?: string, productVersionId?: number, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: any): AxiosPromise<FilterNamedRangeResponseClass>;
|
|
78
81
|
};
|
|
79
82
|
/**
|
|
80
83
|
* Request parameters for filterNamedRange operation in NamedRangesApi.
|
|
@@ -100,6 +103,12 @@ export interface NamedRangesApiFilterNamedRangeRequest {
|
|
|
100
103
|
* @memberof NamedRangesApiFilterNamedRange
|
|
101
104
|
*/
|
|
102
105
|
readonly authorization?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
110
|
+
*/
|
|
111
|
+
readonly productVersionId?: number;
|
|
103
112
|
/**
|
|
104
113
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
105
114
|
* @type {number}
|
|
@@ -98,6 +98,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
99
99
|
* @param {string} name Name of Named Range.
|
|
100
100
|
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
101
102
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
102
103
|
* @param {string} [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.
|
|
103
104
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -106,7 +107,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
|
|
|
106
107
|
* @param {*} [options] Override http request option.
|
|
107
108
|
* @throws {RequiredError}
|
|
108
109
|
*/
|
|
109
|
-
filterNamedRange: function (productSlug, name, authorization, pageSize, pageToken, filters, search, order, options) {
|
|
110
|
+
filterNamedRange: function (productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options) {
|
|
110
111
|
if (options === void 0) { options = {}; }
|
|
111
112
|
return __awaiter(_this, void 0, void 0, function () {
|
|
112
113
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -136,6 +137,9 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
|
|
|
136
137
|
if (productSlug !== undefined) {
|
|
137
138
|
localVarQueryParameter['productSlug'] = productSlug;
|
|
138
139
|
}
|
|
140
|
+
if (productVersionId !== undefined) {
|
|
141
|
+
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
142
|
+
}
|
|
139
143
|
if (name !== undefined) {
|
|
140
144
|
localVarQueryParameter['name'] = name;
|
|
141
145
|
}
|
|
@@ -184,6 +188,7 @@ var NamedRangesApiFp = function (configuration) {
|
|
|
184
188
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
185
189
|
* @param {string} name Name of Named Range.
|
|
186
190
|
* @param {string} [authorization] Bearer Token
|
|
191
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
187
192
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
188
193
|
* @param {string} [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.
|
|
189
194
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -192,12 +197,12 @@ var NamedRangesApiFp = function (configuration) {
|
|
|
192
197
|
* @param {*} [options] Override http request option.
|
|
193
198
|
* @throws {RequiredError}
|
|
194
199
|
*/
|
|
195
|
-
filterNamedRange: function (productSlug, name, authorization, pageSize, pageToken, filters, search, order, options) {
|
|
200
|
+
filterNamedRange: function (productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options) {
|
|
196
201
|
return __awaiter(this, void 0, void 0, function () {
|
|
197
202
|
var localVarAxiosArgs;
|
|
198
203
|
return __generator(this, function (_a) {
|
|
199
204
|
switch (_a.label) {
|
|
200
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.filterNamedRange(productSlug, name, authorization, pageSize, pageToken, filters, search, order, options)];
|
|
205
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.filterNamedRange(productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options)];
|
|
201
206
|
case 1:
|
|
202
207
|
localVarAxiosArgs = _a.sent();
|
|
203
208
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -221,6 +226,7 @@ var NamedRangesApiFactory = function (configuration, basePath, axios) {
|
|
|
221
226
|
* @param {string} productSlug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
222
227
|
* @param {string} name Name of Named Range.
|
|
223
228
|
* @param {string} [authorization] Bearer Token
|
|
229
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
224
230
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
225
231
|
* @param {string} [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.
|
|
226
232
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -229,8 +235,8 @@ var NamedRangesApiFactory = function (configuration, basePath, axios) {
|
|
|
229
235
|
* @param {*} [options] Override http request option.
|
|
230
236
|
* @throws {RequiredError}
|
|
231
237
|
*/
|
|
232
|
-
filterNamedRange: function (productSlug, name, authorization, pageSize, pageToken, filters, search, order, options) {
|
|
233
|
-
return localVarFp.filterNamedRange(productSlug, name, authorization, pageSize, pageToken, filters, search, order, options).then(function (request) { return request(axios, basePath); });
|
|
238
|
+
filterNamedRange: function (productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options) {
|
|
239
|
+
return localVarFp.filterNamedRange(productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options).then(function (request) { return request(axios, basePath); });
|
|
234
240
|
},
|
|
235
241
|
};
|
|
236
242
|
};
|
|
@@ -256,7 +262,7 @@ var NamedRangesApi = /** @class */ (function (_super) {
|
|
|
256
262
|
*/
|
|
257
263
|
NamedRangesApi.prototype.filterNamedRange = function (requestParameters, options) {
|
|
258
264
|
var _this = this;
|
|
259
|
-
return (0, exports.NamedRangesApiFp)(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
265
|
+
return (0, exports.NamedRangesApiFp)(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.productVersionId, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
260
266
|
};
|
|
261
267
|
return NamedRangesApi;
|
|
262
268
|
}(base_1.BaseAPI));
|