Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { appInstall, DEFAULT_ACCESS_TOKEN, DEFAULT_USER } from '@orchesty/nodejs-connectors/test/DataProvider';
import {
container, db, oauth2Provider, sender,
} from '@orchesty/nodejs-connectors/test/TestAbstract';
import CoreFormsEnum from '@orchesty/nodejs-sdk/dist/lib/Application/Base/CoreFormsEnum';
import { CLIENT_ID, CLIENT_SECRET } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Type/OAuth2/IOAuth2Application';
import OneDriveUploadFileConnector from '../src/Connector/OneDriveUploadFileConnector';
import OneDriveApplication, { NAME as ONEDRIVE_APP, TOKEN } from '../src/OneDriveApplication';
export default function init(): void {
appInstall(ONEDRIVE_APP, DEFAULT_USER, {
[CoreFormsEnum.AUTHORIZATION_FORM]: {
[TOKEN]: DEFAULT_ACCESS_TOKEN,
[CLIENT_ID]: CLIENT_ID,
[CLIENT_SECRET]: CLIENT_SECRET,
},
});
const app = new OneDriveApplication(oauth2Provider);
container.setApplication(app);
const uploadFile = new OneDriveUploadFileConnector();
uploadFile
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(uploadFile);
}
|