@emilgroup/public-api-sdk 1.14.1 → 1.14.3
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 +5 -0
- package/README.md +2 -2
- package/api/default-api.ts +120 -0
- package/api/leads-api.ts +326 -0
- package/api.ts +2 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api/leads-api.d.ts +176 -0
- package/dist/api/leads-api.js +285 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-document-request-dto.d.ts +17 -0
- package/dist/models/create-document-request-dto.js +5 -1
- package/dist/models/create-lead-async-response-class.d.ts +24 -0
- package/dist/models/create-lead-async-response-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +7 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/lead-sync-response-class.d.ts +24 -0
- package/dist/models/lead-sync-response-class.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +9 -3
- package/models/create-document-request-dto.ts +18 -0
- package/models/create-lead-async-response-class.ts +30 -0
- package/models/create-lead-request-dto.ts +7 -1
- package/models/index.ts +4 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/lead-sync-response-class.ts +30 -0
- package/models/update-lead-request-dto.ts +9 -3
- package/package.json +1 -1
package/dist/api/leads-api.js
CHANGED
|
@@ -141,6 +141,104 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
+
/**
|
|
145
|
+
* This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
|
|
146
|
+
* @summary Create the lead asynchronously
|
|
147
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
148
|
+
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
createLeadAsync: function (createLeadRequestDto, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('createLeadAsync', 'createLeadRequestDto', createLeadRequestDto);
|
|
161
|
+
localVarPath = "/publicapi/v1/leads-async";
|
|
162
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
baseAccessToken = configuration.accessToken;
|
|
166
|
+
}
|
|
167
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
168
|
+
localVarHeaderParameter = {};
|
|
169
|
+
localVarQueryParameter = {};
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
+
case 1:
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
_a.sent();
|
|
177
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
179
|
+
}
|
|
180
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createLeadRequestDto, localVarRequestOptions, configuration);
|
|
185
|
+
return [2 /*return*/, {
|
|
186
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
}];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
195
|
+
* @summary Create the lead
|
|
196
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
197
|
+
* @param {string} [authorization] Bearer Token
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
createLeadSync: function (createLeadRequestDto, authorization, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0:
|
|
208
|
+
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('createLeadSync', 'createLeadRequestDto', createLeadRequestDto);
|
|
210
|
+
localVarPath = "/publicapi/v1/leads-sync";
|
|
211
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
217
|
+
localVarHeaderParameter = {};
|
|
218
|
+
localVarQueryParameter = {};
|
|
219
|
+
// authentication bearer required
|
|
220
|
+
// http bearer authentication required
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
222
|
+
case 1:
|
|
223
|
+
// authentication bearer required
|
|
224
|
+
// http bearer authentication required
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
|
+
}
|
|
229
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
230
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
231
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
233
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createLeadRequestDto, localVarRequestOptions, configuration);
|
|
234
|
+
return [2 /*return*/, {
|
|
235
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
236
|
+
options: localVarRequestOptions,
|
|
237
|
+
}];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
},
|
|
144
242
|
/**
|
|
145
243
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
146
244
|
* @summary Retrieve the lead
|
|
@@ -286,6 +384,59 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
286
384
|
});
|
|
287
385
|
});
|
|
288
386
|
},
|
|
387
|
+
/**
|
|
388
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
389
|
+
* @summary Update the lead
|
|
390
|
+
* @param {string} code Unique identifier for the object.
|
|
391
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
392
|
+
* @param {string} [authorization] Bearer Token
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
updateLeadSync: function (code, updateLeadRequestDto, authorization, options) {
|
|
397
|
+
if (options === void 0) { options = {}; }
|
|
398
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
399
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
400
|
+
return __generator(this, function (_a) {
|
|
401
|
+
switch (_a.label) {
|
|
402
|
+
case 0:
|
|
403
|
+
// verify required parameter 'code' is not null or undefined
|
|
404
|
+
(0, common_1.assertParamExists)('updateLeadSync', 'code', code);
|
|
405
|
+
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
406
|
+
(0, common_1.assertParamExists)('updateLeadSync', 'updateLeadRequestDto', updateLeadRequestDto);
|
|
407
|
+
localVarPath = "/publicapi/v1/leads-sync/{code}"
|
|
408
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
409
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
410
|
+
if (configuration) {
|
|
411
|
+
baseOptions = configuration.baseOptions;
|
|
412
|
+
baseAccessToken = configuration.accessToken;
|
|
413
|
+
}
|
|
414
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
415
|
+
localVarHeaderParameter = {};
|
|
416
|
+
localVarQueryParameter = {};
|
|
417
|
+
// authentication bearer required
|
|
418
|
+
// http bearer authentication required
|
|
419
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
420
|
+
case 1:
|
|
421
|
+
// authentication bearer required
|
|
422
|
+
// http bearer authentication required
|
|
423
|
+
_a.sent();
|
|
424
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
425
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
426
|
+
}
|
|
427
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
428
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
429
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
430
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
431
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateLeadRequestDto, localVarRequestOptions, configuration);
|
|
432
|
+
return [2 /*return*/, {
|
|
433
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
434
|
+
options: localVarRequestOptions,
|
|
435
|
+
}];
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
},
|
|
289
440
|
};
|
|
290
441
|
};
|
|
291
442
|
exports.LeadsApiAxiosParamCreator = LeadsApiAxiosParamCreator;
|
|
@@ -317,6 +468,48 @@ var LeadsApiFp = function (configuration) {
|
|
|
317
468
|
});
|
|
318
469
|
});
|
|
319
470
|
},
|
|
471
|
+
/**
|
|
472
|
+
* This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
|
|
473
|
+
* @summary Create the lead asynchronously
|
|
474
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
475
|
+
* @param {string} [authorization] Bearer Token
|
|
476
|
+
* @param {*} [options] Override http request option.
|
|
477
|
+
* @throws {RequiredError}
|
|
478
|
+
*/
|
|
479
|
+
createLeadAsync: function (createLeadRequestDto, authorization, options) {
|
|
480
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
481
|
+
var localVarAxiosArgs;
|
|
482
|
+
return __generator(this, function (_a) {
|
|
483
|
+
switch (_a.label) {
|
|
484
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createLeadAsync(createLeadRequestDto, authorization, options)];
|
|
485
|
+
case 1:
|
|
486
|
+
localVarAxiosArgs = _a.sent();
|
|
487
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
});
|
|
491
|
+
},
|
|
492
|
+
/**
|
|
493
|
+
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
494
|
+
* @summary Create the lead
|
|
495
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
496
|
+
* @param {string} [authorization] Bearer Token
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
createLeadSync: function (createLeadRequestDto, authorization, options) {
|
|
501
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
502
|
+
var localVarAxiosArgs;
|
|
503
|
+
return __generator(this, function (_a) {
|
|
504
|
+
switch (_a.label) {
|
|
505
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createLeadSync(createLeadRequestDto, authorization, options)];
|
|
506
|
+
case 1:
|
|
507
|
+
localVarAxiosArgs = _a.sent();
|
|
508
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
},
|
|
320
513
|
/**
|
|
321
514
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
322
515
|
* @summary Retrieve the lead
|
|
@@ -380,6 +573,28 @@ var LeadsApiFp = function (configuration) {
|
|
|
380
573
|
});
|
|
381
574
|
});
|
|
382
575
|
},
|
|
576
|
+
/**
|
|
577
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
578
|
+
* @summary Update the lead
|
|
579
|
+
* @param {string} code Unique identifier for the object.
|
|
580
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
581
|
+
* @param {string} [authorization] Bearer Token
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
updateLeadSync: function (code, updateLeadRequestDto, 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.updateLeadSync(code, updateLeadRequestDto, 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
|
+
},
|
|
383
598
|
};
|
|
384
599
|
};
|
|
385
600
|
exports.LeadsApiFp = LeadsApiFp;
|
|
@@ -401,6 +616,28 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
401
616
|
createLead: function (createLeadRequestDto, authorization, options) {
|
|
402
617
|
return localVarFp.createLead(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
403
618
|
},
|
|
619
|
+
/**
|
|
620
|
+
* This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
|
|
621
|
+
* @summary Create the lead asynchronously
|
|
622
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
623
|
+
* @param {string} [authorization] Bearer Token
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
createLeadAsync: function (createLeadRequestDto, authorization, options) {
|
|
628
|
+
return localVarFp.createLeadAsync(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
629
|
+
},
|
|
630
|
+
/**
|
|
631
|
+
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
632
|
+
* @summary Create the lead
|
|
633
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
634
|
+
* @param {string} [authorization] Bearer Token
|
|
635
|
+
* @param {*} [options] Override http request option.
|
|
636
|
+
* @throws {RequiredError}
|
|
637
|
+
*/
|
|
638
|
+
createLeadSync: function (createLeadRequestDto, authorization, options) {
|
|
639
|
+
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
640
|
+
},
|
|
404
641
|
/**
|
|
405
642
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
406
643
|
* @summary Retrieve the lead
|
|
@@ -434,6 +671,18 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
434
671
|
updateLead: function (code, updateLeadRequestDto, authorization, options) {
|
|
435
672
|
return localVarFp.updateLead(code, updateLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
436
673
|
},
|
|
674
|
+
/**
|
|
675
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
676
|
+
* @summary Update the lead
|
|
677
|
+
* @param {string} code Unique identifier for the object.
|
|
678
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
679
|
+
* @param {string} [authorization] Bearer Token
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
updateLeadSync: function (code, updateLeadRequestDto, authorization, options) {
|
|
684
|
+
return localVarFp.updateLeadSync(code, updateLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
685
|
+
},
|
|
437
686
|
};
|
|
438
687
|
};
|
|
439
688
|
exports.LeadsApiFactory = LeadsApiFactory;
|
|
@@ -460,6 +709,30 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
460
709
|
var _this = this;
|
|
461
710
|
return (0, exports.LeadsApiFp)(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
462
711
|
};
|
|
712
|
+
/**
|
|
713
|
+
* This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
|
|
714
|
+
* @summary Create the lead asynchronously
|
|
715
|
+
* @param {LeadsApiCreateLeadAsyncRequest} requestParameters Request parameters.
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
* @memberof LeadsApi
|
|
719
|
+
*/
|
|
720
|
+
LeadsApi.prototype.createLeadAsync = function (requestParameters, options) {
|
|
721
|
+
var _this = this;
|
|
722
|
+
return (0, exports.LeadsApiFp)(this.configuration).createLeadAsync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
723
|
+
};
|
|
724
|
+
/**
|
|
725
|
+
* This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
|
|
726
|
+
* @summary Create the lead
|
|
727
|
+
* @param {LeadsApiCreateLeadSyncRequest} requestParameters Request parameters.
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
* @memberof LeadsApi
|
|
731
|
+
*/
|
|
732
|
+
LeadsApi.prototype.createLeadSync = function (requestParameters, options) {
|
|
733
|
+
var _this = this;
|
|
734
|
+
return (0, exports.LeadsApiFp)(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
735
|
+
};
|
|
463
736
|
/**
|
|
464
737
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
465
738
|
* @summary Retrieve the lead
|
|
@@ -497,6 +770,18 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
497
770
|
var _this = this;
|
|
498
771
|
return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
499
772
|
};
|
|
773
|
+
/**
|
|
774
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
775
|
+
* @summary Update the lead
|
|
776
|
+
* @param {LeadsApiUpdateLeadSyncRequest} requestParameters Request parameters.
|
|
777
|
+
* @param {*} [options] Override http request option.
|
|
778
|
+
* @throws {RequiredError}
|
|
779
|
+
* @memberof LeadsApi
|
|
780
|
+
*/
|
|
781
|
+
LeadsApi.prototype.updateLeadSync = function (requestParameters, options) {
|
|
782
|
+
var _this = this;
|
|
783
|
+
return (0, exports.LeadsApiFp)(this.configuration).updateLeadSync(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
784
|
+
};
|
|
500
785
|
return LeadsApi;
|
|
501
786
|
}(base_1.BaseAPI));
|
|
502
787
|
exports.LeadsApi = LeadsApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/address-completions-validations-api';
|
|
13
|
+
export * from './api/default-api';
|
|
13
14
|
export * from './api/documents-api';
|
|
14
15
|
export * from './api/leads-api';
|
|
15
16
|
export * from './api/notifications-api';
|
package/dist/api.js
CHANGED
|
@@ -28,6 +28,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/address-completions-validations-api"), exports);
|
|
31
|
+
__exportStar(require("./api/default-api"), exports);
|
|
31
32
|
__exportStar(require("./api/documents-api"), exports);
|
|
32
33
|
__exportStar(require("./api/leads-api"), exports);
|
|
33
34
|
__exportStar(require("./api/notifications-api"), exports);
|
|
@@ -87,6 +87,18 @@ export interface CreateDocumentRequestDto {
|
|
|
87
87
|
* @memberof CreateDocumentRequestDto
|
|
88
88
|
*/
|
|
89
89
|
'filename'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* If true, the default margins will be skipped when generating the document.
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof CreateDocumentRequestDto
|
|
94
|
+
*/
|
|
95
|
+
'shouldSkipDefaultMargins'?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Type of the document engine to use to generate the document. Defaults to HTML.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof CreateDocumentRequestDto
|
|
100
|
+
*/
|
|
101
|
+
'engine'?: CreateDocumentRequestDtoEngineEnum;
|
|
90
102
|
}
|
|
91
103
|
export declare const CreateDocumentRequestDtoRequesterEnum: {
|
|
92
104
|
readonly Publicapi: "publicapi";
|
|
@@ -113,3 +125,8 @@ export declare const CreateDocumentRequestDtoContentTypeEnum: {
|
|
|
113
125
|
readonly Avi: "AVI";
|
|
114
126
|
};
|
|
115
127
|
export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
|
|
128
|
+
export declare const CreateDocumentRequestDtoEngineEnum: {
|
|
129
|
+
readonly Docx: "docx";
|
|
130
|
+
readonly Html: "html";
|
|
131
|
+
};
|
|
132
|
+
export type CreateDocumentRequestDtoEngineEnum = typeof CreateDocumentRequestDtoEngineEnum[keyof typeof CreateDocumentRequestDtoEngineEnum];
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = void 0;
|
|
16
|
+
exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = void 0;
|
|
17
17
|
exports.CreateDocumentRequestDtoRequesterEnum = {
|
|
18
18
|
Publicapi: 'publicapi'
|
|
19
19
|
};
|
|
@@ -37,3 +37,7 @@ exports.CreateDocumentRequestDtoContentTypeEnum = {
|
|
|
37
37
|
Wmv: 'WMV',
|
|
38
38
|
Avi: 'AVI'
|
|
39
39
|
};
|
|
40
|
+
exports.CreateDocumentRequestDtoEngineEnum = {
|
|
41
|
+
Docx: 'docx',
|
|
42
|
+
Html: 'html'
|
|
43
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateLeadAsyncResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateLeadAsyncResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the lead that this object belongs to.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateLeadAsyncResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -38,7 +38,13 @@ export interface CreateLeadRequestDto {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateLeadRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'productCode'
|
|
41
|
+
'productCode'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateLeadRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'productSlug'?: string;
|
|
42
48
|
/**
|
|
43
49
|
* Account object. The create lead request should either contain accountCode or account. The account content will be validated if the \'validate\' flag is set to true. an empty object is required if \'validate flag is set to false.
|
|
44
50
|
* @type {CreateAccountRequestDto}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './create-custom-application-response-class';
|
|
|
14
14
|
export * from './create-document-request-dto';
|
|
15
15
|
export * from './create-estimated-invoice-request-dto';
|
|
16
16
|
export * from './create-estimated-invoice-response-class';
|
|
17
|
+
export * from './create-lead-async-response-class';
|
|
17
18
|
export * from './create-lead-request-dto';
|
|
18
19
|
export * from './create-lead-response-class';
|
|
19
20
|
export * from './create-payment-method-request-dto';
|
|
@@ -33,6 +34,8 @@ export * from './initiate-payment-setup-request-dto';
|
|
|
33
34
|
export * from './initiate-payment-setup-response-class';
|
|
34
35
|
export * from './initiate-stripe-payment-setup-request-dto';
|
|
35
36
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
37
|
+
export * from './inline-response200';
|
|
38
|
+
export * from './inline-response503';
|
|
36
39
|
export * from './insured-object-class';
|
|
37
40
|
export * from './insured-object-type-class';
|
|
38
41
|
export * from './invoice-class';
|
|
@@ -43,6 +46,7 @@ export * from './lead-bank-account-class';
|
|
|
43
46
|
export * from './lead-class';
|
|
44
47
|
export * from './lead-policy-class';
|
|
45
48
|
export * from './lead-policy-object-class';
|
|
49
|
+
export * from './lead-sync-response-class';
|
|
46
50
|
export * from './list-documents-response-class';
|
|
47
51
|
export * from './list-product-documents-response-class';
|
|
48
52
|
export * from './list-products-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./create-custom-application-response-class"), exports);
|
|
|
30
30
|
__exportStar(require("./create-document-request-dto"), exports);
|
|
31
31
|
__exportStar(require("./create-estimated-invoice-request-dto"), exports);
|
|
32
32
|
__exportStar(require("./create-estimated-invoice-response-class"), exports);
|
|
33
|
+
__exportStar(require("./create-lead-async-response-class"), exports);
|
|
33
34
|
__exportStar(require("./create-lead-request-dto"), exports);
|
|
34
35
|
__exportStar(require("./create-lead-response-class"), exports);
|
|
35
36
|
__exportStar(require("./create-payment-method-request-dto"), exports);
|
|
@@ -49,6 +50,8 @@ __exportStar(require("./initiate-payment-setup-request-dto"), exports);
|
|
|
49
50
|
__exportStar(require("./initiate-payment-setup-response-class"), exports);
|
|
50
51
|
__exportStar(require("./initiate-stripe-payment-setup-request-dto"), exports);
|
|
51
52
|
__exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
|
|
53
|
+
__exportStar(require("./inline-response200"), exports);
|
|
54
|
+
__exportStar(require("./inline-response503"), exports);
|
|
52
55
|
__exportStar(require("./insured-object-class"), exports);
|
|
53
56
|
__exportStar(require("./insured-object-type-class"), exports);
|
|
54
57
|
__exportStar(require("./invoice-class"), exports);
|
|
@@ -59,6 +62,7 @@ __exportStar(require("./lead-bank-account-class"), exports);
|
|
|
59
62
|
__exportStar(require("./lead-class"), exports);
|
|
60
63
|
__exportStar(require("./lead-policy-class"), exports);
|
|
61
64
|
__exportStar(require("./lead-policy-object-class"), exports);
|
|
65
|
+
__exportStar(require("./lead-sync-response-class"), exports);
|
|
62
66
|
__exportStar(require("./list-documents-response-class"), exports);
|
|
63
67
|
__exportStar(require("./list-product-documents-response-class"), exports);
|
|
64
68
|
__exportStar(require("./list-products-response-class"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InlineResponse200
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineResponse200 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineResponse200
|
|
22
|
+
*/
|
|
23
|
+
'status'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
27
|
+
* @memberof InlineResponse200
|
|
28
|
+
*/
|
|
29
|
+
'info'?: {
|
|
30
|
+
[key: string]: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
} | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
37
|
+
* @memberof InlineResponse200
|
|
38
|
+
*/
|
|
39
|
+
'error'?: {
|
|
40
|
+
[key: string]: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
47
|
+
* @memberof InlineResponse200
|
|
48
|
+
*/
|
|
49
|
+
'details'?: {
|
|
50
|
+
[key: string]: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InlineResponse503
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineResponse503 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineResponse503
|
|
22
|
+
*/
|
|
23
|
+
'status'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
27
|
+
* @memberof InlineResponse503
|
|
28
|
+
*/
|
|
29
|
+
'info'?: {
|
|
30
|
+
[key: string]: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
} | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
37
|
+
* @memberof InlineResponse503
|
|
38
|
+
*/
|
|
39
|
+
'error'?: {
|
|
40
|
+
[key: string]: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
47
|
+
* @memberof InlineResponse503
|
|
48
|
+
*/
|
|
49
|
+
'details'?: {
|
|
50
|
+
[key: string]: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|