@emilgroup/customer-sdk-node 1.39.1-beta.2 → 1.40.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/leads-api.ts +38 -38
- package/base.ts +23 -13
- package/dist/api/leads-api.d.ts +24 -24
- package/dist/api/leads-api.js +34 -34
- package/dist/base.d.ts +4 -2
- package/dist/base.js +37 -28
- package/dist/models/grpc-update-lead-request-dto.d.ts +57 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/lead-class.d.ts +1 -1
- package/dist/models/update-lead-request-dto.d.ts +0 -6
- package/models/grpc-update-lead-request-dto.ts +63 -0
- package/models/index.ts +1 -0
- package/models/lead-class.ts +1 -1
- package/models/update-lead-request-dto.ts +0 -6
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -51,6 +51,7 @@ models/get-customer-response-class.ts
|
|
|
51
51
|
models/get-lead-response-class.ts
|
|
52
52
|
models/get-policy-response-class.ts
|
|
53
53
|
models/get-product-response-class.ts
|
|
54
|
+
models/grpc-update-lead-request-dto.ts
|
|
54
55
|
models/index.ts
|
|
55
56
|
models/initiate-auth-request-dto.ts
|
|
56
57
|
models/initiate-auth-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/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.40.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.40.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -94,22 +94,22 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
/**
|
|
97
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
97
|
+
* 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.
|
|
98
98
|
* @summary Retrieve the lead
|
|
99
|
-
* @param {string}
|
|
99
|
+
* @param {string} code Unique identifier for the object.
|
|
100
100
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
101
101
|
* @param {string} [authorization] Bearer Token
|
|
102
102
|
* @param {string} [expand]
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
getLead: async (
|
|
107
|
-
// verify required parameter '
|
|
108
|
-
assertParamExists('getLead', '
|
|
106
|
+
getLead: async (code: string, customerCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
+
// verify required parameter 'code' is not null or undefined
|
|
108
|
+
assertParamExists('getLead', 'code', code)
|
|
109
109
|
// verify required parameter 'customerCode' is not null or undefined
|
|
110
110
|
assertParamExists('getLead', 'customerCode', customerCode)
|
|
111
|
-
const localVarPath = `/v1/customers/{customerCode}/leads/{
|
|
112
|
-
.replace(`{${"
|
|
111
|
+
const localVarPath = `/v1/customers/{customerCode}/leads/{code}`
|
|
112
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
113
113
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
114
114
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
115
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -148,7 +148,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
148
148
|
};
|
|
149
149
|
},
|
|
150
150
|
/**
|
|
151
|
-
* Returns a list of leads you have previously created.
|
|
151
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
152
152
|
* @summary List leads
|
|
153
153
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
154
154
|
* @param {string} [authorization] Bearer Token
|
|
@@ -230,22 +230,22 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
230
230
|
/**
|
|
231
231
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
232
232
|
* @summary Update the lead
|
|
233
|
-
* @param {string}
|
|
233
|
+
* @param {string} code Unique identifier for the object.
|
|
234
234
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
235
235
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
236
236
|
* @param {string} [authorization] Bearer Token
|
|
237
237
|
* @param {*} [options] Override http request option.
|
|
238
238
|
* @throws {RequiredError}
|
|
239
239
|
*/
|
|
240
|
-
updateLead: async (
|
|
241
|
-
// verify required parameter '
|
|
242
|
-
assertParamExists('updateLead', '
|
|
240
|
+
updateLead: async (code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
241
|
+
// verify required parameter 'code' is not null or undefined
|
|
242
|
+
assertParamExists('updateLead', 'code', code)
|
|
243
243
|
// verify required parameter 'customerCode' is not null or undefined
|
|
244
244
|
assertParamExists('updateLead', 'customerCode', customerCode)
|
|
245
245
|
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
246
246
|
assertParamExists('updateLead', 'updateLeadRequestDto', updateLeadRequestDto)
|
|
247
|
-
const localVarPath = `/v1/customers/{customerCode}/leads/{
|
|
248
|
-
.replace(`{${"
|
|
247
|
+
const localVarPath = `/v1/customers/{customerCode}/leads/{code}`
|
|
248
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
249
249
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
250
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -306,21 +306,21 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
306
306
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
307
|
},
|
|
308
308
|
/**
|
|
309
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
309
|
+
* 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
310
|
* @summary Retrieve the lead
|
|
311
|
-
* @param {string}
|
|
311
|
+
* @param {string} code Unique identifier for the object.
|
|
312
312
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
313
313
|
* @param {string} [authorization] Bearer Token
|
|
314
314
|
* @param {string} [expand]
|
|
315
315
|
* @param {*} [options] Override http request option.
|
|
316
316
|
* @throws {RequiredError}
|
|
317
317
|
*/
|
|
318
|
-
async getLead(
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(
|
|
318
|
+
async getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, customerCode, authorization, expand, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
},
|
|
322
322
|
/**
|
|
323
|
-
* Returns a list of leads you have previously created.
|
|
323
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
324
324
|
* @summary List leads
|
|
325
325
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
326
326
|
* @param {string} [authorization] Bearer Token
|
|
@@ -341,15 +341,15 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
341
341
|
/**
|
|
342
342
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
343
343
|
* @summary Update the lead
|
|
344
|
-
* @param {string}
|
|
344
|
+
* @param {string} code Unique identifier for the object.
|
|
345
345
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
346
346
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
347
347
|
* @param {string} [authorization] Bearer Token
|
|
348
348
|
* @param {*} [options] Override http request option.
|
|
349
349
|
* @throws {RequiredError}
|
|
350
350
|
*/
|
|
351
|
-
async updateLead(
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(
|
|
351
|
+
async updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>> {
|
|
352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, customerCode, updateLeadRequestDto, authorization, options);
|
|
353
353
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
354
|
},
|
|
355
355
|
}
|
|
@@ -375,20 +375,20 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
375
375
|
return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
376
376
|
},
|
|
377
377
|
/**
|
|
378
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
378
|
+
* 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.
|
|
379
379
|
* @summary Retrieve the lead
|
|
380
|
-
* @param {string}
|
|
380
|
+
* @param {string} code Unique identifier for the object.
|
|
381
381
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
382
382
|
* @param {string} [authorization] Bearer Token
|
|
383
383
|
* @param {string} [expand]
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
*/
|
|
387
|
-
getLead(
|
|
388
|
-
return localVarFp.getLead(
|
|
387
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
|
|
388
|
+
return localVarFp.getLead(code, customerCode, authorization, expand, options).then((request) => request(axios, basePath));
|
|
389
389
|
},
|
|
390
390
|
/**
|
|
391
|
-
* Returns a list of leads you have previously created.
|
|
391
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
392
392
|
* @summary List leads
|
|
393
393
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
394
394
|
* @param {string} [authorization] Bearer Token
|
|
@@ -408,15 +408,15 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
408
408
|
/**
|
|
409
409
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
410
410
|
* @summary Update the lead
|
|
411
|
-
* @param {string}
|
|
411
|
+
* @param {string} code Unique identifier for the object.
|
|
412
412
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
413
413
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
414
414
|
* @param {string} [authorization] Bearer Token
|
|
415
415
|
* @param {*} [options] Override http request option.
|
|
416
416
|
* @throws {RequiredError}
|
|
417
417
|
*/
|
|
418
|
-
updateLead(
|
|
419
|
-
return localVarFp.updateLead(
|
|
418
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass> {
|
|
419
|
+
return localVarFp.updateLead(code, customerCode, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
420
420
|
},
|
|
421
421
|
};
|
|
422
422
|
};
|
|
@@ -456,11 +456,11 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
456
456
|
*/
|
|
457
457
|
export interface LeadsApiGetLeadRequest {
|
|
458
458
|
/**
|
|
459
|
-
*
|
|
459
|
+
* Unique identifier for the object.
|
|
460
460
|
* @type {string}
|
|
461
461
|
* @memberof LeadsApiGetLead
|
|
462
462
|
*/
|
|
463
|
-
readonly
|
|
463
|
+
readonly code: string
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
466
|
* The customer code or \"me\" for the currently logged in customer.
|
|
@@ -561,11 +561,11 @@ export interface LeadsApiListLeadsRequest {
|
|
|
561
561
|
*/
|
|
562
562
|
export interface LeadsApiUpdateLeadRequest {
|
|
563
563
|
/**
|
|
564
|
-
*
|
|
564
|
+
* Unique identifier for the object.
|
|
565
565
|
* @type {string}
|
|
566
566
|
* @memberof LeadsApiUpdateLead
|
|
567
567
|
*/
|
|
568
|
-
readonly
|
|
568
|
+
readonly code: string
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* The customer code or \"me\" for the currently logged in customer.
|
|
@@ -609,7 +609,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
612
|
+
* 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.
|
|
613
613
|
* @summary Retrieve the lead
|
|
614
614
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
615
615
|
* @param {*} [options] Override http request option.
|
|
@@ -617,11 +617,11 @@ export class LeadsApi extends BaseAPI {
|
|
|
617
617
|
* @memberof LeadsApi
|
|
618
618
|
*/
|
|
619
619
|
public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
620
|
-
return LeadsApiFp(this.configuration).getLead(requestParameters.
|
|
620
|
+
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
|
-
* Returns a list of leads you have previously created.
|
|
624
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
625
625
|
* @summary List leads
|
|
626
626
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
627
627
|
* @param {*} [options] Override http request option.
|
|
@@ -641,6 +641,6 @@ export class LeadsApi extends BaseAPI {
|
|
|
641
641
|
* @memberof LeadsApi
|
|
642
642
|
*/
|
|
643
643
|
public updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
|
|
644
|
-
return LeadsApiFp(this.configuration).updateLead(requestParameters.
|
|
644
|
+
return LeadsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
645
645
|
}
|
|
646
646
|
}
|
package/base.ts
CHANGED
|
@@ -81,6 +81,7 @@ export class BaseAPI {
|
|
|
81
81
|
private username?: string;
|
|
82
82
|
private password?: string;
|
|
83
83
|
private isCustomerToken = false;
|
|
84
|
+
private permissions?: string;
|
|
84
85
|
|
|
85
86
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
86
87
|
if (configuration) {
|
|
@@ -151,6 +152,10 @@ export class BaseAPI {
|
|
|
151
152
|
this.configuration.basePath = env;
|
|
152
153
|
}
|
|
153
154
|
|
|
155
|
+
getPermissions(): Array<string> {
|
|
156
|
+
return this.permissions.split(',');
|
|
157
|
+
}
|
|
158
|
+
|
|
154
159
|
async authorize(username: string, password: string): Promise<void> {
|
|
155
160
|
const options: AxiosRequestConfig = {
|
|
156
161
|
method: 'POST',
|
|
@@ -165,9 +170,10 @@ export class BaseAPI {
|
|
|
165
170
|
|
|
166
171
|
const response = await globalAxios.request<LoginClass>(options);
|
|
167
172
|
|
|
168
|
-
const { data: { accessToken } } = response;
|
|
173
|
+
const { data: { accessToken, permissions } } = response;
|
|
169
174
|
this.configuration.username = username;
|
|
170
175
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
176
|
+
this.permissions = permissions;
|
|
171
177
|
|
|
172
178
|
const refreshToken = this.extractRefreshToken(response);
|
|
173
179
|
this.configuration.refreshToken = refreshToken;
|
|
@@ -234,12 +240,12 @@ export class BaseAPI {
|
|
|
234
240
|
return response;
|
|
235
241
|
}
|
|
236
242
|
|
|
237
|
-
async refreshTokenTenant(): Promise<
|
|
243
|
+
async refreshTokenTenant(): Promise<LoginClass> {
|
|
238
244
|
const { username, refreshToken } = this.configuration;
|
|
239
245
|
|
|
240
246
|
|
|
241
247
|
if (!username || !refreshToken) {
|
|
242
|
-
|
|
248
|
+
throw new Error('Failed to refresh token.');
|
|
243
249
|
}
|
|
244
250
|
|
|
245
251
|
const options: AxiosRequestConfig = {
|
|
@@ -253,16 +259,16 @@ export class BaseAPI {
|
|
|
253
259
|
withCredentials: true,
|
|
254
260
|
};
|
|
255
261
|
|
|
256
|
-
const
|
|
262
|
+
const response = await globalAxios.request<LoginClass>(options);
|
|
257
263
|
|
|
258
|
-
return
|
|
264
|
+
return response.data;
|
|
259
265
|
}
|
|
260
266
|
|
|
261
|
-
async refreshTokenCustomer(): Promise<
|
|
267
|
+
async refreshTokenCustomer(): Promise<LoginClass> {
|
|
262
268
|
const { username, refreshToken, tenantSlug } = this.configuration;
|
|
263
269
|
|
|
264
270
|
if (!username || !refreshToken) {
|
|
265
|
-
|
|
271
|
+
throw new Error('Failed to refresh token.');
|
|
266
272
|
}
|
|
267
273
|
|
|
268
274
|
const options: AxiosRequestConfig = {
|
|
@@ -276,9 +282,9 @@ export class BaseAPI {
|
|
|
276
282
|
withCredentials: true,
|
|
277
283
|
};
|
|
278
284
|
|
|
279
|
-
const
|
|
285
|
+
const response = await globalAxios.request<LoginClass>(options);
|
|
280
286
|
|
|
281
|
-
return
|
|
287
|
+
return response.data;
|
|
282
288
|
}
|
|
283
289
|
|
|
284
290
|
private extractRefreshToken(response: AxiosResponse): string {
|
|
@@ -304,12 +310,14 @@ export class BaseAPI {
|
|
|
304
310
|
originalConfig._retry = true;
|
|
305
311
|
try {
|
|
306
312
|
let tokenString: string;
|
|
313
|
+
let permissions: string;
|
|
307
314
|
if (this.isCustomerToken) {
|
|
308
|
-
tokenString = await this.refreshTokenCustomer();
|
|
315
|
+
({ accessToken: tokenString, permissions } = await this.refreshTokenCustomer());
|
|
309
316
|
} else {
|
|
310
|
-
tokenString = await this.refreshTokenTenant();
|
|
317
|
+
({ accessToken: tokenString, permissions } = await this.refreshTokenTenant());
|
|
311
318
|
}
|
|
312
319
|
const accessToken = `Bearer ${tokenString}`;
|
|
320
|
+
this.permissions = permissions;
|
|
313
321
|
|
|
314
322
|
delete originalConfig.headers['Authorization']
|
|
315
323
|
|
|
@@ -336,12 +344,14 @@ export class BaseAPI {
|
|
|
336
344
|
_retry_count++;
|
|
337
345
|
try {
|
|
338
346
|
let tokenString: string;
|
|
347
|
+
let permissions: string;
|
|
339
348
|
if (this.isCustomerToken) {
|
|
340
|
-
tokenString = await this.refreshTokenCustomer();
|
|
349
|
+
({ accessToken: tokenString, permissions } = await this.refreshTokenCustomer());
|
|
341
350
|
} else {
|
|
342
|
-
tokenString = await this.refreshTokenTenant();
|
|
351
|
+
({ accessToken: tokenString, permissions } = await this.refreshTokenTenant());
|
|
343
352
|
}
|
|
344
353
|
const accessToken = `Bearer ${tokenString}`;
|
|
354
|
+
this.permissions = permissions;
|
|
345
355
|
|
|
346
356
|
_retry = true;
|
|
347
357
|
originalConfig.headers['Authorization'] = accessToken;
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -34,18 +34,18 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
34
34
|
*/
|
|
35
35
|
createLead: (customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
36
|
/**
|
|
37
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
37
|
+
* 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.
|
|
38
38
|
* @summary Retrieve the lead
|
|
39
|
-
* @param {string}
|
|
39
|
+
* @param {string} code Unique identifier for the object.
|
|
40
40
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
42
42
|
* @param {string} [expand]
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
|
-
getLead: (
|
|
46
|
+
getLead: (code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
* Returns a list of leads you have previously created.
|
|
48
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
49
49
|
* @summary List leads
|
|
50
50
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
51
51
|
* @param {string} [authorization] Bearer Token
|
|
@@ -63,14 +63,14 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
63
63
|
/**
|
|
64
64
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
65
65
|
* @summary Update the lead
|
|
66
|
-
* @param {string}
|
|
66
|
+
* @param {string} code Unique identifier for the object.
|
|
67
67
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
68
68
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
69
69
|
* @param {string} [authorization] Bearer Token
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
|
-
updateLead: (
|
|
73
|
+
updateLead: (code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
76
|
* LeadsApi - functional programming interface
|
|
@@ -88,18 +88,18 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
88
88
|
*/
|
|
89
89
|
createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
90
90
|
/**
|
|
91
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
91
|
+
* 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.
|
|
92
92
|
* @summary Retrieve the lead
|
|
93
|
-
* @param {string}
|
|
93
|
+
* @param {string} code Unique identifier for the object.
|
|
94
94
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
95
95
|
* @param {string} [authorization] Bearer Token
|
|
96
96
|
* @param {string} [expand]
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
|
-
getLead(
|
|
100
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
101
101
|
/**
|
|
102
|
-
* Returns a list of leads you have previously created.
|
|
102
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
103
103
|
* @summary List leads
|
|
104
104
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
105
105
|
* @param {string} [authorization] Bearer Token
|
|
@@ -117,14 +117,14 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
117
117
|
/**
|
|
118
118
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
119
119
|
* @summary Update the lead
|
|
120
|
-
* @param {string}
|
|
120
|
+
* @param {string} code Unique identifier for the object.
|
|
121
121
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
122
122
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
123
123
|
* @param {string} [authorization] Bearer Token
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
updateLead(
|
|
127
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* LeadsApi - factory interface
|
|
@@ -142,18 +142,18 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
142
142
|
*/
|
|
143
143
|
createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
144
144
|
/**
|
|
145
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
145
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
146
146
|
* @summary Retrieve the lead
|
|
147
|
-
* @param {string}
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
149
149
|
* @param {string} [authorization] Bearer Token
|
|
150
150
|
* @param {string} [expand]
|
|
151
151
|
* @param {*} [options] Override http request option.
|
|
152
152
|
* @throws {RequiredError}
|
|
153
153
|
*/
|
|
154
|
-
getLead(
|
|
154
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
155
155
|
/**
|
|
156
|
-
* Returns a list of leads you have previously created.
|
|
156
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
157
157
|
* @summary List leads
|
|
158
158
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
159
159
|
* @param {string} [authorization] Bearer Token
|
|
@@ -171,14 +171,14 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
171
171
|
/**
|
|
172
172
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
173
173
|
* @summary Update the lead
|
|
174
|
-
* @param {string}
|
|
174
|
+
* @param {string} code Unique identifier for the object.
|
|
175
175
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
176
176
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
177
177
|
* @param {string} [authorization] Bearer Token
|
|
178
178
|
* @param {*} [options] Override http request option.
|
|
179
179
|
* @throws {RequiredError}
|
|
180
180
|
*/
|
|
181
|
-
updateLead(
|
|
181
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
|
|
182
182
|
};
|
|
183
183
|
/**
|
|
184
184
|
* Request parameters for createLead operation in LeadsApi.
|
|
@@ -212,11 +212,11 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
212
212
|
*/
|
|
213
213
|
export interface LeadsApiGetLeadRequest {
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* Unique identifier for the object.
|
|
216
216
|
* @type {string}
|
|
217
217
|
* @memberof LeadsApiGetLead
|
|
218
218
|
*/
|
|
219
|
-
readonly
|
|
219
|
+
readonly code: string;
|
|
220
220
|
/**
|
|
221
221
|
* The customer code or \"me\" for the currently logged in customer.
|
|
222
222
|
* @type {string}
|
|
@@ -304,11 +304,11 @@ export interface LeadsApiListLeadsRequest {
|
|
|
304
304
|
*/
|
|
305
305
|
export interface LeadsApiUpdateLeadRequest {
|
|
306
306
|
/**
|
|
307
|
-
*
|
|
307
|
+
* Unique identifier for the object.
|
|
308
308
|
* @type {string}
|
|
309
309
|
* @memberof LeadsApiUpdateLead
|
|
310
310
|
*/
|
|
311
|
-
readonly
|
|
311
|
+
readonly code: string;
|
|
312
312
|
/**
|
|
313
313
|
* The customer code or \"me\" for the currently logged in customer.
|
|
314
314
|
* @type {string}
|
|
@@ -345,7 +345,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
345
345
|
*/
|
|
346
346
|
createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
347
347
|
/**
|
|
348
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
348
|
+
* 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.
|
|
349
349
|
* @summary Retrieve the lead
|
|
350
350
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
351
351
|
* @param {*} [options] Override http request option.
|
|
@@ -354,7 +354,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
354
354
|
*/
|
|
355
355
|
getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any>>;
|
|
356
356
|
/**
|
|
357
|
-
* Returns a list of leads you have previously created.
|
|
357
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
358
358
|
* @summary List leads
|
|
359
359
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
360
360
|
* @param {*} [options] Override http request option.
|
package/dist/api/leads-api.js
CHANGED
|
@@ -150,28 +150,28 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
150
150
|
});
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
153
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
153
|
+
* 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.
|
|
154
154
|
* @summary Retrieve the lead
|
|
155
|
-
* @param {string}
|
|
155
|
+
* @param {string} code Unique identifier for the object.
|
|
156
156
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
157
157
|
* @param {string} [authorization] Bearer Token
|
|
158
158
|
* @param {string} [expand]
|
|
159
159
|
* @param {*} [options] Override http request option.
|
|
160
160
|
* @throws {RequiredError}
|
|
161
161
|
*/
|
|
162
|
-
getLead: function (
|
|
162
|
+
getLead: function (code, customerCode, authorization, expand, options) {
|
|
163
163
|
if (options === void 0) { options = {}; }
|
|
164
164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
165
165
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
166
166
|
return __generator(this, function (_a) {
|
|
167
167
|
switch (_a.label) {
|
|
168
168
|
case 0:
|
|
169
|
-
// verify required parameter '
|
|
170
|
-
(0, common_1.assertParamExists)('getLead', '
|
|
169
|
+
// verify required parameter 'code' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('getLead', 'code', code);
|
|
171
171
|
// verify required parameter 'customerCode' is not null or undefined
|
|
172
172
|
(0, common_1.assertParamExists)('getLead', 'customerCode', customerCode);
|
|
173
|
-
localVarPath = "/v1/customers/{customerCode}/leads/{
|
|
174
|
-
.replace("{".concat("
|
|
173
|
+
localVarPath = "/v1/customers/{customerCode}/leads/{code}"
|
|
174
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
175
175
|
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
176
176
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
177
177
|
if (configuration) {
|
|
@@ -206,7 +206,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
206
206
|
});
|
|
207
207
|
},
|
|
208
208
|
/**
|
|
209
|
-
* Returns a list of leads you have previously created.
|
|
209
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
210
210
|
* @summary List leads
|
|
211
211
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
212
212
|
* @param {string} [authorization] Bearer Token
|
|
@@ -284,28 +284,28 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
284
284
|
/**
|
|
285
285
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
286
286
|
* @summary Update the lead
|
|
287
|
-
* @param {string}
|
|
287
|
+
* @param {string} code Unique identifier for the object.
|
|
288
288
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
289
289
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
290
290
|
* @param {string} [authorization] Bearer Token
|
|
291
291
|
* @param {*} [options] Override http request option.
|
|
292
292
|
* @throws {RequiredError}
|
|
293
293
|
*/
|
|
294
|
-
updateLead: function (
|
|
294
|
+
updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
|
|
295
295
|
if (options === void 0) { options = {}; }
|
|
296
296
|
return __awaiter(_this, void 0, void 0, function () {
|
|
297
297
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
298
298
|
return __generator(this, function (_a) {
|
|
299
299
|
switch (_a.label) {
|
|
300
300
|
case 0:
|
|
301
|
-
// verify required parameter '
|
|
302
|
-
(0, common_1.assertParamExists)('updateLead', '
|
|
301
|
+
// verify required parameter 'code' is not null or undefined
|
|
302
|
+
(0, common_1.assertParamExists)('updateLead', 'code', code);
|
|
303
303
|
// verify required parameter 'customerCode' is not null or undefined
|
|
304
304
|
(0, common_1.assertParamExists)('updateLead', 'customerCode', customerCode);
|
|
305
305
|
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
306
306
|
(0, common_1.assertParamExists)('updateLead', 'updateLeadRequestDto', updateLeadRequestDto);
|
|
307
|
-
localVarPath = "/v1/customers/{customerCode}/leads/{
|
|
308
|
-
.replace("{".concat("
|
|
307
|
+
localVarPath = "/v1/customers/{customerCode}/leads/{code}"
|
|
308
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
309
309
|
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
310
310
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
311
311
|
if (configuration) {
|
|
@@ -371,21 +371,21 @@ var LeadsApiFp = function (configuration) {
|
|
|
371
371
|
});
|
|
372
372
|
},
|
|
373
373
|
/**
|
|
374
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
374
|
+
* 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.
|
|
375
375
|
* @summary Retrieve the lead
|
|
376
|
-
* @param {string}
|
|
376
|
+
* @param {string} code Unique identifier for the object.
|
|
377
377
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
378
378
|
* @param {string} [authorization] Bearer Token
|
|
379
379
|
* @param {string} [expand]
|
|
380
380
|
* @param {*} [options] Override http request option.
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
*/
|
|
383
|
-
getLead: function (
|
|
383
|
+
getLead: function (code, customerCode, authorization, expand, options) {
|
|
384
384
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
385
|
var localVarAxiosArgs;
|
|
386
386
|
return __generator(this, function (_a) {
|
|
387
387
|
switch (_a.label) {
|
|
388
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(
|
|
388
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, customerCode, authorization, expand, options)];
|
|
389
389
|
case 1:
|
|
390
390
|
localVarAxiosArgs = _a.sent();
|
|
391
391
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -394,7 +394,7 @@ var LeadsApiFp = function (configuration) {
|
|
|
394
394
|
});
|
|
395
395
|
},
|
|
396
396
|
/**
|
|
397
|
-
* Returns a list of leads you have previously created.
|
|
397
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
398
398
|
* @summary List leads
|
|
399
399
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
400
400
|
* @param {string} [authorization] Bearer Token
|
|
@@ -424,19 +424,19 @@ var LeadsApiFp = function (configuration) {
|
|
|
424
424
|
/**
|
|
425
425
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
426
426
|
* @summary Update the lead
|
|
427
|
-
* @param {string}
|
|
427
|
+
* @param {string} code Unique identifier for the object.
|
|
428
428
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
429
429
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
430
430
|
* @param {string} [authorization] Bearer Token
|
|
431
431
|
* @param {*} [options] Override http request option.
|
|
432
432
|
* @throws {RequiredError}
|
|
433
433
|
*/
|
|
434
|
-
updateLead: function (
|
|
434
|
+
updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
|
|
435
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
436
436
|
var localVarAxiosArgs;
|
|
437
437
|
return __generator(this, function (_a) {
|
|
438
438
|
switch (_a.label) {
|
|
439
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(
|
|
439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(code, customerCode, updateLeadRequestDto, authorization, options)];
|
|
440
440
|
case 1:
|
|
441
441
|
localVarAxiosArgs = _a.sent();
|
|
442
442
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -467,20 +467,20 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
467
467
|
return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
470
|
+
* 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.
|
|
471
471
|
* @summary Retrieve the lead
|
|
472
|
-
* @param {string}
|
|
472
|
+
* @param {string} code Unique identifier for the object.
|
|
473
473
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
474
474
|
* @param {string} [authorization] Bearer Token
|
|
475
475
|
* @param {string} [expand]
|
|
476
476
|
* @param {*} [options] Override http request option.
|
|
477
477
|
* @throws {RequiredError}
|
|
478
478
|
*/
|
|
479
|
-
getLead: function (
|
|
480
|
-
return localVarFp.getLead(
|
|
479
|
+
getLead: function (code, customerCode, authorization, expand, options) {
|
|
480
|
+
return localVarFp.getLead(code, customerCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
481
481
|
},
|
|
482
482
|
/**
|
|
483
|
-
* Returns a list of leads you have previously created.
|
|
483
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
484
484
|
* @summary List leads
|
|
485
485
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
486
486
|
* @param {string} [authorization] Bearer Token
|
|
@@ -500,15 +500,15 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
500
500
|
/**
|
|
501
501
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
502
502
|
* @summary Update the lead
|
|
503
|
-
* @param {string}
|
|
503
|
+
* @param {string} code Unique identifier for the object.
|
|
504
504
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
505
505
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
506
506
|
* @param {string} [authorization] Bearer Token
|
|
507
507
|
* @param {*} [options] Override http request option.
|
|
508
508
|
* @throws {RequiredError}
|
|
509
509
|
*/
|
|
510
|
-
updateLead: function (
|
|
511
|
-
return localVarFp.updateLead(
|
|
510
|
+
updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
|
|
511
|
+
return localVarFp.updateLead(code, customerCode, updateLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
512
512
|
},
|
|
513
513
|
};
|
|
514
514
|
};
|
|
@@ -537,7 +537,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
537
537
|
return (0, exports.LeadsApiFp)(this.configuration).createLead(requestParameters.customerCode, requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
538
538
|
};
|
|
539
539
|
/**
|
|
540
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
540
|
+
* 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.
|
|
541
541
|
* @summary Retrieve the lead
|
|
542
542
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
543
543
|
* @param {*} [options] Override http request option.
|
|
@@ -546,10 +546,10 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
546
546
|
*/
|
|
547
547
|
LeadsApi.prototype.getLead = function (requestParameters, options) {
|
|
548
548
|
var _this = this;
|
|
549
|
-
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.
|
|
549
|
+
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
550
550
|
};
|
|
551
551
|
/**
|
|
552
|
-
* Returns a list of leads you have previously created.
|
|
552
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
553
553
|
* @summary List leads
|
|
554
554
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
555
555
|
* @param {*} [options] Override http request option.
|
|
@@ -570,7 +570,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
570
570
|
*/
|
|
571
571
|
LeadsApi.prototype.updateLead = function (requestParameters, options) {
|
|
572
572
|
var _this = this;
|
|
573
|
-
return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.
|
|
573
|
+
return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.code, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
574
574
|
};
|
|
575
575
|
return LeadsApi;
|
|
576
576
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -55,17 +55,19 @@ export declare class BaseAPI {
|
|
|
55
55
|
private username?;
|
|
56
56
|
private password?;
|
|
57
57
|
private isCustomerToken;
|
|
58
|
+
private permissions?;
|
|
58
59
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
59
60
|
initialize(env?: Environment): Promise<void>;
|
|
60
61
|
private loadCredentials;
|
|
61
62
|
private readConfigFile;
|
|
62
63
|
private readEnvVariables;
|
|
63
64
|
selectEnvironment(env: Environment): void;
|
|
65
|
+
getPermissions(): Array<string>;
|
|
64
66
|
authorize(username: string, password: string): Promise<void>;
|
|
65
67
|
initiateAuthorization(username: string, password: string, tenantSlug: string): Promise<AxiosResponse<InitiateAuthResponseClass>>;
|
|
66
68
|
respondToAuthorizationChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto): Promise<AxiosResponse<RespondToAuthChallengeClass>>;
|
|
67
|
-
refreshTokenTenant(): Promise<
|
|
68
|
-
refreshTokenCustomer(): Promise<
|
|
69
|
+
refreshTokenTenant(): Promise<LoginClass>;
|
|
70
|
+
refreshTokenCustomer(): Promise<LoginClass>;
|
|
69
71
|
private extractRefreshToken;
|
|
70
72
|
private attachInterceptor;
|
|
71
73
|
}
|
package/dist/base.js
CHANGED
|
@@ -243,11 +243,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
243
243
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
244
244
|
this.configuration.basePath = env;
|
|
245
245
|
};
|
|
246
|
+
BaseAPI.prototype.getPermissions = function () {
|
|
247
|
+
return this.permissions.split(',');
|
|
248
|
+
};
|
|
246
249
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
247
250
|
return __awaiter(this, void 0, void 0, function () {
|
|
248
|
-
var options, response, accessToken, refreshToken;
|
|
249
|
-
return __generator(this, function (
|
|
250
|
-
switch (
|
|
251
|
+
var options, response, _a, accessToken, permissions, refreshToken;
|
|
252
|
+
return __generator(this, function (_b) {
|
|
253
|
+
switch (_b.label) {
|
|
251
254
|
case 0:
|
|
252
255
|
options = {
|
|
253
256
|
method: 'POST',
|
|
@@ -261,10 +264,11 @@ var BaseAPI = /** @class */ (function () {
|
|
|
261
264
|
};
|
|
262
265
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
263
266
|
case 1:
|
|
264
|
-
response =
|
|
265
|
-
|
|
267
|
+
response = _b.sent();
|
|
268
|
+
_a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
|
|
266
269
|
this.configuration.username = username;
|
|
267
270
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
271
|
+
this.permissions = permissions;
|
|
268
272
|
refreshToken = this.extractRefreshToken(response);
|
|
269
273
|
this.configuration.refreshToken = refreshToken;
|
|
270
274
|
return [2 /*return*/];
|
|
@@ -339,13 +343,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
339
343
|
};
|
|
340
344
|
BaseAPI.prototype.refreshTokenTenant = function () {
|
|
341
345
|
return __awaiter(this, void 0, void 0, function () {
|
|
342
|
-
var _a, username, refreshToken, options,
|
|
346
|
+
var _a, username, refreshToken, options, response;
|
|
343
347
|
return __generator(this, function (_b) {
|
|
344
348
|
switch (_b.label) {
|
|
345
349
|
case 0:
|
|
346
350
|
_a = this.configuration, username = _a.username, refreshToken = _a.refreshToken;
|
|
347
351
|
if (!username || !refreshToken) {
|
|
348
|
-
|
|
352
|
+
throw new Error('Failed to refresh token.');
|
|
349
353
|
}
|
|
350
354
|
options = {
|
|
351
355
|
method: 'POST',
|
|
@@ -359,21 +363,21 @@ var BaseAPI = /** @class */ (function () {
|
|
|
359
363
|
};
|
|
360
364
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
361
365
|
case 1:
|
|
362
|
-
|
|
363
|
-
return [2 /*return*/,
|
|
366
|
+
response = _b.sent();
|
|
367
|
+
return [2 /*return*/, response.data];
|
|
364
368
|
}
|
|
365
369
|
});
|
|
366
370
|
});
|
|
367
371
|
};
|
|
368
372
|
BaseAPI.prototype.refreshTokenCustomer = function () {
|
|
369
373
|
return __awaiter(this, void 0, void 0, function () {
|
|
370
|
-
var _a, username, refreshToken, tenantSlug, options,
|
|
374
|
+
var _a, username, refreshToken, tenantSlug, options, response;
|
|
371
375
|
return __generator(this, function (_b) {
|
|
372
376
|
switch (_b.label) {
|
|
373
377
|
case 0:
|
|
374
378
|
_a = this.configuration, username = _a.username, refreshToken = _a.refreshToken, tenantSlug = _a.tenantSlug;
|
|
375
379
|
if (!username || !refreshToken) {
|
|
376
|
-
|
|
380
|
+
throw new Error('Failed to refresh token.');
|
|
377
381
|
}
|
|
378
382
|
options = {
|
|
379
383
|
method: 'POST',
|
|
@@ -387,8 +391,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
387
391
|
};
|
|
388
392
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
389
393
|
case 1:
|
|
390
|
-
|
|
391
|
-
return [2 /*return*/,
|
|
394
|
+
response = _b.sent();
|
|
395
|
+
return [2 /*return*/, response.data];
|
|
392
396
|
}
|
|
393
397
|
});
|
|
394
398
|
});
|
|
@@ -405,35 +409,38 @@ var BaseAPI = /** @class */ (function () {
|
|
|
405
409
|
axios.interceptors.response.use(function (res) {
|
|
406
410
|
return res;
|
|
407
411
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
408
|
-
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
409
|
-
|
|
410
|
-
|
|
412
|
+
var originalConfig, tokenString, permissions, accessToken, _error_1, tokenString, permissions, accessToken, _error_2;
|
|
413
|
+
var _a, _b, _c, _d;
|
|
414
|
+
return __generator(this, function (_e) {
|
|
415
|
+
switch (_e.label) {
|
|
411
416
|
case 0:
|
|
412
417
|
originalConfig = err.config;
|
|
413
418
|
if (!err.response) return [3 /*break*/, 8];
|
|
414
419
|
if (!(err.response.status === 401 && !originalConfig._retry)) return [3 /*break*/, 7];
|
|
415
420
|
originalConfig._retry = true;
|
|
416
|
-
|
|
421
|
+
_e.label = 1;
|
|
417
422
|
case 1:
|
|
418
|
-
|
|
423
|
+
_e.trys.push([1, 6, , 7]);
|
|
419
424
|
tokenString = void 0;
|
|
425
|
+
permissions = void 0;
|
|
420
426
|
if (!this.isCustomerToken) return [3 /*break*/, 3];
|
|
421
427
|
return [4 /*yield*/, this.refreshTokenCustomer()];
|
|
422
428
|
case 2:
|
|
423
|
-
|
|
429
|
+
(_a = _e.sent(), tokenString = _a.accessToken, permissions = _a.permissions);
|
|
424
430
|
return [3 /*break*/, 5];
|
|
425
431
|
case 3: return [4 /*yield*/, this.refreshTokenTenant()];
|
|
426
432
|
case 4:
|
|
427
|
-
|
|
428
|
-
|
|
433
|
+
(_b = _e.sent(), tokenString = _b.accessToken, permissions = _b.permissions);
|
|
434
|
+
_e.label = 5;
|
|
429
435
|
case 5:
|
|
430
436
|
accessToken = "Bearer ".concat(tokenString);
|
|
437
|
+
this.permissions = permissions;
|
|
431
438
|
delete originalConfig.headers['Authorization'];
|
|
432
439
|
originalConfig.headers['Authorization'] = accessToken;
|
|
433
440
|
this.configuration.accessToken = accessToken;
|
|
434
441
|
return [2 /*return*/, axios(originalConfig)];
|
|
435
442
|
case 6:
|
|
436
|
-
_error_1 =
|
|
443
|
+
_error_1 = _e.sent();
|
|
437
444
|
if (_error_1.response && _error_1.response.data) {
|
|
438
445
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
439
446
|
}
|
|
@@ -449,27 +456,29 @@ var BaseAPI = /** @class */ (function () {
|
|
|
449
456
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
450
457
|
&& _retry_count < 4)) return [3 /*break*/, 15];
|
|
451
458
|
_retry_count++;
|
|
452
|
-
|
|
459
|
+
_e.label = 9;
|
|
453
460
|
case 9:
|
|
454
|
-
|
|
461
|
+
_e.trys.push([9, 14, , 15]);
|
|
455
462
|
tokenString = void 0;
|
|
463
|
+
permissions = void 0;
|
|
456
464
|
if (!this.isCustomerToken) return [3 /*break*/, 11];
|
|
457
465
|
return [4 /*yield*/, this.refreshTokenCustomer()];
|
|
458
466
|
case 10:
|
|
459
|
-
|
|
467
|
+
(_c = _e.sent(), tokenString = _c.accessToken, permissions = _c.permissions);
|
|
460
468
|
return [3 /*break*/, 13];
|
|
461
469
|
case 11: return [4 /*yield*/, this.refreshTokenTenant()];
|
|
462
470
|
case 12:
|
|
463
|
-
|
|
464
|
-
|
|
471
|
+
(_d = _e.sent(), tokenString = _d.accessToken, permissions = _d.permissions);
|
|
472
|
+
_e.label = 13;
|
|
465
473
|
case 13:
|
|
466
474
|
accessToken = "Bearer ".concat(tokenString);
|
|
475
|
+
this.permissions = permissions;
|
|
467
476
|
_retry = true;
|
|
468
477
|
originalConfig.headers['Authorization'] = accessToken;
|
|
469
478
|
this.configuration.accessToken = accessToken;
|
|
470
479
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
471
480
|
case 14:
|
|
472
|
-
_error_2 =
|
|
481
|
+
_error_2 = _e.sent();
|
|
473
482
|
if (_error_2.response && _error_2.response.data) {
|
|
474
483
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
475
484
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService 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 { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
|
|
13
|
+
import { LinkLeadPartnerRequestDto } from './link-lead-partner-request-dto';
|
|
14
|
+
import { PolicyObjectDto } from './policy-object-dto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GrpcUpdateLeadRequestDto
|
|
19
|
+
*/
|
|
20
|
+
export interface GrpcUpdateLeadRequestDto {
|
|
21
|
+
/**
|
|
22
|
+
* Policy objects.
|
|
23
|
+
* @type {Array<PolicyObjectDto>}
|
|
24
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
25
|
+
*/
|
|
26
|
+
'policyObjects': Array<PolicyObjectDto>;
|
|
27
|
+
/**
|
|
28
|
+
* Unique identifier of the product that this object belongs to.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
31
|
+
*/
|
|
32
|
+
'productCode': string;
|
|
33
|
+
/**
|
|
34
|
+
* Status of the lead.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
37
|
+
*/
|
|
38
|
+
'status'?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Payment method
|
|
41
|
+
* @type {CreatePaymentMethodRequestDto}
|
|
42
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
43
|
+
*/
|
|
44
|
+
'paymentMethod': CreatePaymentMethodRequestDto;
|
|
45
|
+
/**
|
|
46
|
+
* Optional partner object contains necessary information to link a partner to the policy.
|
|
47
|
+
* @type {LinkLeadPartnerRequestDto}
|
|
48
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
49
|
+
*/
|
|
50
|
+
'partner'?: LinkLeadPartnerRequestDto;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
55
|
+
*/
|
|
56
|
+
'code': string;
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CustomerService
|
|
6
|
+
* The EMIL CustomerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './get-customer-response-class';
|
|
|
30
30
|
export * from './get-lead-response-class';
|
|
31
31
|
export * from './get-policy-response-class';
|
|
32
32
|
export * from './get-product-response-class';
|
|
33
|
+
export * from './grpc-update-lead-request-dto';
|
|
33
34
|
export * from './initiate-auth-request-dto';
|
|
34
35
|
export * from './initiate-auth-response-class';
|
|
35
36
|
export * from './initiate-braintree-payment-setup-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __exportStar(require("./get-customer-response-class"), exports);
|
|
|
46
46
|
__exportStar(require("./get-lead-response-class"), exports);
|
|
47
47
|
__exportStar(require("./get-policy-response-class"), exports);
|
|
48
48
|
__exportStar(require("./get-product-response-class"), exports);
|
|
49
|
+
__exportStar(require("./grpc-update-lead-request-dto"), exports);
|
|
49
50
|
__exportStar(require("./initiate-auth-request-dto"), exports);
|
|
50
51
|
__exportStar(require("./initiate-auth-response-class"), exports);
|
|
51
52
|
__exportStar(require("./initiate-braintree-payment-setup-response-class"), exports);
|
|
@@ -84,7 +84,7 @@ export interface LeadClass {
|
|
|
84
84
|
*/
|
|
85
85
|
'premiumOverride'?: PremiumOverrideRequestClass;
|
|
86
86
|
/**
|
|
87
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
87
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof LeadClass
|
|
90
90
|
*/
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService 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 { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
|
|
17
|
+
import { LinkLeadPartnerRequestDto } from './link-lead-partner-request-dto';
|
|
18
|
+
import { PolicyObjectDto } from './policy-object-dto';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface GrpcUpdateLeadRequestDto
|
|
24
|
+
*/
|
|
25
|
+
export interface GrpcUpdateLeadRequestDto {
|
|
26
|
+
/**
|
|
27
|
+
* Policy objects.
|
|
28
|
+
* @type {Array<PolicyObjectDto>}
|
|
29
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
30
|
+
*/
|
|
31
|
+
'policyObjects': Array<PolicyObjectDto>;
|
|
32
|
+
/**
|
|
33
|
+
* Unique identifier of the product that this object belongs to.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
36
|
+
*/
|
|
37
|
+
'productCode': string;
|
|
38
|
+
/**
|
|
39
|
+
* Status of the lead.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
42
|
+
*/
|
|
43
|
+
'status'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Payment method
|
|
46
|
+
* @type {CreatePaymentMethodRequestDto}
|
|
47
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
48
|
+
*/
|
|
49
|
+
'paymentMethod': CreatePaymentMethodRequestDto;
|
|
50
|
+
/**
|
|
51
|
+
* Optional partner object contains necessary information to link a partner to the policy.
|
|
52
|
+
* @type {LinkLeadPartnerRequestDto}
|
|
53
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
54
|
+
*/
|
|
55
|
+
'partner'?: LinkLeadPartnerRequestDto;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
60
|
+
*/
|
|
61
|
+
'code': string;
|
|
62
|
+
}
|
|
63
|
+
|
package/models/index.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './get-customer-response-class';
|
|
|
30
30
|
export * from './get-lead-response-class';
|
|
31
31
|
export * from './get-policy-response-class';
|
|
32
32
|
export * from './get-product-response-class';
|
|
33
|
+
export * from './grpc-update-lead-request-dto';
|
|
33
34
|
export * from './initiate-auth-request-dto';
|
|
34
35
|
export * from './initiate-auth-response-class';
|
|
35
36
|
export * from './initiate-braintree-payment-setup-response-class';
|
package/models/lead-class.ts
CHANGED
|
@@ -89,7 +89,7 @@ export interface LeadClass {
|
|
|
89
89
|
*/
|
|
90
90
|
'premiumOverride'?: PremiumOverrideRequestClass;
|
|
91
91
|
/**
|
|
92
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
92
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
93
93
|
* @type {string}
|
|
94
94
|
* @memberof LeadClass
|
|
95
95
|
*/
|