@emilgroup/public-api-sdk 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/.openapi-generator/FILES +9 -0
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +161 -0
- package/api/documents-api.ts +36 -22
- package/api/leads-api.ts +4 -4
- package/api/named-ranges-api.ts +250 -0
- package/api/products-api.ts +65 -38
- package/api.ts +4 -0
- package/base.ts +1 -0
- package/dist/api/booking-funnels-api.d.ts +96 -0
- package/dist/api/booking-funnels-api.js +223 -0
- package/dist/api/documents-api.d.ts +28 -19
- package/dist/api/documents-api.js +26 -20
- package/dist/api/leads-api.d.ts +4 -4
- package/dist/api/leads-api.js +4 -4
- package/dist/api/named-ranges-api.d.ts +150 -0
- package/dist/api/named-ranges-api.js +263 -0
- package/dist/api/products-api.d.ts +49 -31
- package/dist/api/products-api.js +47 -36
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.js +1 -0
- package/dist/models/address-field-score-class.d.ts +10 -10
- package/dist/models/booking-funnel-class.d.ts +90 -0
- package/dist/models/booking-funnel-class.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +1 -1
- package/dist/models/create-account-request-dto.js +1 -1
- package/dist/models/create-document-request-dto.d.ts +2 -2
- package/dist/models/create-lead-request-dto.d.ts +13 -1
- package/dist/models/create-presigned-post-request-dto.d.ts +2 -2
- package/dist/models/document-class.d.ts +1 -1
- package/dist/models/filter-named-range-response-class.d.ts +42 -0
- package/dist/models/filter-named-range-response-class.js +15 -0
- package/dist/models/get-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/get-booking-funnel-response-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/initiate-email-verification-dto.d.ts +1 -1
- package/dist/models/insured-object-type-class.d.ts +1 -1
- package/dist/models/lead-account-class.d.ts +1 -1
- package/dist/models/lead-account-class.js +1 -1
- package/dist/models/lead-class.d.ts +7 -0
- package/dist/models/lead-policy-object-class.d.ts +2 -2
- package/dist/models/partner-class.d.ts +60 -0
- package/dist/models/partner-class.js +15 -0
- package/dist/models/partner-link-class.d.ts +86 -0
- package/dist/models/partner-link-class.js +15 -0
- package/dist/models/partner-role-class.d.ts +54 -0
- package/dist/models/partner-role-class.js +15 -0
- package/dist/models/product-class.d.ts +1 -1
- package/dist/models/product-document-class.d.ts +14 -2
- package/dist/models/product-factor-for-version-class.d.ts +4 -3
- package/dist/models/product-factor-value-for-version-class.d.ts +42 -0
- package/dist/models/product-factor-value-for-version-class.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +1 -1
- package/dist/models/update-lead-request-dto.d.ts +1 -1
- package/models/address-field-score-class.ts +10 -10
- package/models/booking-funnel-class.ts +96 -0
- package/models/create-account-request-dto.ts +1 -1
- package/models/create-document-request-dto.ts +2 -2
- package/models/create-lead-request-dto.ts +13 -1
- package/models/create-presigned-post-request-dto.ts +2 -2
- package/models/document-class.ts +1 -1
- package/models/filter-named-range-response-class.ts +48 -0
- package/models/get-booking-funnel-response-class.ts +31 -0
- package/models/index.ts +7 -0
- package/models/initiate-email-verification-dto.ts +1 -1
- package/models/insured-object-type-class.ts +1 -1
- package/models/lead-account-class.ts +1 -1
- package/models/lead-class.ts +7 -0
- package/models/lead-policy-object-class.ts +2 -2
- package/models/partner-class.ts +66 -0
- package/models/partner-link-class.ts +92 -0
- package/models/partner-role-class.ts +60 -0
- package/models/product-class.ts +1 -1
- package/models/product-document-class.ts +14 -2
- package/models/product-factor-for-version-class.ts +4 -3
- package/models/product-factor-value-for-version-class.ts +48 -0
- package/models/send-notification-request-dto.ts +1 -1
- package/models/update-lead-request-dto.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,250 @@
|
|
|
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 { FilterNamedRangeResponseClass } from '../models';
|
|
25
|
+
/**
|
|
26
|
+
* NamedRangesApi - axios parameter creator
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const NamedRangesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
* Returns a list of named range file records you have previously created. The named range file records are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
33
|
+
* @summary List named range file records
|
|
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
|
+
* @param {string} name Name of Named Range.
|
|
36
|
+
* @param {string} [authorization] Bearer Token
|
|
37
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
38
|
+
* @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
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
40
|
+
* @param {string} [search] Search the list by any field.
|
|
41
|
+
* @param {string} [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.
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
filterNamedRange: async (productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
47
|
+
assertParamExists('filterNamedRange', 'productSlug', productSlug)
|
|
48
|
+
// verify required parameter 'name' is not null or undefined
|
|
49
|
+
assertParamExists('filterNamedRange', 'name', name)
|
|
50
|
+
const localVarPath = `/publicapi/v1/named-ranges/records`;
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
let baseAccessToken;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
baseAccessToken = configuration.accessToken;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
61
|
+
const localVarHeaderParameter = {} as any;
|
|
62
|
+
const localVarQueryParameter = {} as any;
|
|
63
|
+
|
|
64
|
+
// authentication bearer required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
|
+
|
|
68
|
+
if (productSlug !== undefined) {
|
|
69
|
+
localVarQueryParameter['productSlug'] = productSlug;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (name !== undefined) {
|
|
73
|
+
localVarQueryParameter['name'] = name;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (pageSize !== undefined) {
|
|
77
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (pageToken !== undefined) {
|
|
81
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (filters !== undefined) {
|
|
85
|
+
localVarQueryParameter['filters'] = filters;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (search !== undefined) {
|
|
89
|
+
localVarQueryParameter['search'] = search;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (order !== undefined) {
|
|
93
|
+
localVarQueryParameter['order'] = order;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
97
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
104
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
url: toPathString(localVarUrlObj),
|
|
108
|
+
options: localVarRequestOptions,
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* NamedRangesApi - functional programming interface
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const NamedRangesApiFp = function(configuration?: Configuration) {
|
|
119
|
+
const localVarAxiosParamCreator = NamedRangesApiAxiosParamCreator(configuration)
|
|
120
|
+
return {
|
|
121
|
+
/**
|
|
122
|
+
* Returns a list of named range file records you have previously created. The named range file records are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
123
|
+
* @summary List named range file records
|
|
124
|
+
* @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
|
+
* @param {string} name Name of Named Range.
|
|
126
|
+
* @param {string} [authorization] Bearer Token
|
|
127
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
128
|
+
* @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
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
130
|
+
* @param {string} [search] Search the list by any field.
|
|
131
|
+
* @param {string} [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.
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
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);
|
|
137
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
138
|
+
},
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* NamedRangesApi - factory interface
|
|
144
|
+
* @export
|
|
145
|
+
*/
|
|
146
|
+
export const NamedRangesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
147
|
+
const localVarFp = NamedRangesApiFp(configuration)
|
|
148
|
+
return {
|
|
149
|
+
/**
|
|
150
|
+
* Returns a list of named range file records you have previously created. The named range file records are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
151
|
+
* @summary List named range file records
|
|
152
|
+
* @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
|
+
* @param {string} name Name of Named Range.
|
|
154
|
+
* @param {string} [authorization] Bearer Token
|
|
155
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
156
|
+
* @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
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
158
|
+
* @param {string} [search] Search the list by any field.
|
|
159
|
+
* @param {string} [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.
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
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));
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Request parameters for filterNamedRange operation in NamedRangesApi.
|
|
171
|
+
* @export
|
|
172
|
+
* @interface NamedRangesApiFilterNamedRangeRequest
|
|
173
|
+
*/
|
|
174
|
+
export interface NamedRangesApiFilterNamedRangeRequest {
|
|
175
|
+
/**
|
|
176
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
179
|
+
*/
|
|
180
|
+
readonly productSlug: string
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Name of Named Range.
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
186
|
+
*/
|
|
187
|
+
readonly name: string
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Bearer Token
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
193
|
+
*/
|
|
194
|
+
readonly authorization?: string
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
198
|
+
* @type {number}
|
|
199
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
200
|
+
*/
|
|
201
|
+
readonly pageSize?: number
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* 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.
|
|
205
|
+
* @type {string}
|
|
206
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
207
|
+
*/
|
|
208
|
+
readonly pageToken?: string
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
214
|
+
*/
|
|
215
|
+
readonly filters?: string
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Search the list by any field.
|
|
219
|
+
* @type {string}
|
|
220
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
221
|
+
*/
|
|
222
|
+
readonly search?: string
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* 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.
|
|
226
|
+
* @type {string}
|
|
227
|
+
* @memberof NamedRangesApiFilterNamedRange
|
|
228
|
+
*/
|
|
229
|
+
readonly order?: string
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* NamedRangesApi - object-oriented interface
|
|
234
|
+
* @export
|
|
235
|
+
* @class NamedRangesApi
|
|
236
|
+
* @extends {BaseAPI}
|
|
237
|
+
*/
|
|
238
|
+
export class NamedRangesApi extends BaseAPI {
|
|
239
|
+
/**
|
|
240
|
+
* Returns a list of named range file records you have previously created. The named range file records are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
241
|
+
* @summary List named range file records
|
|
242
|
+
* @param {NamedRangesApiFilterNamedRangeRequest} requestParameters Request parameters.
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @throws {RequiredError}
|
|
245
|
+
* @memberof NamedRangesApi
|
|
246
|
+
*/
|
|
247
|
+
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));
|
|
249
|
+
}
|
|
250
|
+
}
|
package/api/products-api.ts
CHANGED
|
@@ -202,14 +202,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
202
202
|
};
|
|
203
203
|
},
|
|
204
204
|
/**
|
|
205
|
-
* Returns a list of insured object types you have previously created.
|
|
205
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
206
206
|
* @summary List insured object types
|
|
207
|
+
* @param {string} productCode
|
|
207
208
|
* @param {string} [authorization] Bearer Token
|
|
208
209
|
* @param {*} [options] Override http request option.
|
|
209
210
|
* @throws {RequiredError}
|
|
210
211
|
*/
|
|
211
|
-
getInsuredObjectTypes: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
212
|
-
|
|
212
|
+
getInsuredObjectTypes: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
213
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
214
|
+
assertParamExists('getInsuredObjectTypes', 'productCode', productCode)
|
|
215
|
+
const localVarPath = `/publicapi/v1/products/{product_code}/insured-object-types`
|
|
216
|
+
.replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
|
|
213
217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
218
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
215
219
|
let baseOptions;
|
|
@@ -243,7 +247,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
243
247
|
};
|
|
244
248
|
},
|
|
245
249
|
/**
|
|
246
|
-
* Returns a list of insured objects you have previously created.
|
|
250
|
+
* 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.
|
|
247
251
|
* @summary List insured objects
|
|
248
252
|
* @param {string} productCode
|
|
249
253
|
* @param {string} [authorization] Bearer Token
|
|
@@ -333,7 +337,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
333
337
|
};
|
|
334
338
|
},
|
|
335
339
|
/**
|
|
336
|
-
* Returns a list of product factors you have previously created.
|
|
340
|
+
* 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.
|
|
337
341
|
* @summary List product factors
|
|
338
342
|
* @param {string} productCode
|
|
339
343
|
* @param {string} allValues
|
|
@@ -385,19 +389,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
385
389
|
};
|
|
386
390
|
},
|
|
387
391
|
/**
|
|
388
|
-
* Returns a list of products you have previously created.
|
|
392
|
+
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
389
393
|
* @summary List products
|
|
390
394
|
* @param {string} [authorization] Bearer Token
|
|
391
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
395
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
392
396
|
* @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.
|
|
393
397
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
394
|
-
* @param {any} [search]
|
|
398
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
395
399
|
* @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.
|
|
396
400
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
401
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
397
402
|
* @param {*} [options] Override http request option.
|
|
398
403
|
* @throws {RequiredError}
|
|
399
404
|
*/
|
|
400
|
-
listProducts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
405
|
+
listProducts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
401
406
|
const localVarPath = `/publicapi/v1/products`;
|
|
402
407
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
403
408
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -440,6 +445,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
440
445
|
localVarQueryParameter['expand'] = expand;
|
|
441
446
|
}
|
|
442
447
|
|
|
448
|
+
if (filters !== undefined) {
|
|
449
|
+
localVarQueryParameter['filters'] = filters;
|
|
450
|
+
}
|
|
451
|
+
|
|
443
452
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
444
453
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
445
454
|
}
|
|
@@ -505,18 +514,19 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
505
514
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
506
515
|
},
|
|
507
516
|
/**
|
|
508
|
-
* Returns a list of insured object types you have previously created.
|
|
517
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
509
518
|
* @summary List insured object types
|
|
519
|
+
* @param {string} productCode
|
|
510
520
|
* @param {string} [authorization] Bearer Token
|
|
511
521
|
* @param {*} [options] Override http request option.
|
|
512
522
|
* @throws {RequiredError}
|
|
513
523
|
*/
|
|
514
|
-
async getInsuredObjectTypes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectTypeClass>>> {
|
|
515
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectTypes(authorization, options);
|
|
524
|
+
async getInsuredObjectTypes(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectTypeClass>>> {
|
|
525
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectTypes(productCode, authorization, options);
|
|
516
526
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
517
527
|
},
|
|
518
528
|
/**
|
|
519
|
-
* Returns a list of insured objects you have previously created.
|
|
529
|
+
* 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.
|
|
520
530
|
* @summary List insured objects
|
|
521
531
|
* @param {string} productCode
|
|
522
532
|
* @param {string} [authorization] Bearer Token
|
|
@@ -540,7 +550,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
540
550
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
541
551
|
},
|
|
542
552
|
/**
|
|
543
|
-
* Returns a list of product factors you have previously created.
|
|
553
|
+
* 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.
|
|
544
554
|
* @summary List product factors
|
|
545
555
|
* @param {string} productCode
|
|
546
556
|
* @param {string} allValues
|
|
@@ -553,20 +563,21 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
553
563
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
554
564
|
},
|
|
555
565
|
/**
|
|
556
|
-
* Returns a list of products you have previously created.
|
|
566
|
+
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
557
567
|
* @summary List products
|
|
558
568
|
* @param {string} [authorization] Bearer Token
|
|
559
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
569
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
560
570
|
* @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.
|
|
561
571
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
562
|
-
* @param {any} [search]
|
|
572
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
563
573
|
* @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.
|
|
564
574
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
575
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
565
576
|
* @param {*} [options] Override http request option.
|
|
566
577
|
* @throws {RequiredError}
|
|
567
578
|
*/
|
|
568
|
-
async listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
|
|
569
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
579
|
+
async listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
|
|
580
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
570
581
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
571
582
|
},
|
|
572
583
|
}
|
|
@@ -616,17 +627,18 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
616
627
|
return localVarFp.customApplication(productCode, createCustomApplicationRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
617
628
|
},
|
|
618
629
|
/**
|
|
619
|
-
* Returns a list of insured object types you have previously created.
|
|
630
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
620
631
|
* @summary List insured object types
|
|
632
|
+
* @param {string} productCode
|
|
621
633
|
* @param {string} [authorization] Bearer Token
|
|
622
634
|
* @param {*} [options] Override http request option.
|
|
623
635
|
* @throws {RequiredError}
|
|
624
636
|
*/
|
|
625
|
-
getInsuredObjectTypes(authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectTypeClass>> {
|
|
626
|
-
return localVarFp.getInsuredObjectTypes(authorization, options).then((request) => request(axios, basePath));
|
|
637
|
+
getInsuredObjectTypes(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectTypeClass>> {
|
|
638
|
+
return localVarFp.getInsuredObjectTypes(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
627
639
|
},
|
|
628
640
|
/**
|
|
629
|
-
* Returns a list of insured objects you have previously created.
|
|
641
|
+
* 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.
|
|
630
642
|
* @summary List insured objects
|
|
631
643
|
* @param {string} productCode
|
|
632
644
|
* @param {string} [authorization] Bearer Token
|
|
@@ -648,7 +660,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
648
660
|
return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
649
661
|
},
|
|
650
662
|
/**
|
|
651
|
-
* Returns a list of product factors you have previously created.
|
|
663
|
+
* 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.
|
|
652
664
|
* @summary List product factors
|
|
653
665
|
* @param {string} productCode
|
|
654
666
|
* @param {string} allValues
|
|
@@ -660,20 +672,21 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
660
672
|
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
|
|
661
673
|
},
|
|
662
674
|
/**
|
|
663
|
-
* Returns a list of products you have previously created.
|
|
675
|
+
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
664
676
|
* @summary List products
|
|
665
677
|
* @param {string} [authorization] Bearer Token
|
|
666
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
678
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
667
679
|
* @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.
|
|
668
680
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
669
|
-
* @param {any} [search]
|
|
681
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
670
682
|
* @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.
|
|
671
683
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
684
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
672
685
|
* @param {*} [options] Override http request option.
|
|
673
686
|
* @throws {RequiredError}
|
|
674
687
|
*/
|
|
675
|
-
listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
676
|
-
return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
688
|
+
listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
689
|
+
return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
677
690
|
},
|
|
678
691
|
};
|
|
679
692
|
};
|
|
@@ -768,6 +781,13 @@ export interface ProductsApiCustomApplicationRequest {
|
|
|
768
781
|
* @interface ProductsApiGetInsuredObjectTypesRequest
|
|
769
782
|
*/
|
|
770
783
|
export interface ProductsApiGetInsuredObjectTypesRequest {
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @type {string}
|
|
787
|
+
* @memberof ProductsApiGetInsuredObjectTypes
|
|
788
|
+
*/
|
|
789
|
+
readonly productCode: string
|
|
790
|
+
|
|
771
791
|
/**
|
|
772
792
|
* Bearer Token
|
|
773
793
|
* @type {string}
|
|
@@ -860,7 +880,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
860
880
|
readonly authorization?: string
|
|
861
881
|
|
|
862
882
|
/**
|
|
863
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
883
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
864
884
|
* @type {any}
|
|
865
885
|
* @memberof ProductsApiListProducts
|
|
866
886
|
*/
|
|
@@ -881,7 +901,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
881
901
|
readonly filter?: any
|
|
882
902
|
|
|
883
903
|
/**
|
|
884
|
-
*
|
|
904
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
885
905
|
* @type {any}
|
|
886
906
|
* @memberof ProductsApiListProducts
|
|
887
907
|
*/
|
|
@@ -900,6 +920,13 @@ export interface ProductsApiListProductsRequest {
|
|
|
900
920
|
* @memberof ProductsApiListProducts
|
|
901
921
|
*/
|
|
902
922
|
readonly expand?: any
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
926
|
+
* @type {any}
|
|
927
|
+
* @memberof ProductsApiListProducts
|
|
928
|
+
*/
|
|
929
|
+
readonly filters?: any
|
|
903
930
|
}
|
|
904
931
|
|
|
905
932
|
/**
|
|
@@ -946,19 +973,19 @@ export class ProductsApi extends BaseAPI {
|
|
|
946
973
|
}
|
|
947
974
|
|
|
948
975
|
/**
|
|
949
|
-
* Returns a list of insured object types you have previously created.
|
|
976
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
950
977
|
* @summary List insured object types
|
|
951
978
|
* @param {ProductsApiGetInsuredObjectTypesRequest} requestParameters Request parameters.
|
|
952
979
|
* @param {*} [options] Override http request option.
|
|
953
980
|
* @throws {RequiredError}
|
|
954
981
|
* @memberof ProductsApi
|
|
955
982
|
*/
|
|
956
|
-
public getInsuredObjectTypes(requestParameters: ProductsApiGetInsuredObjectTypesRequest
|
|
957
|
-
return ProductsApiFp(this.configuration).getInsuredObjectTypes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
983
|
+
public getInsuredObjectTypes(requestParameters: ProductsApiGetInsuredObjectTypesRequest, options?: AxiosRequestConfig) {
|
|
984
|
+
return ProductsApiFp(this.configuration).getInsuredObjectTypes(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
958
985
|
}
|
|
959
986
|
|
|
960
987
|
/**
|
|
961
|
-
* Returns a list of insured objects you have previously created.
|
|
988
|
+
* 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.
|
|
962
989
|
* @summary List insured objects
|
|
963
990
|
* @param {ProductsApiGetInsuredObjectsRequest} requestParameters Request parameters.
|
|
964
991
|
* @param {*} [options] Override http request option.
|
|
@@ -982,7 +1009,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
982
1009
|
}
|
|
983
1010
|
|
|
984
1011
|
/**
|
|
985
|
-
* Returns a list of product factors you have previously created.
|
|
1012
|
+
* 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.
|
|
986
1013
|
* @summary List product factors
|
|
987
1014
|
* @param {ProductsApiGetProductFactorsRequest} requestParameters Request parameters.
|
|
988
1015
|
* @param {*} [options] Override http request option.
|
|
@@ -994,7 +1021,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
994
1021
|
}
|
|
995
1022
|
|
|
996
1023
|
/**
|
|
997
|
-
* Returns a list of products you have previously created.
|
|
1024
|
+
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
998
1025
|
* @summary List products
|
|
999
1026
|
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
1000
1027
|
* @param {*} [options] Override http request option.
|
|
@@ -1002,6 +1029,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
1002
1029
|
* @memberof ProductsApi
|
|
1003
1030
|
*/
|
|
1004
1031
|
public listProducts(requestParameters: ProductsApiListProductsRequest = {}, options?: AxiosRequestConfig) {
|
|
1005
|
-
return ProductsApiFp(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1032
|
+
return ProductsApiFp(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1006
1033
|
}
|
|
1007
1034
|
}
|
package/api.ts
CHANGED
|
@@ -21,18 +21,22 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { AddressCompletionsValidationsApi } from './api';
|
|
24
|
+
import { BookingFunnelsApi } from './api';
|
|
24
25
|
import { DefaultApi } from './api';
|
|
25
26
|
import { DocumentsApi } from './api';
|
|
26
27
|
import { LeadsApi } from './api';
|
|
28
|
+
import { NamedRangesApi } from './api';
|
|
27
29
|
import { NotificationsApi } from './api';
|
|
28
30
|
import { PaymentsSetupApi } from './api';
|
|
29
31
|
import { ProductsApi } from './api';
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
export * from './api/address-completions-validations-api';
|
|
35
|
+
export * from './api/booking-funnels-api';
|
|
33
36
|
export * from './api/default-api';
|
|
34
37
|
export * from './api/documents-api';
|
|
35
38
|
export * from './api/leads-api';
|
|
39
|
+
export * from './api/named-ranges-api';
|
|
36
40
|
export * from './api/notifications-api';
|
|
37
41
|
export * from './api/payments-setup-api';
|
|
38
42
|
export * from './api/products-api';
|
package/base.ts
CHANGED
|
@@ -87,6 +87,7 @@ export class BaseAPI {
|
|
|
87
87
|
if (configuration) {
|
|
88
88
|
this.configuration = configuration;
|
|
89
89
|
this.basePath = configuration.basePath || this.basePath;
|
|
90
|
+
this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
|
|
90
91
|
} else {
|
|
91
92
|
const { accessToken, username } = this.tokenData;
|
|
92
93
|
|