@abyss-project/tools 1.1.1 → 1.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/.eslintrc.js +33 -33
- package/.prettierrc +5 -5
- package/README.md +32 -32
- package/dist/api/extraction-plan-preset.api.js +1 -1
- package/dist/api/extraction-plan-preset.api.js.map +1 -1
- package/dist/api/extraction-settings.api.js +1 -1
- package/dist/api/extraction-settings.api.js.map +1 -1
- package/dist/api/extraction.api.js +1 -1
- package/dist/api/extraction.api.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/shape.utils.js +18 -18
- package/package.json +14 -9
- package/src/api/abyss.admin.api.ts +54 -54
- package/src/api/atlas-document.api.ts +68 -68
- package/src/api/atlas-group.api.ts +69 -69
- package/src/api/atlas-page.api.ts +124 -124
- package/src/api/atlas.api.ts +103 -103
- package/src/api/atlas.public.api.ts +42 -42
- package/src/api/board-card-checklist.api.ts +99 -99
- package/src/api/board-card-comment.api.ts +57 -57
- package/src/api/board-card-document.api.ts +57 -57
- package/src/api/board-card.api.ts +137 -137
- package/src/api/board-column.api.ts +54 -54
- package/src/api/board-label.api.ts +87 -87
- package/src/api/board.api.ts +122 -122
- package/src/api/draw.api.ts +97 -97
- package/src/api/draw.public.api.ts +48 -48
- package/src/api/extraction-plan-preset.api.ts +1 -1
- package/src/api/extraction-settings.api.ts +1 -1
- package/src/api/extraction.api.ts +1 -1
- package/src/api/memo.api.ts +97 -97
- package/src/api/metrics.api.ts +27 -27
- package/src/api/monitor.api.ts +6 -6
- package/src/api/organization.api.ts +14 -14
- package/src/api/retrospective-card.api.ts +74 -74
- package/src/api/retrospective-member.api.ts +54 -54
- package/src/api/retrospective-section.api.ts +74 -74
- package/src/api/retrospective.api.ts +124 -124
- package/src/api/retrospective.public.api.ts +147 -147
- package/src/api/short-link.admin.api.ts +39 -39
- package/src/api/short-link.api.ts +125 -125
- package/src/api/short-link.public.api.ts +60 -60
- package/src/api/tag.api.ts +72 -72
- package/src/constants/atlas.constants.ts +2 -2
- package/src/constants/board.constants.ts +7 -7
- package/src/constants/memo.constants.ts +3 -3
- package/src/constants/short-link.constants.ts +11 -11
- package/src/constants/tag.constants.ts +3 -3
- package/src/index.ts +1 -1
- package/src/server-sent-events/index.ts +13 -13
- package/src/server-sent-events/protocols/atlas/atlas.sse-protocol.ts +90 -90
- package/src/server-sent-events/protocols/atlas/index.ts +1 -1
- package/src/server-sent-events/protocols/board/board.sse-protocol.ts +115 -115
- package/src/server-sent-events/protocols/board/index.ts +1 -1
- package/src/server-sent-events/protocols/board-card/board-card.sse-protocol.ts +26 -26
- package/src/server-sent-events/protocols/board-card/index.ts +1 -1
- package/src/server-sent-events/protocols/index.ts +26 -26
- package/src/server-sent-events/protocols/retrospective/index.ts +1 -1
- package/src/server-sent-events/protocols/retrospective/retrospective.sse-protocol.ts +92 -92
- package/src/server-sent-events/server-sent-events.manager.ts +73 -73
- package/src/types/draw.type.ts +173 -173
- package/src/types/enum/api-error.enum.ts +23 -23
- package/src/types/enum/board-activity.enum.ts +189 -189
- package/src/types/enum/board-column-type.enum.ts +6 -6
- package/src/types/enum/pdf-operation.enum.ts +98 -98
- package/src/types/enum/rcb-bank.enum.ts +137 -137
- package/src/types/index.ts +5 -5
- package/src/types/interface/api/index.ts +5 -5
- package/src/types/interface/api/requests/abyss.admin.request.ts +20 -20
- package/src/types/interface/api/requests/atlas-document.request.ts +32 -32
- package/src/types/interface/api/requests/atlas-group.request.ts +45 -45
- package/src/types/interface/api/requests/atlas-page.request.ts +84 -84
- package/src/types/interface/api/requests/atlas.public.request.ts +21 -21
- package/src/types/interface/api/requests/atlas.request.ts +52 -52
- package/src/types/interface/api/requests/board-card-checklist.request.ts +61 -61
- package/src/types/interface/api/requests/board-card-comment.request.ts +28 -28
- package/src/types/interface/api/requests/board-card-document.request.ts +29 -29
- package/src/types/interface/api/requests/board-card.request.ts +86 -86
- package/src/types/interface/api/requests/board-column.request.ts +30 -30
- package/src/types/interface/api/requests/board-label.request.ts +42 -42
- package/src/types/interface/api/requests/board.request.ts +61 -61
- package/src/types/interface/api/requests/draw.public.request.ts +20 -20
- package/src/types/interface/api/requests/draw.request.ts +49 -49
- package/src/types/interface/api/requests/memo.request.ts +49 -49
- package/src/types/interface/api/requests/metrics.request.ts +7 -7
- package/src/types/interface/api/requests/retrospective-card.request.ts +38 -38
- package/src/types/interface/api/requests/retrospective-member.request.ts +20 -20
- package/src/types/interface/api/requests/retrospective-section.request.ts +43 -43
- package/src/types/interface/api/requests/retrospective.public.request.ts +84 -84
- package/src/types/interface/api/requests/retrospective.request.ts +59 -59
- package/src/types/interface/api/requests/short-link.admin.request.ts +35 -35
- package/src/types/interface/api/requests/short-link.public.request.ts +40 -40
- package/src/types/interface/api/requests/short-link.request.ts +71 -71
- package/src/types/interface/api/requests/tag.request.ts +54 -54
- package/src/types/interface/api/requests/transfer.request.ts +3 -3
- package/src/types/interface/api/responses/abyss.admin.response.ts +28 -28
- package/src/types/interface/api/responses/atlas-document.response.ts +24 -24
- package/src/types/interface/api/responses/atlas-group.response.ts +23 -23
- package/src/types/interface/api/responses/atlas-page.response.ts +53 -53
- package/src/types/interface/api/responses/atlas.public.response.ts +21 -21
- package/src/types/interface/api/responses/atlas.response.ts +32 -32
- package/src/types/interface/api/responses/board-card-checklist.response.ts +31 -31
- package/src/types/interface/api/responses/board-card-comment.response.ts +20 -20
- package/src/types/interface/api/responses/board-card-document.response.ts +21 -21
- package/src/types/interface/api/responses/board-card.response.ts +55 -55
- package/src/types/interface/api/responses/board-column.response.ts +20 -20
- package/src/types/interface/api/responses/board-label.response.ts +31 -31
- package/src/types/interface/api/responses/board.response.ts +81 -81
- package/src/types/interface/api/responses/count.response.ts +9 -9
- package/src/types/interface/api/responses/draw.public.response.ts +22 -22
- package/src/types/interface/api/responses/draw.response.ts +32 -32
- package/src/types/interface/api/responses/enriched-paginate.response.ts +11 -11
- package/src/types/interface/api/responses/memo.response.ts +32 -32
- package/src/types/interface/api/responses/metrics.response.ts +22 -22
- package/src/types/interface/api/responses/monitor.response.ts +8 -8
- package/src/types/interface/api/responses/recent.response.ts +18 -18
- package/src/types/interface/api/responses/retrospective-card.response.ts +23 -23
- package/src/types/interface/api/responses/retrospective-member.response.ts +22 -22
- package/src/types/interface/api/responses/retrospective-section.response.ts +23 -23
- package/src/types/interface/api/responses/retrospective.public.response.ts +57 -57
- package/src/types/interface/api/responses/retrospective.response.ts +32 -32
- package/src/types/interface/api/responses/short-link.admin.response.ts +21 -21
- package/src/types/interface/api/responses/short-link.public.response.ts +26 -26
- package/src/types/interface/api/responses/short-link.response.ts +38 -38
- package/src/types/interface/api/responses/tag.response.ts +38 -38
- package/src/types/interface/api/responses/transfer.response.ts +14 -14
- package/src/types/interface/api/type-message/api-error.ts +7 -7
- package/src/types/interface/api/type-message/base-paginate.ts +11 -11
- package/src/types/interface/api/type-message/response.ts +6 -6
- package/src/types/interface/index.ts +2 -2
- package/src/types/interface/models/atlas-document.dto.ts +22 -22
- package/src/types/interface/models/atlas-group.dto.ts +21 -21
- package/src/types/interface/models/atlas-page-content.dto.ts +17 -17
- package/src/types/interface/models/atlas-page.dto.ts +26 -26
- package/src/types/interface/models/atlas.dto.ts +34 -34
- package/src/types/interface/models/board-activity.dto.ts +20 -20
- package/src/types/interface/models/board-card-checklist-row.dto.ts +14 -14
- package/src/types/interface/models/board-card-checklist.dto.ts +16 -16
- package/src/types/interface/models/board-card-comment.dto.ts +15 -15
- package/src/types/interface/models/board-card-document.dto.ts +22 -22
- package/src/types/interface/models/board-card-label.dto.ts +14 -14
- package/src/types/interface/models/board-card-member.dto.ts +14 -14
- package/src/types/interface/models/board-card.dto.ts +37 -37
- package/src/types/interface/models/board-column.dto.ts +17 -17
- package/src/types/interface/models/board-label.dto.ts +13 -13
- package/src/types/interface/models/board.dto.ts +33 -33
- package/src/types/interface/models/content-share.dto.ts +16 -16
- package/src/types/interface/models/draw.dto.ts +30 -30
- package/src/types/interface/models/memo.dto.ts +23 -23
- package/src/types/interface/models/project.dto.ts +25 -25
- package/src/types/interface/models/retrospective-card.dto.ts +17 -17
- package/src/types/interface/models/retrospective-member.dto.ts +15 -15
- package/src/types/interface/models/retrospective-section.dto.ts +16 -16
- package/src/types/interface/models/retrospective.dto.ts +32 -32
- package/src/types/interface/models/short-link-click.dto.ts +33 -33
- package/src/types/interface/models/short-link.dto.ts +49 -49
- package/src/types/interface/models/tag.dto.ts +26 -26
- package/src/types/interface/models/team.dto.ts +12 -12
- package/src/types/interface/models/user.dto.ts +26 -26
- package/src/utils/board.utils.ts +57 -57
- package/src/utils/enum.utils.ts +5 -5
- package/src/utils/error.utils.ts +30 -30
- package/src/utils/icons.utils.ts +96 -96
- package/src/utils/shape.utils.ts +292 -292
package/src/types/draw.type.ts
CHANGED
|
@@ -1,173 +1,173 @@
|
|
|
1
|
-
import { Endpoint, ICON_LIBRARY, CurvePoint } from '../utils';
|
|
2
|
-
|
|
3
|
-
export type DrawData = {
|
|
4
|
-
drawId: string | null;
|
|
5
|
-
shapes: DrawShapeToJsonResult[];
|
|
6
|
-
stagePos: Point;
|
|
7
|
-
stageScale: number;
|
|
8
|
-
showGrid: boolean;
|
|
9
|
-
timestamp: number;
|
|
10
|
-
version: number;
|
|
11
|
-
sections?: Section[];
|
|
12
|
-
activeSections?: string[];
|
|
13
|
-
sectionDisplayMode?: 'hidden' | 'opacity';
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type Section = {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
color: string;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export interface Point {
|
|
23
|
-
x: number;
|
|
24
|
-
y: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface BoundingBox {
|
|
28
|
-
x1: number;
|
|
29
|
-
y1: number;
|
|
30
|
-
x2: number;
|
|
31
|
-
y2: number;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface DrawSize {
|
|
35
|
-
width: number;
|
|
36
|
-
height: number;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface DrawStyle {
|
|
40
|
-
fillColor: string;
|
|
41
|
-
strokeColor: string;
|
|
42
|
-
strokeWidth: number;
|
|
43
|
-
opacity: number;
|
|
44
|
-
lineDash: number[];
|
|
45
|
-
cornerRadius: number;
|
|
46
|
-
fontSize: number;
|
|
47
|
-
fontFamily: string;
|
|
48
|
-
fontWeight?: number;
|
|
49
|
-
preserveAspectRatio: boolean;
|
|
50
|
-
rotation: number; // in degrees
|
|
51
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
52
|
-
textVerticalPosition?: 'top' | 'center' | 'bottom';
|
|
53
|
-
textHorizontalPosition?: 'left' | 'center' | 'right';
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ShapeProperties {
|
|
57
|
-
id?: string;
|
|
58
|
-
position: Point;
|
|
59
|
-
zIndex?: number;
|
|
60
|
-
size: DrawSize;
|
|
61
|
-
style?: Partial<DrawStyle>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export enum DrawShapeType {
|
|
65
|
-
RECTANGLE = 'RECTANGLE',
|
|
66
|
-
DIAMOND = 'DIAMOND',
|
|
67
|
-
ELLIPSE = 'ELLIPSE',
|
|
68
|
-
TEXT = 'TEXT',
|
|
69
|
-
ICON = 'ICON',
|
|
70
|
-
IMAGE = 'IMAGE',
|
|
71
|
-
COMMENT = 'COMMENT',
|
|
72
|
-
ARROW = 'ARROW',
|
|
73
|
-
PENCIL = 'PENCIL',
|
|
74
|
-
}
|
|
75
|
-
export type ResizeShape = {
|
|
76
|
-
corner: 'se' | 'sw' | 'ne' | 'nw' | 'e' | 'w' | 'n' | 's';
|
|
77
|
-
startPos: Point;
|
|
78
|
-
originalSize: DrawSize;
|
|
79
|
-
originalPosition: Point;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export type RotationData = {
|
|
83
|
-
startAngle: number;
|
|
84
|
-
originalRotation: number;
|
|
85
|
-
center: Point;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export type Id = string;
|
|
89
|
-
|
|
90
|
-
export type PortId =
|
|
91
|
-
| 'top'
|
|
92
|
-
| 'right'
|
|
93
|
-
| 'bottom'
|
|
94
|
-
| 'left'
|
|
95
|
-
| 'center'
|
|
96
|
-
| 'top-left'
|
|
97
|
-
| 'top-right'
|
|
98
|
-
| 'bottom-left'
|
|
99
|
-
| 'bottom-right';
|
|
100
|
-
|
|
101
|
-
export type TextAnchor = {
|
|
102
|
-
shapeId: string;
|
|
103
|
-
relativeX: number; // 0-1: position relative to shape width (0 = left edge, 0.5 = center, 1 = right edge)
|
|
104
|
-
relativeY: number; // 0-1: position relative to shape height (0 = top edge, 0.5 = center, 1 = bottom edge)
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export type DrawShapeToJsonBaseResult = {
|
|
108
|
-
id: string;
|
|
109
|
-
type: DrawShapeType;
|
|
110
|
-
position: Point;
|
|
111
|
-
size: DrawSize;
|
|
112
|
-
style: DrawStyle;
|
|
113
|
-
zIndex: number;
|
|
114
|
-
sectionIds?: string[];
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export type DrawShapeArrowToJsonResult = DrawShapeToJsonBaseResult & {
|
|
118
|
-
type: DrawShapeType.ARROW;
|
|
119
|
-
startEndpoint: Endpoint;
|
|
120
|
-
endEndpoint: Endpoint;
|
|
121
|
-
curvePoints?: CurvePoint[];
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export type DrawShapeIconToJsonResult = DrawShapeToJsonBaseResult & {
|
|
125
|
-
type: DrawShapeType.ICON;
|
|
126
|
-
iconType: keyof typeof ICON_LIBRARY;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export type DrawShapeTextToJsonResult = DrawShapeToJsonBaseResult & {
|
|
130
|
-
type: DrawShapeType.TEXT;
|
|
131
|
-
text: string;
|
|
132
|
-
anchor?: TextAnchor;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export type DrawShapeRectangleToJsonResult = {
|
|
136
|
-
type: DrawShapeType.RECTANGLE;
|
|
137
|
-
} & DrawShapeToJsonBaseResult;
|
|
138
|
-
|
|
139
|
-
export type DrawShapeDiamondToJsonResult = {
|
|
140
|
-
type: DrawShapeType.DIAMOND;
|
|
141
|
-
} & DrawShapeToJsonBaseResult;
|
|
142
|
-
|
|
143
|
-
export type DrawShapeImageToJsonResult = DrawShapeToJsonBaseResult & {
|
|
144
|
-
type: DrawShapeType.IMAGE;
|
|
145
|
-
src: string;
|
|
146
|
-
base64: string;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
export type DrawShapeEllipseToJsonResult = DrawShapeToJsonBaseResult & {
|
|
150
|
-
type: DrawShapeType.ELLIPSE;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
export type DrawShapeCommentToJsonResult = DrawShapeToJsonBaseResult & {
|
|
154
|
-
type: DrawShapeType.COMMENT;
|
|
155
|
-
text: string;
|
|
156
|
-
date: string;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export type DrawShapePencilToJsonResult = DrawShapeToJsonBaseResult & {
|
|
160
|
-
type: DrawShapeType.PENCIL;
|
|
161
|
-
points: number[];
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
export type DrawShapeToJsonResult =
|
|
165
|
-
| DrawShapeArrowToJsonResult
|
|
166
|
-
| DrawShapeIconToJsonResult
|
|
167
|
-
| DrawShapeTextToJsonResult
|
|
168
|
-
| DrawShapeRectangleToJsonResult
|
|
169
|
-
| DrawShapeDiamondToJsonResult
|
|
170
|
-
| DrawShapeImageToJsonResult
|
|
171
|
-
| DrawShapeCommentToJsonResult
|
|
172
|
-
| DrawShapeEllipseToJsonResult
|
|
173
|
-
| DrawShapePencilToJsonResult;
|
|
1
|
+
import { Endpoint, ICON_LIBRARY, CurvePoint } from '../utils';
|
|
2
|
+
|
|
3
|
+
export type DrawData = {
|
|
4
|
+
drawId: string | null;
|
|
5
|
+
shapes: DrawShapeToJsonResult[];
|
|
6
|
+
stagePos: Point;
|
|
7
|
+
stageScale: number;
|
|
8
|
+
showGrid: boolean;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
version: number;
|
|
11
|
+
sections?: Section[];
|
|
12
|
+
activeSections?: string[];
|
|
13
|
+
sectionDisplayMode?: 'hidden' | 'opacity';
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type Section = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
color: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export interface Point {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface BoundingBox {
|
|
28
|
+
x1: number;
|
|
29
|
+
y1: number;
|
|
30
|
+
x2: number;
|
|
31
|
+
y2: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface DrawSize {
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface DrawStyle {
|
|
40
|
+
fillColor: string;
|
|
41
|
+
strokeColor: string;
|
|
42
|
+
strokeWidth: number;
|
|
43
|
+
opacity: number;
|
|
44
|
+
lineDash: number[];
|
|
45
|
+
cornerRadius: number;
|
|
46
|
+
fontSize: number;
|
|
47
|
+
fontFamily: string;
|
|
48
|
+
fontWeight?: number;
|
|
49
|
+
preserveAspectRatio: boolean;
|
|
50
|
+
rotation: number; // in degrees
|
|
51
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
52
|
+
textVerticalPosition?: 'top' | 'center' | 'bottom';
|
|
53
|
+
textHorizontalPosition?: 'left' | 'center' | 'right';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ShapeProperties {
|
|
57
|
+
id?: string;
|
|
58
|
+
position: Point;
|
|
59
|
+
zIndex?: number;
|
|
60
|
+
size: DrawSize;
|
|
61
|
+
style?: Partial<DrawStyle>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export enum DrawShapeType {
|
|
65
|
+
RECTANGLE = 'RECTANGLE',
|
|
66
|
+
DIAMOND = 'DIAMOND',
|
|
67
|
+
ELLIPSE = 'ELLIPSE',
|
|
68
|
+
TEXT = 'TEXT',
|
|
69
|
+
ICON = 'ICON',
|
|
70
|
+
IMAGE = 'IMAGE',
|
|
71
|
+
COMMENT = 'COMMENT',
|
|
72
|
+
ARROW = 'ARROW',
|
|
73
|
+
PENCIL = 'PENCIL',
|
|
74
|
+
}
|
|
75
|
+
export type ResizeShape = {
|
|
76
|
+
corner: 'se' | 'sw' | 'ne' | 'nw' | 'e' | 'w' | 'n' | 's';
|
|
77
|
+
startPos: Point;
|
|
78
|
+
originalSize: DrawSize;
|
|
79
|
+
originalPosition: Point;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export type RotationData = {
|
|
83
|
+
startAngle: number;
|
|
84
|
+
originalRotation: number;
|
|
85
|
+
center: Point;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type Id = string;
|
|
89
|
+
|
|
90
|
+
export type PortId =
|
|
91
|
+
| 'top'
|
|
92
|
+
| 'right'
|
|
93
|
+
| 'bottom'
|
|
94
|
+
| 'left'
|
|
95
|
+
| 'center'
|
|
96
|
+
| 'top-left'
|
|
97
|
+
| 'top-right'
|
|
98
|
+
| 'bottom-left'
|
|
99
|
+
| 'bottom-right';
|
|
100
|
+
|
|
101
|
+
export type TextAnchor = {
|
|
102
|
+
shapeId: string;
|
|
103
|
+
relativeX: number; // 0-1: position relative to shape width (0 = left edge, 0.5 = center, 1 = right edge)
|
|
104
|
+
relativeY: number; // 0-1: position relative to shape height (0 = top edge, 0.5 = center, 1 = bottom edge)
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type DrawShapeToJsonBaseResult = {
|
|
108
|
+
id: string;
|
|
109
|
+
type: DrawShapeType;
|
|
110
|
+
position: Point;
|
|
111
|
+
size: DrawSize;
|
|
112
|
+
style: DrawStyle;
|
|
113
|
+
zIndex: number;
|
|
114
|
+
sectionIds?: string[];
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export type DrawShapeArrowToJsonResult = DrawShapeToJsonBaseResult & {
|
|
118
|
+
type: DrawShapeType.ARROW;
|
|
119
|
+
startEndpoint: Endpoint;
|
|
120
|
+
endEndpoint: Endpoint;
|
|
121
|
+
curvePoints?: CurvePoint[];
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type DrawShapeIconToJsonResult = DrawShapeToJsonBaseResult & {
|
|
125
|
+
type: DrawShapeType.ICON;
|
|
126
|
+
iconType: keyof typeof ICON_LIBRARY;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export type DrawShapeTextToJsonResult = DrawShapeToJsonBaseResult & {
|
|
130
|
+
type: DrawShapeType.TEXT;
|
|
131
|
+
text: string;
|
|
132
|
+
anchor?: TextAnchor;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export type DrawShapeRectangleToJsonResult = {
|
|
136
|
+
type: DrawShapeType.RECTANGLE;
|
|
137
|
+
} & DrawShapeToJsonBaseResult;
|
|
138
|
+
|
|
139
|
+
export type DrawShapeDiamondToJsonResult = {
|
|
140
|
+
type: DrawShapeType.DIAMOND;
|
|
141
|
+
} & DrawShapeToJsonBaseResult;
|
|
142
|
+
|
|
143
|
+
export type DrawShapeImageToJsonResult = DrawShapeToJsonBaseResult & {
|
|
144
|
+
type: DrawShapeType.IMAGE;
|
|
145
|
+
src: string;
|
|
146
|
+
base64: string;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export type DrawShapeEllipseToJsonResult = DrawShapeToJsonBaseResult & {
|
|
150
|
+
type: DrawShapeType.ELLIPSE;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export type DrawShapeCommentToJsonResult = DrawShapeToJsonBaseResult & {
|
|
154
|
+
type: DrawShapeType.COMMENT;
|
|
155
|
+
text: string;
|
|
156
|
+
date: string;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export type DrawShapePencilToJsonResult = DrawShapeToJsonBaseResult & {
|
|
160
|
+
type: DrawShapeType.PENCIL;
|
|
161
|
+
points: number[];
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export type DrawShapeToJsonResult =
|
|
165
|
+
| DrawShapeArrowToJsonResult
|
|
166
|
+
| DrawShapeIconToJsonResult
|
|
167
|
+
| DrawShapeTextToJsonResult
|
|
168
|
+
| DrawShapeRectangleToJsonResult
|
|
169
|
+
| DrawShapeDiamondToJsonResult
|
|
170
|
+
| DrawShapeImageToJsonResult
|
|
171
|
+
| DrawShapeCommentToJsonResult
|
|
172
|
+
| DrawShapeEllipseToJsonResult
|
|
173
|
+
| DrawShapePencilToJsonResult;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export enum ErrorType {
|
|
2
|
-
apiError = 'api_error',
|
|
3
|
-
authError = 'authentication_error',
|
|
4
|
-
resourceError = 'resource_error',
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export enum Code {
|
|
8
|
-
// HTTP Error
|
|
9
|
-
tokenFailure = 'token_authentication_failure',
|
|
10
|
-
authenticationFailure = 'authentication_credentials_failure',
|
|
11
|
-
accessNotAllowed = 'access_not_allowed',
|
|
12
|
-
notFound = 'not_found',
|
|
13
|
-
validationError = 'resource_validation_error',
|
|
14
|
-
constraintError = 'resource_constraint_error',
|
|
15
|
-
internalServerError = 'internal_server_error',
|
|
16
|
-
serviceUnavailable = 'service_unavailable',
|
|
17
|
-
invalidData = 'invalid_data',
|
|
18
|
-
notImplemented = 'not_implemented',
|
|
19
|
-
retrospectiveCannotBeModifiedWhenCompleted = 'retrospective_cannot_be_modified_when_completed',
|
|
20
|
-
atlasDocumentLimitReached = 'atlas_document_limit_reached',
|
|
21
|
-
boardCardDocumentLimitReached = 'board_card_document_limit_reached',
|
|
22
|
-
boardCardMoveInvalidDestination = 'board_card_move_invalid_destination',
|
|
23
|
-
}
|
|
1
|
+
export enum ErrorType {
|
|
2
|
+
apiError = 'api_error',
|
|
3
|
+
authError = 'authentication_error',
|
|
4
|
+
resourceError = 'resource_error',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export enum Code {
|
|
8
|
+
// HTTP Error
|
|
9
|
+
tokenFailure = 'token_authentication_failure',
|
|
10
|
+
authenticationFailure = 'authentication_credentials_failure',
|
|
11
|
+
accessNotAllowed = 'access_not_allowed',
|
|
12
|
+
notFound = 'not_found',
|
|
13
|
+
validationError = 'resource_validation_error',
|
|
14
|
+
constraintError = 'resource_constraint_error',
|
|
15
|
+
internalServerError = 'internal_server_error',
|
|
16
|
+
serviceUnavailable = 'service_unavailable',
|
|
17
|
+
invalidData = 'invalid_data',
|
|
18
|
+
notImplemented = 'not_implemented',
|
|
19
|
+
retrospectiveCannotBeModifiedWhenCompleted = 'retrospective_cannot_be_modified_when_completed',
|
|
20
|
+
atlasDocumentLimitReached = 'atlas_document_limit_reached',
|
|
21
|
+
boardCardDocumentLimitReached = 'board_card_document_limit_reached',
|
|
22
|
+
boardCardMoveInvalidDestination = 'board_card_move_invalid_destination',
|
|
23
|
+
}
|