@emilgroup/public-api-sdk-node 1.27.1 → 1.28.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.
Files changed (79) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/api/booking-funnels-api.ts +165 -0
  4. package/api/documents-api.ts +36 -22
  5. package/api/leads-api.ts +4 -4
  6. package/api/named-ranges-api.ts +254 -0
  7. package/api/products-api.ts +65 -38
  8. package/api.ts +4 -0
  9. package/dist/api/booking-funnels-api.d.ts +96 -0
  10. package/dist/api/booking-funnels-api.js +227 -0
  11. package/dist/api/documents-api.d.ts +28 -19
  12. package/dist/api/documents-api.js +26 -20
  13. package/dist/api/leads-api.d.ts +4 -4
  14. package/dist/api/leads-api.js +4 -4
  15. package/dist/api/named-ranges-api.d.ts +150 -0
  16. package/dist/api/named-ranges-api.js +267 -0
  17. package/dist/api/products-api.d.ts +49 -31
  18. package/dist/api/products-api.js +47 -36
  19. package/dist/api.d.ts +2 -0
  20. package/dist/api.js +2 -0
  21. package/dist/models/address-field-score-class.d.ts +10 -10
  22. package/dist/models/booking-funnel-class.d.ts +90 -0
  23. package/dist/models/booking-funnel-class.js +15 -0
  24. package/dist/models/create-account-request-dto.d.ts +1 -1
  25. package/dist/models/create-account-request-dto.js +1 -1
  26. package/dist/models/create-document-request-dto.d.ts +2 -2
  27. package/dist/models/create-lead-request-dto.d.ts +13 -1
  28. package/dist/models/create-presigned-post-request-dto.d.ts +2 -2
  29. package/dist/models/document-class.d.ts +1 -1
  30. package/dist/models/filter-named-range-response-class.d.ts +42 -0
  31. package/dist/models/filter-named-range-response-class.js +15 -0
  32. package/dist/models/get-booking-funnel-response-class.d.ts +25 -0
  33. package/dist/models/get-booking-funnel-response-class.js +15 -0
  34. package/dist/models/index.d.ts +7 -0
  35. package/dist/models/index.js +7 -0
  36. package/dist/models/initiate-email-verification-dto.d.ts +1 -1
  37. package/dist/models/insured-object-type-class.d.ts +1 -1
  38. package/dist/models/lead-account-class.d.ts +1 -1
  39. package/dist/models/lead-account-class.js +1 -1
  40. package/dist/models/lead-class.d.ts +7 -0
  41. package/dist/models/lead-policy-object-class.d.ts +2 -2
  42. package/dist/models/partner-class.d.ts +60 -0
  43. package/dist/models/partner-class.js +15 -0
  44. package/dist/models/partner-link-class.d.ts +86 -0
  45. package/dist/models/partner-link-class.js +15 -0
  46. package/dist/models/partner-role-class.d.ts +54 -0
  47. package/dist/models/partner-role-class.js +15 -0
  48. package/dist/models/product-class.d.ts +1 -1
  49. package/dist/models/product-document-class.d.ts +14 -2
  50. package/dist/models/product-factor-for-version-class.d.ts +4 -3
  51. package/dist/models/product-factor-value-for-version-class.d.ts +42 -0
  52. package/dist/models/product-factor-value-for-version-class.js +15 -0
  53. package/dist/models/send-notification-request-dto.d.ts +1 -1
  54. package/dist/models/update-lead-request-dto.d.ts +1 -1
  55. package/models/address-field-score-class.ts +10 -10
  56. package/models/booking-funnel-class.ts +96 -0
  57. package/models/create-account-request-dto.ts +1 -1
  58. package/models/create-document-request-dto.ts +2 -2
  59. package/models/create-lead-request-dto.ts +13 -1
  60. package/models/create-presigned-post-request-dto.ts +2 -2
  61. package/models/document-class.ts +1 -1
  62. package/models/filter-named-range-response-class.ts +48 -0
  63. package/models/get-booking-funnel-response-class.ts +31 -0
  64. package/models/index.ts +7 -0
  65. package/models/initiate-email-verification-dto.ts +1 -1
  66. package/models/insured-object-type-class.ts +1 -1
  67. package/models/lead-account-class.ts +1 -1
  68. package/models/lead-class.ts +7 -0
  69. package/models/lead-policy-object-class.ts +2 -2
  70. package/models/partner-class.ts +66 -0
  71. package/models/partner-link-class.ts +92 -0
  72. package/models/partner-role-class.ts +60 -0
  73. package/models/product-class.ts +1 -1
  74. package/models/product-document-class.ts +14 -2
  75. package/models/product-factor-for-version-class.ts +4 -3
  76. package/models/product-factor-value-for-version-class.ts +48 -0
  77. package/models/send-notification-request-dto.ts +1 -1
  78. package/models/update-lead-request-dto.ts +1 -1
  79. package/package.json +1 -1
