@lendi/lead-client
Advanced tools
Comparing version 2.2.0 to 3.0.0
# @lendi/lead-client | ||
## 3.0.0 | ||
- [major] 1a82f79: | ||
- Change createLeadV2 endpoint to v2/public/leads, add getLeadV2 to v2/leads | ||
## 2.2.0 | ||
@@ -4,0 +9,0 @@ - [minor] 2e271e6: |
@@ -1101,2 +1101,10 @@ /** | ||
createLeadV2(body?: LeadsRecord | undefined, options?: any): RequestArgs; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2(leadId: string, options?: any): RequestArgs; | ||
}; | ||
@@ -1124,2 +1132,10 @@ /** | ||
createLeadV2(body?: LeadsRecord | undefined, options?: any): (axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CommonResponseMetaData>; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2(leadId: string, options?: any): (axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CommonResponseMetaData>; | ||
}; | ||
@@ -1147,2 +1163,10 @@ /** | ||
createLeadV2(body?: LeadsRecord | undefined, options?: any): AxiosPromise<CommonResponseMetaData>; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2(leadId: string, options?: any): AxiosPromise<CommonResponseMetaData>; | ||
}; | ||
@@ -1174,2 +1198,11 @@ /** | ||
createLeadV2(body?: LeadsRecord, options?: any): AxiosPromise<CommonResponseMetaData>; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof LeadsApi | ||
*/ | ||
getLeadV2(leadId: string, options?: any): AxiosPromise<CommonResponseMetaData>; | ||
} |
@@ -577,3 +577,3 @@ "use strict"; | ||
if (options === void 0) { options = {}; } | ||
var localVarPath = "/v2/leads"; | ||
var localVarPath = "/v2/public/leads"; | ||
var localVarUrlObj = globalImportUrl.parse(localVarPath, true); | ||
@@ -599,2 +599,29 @@ var baseOptions; | ||
}, | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2: function (leadId, options) { | ||
if (options === void 0) { options = {}; } | ||
var localVarPath = "/v2/leads/" + leadId; | ||
var localVarUrlObj = globalImportUrl.parse(localVarPath, true); | ||
var baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
var localVarHeaderParameter = {}; | ||
var localVarQueryParameter = {}; | ||
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query); | ||
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 | ||
delete localVarUrlObj.search; | ||
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers); | ||
return { | ||
url: globalImportUrl.format(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
}; | ||
@@ -640,2 +667,18 @@ }; | ||
}, | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2: function (leadId, options) { | ||
var localVarAxiosArgs = exports.LeadsApiAxiosParamCreator(configuration).getLeadV2(leadId, options); | ||
return function (axios, basePath) { | ||
if (axios === void 0) { axios = axios_1.default; } | ||
if (basePath === void 0) { basePath = base_1.BASE_PATH; } | ||
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url }); | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
}; | ||
@@ -669,2 +712,12 @@ }; | ||
}, | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2: function (leadId, options) { | ||
return exports.LeadsApiFp(configuration).getLeadV2(leadId, options)(axios, basePath); | ||
}, | ||
}; | ||
@@ -705,2 +758,13 @@ }; | ||
}; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof LeadsApi | ||
*/ | ||
LeadsApi.prototype.getLeadV2 = function (leadId, options) { | ||
return exports.LeadsApiFp(this.configuration).getLeadV2(leadId, options)(this.axios, this.basePath); | ||
}; | ||
return LeadsApi; | ||
@@ -707,0 +771,0 @@ }(base_1.BaseAPI)); |
@@ -1101,2 +1101,10 @@ /** | ||
createLeadV2(body?: LeadsRecord | undefined, options?: any): RequestArgs; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2(leadId: string, options?: any): RequestArgs; | ||
}; | ||
@@ -1124,2 +1132,10 @@ /** | ||
createLeadV2(body?: LeadsRecord | undefined, options?: any): (axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CommonResponseMetaData>; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2(leadId: string, options?: any): (axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CommonResponseMetaData>; | ||
}; | ||
@@ -1147,2 +1163,10 @@ /** | ||
createLeadV2(body?: LeadsRecord | undefined, options?: any): AxiosPromise<CommonResponseMetaData>; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2(leadId: string, options?: any): AxiosPromise<CommonResponseMetaData>; | ||
}; | ||
@@ -1174,2 +1198,11 @@ /** | ||
createLeadV2(body?: LeadsRecord, options?: any): AxiosPromise<CommonResponseMetaData>; | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof LeadsApi | ||
*/ | ||
getLeadV2(leadId: string, options?: any): AxiosPromise<CommonResponseMetaData>; | ||
} |
{ | ||
"name": "@lendi/lead-client", | ||
"version": "2.2.0", | ||
"version": "3.0.0", | ||
"description": "Lendi lead client", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -1189,3 +1189,3 @@ // tslint:disable | ||
createLeadV2(body?: LeadsRecord, options: any = {}): RequestArgs { | ||
const localVarPath = `/v2/leads`; | ||
const localVarPath = `/v2/public/leads`; | ||
const localVarUrlObj = globalImportUrl.parse(localVarPath, true); | ||
@@ -1215,2 +1215,31 @@ let baseOptions; | ||
}, | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2(leadId: string, options: any = {}): RequestArgs { | ||
const localVarPath = `/v2/leads/${leadId}`; | ||
const localVarUrlObj = globalImportUrl.parse(localVarPath, true); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
localVarUrlObj.query = { ...localVarUrlObj.query, ...localVarQueryParameter, ...options.query }; | ||
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 | ||
delete localVarUrlObj.search; | ||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; | ||
return { | ||
url: globalImportUrl.format(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
}; | ||
@@ -1259,2 +1288,19 @@ }; | ||
}, | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2( | ||
leadId: string, | ||
options?: any | ||
): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonResponseMetaData> { | ||
const localVarAxiosArgs = LeadsApiAxiosParamCreator(configuration).getLeadV2(leadId, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
}; | ||
@@ -1289,2 +1335,12 @@ }; | ||
}, | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getLeadV2(leadId: string, options?: any) { | ||
return LeadsApiFp(configuration).getLeadV2(leadId, options)(axios, basePath); | ||
}, | ||
}; | ||
@@ -1323,2 +1379,14 @@ }; | ||
} | ||
/** | ||
* Endpoint for retrieving lead. Will return lead with provided id. | ||
* @summary fetch lead records using new world schema | ||
* @param {string} [leadId] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof LeadsApi | ||
*/ | ||
public getLeadV2(leadId: string, options?: any) { | ||
return LeadsApiFp(this.configuration).getLeadV2(leadId, options)(this.axios, this.basePath); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
188379
5101