Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions integrations/sharepoint-excel/integration.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { z, IntegrationDefinition } from '@botpress/sdk'

export default new IntegrationDefinition({
name: 'plus/sharepoint-excel',
version: '2.2.1',
version: '2.3.0',
title: 'SharePoint Excel',
description: 'Sync one or many SharePoint document libraries with one or more Botpress knowledge bases.',
readme: 'hub.md',
Expand All @@ -19,7 +19,6 @@ export default new IntegrationDefinition({
privateKey: z.string().min(1).describe('PEM‑formatted certificate private key'),
primaryDomain: z.string().min(1).describe('SharePoint primary domain (e.g. contoso)'),
siteName: z.string().min(1).describe('SharePoint site name'),
personalAccessToken: z.string().min(1).describe('Botpress Personal Access Token (PAT) for Tables API access'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: removing unneeded permissions is great!

}),
},

Expand All @@ -41,7 +40,7 @@ export default new IntegrationDefinition({
sheetTableMapping: z
.string()
.describe(
'Map sheets to tables. Format: \'Sheet1:table1,Sheet2:table2\' or JSON: \'{"Sheet1":"table1","Sheet2":"table2"}\''
'Map sheets to tables. Format: \'Sheet1:dataTable,Sheet2:itemsTable\' or JSON: \'{"Sheet1":"dataTable","Sheet2":"itemsTable"}\'. Table names must end with \'Table\'.'
),
}),
},
Expand All @@ -55,7 +54,15 @@ export default new IntegrationDefinition({
rowCount: z.number(),
})
)
.optional(),
.describe('Successfully processed sheets'),
failedSheets: z
.array(
z.object({
sheetName: z.string(),
error: z.string(),
})
)
.describe('Sheets that failed to process'),
}),
},
},
Expand Down
12 changes: 6 additions & 6 deletions integrations/sharepoint-excel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"private": true,
"dependencies": {
"@azure/msal-node": "^2.15.0",
"@botpress/client": "^1.13.0",
"@botpress/client": "1.22.0",
"@botpress/sdk": "4.15.2",
"axios": "^1.8.1",
"@botpress/sdk": "0.11.8",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@botpress/cli": "^0.11.5",
"@types/node": "^18.11.17",
"@botpress/cli": "^4.17.2",
"@types/node": "^20.19.0",
"nodemon": "^3.1.7",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
"ts-node": "^10.9.2",
"typescript": "^5.8.2"
}
}
Loading