@@ -0,0 +1,254 @@
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
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * NamedRangesApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * 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.
37
+ * @summary List named range file records
38
+ * @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.
39
+ * @param {string} name Name of Named Range.
40
+ * @param {string} [authorization] Bearer Token
41
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
42
+ * @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.
43
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
44
+ * @param {string} [search] Search the list by any field.
45
+ * @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.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ filterNamedRange: async (productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'productSlug' is not null or undefined
51
+ assertParamExists('filterNamedRange', 'productSlug', productSlug)
52
+ // verify required parameter 'name' is not null or undefined
53
+ assertParamExists('filterNamedRange', 'name', name)
54
+ const localVarPath = `/publicapi/v1/named-ranges/records`;
55
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57
+ let baseOptions;
58
+ let baseAccessToken;
59
+ if (configuration) {
60
+ baseOptions = configuration.baseOptions;
61
+ baseAccessToken = configuration.accessToken;
62
+ }
63
+
64
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65
+ const localVarHeaderParameter = {} as any;
66
+ const localVarQueryParameter = {} as any;
67
+
68
+ // authentication bearer required
69
+ // http bearer authentication required
70
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
+
72
+ if (productSlug !== undefined) {
73
+ localVarQueryParameter['productSlug'] = productSlug;
74
+ }
75
+
76
+ if (name !== undefined) {
77
+ localVarQueryParameter['name'] = name;
78
+ }
79
+
80
+ if (pageSize !== undefined) {
81
+ localVarQueryParameter['pageSize'] = pageSize;
82
+ }
83
+
84
+ if (pageToken !== undefined) {
85
+ localVarQueryParameter['pageToken'] = pageToken;
86
+ }
87
+
88
+ if (filters !== undefined) {
89
+ localVarQueryParameter['filters'] = filters;
90
+ }
91
+
92
+ if (search !== undefined) {
93
+ localVarQueryParameter['search'] = search;
94
+ }
95
+
96
+ if (order !== undefined) {
97
+ localVarQueryParameter['order'] = order;
98
+ }
99
+
100
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
101
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
102
+ }
103
+
104
+
105
+
106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
108
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
109
+
110
+ return {
111
+ url: toPathString(localVarUrlObj),
112
+ options: localVarRequestOptions,
113
+ };
114
+ },
115
+ }
116
+ };
117
+
118
+ /**
119
+ * NamedRangesApi - functional programming interface
120
+ * @export
121
+ */
122
+ export const NamedRangesApiFp = function(configuration?: Configuration) {
123
+ const localVarAxiosParamCreator = NamedRangesApiAxiosParamCreator(configuration)
124
+ return {
125
+ /**
126
+ * 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.
127
+ * @summary List named range file records
128
+ * @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.
129
+ * @param {string} name Name of Named Range.
130
+ * @param {string} [authorization] Bearer Token
131
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
132
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
133
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
134
+ * @param {string} [search] Search the list by any field.
135
+ * @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.
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ 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>> {
140
+ const localVarAxiosArgs = await localVarAxiosParamCreator.filterNamedRange(productSlug, name, authorization, pageSize, pageToken, filters, search, order, options);
141
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
142
+ },
143
+ }
144
+ };
145
+
146
+ /**
147
+ * NamedRangesApi - factory interface
148
+ * @export
149
+ */
150
+ export const NamedRangesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
151
+ const localVarFp = NamedRangesApiFp(configuration)
152
+ return {
153
+ /**
154
+ * 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.
155
+ * @summary List named range file records
156
+ * @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.
157
+ * @param {string} name Name of Named Range.
158
+ * @param {string} [authorization] Bearer Token
159
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
160
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
161
+ * @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
162
+ * @param {string} [search] Search the list by any field.
163
+ * @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.
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ filterNamedRange(productSlug: string, name: string, authorization?: string, pageSize?: number, pageToken?: string, filters?: string, search?: string, order?: string, options?: any): AxiosPromise<FilterNamedRangeResponseClass> {
168
+ return localVarFp.filterNamedRange(productSlug, name, authorization, pageSize, pageToken, filters, search, order, options).then((request) => request(axios, basePath));
169
+ },
170
+ };
171
+ };
172
+
173
+ /**
174
+ * Request parameters for filterNamedRange operation in NamedRangesApi.
175
+ * @export
176
+ * @interface NamedRangesApiFilterNamedRangeRequest
177
+ */
178
+ export interface NamedRangesApiFilterNamedRangeRequest {
179
+ /**
180
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
181
+ * @type {string}
182
+ * @memberof NamedRangesApiFilterNamedRange
183
+ */
184
+ readonly productSlug: string
185
+
186
+ /**
187
+ * Name of Named Range.
188
+ * @type {string}
189
+ * @memberof NamedRangesApiFilterNamedRange
190
+ */
191
+ readonly name: string
192
+
193
+ /**
194
+ * Bearer Token
195
+ * @type {string}
196
+ * @memberof NamedRangesApiFilterNamedRange
197
+ */
198
+ readonly authorization?: string
199
+
200
+ /**
201
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
202
+ * @type {number}
203
+ * @memberof NamedRangesApiFilterNamedRange
204
+ */
205
+ readonly pageSize?: number
206
+
207
+ /**
208
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
209
+ * @type {string}
210
+ * @memberof NamedRangesApiFilterNamedRange
211
+ */
212
+ readonly pageToken?: string
213
+
214
+ /**
215
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
216
+ * @type {string}
217
+ * @memberof NamedRangesApiFilterNamedRange
218
+ */
219
+ readonly filters?: string
220
+
221
+ /**
222
+ * Search the list by any field.
223
+ * @type {string}
224
+ * @memberof NamedRangesApiFilterNamedRange
225
+ */
226
+ readonly search?: string
227
+
228
+ /**
229
+ * 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.
230
+ * @type {string}
231
+ * @memberof NamedRangesApiFilterNamedRange
232
+ */
233
+ readonly order?: string
234
+ }
235
+
236
+ /**
237
+ * NamedRangesApi - object-oriented interface
238
+ * @export
239
+ * @class NamedRangesApi
240
+ * @extends {BaseAPI}
241
+ */
242
+ export class NamedRangesApi extends BaseAPI {
243
+ /**
244
+ * 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.
245
+ * @summary List named range file records
246
+ * @param {NamedRangesApiFilterNamedRangeRequest} requestParameters Request parameters.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ * @memberof NamedRangesApi
250
+ */
251
+ public filterNamedRange(requestParameters: NamedRangesApiFilterNamedRangeRequest, options?: AxiosRequestConfig) {
252
+ 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));
253
+ }
254
+ }
@@ -206,14 +206,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
206
206
  };
