Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// $ExpectType void
authClientTwoLegged.setCredentials(authToken);
// $ExpectType boolean
authClientTwoLegged.isAuthorized();
// $ExpectType AuthClientThreeLegged
const authClientThreeLegged = new AuthClientThreeLegged('', '', '', [], true);
// $ExpectType string
authClientThreeLegged.generateAuthUrl();
// $ExpectType Promise
authClientThreeLegged.getToken('');
// $ExpectType Promise
authClientThreeLegged.refreshToken(authToken);
// $ExpectType ActivitiesApi
const activitiesApi = new ActivitiesApi();
// $ExpectType Promise
activitiesApi.createActivity(
{
Id: '',
Instruction: {},
AppPackages: [''],
RequiredEngineVersion: '',
Parameters: {},
AllowedChildProcesses: [{}],
Version: 0,
Description: '',
HostApplication: '',
IsPublic: true,
},
authClientTwoLegged,