@emilgroup/public-api-sdk-node 1.0.1 → 1.0.2
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 -1
- package/api/notifications-api.ts +163 -0
- package/api/products-api.ts +135 -20
- package/api.ts +2 -0
- package/dist/api/notifications-api.d.ts +92 -0
- package/dist/api/notifications-api.js +224 -0
- package/dist/api/products-api.d.ts +72 -11
- package/dist/api/products-api.js +114 -18
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-account-request-dto.d.ts +12 -0
- package/dist/models/create-custom-application-request-dto.d.ts +1 -0
- package/dist/models/create-custom-application-request-dto.js +2 -1
- package/dist/models/create-estimated-invoice-request-dto.d.ts +14 -6
- package/dist/models/create-estimated-invoice-request-dto.js +2 -1
- package/dist/models/create-lead-request-dto.d.ts +7 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/premium-override-dto.d.ts +53 -0
- package/dist/models/premium-override-dto.js +25 -0
- package/dist/models/premium-override-request-dto.d.ts +25 -0
- package/dist/models/premium-override-request-dto.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +36 -0
- package/dist/models/send-notification-request-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +84 -0
- package/dist/models/update-lead-request-dto.js +22 -0
- package/models/create-account-request-dto.ts +12 -0
- package/models/create-custom-application-request-dto.ts +2 -1
- package/models/create-estimated-invoice-request-dto.ts +15 -7
- package/models/create-lead-request-dto.ts +7 -0
- package/models/index.ts +4 -0
- package/models/premium-override-dto.ts +63 -0
- package/models/premium-override-request-dto.ts +31 -0
- package/models/send-notification-request-dto.ts +42 -0
- package/models/update-lead-request-dto.ts +93 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.npmignore
|
|
3
|
-
.openapi-generator-ignore
|
|
4
3
|
README.md
|
|
5
4
|
api.ts
|
|
6
5
|
api/documents-api.ts
|
|
6
|
+
api/notifications-api.ts
|
|
7
7
|
api/payment-setup-api.ts
|
|
8
8
|
api/products-api.ts
|
|
9
9
|
base.ts
|
|
@@ -25,6 +25,10 @@ models/initiate-braintree-payment-setup-request-dto.ts
|
|
|
25
25
|
models/initiate-payment-setup-request-dto.ts
|
|
26
26
|
models/initiate-stripe-payment-setup-request-dto.ts
|
|
27
27
|
models/policy-object-request-dto.ts
|
|
28
|
+
models/premium-override-dto.ts
|
|
29
|
+
models/premium-override-request-dto.ts
|
|
30
|
+
models/send-notification-request-dto.ts
|
|
31
|
+
models/update-lead-request-dto.ts
|
|
28
32
|
models/uploaded-document-dto.ts
|
|
29
33
|
package.json
|
|
30
34
|
tsconfig.json
|
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
*
|
|
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 { SendNotificationRequestDto } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
29
|
+
/**
|
|
30
|
+
* NotificationsApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
38
|
+
* @param {string} [authorization] Bearer Token
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
sendNotification: async (sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
// verify required parameter 'sendNotificationRequestDto' is not null or undefined
|
|
44
|
+
assertParamExists('sendNotification', 'sendNotificationRequestDto', sendNotificationRequestDto)
|
|
45
|
+
const localVarPath = `/publicapi/v1/emails/send`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
let baseAccessToken;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
baseAccessToken = configuration.accessToken;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication bearer required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
+
|
|
63
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
64
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
70
|
+
|
|
71
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
72
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
73
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
74
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sendNotificationRequestDto, localVarRequestOptions, configuration)
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
url: toPathString(localVarUrlObj),
|
|
78
|
+
options: localVarRequestOptions,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* NotificationsApi - functional programming interface
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const NotificationsApiFp = function(configuration?: Configuration) {
|
|
89
|
+
const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
|
|
90
|
+
return {
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
94
|
+
* @param {string} [authorization] Bearer Token
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
async sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendNotification(sendNotificationRequestDto, authorization, options);
|
|
100
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* NotificationsApi - factory interface
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const NotificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
110
|
+
const localVarFp = NotificationsApiFp(configuration)
|
|
111
|
+
return {
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
115
|
+
* @param {string} [authorization] Bearer Token
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
120
|
+
return localVarFp.sendNotification(sendNotificationRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Request parameters for sendNotification operation in NotificationsApi.
|
|
127
|
+
* @export
|
|
128
|
+
* @interface NotificationsApiSendNotificationRequest
|
|
129
|
+
*/
|
|
130
|
+
export interface NotificationsApiSendNotificationRequest {
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {SendNotificationRequestDto}
|
|
134
|
+
* @memberof NotificationsApiSendNotification
|
|
135
|
+
*/
|
|
136
|
+
readonly sendNotificationRequestDto: SendNotificationRequestDto
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Bearer Token
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof NotificationsApiSendNotification
|
|
142
|
+
*/
|
|
143
|
+
readonly authorization?: string
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* NotificationsApi - object-oriented interface
|
|
148
|
+
* @export
|
|
149
|
+
* @class NotificationsApi
|
|
150
|
+
* @extends {BaseAPI}
|
|
151
|
+
*/
|
|
152
|
+
export class NotificationsApi extends BaseAPI {
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
* @memberof NotificationsApi
|
|
159
|
+
*/
|
|
160
|
+
public sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig) {
|
|
161
|
+
return NotificationsApiFp(this.configuration).sendNotification(requestParameters.sendNotificationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
162
|
+
}
|
|
163
|
+
}
|
package/api/products-api.ts
CHANGED
|
@@ -26,6 +26,8 @@ import { CreateCustomApplicationRequestDto } from '../models';
|
|
|
26
26
|
import { CreateEstimatedInvoiceRequestDto } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { CreateLeadRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { UpdateLeadRequestDto } from '../models';
|
|
29
31
|
// URLSearchParams not necessarily used
|
|
30
32
|
// @ts-ignore
|
|
31
33
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -257,6 +259,50 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
257
259
|
|
|
258
260
|
|
|
259
261
|
|
|
262
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
263
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
264
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
265
|
+
|
|
266
|
+
return {
|
|
267
|
+
url: toPathString(localVarUrlObj),
|
|
268
|
+
options: localVarRequestOptions,
|
|
269
|
+
};
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @param {string} code
|
|
274
|
+
* @param {string} [authorization] Bearer Token
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
getLead: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
279
|
+
// verify required parameter 'code' is not null or undefined
|
|
280
|
+
assertParamExists('getLead', 'code', code)
|
|
281
|
+
const localVarPath = `/publicapi/v1/leads/{code}`
|
|
282
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
285
|
+
let baseOptions;
|
|
286
|
+
let baseAccessToken;
|
|
287
|
+
if (configuration) {
|
|
288
|
+
baseOptions = configuration.baseOptions;
|
|
289
|
+
baseAccessToken = configuration.accessToken;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
293
|
+
const localVarHeaderParameter = {} as any;
|
|
294
|
+
const localVarQueryParameter = {} as any;
|
|
295
|
+
|
|
296
|
+
// authentication bearer required
|
|
297
|
+
// http bearer authentication required
|
|
298
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
299
|
+
|
|
300
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
301
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
260
306
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
307
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
308
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -313,13 +359,16 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
313
359
|
/**
|
|
314
360
|
*
|
|
315
361
|
* @param {string} productCode
|
|
362
|
+
* @param {string} allValues
|
|
316
363
|
* @param {string} [authorization] Bearer Token
|
|
317
364
|
* @param {*} [options] Override http request option.
|
|
318
365
|
* @throws {RequiredError}
|
|
319
366
|
*/
|
|
320
|
-
getProductFactors: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
367
|
+
getProductFactors: async (productCode: string, allValues: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
321
368
|
// verify required parameter 'productCode' is not null or undefined
|
|
322
369
|
assertParamExists('getProductFactors', 'productCode', productCode)
|
|
370
|
+
// verify required parameter 'allValues' is not null or undefined
|
|
371
|
+
assertParamExists('getProductFactors', 'allValues', allValues)
|
|
323
372
|
const localVarPath = `/publicapi/v1/products/{product_code}/product-factors`
|
|
324
373
|
.replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
|
|
325
374
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -339,6 +388,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
339
388
|
// http bearer authentication required
|
|
340
389
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
341
390
|
|
|
391
|
+
if (allValues !== undefined) {
|
|
392
|
+
localVarQueryParameter['all_values'] = allValues;
|
|
393
|
+
}
|
|
394
|
+
|
|
342
395
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
343
396
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
344
397
|
}
|
|
@@ -397,16 +450,16 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
397
450
|
/**
|
|
398
451
|
*
|
|
399
452
|
* @param {string} code
|
|
400
|
-
* @param {
|
|
453
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
401
454
|
* @param {string} [authorization] Bearer Token
|
|
402
455
|
* @param {*} [options] Override http request option.
|
|
403
456
|
* @throws {RequiredError}
|
|
404
457
|
*/
|
|
405
|
-
updateLead: async (code: string,
|
|
458
|
+
updateLead: async (code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
406
459
|
// verify required parameter 'code' is not null or undefined
|
|
407
460
|
assertParamExists('updateLead', 'code', code)
|
|
408
|
-
// verify required parameter '
|
|
409
|
-
assertParamExists('updateLead', '
|
|
461
|
+
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
462
|
+
assertParamExists('updateLead', 'updateLeadRequestDto', updateLeadRequestDto)
|
|
410
463
|
const localVarPath = `/publicapi/v1/leads/{code}`
|
|
411
464
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
412
465
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -437,7 +490,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
437
490
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
438
491
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
492
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
440
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
493
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateLeadRequestDto, localVarRequestOptions, configuration)
|
|
441
494
|
|
|
442
495
|
return {
|
|
443
496
|
url: toPathString(localVarUrlObj),
|
|
@@ -510,6 +563,17 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
510
563
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options);
|
|
511
564
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
512
565
|
},
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @param {string} code
|
|
569
|
+
* @param {string} [authorization] Bearer Token
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
async getLead(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, authorization, options);
|
|
575
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
576
|
+
},
|
|
513
577
|
/**
|
|
514
578
|
*
|
|
515
579
|
* @param {string} productCode
|
|
@@ -524,12 +588,13 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
524
588
|
/**
|
|
525
589
|
*
|
|
526
590
|
* @param {string} productCode
|
|
591
|
+
* @param {string} allValues
|
|
527
592
|
* @param {string} [authorization] Bearer Token
|
|
528
593
|
* @param {*} [options] Override http request option.
|
|
529
594
|
* @throws {RequiredError}
|
|
530
595
|
*/
|
|
531
|
-
async getProductFactors(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
532
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, authorization, options);
|
|
596
|
+
async getProductFactors(productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
597
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options);
|
|
533
598
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
534
599
|
},
|
|
535
600
|
/**
|
|
@@ -545,13 +610,13 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
545
610
|
/**
|
|
546
611
|
*
|
|
547
612
|
* @param {string} code
|
|
548
|
-
* @param {
|
|
613
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
549
614
|
* @param {string} [authorization] Bearer Token
|
|
550
615
|
* @param {*} [options] Override http request option.
|
|
551
616
|
* @throws {RequiredError}
|
|
552
617
|
*/
|
|
553
|
-
async updateLead(code: string,
|
|
554
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code,
|
|
618
|
+
async updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, updateLeadRequestDto, authorization, options);
|
|
555
620
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
556
621
|
},
|
|
557
622
|
}
|
|
@@ -615,6 +680,16 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
615
680
|
getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
616
681
|
return localVarFp.getInsuredObjects(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
617
682
|
},
|
|
683
|
+
/**
|
|
684
|
+
*
|
|
685
|
+
* @param {string} code
|
|
686
|
+
* @param {string} [authorization] Bearer Token
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
getLead(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
691
|
+
return localVarFp.getLead(code, authorization, options).then((request) => request(axios, basePath));
|
|
692
|
+
},
|
|
618
693
|
/**
|
|
619
694
|
*
|
|
620
695
|
* @param {string} productCode
|
|
@@ -628,12 +703,13 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
628
703
|
/**
|
|
629
704
|
*
|
|
630
705
|
* @param {string} productCode
|
|
706
|
+
* @param {string} allValues
|
|
631
707
|
* @param {string} [authorization] Bearer Token
|
|
632
708
|
* @param {*} [options] Override http request option.
|
|
633
709
|
* @throws {RequiredError}
|
|
634
710
|
*/
|
|
635
|
-
getProductFactors(productCode: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
636
|
-
return localVarFp.getProductFactors(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
711
|
+
getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
712
|
+
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
|
|
637
713
|
},
|
|
638
714
|
/**
|
|
639
715
|
*
|
|
@@ -647,13 +723,13 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
647
723
|
/**
|
|
648
724
|
*
|
|
649
725
|
* @param {string} code
|
|
650
|
-
* @param {
|
|
726
|
+
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
651
727
|
* @param {string} [authorization] Bearer Token
|
|
652
728
|
* @param {*} [options] Override http request option.
|
|
653
729
|
* @throws {RequiredError}
|
|
654
730
|
*/
|
|
655
|
-
updateLead(code: string,
|
|
656
|
-
return localVarFp.updateLead(code,
|
|
731
|
+
updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
732
|
+
return localVarFp.updateLead(code, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
657
733
|
},
|
|
658
734
|
};
|
|
659
735
|
};
|
|
@@ -770,6 +846,27 @@ export interface ProductsApiGetInsuredObjectsRequest {
|
|
|
770
846
|
readonly authorization?: string
|
|
771
847
|
}
|
|
772
848
|
|
|
849
|
+
/**
|
|
850
|
+
* Request parameters for getLead operation in ProductsApi.
|
|
851
|
+
* @export
|
|
852
|
+
* @interface ProductsApiGetLeadRequest
|
|
853
|
+
*/
|
|
854
|
+
export interface ProductsApiGetLeadRequest {
|
|
855
|
+
/**
|
|
856
|
+
*
|
|
857
|
+
* @type {string}
|
|
858
|
+
* @memberof ProductsApiGetLead
|
|
859
|
+
*/
|
|
860
|
+
readonly code: string
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Bearer Token
|
|
864
|
+
* @type {string}
|
|
865
|
+
* @memberof ProductsApiGetLead
|
|
866
|
+
*/
|
|
867
|
+
readonly authorization?: string
|
|
868
|
+
}
|
|
869
|
+
|
|
773
870
|
/**
|
|
774
871
|
* Request parameters for getProductCustomCss operation in ProductsApi.
|
|
775
872
|
* @export
|
|
@@ -804,6 +901,13 @@ export interface ProductsApiGetProductFactorsRequest {
|
|
|
804
901
|
*/
|
|
805
902
|
readonly productCode: string
|
|
806
903
|
|
|
904
|
+
/**
|
|
905
|
+
*
|
|
906
|
+
* @type {string}
|
|
907
|
+
* @memberof ProductsApiGetProductFactors
|
|
908
|
+
*/
|
|
909
|
+
readonly allValues: string
|
|
910
|
+
|
|
807
911
|
/**
|
|
808
912
|
* Bearer Token
|
|
809
913
|
* @type {string}
|
|
@@ -841,10 +945,10 @@ export interface ProductsApiUpdateLeadRequest {
|
|
|
841
945
|
|
|
842
946
|
/**
|
|
843
947
|
*
|
|
844
|
-
* @type {
|
|
948
|
+
* @type {UpdateLeadRequestDto}
|
|
845
949
|
* @memberof ProductsApiUpdateLead
|
|
846
950
|
*/
|
|
847
|
-
readonly
|
|
951
|
+
readonly updateLeadRequestDto: UpdateLeadRequestDto
|
|
848
952
|
|
|
849
953
|
/**
|
|
850
954
|
* Bearer Token
|
|
@@ -916,6 +1020,17 @@ export class ProductsApi extends BaseAPI {
|
|
|
916
1020
|
return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
917
1021
|
}
|
|
918
1022
|
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @param {ProductsApiGetLeadRequest} requestParameters Request parameters.
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
* @memberof ProductsApi
|
|
1029
|
+
*/
|
|
1030
|
+
public getLead(requestParameters: ProductsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
1031
|
+
return ProductsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1032
|
+
}
|
|
1033
|
+
|
|
919
1034
|
/**
|
|
920
1035
|
*
|
|
921
1036
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
@@ -935,7 +1050,7 @@ export class ProductsApi extends BaseAPI {
|
|
|
935
1050
|
* @memberof ProductsApi
|
|
936
1051
|
*/
|
|
937
1052
|
public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
|
|
938
|
-
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1053
|
+
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
939
1054
|
}
|
|
940
1055
|
|
|
941
1056
|
/**
|
|
@@ -957,6 +1072,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
957
1072
|
* @memberof ProductsApi
|
|
958
1073
|
*/
|
|
959
1074
|
public updateLead(requestParameters: ProductsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
|
|
960
|
-
return ProductsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.
|
|
1075
|
+
return ProductsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
961
1076
|
}
|
|
962
1077
|
}
|
package/api.ts
CHANGED
|
@@ -25,11 +25,13 @@ 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 { DocumentsApi } from './api';
|
|
28
|
+
import { NotificationsApi } from './api';
|
|
28
29
|
import { PaymentSetupApi } from './api';
|
|
29
30
|
import { ProductsApi } from './api';
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
export * from './api/documents-api';
|
|
34
|
+
export * from './api/notifications-api';
|
|
33
35
|
export * from './api/payment-setup-api';
|
|
34
36
|
export * from './api/products-api';
|
|
35
37
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PublicAPI
|
|
3
|
+
* The EMIL Public API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 { SendNotificationRequestDto } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* NotificationsApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const NotificationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
24
|
+
* @param {string} [authorization] Bearer Token
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
sendNotification: (sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* NotificationsApi - functional programming interface
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const NotificationsApiFp: (configuration?: Configuration) => {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
38
|
+
* @param {string} [authorization] Bearer Token
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* NotificationsApi - factory interface
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const NotificationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
52
|
+
* @param {string} [authorization] Bearer Token
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Request parameters for sendNotification operation in NotificationsApi.
|
|
60
|
+
* @export
|
|
61
|
+
* @interface NotificationsApiSendNotificationRequest
|
|
62
|
+
*/
|
|
63
|
+
export interface NotificationsApiSendNotificationRequest {
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {SendNotificationRequestDto}
|
|
67
|
+
* @memberof NotificationsApiSendNotification
|
|
68
|
+
*/
|
|
69
|
+
readonly sendNotificationRequestDto: SendNotificationRequestDto;
|
|
70
|
+
/**
|
|
71
|
+
* Bearer Token
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof NotificationsApiSendNotification
|
|
74
|
+
*/
|
|
75
|
+
readonly authorization?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* NotificationsApi - object-oriented interface
|
|
79
|
+
* @export
|
|
80
|
+
* @class NotificationsApi
|
|
81
|
+
* @extends {BaseAPI}
|
|
82
|
+
*/
|
|
83
|
+
export declare class NotificationsApi extends BaseAPI {
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof NotificationsApi
|
|
90
|
+
*/
|
|
91
|
+
sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
92
|
+
}
|