207
207
  },
208
208
  /**
209
- * 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.
209
+ * 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.
210
210
  * @summary List insured object types
211
+ * @param {string} productCode
211
212
  * @param {string} [authorization] Bearer Token
212
213
  * @param {*} [options] Override http request option.
213
214
  * @throws {RequiredError}
214
215
  */
215
- getInsuredObjectTypes: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
216
- const localVarPath = `/publicapi/v1/products/{product_code}/insured-object-types`;
216
+ getInsuredObjectTypes: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
217
+ // verify required parameter 'productCode' is not null or undefined
218
+ assertParamExists('getInsuredObjectTypes', 'productCode', productCode)
219
+ const localVarPath = `/publicapi/v1/products/{product_code}/insured-object-types`
220
+ .replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
217
221
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
222
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
219
223
  let baseOptions;
@@ -247,7 +251,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
247
251
  };
248
252
  },
249
253
  /**
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.
254
+ * 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.
251
255
  * @summary List insured objects
252
256
  * @param {string} productCode
253
257
  * @param {string} [authorization] Bearer Token
@@ -337,7 +341,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
337
341
  };
338
342
  },
339
343
  /**
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.
344
+ * 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.
341
345
  * @summary List product factors
342
346
  * @param {string} productCode
343
347
  * @param {string} allValues
@@ -389,19 +393,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
389
393
  };
390
394
  },
391
395
  /**
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.
396
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
393
397
  * @summary List products
394
398
  * @param {string} [authorization] Bearer Token
395
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
399
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
396
400
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
397
401
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
398
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
402
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
399
403
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
400
404
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
405
+ * @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.
401
406
  * @param {*} [options] Override http request option.
402
407
  * @throws {RequiredError}
403
408
  */
404
- listProducts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
409
+ listProducts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
405
410
  const localVarPath = `/publicapi/v1/products`;
