@emilgroup/public-api-sdk-node 1.31.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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/api/named-ranges-api.ts +20 -6
- package/api/product-versions-api.ts +284 -0
- package/api.ts +2 -0
- package/base.ts +7 -15
- package/dist/api/named-ranges-api.d.ts +12 -3
- package/dist/api/named-ranges-api.js +12 -6
- package/dist/api/product-versions-api.d.ts +161 -0
- package/dist/api/product-versions-api.js +327 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -3
- package/dist/base.js +20 -26
- package/dist/models/booking-funnel-class.d.ts +6 -0
- package/dist/models/card-details-dto.d.ts +42 -0
- package/dist/models/card-details-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +80 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-adyen-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
- package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
- package/dist/models/partner-role-class.d.ts +6 -0
- package/dist/models/payment-method-class.d.ts +30 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +1 -1
- package/models/booking-funnel-class.ts +6 -0
- package/models/card-details-dto.ts +48 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +86 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
- package/models/index.ts +5 -0
- package/models/initiate-adyen-payment-setup-request-dto.ts +36 -0
- package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
- package/models/initiate-payment-setup-request-dto.ts +7 -0
- package/models/initiate-payment-setup-response-class.ts +7 -0
- package/models/link-lead-partner-request-dto.ts +16 -4
- package/models/partner-role-class.ts +6 -0
- package/models/payment-method-class.ts +30 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/update-lead-request-dto.ts +1 -1
- package/package.json +1 -1
|
@@ -102,6 +102,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
* @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.
|
|
103
103
|
* @param {string} name Name of Named Range.
|
|
104
104
|
* @param {string} [authorization] Bearer Token
|
|
105
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
105
106
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
106
107
|
* @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.
|
|
107
108
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -110,7 +111,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
|
|
|
110
111
|
* @param {*} [options] Override http request option.
|
|
111
112
|
* @throws {RequiredError}
|
|
112
113
|
*/
|
|
113
|
-
filterNamedRange: function (productSlug, name, authorization, pageSize, pageToken, filters, search, order, options) {
|
|
114
|
+
filterNamedRange: function (productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options) {
|
|
114
115
|
if (options === void 0) { options = {}; }
|
|
115
116
|
return __awaiter(_this, void 0, void 0, function () {
|
|
116
117
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -140,6 +141,9 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
|
|
|
140
141
|
if (productSlug !== undefined) {
|
|
141
142
|
localVarQueryParameter['productSlug'] = productSlug;
|
|
142
143
|
}
|
|
144
|
+
if (productVersionId !== undefined) {
|
|
145
|
+
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
146
|
+
}
|
|
143
147
|
if (name !== undefined) {
|
|
144
148
|
localVarQueryParameter['name'] = name;
|
|
145
149
|
}
|
|
@@ -188,6 +192,7 @@ var NamedRangesApiFp = function (configuration) {
|
|
|
188
192
|
* @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.
|
|
189
193
|
* @param {string} name Name of Named Range.
|
|
190
194
|
* @param {string} [authorization] Bearer Token
|
|
195
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
191
196
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
192
197
|
* @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.
|
|
193
198
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -196,12 +201,12 @@ var NamedRangesApiFp = function (configuration) {
|
|
|
196
201
|
* @param {*} [options] Override http request option.
|
|
197
202
|
* @throws {RequiredError}
|
|
198
203
|
*/
|
|
199
|
-
filterNamedRange: function (productSlug, name, authorization, pageSize, pageToken, filters, search, order, options) {
|
|
204
|
+
filterNamedRange: function (productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options) {
|
|
200
205
|
return __awaiter(this, void 0, void 0, function () {
|
|
201
206
|
var localVarAxiosArgs;
|
|
202
207
|
return __generator(this, function (_a) {
|
|
203
208
|
switch (_a.label) {
|
|
204
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.filterNamedRange(productSlug, name, authorization, pageSize, pageToken, filters, search, order, options)];
|
|
209
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.filterNamedRange(productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options)];
|
|
205
210
|
case 1:
|
|
206
211
|
localVarAxiosArgs = _a.sent();
|
|
207
212
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -225,6 +230,7 @@ var NamedRangesApiFactory = function (configuration, basePath, axios) {
|
|
|
225
230
|
* @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.
|
|
226
231
|
* @param {string} name Name of Named Range.
|
|
227
232
|
* @param {string} [authorization] Bearer Token
|
|
233
|
+
* @param {number} [productVersionId] The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
228
234
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
229
235
|
* @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.
|
|
230
236
|
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -233,8 +239,8 @@ var NamedRangesApiFactory = function (configuration, basePath, axios) {
|
|
|
233
239
|
* @param {*} [options] Override http request option.
|
|
234
240
|
* @throws {RequiredError}
|
|
235
241
|
*/
|
|
236
|
-
filterNamedRange: function (productSlug, name, authorization, pageSize, pageToken, filters, search, order, options) {
|
|
237
|
-
return localVarFp.filterNamedRange(productSlug, name, authorization, pageSize, pageToken, filters, search, order, options).then(function (request) { return request(axios, basePath); });
|
|
242
|
+
filterNamedRange: function (productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options) {
|
|
243
|
+
return localVarFp.filterNamedRange(productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options).then(function (request) { return request(axios, basePath); });
|
|
238
244
|
},
|
|
239
245
|
};
|
|
240
246
|
};
|
|
@@ -260,7 +266,7 @@ var NamedRangesApi = /** @class */ (function (_super) {
|
|
|
260
266
|
*/
|
|
261
267
|
NamedRangesApi.prototype.filterNamedRange = function (requestParameters, options) {
|
|
262
268
|
var _this = this;
|
|
263
|
-
return (0, exports.NamedRangesApiFp)(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
269
|
+
return (0, exports.NamedRangesApiFp)(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.productVersionId, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
264
270
|
};
|
|
265
271
|
return NamedRangesApi;
|
|
266
272
|
}(base_1.BaseAPI));
|
|
@@ -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
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);
|
package/dist/base.d.ts
CHANGED
|
@@ -53,16 +53,14 @@ export declare class BaseAPI {
|
|
|
53
53
|
protected configuration: Configuration;
|
|
54
54
|
private username?;
|
|
55
55
|
private password?;
|
|
56
|
-
private permissions?;
|
|
57
56
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
58
57
|
initialize(env?: Environment): Promise<void>;
|
|
59
58
|
private loadCredentials;
|
|
60
59
|
private readConfigFile;
|
|
61
60
|
private readEnvVariables;
|
|
62
61
|
selectEnvironment(env: Environment): void;
|
|
63
|
-
getPermissions(): Array<string>;
|
|
64
62
|
authorize(username: string, password: string): Promise<void>;
|
|
65
|
-
refreshTokenInternal(): Promise<
|
|
63
|
+
refreshTokenInternal(): Promise<string>;
|
|
66
64
|
private extractRefreshToken;
|
|
67
65
|
getConfiguration(): Configuration;
|
|
68
66
|
private attachInterceptor;
|