@emilgroup/public-api-sdk 1.27.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 +1 -0
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +4 -4
- package/api/leads-api.ts +25 -12
- package/api/payments-setup-api.ts +21 -8
- package/base.ts +30 -9
- package/dist/api/booking-funnels-api.d.ts +4 -4
- package/dist/api/booking-funnels-api.js +4 -4
- package/dist/api/leads-api.d.ts +17 -8
- package/dist/api/leads-api.js +17 -12
- package/dist/api/payments-setup-api.d.ts +13 -4
- package/dist/api/payments-setup-api.js +13 -8
- package/dist/base.d.ts +3 -2
- package/dist/base.js +39 -21
- package/dist/models/complete-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/create-estimated-invoice-response-class.d.ts +7 -1
- package/dist/models/create-lead-request-dto.d.ts +6 -11
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/link-lead-partner-request-dto.d.ts +36 -0
- package/dist/models/link-lead-partner-request-dto.js +15 -0
- package/dist/models/partner-class.d.ts +1 -1
- package/dist/models/update-lead-request-dto.d.ts +7 -0
- package/models/complete-payment-setup-request-dto.ts +6 -0
- package/models/create-estimated-invoice-response-class.ts +7 -1
- package/models/create-lead-request-dto.ts +6 -11
- package/models/index.ts +1 -0
- package/models/initiate-payment-setup-request-dto.ts +6 -0
- package/models/link-lead-partner-request-dto.ts +42 -0
- package/models/partner-class.ts +1 -1
- package/models/update-lead-request-dto.ts +7 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -71,6 +71,7 @@ models/lead-bank-account-class.ts
|
|
|
71
71
|
models/lead-class.ts
|
|
72
72
|
models/lead-policy-class.ts
|
|
73
73
|
models/lead-policy-object-class.ts
|
|
74
|
+
models/link-lead-partner-request-dto.ts
|
|
74
75
|
models/list-documents-response-class.ts
|
|
75
76
|
models/list-product-documents-response-class.ts
|
|
76
77
|
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@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.29.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.29.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -29,7 +29,7 @@ import { GetBookingFunnelResponseClass } from '../models';
|
|
|
29
29
|
export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
30
|
return {
|
|
31
31
|
/**
|
|
32
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
32
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
33
33
|
* @summary Retrieve the booking funnel
|
|
34
34
|
* @param {string} code Unique identifier for the object.
|
|
35
35
|
* @param {string} [authorization] Bearer Token
|
|
@@ -84,7 +84,7 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
|
|
|
84
84
|
const localVarAxiosParamCreator = BookingFunnelsApiAxiosParamCreator(configuration)
|
|
85
85
|
return {
|
|
86
86
|
/**
|
|
87
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
87
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
88
88
|
* @summary Retrieve the booking funnel
|
|
89
89
|
* @param {string} code Unique identifier for the object.
|
|
90
90
|
* @param {string} [authorization] Bearer Token
|
|
@@ -106,7 +106,7 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
|
|
|
106
106
|
const localVarFp = BookingFunnelsApiFp(configuration)
|
|
107
107
|
return {
|
|
108
108
|
/**
|
|
109
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
109
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
110
110
|
* @summary Retrieve the booking funnel
|
|
111
111
|
* @param {string} code Unique identifier for the object.
|
|
112
112
|
* @param {string} [authorization] Bearer Token
|
|
@@ -148,7 +148,7 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
148
148
|
*/
|
|
149
149
|
export class BookingFunnelsApi extends BaseAPI {
|
|
150
150
|
/**
|
|
151
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
151
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
152
152
|
* @summary Retrieve the booking funnel
|
|
153
153
|
* @param {BookingFunnelsApiGetBookingFunnelRequest} requestParameters Request parameters.
|
|
154
154
|
* @param {*} [options] Override http request option.
|
package/api/leads-api.ts
CHANGED
|
@@ -182,7 +182,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
182
182
|
};
|
|
183
183
|
},
|
|
184
184
|
/**
|
|
185
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
185
|
+
* 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.
|
|
186
186
|
* @summary Retrieve the lead
|
|
187
187
|
* @param {string} code Unique identifier for the object.
|
|
188
188
|
* @param {string} [authorization] Bearer Token
|
|
@@ -229,12 +229,16 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
229
229
|
/**
|
|
230
230
|
* This will initiate a lead code.
|
|
231
231
|
* @summary Initiate a lead code
|
|
232
|
+
* @param {string} productSlug
|
|
232
233
|
* @param {string} [authorization] Bearer Token
|
|
233
234
|
* @param {*} [options] Override http request option.
|
|
234
235
|
* @throws {RequiredError}
|
|
235
236
|
*/
|
|
236
|
-
initiateLead: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
237
|
-
|
|
237
|
+
initiateLead: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
238
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
239
|
+
assertParamExists('initiateLead', 'productSlug', productSlug)
|
|
240
|
+
const localVarPath = `/publicapi/v1/leads/initiate/{productSlug}`
|
|
241
|
+
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
238
242
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
243
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
240
244
|
let baseOptions;
|
|
@@ -416,7 +420,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
416
420
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
421
|
},
|
|
418
422
|
/**
|
|
419
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
423
|
+
* 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.
|
|
420
424
|
* @summary Retrieve the lead
|
|
421
425
|
* @param {string} code Unique identifier for the object.
|
|
422
426
|
* @param {string} [authorization] Bearer Token
|
|
@@ -430,12 +434,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
430
434
|
/**
|
|
431
435
|
* This will initiate a lead code.
|
|
432
436
|
* @summary Initiate a lead code
|
|
437
|
+
* @param {string} productSlug
|
|
433
438
|
* @param {string} [authorization] Bearer Token
|
|
434
439
|
* @param {*} [options] Override http request option.
|
|
435
440
|
* @throws {RequiredError}
|
|
436
441
|
*/
|
|
437
|
-
async initiateLead(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
|
|
438
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(authorization, options);
|
|
442
|
+
async initiateLead(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
|
|
443
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(productSlug, authorization, options);
|
|
439
444
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
440
445
|
},
|
|
441
446
|
/**
|
|
@@ -508,7 +513,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
508
513
|
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
509
514
|
},
|
|
510
515
|
/**
|
|
511
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
516
|
+
* 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.
|
|
512
517
|
* @summary Retrieve the lead
|
|
513
518
|
* @param {string} code Unique identifier for the object.
|
|
514
519
|
* @param {string} [authorization] Bearer Token
|
|
@@ -521,12 +526,13 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
521
526
|
/**
|
|
522
527
|
* This will initiate a lead code.
|
|
523
528
|
* @summary Initiate a lead code
|
|
529
|
+
* @param {string} productSlug
|
|
524
530
|
* @param {string} [authorization] Bearer Token
|
|
525
531
|
* @param {*} [options] Override http request option.
|
|
526
532
|
* @throws {RequiredError}
|
|
527
533
|
*/
|
|
528
|
-
initiateLead(authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
|
|
529
|
-
return localVarFp.initiateLead(authorization, options).then((request) => request(axios, basePath));
|
|
534
|
+
initiateLead(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
|
|
535
|
+
return localVarFp.initiateLead(productSlug, authorization, options).then((request) => request(axios, basePath));
|
|
530
536
|
},
|
|
531
537
|
/**
|
|
532
538
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -645,6 +651,13 @@ export interface LeadsApiGetLeadRequest {
|
|
|
645
651
|
* @interface LeadsApiInitiateLeadRequest
|
|
646
652
|
*/
|
|
647
653
|
export interface LeadsApiInitiateLeadRequest {
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @type {string}
|
|
657
|
+
* @memberof LeadsApiInitiateLead
|
|
658
|
+
*/
|
|
659
|
+
readonly productSlug: string
|
|
660
|
+
|
|
648
661
|
/**
|
|
649
662
|
* Bearer Token
|
|
650
663
|
* @type {string}
|
|
@@ -753,7 +766,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
753
766
|
}
|
|
754
767
|
|
|
755
768
|
/**
|
|
756
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
769
|
+
* 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
770
|
* @summary Retrieve the lead
|
|
758
771
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
759
772
|
* @param {*} [options] Override http request option.
|
|
@@ -772,8 +785,8 @@ export class LeadsApi extends BaseAPI {
|
|
|
772
785
|
* @throws {RequiredError}
|
|
773
786
|
* @memberof LeadsApi
|
|
774
787
|
*/
|
|
775
|
-
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest
|
|
776
|
-
return LeadsApiFp(this.configuration).initiateLead(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
788
|
+
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig) {
|
|
789
|
+
return LeadsApiFp(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
777
790
|
}
|
|
778
791
|
|
|
779
792
|
/**
|
|
@@ -91,13 +91,17 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
91
91
|
/**
|
|
92
92
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
93
93
|
* @summary Get public key and psp
|
|
94
|
+
* @param {string} productSlug
|
|
94
95
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
95
96
|
* @param {string} [authorization] Bearer Token
|
|
96
97
|
* @param {*} [options] Override http request option.
|
|
97
98
|
* @throws {RequiredError}
|
|
98
99
|
*/
|
|
99
|
-
getPublicPSPConfig: async (idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
|
-
|
|
100
|
+
getPublicPSPConfig: async (productSlug: string, idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
102
|
+
assertParamExists('getPublicPSPConfig', 'productSlug', productSlug)
|
|
103
|
+
const localVarPath = `/publicapi/v1/payment-setup/get-psp-config/{productSlug}`
|
|
104
|
+
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
101
105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
106
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
107
|
let baseOptions;
|
|
@@ -212,13 +216,14 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
|
|
|
212
216
|
/**
|
|
213
217
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
214
218
|
* @summary Get public key and psp
|
|
219
|
+
* @param {string} productSlug
|
|
215
220
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
216
221
|
* @param {string} [authorization] Bearer Token
|
|
217
222
|
* @param {*} [options] Override http request option.
|
|
218
223
|
* @throws {RequiredError}
|
|
219
224
|
*/
|
|
220
|
-
async getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
221
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options);
|
|
225
|
+
async getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options);
|
|
222
227
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
223
228
|
},
|
|
224
229
|
/**
|
|
@@ -259,13 +264,14 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
|
|
|
259
264
|
/**
|
|
260
265
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
261
266
|
* @summary Get public key and psp
|
|
267
|
+
* @param {string} productSlug
|
|
262
268
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
263
269
|
* @param {string} [authorization] Bearer Token
|
|
264
270
|
* @param {*} [options] Override http request option.
|
|
265
271
|
* @throws {RequiredError}
|
|
266
272
|
*/
|
|
267
|
-
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
268
|
-
return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
273
|
+
getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
274
|
+
return localVarFp.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
269
275
|
},
|
|
270
276
|
/**
|
|
271
277
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
@@ -316,6 +322,13 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
316
322
|
* @interface PaymentsSetupApiGetPublicPSPConfigRequest
|
|
317
323
|
*/
|
|
318
324
|
export interface PaymentsSetupApiGetPublicPSPConfigRequest {
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @type {string}
|
|
328
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
329
|
+
*/
|
|
330
|
+
readonly productSlug: string
|
|
331
|
+
|
|
319
332
|
/**
|
|
320
333
|
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
321
334
|
* @type {string}
|
|
@@ -386,8 +399,8 @@ export class PaymentsSetupApi extends BaseAPI {
|
|
|
386
399
|
* @throws {RequiredError}
|
|
387
400
|
* @memberof PaymentsSetupApi
|
|
388
401
|
*/
|
|
389
|
-
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest
|
|
390
|
-
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
402
|
+
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig) {
|
|
403
|
+
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
391
404
|
}
|
|
392
405
|
|
|
393
406
|
/**
|
package/base.ts
CHANGED
|
@@ -34,7 +34,7 @@ export const COLLECTION_FORMATS = {
|
|
|
34
34
|
|
|
35
35
|
export interface LoginClass {
|
|
36
36
|
accessToken: string;
|
|
37
|
-
permissions:
|
|
37
|
+
permissions: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export enum Environment {
|
|
@@ -64,6 +64,7 @@ export interface RequestArgs {
|
|
|
64
64
|
interface TokenData {
|
|
65
65
|
accessToken?: string;
|
|
66
66
|
username?: string;
|
|
67
|
+
permissions?: string;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
const NETWORK_ERROR_MESSAGE = "Network Error";
|
|
@@ -109,6 +110,14 @@ export class BaseAPI {
|
|
|
109
110
|
this.configuration.basePath = path;
|
|
110
111
|
}
|
|
111
112
|
|
|
113
|
+
getPermissions(): Array<string> {
|
|
114
|
+
if (!this.tokenData?.permissions) {
|
|
115
|
+
return [];
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return this.tokenData.permissions.split(',');
|
|
119
|
+
}
|
|
120
|
+
|
|
112
121
|
async authorize(username: string, password: string): Promise<void> {
|
|
113
122
|
const options: AxiosRequestConfig = {
|
|
114
123
|
method: 'POST',
|
|
@@ -123,25 +132,36 @@ export class BaseAPI {
|
|
|
123
132
|
|
|
124
133
|
const response = await globalAxios.request<LoginClass>(options);
|
|
125
134
|
|
|
126
|
-
const { data: { accessToken } } = response;
|
|
135
|
+
const { data: { accessToken, permissions } } = response;
|
|
127
136
|
|
|
128
137
|
this.configuration.username = username;
|
|
129
138
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
130
139
|
this.tokenData.username = username;
|
|
131
140
|
this.tokenData.accessToken = accessToken;
|
|
141
|
+
this.tokenData.permissions = permissions;
|
|
132
142
|
|
|
133
143
|
this.storeTokenData({
|
|
134
144
|
...this.tokenData
|
|
135
145
|
});
|
|
136
146
|
}
|
|
137
147
|
|
|
138
|
-
async refreshTokenInternal(): Promise<
|
|
148
|
+
async refreshTokenInternal(): Promise<LoginClass> {
|
|
139
149
|
const { username } = this.configuration;
|
|
140
150
|
|
|
141
151
|
if (!username) {
|
|
142
|
-
|
|
152
|
+
throw new Error('Failed to refresh token.');
|
|
143
153
|
}
|
|
144
154
|
|
|
155
|
+
const refreshTokenAxios = globalAxios.create()
|
|
156
|
+
refreshTokenAxios.interceptors.response.use(response => {
|
|
157
|
+
const { permissions } = response.data;
|
|
158
|
+
|
|
159
|
+
this.tokenData.permissions = permissions;
|
|
160
|
+
this.storeTokenData(this.tokenData);
|
|
161
|
+
|
|
162
|
+
return response;
|
|
163
|
+
})
|
|
164
|
+
|
|
145
165
|
const options: AxiosRequestConfig = {
|
|
146
166
|
method: 'POST',
|
|
147
167
|
url: `${this.configuration.basePath}/authservice/v1/refresh-token`,
|
|
@@ -152,9 +172,8 @@ export class BaseAPI {
|
|
|
152
172
|
withCredentials: true,
|
|
153
173
|
};
|
|
154
174
|
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
return accessToken;
|
|
175
|
+
const response = await refreshTokenAxios.request<LoginClass>(options);
|
|
176
|
+
return response.data;
|
|
158
177
|
}
|
|
159
178
|
|
|
160
179
|
private storeTokenData(tokenData?: TokenData) {
|
|
@@ -188,8 +207,9 @@ export class BaseAPI {
|
|
|
188
207
|
&& !originalConfig._retry) {
|
|
189
208
|
originalConfig._retry = true;
|
|
190
209
|
try {
|
|
191
|
-
|
|
210
|
+
const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
|
|
192
211
|
const accessToken = `Bearer ${tokenString}`;
|
|
212
|
+
this.tokenData.permissions = permissions;
|
|
193
213
|
|
|
194
214
|
delete originalConfig.headers['Authorization']
|
|
195
215
|
|
|
@@ -214,8 +234,9 @@ export class BaseAPI {
|
|
|
214
234
|
) {
|
|
215
235
|
_retry_count++;
|
|
216
236
|
try {
|
|
217
|
-
|
|
237
|
+
const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
|
|
218
238
|
const accessToken = `Bearer ${tokenString}`;
|
|
239
|
+
this.tokenData.permissions = permissions;
|
|
219
240
|
|
|
220
241
|
_retry = true;
|
|
221
242
|
originalConfig.headers['Authorization'] = accessToken;
|
|
@@ -19,7 +19,7 @@ import { GetBookingFunnelResponseClass } from '../models';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const BookingFunnelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
22
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
23
23
|
* @summary Retrieve the booking funnel
|
|
24
24
|
* @param {string} code Unique identifier for the object.
|
|
25
25
|
* @param {string} [authorization] Bearer Token
|
|
@@ -34,7 +34,7 @@ export declare const BookingFunnelsApiAxiosParamCreator: (configuration?: Config
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const BookingFunnelsApiFp: (configuration?: Configuration) => {
|
|
36
36
|
/**
|
|
37
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
37
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
38
38
|
* @summary Retrieve the booking funnel
|
|
39
39
|
* @param {string} code Unique identifier for the object.
|
|
40
40
|
* @param {string} [authorization] Bearer Token
|
|
@@ -49,7 +49,7 @@ export declare const BookingFunnelsApiFp: (configuration?: Configuration) => {
|
|
|
49
49
|
*/
|
|
50
50
|
export declare const BookingFunnelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
51
51
|
/**
|
|
52
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
52
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
53
53
|
* @summary Retrieve the booking funnel
|
|
54
54
|
* @param {string} code Unique identifier for the object.
|
|
55
55
|
* @param {string} [authorization] Bearer Token
|
|
@@ -85,7 +85,7 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
85
85
|
*/
|
|
86
86
|
export declare class BookingFunnelsApi extends BaseAPI {
|
|
87
87
|
/**
|
|
88
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
88
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
89
89
|
* @summary Retrieve the booking funnel
|
|
90
90
|
* @param {BookingFunnelsApiGetBookingFunnelRequest} requestParameters Request parameters.
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
@@ -93,7 +93,7 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
96
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
97
97
|
* @summary Retrieve the booking funnel
|
|
98
98
|
* @param {string} code Unique identifier for the object.
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -151,7 +151,7 @@ var BookingFunnelsApiFp = function (configuration) {
|
|
|
151
151
|
var localVarAxiosParamCreator = (0, exports.BookingFunnelsApiAxiosParamCreator)(configuration);
|
|
152
152
|
return {
|
|
153
153
|
/**
|
|
154
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
154
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
155
155
|
* @summary Retrieve the booking funnel
|
|
156
156
|
* @param {string} code Unique identifier for the object.
|
|
157
157
|
* @param {string} [authorization] Bearer Token
|
|
@@ -182,7 +182,7 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
|
|
|
182
182
|
var localVarFp = (0, exports.BookingFunnelsApiFp)(configuration);
|
|
183
183
|
return {
|
|
184
184
|
/**
|
|
185
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
185
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
186
186
|
* @summary Retrieve the booking funnel
|
|
187
187
|
* @param {string} code Unique identifier for the object.
|
|
188
188
|
* @param {string} [authorization] Bearer Token
|
|
@@ -207,7 +207,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
|
|
|
207
207
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
210
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
211
211
|
* @summary Retrieve the booking funnel
|
|
212
212
|
* @param {BookingFunnelsApiGetBookingFunnelRequest} requestParameters Request parameters.
|
|
213
213
|
* @param {*} [options] Override http request option.
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
52
52
|
*/
|
|
53
53
|
createLeadSync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
55
|
+
* 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.
|
|
56
56
|
* @summary Retrieve the lead
|
|
57
57
|
* @param {string} code Unique identifier for the object.
|
|
58
58
|
* @param {string} [authorization] Bearer Token
|
|
@@ -63,11 +63,12 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
63
63
|
/**
|
|
64
64
|
* This will initiate a lead code.
|
|
65
65
|
* @summary Initiate a lead code
|
|
66
|
+
* @param {string} productSlug
|
|
66
67
|
* @param {string} [authorization] Bearer Token
|
|
67
68
|
* @param {*} [options] Override http request option.
|
|
68
69
|
* @throws {RequiredError}
|
|
69
70
|
*/
|
|
70
|
-
initiateLead: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
|
+
initiateLead: (productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
72
|
/**
|
|
72
73
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
73
74
|
* @summary Update the lead
|
|
@@ -122,7 +123,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
122
123
|
*/
|
|
123
124
|
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
124
125
|
/**
|
|
125
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
126
|
+
* 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.
|
|
126
127
|
* @summary Retrieve the lead
|
|
127
128
|
* @param {string} code Unique identifier for the object.
|
|
128
129
|
* @param {string} [authorization] Bearer Token
|
|
@@ -133,11 +134,12 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
133
134
|
/**
|
|
134
135
|
* This will initiate a lead code.
|
|
135
136
|
* @summary Initiate a lead code
|
|
137
|
+
* @param {string} productSlug
|
|
136
138
|
* @param {string} [authorization] Bearer Token
|
|
137
139
|
* @param {*} [options] Override http request option.
|
|
138
140
|
* @throws {RequiredError}
|
|
139
141
|
*/
|
|
140
|
-
initiateLead(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>>;
|
|
142
|
+
initiateLead(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>>;
|
|
141
143
|
/**
|
|
142
144
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
143
145
|
* @summary Update the lead
|
|
@@ -192,7 +194,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
192
194
|
*/
|
|
193
195
|
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
194
196
|
/**
|
|
195
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
197
|
+
* 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
198
|
* @summary Retrieve the lead
|
|
197
199
|
* @param {string} code Unique identifier for the object.
|
|
198
200
|
* @param {string} [authorization] Bearer Token
|
|
@@ -203,11 +205,12 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
203
205
|
/**
|
|
204
206
|
* This will initiate a lead code.
|
|
205
207
|
* @summary Initiate a lead code
|
|
208
|
+
* @param {string} productSlug
|
|
206
209
|
* @param {string} [authorization] Bearer Token
|
|
207
210
|
* @param {*} [options] Override http request option.
|
|
208
211
|
* @throws {RequiredError}
|
|
209
212
|
*/
|
|
210
|
-
initiateLead(authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass>;
|
|
213
|
+
initiateLead(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass>;
|
|
211
214
|
/**
|
|
212
215
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
213
216
|
* @summary Update the lead
|
|
@@ -311,6 +314,12 @@ export interface LeadsApiGetLeadRequest {
|
|
|
311
314
|
* @interface LeadsApiInitiateLeadRequest
|
|
312
315
|
*/
|
|
313
316
|
export interface LeadsApiInitiateLeadRequest {
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @type {string}
|
|
320
|
+
* @memberof LeadsApiInitiateLead
|
|
321
|
+
*/
|
|
322
|
+
readonly productSlug: string;
|
|
314
323
|
/**
|
|
315
324
|
* Bearer Token
|
|
316
325
|
* @type {string}
|
|
@@ -403,7 +412,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
403
412
|
*/
|
|
404
413
|
createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
405
414
|
/**
|
|
406
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
415
|
+
* 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.
|
|
407
416
|
* @summary Retrieve the lead
|
|
408
417
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
409
418
|
* @param {*} [options] Override http request option.
|
|
@@ -419,7 +428,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
419
428
|
* @throws {RequiredError}
|
|
420
429
|
* @memberof LeadsApi
|
|
421
430
|
*/
|
|
422
|
-
initiateLead(requestParameters
|
|
431
|
+
initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any>>;
|
|
423
432
|
/**
|
|
424
433
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
425
434
|
* @summary Update the lead
|
package/dist/api/leads-api.js
CHANGED
|
@@ -240,7 +240,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
240
240
|
});
|
|
241
241
|
},
|
|
242
242
|
/**
|
|
243
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
243
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
244
244
|
* @summary Retrieve the lead
|
|
245
245
|
* @param {string} code Unique identifier for the object.
|
|
246
246
|
* @param {string} [authorization] Bearer Token
|
|
@@ -290,18 +290,22 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
290
290
|
/**
|
|
291
291
|
* This will initiate a lead code.
|
|
292
292
|
* @summary Initiate a lead code
|
|
293
|
+
* @param {string} productSlug
|
|
293
294
|
* @param {string} [authorization] Bearer Token
|
|
294
295
|
* @param {*} [options] Override http request option.
|
|
295
296
|
* @throws {RequiredError}
|
|
296
297
|
*/
|
|
297
|
-
initiateLead: function (authorization, options) {
|
|
298
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
298
299
|
if (options === void 0) { options = {}; }
|
|
299
300
|
return __awaiter(_this, void 0, void 0, function () {
|
|
300
301
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
301
302
|
return __generator(this, function (_a) {
|
|
302
303
|
switch (_a.label) {
|
|
303
304
|
case 0:
|
|
304
|
-
|
|
305
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
306
|
+
(0, common_1.assertParamExists)('initiateLead', 'productSlug', productSlug);
|
|
307
|
+
localVarPath = "/publicapi/v1/leads/initiate/{productSlug}"
|
|
308
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
305
309
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
306
310
|
if (configuration) {
|
|
307
311
|
baseOptions = configuration.baseOptions;
|
|
@@ -511,7 +515,7 @@ var LeadsApiFp = function (configuration) {
|
|
|
511
515
|
});
|
|
512
516
|
},
|
|
513
517
|
/**
|
|
514
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
518
|
+
* 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.
|
|
515
519
|
* @summary Retrieve the lead
|
|
516
520
|
* @param {string} code Unique identifier for the object.
|
|
517
521
|
* @param {string} [authorization] Bearer Token
|
|
@@ -534,16 +538,17 @@ var LeadsApiFp = function (configuration) {
|
|
|
534
538
|
/**
|
|
535
539
|
* This will initiate a lead code.
|
|
536
540
|
* @summary Initiate a lead code
|
|
541
|
+
* @param {string} productSlug
|
|
537
542
|
* @param {string} [authorization] Bearer Token
|
|
538
543
|
* @param {*} [options] Override http request option.
|
|
539
544
|
* @throws {RequiredError}
|
|
540
545
|
*/
|
|
541
|
-
initiateLead: function (authorization, options) {
|
|
546
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
542
547
|
return __awaiter(this, void 0, void 0, function () {
|
|
543
548
|
var localVarAxiosArgs;
|
|
544
549
|
return __generator(this, function (_a) {
|
|
545
550
|
switch (_a.label) {
|
|
546
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(authorization, options)];
|
|
551
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(productSlug, authorization, options)];
|
|
547
552
|
case 1:
|
|
548
553
|
localVarAxiosArgs = _a.sent();
|
|
549
554
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -639,7 +644,7 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
639
644
|
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
640
645
|
},
|
|
641
646
|
/**
|
|
642
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
647
|
+
* 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.
|
|
643
648
|
* @summary Retrieve the lead
|
|
644
649
|
* @param {string} code Unique identifier for the object.
|
|
645
650
|
* @param {string} [authorization] Bearer Token
|
|
@@ -652,12 +657,13 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
652
657
|
/**
|
|
653
658
|
* This will initiate a lead code.
|
|
654
659
|
* @summary Initiate a lead code
|
|
660
|
+
* @param {string} productSlug
|
|
655
661
|
* @param {string} [authorization] Bearer Token
|
|
656
662
|
* @param {*} [options] Override http request option.
|
|
657
663
|
* @throws {RequiredError}
|
|
658
664
|
*/
|
|
659
|
-
initiateLead: function (authorization, options) {
|
|
660
|
-
return localVarFp.initiateLead(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
665
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
666
|
+
return localVarFp.initiateLead(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
661
667
|
},
|
|
662
668
|
/**
|
|
663
669
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -734,7 +740,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
734
740
|
return (0, exports.LeadsApiFp)(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
735
741
|
};
|
|
736
742
|
/**
|
|
737
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
743
|
+
* 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.
|
|
738
744
|
* @summary Retrieve the lead
|
|
739
745
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
740
746
|
* @param {*} [options] Override http request option.
|
|
@@ -755,8 +761,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
755
761
|
*/
|
|
756
762
|
LeadsApi.prototype.initiateLead = function (requestParameters, options) {
|
|
757
763
|
var _this = this;
|
|
758
|
-
|
|
759
|
-
return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
764
|
+
return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
760
765
|
};
|
|
761
766
|
/**
|
|
762
767
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|