@emilgroup/public-api-sdk-node 1.0.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 +30 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/documents-api.ts +424 -0
- package/api/payment-setup-api.ts +260 -0
- package/api/products-api.ts +958 -0
- package/api.ts +36 -0
- package/base.ts +247 -0
- package/common.ts +198 -0
- package/configuration.ts +101 -0
- package/dist/api/documents-api.d.ts +239 -0
- package/dist/api/documents-api.js +427 -0
- package/dist/api/payment-setup-api.d.ts +144 -0
- package/dist/api/payment-setup-api.js +309 -0
- package/dist/api/products-api.d.ts +511 -0
- package/dist/api/products-api.js +935 -0
- package/dist/api.d.ts +18 -0
- package/dist/api.js +38 -0
- package/dist/base.d.ts +72 -0
- package/dist/base.js +293 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +54 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +90 -0
- package/dist/models/create-account-request-dto.js +21 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-custom-application-request-dto.d.ts +34 -0
- package/dist/models/create-custom-application-request-dto.js +19 -0
- package/dist/models/create-document-request-dto.d.ts +95 -0
- package/dist/models/create-document-request-dto.js +31 -0
- package/dist/models/create-estimated-invoice-request-dto.d.ts +41 -0
- package/dist/models/create-estimated-invoice-request-dto.js +19 -0
- package/dist/models/create-lead-request-dto.d.ts +77 -0
- package/dist/models/create-lead-request-dto.js +22 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +30 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +32 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +24 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/policy-object-request-dto.d.ts +30 -0
- package/dist/models/policy-object-request-dto.js +15 -0
- package/dist/models/uploaded-document-dto.d.ts +24 -0
- package/dist/models/uploaded-document-dto.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +38 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +60 -0
- package/models/create-account-request-dto.ts +99 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/create-custom-application-request-dto.ts +43 -0
- package/models/create-document-request-dto.ts +105 -0
- package/models/create-estimated-invoice-request-dto.ts +50 -0
- package/models/create-lead-request-dto.ts +86 -0
- package/models/index.ts +14 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +30 -0
- package/models/policy-object-request-dto.ts +36 -0
- package/models/uploaded-document-dto.ts +30 -0
- package/package.json +27 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,935 @@
|
|
|
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
|
+
*
|
|
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 (_) 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.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = 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
|
+
/**
|
|
89
|
+
* ProductsApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var ProductsApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @param {string} productCode
|
|
98
|
+
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createEstimatedInvoice', 'productCode', productCode);
|
|
112
|
+
// verify required parameter 'createEstimatedInvoiceRequestDto' is not null or undefined
|
|
113
|
+
(0, common_1.assertParamExists)('createEstimatedInvoice', 'createEstimatedInvoiceRequestDto', createEstimatedInvoiceRequestDto);
|
|
114
|
+
localVarPath = "/publicapi/v1/products/{product_code}/product-invoice"
|
|
115
|
+
.replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
|
|
116
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
baseAccessToken = configuration.accessToken;
|
|
120
|
+
}
|
|
121
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
122
|
+
localVarHeaderParameter = {};
|
|
123
|
+
localVarQueryParameter = {};
|
|
124
|
+
// authentication bearer required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
127
|
+
case 1:
|
|
128
|
+
// authentication bearer required
|
|
129
|
+
// http bearer authentication required
|
|
130
|
+
_a.sent();
|
|
131
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
132
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
|
+
}
|
|
134
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEstimatedInvoiceRequestDto, localVarRequestOptions, configuration);
|
|
139
|
+
return [2 /*return*/, {
|
|
140
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
+
options: localVarRequestOptions,
|
|
142
|
+
}];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
150
|
+
* @param {string} [authorization] Bearer Token
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
createLead: function (createLeadRequestDto, authorization, options) {
|
|
155
|
+
if (options === void 0) { options = {}; }
|
|
156
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
157
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0:
|
|
161
|
+
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
162
|
+
(0, common_1.assertParamExists)('createLead', 'createLeadRequestDto', createLeadRequestDto);
|
|
163
|
+
localVarPath = "/publicapi/v1/leads";
|
|
164
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
165
|
+
if (configuration) {
|
|
166
|
+
baseOptions = configuration.baseOptions;
|
|
167
|
+
baseAccessToken = configuration.accessToken;
|
|
168
|
+
}
|
|
169
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
170
|
+
localVarHeaderParameter = {};
|
|
171
|
+
localVarQueryParameter = {};
|
|
172
|
+
// authentication bearer required
|
|
173
|
+
// http bearer authentication required
|
|
174
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
175
|
+
case 1:
|
|
176
|
+
// authentication bearer required
|
|
177
|
+
// http bearer authentication required
|
|
178
|
+
_a.sent();
|
|
179
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
180
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
181
|
+
}
|
|
182
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createLeadRequestDto, localVarRequestOptions, configuration);
|
|
187
|
+
return [2 /*return*/, {
|
|
188
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
|
+
options: localVarRequestOptions,
|
|
190
|
+
}];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @param {string} productCode
|
|
198
|
+
* @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
|
|
199
|
+
* @param {string} [authorization] Bearer Token
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
|
|
204
|
+
if (options === void 0) { options = {}; }
|
|
205
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
206
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
207
|
+
return __generator(this, function (_a) {
|
|
208
|
+
switch (_a.label) {
|
|
209
|
+
case 0:
|
|
210
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
211
|
+
(0, common_1.assertParamExists)('customApplication', 'productCode', productCode);
|
|
212
|
+
// verify required parameter 'createCustomApplicationRequestDto' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('customApplication', 'createCustomApplicationRequestDto', createCustomApplicationRequestDto);
|
|
214
|
+
localVarPath = "/publicapi/v1/products/{product_code}/custom-application"
|
|
215
|
+
.replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
|
|
216
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
+
if (configuration) {
|
|
218
|
+
baseOptions = configuration.baseOptions;
|
|
219
|
+
baseAccessToken = configuration.accessToken;
|
|
220
|
+
}
|
|
221
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
222
|
+
localVarHeaderParameter = {};
|
|
223
|
+
localVarQueryParameter = {};
|
|
224
|
+
// authentication bearer required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
227
|
+
case 1:
|
|
228
|
+
// authentication bearer required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
_a.sent();
|
|
231
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
|
+
}
|
|
234
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
235
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
238
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomApplicationRequestDto, localVarRequestOptions, configuration);
|
|
239
|
+
return [2 /*return*/, {
|
|
240
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
241
|
+
options: localVarRequestOptions,
|
|
242
|
+
}];
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
},
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @param {string} [authorization] Bearer Token
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
getInsuredObjectTypes: function (authorization, options) {
|
|
254
|
+
if (options === void 0) { options = {}; }
|
|
255
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
256
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
257
|
+
return __generator(this, function (_a) {
|
|
258
|
+
switch (_a.label) {
|
|
259
|
+
case 0:
|
|
260
|
+
localVarPath = "/publicapi/v1/products/{product_code}/insured-object-types";
|
|
261
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
baseAccessToken = configuration.accessToken;
|
|
265
|
+
}
|
|
266
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
267
|
+
localVarHeaderParameter = {};
|
|
268
|
+
localVarQueryParameter = {};
|
|
269
|
+
// authentication bearer required
|
|
270
|
+
// http bearer authentication required
|
|
271
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
272
|
+
case 1:
|
|
273
|
+
// authentication bearer required
|
|
274
|
+
// http bearer authentication required
|
|
275
|
+
_a.sent();
|
|
276
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
277
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
278
|
+
}
|
|
279
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
280
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
281
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
282
|
+
return [2 /*return*/, {
|
|
283
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
284
|
+
options: localVarRequestOptions,
|
|
285
|
+
}];
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @param {string} productCode
|
|
293
|
+
* @param {string} [authorization] Bearer Token
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
getInsuredObjects: function (productCode, authorization, options) {
|
|
298
|
+
if (options === void 0) { options = {}; }
|
|
299
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
300
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
301
|
+
return __generator(this, function (_a) {
|
|
302
|
+
switch (_a.label) {
|
|
303
|
+
case 0:
|
|
304
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
305
|
+
(0, common_1.assertParamExists)('getInsuredObjects', 'productCode', productCode);
|
|
306
|
+
localVarPath = "/publicapi/v1/products/{product_code}/insured-objects"
|
|
307
|
+
.replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
|
|
308
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
309
|
+
if (configuration) {
|
|
310
|
+
baseOptions = configuration.baseOptions;
|
|
311
|
+
baseAccessToken = configuration.accessToken;
|
|
312
|
+
}
|
|
313
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
314
|
+
localVarHeaderParameter = {};
|
|
315
|
+
localVarQueryParameter = {};
|
|
316
|
+
// authentication bearer required
|
|
317
|
+
// http bearer authentication required
|
|
318
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
319
|
+
case 1:
|
|
320
|
+
// authentication bearer required
|
|
321
|
+
// http bearer authentication required
|
|
322
|
+
_a.sent();
|
|
323
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
324
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
325
|
+
}
|
|
326
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
327
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
328
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
329
|
+
return [2 /*return*/, {
|
|
330
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
331
|
+
options: localVarRequestOptions,
|
|
332
|
+
}];
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
},
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @param {string} productCode
|
|
340
|
+
* @param {string} [authorization] Bearer Token
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
getProductCustomCss: function (productCode, authorization, options) {
|
|
345
|
+
if (options === void 0) { options = {}; }
|
|
346
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
347
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
348
|
+
return __generator(this, function (_a) {
|
|
349
|
+
switch (_a.label) {
|
|
350
|
+
case 0:
|
|
351
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
352
|
+
(0, common_1.assertParamExists)('getProductCustomCss', 'productCode', productCode);
|
|
353
|
+
localVarPath = "/publicapi/v1/products/{product_code}/custom-css"
|
|
354
|
+
.replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
|
|
355
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
356
|
+
if (configuration) {
|
|
357
|
+
baseOptions = configuration.baseOptions;
|
|
358
|
+
baseAccessToken = configuration.accessToken;
|
|
359
|
+
}
|
|
360
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
361
|
+
localVarHeaderParameter = {};
|
|
362
|
+
localVarQueryParameter = {};
|
|
363
|
+
// authentication bearer required
|
|
364
|
+
// http bearer authentication required
|
|
365
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
366
|
+
case 1:
|
|
367
|
+
// authentication bearer required
|
|
368
|
+
// http bearer authentication required
|
|
369
|
+
_a.sent();
|
|
370
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
371
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
372
|
+
}
|
|
373
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
374
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
376
|
+
return [2 /*return*/, {
|
|
377
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
378
|
+
options: localVarRequestOptions,
|
|
379
|
+
}];
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
});
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @param {string} productCode
|
|
387
|
+
* @param {string} [authorization] Bearer Token
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
getProductFactors: function (productCode, authorization, options) {
|
|
392
|
+
if (options === void 0) { options = {}; }
|
|
393
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
394
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
395
|
+
return __generator(this, function (_a) {
|
|
396
|
+
switch (_a.label) {
|
|
397
|
+
case 0:
|
|
398
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
399
|
+
(0, common_1.assertParamExists)('getProductFactors', 'productCode', productCode);
|
|
400
|
+
localVarPath = "/publicapi/v1/products/{product_code}/product-factors"
|
|
401
|
+
.replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
|
|
402
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
403
|
+
if (configuration) {
|
|
404
|
+
baseOptions = configuration.baseOptions;
|
|
405
|
+
baseAccessToken = configuration.accessToken;
|
|
406
|
+
}
|
|
407
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
408
|
+
localVarHeaderParameter = {};
|
|
409
|
+
localVarQueryParameter = {};
|
|
410
|
+
// authentication bearer required
|
|
411
|
+
// http bearer authentication required
|
|
412
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
413
|
+
case 1:
|
|
414
|
+
// authentication bearer required
|
|
415
|
+
// http bearer authentication required
|
|
416
|
+
_a.sent();
|
|
417
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
418
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
419
|
+
}
|
|
420
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
421
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
422
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
423
|
+
return [2 /*return*/, {
|
|
424
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
425
|
+
options: localVarRequestOptions,
|
|
426
|
+
}];
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
},
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @param {string} [authorization] Bearer Token
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
initiateLead: function (authorization, options) {
|
|
438
|
+
if (options === void 0) { options = {}; }
|
|
439
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
440
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
441
|
+
return __generator(this, function (_a) {
|
|
442
|
+
switch (_a.label) {
|
|
443
|
+
case 0:
|
|
444
|
+
localVarPath = "/publicapi/v1/leads/initiate";
|
|
445
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
446
|
+
if (configuration) {
|
|
447
|
+
baseOptions = configuration.baseOptions;
|
|
448
|
+
baseAccessToken = configuration.accessToken;
|
|
449
|
+
}
|
|
450
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
451
|
+
localVarHeaderParameter = {};
|
|
452
|
+
localVarQueryParameter = {};
|
|
453
|
+
// authentication bearer required
|
|
454
|
+
// http bearer authentication required
|
|
455
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
456
|
+
case 1:
|
|
457
|
+
// authentication bearer required
|
|
458
|
+
// http bearer authentication required
|
|
459
|
+
_a.sent();
|
|
460
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
461
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
462
|
+
}
|
|
463
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
464
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
465
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
466
|
+
return [2 /*return*/, {
|
|
467
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
468
|
+
options: localVarRequestOptions,
|
|
469
|
+
}];
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @param {string} code
|
|
477
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
478
|
+
* @param {string} [authorization] Bearer Token
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
updateLead: function (code, createLeadRequestDto, authorization, options) {
|
|
483
|
+
if (options === void 0) { options = {}; }
|
|
484
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
485
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
486
|
+
return __generator(this, function (_a) {
|
|
487
|
+
switch (_a.label) {
|
|
488
|
+
case 0:
|
|
489
|
+
// verify required parameter 'code' is not null or undefined
|
|
490
|
+
(0, common_1.assertParamExists)('updateLead', 'code', code);
|
|
491
|
+
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
492
|
+
(0, common_1.assertParamExists)('updateLead', 'createLeadRequestDto', createLeadRequestDto);
|
|
493
|
+
localVarPath = "/publicapi/v1/leads/{code}"
|
|
494
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
495
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
496
|
+
if (configuration) {
|
|
497
|
+
baseOptions = configuration.baseOptions;
|
|
498
|
+
baseAccessToken = configuration.accessToken;
|
|
499
|
+
}
|
|
500
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
501
|
+
localVarHeaderParameter = {};
|
|
502
|
+
localVarQueryParameter = {};
|
|
503
|
+
// authentication bearer required
|
|
504
|
+
// http bearer authentication required
|
|
505
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
506
|
+
case 1:
|
|
507
|
+
// authentication bearer required
|
|
508
|
+
// http bearer authentication required
|
|
509
|
+
_a.sent();
|
|
510
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
511
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
512
|
+
}
|
|
513
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
514
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
515
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
516
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
517
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createLeadRequestDto, localVarRequestOptions, configuration);
|
|
518
|
+
return [2 /*return*/, {
|
|
519
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
520
|
+
options: localVarRequestOptions,
|
|
521
|
+
}];
|
|
522
|
+
}
|
|
523
|
+
});
|
|
524
|
+
});
|
|
525
|
+
},
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
|
|
529
|
+
/**
|
|
530
|
+
* ProductsApi - functional programming interface
|
|
531
|
+
* @export
|
|
532
|
+
*/
|
|
533
|
+
var ProductsApiFp = function (configuration) {
|
|
534
|
+
var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
|
|
535
|
+
return {
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @param {string} productCode
|
|
539
|
+
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
540
|
+
* @param {string} [authorization] Bearer Token
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
|
|
545
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
546
|
+
var localVarAxiosArgs;
|
|
547
|
+
return __generator(this, function (_a) {
|
|
548
|
+
switch (_a.label) {
|
|
549
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options)];
|
|
550
|
+
case 1:
|
|
551
|
+
localVarAxiosArgs = _a.sent();
|
|
552
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
},
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
560
|
+
* @param {string} [authorization] Bearer Token
|
|
561
|
+
* @param {*} [options] Override http request option.
|
|
562
|
+
* @throws {RequiredError}
|
|
563
|
+
*/
|
|
564
|
+
createLead: function (createLeadRequestDto, authorization, options) {
|
|
565
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
566
|
+
var localVarAxiosArgs;
|
|
567
|
+
return __generator(this, function (_a) {
|
|
568
|
+
switch (_a.label) {
|
|
569
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createLead(createLeadRequestDto, authorization, options)];
|
|
570
|
+
case 1:
|
|
571
|
+
localVarAxiosArgs = _a.sent();
|
|
572
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
});
|
|
576
|
+
},
|
|
577
|
+
/**
|
|
578
|
+
*
|
|
579
|
+
* @param {string} productCode
|
|
580
|
+
* @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
|
|
581
|
+
* @param {string} [authorization] Bearer Token
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
|
|
586
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
587
|
+
var localVarAxiosArgs;
|
|
588
|
+
return __generator(this, function (_a) {
|
|
589
|
+
switch (_a.label) {
|
|
590
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.customApplication(productCode, createCustomApplicationRequestDto, authorization, options)];
|
|
591
|
+
case 1:
|
|
592
|
+
localVarAxiosArgs = _a.sent();
|
|
593
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
});
|
|
597
|
+
},
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @param {string} [authorization] Bearer Token
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
*/
|
|
604
|
+
getInsuredObjectTypes: function (authorization, options) {
|
|
605
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
606
|
+
var localVarAxiosArgs;
|
|
607
|
+
return __generator(this, function (_a) {
|
|
608
|
+
switch (_a.label) {
|
|
609
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjectTypes(authorization, options)];
|
|
610
|
+
case 1:
|
|
611
|
+
localVarAxiosArgs = _a.sent();
|
|
612
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
});
|
|
616
|
+
},
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @param {string} productCode
|
|
620
|
+
* @param {string} [authorization] Bearer Token
|
|
621
|
+
* @param {*} [options] Override http request option.
|
|
622
|
+
* @throws {RequiredError}
|
|
623
|
+
*/
|
|
624
|
+
getInsuredObjects: function (productCode, authorization, options) {
|
|
625
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
626
|
+
var localVarAxiosArgs;
|
|
627
|
+
return __generator(this, function (_a) {
|
|
628
|
+
switch (_a.label) {
|
|
629
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options)];
|
|
630
|
+
case 1:
|
|
631
|
+
localVarAxiosArgs = _a.sent();
|
|
632
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
});
|
|
636
|
+
},
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @param {string} productCode
|
|
640
|
+
* @param {string} [authorization] Bearer Token
|
|
641
|
+
* @param {*} [options] Override http request option.
|
|
642
|
+
* @throws {RequiredError}
|
|
643
|
+
*/
|
|
644
|
+
getProductCustomCss: function (productCode, authorization, options) {
|
|
645
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
646
|
+
var localVarAxiosArgs;
|
|
647
|
+
return __generator(this, function (_a) {
|
|
648
|
+
switch (_a.label) {
|
|
649
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options)];
|
|
650
|
+
case 1:
|
|
651
|
+
localVarAxiosArgs = _a.sent();
|
|
652
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
});
|
|
656
|
+
},
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
* @param {string} productCode
|
|
660
|
+
* @param {string} [authorization] Bearer Token
|
|
661
|
+
* @param {*} [options] Override http request option.
|
|
662
|
+
* @throws {RequiredError}
|
|
663
|
+
*/
|
|
664
|
+
getProductFactors: function (productCode, authorization, options) {
|
|
665
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
666
|
+
var localVarAxiosArgs;
|
|
667
|
+
return __generator(this, function (_a) {
|
|
668
|
+
switch (_a.label) {
|
|
669
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, authorization, options)];
|
|
670
|
+
case 1:
|
|
671
|
+
localVarAxiosArgs = _a.sent();
|
|
672
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
});
|
|
676
|
+
},
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
* @param {string} [authorization] Bearer Token
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
initiateLead: function (authorization, options) {
|
|
684
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
685
|
+
var localVarAxiosArgs;
|
|
686
|
+
return __generator(this, function (_a) {
|
|
687
|
+
switch (_a.label) {
|
|
688
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(authorization, options)];
|
|
689
|
+
case 1:
|
|
690
|
+
localVarAxiosArgs = _a.sent();
|
|
691
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
});
|
|
695
|
+
},
|
|
696
|
+
/**
|
|
697
|
+
*
|
|
698
|
+
* @param {string} code
|
|
699
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
700
|
+
* @param {string} [authorization] Bearer Token
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
updateLead: function (code, createLeadRequestDto, authorization, options) {
|
|
705
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
706
|
+
var localVarAxiosArgs;
|
|
707
|
+
return __generator(this, function (_a) {
|
|
708
|
+
switch (_a.label) {
|
|
709
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(code, createLeadRequestDto, authorization, options)];
|
|
710
|
+
case 1:
|
|
711
|
+
localVarAxiosArgs = _a.sent();
|
|
712
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
});
|
|
716
|
+
},
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
exports.ProductsApiFp = ProductsApiFp;
|
|
720
|
+
/**
|
|
721
|
+
* ProductsApi - factory interface
|
|
722
|
+
* @export
|
|
723
|
+
*/
|
|
724
|
+
var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
725
|
+
var localVarFp = (0, exports.ProductsApiFp)(configuration);
|
|
726
|
+
return {
|
|
727
|
+
/**
|
|
728
|
+
*
|
|
729
|
+
* @param {string} productCode
|
|
730
|
+
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
731
|
+
* @param {string} [authorization] Bearer Token
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
|
|
736
|
+
return localVarFp.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
737
|
+
},
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
741
|
+
* @param {string} [authorization] Bearer Token
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
createLead: function (createLeadRequestDto, authorization, options) {
|
|
746
|
+
return localVarFp.createLead(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
747
|
+
},
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @param {string} productCode
|
|
751
|
+
* @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
|
|
752
|
+
* @param {string} [authorization] Bearer Token
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
*/
|
|
756
|
+
customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
|
|
757
|
+
return localVarFp.customApplication(productCode, createCustomApplicationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
758
|
+
},
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* @param {string} [authorization] Bearer Token
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
getInsuredObjectTypes: function (authorization, options) {
|
|
766
|
+
return localVarFp.getInsuredObjectTypes(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
767
|
+
},
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* @param {string} productCode
|
|
771
|
+
* @param {string} [authorization] Bearer Token
|
|
772
|
+
* @param {*} [options] Override http request option.
|
|
773
|
+
* @throws {RequiredError}
|
|
774
|
+
*/
|
|
775
|
+
getInsuredObjects: function (productCode, authorization, options) {
|
|
776
|
+
return localVarFp.getInsuredObjects(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
777
|
+
},
|
|
778
|
+
/**
|
|
779
|
+
*
|
|
780
|
+
* @param {string} productCode
|
|
781
|
+
* @param {string} [authorization] Bearer Token
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
*/
|
|
785
|
+
getProductCustomCss: function (productCode, authorization, options) {
|
|
786
|
+
return localVarFp.getProductCustomCss(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
787
|
+
},
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @param {string} productCode
|
|
791
|
+
* @param {string} [authorization] Bearer Token
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
getProductFactors: function (productCode, authorization, options) {
|
|
796
|
+
return localVarFp.getProductFactors(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
797
|
+
},
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
* @param {string} [authorization] Bearer Token
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
initiateLead: function (authorization, options) {
|
|
805
|
+
return localVarFp.initiateLead(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
806
|
+
},
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @param {string} code
|
|
810
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
811
|
+
* @param {string} [authorization] Bearer Token
|
|
812
|
+
* @param {*} [options] Override http request option.
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
*/
|
|
815
|
+
updateLead: function (code, createLeadRequestDto, authorization, options) {
|
|
816
|
+
return localVarFp.updateLead(code, createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
817
|
+
},
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
exports.ProductsApiFactory = ProductsApiFactory;
|
|
821
|
+
/**
|
|
822
|
+
* ProductsApi - object-oriented interface
|
|
823
|
+
* @export
|
|
824
|
+
* @class ProductsApi
|
|
825
|
+
* @extends {BaseAPI}
|
|
826
|
+
*/
|
|
827
|
+
var ProductsApi = /** @class */ (function (_super) {
|
|
828
|
+
__extends(ProductsApi, _super);
|
|
829
|
+
function ProductsApi() {
|
|
830
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
*
|
|
834
|
+
* @param {ProductsApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
* @memberof ProductsApi
|
|
838
|
+
*/
|
|
839
|
+
ProductsApi.prototype.createEstimatedInvoice = function (requestParameters, options) {
|
|
840
|
+
var _this = this;
|
|
841
|
+
return (0, exports.ProductsApiFp)(this.configuration).createEstimatedInvoice(requestParameters.productCode, requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @param {ProductsApiCreateLeadRequest} requestParameters Request parameters.
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
* @memberof ProductsApi
|
|
849
|
+
*/
|
|
850
|
+
ProductsApi.prototype.createLead = function (requestParameters, options) {
|
|
851
|
+
var _this = this;
|
|
852
|
+
return (0, exports.ProductsApiFp)(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
853
|
+
};
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @param {ProductsApiCustomApplicationRequest} requestParameters Request parameters.
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
* @memberof ProductsApi
|
|
860
|
+
*/
|
|
861
|
+
ProductsApi.prototype.customApplication = function (requestParameters, options) {
|
|
862
|
+
var _this = this;
|
|
863
|
+
return (0, exports.ProductsApiFp)(this.configuration).customApplication(requestParameters.productCode, requestParameters.createCustomApplicationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
864
|
+
};
|
|
865
|
+
/**
|
|
866
|
+
*
|
|
867
|
+
* @param {ProductsApiGetInsuredObjectTypesRequest} requestParameters Request parameters.
|
|
868
|
+
* @param {*} [options] Override http request option.
|
|
869
|
+
* @throws {RequiredError}
|
|
870
|
+
* @memberof ProductsApi
|
|
871
|
+
*/
|
|
872
|
+
ProductsApi.prototype.getInsuredObjectTypes = function (requestParameters, options) {
|
|
873
|
+
var _this = this;
|
|
874
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
875
|
+
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjectTypes(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
876
|
+
};
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @param {ProductsApiGetInsuredObjectsRequest} requestParameters Request parameters.
|
|
880
|
+
* @param {*} [options] Override http request option.
|
|
881
|
+
* @throws {RequiredError}
|
|
882
|
+
* @memberof ProductsApi
|
|
883
|
+
*/
|
|
884
|
+
ProductsApi.prototype.getInsuredObjects = function (requestParameters, options) {
|
|
885
|
+
var _this = this;
|
|
886
|
+
return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
*
|
|
890
|
+
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
* @memberof ProductsApi
|
|
894
|
+
*/
|
|
895
|
+
ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
|
|
896
|
+
var _this = this;
|
|
897
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
898
|
+
};
|
|
899
|
+
/**
|
|
900
|
+
*
|
|
901
|
+
* @param {ProductsApiGetProductFactorsRequest} requestParameters Request parameters.
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
* @memberof ProductsApi
|
|
905
|
+
*/
|
|
906
|
+
ProductsApi.prototype.getProductFactors = function (requestParameters, options) {
|
|
907
|
+
var _this = this;
|
|
908
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
909
|
+
};
|
|
910
|
+
/**
|
|
911
|
+
*
|
|
912
|
+
* @param {ProductsApiInitiateLeadRequest} requestParameters Request parameters.
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
* @memberof ProductsApi
|
|
916
|
+
*/
|
|
917
|
+
ProductsApi.prototype.initiateLead = function (requestParameters, options) {
|
|
918
|
+
var _this = this;
|
|
919
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
920
|
+
return (0, exports.ProductsApiFp)(this.configuration).initiateLead(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
*
|
|
924
|
+
* @param {ProductsApiUpdateLeadRequest} requestParameters Request parameters.
|
|
925
|
+
* @param {*} [options] Override http request option.
|
|
926
|
+
* @throws {RequiredError}
|
|
927
|
+
* @memberof ProductsApi
|
|
928
|
+
*/
|
|
929
|
+
ProductsApi.prototype.updateLead = function (requestParameters, options) {
|
|
930
|
+
var _this = this;
|
|
931
|
+
return (0, exports.ProductsApiFp)(this.configuration).updateLead(requestParameters.code, requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
932
|
+
};
|
|
933
|
+
return ProductsApi;
|
|
934
|
+
}(base_1.BaseAPI));
|
|
935
|
+
exports.ProductsApi = ProductsApi;
|