@emilgroup/public-api-sdk-node 1.32.0 → 1.33.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.
@@ -0,0 +1,161 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { InsuredObjectClass } from '../models';
16
+ import { ProductFactorForVersionClass } from '../models';
17
+ /**
18
+ * ProductVersionsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * 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.
24
+ * @summary List insured objects
25
+ * @param {number} productVersionId
26
+ * @param {string} [authorization] Bearer Token
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ getInsuredObjectsPerVersion: (productVersionId: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * 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.
33
+ * @summary List product factors
34
+ * @param {number} productVersionId
35
+ * @param {string} allValues
36
+ * @param {string} [authorization] Bearer Token
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ getProductFactorsPerVersion: (productVersionId: number, allValues: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ };
42
+ /**
43
+ * ProductVersionsApi - functional programming interface
44
+ * @export
45
+ */
46
+ export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
47
+ /**
48
+ * 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.
49
+ * @summary List insured objects
50
+ * @param {number} productVersionId
51
+ * @param {string} [authorization] Bearer Token
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ getInsuredObjectsPerVersion(productVersionId: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>>;
56
+ /**
57
+ * 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.
58
+ * @summary List product factors
59
+ * @param {number} productVersionId
60
+ * @param {string} allValues
61
+ * @param {string} [authorization] Bearer Token
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ getProductFactorsPerVersion(productVersionId: number, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>>;
66
+ };
67
+ /**
68
+ * ProductVersionsApi - factory interface
69
+ * @export
70
+ */
71
+ export declare const ProductVersionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
72
+ /**
73
+ * 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.
74
+ * @summary List insured objects
75
+ * @param {number} productVersionId
76
+ * @param {string} [authorization] Bearer Token
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ getInsuredObjectsPerVersion(productVersionId: number, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>>;
81
+ /**
82
+ * 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.
83
+ * @summary List product factors
84
+ * @param {number} productVersionId
85
+ * @param {string} allValues
86
+ * @param {string} [authorization] Bearer Token
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ getProductFactorsPerVersion(productVersionId: number, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>>;
91
+ };
92
+ /**
93
+ * Request parameters for getInsuredObjectsPerVersion operation in ProductVersionsApi.
94
+ * @export
95
+ * @interface ProductVersionsApiGetInsuredObjectsPerVersionRequest
96
+ */
97
+ export interface ProductVersionsApiGetInsuredObjectsPerVersionRequest {
98
+ /**
99
+ *
100
+ * @type {number}
101
+ * @memberof ProductVersionsApiGetInsuredObjectsPerVersion
102
+ */
103
+ readonly productVersionId: number;
104
+ /**
105
+ * Bearer Token
106
+ * @type {string}
107
+ * @memberof ProductVersionsApiGetInsuredObjectsPerVersion
108
+ */
109
+ readonly authorization?: string;
110
+ }
111
+ /**
112
+ * Request parameters for getProductFactorsPerVersion operation in ProductVersionsApi.
113
+ * @export
114
+ * @interface ProductVersionsApiGetProductFactorsPerVersionRequest
115
+ */
116
+ export interface ProductVersionsApiGetProductFactorsPerVersionRequest {
117
+ /**
118
+ *
119
+ * @type {number}
120
+ * @memberof ProductVersionsApiGetProductFactorsPerVersion
121
+ */
122
+ readonly productVersionId: number;
123
+ /**
124
+ *
125
+ * @type {string}
126
+ * @memberof ProductVersionsApiGetProductFactorsPerVersion
127
+ */
128
+ readonly allValues: string;
129
+ /**
130
+ * Bearer Token
131
+ * @type {string}
132
+ * @memberof ProductVersionsApiGetProductFactorsPerVersion
133
+ */
134
+ readonly authorization?: string;
135
+ }
136
+ /**
137
+ * ProductVersionsApi - object-oriented interface
138
+ * @export
139
+ * @class ProductVersionsApi
140
+ * @extends {BaseAPI}
141
+ */
142
+ export declare class ProductVersionsApi extends BaseAPI {
143
+ /**
144
+ * 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.
145
+ * @summary List insured objects
146
+ * @param {ProductVersionsApiGetInsuredObjectsPerVersionRequest} requestParameters Request parameters.
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ * @memberof ProductVersionsApi
150
+ */
151
+ getInsuredObjectsPerVersion(requestParameters: ProductVersionsApiGetInsuredObjectsPerVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InsuredObjectClass[], any>>;
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 {ProductVersionsApiGetProductFactorsPerVersionRequest} requestParameters Request parameters.
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ * @memberof ProductVersionsApi
159
+ */
160
+ getProductFactorsPerVersion(requestParameters: ProductVersionsApiGetProductFactorsPerVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductFactorForVersionClass[], any>>;
161
+ }
@@ -0,0 +1,327 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.ProductVersionsApi = exports.ProductVersionsApiFactory = exports.ProductVersionsApiFp = exports.ProductVersionsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * ProductVersionsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ProductVersionsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * 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.
101
+ * @summary List insured objects
102
+ * @param {number} productVersionId
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ getInsuredObjectsPerVersion: function (productVersionId, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'productVersionId' is not null or undefined
115
+ (0, common_1.assertParamExists)('getInsuredObjectsPerVersion', 'productVersionId', productVersionId);
116
+ localVarPath = "/publicapi/v1/product_versions/{product_version_id}/insured-objects"
117
+ .replace("{".concat("product_version_id", "}"), encodeURIComponent(String(productVersionId)));
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
129
+ case 1:
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ _a.sent();
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ }
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ /**
148
+ * 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.
149
+ * @summary List product factors
150
+ * @param {number} productVersionId
151
+ * @param {string} allValues
152
+ * @param {string} [authorization] Bearer Token
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ getProductFactorsPerVersion: function (productVersionId, allValues, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'productVersionId' is not null or undefined
164
+ (0, common_1.assertParamExists)('getProductFactorsPerVersion', 'productVersionId', productVersionId);
165
+ // verify required parameter 'allValues' is not null or undefined
166
+ (0, common_1.assertParamExists)('getProductFactorsPerVersion', 'allValues', allValues);
167
+ localVarPath = "/publicapi/v1/product_versions/{product_version_id}/product-factors"
168
+ .replace("{".concat("product_version_id", "}"), encodeURIComponent(String(productVersionId)));
169
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ baseAccessToken = configuration.accessToken;
173
+ }
174
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
175
+ localVarHeaderParameter = {};
176
+ localVarQueryParameter = {};
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ case 1:
181
+ // authentication bearer required
182
+ // http bearer authentication required
183
+ _a.sent();
184
+ if (allValues !== undefined) {
185
+ localVarQueryParameter['all_values'] = allValues;
186
+ }
187
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
188
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
189
+ }
190
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
191
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ };
202
+ };
203
+ exports.ProductVersionsApiAxiosParamCreator = ProductVersionsApiAxiosParamCreator;
204
+ /**
205
+ * ProductVersionsApi - functional programming interface
206
+ * @export
207
+ */
208
+ var ProductVersionsApiFp = function (configuration) {
209
+ var localVarAxiosParamCreator = (0, exports.ProductVersionsApiAxiosParamCreator)(configuration);
210
+ return {
211
+ /**
212
+ * 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.
213
+ * @summary List insured objects
214
+ * @param {number} productVersionId
215
+ * @param {string} [authorization] Bearer Token
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ getInsuredObjectsPerVersion: function (productVersionId, authorization, options) {
220
+ return __awaiter(this, void 0, void 0, function () {
221
+ var localVarAxiosArgs;
222
+ return __generator(this, function (_a) {
223
+ switch (_a.label) {
224
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjectsPerVersion(productVersionId, authorization, options)];
225
+ case 1:
226
+ localVarAxiosArgs = _a.sent();
227
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
228
+ }
229
+ });
230
+ });
231
+ },
232
+ /**
233
+ * 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.
234
+ * @summary List product factors
235
+ * @param {number} productVersionId
236
+ * @param {string} allValues
237
+ * @param {string} [authorization] Bearer Token
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ getProductFactorsPerVersion: function (productVersionId, allValues, authorization, options) {
242
+ return __awaiter(this, void 0, void 0, function () {
243
+ var localVarAxiosArgs;
244
+ return __generator(this, function (_a) {
245
+ switch (_a.label) {
246
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactorsPerVersion(productVersionId, allValues, authorization, options)];
247
+ case 1:
248
+ localVarAxiosArgs = _a.sent();
249
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
250
+ }
251
+ });
252
+ });
253
+ },
254
+ };
255
+ };
256
+ exports.ProductVersionsApiFp = ProductVersionsApiFp;
257
+ /**
258
+ * ProductVersionsApi - factory interface
259
+ * @export
260
+ */
261
+ var ProductVersionsApiFactory = function (configuration, basePath, axios) {
262
+ var localVarFp = (0, exports.ProductVersionsApiFp)(configuration);
263
+ return {
264
+ /**
265
+ * 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.
266
+ * @summary List insured objects
267
+ * @param {number} productVersionId
268
+ * @param {string} [authorization] Bearer Token
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ getInsuredObjectsPerVersion: function (productVersionId, authorization, options) {
273
+ return localVarFp.getInsuredObjectsPerVersion(productVersionId, authorization, options).then(function (request) { return request(axios, basePath); });
274
+ },
275
+ /**
276
+ * 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.
277
+ * @summary List product factors
278
+ * @param {number} productVersionId
279
+ * @param {string} allValues
280
+ * @param {string} [authorization] Bearer Token
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ getProductFactorsPerVersion: function (productVersionId, allValues, authorization, options) {
285
+ return localVarFp.getProductFactorsPerVersion(productVersionId, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
286
+ },
287
+ };
288
+ };
289
+ exports.ProductVersionsApiFactory = ProductVersionsApiFactory;
290
+ /**
291
+ * ProductVersionsApi - object-oriented interface
292
+ * @export
293
+ * @class ProductVersionsApi
294
+ * @extends {BaseAPI}
295
+ */
296
+ var ProductVersionsApi = /** @class */ (function (_super) {
297
+ __extends(ProductVersionsApi, _super);
298
+ function ProductVersionsApi() {
299
+ return _super !== null && _super.apply(this, arguments) || this;
300
+ }
301
+ /**
302
+ * 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.
303
+ * @summary List insured objects
304
+ * @param {ProductVersionsApiGetInsuredObjectsPerVersionRequest} requestParameters Request parameters.
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ * @memberof ProductVersionsApi
308
+ */
309
+ ProductVersionsApi.prototype.getInsuredObjectsPerVersion = function (requestParameters, options) {
310
+ var _this = this;
311
+ return (0, exports.ProductVersionsApiFp)(this.configuration).getInsuredObjectsPerVersion(requestParameters.productVersionId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
312
+ };
313
+ /**
314
+ * 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.
315
+ * @summary List product factors
316
+ * @param {ProductVersionsApiGetProductFactorsPerVersionRequest} requestParameters Request parameters.
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ * @memberof ProductVersionsApi
320
+ */
321
+ ProductVersionsApi.prototype.getProductFactorsPerVersion = function (requestParameters, options) {
322
+ var _this = this;
323
+ return (0, exports.ProductVersionsApiFp)(this.configuration).getProductFactorsPerVersion(requestParameters.productVersionId, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
324
+ };
325
+ return ProductVersionsApi;
326
+ }(base_1.BaseAPI));
327
+ exports.ProductVersionsApi = ProductVersionsApi;
package/dist/api.d.ts CHANGED
@@ -17,4 +17,5 @@ export * from './api/leads-api';
17
17
  export * from './api/named-ranges-api';
18
18
  export * from './api/notifications-api';
19
19
  export * from './api/payments-setup-api';
20
+ export * from './api/product-versions-api';
20
21
  export * from './api/products-api';
package/dist/api.js CHANGED
@@ -35,4 +35,5 @@ __exportStar(require("./api/leads-api"), exports);
35
35
  __exportStar(require("./api/named-ranges-api"), exports);
36
36
  __exportStar(require("./api/notifications-api"), exports);
37
37
  __exportStar(require("./api/payments-setup-api"), exports);
38
+ __exportStar(require("./api/product-versions-api"), exports);
38
39
  __exportStar(require("./api/products-api"), exports);
@@ -69,6 +69,12 @@ export interface BookingFunnelClass {
69
69
  * @memberof BookingFunnelClass
70
70
  */
71
71
  'productSlug': string;
72
+ /**
73
+ * Product Version ID.
74
+ * @type {number}
75
+ * @memberof BookingFunnelClass
76
+ */
77
+ 'productVersionId': number;
72
78
  /**
73
79
  * Booking Funnel version.
74
80
  * @type {number}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { SepaDirectDto } from './sepa-direct-dto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -57,4 +58,22 @@ export interface CompleteStripePaymentSetupRequestDto {
57
58
  * @memberof CompleteStripePaymentSetupRequestDto
58
59
  */
59
60
  'leadCode'?: string;
61
+ /**
62
+ * The account\'s type.
63
+ * @type {string}
64
+ * @memberof CompleteStripePaymentSetupRequestDto
65
+ */
66
+ 'accountType'?: string;
67
+ /**
68
+ * The account\'s company name.
69
+ * @type {string}
70
+ * @memberof CompleteStripePaymentSetupRequestDto
71
+ */
72
+ 'companyName'?: string;
73
+ /**
74
+ * SEPA direct details
75
+ * @type {SepaDirectDto}
76
+ * @memberof CompleteStripePaymentSetupRequestDto
77
+ */
78
+ 'sepaDetails'?: SepaDirectDto;
60
79
  }
@@ -20,13 +20,25 @@ export interface LinkLeadPartnerRequestDto {
20
20
  * @type {string}
21
21
  * @memberof LinkLeadPartnerRequestDto
22
22
  */
23
- 'partnerCode': string;
23
+ 'partnerCode'?: string;
24
+ /**
25
+ * The number of the partner with which the lead will be linked. Either this field or \'partnerCode\' must be passed (this is preferred).
26
+ * @type {string}
27
+ * @memberof LinkLeadPartnerRequestDto
28
+ */
29
+ 'partnerNumber'?: string;
24
30
  /**
25
31
  * The code of role that the partner will have in the established link between the lead and the partner. Either this field or \'partnerRoleSlug\' must be passed (\'partnerRoleSlug\' is preferred).
26
32
  * @type {string}
27
33
  * @memberof LinkLeadPartnerRequestDto
28
34
  */
29
- 'partnerRoleCode': string;
35
+ 'partnerRoleCode'?: string;
36
+ /**
37
+ * The slug of role that the partner will have in the established link between the lead and the partner. Either this field or \'partnerRoleCode\' must be passed (this is preferred).
38
+ * @type {string}
39
+ * @memberof LinkLeadPartnerRequestDto
40
+ */
41
+ 'partnerRoleSlug'?: string;
30
42
  /**
31
43
  * The date of the start of linking with a partner.
32
44
  * @type {string}
@@ -33,6 +33,12 @@ export interface PartnerRoleClass {
33
33
  * @memberof PartnerRoleClass
34
34
  */
35
35
  'name': string;
36
+ /**
37
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
38
+ * @type {string}
39
+ * @memberof PartnerRoleClass
40
+ */
41
+ 'slug': string;
36
42
  /**
37
43
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
38
44
  * @type {string}
@@ -81,4 +81,10 @@ export interface PaymentMethodClass {
81
81
  * @memberof PaymentMethodClass
82
82
  */
83
83
  'metadata'?: object;
84
+ /**
85
+ * Payment data details. Stored only for some payment method types.
86
+ * @type {object}
87
+ * @memberof PaymentMethodClass
88
+ */
89
+ 'details'?: object;
84
90
  }
@@ -94,7 +94,7 @@ export interface UpdateLeadRequestDto {
94
94
  */
95
95
  'validate'?: boolean;
96
96
  /**
97
- *
97
+ * Optional partner object contains necessary information to link a partner to the policy. The partner content will be validated if the \'validate\' flag is set to true.
98
98
  * @type {LinkLeadPartnerRequestDto}
99
99
  * @memberof UpdateLeadRequestDto
100
100
  */
@@ -74,6 +74,12 @@ export interface BookingFunnelClass {
74
74
  * @memberof BookingFunnelClass
75
75
  */
76
76
  'productSlug': string;
77
+ /**
78
+ * Product Version ID.
79
+ * @type {number}
80
+ * @memberof BookingFunnelClass
81
+ */
82
+ 'productVersionId': number;
77
83
  /**
78
84
  * Booking Funnel version.
79
85
  * @type {number}
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { SepaDirectDto } from './sepa-direct-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -62,5 +63,23 @@ export interface CompleteStripePaymentSetupRequestDto {
62
63
  * @memberof CompleteStripePaymentSetupRequestDto
63
64
  */
64
65
  'leadCode'?: string;
66
+ /**
67
+ * The account\'s type.
68
+ * @type {string}
69
+ * @memberof CompleteStripePaymentSetupRequestDto
70
+ */
71
+ 'accountType'?: string;
72
+ /**
73
+ * The account\'s company name.
74
+ * @type {string}
75
+ * @memberof CompleteStripePaymentSetupRequestDto
76
+ */
77
+ 'companyName'?: string;
78
+ /**
79
+ * SEPA direct details
80
+ * @type {SepaDirectDto}
81
+ * @memberof CompleteStripePaymentSetupRequestDto
82
+ */
83
+ 'sepaDetails'?: SepaDirectDto;
65
84
  }
66
85