84ed580ea4
* feat(dashboards): create new dashboard share api * feat(dashboards): add enable / disable dashboard share flows * test(dashboards): add more unittests to dashboard sharing * Add sharing modal * Update sidebar * Update share token mutation * feat(dashboards): share check for projects, tokens return modified objects * Updated tokens * Fix * Middleware * Add default case * fix(tokens): respect the tokens.revoked parameter * fix(shared): can read dashboard now requires an active server session * fix(server): handle dashboard no projects error in server --------- Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
20 lines
361 B
TypeScript
20 lines
361 B
TypeScript
import { buildTableHelper } from '@/modules/core/dbSchema'
|
|
|
|
export const Dashboards = buildTableHelper('dashboards', [
|
|
'id',
|
|
'name',
|
|
'workspaceId',
|
|
'projectIds',
|
|
'ownerId',
|
|
'state',
|
|
'createdAt',
|
|
'updatedAt'
|
|
])
|
|
|
|
export const DashboardApiTokens = buildTableHelper('dashboard_api_tokens', [
|
|
'tokenId',
|
|
'dashboardId',
|
|
'userId',
|
|
'content'
|
|
])
|