@3wks/sargon-api-node-client
Advanced tools
Comparing version 0.0.17 to 0.0.18
161
api.ts
@@ -306,2 +306,16 @@ /// <reference path="./custom.d.ts" /> | ||
* @export | ||
* @interface Body | ||
*/ | ||
export interface Body { | ||
/** | ||
* | ||
* @type {any} | ||
* @memberof Body | ||
*/ | ||
terms?: any; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface Created | ||
@@ -1158,1 +1172,148 @@ */ | ||
/** | ||
* SuperSearchRolloverApi - fetch parameter creator | ||
* @export | ||
*/ | ||
export const SuperSearchRolloverApiFetchParamCreator = function (configuration?: Configuration) { | ||
return { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async consentToRollover(member: string, searchresult: string, terms?: any, options: any = {}): Promise<FetchArgs> { | ||
// verify required parameter 'member' is not null or undefined | ||
if (member === null || member === undefined) { | ||
throw new RequiredError('member','Required parameter member was null or undefined when calling consentToRollover.'); | ||
} | ||
// verify required parameter 'searchresult' is not null or undefined | ||
if (searchresult === null || searchresult === undefined) { | ||
throw new RequiredError('searchresult','Required parameter searchresult was null or undefined when calling consentToRollover.'); | ||
} | ||
const localVarPath = `/member/{member}/supersearch/{searchresult}/consent` | ||
.replace(`{${"member"}}`, encodeURIComponent(String(member))) | ||
.replace(`{${"searchresult"}}`, encodeURIComponent(String(searchresult))); | ||
const localVarUrlObj = url.parse(localVarPath, true); | ||
const localVarRequestOptions = Object.assign({ method: 'POST' }, options); | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
const localVarFormParams = new url.URLSearchParams(); | ||
// authentication AuthenticatedUser required | ||
// oauth required | ||
if (configuration && configuration.accessToken) { | ||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function' | ||
? await configuration.accessToken("AuthenticatedUser", ["member:self", "fund:operator", "fund:advisor", "integration"]) | ||
: await configuration.accessToken; | ||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue; | ||
} | ||
// authentication Integration required | ||
// oauth required | ||
if (configuration && configuration.accessToken) { | ||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function' | ||
? await configuration.accessToken("Integration", ["integration"]) | ||
: await configuration.accessToken; | ||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue; | ||
} | ||
if (terms !== undefined) { | ||
localVarFormParams.set('terms', terms as any); | ||
} | ||
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded'; | ||
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); | ||
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 | ||
delete localVarUrlObj.search; | ||
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); | ||
localVarRequestOptions.body = localVarFormParams.toString(); | ||
return { | ||
url: url.format(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
} | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - functional programming interface | ||
* @export | ||
*/ | ||
export const SuperSearchRolloverApiFp = function(configuration?: Configuration) { | ||
return { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
consentToRollover(member: string, searchresult: string, terms?: any, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<StandardMeta> { | ||
return async (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => { | ||
const localVarFetchArgs = await SuperSearchRolloverApiFetchParamCreator(configuration).consentToRollover(member, searchresult, terms, options); | ||
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { | ||
if (response.status >= 200 && response.status < 300) { | ||
return response.json(); | ||
} else { | ||
throw response; | ||
} | ||
}); | ||
}; | ||
}, | ||
} | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - factory interface | ||
* @export | ||
*/ | ||
export const SuperSearchRolloverApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) { | ||
return { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
consentToRollover(member: string, searchresult: string, terms?: any, options?: any) { | ||
return SuperSearchRolloverApiFp(configuration).consentToRollover(member, searchresult, terms, options)(fetch, basePath); | ||
}, | ||
}; | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - object-oriented interface | ||
* @export | ||
* @class SuperSearchRolloverApi | ||
* @extends {BaseAPI} | ||
*/ | ||
export class SuperSearchRolloverApi extends BaseAPI { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SuperSearchRolloverApi | ||
*/ | ||
public async consentToRollover(member: string, searchresult: string, terms?: any, options?: any) { | ||
return SuperSearchRolloverApiFp(this.configuration).consentToRollover(member, searchresult, terms, options)(this.fetch, this.basePath); | ||
} | ||
} | ||
@@ -282,2 +282,15 @@ /** | ||
* @export | ||
* @interface Body | ||
*/ | ||
export interface Body { | ||
/** | ||
* | ||
* @type {any} | ||
* @memberof Body | ||
*/ | ||
terms?: any; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface Created | ||
@@ -917,1 +930,68 @@ */ | ||
} | ||
/** | ||
* SuperSearchRolloverApi - fetch parameter creator | ||
* @export | ||
*/ | ||
export declare const SuperSearchRolloverApiFetchParamCreator: (configuration?: Configuration) => { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
consentToRollover(member: string, searchresult: string, terms?: any, options?: any): Promise<FetchArgs>; | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - functional programming interface | ||
* @export | ||
*/ | ||
export declare const SuperSearchRolloverApiFp: (configuration?: Configuration) => { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
consentToRollover(member: string, searchresult: string, terms?: any, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<StandardMeta>; | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - factory interface | ||
* @export | ||
*/ | ||
export declare const SuperSearchRolloverApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
consentToRollover(member: string, searchresult: string, terms?: any, options?: any): Promise<StandardMeta>; | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - object-oriented interface | ||
* @export | ||
* @class SuperSearchRolloverApi | ||
* @extends {BaseAPI} | ||
*/ | ||
export declare class SuperSearchRolloverApi extends BaseAPI { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SuperSearchRolloverApi | ||
*/ | ||
consentToRollover(member: string, searchresult: string, terms?: any, options?: any): Promise<StandardMeta>; | ||
} |
140
dist/api.js
@@ -481,1 +481,141 @@ "use strict"; | ||
exports.ReportsApi = ReportsApi; | ||
/** | ||
* SuperSearchRolloverApi - fetch parameter creator | ||
* @export | ||
*/ | ||
exports.SuperSearchRolloverApiFetchParamCreator = function (configuration) { | ||
return { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
consentToRollover(member, searchresult, terms, options = {}) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
// verify required parameter 'member' is not null or undefined | ||
if (member === null || member === undefined) { | ||
throw new RequiredError('member', 'Required parameter member was null or undefined when calling consentToRollover.'); | ||
} | ||
// verify required parameter 'searchresult' is not null or undefined | ||
if (searchresult === null || searchresult === undefined) { | ||
throw new RequiredError('searchresult', 'Required parameter searchresult was null or undefined when calling consentToRollover.'); | ||
} | ||
const localVarPath = `/member/{member}/supersearch/{searchresult}/consent` | ||
.replace(`{${"member"}}`, encodeURIComponent(String(member))) | ||
.replace(`{${"searchresult"}}`, encodeURIComponent(String(searchresult))); | ||
const localVarUrlObj = url_1.default.parse(localVarPath, true); | ||
const localVarRequestOptions = Object.assign({ method: 'POST' }, options); | ||
const localVarHeaderParameter = {}; | ||
const localVarQueryParameter = {}; | ||
const localVarFormParams = new url_1.default.URLSearchParams(); | ||
// authentication AuthenticatedUser required | ||
// oauth required | ||
if (configuration && configuration.accessToken) { | ||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function' | ||
? yield configuration.accessToken("AuthenticatedUser", ["member:self", "fund:operator", "fund:advisor", "integration"]) | ||
: yield configuration.accessToken; | ||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue; | ||
} | ||
// authentication Integration required | ||
// oauth required | ||
if (configuration && configuration.accessToken) { | ||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function' | ||
? yield configuration.accessToken("Integration", ["integration"]) | ||
: yield configuration.accessToken; | ||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue; | ||
} | ||
if (terms !== undefined) { | ||
localVarFormParams.set('terms', terms); | ||
} | ||
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded'; | ||
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); | ||
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 | ||
delete localVarUrlObj.search; | ||
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); | ||
localVarRequestOptions.body = localVarFormParams.toString(); | ||
return { | ||
url: url_1.default.format(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}); | ||
}, | ||
}; | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - functional programming interface | ||
* @export | ||
*/ | ||
exports.SuperSearchRolloverApiFp = function (configuration) { | ||
return { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
consentToRollover(member, searchresult, terms, options) { | ||
return (fetch = portable_fetch_1.default, basePath = BASE_PATH) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const localVarFetchArgs = yield exports.SuperSearchRolloverApiFetchParamCreator(configuration).consentToRollover(member, searchresult, terms, options); | ||
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { | ||
if (response.status >= 200 && response.status < 300) { | ||
return response.json(); | ||
} | ||
else { | ||
throw response; | ||
} | ||
}); | ||
}); | ||
}, | ||
}; | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - factory interface | ||
* @export | ||
*/ | ||
exports.SuperSearchRolloverApiFactory = function (configuration, fetch, basePath) { | ||
return { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
consentToRollover(member, searchresult, terms, options) { | ||
return exports.SuperSearchRolloverApiFp(configuration).consentToRollover(member, searchresult, terms, options)(fetch, basePath); | ||
}, | ||
}; | ||
}; | ||
/** | ||
* SuperSearchRolloverApi - object-oriented interface | ||
* @export | ||
* @class SuperSearchRolloverApi | ||
* @extends {BaseAPI} | ||
*/ | ||
class SuperSearchRolloverApi extends BaseAPI { | ||
/** | ||
* The SuperSearch Consent process provides a convenience method for creating a Rollover Request. | ||
* @summary Consent to SuperSearch Rollover | ||
* @param {string} member Unqiue UUID of the Member. A value of \"me\" can be provided instead of a literal UUID. \"me\" will be expanded to represent the currently authenticated member, if any. | ||
* @param {string} searchresult Unique UUID of the Super Search Result | ||
* @param {any} [terms] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SuperSearchRolloverApi | ||
*/ | ||
consentToRollover(member, searchresult, terms, options) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return exports.SuperSearchRolloverApiFp(this.configuration).consentToRollover(member, searchresult, terms, options)(this.fetch, this.basePath); | ||
}); | ||
} | ||
} | ||
exports.SuperSearchRolloverApi = SuperSearchRolloverApi; |
@@ -14,3 +14,3 @@ /** | ||
export * from "./configuration"; | ||
import { MembersApi, ReportsApi } from "./api"; | ||
import { MembersApi, ReportsApi, SuperSearchRolloverApi } from "./api"; | ||
interface ApiClientOptions { | ||
@@ -28,3 +28,4 @@ readonly clientId: string; | ||
reports: () => ReportsApi; | ||
superSearchRollover: () => SuperSearchRolloverApi; | ||
getToken: (authType: "Integration" | "AuthorizedUser", scopes: string[]) => Promise<string>; | ||
} |
@@ -28,2 +28,5 @@ "use strict"; | ||
}, this.options.basePath); | ||
this.superSearchRollover = () => new api_1.SuperSearchRolloverApi({ | ||
accessToken: this.getToken | ||
}, this.options.basePath); | ||
this.getToken = (authType, scopes) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
@@ -30,0 +33,0 @@ if (authType === "AuthorizedUser") { |
@@ -25,2 +25,4 @@ // tslint:disable | ||
SuperSearchRolloverApi, | ||
} from "./api"; | ||
@@ -68,2 +70,7 @@ | ||
public superSearchRollover = () => | ||
new SuperSearchRolloverApi({ | ||
accessToken: this.getToken | ||
}, this.options.basePath); | ||
@@ -70,0 +77,0 @@ public getToken = async ( |
{ | ||
"name": "@3wks/sargon-api-node-client", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "OpenAPI client for @3wks/sargon-api-node-client", | ||
@@ -5,0 +5,0 @@ "author": "OpenAPI-Generator Contributors", |
@@ -1,2 +0,2 @@ | ||
## @3wks/sargon-api-node-client@0.0.17 | ||
## @3wks/sargon-api-node-client@0.0.18 | ||
@@ -39,3 +39,3 @@ This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: | ||
``` | ||
npm install @3wks/sargon-api-node-client@0.0.17 --save | ||
npm install @3wks/sargon-api-node-client@0.0.18 --save | ||
``` | ||
@@ -42,0 +42,0 @@ |
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
153220
3286
9