mirror of https://github.com/Budibase/budibase.git
49 changed files with 306 additions and 224 deletions
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/cloud/accounts") |
|||
module.exports = require("./src/cloud/accounts") |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/auth") |
|||
module.exports = require("./src/auth") |
|||
|
|||
@ -1,7 +1,7 @@ |
|||
const generic = require("./dist/src/cache/generic") |
|||
const generic = require("./src/cache/generic") |
|||
|
|||
module.exports = { |
|||
user: require("./dist/src/cache/user"), |
|||
app: require("./dist/src/cache/appMetadata"), |
|||
user: require("./src/cache/user"), |
|||
app: require("./src/cache/appMetadata"), |
|||
...generic, |
|||
} |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/constants") |
|||
module.exports = require("./src/constants") |
|||
|
|||
@ -1,7 +1,7 @@ |
|||
module.exports = { |
|||
...require("./dist/src/db/utils"), |
|||
...require("./dist/src/db/constants"), |
|||
...require("./dist/src/db"), |
|||
...require("./dist/src/db/views"), |
|||
...require("./dist/src/db/pouch"), |
|||
...require("./src/db/utils"), |
|||
...require("./src/db/constants"), |
|||
...require("./src/db"), |
|||
...require("./src/db/views"), |
|||
...require("./src/db/pouch"), |
|||
} |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/context/deprovision") |
|||
module.exports = require("./src/context/deprovision") |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/security/encryption") |
|||
module.exports = require("./src/security/encryption") |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/logging") |
|||
module.exports = require("./src/logging") |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/middleware") |
|||
module.exports = require("./src/middleware") |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/migrations") |
|||
module.exports = require("./src/migrations") |
|||
|
|||
@ -1,4 +1,4 @@ |
|||
module.exports = { |
|||
...require("./dist/src/objectStore"), |
|||
...require("./dist/src/objectStore/utils"), |
|||
...require("./src/objectStore"), |
|||
...require("./src/objectStore/utils"), |
|||
} |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/security/permissions") |
|||
module.exports = require("./src/security/permissions") |
|||
|
|||
@ -1,5 +1,5 @@ |
|||
module.exports = { |
|||
Client: require("./dist/src/redis"), |
|||
utils: require("./dist/src/redis/utils"), |
|||
clients: require("./dist/src/redis/authRedis"), |
|||
Client: require("./src/redis"), |
|||
utils: require("./src/redis/utils"), |
|||
clients: require("./src/redis/authRedis"), |
|||
} |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/security/roles") |
|||
module.exports = require("./src/security/roles") |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/security/sessions") |
|||
module.exports = require("./src/security/sessions") |
|||
|
|||
@ -1 +1 @@ |
|||
module.exports = require("./dist/src/tenancy") |
|||
module.exports = require("./src/tenancy") |
|||
|
|||
@ -1,112 +1,111 @@ |
|||
exports.init = core => { |
|||
const events = core.events |
|||
const processors = events.processors |
|||
|
|||
jest.spyOn(processors.analyticsProcessor, "processEvent") |
|||
|
|||
jest.spyOn(events.identification, "identifyTenantGroup") |
|||
jest.spyOn(events.identification, "identifyUser") |
|||
|
|||
jest.spyOn(events.backfill, "appSucceeded") |
|||
jest.spyOn(events.backfill, "tenantSucceeded") |
|||
|
|||
jest.spyOn(events.account, "created") |
|||
jest.spyOn(events.account, "deleted") |
|||
jest.spyOn(events.account, "verified") |
|||
|
|||
jest.spyOn(events.app, "created") |
|||
jest.spyOn(events.app, "updated") |
|||
jest.spyOn(events.app, "deleted") |
|||
jest.spyOn(events.app, "published") |
|||
jest.spyOn(events.app, "unpublished") |
|||
jest.spyOn(events.app, "templateImported") |
|||
jest.spyOn(events.app, "fileImported") |
|||
jest.spyOn(events.app, "versionUpdated") |
|||
jest.spyOn(events.app, "versionReverted") |
|||
jest.spyOn(events.app, "reverted") |
|||
jest.spyOn(events.app, "exported") |
|||
|
|||
jest.spyOn(events.auth, "login") |
|||
jest.spyOn(events.auth, "logout") |
|||
jest.spyOn(events.auth, "SSOCreated") |
|||
jest.spyOn(events.auth, "SSOUpdated") |
|||
jest.spyOn(events.auth, "SSOActivated") |
|||
jest.spyOn(events.auth, "SSODeactivated") |
|||
|
|||
jest.spyOn(events.automation, "created") |
|||
jest.spyOn(events.automation, "deleted") |
|||
jest.spyOn(events.automation, "tested") |
|||
jest.spyOn(events.automation, "stepCreated") |
|||
jest.spyOn(events.automation, "stepDeleted") |
|||
jest.spyOn(events.automation, "triggerUpdated") |
|||
|
|||
jest.spyOn(events.datasource, "created") |
|||
jest.spyOn(events.datasource, "updated") |
|||
jest.spyOn(events.datasource, "deleted") |
|||
|
|||
jest.spyOn(events.email, "SMTPCreated") |
|||
jest.spyOn(events.email, "SMTPUpdated") |
|||
|
|||
jest.spyOn(events.layout, "created") |
|||
jest.spyOn(events.layout, "deleted") |
|||
|
|||
jest.spyOn(events.org, "nameUpdated") |
|||
jest.spyOn(events.org, "logoUpdated") |
|||
jest.spyOn(events.org, "platformURLUpdated") |
|||
jest.spyOn(events.org, "analyticsOptOut") |
|||
|
|||
jest.spyOn(events.version, "checked") |
|||
|
|||
jest.spyOn(events.query, "created") |
|||
jest.spyOn(events.query, "updated") |
|||
jest.spyOn(events.query, "deleted") |
|||
jest.spyOn(events.query, "imported") |
|||
jest.spyOn(events.query, "previewed") |
|||
|
|||
jest.spyOn(events.role, "created") |
|||
jest.spyOn(events.role, "updated") |
|||
jest.spyOn(events.role, "deleted") |
|||
jest.spyOn(events.role, "assigned") |
|||
jest.spyOn(events.role, "unassigned") |
|||
|
|||
jest.spyOn(events.rows, "imported") |
|||
jest.spyOn(events.rows, "created") |
|||
|
|||
jest.spyOn(events.screen, "created") |
|||
jest.spyOn(events.screen, "deleted") |
|||
|
|||
jest.spyOn(events.user, "created") |
|||
jest.spyOn(events.user, "updated") |
|||
jest.spyOn(events.user, "deleted") |
|||
jest.spyOn(events.user, "permissionAdminAssigned") |
|||
jest.spyOn(events.user, "permissionAdminRemoved") |
|||
jest.spyOn(events.user, "permissionBuilderAssigned") |
|||
jest.spyOn(events.user, "permissionBuilderRemoved") |
|||
jest.spyOn(events.user, "invited") |
|||
jest.spyOn(events.user, "inviteAccepted") |
|||
jest.spyOn(events.user, "passwordForceReset") |
|||
jest.spyOn(events.user, "passwordUpdated") |
|||
jest.spyOn(events.user, "passwordResetRequested") |
|||
jest.spyOn(events.user, "passwordReset") |
|||
|
|||
jest.spyOn(events.serve, "servedBuilder") |
|||
jest.spyOn(events.serve, "servedApp") |
|||
jest.spyOn(events.serve, "servedAppPreview") |
|||
|
|||
jest.spyOn(events.table, "created") |
|||
jest.spyOn(events.table, "updated") |
|||
jest.spyOn(events.table, "deleted") |
|||
jest.spyOn(events.table, "exported") |
|||
jest.spyOn(events.table, "imported") |
|||
|
|||
jest.spyOn(events.view, "created") |
|||
jest.spyOn(events.view, "updated") |
|||
jest.spyOn(events.view, "deleted") |
|||
jest.spyOn(events.view, "exported") |
|||
jest.spyOn(events.view, "filterCreated") |
|||
jest.spyOn(events.view, "filterUpdated") |
|||
jest.spyOn(events.view, "filterDeleted") |
|||
jest.spyOn(events.view, "calculationCreated") |
|||
jest.spyOn(events.view, "calculationUpdated") |
|||
jest.spyOn(events.view, "calculationDeleted") |
|||
} |
|||
const processors = require("../../../src/events/processors") |
|||
|
|||
jest.spyOn(processors.analyticsProcessor, "processEvent") |
|||
|
|||
const events = require("../../../src/events") |
|||
|
|||
jest.spyOn(events.identification, "identifyTenantGroup") |
|||
jest.spyOn(events.identification, "identifyUser") |
|||
|
|||
jest.spyOn(events.backfill, "appSucceeded") |
|||
jest.spyOn(events.backfill, "tenantSucceeded") |
|||
|
|||
jest.spyOn(events.account, "created") |
|||
jest.spyOn(events.account, "deleted") |
|||
jest.spyOn(events.account, "verified") |
|||
|
|||
jest.spyOn(events.app, "created") |
|||
jest.spyOn(events.app, "updated") |
|||
jest.spyOn(events.app, "deleted") |
|||
jest.spyOn(events.app, "published") |
|||
jest.spyOn(events.app, "unpublished") |
|||
jest.spyOn(events.app, "templateImported") |
|||
jest.spyOn(events.app, "fileImported") |
|||
jest.spyOn(events.app, "versionUpdated") |
|||
jest.spyOn(events.app, "versionReverted") |
|||
jest.spyOn(events.app, "reverted") |
|||
jest.spyOn(events.app, "exported") |
|||
|
|||
jest.spyOn(events.auth, "login") |
|||
jest.spyOn(events.auth, "logout") |
|||
jest.spyOn(events.auth, "SSOCreated") |
|||
jest.spyOn(events.auth, "SSOUpdated") |
|||
jest.spyOn(events.auth, "SSOActivated") |
|||
jest.spyOn(events.auth, "SSODeactivated") |
|||
|
|||
jest.spyOn(events.automation, "created") |
|||
jest.spyOn(events.automation, "deleted") |
|||
jest.spyOn(events.automation, "tested") |
|||
jest.spyOn(events.automation, "stepCreated") |
|||
jest.spyOn(events.automation, "stepDeleted") |
|||
jest.spyOn(events.automation, "triggerUpdated") |
|||
|
|||
jest.spyOn(events.datasource, "created") |
|||
jest.spyOn(events.datasource, "updated") |
|||
jest.spyOn(events.datasource, "deleted") |
|||
|
|||
jest.spyOn(events.email, "SMTPCreated") |
|||
jest.spyOn(events.email, "SMTPUpdated") |
|||
|
|||
jest.spyOn(events.layout, "created") |
|||
jest.spyOn(events.layout, "deleted") |
|||
|
|||
jest.spyOn(events.org, "nameUpdated") |
|||
jest.spyOn(events.org, "logoUpdated") |
|||
jest.spyOn(events.org, "platformURLUpdated") |
|||
jest.spyOn(events.org, "analyticsOptOut") |
|||
|
|||
jest.spyOn(events.version, "checked") |
|||
|
|||
jest.spyOn(events.query, "created") |
|||
jest.spyOn(events.query, "updated") |
|||
jest.spyOn(events.query, "deleted") |
|||
jest.spyOn(events.query, "imported") |
|||
jest.spyOn(events.query, "previewed") |
|||
|
|||
jest.spyOn(events.role, "created") |
|||
jest.spyOn(events.role, "updated") |
|||
jest.spyOn(events.role, "deleted") |
|||
jest.spyOn(events.role, "assigned") |
|||
jest.spyOn(events.role, "unassigned") |
|||
|
|||
jest.spyOn(events.rows, "imported") |
|||
jest.spyOn(events.rows, "created") |
|||
|
|||
jest.spyOn(events.screen, "created") |
|||
jest.spyOn(events.screen, "deleted") |
|||
|
|||
jest.spyOn(events.user, "created") |
|||
jest.spyOn(events.user, "updated") |
|||
jest.spyOn(events.user, "deleted") |
|||
jest.spyOn(events.user, "permissionAdminAssigned") |
|||
jest.spyOn(events.user, "permissionAdminRemoved") |
|||
jest.spyOn(events.user, "permissionBuilderAssigned") |
|||
jest.spyOn(events.user, "permissionBuilderRemoved") |
|||
jest.spyOn(events.user, "invited") |
|||
jest.spyOn(events.user, "inviteAccepted") |
|||
jest.spyOn(events.user, "passwordForceReset") |
|||
jest.spyOn(events.user, "passwordUpdated") |
|||
jest.spyOn(events.user, "passwordResetRequested") |
|||
jest.spyOn(events.user, "passwordReset") |
|||
|
|||
jest.spyOn(events.serve, "servedBuilder") |
|||
jest.spyOn(events.serve, "servedApp") |
|||
jest.spyOn(events.serve, "servedAppPreview") |
|||
|
|||
jest.spyOn(events.table, "created") |
|||
jest.spyOn(events.table, "updated") |
|||
jest.spyOn(events.table, "deleted") |
|||
jest.spyOn(events.table, "exported") |
|||
jest.spyOn(events.table, "imported") |
|||
|
|||
jest.spyOn(events.view, "created") |
|||
jest.spyOn(events.view, "updated") |
|||
jest.spyOn(events.view, "deleted") |
|||
jest.spyOn(events.view, "exported") |
|||
jest.spyOn(events.view, "filterCreated") |
|||
jest.spyOn(events.view, "filterUpdated") |
|||
jest.spyOn(events.view, "filterDeleted") |
|||
jest.spyOn(events.view, "calculationCreated") |
|||
jest.spyOn(events.view, "calculationUpdated") |
|||
jest.spyOn(events.view, "calculationDeleted") |
|||
|
|||
@ -1,4 +1,4 @@ |
|||
module.exports = { |
|||
...require("./dist/src/utils"), |
|||
...require("./dist/src/hashing"), |
|||
...require("./src/utils"), |
|||
...require("./src/hashing"), |
|||
} |
|||
|
|||
@ -0,0 +1,23 @@ |
|||
{ |
|||
"compilerOptions": { |
|||
"target": "es6", |
|||
"module": "commonjs", |
|||
"lib": ["es2019"], |
|||
"allowJs": true, |
|||
"outDir": "dist", |
|||
"strict": true, |
|||
"noImplicitAny": true, |
|||
"esModuleInterop": true, |
|||
"resolveJsonModule": true, |
|||
"incremental": true |
|||
}, |
|||
"include": [ |
|||
"./src/**/*" |
|||
], |
|||
"exclude": [ |
|||
"node_modules", |
|||
"**/*.json", |
|||
"**/*.spec.ts", |
|||
"**/*.spec.js" |
|||
] |
|||
} |
|||
@ -1,23 +1,21 @@ |
|||
{ |
|||
"extends": "./tsconfig.build.json", |
|||
"compilerOptions": { |
|||
"target": "es6", |
|||
"module": "commonjs", |
|||
"lib": ["es2019"], |
|||
"allowJs": true, |
|||
"outDir": "dist", |
|||
"strict": true, |
|||
"noImplicitAny": true, |
|||
"esModuleInterop": true, |
|||
"resolveJsonModule": true, |
|||
"incremental": true |
|||
"composite": true, |
|||
"declaration": true, |
|||
"sourceMap": true, |
|||
"baseUrl": ".", |
|||
"paths": { |
|||
"@budibase/types": ["../types/src"], |
|||
"@budibase/backend-core": ["../backend-core/src"], |
|||
"@budibase/backend-core/*": ["../backend-core/*.js"] |
|||
} |
|||
}, |
|||
"include": [ |
|||
"./src/**/*" |
|||
], |
|||
"exclude": [ |
|||
"node_modules", |
|||
"**/*.json", |
|||
"**/*.spec.ts", |
|||
"**/*.spec.js" |
|||
"ts-node": { |
|||
"require": ["tsconfig-paths/register"] |
|||
}, |
|||
"references": [ |
|||
{ "path": "../types" }, |
|||
{ "path": "../backend-core" }, |
|||
] |
|||
} |
|||
} |
|||
@ -1,5 +1,3 @@ |
|||
node_modules/ |
|||
dist |
|||
coverage/ |
|||
tsconfig.build.tsbuildinfo |
|||
tsconfig.tsbuildinfo |
|||
coverage/ |
|||
@ -1,5 +1,4 @@ |
|||
node_modules/ |
|||
.env |
|||
watchtower-hook.json |
|||
dist/ |
|||
tsconfig.build.tsbuildinfo |
|||
dist/ |
|||
@ -0,0 +1,9 @@ |
|||
{ |
|||
"references": [ |
|||
{ "path": "./packages/types" }, |
|||
{ "path": "./packages/backend-core" }, |
|||
{ "path": "./packages/server" }, |
|||
{ "path": "./packages/worker" }, |
|||
], |
|||
"files" :[] |
|||
} |
|||
Loading…
Reference in new issue