chore: import upstream snapshot with attribution
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import * as sdk from '@botpress/sdk'
|
||||
import interfaceWithEntities from './bp_modules/interface-with-entities'
|
||||
import * as packageJson from './package.json'
|
||||
|
||||
export default new sdk.IntegrationDefinition({
|
||||
name: packageJson.integrationName,
|
||||
version: '1.0.0',
|
||||
entities: {
|
||||
customItem: {
|
||||
schema: sdk.z.object({
|
||||
id: sdk.z.string(),
|
||||
name: sdk.z.string().optional(),
|
||||
color: sdk.z.string().optional(),
|
||||
}),
|
||||
},
|
||||
},
|
||||
}).extend(interfaceWithEntities, ({ entities }) => ({ entities: { item: entities.customItem } }))
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "cli-fixtures-integration-with-entity-dependency",
|
||||
"integrationName": "cli-fixtures-integration-with-entity-dependency",
|
||||
"scripts": {
|
||||
"check:type": "tsc --noEmit"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@botpress/sdk": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.16.4",
|
||||
"typescript": "^5.6.3"
|
||||
},
|
||||
"bpDependencies": {
|
||||
"interface-with-entities": "../../interfaces/interface-with-entities"
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import * as bp from '.botpress'
|
||||
|
||||
export default new bp.Integration({
|
||||
register() {
|
||||
throw new Error('Not implemented')
|
||||
},
|
||||
unregister() {
|
||||
throw new Error('Not implemented')
|
||||
},
|
||||
actions: {
|
||||
manipulateItem() {
|
||||
throw new Error('Not implemented')
|
||||
},
|
||||
},
|
||||
channels: {},
|
||||
handler() {
|
||||
throw new Error('Not implemented')
|
||||
},
|
||||
})
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["es2022"],
|
||||
"module": "commonjs",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"moduleResolution": "node",
|
||||
"allowUnusedLabels": false,
|
||||
"allowUnreachableCode": false,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noImplicitOverride": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"noUnusedParameters": true,
|
||||
"target": "es2017",
|
||||
"paths": { "*": ["./*"] },
|
||||
"outDir": "dist",
|
||||
"checkJs": false,
|
||||
"incremental": true,
|
||||
"exactOptionalPropertyTypes": false,
|
||||
"resolveJsonModule": true,
|
||||
"noPropertyAccessFromIndexSignature": false,
|
||||
"noUnusedLocals": false
|
||||
},
|
||||
"include": [".botpress/**/*", "src/**/*", "*.ts", "*.json"]
|
||||
}
|
||||
Reference in New Issue
Block a user