406
411
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
407
412
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -444,6 +449,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
444
449
  localVarQueryParameter['expand'] = expand;
445
450
  }
446
451
 
452
+ if (filters !== undefined) {
453
+ localVarQueryParameter['filters'] = filters;
454
+ }
455
+
447
456
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
448
457
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
449
458
  }
@@ -509,18 +518,19 @@ export const ProductsApiFp = function(configuration?: Configuration) {
509
518
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
510
519
  },
511
520
  /**
512
- * 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.
521
+ * 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.
513
522
  * @summary List insured object types
523
+ * @param {string} productCode
514
524
  * @param {string} [authorization] Bearer Token
515
525
  * @param {*} [options] Override http request option.
516
526
  * @throws {RequiredError}
517
527
  */
518
- async getInsuredObjectTypes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectTypeClass>>> {
519
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectTypes(authorization, options);
528
+ async getInsuredObjectTypes(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectTypeClass>>> {
529
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectTypes(productCode, authorization, options);
520
530
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
521
531
  },
522
532
  /**
523
- * 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.
533
+ * 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.
524
534
  * @summary List insured objects
525
535
  * @param {string} productCode
526
536
  * @param {string} [authorization] Bearer Token
@@ -544,7 +554,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
544
554
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
545
555
  },
546
556
  /**
547
- * 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.
557
+ * 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.
548
558
  * @summary List product factors
549
559
  * @param {string} productCode
550
560
  * @param {string} allValues
@@ -557,20 +567,21 @@ export const ProductsApiFp = function(configuration?: Configuration) {
557
567
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
558
568
  },
559
569
  /**
560
- * 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.
570
+ * 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.
561
571
  * @summary List products
562
572
  * @param {string} [authorization] Bearer Token
563
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
573
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
564
574
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
565
575
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
566
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
576
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
567
577
  * @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.
568
578
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
579
+ * @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.
569
580
  * @param {*} [options] Override http request option.
570
581
  * @throws {RequiredError}
571
582
  */
572
- 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>> {
573
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options);
583
+ 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>> {
584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
574
585
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
575
586
  },
576
587
  }
@@ -620,17 +631,18 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
620
631
  return localVarFp.customApplication(productCode, createCustomApplicationRequestDto, authorization, options).then((request) => request(axios, basePath));
621
632
  },
622
633
  /**
623
- * 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.
634
+ * 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.
624
635
  * @summary List insured object types
636
+ * @param {string} productCode
625
637
  * @param {string} [authorization] Bearer Token
626
638
  * @param {*} [options] Override http request option.
627
639
  * @throws {RequiredError}
628
640
  */
