@emilgroup/insurance-sdk-node 1.28.0 → 1.29.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 +0 -1
- package/README.md +2 -2
- package/api/leads-api.ts +104 -3
- package/dist/api/leads-api.d.ts +59 -4
- package/dist/api/leads-api.js +92 -0
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/models/index.ts +0 -1
- package/package.json +1 -1
- package/dist/models/create-lead-sync-response-class.d.ts +0 -24
- package/dist/models/create-lead-sync-response-class.js +0 -15
- package/models/create-lead-sync-response-class.ts +0 -30
package/.openapi-generator/FILES
CHANGED
|
@@ -37,7 +37,6 @@ models/create-lead-request-dto.ts
|
|
|
37
37
|
models/create-lead-response-class.ts
|
|
38
38
|
models/create-lead-status-request-dto.ts
|
|
39
39
|
models/create-lead-status-response-class.ts
|
|
40
|
-
models/create-lead-sync-response-class.ts
|
|
41
40
|
models/create-named-range-request-dto.ts
|
|
42
41
|
models/create-named-range-response-class.ts
|
|
43
42
|
models/create-named-request-s3-data-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/insurance-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.29.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.29.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { CreateLeadRequestDto } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { CreateLeadResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
-
import {
|
|
30
|
+
import { DeleteResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { GetLeadResponseClass } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
@@ -191,6 +191,51 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
191
191
|
options: localVarRequestOptions,
|
|
192
192
|
};
|
|
193
193
|
},
|
|
194
|
+
/**
|
|
195
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
196
|
+
* @summary Delete the lead
|
|
197
|
+
* @param {string} code
|
|
198
|
+
* @param {string} [authorization] Bearer Token
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
deleteLead: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
203
|
+
// verify required parameter 'code' is not null or undefined
|
|
204
|
+
assertParamExists('deleteLead', 'code', code)
|
|
205
|
+
const localVarPath = `/insuranceservice/v1/leads/{code}`
|
|
206
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
207
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
209
|
+
let baseOptions;
|
|
210
|
+
let baseAccessToken;
|
|
211
|
+
if (configuration) {
|
|
212
|
+
baseOptions = configuration.baseOptions;
|
|
213
|
+
baseAccessToken = configuration.accessToken;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
217
|
+
const localVarHeaderParameter = {} as any;
|
|
218
|
+
const localVarQueryParameter = {} as any;
|
|
219
|
+
|
|
220
|
+
// authentication bearer required
|
|
221
|
+
// http bearer authentication required
|
|
222
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
223
|
+
|
|
224
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
225
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
233
|
+
|
|
234
|
+
return {
|
|
235
|
+
url: toPathString(localVarUrlObj),
|
|
236
|
+
options: localVarRequestOptions,
|
|
237
|
+
};
|
|
238
|
+
},
|
|
194
239
|
/**
|
|
195
240
|
* 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.
|
|
196
241
|
* @summary Retrieve the lead
|
|
@@ -507,10 +552,22 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
507
552
|
* @param {*} [options] Override http request option.
|
|
508
553
|
* @throws {RequiredError}
|
|
509
554
|
*/
|
|
510
|
-
async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
555
|
+
async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>> {
|
|
511
556
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadSync(createLeadRequestDto, authorization, options);
|
|
512
557
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
513
558
|
},
|
|
559
|
+
/**
|
|
560
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
561
|
+
* @summary Delete the lead
|
|
562
|
+
* @param {string} code
|
|
563
|
+
* @param {string} [authorization] Bearer Token
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
async deleteLead(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
568
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLead(code, authorization, options);
|
|
569
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
570
|
+
},
|
|
514
571
|
/**
|
|
515
572
|
* 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.
|
|
516
573
|
* @summary Retrieve the lead
|
|
@@ -620,9 +677,20 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
620
677
|
* @param {*} [options] Override http request option.
|
|
621
678
|
* @throws {RequiredError}
|
|
622
679
|
*/
|
|
623
|
-
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
680
|
+
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass> {
|
|
624
681
|
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
625
682
|
},
|
|
683
|
+
/**
|
|
684
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
685
|
+
* @summary Delete the lead
|
|
686
|
+
* @param {string} code
|
|
687
|
+
* @param {string} [authorization] Bearer Token
|
|
688
|
+
* @param {*} [options] Override http request option.
|
|
689
|
+
* @throws {RequiredError}
|
|
690
|
+
*/
|
|
691
|
+
deleteLead(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
692
|
+
return localVarFp.deleteLead(code, authorization, options).then((request) => request(axios, basePath));
|
|
693
|
+
},
|
|
626
694
|
/**
|
|
627
695
|
* 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.
|
|
628
696
|
* @summary Retrieve the lead
|
|
@@ -753,6 +821,27 @@ export interface LeadsApiCreateLeadSyncRequest {
|
|
|
753
821
|
readonly authorization?: string
|
|
754
822
|
}
|
|
755
823
|
|
|
824
|
+
/**
|
|
825
|
+
* Request parameters for deleteLead operation in LeadsApi.
|
|
826
|
+
* @export
|
|
827
|
+
* @interface LeadsApiDeleteLeadRequest
|
|
828
|
+
*/
|
|
829
|
+
export interface LeadsApiDeleteLeadRequest {
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof LeadsApiDeleteLead
|
|
834
|
+
*/
|
|
835
|
+
readonly code: string
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Bearer Token
|
|
839
|
+
* @type {string}
|
|
840
|
+
* @memberof LeadsApiDeleteLead
|
|
841
|
+
*/
|
|
842
|
+
readonly authorization?: string
|
|
843
|
+
}
|
|
844
|
+
|
|
756
845
|
/**
|
|
757
846
|
* Request parameters for getLead operation in LeadsApi.
|
|
758
847
|
* @export
|
|
@@ -964,6 +1053,18 @@ export class LeadsApi extends BaseAPI {
|
|
|
964
1053
|
return LeadsApiFp(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
965
1054
|
}
|
|
966
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
1058
|
+
* @summary Delete the lead
|
|
1059
|
+
* @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
* @memberof LeadsApi
|
|
1063
|
+
*/
|
|
1064
|
+
public deleteLead(requestParameters: LeadsApiDeleteLeadRequest, options?: AxiosRequestConfig) {
|
|
1065
|
+
return LeadsApiFp(this.configuration).deleteLead(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1066
|
+
}
|
|
1067
|
+
|
|
967
1068
|
/**
|
|
968
1069
|
* 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.
|
|
969
1070
|
* @summary Retrieve the lead
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreateLeadAsyncResponseClass } from '../models';
|
|
16
16
|
import { CreateLeadRequestDto } from '../models';
|
|
17
17
|
import { CreateLeadResponseClass } from '../models';
|
|
18
|
-
import {
|
|
18
|
+
import { DeleteResponseClass } from '../models';
|
|
19
19
|
import { GetLeadResponseClass } from '../models';
|
|
20
20
|
import { ListLeadsResponseClass } from '../models';
|
|
21
21
|
import { PatchLeadRequestDto } from '../models';
|
|
@@ -54,6 +54,15 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
54
54
|
* @throws {RequiredError}
|
|
55
55
|
*/
|
|
56
56
|
createLeadSync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
/**
|
|
58
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
59
|
+
* @summary Delete the lead
|
|
60
|
+
* @param {string} code
|
|
61
|
+
* @param {string} [authorization] Bearer Token
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
*/
|
|
65
|
+
deleteLead: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
66
|
/**
|
|
58
67
|
* 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.
|
|
59
68
|
* @summary Retrieve the lead
|
|
@@ -140,7 +149,16 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
140
149
|
* @param {*} [options] Override http request option.
|
|
141
150
|
* @throws {RequiredError}
|
|
142
151
|
*/
|
|
143
|
-
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
152
|
+
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
153
|
+
/**
|
|
154
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
155
|
+
* @summary Delete the lead
|
|
156
|
+
* @param {string} code
|
|
157
|
+
* @param {string} [authorization] Bearer Token
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
deleteLead(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
144
162
|
/**
|
|
145
163
|
* 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
164
|
* @summary Retrieve the lead
|
|
@@ -227,7 +245,16 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
227
245
|
* @param {*} [options] Override http request option.
|
|
228
246
|
* @throws {RequiredError}
|
|
229
247
|
*/
|
|
230
|
-
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
248
|
+
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
249
|
+
/**
|
|
250
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
251
|
+
* @summary Delete the lead
|
|
252
|
+
* @param {string} code
|
|
253
|
+
* @param {string} [authorization] Bearer Token
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
deleteLead(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
231
258
|
/**
|
|
232
259
|
* 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.
|
|
233
260
|
* @summary Retrieve the lead
|
|
@@ -340,6 +367,25 @@ export interface LeadsApiCreateLeadSyncRequest {
|
|
|
340
367
|
*/
|
|
341
368
|
readonly authorization?: string;
|
|
342
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Request parameters for deleteLead operation in LeadsApi.
|
|
372
|
+
* @export
|
|
373
|
+
* @interface LeadsApiDeleteLeadRequest
|
|
374
|
+
*/
|
|
375
|
+
export interface LeadsApiDeleteLeadRequest {
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @type {string}
|
|
379
|
+
* @memberof LeadsApiDeleteLead
|
|
380
|
+
*/
|
|
381
|
+
readonly code: string;
|
|
382
|
+
/**
|
|
383
|
+
* Bearer Token
|
|
384
|
+
* @type {string}
|
|
385
|
+
* @memberof LeadsApiDeleteLead
|
|
386
|
+
*/
|
|
387
|
+
readonly authorization?: string;
|
|
388
|
+
}
|
|
343
389
|
/**
|
|
344
390
|
* Request parameters for getLead operation in LeadsApi.
|
|
345
391
|
* @export
|
|
@@ -522,7 +568,16 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
522
568
|
* @throws {RequiredError}
|
|
523
569
|
* @memberof LeadsApi
|
|
524
570
|
*/
|
|
525
|
-
createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
571
|
+
createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
572
|
+
/**
|
|
573
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
574
|
+
* @summary Delete the lead
|
|
575
|
+
* @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
* @memberof LeadsApi
|
|
579
|
+
*/
|
|
580
|
+
deleteLead(requestParameters: LeadsApiDeleteLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
526
581
|
/**
|
|
527
582
|
* 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.
|
|
528
583
|
* @summary Retrieve the lead
|
package/dist/api/leads-api.js
CHANGED
|
@@ -243,6 +243,54 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
243
243
|
});
|
|
244
244
|
});
|
|
245
245
|
},
|
|
246
|
+
/**
|
|
247
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
248
|
+
* @summary Delete the lead
|
|
249
|
+
* @param {string} code
|
|
250
|
+
* @param {string} [authorization] Bearer Token
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
deleteLead: function (code, authorization, options) {
|
|
255
|
+
if (options === void 0) { options = {}; }
|
|
256
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
257
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
258
|
+
return __generator(this, function (_a) {
|
|
259
|
+
switch (_a.label) {
|
|
260
|
+
case 0:
|
|
261
|
+
// verify required parameter 'code' is not null or undefined
|
|
262
|
+
(0, common_1.assertParamExists)('deleteLead', 'code', code);
|
|
263
|
+
localVarPath = "/insuranceservice/v1/leads/{code}"
|
|
264
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
265
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
266
|
+
if (configuration) {
|
|
267
|
+
baseOptions = configuration.baseOptions;
|
|
268
|
+
baseAccessToken = configuration.accessToken;
|
|
269
|
+
}
|
|
270
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
271
|
+
localVarHeaderParameter = {};
|
|
272
|
+
localVarQueryParameter = {};
|
|
273
|
+
// authentication bearer required
|
|
274
|
+
// http bearer authentication required
|
|
275
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
276
|
+
case 1:
|
|
277
|
+
// authentication bearer required
|
|
278
|
+
// http bearer authentication required
|
|
279
|
+
_a.sent();
|
|
280
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
281
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
282
|
+
}
|
|
283
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
284
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
285
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
286
|
+
return [2 /*return*/, {
|
|
287
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
288
|
+
options: localVarRequestOptions,
|
|
289
|
+
}];
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
},
|
|
246
294
|
/**
|
|
247
295
|
* 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.
|
|
248
296
|
* @summary Retrieve the lead
|
|
@@ -595,6 +643,27 @@ var LeadsApiFp = function (configuration) {
|
|
|
595
643
|
});
|
|
596
644
|
});
|
|
597
645
|
},
|
|
646
|
+
/**
|
|
647
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
648
|
+
* @summary Delete the lead
|
|
649
|
+
* @param {string} code
|
|
650
|
+
* @param {string} [authorization] Bearer Token
|
|
651
|
+
* @param {*} [options] Override http request option.
|
|
652
|
+
* @throws {RequiredError}
|
|
653
|
+
*/
|
|
654
|
+
deleteLead: function (code, authorization, options) {
|
|
655
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
656
|
+
var localVarAxiosArgs;
|
|
657
|
+
return __generator(this, function (_a) {
|
|
658
|
+
switch (_a.label) {
|
|
659
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteLead(code, authorization, options)];
|
|
660
|
+
case 1:
|
|
661
|
+
localVarAxiosArgs = _a.sent();
|
|
662
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
},
|
|
598
667
|
/**
|
|
599
668
|
* 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.
|
|
600
669
|
* @summary Retrieve the lead
|
|
@@ -752,6 +821,17 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
752
821
|
createLeadSync: function (createLeadRequestDto, authorization, options) {
|
|
753
822
|
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
754
823
|
},
|
|
824
|
+
/**
|
|
825
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
826
|
+
* @summary Delete the lead
|
|
827
|
+
* @param {string} code
|
|
828
|
+
* @param {string} [authorization] Bearer Token
|
|
829
|
+
* @param {*} [options] Override http request option.
|
|
830
|
+
* @throws {RequiredError}
|
|
831
|
+
*/
|
|
832
|
+
deleteLead: function (code, authorization, options) {
|
|
833
|
+
return localVarFp.deleteLead(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
834
|
+
},
|
|
755
835
|
/**
|
|
756
836
|
* 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.
|
|
757
837
|
* @summary Retrieve the lead
|
|
@@ -866,6 +946,18 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
866
946
|
var _this = this;
|
|
867
947
|
return (0, exports.LeadsApiFp)(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
868
948
|
};
|
|
949
|
+
/**
|
|
950
|
+
* Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
|
|
951
|
+
* @summary Delete the lead
|
|
952
|
+
* @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
|
|
953
|
+
* @param {*} [options] Override http request option.
|
|
954
|
+
* @throws {RequiredError}
|
|
955
|
+
* @memberof LeadsApi
|
|
956
|
+
*/
|
|
957
|
+
LeadsApi.prototype.deleteLead = function (requestParameters, options) {
|
|
958
|
+
var _this = this;
|
|
959
|
+
return (0, exports.LeadsApiFp)(this.configuration).deleteLead(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
960
|
+
};
|
|
869
961
|
/**
|
|
870
962
|
* 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.
|
|
871
963
|
* @summary Retrieve the lead
|
package/dist/models/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export * from './create-lead-request-dto';
|
|
|
15
15
|
export * from './create-lead-response-class';
|
|
16
16
|
export * from './create-lead-status-request-dto';
|
|
17
17
|
export * from './create-lead-status-response-class';
|
|
18
|
-
export * from './create-lead-sync-response-class';
|
|
19
18
|
export * from './create-named-range-request-dto';
|
|
20
19
|
export * from './create-named-range-response-class';
|
|
21
20
|
export * from './create-named-request-s3-data-class';
|
package/dist/models/index.js
CHANGED
|
@@ -31,7 +31,6 @@ __exportStar(require("./create-lead-request-dto"), exports);
|
|
|
31
31
|
__exportStar(require("./create-lead-response-class"), exports);
|
|
32
32
|
__exportStar(require("./create-lead-status-request-dto"), exports);
|
|
33
33
|
__exportStar(require("./create-lead-status-response-class"), exports);
|
|
34
|
-
__exportStar(require("./create-lead-sync-response-class"), exports);
|
|
35
34
|
__exportStar(require("./create-named-range-request-dto"), exports);
|
|
36
35
|
__exportStar(require("./create-named-range-response-class"), exports);
|
|
37
36
|
__exportStar(require("./create-named-request-s3-data-class"), exports);
|
package/models/index.ts
CHANGED
|
@@ -15,7 +15,6 @@ export * from './create-lead-request-dto';
|
|
|
15
15
|
export * from './create-lead-response-class';
|
|
16
16
|
export * from './create-lead-status-request-dto';
|
|
17
17
|
export * from './create-lead-status-response-class';
|
|
18
|
-
export * from './create-lead-sync-response-class';
|
|
19
18
|
export * from './create-named-range-request-dto';
|
|
20
19
|
export * from './create-named-range-response-class';
|
|
21
20
|
export * from './create-named-request-s3-data-class';
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL InsuranceService
|
|
3
|
-
* The EMIL InsuranceService 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 CreateLeadSyncResponseClass
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateLeadSyncResponseClass {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {object}
|
|
21
|
-
* @memberof CreateLeadSyncResponseClass
|
|
22
|
-
*/
|
|
23
|
-
'variables': object;
|
|
24
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL InsuranceService
|
|
6
|
-
* The EMIL InsuranceService 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 });
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL InsuranceService
|
|
5
|
-
* The EMIL InsuranceService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface CreateLeadSyncResponseClass
|
|
21
|
-
*/
|
|
22
|
-
export interface CreateLeadSyncResponseClass {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {object}
|
|
26
|
-
* @memberof CreateLeadSyncResponseClass
|
|
27
|
-
*/
|
|
28
|
-
'variables': object;
|
|
29
|
-
}
|
|
30
|
-
|