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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x | import { appInstall, DEFAULT_ACCESS_TOKEN, DEFAULT_USER } from '@orchesty/nodejs-connectors/test/DataProvider';
import { container, db, sender } from '@orchesty/nodejs-connectors/test/TestAbstract';
import CoreFormsEnum from '@orchesty/nodejs-sdk/dist/lib/Application/Base/CoreFormsEnum';
import { TOKEN } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Type/Basic/ABasicApplication';
import PipedriveGetAllLeadsBatch from '../src/Batch/PipedriveGetAllLeadsBatch';
import PipedriveGetAllNotesBatch from '../src/Batch/PipedriveGetAllNotesBatch';
import PipedriveAddLeadConnector from '../src/Connector/PipedriveAddLeadConnector';
import PipedriveAddNoteConnector from '../src/Connector/PipedriveAddNoteConnector';
import PipedriveDeleteLeadConnector from '../src/Connector/PipedriveDeleteLeadConnector';
import PipedriveDeleteNoteConnector from '../src/Connector/PipedriveDeleteNoteConnector';
import PipedriveGetLeadConnector from '../src/Connector/PipedriveGetLeadConnector';
import PipedriveGetNoteConnector from '../src/Connector/PipedriveGetNoteConnector';
import PipedriveUpdateLeadConnector from '../src/Connector/PipedriveUpdateLeadConnector';
import PipedriveUpdateNoteConnector from '../src/Connector/PipedriveUpdateNoteConnector';
import PipedriveApplication, { NAME as PIPEDRIVE_APP, SUBDOMAIN } from '../src/PipedriveApplication';
export default function init(): void {
appInstall(PIPEDRIVE_APP, DEFAULT_USER, {
[CoreFormsEnum.AUTHORIZATION_FORM]: {
[SUBDOMAIN]: 'company',
[TOKEN]: DEFAULT_ACCESS_TOKEN,
},
});
appInstall(PIPEDRIVE_APP, DEFAULT_USER, {
[CoreFormsEnum.AUTHORIZATION_FORM]: {
[SUBDOMAIN]: 'company',
[TOKEN]: DEFAULT_ACCESS_TOKEN,
},
});
const app = new PipedriveApplication();
const getAllLeads = new PipedriveGetAllLeadsBatch();
const addLead = new PipedriveAddLeadConnector();
const updateLead = new PipedriveUpdateLeadConnector();
const getLead = new PipedriveGetLeadConnector();
const deleteLead = new PipedriveDeleteLeadConnector();
const getAllNotes = new PipedriveGetAllNotesBatch();
const addNote = new PipedriveAddNoteConnector();
const updateNote = new PipedriveUpdateNoteConnector();
const deleteNote = new PipedriveDeleteNoteConnector();
const getNote = new PipedriveGetNoteConnector();
container.setApplication(app);
getAllLeads
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setBatch(getAllLeads);
addLead
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(addLead);
updateLead
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(updateLead);
getLead
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(getLead);
deleteLead
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(deleteLead);
getAllNotes
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setBatch(getAllNotes);
addNote
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(addNote);
updateNote
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(updateNote);
deleteNote
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(deleteNote);
getNote
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setConnector(getNote);
}
|