629
- getInsuredObjectTypes(authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectTypeClass>> {
630
- return localVarFp.getInsuredObjectTypes(authorization, options).then((request) => request(axios, basePath));
641
+ getInsuredObjectTypes(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectTypeClass>> {
642
+ return localVarFp.getInsuredObjectTypes(productCode, authorization, options).then((request) => request(axios, basePath));
631
643
  },
632
644
  /**
633
- * 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.
645
+ * 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.
634
646
  * @summary List insured objects
635
647
  * @param {string} productCode
636
648
  * @param {string} [authorization] Bearer Token
@@ -652,7 +664,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
652
664
  return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
653
665
  },
654
666
  /**
655
- * 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.
667
+ * 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.
656
668
  * @summary List product factors
657
669
  * @param {string} productCode
658
670
  * @param {string} allValues
@@ -664,20 +676,21 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
664
676
  return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
665
677
  },
666
678
  /**
667
- * 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.
679
+ * 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.
668
680
  * @summary List products
669
681
  * @param {string} [authorization] Bearer Token
670
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
682
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
671
683
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
672
684
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
673
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
685
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
674
686
  * @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.
675
687
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
688
+ * @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.
676
689
  * @param {*} [options] Override http request option.
677
690
  * @throws {RequiredError}
678
691
  */
679
- listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductsResponseClass> {
680
- return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
692
+ listProducts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListProductsResponseClass> {
693
+ return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
681
694
  },
682
695
  };
683
696
  };
@@ -772,6 +785,13 @@ export interface ProductsApiCustomApplicationRequest {
772
785
  * @interface ProductsApiGetInsuredObjectTypesRequest
773
786
  */
774
787
  export interface ProductsApiGetInsuredObjectTypesRequest {
788
+ /**
789
+ *
790
+ * @type {string}
791
+ * @memberof ProductsApiGetInsuredObjectTypes
792
+ */
793
+ readonly productCode: string
794
+
775
795
  /**
776
796
  * Bearer Token
777
797
  * @type {string}
@@ -864,7 +884,7 @@ export interface ProductsApiListProductsRequest {
864
884
  readonly authorization?: string
865
885
 
866
886
  /**
867
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
887
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
868
888
  * @type {any}
869
889
  * @memberof ProductsApiListProducts
870
890
  */
@@ -885,7 +905,7 @@ export interface ProductsApiListProductsRequest {
885
905
  readonly filter?: any
886
906
 
887
907
  /**
888
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
908
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
889
909
  * @type {any}
890
910
  * @memberof ProductsApiListProducts
891
911
  */
@@ -904,6 +924,13 @@ export interface ProductsApiListProductsRequest {
904
924
  * @memberof ProductsApiListProducts
905
925
  */
906
926
  readonly expand?: any
927
+
928
+ /**
929
+ * 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.
930
+ * @type {any}
931
+ * @memberof ProductsApiListProducts
932
+ */
933
+ readonly filters?: any
907
934
  }
908
935
 
909
936
  /**
@@ -950,19 +977,19 @@ export class ProductsApi extends BaseAPI {
950
977
  }
951
978
 
952
979
  /**
953
- * 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.
980
+ * 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.
954
981
  * @summary List insured object types
955
982
  * @param {ProductsApiGetInsuredObjectTypesRequest} requestParameters Request parameters.
956
983
  * @param {*} [options] Override http request option.
957
984
  * @throws {RequiredError}
958
985
  * @memberof ProductsApi
959
986
  */
960
- public getInsuredObjectTypes(requestParameters: ProductsApiGetInsuredObjectTypesRequest = {}, options?: AxiosRequestConfig) {
961
- return ProductsApiFp(this.configuration).getInsuredObjectTypes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
987
+ public getInsuredObjectTypes(requestParameters: ProductsApiGetInsuredObjectTypesRequest, options?: AxiosRequestConfig) {
988
+ return ProductsApiFp(this.configuration).getInsuredObjectTypes(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
962
989
  }
963
990
 
964
991
  /**
965
- * 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.
992
+ * 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.
966
993
  * @summary List insured objects
967
994
  * @param {ProductsApiGetInsuredObjectsRequest} requestParameters Request parameters.
968
995
  * @param {*} [options] Override http request option.
@@ -986,7 +1013,7 @@ export class ProductsApi extends BaseAPI {
986
1013
  }
987
1014
 
988
1015
  /**
989
- * 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.
1016
+ * 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.
990
1017
  * @summary List product factors
991
1018
  * @param {ProductsApiGetProductFactorsRequest} requestParameters Request parameters.
992
1019
  * @param {*} [options] Override http request option.
@@ -998,7 +1025,7 @@ export class ProductsApi extends BaseAPI {
998
1025
  }
999
1026
 
1000
1027
  /**
1001
- * 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.
1028
+ * 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.
1002
1029
  * @summary List products
1003
1030
  * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
1004
1031
  * @param {*} [options] Override http request option.
@@ -1006,6 +1033,6 @@ export class ProductsApi extends BaseAPI {
1006
1033
  * @memberof ProductsApi
1007
1034
  */
1008
1035
  public listProducts(requestParameters: ProductsApiListProductsRequest = {}, options?: AxiosRequestConfig) {
1009
- 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));
1036
+ 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));
1010
1037
  }
1011
1038
  }
package/api.ts CHANGED
@@ -25,18 +25,22 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { AddressCompletionsValidationsApi } from './api';
28
+ import { BookingFunnelsApi } from './api';
28
29
  import { DefaultApi } from './api';
29
30
  import { DocumentsApi } from './api';
30
31
  import { LeadsApi } from './api';
32
+ import { NamedRangesApi } from './api';
31
33
  import { NotificationsApi } from './api';
32
34
  import { PaymentsSetupApi } from './api';
33
35
  import { ProductsApi } from './api';
34
36
 
35
37
 
36
38
  export * from './api/address-completions-validations-api';
39
+ export * from './api/booking-funnels-api';
37
40
  export * from './api/default-api';
38
41
  export * from './api/documents-api';
39
42
  export * from './api/leads-api';
43
+ export * from './api/named-ranges-api';
40
44
  export * from './api/notifications-api';
41
45
  export * from './api/payments-setup-api';
42
46
  export * from './api/products-api';