@equisoft/equisoft-plan-sdk-typescript
Advanced tools
Comparing version 6.67.0 to 6.67.1-snapshot.20220622192140
@@ -13,3 +13,3 @@ /** | ||
import * as runtime from '../runtime'; | ||
import { UsersUser } from '../models'; | ||
import { UsersUser, UsersUserContext } from '../models'; | ||
export interface GetUserRequest { | ||
@@ -28,2 +28,8 @@ id: number; | ||
getUser(requestParameters: GetUserRequest, initOverrides?: RequestInit): Promise<UsersUser>; | ||
/** | ||
*/ | ||
getUserContextRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<UsersUserContext>>; | ||
/** | ||
*/ | ||
getUserContext(initOverrides?: RequestInit): Promise<UsersUserContext>; | ||
} |
@@ -62,3 +62,30 @@ "use strict"; | ||
} | ||
/** | ||
*/ | ||
getUserContextRaw(initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const queryParameters = {}; | ||
const headerParameters = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", ["plan:user"]); | ||
} | ||
const response = yield this.request({ | ||
path: `/fna/api/v2/userContext`, | ||
method: 'GET', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.UsersUserContextFromJSON(jsonValue)); | ||
}); | ||
} | ||
/** | ||
*/ | ||
getUserContext(initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const response = yield this.getUserContextRaw(initOverrides); | ||
return yield response.value(); | ||
}); | ||
} | ||
} | ||
exports.UsersApi = UsersApi; |
@@ -10,3 +10,4 @@ export * from './CmdCopyFNA'; | ||
export * from './UsersUser'; | ||
export * from './UsersUserContext'; | ||
export * from './V1ErrorResponse'; | ||
export * from './V1ErrorResponseData'; |
@@ -24,3 +24,4 @@ "use strict"; | ||
__exportStar(require("./UsersUser"), exports); | ||
__exportStar(require("./UsersUserContext"), exports); | ||
__exportStar(require("./V1ErrorResponse"), exports); | ||
__exportStar(require("./V1ErrorResponseData"), exports); |
{ | ||
"name": "@equisoft/equisoft-plan-sdk-typescript", | ||
"version": "6.67.0", | ||
"version": "6.67.1-snapshot.20220622192140", | ||
"description": "OpenAPI client for @equisoft/equisoft-plan-sdk-typescript", | ||
@@ -5,0 +5,0 @@ "author": "OpenAPI-Generator", |
@@ -24,2 +24,5 @@ /* tslint:disable */ | ||
UsersUserToJSON, | ||
UsersUserContext, | ||
UsersUserContextFromJSON, | ||
UsersUserContextToJSON, | ||
} from '../models'; | ||
@@ -69,2 +72,31 @@ | ||
/** | ||
*/ | ||
async getUserContextRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<UsersUserContext>> { | ||
const queryParameters: any = {}; | ||
const headerParameters: runtime.HTTPHeaders = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", ["plan:user"]); | ||
} | ||
const response = await this.request({ | ||
path: `/fna/api/v2/userContext`, | ||
method: 'GET', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.JSONApiResponse(response, (jsonValue) => UsersUserContextFromJSON(jsonValue)); | ||
} | ||
/** | ||
*/ | ||
async getUserContext(initOverrides?: RequestInit): Promise<UsersUserContext> { | ||
const response = await this.getUserContextRaw(initOverrides); | ||
return await response.value(); | ||
} | ||
} |
@@ -12,3 +12,4 @@ /* tslint:disable */ | ||
export * from './UsersUser'; | ||
export * from './UsersUserContext'; | ||
export * from './V1ErrorResponse'; | ||
export * from './V1ErrorResponseData'; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
666330
71
5838
3