@xpert-ai/plugin-drawio 0.1.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 +118 -0
- package/README.md +5 -0
- package/assets/composerIcon.svg +6 -0
- package/assets/logo.svg +10 -0
- package/dist/docs/drawio-agent-skill.md +36 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +153 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/constants.d.ts +24 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +43 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/drawio-view.provider.d.ts +14 -0
- package/dist/lib/drawio-view.provider.d.ts.map +1 -0
- package/dist/lib/drawio-view.provider.js +435 -0
- package/dist/lib/drawio-view.provider.js.map +1 -0
- package/dist/lib/drawio.middleware.d.ts +10 -0
- package/dist/lib/drawio.middleware.d.ts.map +1 -0
- package/dist/lib/drawio.middleware.js +159 -0
- package/dist/lib/drawio.middleware.js.map +1 -0
- package/dist/lib/drawio.plugin.d.ts +8 -0
- package/dist/lib/drawio.plugin.d.ts.map +1 -0
- package/dist/lib/drawio.plugin.js +27 -0
- package/dist/lib/drawio.plugin.js.map +1 -0
- package/dist/lib/drawio.service.d.ts +176 -0
- package/dist/lib/drawio.service.d.ts.map +1 -0
- package/dist/lib/drawio.service.js +415 -0
- package/dist/lib/drawio.service.js.map +1 -0
- package/dist/lib/drawio.templates.d.ts +3 -0
- package/dist/lib/drawio.templates.d.ts.map +1 -0
- package/dist/lib/drawio.templates.js +78 -0
- package/dist/lib/drawio.templates.js.map +1 -0
- package/dist/lib/entities/drawio-action-log.entity.d.ts +18 -0
- package/dist/lib/entities/drawio-action-log.entity.d.ts.map +1 -0
- package/dist/lib/entities/drawio-action-log.entity.js +69 -0
- package/dist/lib/entities/drawio-action-log.entity.js.map +1 -0
- package/dist/lib/entities/drawio-drawing-version.entity.d.ts +22 -0
- package/dist/lib/entities/drawio-drawing-version.entity.d.ts.map +1 -0
- package/dist/lib/entities/drawio-drawing-version.entity.js +86 -0
- package/dist/lib/entities/drawio-drawing-version.entity.js.map +1 -0
- package/dist/lib/entities/drawio-drawing.entity.d.ts +24 -0
- package/dist/lib/entities/drawio-drawing.entity.d.ts.map +1 -0
- package/dist/lib/entities/drawio-drawing.entity.js +94 -0
- package/dist/lib/entities/drawio-drawing.entity.js.map +1 -0
- package/dist/lib/entities/index.d.ts +4 -0
- package/dist/lib/entities/index.d.ts.map +1 -0
- package/dist/lib/entities/index.js +4 -0
- package/dist/lib/entities/index.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/app.css +0 -0
- package/dist/lib/remote-components/drawio-workbench/app.js +1151 -0
- package/dist/lib/remote-components/drawio-workbench/src/i18n.d.ts +3 -0
- package/dist/lib/remote-components/drawio-workbench/src/i18n.d.ts.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/i18n.js +95 -0
- package/dist/lib/remote-components/drawio-workbench/src/i18n.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/i18n.ts +139 -0
- package/dist/lib/remote-components/drawio-workbench/src/main.tsx +916 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-client-shim.d.ts +3 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-client-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-client-shim.js +4 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-client-shim.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-client-shim.ts +4 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-shim.d.ts +11 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-shim.js +11 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-shim.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-dom-shim.ts +11 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-jsx-runtime-shim.d.ts +5 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-jsx-runtime-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-jsx-runtime-shim.js +8 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-jsx-runtime-shim.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-jsx-runtime-shim.ts +8 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-shim.d.ts +36 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-shim.d.ts.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-shim.js +36 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-shim.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/react-shim.ts +36 -0
- package/dist/lib/remote-components/drawio-workbench/src/runtime.d.ts +21 -0
- package/dist/lib/remote-components/drawio-workbench/src/runtime.d.ts.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/runtime.js +198 -0
- package/dist/lib/remote-components/drawio-workbench/src/runtime.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/runtime.ts +228 -0
- package/dist/lib/remote-components/drawio-workbench/src/styles.d.ts +2 -0
- package/dist/lib/remote-components/drawio-workbench/src/styles.d.ts.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/styles.js +290 -0
- package/dist/lib/remote-components/drawio-workbench/src/styles.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/styles.ts +289 -0
- package/dist/lib/remote-components/drawio-workbench/src/vendor.d.ts +4 -0
- package/dist/lib/remote-components/drawio-workbench/src/vendor.d.ts.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/vendor.js +4 -0
- package/dist/lib/remote-components/drawio-workbench/src/vendor.js.map +1 -0
- package/dist/lib/remote-components/drawio-workbench/src/vendor.ts +3 -0
- package/dist/lib/types.d.ts +67 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +2 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/xpert-drawio-assistant.yaml +130 -0
- package/package.json +85 -0
- package/skills/index/SKILL.md +45 -0
- package/skills/index/agents/xpertai.yaml +6 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawio.templates.d.ts","sourceRoot":"","sources":["../../src/lib/drawio.templates.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAyCrE,eAAO,MAAM,eAAe,EAAE,yBAAyB,EA4CtD,CAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { XpertTypeEnum } from '@xpert-ai/contracts';
|
|
5
|
+
import { DRAWIO_AGENT_DRAWING_CAPABILITY, DRAWIO_FEATURE, DRAWIO_PLUGIN_NAME, DRAWIO_PROVIDER_KEY, DRAWIO_TEMPLATE_PROVIDER_KEY, DRAWIO_WORKBENCH_CAPABILITY } from './constants.js';
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = dirname(__filename);
|
|
8
|
+
const DRAWIO_TEMPLATE_KEY = 'drawio-assistant';
|
|
9
|
+
const DRAWIO_TEMPLATE_FILE = 'xpert-drawio-assistant.yaml';
|
|
10
|
+
const DRAWIO_AGENT_KEY = 'Agent_Drawio';
|
|
11
|
+
const drawioSkillDependencies = [
|
|
12
|
+
{
|
|
13
|
+
componentKey: 'index',
|
|
14
|
+
targetAgentKey: DRAWIO_AGENT_KEY
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
function getTemplateCandidates() {
|
|
18
|
+
return [
|
|
19
|
+
join(__dirname, '..', DRAWIO_TEMPLATE_FILE),
|
|
20
|
+
join(__dirname, DRAWIO_TEMPLATE_FILE),
|
|
21
|
+
join(process.cwd(), 'apps/drawio/src', DRAWIO_TEMPLATE_FILE),
|
|
22
|
+
join(process.cwd(), 'community/apps/drawio/src', DRAWIO_TEMPLATE_FILE),
|
|
23
|
+
join(process.cwd(), 'dist/apps/drawio', DRAWIO_TEMPLATE_FILE)
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
function readDrawioDsl() {
|
|
27
|
+
const templatePath = getTemplateCandidates().find((candidate) => existsSync(candidate));
|
|
28
|
+
if (!templatePath) {
|
|
29
|
+
throw new Error(`draw.io xpert DSL template file not found: ${getTemplateCandidates().join(', ')}`);
|
|
30
|
+
}
|
|
31
|
+
return readFileSync(templatePath, 'utf8');
|
|
32
|
+
}
|
|
33
|
+
export const drawioTemplates = [
|
|
34
|
+
{
|
|
35
|
+
key: DRAWIO_TEMPLATE_KEY,
|
|
36
|
+
name: 'draw.io Drawing Assistant',
|
|
37
|
+
title: 'draw.io 绘图助手',
|
|
38
|
+
description: '面向流程图、架构图、线框图和自由白板的 data-xpert draw.io 绘图助手模板。',
|
|
39
|
+
category: 'draw.io',
|
|
40
|
+
type: XpertTypeEnum.Agent,
|
|
41
|
+
targetApps: ['data-xpert', 'xpert'],
|
|
42
|
+
targetAppMeta: {
|
|
43
|
+
'data-xpert': {
|
|
44
|
+
types: ['business-assistant'],
|
|
45
|
+
capabilities: [DRAWIO_FEATURE, DRAWIO_WORKBENCH_CAPABILITY, DRAWIO_AGENT_DRAWING_CAPABILITY],
|
|
46
|
+
requiredPlugins: [DRAWIO_PLUGIN_NAME],
|
|
47
|
+
defaultConfig: {
|
|
48
|
+
assistantKind: 'business-assistant',
|
|
49
|
+
businessDomain: 'drawio',
|
|
50
|
+
managedBy: 'data-xpert',
|
|
51
|
+
viewProvider: DRAWIO_PROVIDER_KEY
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
xpert: {
|
|
55
|
+
types: ['assistant-template'],
|
|
56
|
+
capabilities: [DRAWIO_FEATURE, DRAWIO_WORKBENCH_CAPABILITY, DRAWIO_AGENT_DRAWING_CAPABILITY],
|
|
57
|
+
requiredPlugins: [DRAWIO_PLUGIN_NAME]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
dependencies: {
|
|
61
|
+
plugins: [DRAWIO_PLUGIN_NAME],
|
|
62
|
+
skills: drawioSkillDependencies
|
|
63
|
+
},
|
|
64
|
+
dslContent: readDrawioDsl(),
|
|
65
|
+
order: 60,
|
|
66
|
+
default: false,
|
|
67
|
+
startPrompts: [
|
|
68
|
+
'请根据我的系统说明创建一张可编辑的架构图。',
|
|
69
|
+
'请把下面的流程描述转成 draw.io 图形,并保存 Mermaid 草稿。',
|
|
70
|
+
'请读取当前 draw.io 图形版本,根据我的反馈调整布局和标注。',
|
|
71
|
+
'请导入这段 Mermaid,并生成一版可在工作台里继续编辑的 XML 图形。'
|
|
72
|
+
],
|
|
73
|
+
releaseNotes: '创建 draw.io Agentic Drawing 业务助手。',
|
|
74
|
+
xpertName: 'draw.io 绘图助手',
|
|
75
|
+
providerKey: DRAWIO_TEMPLATE_PROVIDER_KEY
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=drawio.templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawio.templates.js","sourceRoot":"","sources":["../../src/lib/drawio.templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EACL,+BAA+B,EAC/B,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EAEnB,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAA;AAEvB,MAAM,UAAU,GAAG,aAAa,CA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,SAAS;QACnB,IAAI,EAAE,aAAa,CAAC,KAAK;QACzB,UAAU,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC;QACnC,aAAa,EAAE;YACb,YAAY,EAAE;gBACZ,KAAK,EAAE,CAAC,oBAAoB,CAAC;gBAC7B,YAAY,EAAE,CAAC,cAAc,EAAE,2BAA2B,EAAE,+BAA+B,CAAC;gBAC5F,eAAe,EAAE,CAAC,kBAAkB,CAAC;gBACrC,aAAa,EAAE;oBACb,aAAa,EAAE,oBAAoB;oBACnC,cAAc,EAAE,QAAQ;oBACxB,SAAS,EAAE,YAAY;oBACvB,YAAY,EAAE,mBAAmB;iBAClC;aACF;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,CAAC,oBAAoB,CAAC;gBAC7B,YAAY,EAAE,CAAC,cAAc,EAAE,2BAA2B,EAAE,+BAA+B,CAAC;gBAC5F,eAAe,EAAE,CAAC,kBAAkB,CAAC;aACtC;SACF;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,MAAM,EAAE,uBAAuB;SAChC;QACD,UAAU,EAAE,aAAa,EAAE;QAC3B,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,KAAK;QACd,YAAY,EAAE;YACZ,uBAAuB;YACvB,wCAAwC;YACxC,mCAAmC;YACnC,wCAAwC;SACzC;QACD,YAAY,EAAE,kCAAkC;QAChD,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,4BAA4B;KACb;CAC/B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DrawioActionType, DrawioActorType } from '../types.js';
|
|
2
|
+
export declare class DrawioActionLog {
|
|
3
|
+
id?: string;
|
|
4
|
+
tenantId?: string;
|
|
5
|
+
organizationId?: string;
|
|
6
|
+
workspaceId?: string;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
drawingId?: string;
|
|
9
|
+
versionId?: string;
|
|
10
|
+
action: DrawioActionType;
|
|
11
|
+
actorType?: DrawioActorType;
|
|
12
|
+
actorId?: string;
|
|
13
|
+
message?: string;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
snapshot?: unknown;
|
|
16
|
+
createdAt?: Date;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=drawio-action-log.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawio-action-log.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/drawio-action-log.entity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAEpE,qBAGa,eAAe;IAE1B,EAAE,CAAC,EAAE,MAAM,CAAA;IAIX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,MAAM,EAAG,gBAAgB,CAAA;IAGzB,SAAS,CAAC,EAAE,eAAe,CAAA;IAG3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,YAAY,CAAC,EAAE,MAAM,CAAA;IAGrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAGlB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
3
|
+
let DrawioActionLog = class DrawioActionLog {
|
|
4
|
+
};
|
|
5
|
+
__decorate([
|
|
6
|
+
PrimaryGeneratedColumn('uuid'),
|
|
7
|
+
__metadata("design:type", String)
|
|
8
|
+
], DrawioActionLog.prototype, "id", void 0);
|
|
9
|
+
__decorate([
|
|
10
|
+
Index(),
|
|
11
|
+
Column({ type: 'varchar', nullable: true }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], DrawioActionLog.prototype, "tenantId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Index(),
|
|
16
|
+
Column({ type: 'varchar', nullable: true }),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], DrawioActionLog.prototype, "organizationId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'varchar', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], DrawioActionLog.prototype, "workspaceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'varchar', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DrawioActionLog.prototype, "projectId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ type: 'varchar', nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], DrawioActionLog.prototype, "drawingId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ type: 'varchar', nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DrawioActionLog.prototype, "versionId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ type: 'varchar' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], DrawioActionLog.prototype, "action", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ type: 'varchar', default: 'system' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], DrawioActionLog.prototype, "actorType", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ type: 'varchar', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], DrawioActionLog.prototype, "actorId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: 'text', nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], DrawioActionLog.prototype, "message", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Column({ type: 'text', nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], DrawioActionLog.prototype, "errorMessage", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], DrawioActionLog.prototype, "snapshot", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
CreateDateColumn({ type: 'timestamptz' }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], DrawioActionLog.prototype, "createdAt", void 0);
|
|
63
|
+
DrawioActionLog = __decorate([
|
|
64
|
+
Entity('plugin_drawio_action_log'),
|
|
65
|
+
Index(['tenantId', 'organizationId', 'drawingId', 'createdAt']),
|
|
66
|
+
Index(['tenantId', 'organizationId', 'projectId', 'createdAt'])
|
|
67
|
+
], DrawioActionLog);
|
|
68
|
+
export { DrawioActionLog };
|
|
69
|
+
//# sourceMappingURL=drawio-action-log.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawio-action-log.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/drawio-action-log.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAMlF,IAAM,eAAe,GAArB,MAAM,eAAe;CA4C3B,CAAA;AA1CC;IADC,sBAAsB,CAAC,MAAM,CAAC;;2CACpB;AAIX;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC3B;AAIjB;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACrB;AAGvB;IADC,MAAM,CAAC,EAAE,I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
1
|
+
import type { DrawioVersionSource } from '../types.js';
|
|
2
|
+
export declare class DrawioDrawingVersion {
|
|
3
|
+
id?: string;
|
|
4
|
+
tenantId?: string;
|
|
5
|
+
organizationId?: string;
|
|
6
|
+
workspaceId?: string;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
drawingId: string;
|
|
9
|
+
versionNumber: number;
|
|
10
|
+
sourceType?: DrawioVersionSource;
|
|
11
|
+
xml?: string | null;
|
|
12
|
+
mermaidSource?: string | null;
|
|
13
|
+
previewSvg?: string | null;
|
|
14
|
+
previewPng?: string | null;
|
|
15
|
+
descriptor?: Record<string, unknown> | null;
|
|
16
|
+
changeSummary?: string;
|
|
17
|
+
createdById?: string;
|
|
18
|
+
assistantId?: string;
|
|
19
|
+
conversationId?: string;
|
|
20
|
+
createdAt?: Date;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=drawio-drawing-version.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawio-drawing-version.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/drawio-drawing-version.entity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,qBAGa,oBAAoB;IAE/B,EAAE,CAAC,EAAE,MAAM,CAAA;IAIX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAIlB,SAAS,EAAG,MAAM,CAAA;IAGlB,aAAa,EAAG,MAAM,CAAA;IAGtB,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAGhC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAGnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAG1B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAG3C,aAAa,CAAC,EAAE,MAAM,CAAA;IAGtB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
3
|
+
let DrawioDrawingVersion = class DrawioDrawingVersion {
|
|
4
|
+
};
|
|
5
|
+
__decorate([
|
|
6
|
+
PrimaryGeneratedColumn('uuid'),
|
|
7
|
+
__metadata("design:type", String)
|
|
8
|
+
], DrawioDrawingVersion.prototype, "id", void 0);
|
|
9
|
+
__decorate([
|
|
10
|
+
Index(),
|
|
11
|
+
Column({ type: 'varchar', nullable: true }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], DrawioDrawingVersion.prototype, "tenantId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Index(),
|
|
16
|
+
Column({ type: 'varchar', nullable: true }),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], DrawioDrawingVersion.prototype, "organizationId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'varchar', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], DrawioDrawingVersion.prototype, "workspaceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'varchar', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DrawioDrawingVersion.prototype, "projectId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Index(),
|
|
29
|
+
Column({ type: 'varchar' }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], DrawioDrawingVersion.prototype, "drawingId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Column({ type: 'int' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], DrawioDrawingVersion.prototype, "versionNumber", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Column({ type: 'varchar', default: 'workbench' }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], DrawioDrawingVersion.prototype, "sourceType", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column({ type: 'text', nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], DrawioDrawingVersion.prototype, "xml", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column({ type: 'text', nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], DrawioDrawingVersion.prototype, "mermaidSource", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column({ type: 'text', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], DrawioDrawingVersion.prototype, "previewSvg", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
Column({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], DrawioDrawingVersion.prototype, "previewPng", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], DrawioDrawingVersion.prototype, "descriptor", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
Column({ type: 'text', nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], DrawioDrawingVersion.prototype, "changeSummary", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
Column({ type: 'varchar', nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], DrawioDrawingVersion.prototype, "createdById", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
Column({ type: 'varchar', nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], DrawioDrawingVersion.prototype, "assistantId", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Column({ type: 'varchar', nullable: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], DrawioDrawingVersion.prototype, "conversationId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
CreateDateColumn({ type: 'timestamptz' }),
|
|
78
|
+
__metadata("design:type", Date)
|
|
79
|
+
], DrawioDrawingVersion.prototype, "createdAt", void 0);
|
|
80
|
+
DrawioDrawingVersion = __decorate([
|
|
81
|
+
Entity('plugin_drawio_drawing_version'),
|
|
82
|
+
Index(['tenantId', 'organizationId', 'drawingId', 'versionNumber']),
|
|
83
|
+
Index(['tenantId', 'organizationId', 'projectId', 'createdAt'])
|
|
84
|
+
], DrawioDrawingVersion);
|
|
85
|
+
export { DrawioDrawingVersion };
|
|
86
|
+
//# sourceMappingURL=drawio-drawing-version.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawio-drawing-version.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/drawio-drawing-version.entity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAMlF,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAyDhC,CAAA;AAvDC;IADC,sBAAsB,CAAC,MAAM,CAAC;;gDACpB;AAIX;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC3B;AAIjB;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACrB;AAGvB;IADC,MAAM,CAAC,EAAE,IAA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;;4DACrB;AAGvB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC9B,IAAI;uDAAA;AAxDL,oBAAoB;IAHhC,MAAM,CAAC,+BAA+B,CAAC;IACvC,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,oBAAoB,CAyDhC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DrawioDrawingKind, DrawioDrawingStatus } from '../types.js';
|
|
2
|
+
export declare class DrawioDrawing {
|
|
3
|
+
id?: string;
|
|
4
|
+
tenantId?: string;
|
|
5
|
+
organizationId?: string;
|
|
6
|
+
workspaceId?: string;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
createdById?: string;
|
|
9
|
+
assistantId?: string;
|
|
10
|
+
conversationId?: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
kind?: DrawioDrawingKind;
|
|
14
|
+
status?: DrawioDrawingStatus;
|
|
15
|
+
tags?: string[];
|
|
16
|
+
source?: string;
|
|
17
|
+
currentVersionId?: string;
|
|
18
|
+
currentVersionNumber?: number;
|
|
19
|
+
lastEditedById?: string;
|
|
20
|
+
lastEditedAt?: Date;
|
|
21
|
+
createdAt?: Date;
|
|
22
|
+
updatedAt?: Date;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=drawio-drawing.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawio-drawing.entity.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/drawio-drawing.entity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEzE,qBAIa,aAAa;IAExB,EAAE,CAAC,EAAE,MAAM,CAAA;IAIX,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,KAAK,EAAG,MAAM,CAAA;IAGd,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,IAAI,CAAC,EAAE,iBAAiB,CAAA;IAGxB,MAAM,CAAC,EAAE,mBAAmB,CAAA;IAG5B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAGf,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAGzB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAG7B,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,YAAY,CAAC,EAAE,IAAI,CAAA;IAGnB,SAAS,CAAC,EAAE,IAAI,CAAA;IAGhB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';
|
|
3
|
+
let DrawioDrawing = class DrawioDrawing {
|
|
4
|
+
};
|
|
5
|
+
__decorate([
|
|
6
|
+
PrimaryGeneratedColumn('uuid'),
|
|
7
|
+
__metadata("design:type", String)
|
|
8
|
+
], DrawioDrawing.prototype, "id", void 0);
|
|
9
|
+
__decorate([
|
|
10
|
+
Index(),
|
|
11
|
+
Column({ type: 'varchar', nullable: true }),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], DrawioDrawing.prototype, "tenantId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Index(),
|
|
16
|
+
Column({ type: 'varchar', nullable: true }),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], DrawioDrawing.prototype, "organizationId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'varchar', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], DrawioDrawing.prototype, "workspaceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'varchar', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DrawioDrawing.prototype, "projectId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ type: 'varchar', nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], DrawioDrawing.prototype, "createdById", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ type: 'varchar', nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DrawioDrawing.prototype, "assistantId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ type: 'varchar', nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], DrawioDrawing.prototype, "conversationId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ type: 'varchar' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], DrawioDrawing.prototype, "title", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], DrawioDrawing.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: 'varchar', default: 'diagram' }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], DrawioDrawing.prototype, "kind", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Column({ type: 'varchar', default: 'draft' }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], DrawioDrawing.prototype, "status", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], DrawioDrawing.prototype, "tags", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Column({ type: 'varchar', nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], DrawioDrawing.prototype, "source", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Column({ type: 'varchar', nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], DrawioDrawing.prototype, "currentVersionId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Column({ type: 'int', default: 0 }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], DrawioDrawing.prototype, "currentVersionNumber", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
Column({ type: 'varchar', nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], DrawioDrawing.prototype, "lastEditedById", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
Column({ type: 'timestamptz', nullable: true }),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], DrawioDrawing.prototype, "lastEditedAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
CreateDateColumn({ type: 'timestamptz' }),
|
|
81
|
+
__metadata("design:type", Date)
|
|
82
|
+
], DrawioDrawing.prototype, "createdAt", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
UpdateDateColumn({ type: 'timestamptz' }),
|
|
85
|
+
__metadata("design:type", Date)
|
|
86
|
+
], DrawioDrawing.prototype, "updatedAt", void 0);
|
|
87
|
+
DrawioDrawing = __decorate([
|
|
88
|
+
Entity('plugin_drawio_drawing'),
|
|
89
|
+
Index(['tenantId', 'organizationId', 'assistantId', 'status']),
|
|
90
|
+
Index(['tenantId', 'organizationId', 'projectId', 'status']),
|
|
91
|
+
Index(['tenantId', 'organizationId', 'kind', 'updatedAt'])
|
|
92
|
+
], DrawioDrawing);
|
|
93
|
+
export { DrawioDrawing };
|
|
94
|
+
//# sourceMappingURL=drawio-drawing.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawio-drawing.entity.js","sourceRoot":"","sources":["../../../src/lib/entities/drawio-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,aAAa,GAAnB,MAAM,aAAa;CA8DzB,CAAA;AA5DC;IADC,sBAAsB,CAAC,MAAM,CAAC;;yCACpB;AAIX;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC3B;AAIjB;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACrB;AAGvB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGpB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC1B;AAGlB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGpB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGpB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACrB;AAGvB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CACd;AAGd;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACrB;AAGpB;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zB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oCAAoC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oCAAoC,CAAA"}
|
|
File without changes
|