@xpert-ai/plugin-excalidraw 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.xpertai-plugin/plugin.json +1 -1
- package/dist/index.js +153 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/constants.js +42 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/entities/excalidraw-action-log.entity.js +69 -0
- package/dist/lib/entities/excalidraw-action-log.entity.js.map +1 -0
- package/dist/lib/entities/excalidraw-drawing-version.entity.js +82 -0
- package/dist/lib/entities/excalidraw-drawing-version.entity.js.map +1 -0
- package/dist/lib/entities/excalidraw-drawing.entity.js +94 -0
- package/dist/lib/entities/excalidraw-drawing.entity.js.map +1 -0
- package/dist/lib/entities/index.js +4 -0
- package/dist/lib/entities/index.js.map +1 -0
- package/dist/lib/excalidraw-view.provider.js +423 -0
- package/dist/lib/excalidraw-view.provider.js.map +1 -0
- package/dist/lib/excalidraw.middleware.js +173 -0
- package/dist/lib/excalidraw.middleware.js.map +1 -0
- package/dist/lib/excalidraw.plugin.js +27 -0
- package/dist/lib/excalidraw.plugin.js.map +1 -0
- package/dist/lib/excalidraw.service.js +441 -0
- package/dist/lib/excalidraw.service.js.map +1 -0
- package/dist/lib/excalidraw.templates.js +78 -0
- package/dist/lib/excalidraw.templates.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/i18n.js +103 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/i18n.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-client-shim.js +4 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-client-shim.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-shim.js +11 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-dom-shim.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-jsx-runtime-shim.js +8 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-jsx-runtime-shim.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-shim.js +36 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/react-shim.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/runtime.js +198 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/runtime.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/styles.js +324 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/styles.js.map +1 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/vendor.js +4 -0
- package/dist/lib/remote-components/excalidraw-workbench/src/vendor.js.map +1 -0
- package/dist/lib/types.js +2 -0
- package/dist/lib/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/plugin-excalidraw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Excalidraw app plugin for agent-created diagrams, reviewable drawing versions, Mermaid drafts, and an editable workbench.",
|
|
5
5
|
"author": "XpertAI",
|
|
6
6
|
"homepage": "https://github.com/xpert-ai/xpert-plugins/tree/main/community/apps/excalidraw",
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { EXCALIDRAW_AGENT_DRAWING_CAPABILITY, EXCALIDRAW_FEATURE, EXCALIDRAW_ICON, EXCALIDRAW_MIDDLEWARE_NAME, EXCALIDRAW_PROVIDER_KEY, EXCALIDRAW_TEMPLATE_CAPABILITY, EXCALIDRAW_TEMPLATE_PROVIDER_KEY, EXCALIDRAW_WORKBENCH_CAPABILITY, EXCALIDRAW_WORKBENCH_VIEW_KEY } from './lib/constants.js';
|
|
6
|
+
import { ExcalidrawPlugin } from './lib/excalidraw.plugin.js';
|
|
7
|
+
import { excalidrawTemplates } from './lib/excalidraw.templates.js';
|
|
8
|
+
const moduleDir = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const packageJson = JSON.parse(readFileSync(join(moduleDir, '../package.json'), 'utf8'));
|
|
10
|
+
const ConfigSchema = z.object({});
|
|
11
|
+
const plugin = {
|
|
12
|
+
meta: {
|
|
13
|
+
name: packageJson.name,
|
|
14
|
+
version: packageJson.version,
|
|
15
|
+
level: 'system',
|
|
16
|
+
targetApps: ['data-xpert', 'xpert'],
|
|
17
|
+
targetAppMeta: {
|
|
18
|
+
'data-xpert': {
|
|
19
|
+
types: ['workbench-view', 'assistant-tool', 'business-app'],
|
|
20
|
+
capabilities: [
|
|
21
|
+
EXCALIDRAW_FEATURE,
|
|
22
|
+
EXCALIDRAW_WORKBENCH_CAPABILITY,
|
|
23
|
+
EXCALIDRAW_AGENT_DRAWING_CAPABILITY,
|
|
24
|
+
EXCALIDRAW_TEMPLATE_CAPABILITY
|
|
25
|
+
],
|
|
26
|
+
marketplace: {
|
|
27
|
+
contents: [
|
|
28
|
+
{
|
|
29
|
+
type: 'app',
|
|
30
|
+
name: 'excalidraw',
|
|
31
|
+
displayName: 'Excalidraw',
|
|
32
|
+
description: 'Create, update, version, review, import, export, and convert Agent-generated Excalidraw diagrams.',
|
|
33
|
+
icon: {
|
|
34
|
+
type: 'svg',
|
|
35
|
+
value: EXCALIDRAW_ICON,
|
|
36
|
+
color: '#2563eb'
|
|
37
|
+
},
|
|
38
|
+
operations: [
|
|
39
|
+
{
|
|
40
|
+
name: 'create-excalidraw-drawings',
|
|
41
|
+
displayName: 'Create Excalidraw drawings',
|
|
42
|
+
description: 'Create reviewable diagrams from Agent-generated Excalidraw JSON or Mermaid drafts.',
|
|
43
|
+
access: 'write'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'save-excalidraw-versions',
|
|
47
|
+
displayName: 'Save drawing versions',
|
|
48
|
+
description: 'Persist complete scenes, patches, and Mermaid conversions as versioned drawing records.',
|
|
49
|
+
access: 'write'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'review-excalidraw-workbench',
|
|
53
|
+
displayName: 'Review drawing workbench',
|
|
54
|
+
description: 'Open Excalidraw to inspect, manually edit, restore, import, and export drawings.',
|
|
55
|
+
access: 'read'
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: 'view',
|
|
61
|
+
name: EXCALIDRAW_WORKBENCH_VIEW_KEY,
|
|
62
|
+
displayName: 'Excalidraw Workbench',
|
|
63
|
+
description: 'Workbench view for drawing lists, Excalidraw editing, Mermaid conversion, and version history.'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: 'tool',
|
|
67
|
+
name: EXCALIDRAW_MIDDLEWARE_NAME,
|
|
68
|
+
displayName: 'Excalidraw Agent Tools',
|
|
69
|
+
description: 'Assistant middleware tools for creating drawings, saving scenes, patching elements, saving Mermaid drafts, searching drawings, and reporting failures.'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: 'assistant-template',
|
|
73
|
+
name: 'excalidraw-assistant',
|
|
74
|
+
displayName: 'Excalidraw Drawing Assistant Template',
|
|
75
|
+
description: 'Prebuilt assistant template for Agent-managed diagram creation and Excalidraw review workflows.'
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
runtime: {
|
|
80
|
+
middlewareProviders: [EXCALIDRAW_MIDDLEWARE_NAME],
|
|
81
|
+
viewProviders: [EXCALIDRAW_PROVIDER_KEY],
|
|
82
|
+
templateProviders: [EXCALIDRAW_TEMPLATE_PROVIDER_KEY]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
xpert: {
|
|
86
|
+
types: ['assistant-template', 'skill', 'app', 'xpertai-bundle'],
|
|
87
|
+
capabilities: [
|
|
88
|
+
EXCALIDRAW_FEATURE,
|
|
89
|
+
EXCALIDRAW_WORKBENCH_CAPABILITY,
|
|
90
|
+
EXCALIDRAW_AGENT_DRAWING_CAPABILITY,
|
|
91
|
+
EXCALIDRAW_TEMPLATE_CAPABILITY
|
|
92
|
+
],
|
|
93
|
+
marketplace: {
|
|
94
|
+
contents: [
|
|
95
|
+
{
|
|
96
|
+
type: 'skill',
|
|
97
|
+
name: 'index',
|
|
98
|
+
displayName: 'Excalidraw Agent Drawing',
|
|
99
|
+
description: 'Workflow skill for Agent-managed Excalidraw diagrams, Mermaid drafts, scene versions, and Workbench review.',
|
|
100
|
+
tags: ['skill', 'excalidraw', 'agent-drawing']
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'assistant-template',
|
|
104
|
+
name: 'excalidraw-assistant',
|
|
105
|
+
displayName: 'Excalidraw Drawing Assistant',
|
|
106
|
+
description: 'Assistant template for Excalidraw drawing workflows.'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
type: 'app',
|
|
110
|
+
name: 'excalidraw',
|
|
111
|
+
displayName: 'Excalidraw',
|
|
112
|
+
description: 'Workbench and Agent middleware tools for Excalidraw diagrams.'
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
category: 'middleware',
|
|
119
|
+
icon: {
|
|
120
|
+
type: 'svg',
|
|
121
|
+
value: EXCALIDRAW_ICON,
|
|
122
|
+
color: '#2563eb'
|
|
123
|
+
},
|
|
124
|
+
displayName: 'Excalidraw',
|
|
125
|
+
description: 'Agentic Excalidraw plugin for structured diagram generation, versioning, review, and Mermaid conversion.',
|
|
126
|
+
keywords: ['excalidraw', 'diagram', 'whiteboard', 'mermaid', 'middleware', 'view-extension', 'assistant-template'],
|
|
127
|
+
author: 'XpertAI Team'
|
|
128
|
+
},
|
|
129
|
+
config: {
|
|
130
|
+
schema: ConfigSchema
|
|
131
|
+
},
|
|
132
|
+
templates: excalidrawTemplates,
|
|
133
|
+
register(ctx) {
|
|
134
|
+
ctx.logger.log('register excalidraw plugin');
|
|
135
|
+
return { module: ExcalidrawPlugin, global: true };
|
|
136
|
+
},
|
|
137
|
+
async onStart(ctx) {
|
|
138
|
+
ctx.logger.log('excalidraw plugin started');
|
|
139
|
+
},
|
|
140
|
+
async onStop(ctx) {
|
|
141
|
+
ctx.logger.log('excalidraw plugin stopped');
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
export default plugin;
|
|
145
|
+
export * from './lib/constants.js';
|
|
146
|
+
export * from './lib/types.js';
|
|
147
|
+
export * from './lib/entities/index.js';
|
|
148
|
+
export * from './lib/excalidraw.plugin.js';
|
|
149
|
+
export * from './lib/excalidraw.service.js';
|
|
150
|
+
export * from './lib/excalidraw.middleware.js';
|
|
151
|
+
export * from './lib/excalidraw-view.provider.js';
|
|
152
|
+
export * from './lib/excalidraw.templates.js';
|
|
153
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,mCAAmC,EACnC,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAE1B,uBAAuB,EACvB,8BAA8B,EAC9B,gCAAgC,EAChC,+BAA+B,EAC/B,6BAA6B,EAC9B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAEnE,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CA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,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,eAAe;YACtB,KAAK,EAAE,SAAS;SACjB;QACD,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,0GAA0G;QACvH,QAAQ,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,CAAC;QAClH,MAAM,EAAE,cAAc;KACvB;IACD,MAAM,EAAE;QACN,MAAM,EAAE,YAAY;KACrB;IACD,SAAS,EAAE,mBAAmB;IAC9B,QAAQ,CAAC,GAAG;QACV,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAA;QAC5C,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;IACnD,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,GAAG;QACf,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IAC7C,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IAC7C,CAAC;CACF,CAAA;AAED,eAAe,MAAM,CAAA;AACrB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const EXCALIDRAW_PLUGIN_NAME = '@xpert-ai/plugin-excalidraw';
|
|
2
|
+
export const EXCALIDRAW_PROVIDER_KEY = 'excalidraw';
|
|
3
|
+
export const EXCALIDRAW_MIDDLEWARE_NAME = 'ExcalidrawMiddleware';
|
|
4
|
+
export const EXCALIDRAW_TEMPLATE_PROVIDER_KEY = 'excalidrawTemplates';
|
|
5
|
+
export const EXCALIDRAW_FEATURE = 'excalidraw';
|
|
6
|
+
export const EXCALIDRAW_AGENT_DRAWING_CAPABILITY = 'agent-drawing';
|
|
7
|
+
export const EXCALIDRAW_WORKBENCH_CAPABILITY = 'diagram-workbench';
|
|
8
|
+
export const EXCALIDRAW_TEMPLATE_CAPABILITY = 'excalidraw-assistant-template';
|
|
9
|
+
export const EXCALIDRAW_WORKBENCH_VIEW_KEY = 'excalidraw_workbench';
|
|
10
|
+
export const EXCALIDRAW_REMOTE_ENTRY_KEY = 'excalidraw-workbench';
|
|
11
|
+
export const AGENT_WORKBENCH_MAIN_SLOT = 'agent.workbench.main';
|
|
12
|
+
export const AGENT_WORKBENCH_FIXED_SLOT = 'agent.workbench.fixed';
|
|
13
|
+
export const ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = 'assistant.chat.send_message';
|
|
14
|
+
export const EXCALIDRAW_CREATE_DRAWING_TOOL_NAME = 'excalidraw_create_drawing';
|
|
15
|
+
export const EXCALIDRAW_SAVE_SCENE_VERSION_TOOL_NAME = 'excalidraw_save_scene_version';
|
|
16
|
+
export const EXCALIDRAW_PATCH_SCENE_TOOL_NAME = 'excalidraw_patch_scene';
|
|
17
|
+
export const EXCALIDRAW_SAVE_MERMAID_DRAFT_TOOL_NAME = 'excalidraw_save_mermaid_draft';
|
|
18
|
+
export const EXCALIDRAW_SEARCH_DRAWINGS_TOOL_NAME = 'excalidraw_search_drawings';
|
|
19
|
+
export const EXCALIDRAW_GET_DRAWING_TOOL_NAME = 'excalidraw_get_drawing';
|
|
20
|
+
export const EXCALIDRAW_UPDATE_DRAWING_STATUS_TOOL_NAME = 'excalidraw_update_drawing_status';
|
|
21
|
+
export const EXCALIDRAW_REPORT_FAILURE_TOOL_NAME = 'excalidraw_report_failure';
|
|
22
|
+
export const EXCALIDRAW_MIDDLEWARE_TOOL_NAMES = [
|
|
23
|
+
EXCALIDRAW_CREATE_DRAWING_TOOL_NAME,
|
|
24
|
+
EXCALIDRAW_SAVE_SCENE_VERSION_TOOL_NAME,
|
|
25
|
+
EXCALIDRAW_PATCH_SCENE_TOOL_NAME,
|
|
26
|
+
EXCALIDRAW_SAVE_MERMAID_DRAFT_TOOL_NAME,
|
|
27
|
+
EXCALIDRAW_SEARCH_DRAWINGS_TOOL_NAME,
|
|
28
|
+
EXCALIDRAW_GET_DRAWING_TOOL_NAME,
|
|
29
|
+
EXCALIDRAW_UPDATE_DRAWING_STATUS_TOOL_NAME,
|
|
30
|
+
EXCALIDRAW_REPORT_FAILURE_TOOL_NAME
|
|
31
|
+
];
|
|
32
|
+
export const EXCALIDRAW_ICON = `<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256" fill="none">
|
|
33
|
+
<rect width="256" height="256" rx="40" fill="#F8FAFC"/>
|
|
34
|
+
<rect x="44" y="52" width="168" height="124" rx="18" fill="#FFFFFF" stroke="#2563EB" stroke-width="9"/>
|
|
35
|
+
<path d="M76 92H132" stroke="#0F172A" stroke-width="10" stroke-linecap="round"/>
|
|
36
|
+
<path d="M76 124H112" stroke="#64748B" stroke-width="8" stroke-linecap="round"/>
|
|
37
|
+
<path d="M154 86L184 116L154 146" stroke="#14B8A6" stroke-width="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
38
|
+
<path d="M74 202C96 178 124 172 158 185C170 190 184 190 196 180" stroke="#2563EB" stroke-width="10" stroke-linecap="round"/>
|
|
39
|
+
<circle cx="68" cy="202" r="10" fill="#14B8A6"/>
|
|
40
|
+
<circle cx="202" cy="178" r="10" fill="#14B8A6"/>
|
|
41
|
+
</svg>`;
|
|
42
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,6BAA6B,CAAA;AACnE,MAAM,CAAC,MAAM,uBAAuB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G;;;;;;;;;OASxB,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
3
|
+
let ExcalidrawActionLog = class ExcalidrawActionLog {
|
|
4
|
+
};
|
|
5
|
+
__decorate([
|
|
6
|
+
PrimaryGeneratedColumn('uuid'),
|
|
7
|
+
__metadata("design:type", String)
|
|
8
|
+
], ExcalidrawActionLog.prototype, "id", void 0);
|
|
9
|
+
__decorate([
|
|
10
|
+
Index(),
|
|
11
|
+
Column({ type: 'varchar', nullable: true }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], ExcalidrawActionLog.prototype, "tenantId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Index(),
|
|
16
|
+
Column({ type: 'varchar', nullable: true }),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], ExcalidrawActionLog.prototype, "organizationId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'varchar', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], ExcalidrawActionLog.prototype, "workspaceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'varchar', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ExcalidrawActionLog.prototype, "projectId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ type: 'varchar', nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ExcalidrawActionLog.prototype, "drawingId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ type: 'varchar', nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ExcalidrawActionLog.prototype, "versionId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ type: 'varchar' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ExcalidrawActionLog.prototype, "action", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ type: 'varchar', default: 'system' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ExcalidrawActionLog.prototype, "actorType", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ type: 'varchar', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ExcalidrawActionLog.prototype, "actorId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: 'text', nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ExcalidrawActionLog.prototype, "message", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Column({ type: 'text', nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], ExcalidrawActionLog.prototype, "errorMessage", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], ExcalidrawActionLog.prototype, "snapshot", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
CreateDateColumn({ type: 'timestamptz' }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], ExcalidrawActionLog.prototype, "createdAt", void 0);
|
|
63
|
+
ExcalidrawActionLog = __decorate([
|
|
64
|
+
Entity('plugin_excalidraw_action_log'),
|
|
65
|
+
Index(['tenantId', 'organizationId', 'drawingId', 'createdAt']),
|
|
66
|
+
Index(['tenantId', 'organizationId', 'projectId', 'createdAt'])
|
|
67
|
+
], ExcalidrawActionLog);
|
|
68
|
+
export { ExcalidrawActionLog };
|
|
69
|
+
//# sourceMappingURL=excalidraw-action-log.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excalidraw-action-log.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/excalidraw-action-log.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE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,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACxB;AAGlB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC9B,IAAI;sDAAA;AA3CL,mBAAmB;IAH/B,MAAM,CAAC,8BAA8B,CAAC;IACtC,KAAK,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IAC/D,KAAK,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;GACnD,mBAAmB,CA4C/B"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
3
|
+
let ExcalidrawDrawingVersion = class ExcalidrawDrawingVersion {
|
|
4
|
+
};
|
|
5
|
+
__decorate([
|
|
6
|
+
PrimaryGeneratedColumn('uuid'),
|
|
7
|
+
__metadata("design:type", String)
|
|
8
|
+
], ExcalidrawDrawingVersion.prototype, "id", void 0);
|
|
9
|
+
__decorate([
|
|
10
|
+
Index(),
|
|
11
|
+
Column({ type: 'varchar', nullable: true }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], ExcalidrawDrawingVersion.prototype, "tenantId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Index(),
|
|
16
|
+
Column({ type: 'varchar', nullable: true }),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], ExcalidrawDrawingVersion.prototype, "organizationId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'varchar', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], ExcalidrawDrawingVersion.prototype, "workspaceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'varchar', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ExcalidrawDrawingVersion.prototype, "projectId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Index(),
|
|
29
|
+
Column({ type: 'varchar' }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ExcalidrawDrawingVersion.prototype, "drawingId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Column({ type: 'int' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ExcalidrawDrawingVersion.prototype, "versionNumber", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Column({ type: 'varchar', default: 'workbench' }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ExcalidrawDrawingVersion.prototype, "sourceType", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], ExcalidrawDrawingVersion.prototype, "elements", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], ExcalidrawDrawingVersion.prototype, "appState", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], ExcalidrawDrawingVersion.prototype, "files", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
Column({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ExcalidrawDrawingVersion.prototype, "mermaidSource", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
Column({ type: 'text', nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ExcalidrawDrawingVersion.prototype, "changeSummary", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
Column({ type: 'varchar', nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ExcalidrawDrawingVersion.prototype, "createdById", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
Column({ type: 'varchar', nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], ExcalidrawDrawingVersion.prototype, "assistantId", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
Column({ type: 'varchar', nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], ExcalidrawDrawingVersion.prototype, "conversationId", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
CreateDateColumn({ type: 'timestamptz' }),
|
|
74
|
+
__metadata("design:type", Date)
|
|
75
|
+
], ExcalidrawDrawingVersion.prototype, "createdAt", void 0);
|
|
76
|
+
ExcalidrawDrawingVersion = __decorate([
|
|
77
|
+
Entity('plugin_excalidraw_drawing_version'),
|
|
78
|
+
Index(['tenantId', 'organizationId', 'drawingId', 'versionNumber']),
|
|
79
|
+
Index(['tenantId', 'organizationId', 'projectId', 'createdAt'])
|
|
80
|
+
], ExcalidrawDrawingVersion);
|
|
81
|
+
export { ExcalidrawDrawingVersion };
|
|
82
|
+
//# sourceMappingURL=excalidraw-drawing-version.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excalidraw-drawing-version.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/excalidraw-drawing-version.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAMlF,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAsDpC,CAAA;AApDC;IADC,sBAAsB,CAAC,MAAM,CAAC;;oDACpB;AAIX;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC3B;AAIjB;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,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AI,EAAE,aAAa,EAAE,CAAC;8BAC9B,IAAI;2DAAA;AArDL,wBAAwB;IAHpC,MAAM,CAAC,mCAAmC,CAAC;IAC3C,KAAK,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC;IACnE,KAAK,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;GACnD,wBAAwB,CAsDpC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';
|
|
3
|
+
let ExcalidrawDrawing = class ExcalidrawDrawing {
|
|
4
|
+
};
|
|
5
|
+
__decorate([
|
|
6
|
+
PrimaryGeneratedColumn('uuid'),
|
|
7
|
+
__metadata("design:type", String)
|
|
8
|
+
], ExcalidrawDrawing.prototype, "id", void 0);
|
|
9
|
+
__decorate([
|
|
10
|
+
Index(),
|
|
11
|
+
Column({ type: 'varchar', nullable: true }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], ExcalidrawDrawing.prototype, "tenantId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Index(),
|
|
16
|
+
Column({ type: 'varchar', nullable: true }),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], ExcalidrawDrawing.prototype, "organizationId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'varchar', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], ExcalidrawDrawing.prototype, "workspaceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'varchar', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ExcalidrawDrawing.prototype, "projectId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ type: 'varchar', nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ExcalidrawDrawing.prototype, "createdById", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ type: 'varchar', nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ExcalidrawDrawing.prototype, "assistantId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ type: 'varchar', nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ExcalidrawDrawing.prototype, "conversationId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ type: 'varchar' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ExcalidrawDrawing.prototype, "title", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ExcalidrawDrawing.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: 'varchar', default: 'diagram' }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ExcalidrawDrawing.prototype, "kind", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Column({ type: 'varchar', default: 'draft' }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], ExcalidrawDrawing.prototype, "status", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], ExcalidrawDrawing.prototype, "tags", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Column({ type: 'varchar', nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ExcalidrawDrawing.prototype, "source", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Column({ type: 'varchar', nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], ExcalidrawDrawing.prototype, "currentVersionId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Column({ type: 'int', default: 0 }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], ExcalidrawDrawing.prototype, "currentVersionNumber", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
Column({ type: 'varchar', nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], ExcalidrawDrawing.prototype, "lastEditedById", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
Column({ type: 'timestamptz', nullable: true }),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], ExcalidrawDrawing.prototype, "lastEditedAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
CreateDateColumn({ type: 'timestamptz' }),
|
|
81
|
+
__metadata("design:type", Date)
|
|
82
|
+
], ExcalidrawDrawing.prototype, "createdAt", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
UpdateDateColumn({ type: 'timestamptz' }),
|
|
85
|
+
__metadata("design:type", Date)
|
|
86
|
+
], ExcalidrawDrawing.prototype, "updatedAt", void 0);
|
|
87
|
+
ExcalidrawDrawing = __decorate([
|
|
88
|
+
Entity('plugin_excalidraw_drawing'),
|
|
89
|
+
Index(['tenantId', 'organizationId', 'assistantId', 'status']),
|
|
90
|
+
Index(['tenantId', 'organizationId', 'projectId', 'status']),
|
|
91
|
+
Index(['tenantId', 'organizationId', 'kind', 'updatedAt'])
|
|
92
|
+
], ExcalidrawDrawing);
|
|
93
|
+
export { ExcalidrawDrawing };
|
|
94
|
+
//# sourceMappingURL=excalidraw-drawing.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excalidraw-drawing.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/excalidraw-drawing.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAOpG,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CA8D7B,CAAA;AA5D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