@emilgroup/public-api-sdk-node 1.16.1 → 1.17.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 +5 -0
- package/README.md +2 -2
- package/api/default-api.ts +124 -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 +200 -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 +8 -2
- 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 +10 -4
- 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 +8 -2
- 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 +10 -4
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/address-completions-validations-api.ts
|
|
7
|
+
api/default-api.ts
|
|
7
8
|
api/documents-api.ts
|
|
8
9
|
api/leads-api.ts
|
|
9
10
|
api/notifications-api.ts
|
|
@@ -30,6 +31,7 @@ models/create-custom-application-response-class.ts
|
|
|
30
31
|
models/create-document-request-dto.ts
|
|
31
32
|
models/create-estimated-invoice-request-dto.ts
|
|
32
33
|
models/create-estimated-invoice-response-class.ts
|
|
34
|
+
models/create-lead-async-response-class.ts
|
|
33
35
|
models/create-lead-request-dto.ts
|
|
34
36
|
models/create-lead-response-class.ts
|
|
35
37
|
models/create-payment-method-request-dto.ts
|
|
@@ -50,6 +52,8 @@ models/initiate-payment-setup-request-dto.ts
|
|
|
50
52
|
models/initiate-payment-setup-response-class.ts
|
|
51
53
|
models/initiate-stripe-payment-setup-request-dto.ts
|
|
52
54
|
models/initiate-stripe-payment-setup-response-class.ts
|
|
55
|
+
models/inline-response200.ts
|
|
56
|
+
models/inline-response503.ts
|
|
53
57
|
models/insured-object-class.ts
|
|
54
58
|
models/insured-object-type-class.ts
|
|
55
59
|
models/invoice-class.ts
|
|
@@ -60,6 +64,7 @@ models/lead-bank-account-class.ts
|
|
|
60
64
|
models/lead-class.ts
|
|
61
65
|
models/lead-policy-class.ts
|
|
62
66
|
models/lead-policy-object-class.ts
|
|
67
|
+
models/lead-sync-response-class.ts
|
|
63
68
|
models/list-documents-response-class.ts
|
|
64
69
|
models/list-product-documents-response-class.ts
|
|
65
70
|
models/list-products-response-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/public-api-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.17.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.17.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil PublicAPI
|
|
5
|
+
* The Emil Public 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
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { InlineResponse200 } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { InlineResponse503 } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* DefaultApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
const localVarPath = `/publicapi/health`;
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
let baseAccessToken;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
baseAccessToken = configuration.accessToken;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
url: toPathString(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* DefaultApi - functional programming interface
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
77
|
+
return {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
|
|
84
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
|
|
85
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* DefaultApi - factory interface
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
95
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
96
|
+
return {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
check(options?: any): AxiosPromise<InlineResponse200> {
|
|
103
|
+
return localVarFp.check(options).then((request) => request(axios, basePath));
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* DefaultApi - object-oriented interface
|
|
110
|
+
* @export
|
|
111
|
+
* @class DefaultApi
|
|
112
|
+
* @extends {BaseAPI}
|
|
113
|
+
*/
|
|
114
|
+
export class DefaultApi extends BaseAPI {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof DefaultApi
|
|
120
|
+
*/
|
|
121
|
+
public check(options?: AxiosRequestConfig) {
|
|
122
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
|
+
}
|
|
124
|
+
}
|
package/api/leads-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreateLeadAsyncResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreateLeadRequestDto } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { CreateLeadResponseClass } from '../models';
|
|
@@ -29,6 +31,8 @@ import { GetLeadResponseClass } from '../models';
|
|
|
29
31
|
// @ts-ignore
|
|
30
32
|
import { InitiateLeadResponseClass } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
34
|
+
import { LeadSyncResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
32
36
|
import { UpdateLeadRequestDto } from '../models';
|
|
33
37
|
// @ts-ignore
|
|
34
38
|
import { UpdateLeadResponseClass } from '../models';
|
|
@@ -77,6 +81,100 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
77
81
|
|
|
78
82
|
|
|
79
83
|
|
|
84
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
85
|
+
|
|
86
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
87
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
89
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
url: toPathString(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* 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\'.
|
|
98
|
+
* @summary Create the lead asynchronously
|
|
99
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
100
|
+
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
createLeadAsync: async (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
+
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
106
|
+
assertParamExists('createLeadAsync', 'createLeadRequestDto', createLeadRequestDto)
|
|
107
|
+
const localVarPath = `/publicapi/v1/leads-async`;
|
|
108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
+
let baseOptions;
|
|
111
|
+
let baseAccessToken;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
baseAccessToken = configuration.accessToken;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
118
|
+
const localVarHeaderParameter = {} as any;
|
|
119
|
+
const localVarQueryParameter = {} as any;
|
|
120
|
+
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
|
+
|
|
125
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
136
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
url: toPathString(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* 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.
|
|
145
|
+
* @summary Create the lead
|
|
146
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
147
|
+
* @param {string} [authorization] Bearer Token
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
createLeadSync: async (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
152
|
+
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
153
|
+
assertParamExists('createLeadSync', 'createLeadRequestDto', createLeadRequestDto)
|
|
154
|
+
const localVarPath = `/publicapi/v1/leads-sync`;
|
|
155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
157
|
+
let baseOptions;
|
|
158
|
+
let baseAccessToken;
|
|
159
|
+
if (configuration) {
|
|
160
|
+
baseOptions = configuration.baseOptions;
|
|
161
|
+
baseAccessToken = configuration.accessToken;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
165
|
+
const localVarHeaderParameter = {} as any;
|
|
166
|
+
const localVarQueryParameter = {} as any;
|
|
167
|
+
|
|
168
|
+
// authentication bearer required
|
|
169
|
+
// http bearer authentication required
|
|
170
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
171
|
+
|
|
172
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
173
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
80
178
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
179
|
|
|
82
180
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -214,6 +312,57 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
214
312
|
|
|
215
313
|
|
|
216
314
|
|
|
315
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
316
|
+
|
|
317
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
318
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
320
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateLeadRequestDto, localVarRequestOptions, configuration)
|
|
321
|
+
|
|
322
|
+
return {
|
|
323
|
+
url: toPathString(localVarUrlObj),
|
|
324
|
+
options: localVarRequestOptions,
|
|
325
|
+
};
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
329
|
+
* @summary Update the lead
|
|
330
|
+
* @param {string} code Unique identifier for the object.
|
|
331
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
332
|
+
* @param {string} [authorization] Bearer Token
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
updateLeadSync: async (code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
337
|
+
// verify required parameter 'code' is not null or undefined
|
|
338
|
+
assertParamExists('updateLeadSync', 'code', code)
|
|
339
|
+
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
340
|
+
assertParamExists('updateLeadSync', 'updateLeadRequestDto', updateLeadRequestDto)
|
|
341
|
+
const localVarPath = `/publicapi/v1/leads-sync/{code}`
|
|
342
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
344
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
345
|
+
let baseOptions;
|
|
346
|
+
let baseAccessToken;
|
|
347
|
+
if (configuration) {
|
|
348
|
+
baseOptions = configuration.baseOptions;
|
|
349
|
+
baseAccessToken = configuration.accessToken;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
353
|
+
const localVarHeaderParameter = {} as any;
|
|
354
|
+
const localVarQueryParameter = {} as any;
|
|
355
|
+
|
|
356
|
+
// authentication bearer required
|
|
357
|
+
// http bearer authentication required
|
|
358
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
359
|
+
|
|
360
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
361
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
217
366
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
218
367
|
|
|
219
368
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -248,6 +397,30 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
248
397
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createLead(createLeadRequestDto, authorization, options);
|
|
249
398
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
250
399
|
},
|
|
400
|
+
/**
|
|
401
|
+
* 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\'.
|
|
402
|
+
* @summary Create the lead asynchronously
|
|
403
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
404
|
+
* @param {string} [authorization] Bearer Token
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
async createLeadAsync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadAsyncResponseClass>> {
|
|
409
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadAsync(createLeadRequestDto, authorization, options);
|
|
410
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
411
|
+
},
|
|
412
|
+
/**
|
|
413
|
+
* 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.
|
|
414
|
+
* @summary Create the lead
|
|
415
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
416
|
+
* @param {string} [authorization] Bearer Token
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeadSyncResponseClass>> {
|
|
421
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadSync(createLeadRequestDto, authorization, options);
|
|
422
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
423
|
+
},
|
|
251
424
|
/**
|
|
252
425
|
* 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.
|
|
253
426
|
* @summary Retrieve the lead
|
|
@@ -284,6 +457,19 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
284
457
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, updateLeadRequestDto, authorization, options);
|
|
285
458
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
286
459
|
},
|
|
460
|
+
/**
|
|
461
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
462
|
+
* @summary Update the lead
|
|
463
|
+
* @param {string} code Unique identifier for the object.
|
|
464
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
465
|
+
* @param {string} [authorization] Bearer Token
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
async updateLeadSync(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeadSyncResponseClass>> {
|
|
470
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLeadSync(code, updateLeadRequestDto, authorization, options);
|
|
471
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
472
|
+
},
|
|
287
473
|
}
|
|
288
474
|
};
|
|
289
475
|
|
|
@@ -305,6 +491,28 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
305
491
|
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass> {
|
|
306
492
|
return localVarFp.createLead(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
307
493
|
},
|
|
494
|
+
/**
|
|
495
|
+
* 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\'.
|
|
496
|
+
* @summary Create the lead asynchronously
|
|
497
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
498
|
+
* @param {string} [authorization] Bearer Token
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
createLeadAsync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadAsyncResponseClass> {
|
|
503
|
+
return localVarFp.createLeadAsync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
* 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.
|
|
507
|
+
* @summary Create the lead
|
|
508
|
+
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
509
|
+
* @param {string} [authorization] Bearer Token
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<LeadSyncResponseClass> {
|
|
514
|
+
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
515
|
+
},
|
|
308
516
|
/**
|
|
309
517
|
* 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.
|
|
310
518
|
* @summary Retrieve the lead
|
|
@@ -338,6 +546,18 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
338
546
|
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass> {
|
|
339
547
|
return localVarFp.updateLead(code, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
340
548
|
},
|
|
549
|
+
/**
|
|
550
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
551
|
+
* @summary Update the lead
|
|
552
|
+
* @param {string} code Unique identifier for the object.
|
|
553
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
554
|
+
* @param {string} [authorization] Bearer Token
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
*/
|
|
558
|
+
updateLeadSync(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<LeadSyncResponseClass> {
|
|
559
|
+
return localVarFp.updateLeadSync(code, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
560
|
+
},
|
|
341
561
|
};
|
|
342
562
|
};
|
|
343
563
|
|
|
@@ -362,6 +582,48 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
362
582
|
readonly authorization?: string
|
|
363
583
|
}
|
|
364
584
|
|
|
585
|
+
/**
|
|
586
|
+
* Request parameters for createLeadAsync operation in LeadsApi.
|
|
587
|
+
* @export
|
|
588
|
+
* @interface LeadsApiCreateLeadAsyncRequest
|
|
589
|
+
*/
|
|
590
|
+
export interface LeadsApiCreateLeadAsyncRequest {
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @type {CreateLeadRequestDto}
|
|
594
|
+
* @memberof LeadsApiCreateLeadAsync
|
|
595
|
+
*/
|
|
596
|
+
readonly createLeadRequestDto: CreateLeadRequestDto
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Bearer Token
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof LeadsApiCreateLeadAsync
|
|
602
|
+
*/
|
|
603
|
+
readonly authorization?: string
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Request parameters for createLeadSync operation in LeadsApi.
|
|
608
|
+
* @export
|
|
609
|
+
* @interface LeadsApiCreateLeadSyncRequest
|
|
610
|
+
*/
|
|
611
|
+
export interface LeadsApiCreateLeadSyncRequest {
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @type {CreateLeadRequestDto}
|
|
615
|
+
* @memberof LeadsApiCreateLeadSync
|
|
616
|
+
*/
|
|
617
|
+
readonly createLeadRequestDto: CreateLeadRequestDto
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Bearer Token
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof LeadsApiCreateLeadSync
|
|
623
|
+
*/
|
|
624
|
+
readonly authorization?: string
|
|
625
|
+
}
|
|
626
|
+
|
|
365
627
|
/**
|
|
366
628
|
* Request parameters for getLead operation in LeadsApi.
|
|
367
629
|
* @export
|
|
@@ -425,6 +687,34 @@ export interface LeadsApiUpdateLeadRequest {
|
|
|
425
687
|
readonly authorization?: string
|
|
426
688
|
}
|
|
427
689
|
|
|
690
|
+
/**
|
|
691
|
+
* Request parameters for updateLeadSync operation in LeadsApi.
|
|
692
|
+
* @export
|
|
693
|
+
* @interface LeadsApiUpdateLeadSyncRequest
|
|
694
|
+
*/
|
|
695
|
+
export interface LeadsApiUpdateLeadSyncRequest {
|
|
696
|
+
/**
|
|
697
|
+
* Unique identifier for the object.
|
|
698
|
+
* @type {string}
|
|
699
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
700
|
+
*/
|
|
701
|
+
readonly code: string
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @type {UpdateLeadRequestDto}
|
|
706
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
707
|
+
*/
|
|
708
|
+
readonly updateLeadRequestDto: UpdateLeadRequestDto
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Bearer Token
|
|
712
|
+
* @type {string}
|
|
713
|
+
* @memberof LeadsApiUpdateLeadSync
|
|
714
|
+
*/
|
|
715
|
+
readonly authorization?: string
|
|
716
|
+
}
|
|
717
|
+
|
|
428
718
|
/**
|
|
429
719
|
* LeadsApi - object-oriented interface
|
|
430
720
|
* @export
|
|
@@ -444,6 +734,30 @@ export class LeadsApi extends BaseAPI {
|
|
|
444
734
|
return LeadsApiFp(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
445
735
|
}
|
|
446
736
|
|
|
737
|
+
/**
|
|
738
|
+
* 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\'.
|
|
739
|
+
* @summary Create the lead asynchronously
|
|
740
|
+
* @param {LeadsApiCreateLeadAsyncRequest} requestParameters Request parameters.
|
|
741
|
+
* @param {*} [options] Override http request option.
|
|
742
|
+
* @throws {RequiredError}
|
|
743
|
+
* @memberof LeadsApi
|
|
744
|
+
*/
|
|
745
|
+
public createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig) {
|
|
746
|
+
return LeadsApiFp(this.configuration).createLeadAsync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* 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.
|
|
751
|
+
* @summary Create the lead
|
|
752
|
+
* @param {LeadsApiCreateLeadSyncRequest} requestParameters Request parameters.
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
* @memberof LeadsApi
|
|
756
|
+
*/
|
|
757
|
+
public createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig) {
|
|
758
|
+
return LeadsApiFp(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
759
|
+
}
|
|
760
|
+
|
|
447
761
|
/**
|
|
448
762
|
* 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.
|
|
449
763
|
* @summary Retrieve the lead
|
|
@@ -479,4 +793,16 @@ export class LeadsApi extends BaseAPI {
|
|
|
479
793
|
public updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
|
|
480
794
|
return LeadsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
481
795
|
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
799
|
+
* @summary Update the lead
|
|
800
|
+
* @param {LeadsApiUpdateLeadSyncRequest} requestParameters Request parameters.
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
* @memberof LeadsApi
|
|
804
|
+
*/
|
|
805
|
+
public updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig) {
|
|
806
|
+
return LeadsApiFp(this.configuration).updateLeadSync(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
807
|
+
}
|
|
482
808
|
}
|
package/api.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { AddressCompletionsValidationsApi } from './api';
|
|
28
|
+
import { DefaultApi } from './api';
|
|
28
29
|
import { DocumentsApi } from './api';
|
|
29
30
|
import { LeadsApi } from './api';
|
|
30
31
|
import { NotificationsApi } from './api';
|
|
@@ -33,6 +34,7 @@ import { ProductsApi } from './api';
|
|
|
33
34
|
|
|
34
35
|
|
|
35
36
|
export * from './api/address-completions-validations-api';
|
|
37
|
+
export * from './api/default-api';
|
|
36
38
|
export * from './api/documents-api';
|
|
37
39
|
export * from './api/leads-api';
|
|
38
40
|
export * from './api/notifications-api';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { InlineResponse200 } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* DefaultApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* DefaultApi - functional programming interface
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* DefaultApi - factory interface
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* DefaultApi - object-oriented interface
|
|
54
|
+
* @export
|
|
55
|
+
* @class DefaultApi
|
|
56
|
+
* @extends {BaseAPI}
|
|
57
|
+
*/
|
|
58
|
+
export declare class DefaultApi extends BaseAPI {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof DefaultApi
|
|
64
|
+
*/
|
|
65
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
66
|
+
}
|