chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
import * as sdk from '@botpress/sdk'
|
||||
import * as genenv from './.genenv'
|
||||
import dropbox from './bp_modules/dropbox'
|
||||
import fileSynchronizer from './bp_modules/file-synchronizer'
|
||||
|
||||
export default new sdk.BotDefinition({
|
||||
configuration: {
|
||||
schema: sdk.z.object({}),
|
||||
},
|
||||
})
|
||||
.addIntegration(dropbox, {
|
||||
alias: 'dropbox-a',
|
||||
enabled: true,
|
||||
configuration: {
|
||||
authorizationCode: genenv.DROPBOX_A_ACCESS_CODE,
|
||||
clientId: genenv.DROPBOX_A_APP_KEY,
|
||||
clientSecret: genenv.DROPBOX_A_APP_SECRET,
|
||||
},
|
||||
})
|
||||
.addIntegration(dropbox, {
|
||||
alias: 'dropbox-b',
|
||||
enabled: true,
|
||||
configuration: {
|
||||
authorizationCode: genenv.DROPBOX_B_ACCESS_CODE,
|
||||
clientId: genenv.DROPBOX_B_APP_KEY,
|
||||
clientSecret: genenv.DROPBOX_B_APP_SECRET,
|
||||
},
|
||||
})
|
||||
.addPlugin(fileSynchronizer, {
|
||||
alias: 'file-synchronizer-a',
|
||||
configuration: {
|
||||
includeFiles: [{ pathGlobPattern: '**' }],
|
||||
excludeFiles: [],
|
||||
enableRealTimeSync: true,
|
||||
},
|
||||
dependencies: {
|
||||
'files-readonly': {
|
||||
integrationAlias: 'dropbox-a',
|
||||
integrationInterfaceAlias: 'files-readonly',
|
||||
},
|
||||
},
|
||||
})
|
||||
.addPlugin(fileSynchronizer, {
|
||||
alias: 'file-synchronizer-b',
|
||||
configuration: {
|
||||
includeFiles: [{ pathGlobPattern: '**' }],
|
||||
excludeFiles: [],
|
||||
enableRealTimeSync: true,
|
||||
},
|
||||
dependencies: {
|
||||
'files-readonly': {
|
||||
integrationAlias: 'dropbox-b',
|
||||
integrationInterfaceAlias: 'files-readonly',
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "@bp-bots/drop-weaver",
|
||||
"scripts": {
|
||||
"postinstall": "genenv -o ./.genenv/index.ts -e DROPBOX_A_APP_KEY -e DROPBOX_A_APP_SECRET -e DROPBOX_A_ACCESS_CODE -e DROPBOX_B_APP_KEY -e DROPBOX_B_APP_SECRET -e DROPBOX_B_ACCESS_CODE",
|
||||
"check:type": "tsc --noEmit",
|
||||
"check:bplint": "bp lint",
|
||||
"build": "bp add -y && bp build"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@botpress/client": "workspace:*",
|
||||
"@botpress/sdk": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@botpress/cli": "workspace:*",
|
||||
"@botpress/common": "workspace:*",
|
||||
"@botpresshub/dropbox": "workspace:*",
|
||||
"@botpresshub/file-synchronizer": "workspace:*",
|
||||
"@bpinternal/genenv": "0.0.1"
|
||||
},
|
||||
"bpDependencies": {
|
||||
"file-synchronizer": "../../plugins/file-synchronizer",
|
||||
"dropbox": "../../integrations/dropbox"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import * as bp from '.botpress'
|
||||
|
||||
const bot = new bp.Bot({
|
||||
actions: {},
|
||||
})
|
||||
|
||||
export default bot
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"paths": { "*": ["./*"] },
|
||||
"outDir": "dist"
|
||||
},
|
||||
"include": [".botpress/**/*", "src/**/*", "*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user