@abyss-project/main 1.0.69 → 1.0.72

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.
Files changed (30) hide show
  1. package/dist/api/atlas-document.api.d.ts +6 -0
  2. package/dist/api/atlas-document.api.js +26 -0
  3. package/dist/api/index.d.ts +1 -0
  4. package/dist/api/index.js +1 -0
  5. package/dist/constants/atlas.constants.d.ts +2 -0
  6. package/dist/constants/atlas.constants.js +5 -0
  7. package/dist/constants/index.d.ts +1 -0
  8. package/dist/constants/index.js +1 -0
  9. package/dist/server-sent-events/protocols/atlas/atlas.sse-protocol.d.ts +14 -2
  10. package/dist/server-sent-events/protocols/atlas/atlas.sse-protocol.js +3 -1
  11. package/dist/types/draw.type.d.ts +21 -4
  12. package/dist/types/draw.type.js +1 -0
  13. package/dist/types/enum/abyss-application-event.enum.d.ts +2 -0
  14. package/dist/types/enum/abyss-application-event.enum.js +2 -0
  15. package/dist/types/enum/api-error.enum.d.ts +1 -0
  16. package/dist/types/enum/api-error.enum.js +1 -0
  17. package/dist/types/interface/api/index.d.ts +2 -0
  18. package/dist/types/interface/api/index.js +2 -0
  19. package/dist/types/interface/api/requests/atlas-document.request.d.ts +26 -0
  20. package/dist/types/interface/api/requests/atlas-document.request.js +2 -0
  21. package/dist/types/interface/api/responses/atlas-document.response.d.ts +18 -0
  22. package/dist/types/interface/api/responses/atlas-document.response.js +2 -0
  23. package/dist/types/interface/index.d.ts +1 -0
  24. package/dist/types/interface/index.js +1 -0
  25. package/dist/types/interface/models/atlas-document.model.d.ts +19 -0
  26. package/dist/types/interface/models/atlas-document.model.js +2 -0
  27. package/dist/types/interface/models/atlas-page.model.d.ts +2 -0
  28. package/dist/types/interface/models/atlas.model.d.ts +2 -0
  29. package/dist/utils/shape.utils.d.ts +3 -0
  30. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { IDeleteAtlasDocumentParams, IDeleteAtlasDocumentResponse, IGetAtlasDocumentParams, IGetAtlasDocumentResponse, IGetUploadPreSignedUrlAtlasDocumentBody, IGetUploadPreSignedUrlAtlasDocumentParams, IGetUploadPreSignedUrlAtlasDocumentResponse, IPaginateAtlasDocumentParams, IPaginateAtlasDocumentQuery, IPaginateAtlasDocumentResponse, IListAtlasDocumentParams, IListAtlasDocumentResponse } from '../types';
2
+ export declare const getAtlasDocument: (params: IGetAtlasDocumentParams) => Promise<IGetAtlasDocumentResponse>;
3
+ export declare const deleteAtlasDocument: (params: IDeleteAtlasDocumentParams) => Promise<IDeleteAtlasDocumentResponse>;
4
+ export declare const getUploadPreSignedUrlAtlasDocument: (params: IGetUploadPreSignedUrlAtlasDocumentParams, body: IGetUploadPreSignedUrlAtlasDocumentBody) => Promise<IGetUploadPreSignedUrlAtlasDocumentResponse>;
5
+ export declare const paginateAtlasDocument: (params: IPaginateAtlasDocumentParams, query?: IPaginateAtlasDocumentQuery) => Promise<IPaginateAtlasDocumentResponse>;
6
+ export declare const listAtlasDocument: (params: IListAtlasDocumentParams) => Promise<IListAtlasDocumentResponse>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listAtlasDocument = exports.paginateAtlasDocument = exports.getUploadPreSignedUrlAtlasDocument = exports.deleteAtlasDocument = exports.getAtlasDocument = void 0;
4
+ const __1 = require("..");
5
+ const getAtlasDocument = async (params) => {
6
+ return (await __1.AbyssCore.axios.get(`atlas/${params.atlasId}/document/${params.atlasDocumentId}`)).data;
7
+ };
8
+ exports.getAtlasDocument = getAtlasDocument;
9
+ const deleteAtlasDocument = async (params) => {
10
+ return (await __1.AbyssCore.axios.delete(`atlas/${params.atlasId}/document/${params.atlasDocumentId}`)).data;
11
+ };
12
+ exports.deleteAtlasDocument = deleteAtlasDocument;
13
+ const getUploadPreSignedUrlAtlasDocument = async (params, body) => {
14
+ return (await __1.AbyssCore.axios.post(`atlas/${params.atlasId}/document/${params.atlasPageId}`, body)).data;
15
+ };
16
+ exports.getUploadPreSignedUrlAtlasDocument = getUploadPreSignedUrlAtlasDocument;
17
+ const paginateAtlasDocument = async (params, query) => {
18
+ return (await __1.AbyssCore.axios.get(`atlas/${params.atlasId}/document`, {
19
+ params: query,
20
+ })).data;
21
+ };
22
+ exports.paginateAtlasDocument = paginateAtlasDocument;
23
+ const listAtlasDocument = async (params) => {
24
+ return (await __1.AbyssCore.axios.get(`atlas/${params.atlasId}/document/page/${params.atlasPageId}`)).data;
25
+ };
26
+ exports.listAtlasDocument = listAtlasDocument;
@@ -39,6 +39,7 @@ export * from './retrospective.public.api';
39
39
  export * from './atlas.api';
40
40
  export * from './atlas-group.api';
41
41
  export * from './atlas-page.api';
42
+ export * from './atlas-document.api';
42
43
  export * from './atlas.public.api';
43
44
  export * from './memo.api';
44
45
  export * from './short-link.api';
package/dist/api/index.js CHANGED
@@ -55,6 +55,7 @@ __exportStar(require("./retrospective.public.api"), exports);
55
55
  __exportStar(require("./atlas.api"), exports);
56
56
  __exportStar(require("./atlas-group.api"), exports);
57
57
  __exportStar(require("./atlas-page.api"), exports);
58
+ __exportStar(require("./atlas-document.api"), exports);
58
59
  __exportStar(require("./atlas.public.api"), exports);
59
60
  __exportStar(require("./memo.api"), exports);
60
61
  __exportStar(require("./short-link.api"), exports);
@@ -0,0 +1,2 @@
1
+ export declare const MAX_DOCUMENTS_PER_ATLAS_PAGE = 20;
2
+ export declare const MAX_ATLAS_DOCUMENT_SIZE_OCTET: number;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAX_ATLAS_DOCUMENT_SIZE_OCTET = exports.MAX_DOCUMENTS_PER_ATLAS_PAGE = void 0;
4
+ exports.MAX_DOCUMENTS_PER_ATLAS_PAGE = 20;
5
+ exports.MAX_ATLAS_DOCUMENT_SIZE_OCTET = 20 * 1024 * 1024;
@@ -1,3 +1,4 @@
1
1
  export * from './board.constants';
2
2
  export * from './memo.constants';
3
3
  export * from './short-link.constants';
4
+ export * from './atlas.constants';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./board.constants"), exports);
18
18
  __exportStar(require("./memo.constants"), exports);
19
19
  __exportStar(require("./short-link.constants"), exports);
20
+ __exportStar(require("./atlas.constants"), exports);
@@ -1,6 +1,6 @@
1
1
  import { SystemSSEMessageContent } from '..';
2
2
  import { ValueOf } from '../../../types';
3
- import { IAtlas, IAtlasGroup, IAtlasPage } from '../../../types/interface';
3
+ import { IAtlas, IAtlasGroup, IAtlasPage, IAtlasDocument } from '../../../types/interface';
4
4
  export declare enum AtlasSSEEvent {
5
5
  ATLAS_UPDATED = "ATLAS_UPDATED",
6
6
  ATLAS_DELETED = "ATLAS_DELETED",
@@ -10,7 +10,9 @@ export declare enum AtlasSSEEvent {
10
10
  PAGE_CREATED = "PAGE_CREATED",
11
11
  PAGE_UPDATED = "PAGE_UPDATED",
12
12
  PAGE_DELETED = "PAGE_DELETED",
13
- PAGE_CONTENT_DIFF_UPDATED = "PAGE_CONTENT_DIFF_UPDATED"
13
+ PAGE_CONTENT_DIFF_UPDATED = "PAGE_CONTENT_DIFF_UPDATED",
14
+ ATLAS_DOCUMENT_CREATE = "ATLAS_DOCUMENT_CREATE",
15
+ ATLAS_DOCUMENT_DELETE = "ATLAS_DOCUMENT_DELETE"
14
16
  }
15
17
  export type AtlasSSEMessageContent = ValueOf<{
16
18
  [K in AtlasSSEEvent]: {
@@ -58,5 +60,15 @@ export declare class SourceAtlasSSEEventPayload implements Record<AtlasSSEEvent,
58
60
  version: number;
59
61
  lastModifiedByUserId?: string;
60
62
  };
63
+ [AtlasSSEEvent.ATLAS_DOCUMENT_CREATE]: {
64
+ atlasId: string;
65
+ atlasPageId: string;
66
+ atlasDocument: IAtlasDocument;
67
+ };
68
+ [AtlasSSEEvent.ATLAS_DOCUMENT_DELETE]: {
69
+ atlasId: string;
70
+ atlasPageId: string;
71
+ atlasDocumentId: string;
72
+ };
61
73
  }
62
74
  export type AtlasSSEEventContent = AtlasSSEMessageContent | SystemSSEMessageContent;
@@ -12,8 +12,10 @@ var AtlasSSEEvent;
12
12
  AtlasSSEEvent["PAGE_UPDATED"] = "PAGE_UPDATED";
13
13
  AtlasSSEEvent["PAGE_DELETED"] = "PAGE_DELETED";
14
14
  AtlasSSEEvent["PAGE_CONTENT_DIFF_UPDATED"] = "PAGE_CONTENT_DIFF_UPDATED";
15
+ AtlasSSEEvent["ATLAS_DOCUMENT_CREATE"] = "ATLAS_DOCUMENT_CREATE";
16
+ AtlasSSEEvent["ATLAS_DOCUMENT_DELETE"] = "ATLAS_DOCUMENT_DELETE";
15
17
  })(AtlasSSEEvent || (exports.AtlasSSEEvent = AtlasSSEEvent = {}));
16
18
  class SourceAtlasSSEEventPayload {
17
19
  }
18
20
  exports.SourceAtlasSSEEventPayload = SourceAtlasSSEEventPayload;
19
- AtlasSSEEvent.ATLAS_UPDATED, AtlasSSEEvent.ATLAS_DELETED, AtlasSSEEvent.GROUP_CREATED, AtlasSSEEvent.GROUP_UPDATED, AtlasSSEEvent.GROUP_DELETED, AtlasSSEEvent.PAGE_CREATED, AtlasSSEEvent.PAGE_UPDATED, AtlasSSEEvent.PAGE_DELETED, AtlasSSEEvent.PAGE_CONTENT_DIFF_UPDATED;
21
+ AtlasSSEEvent.ATLAS_UPDATED, AtlasSSEEvent.ATLAS_DELETED, AtlasSSEEvent.GROUP_CREATED, AtlasSSEEvent.GROUP_UPDATED, AtlasSSEEvent.GROUP_DELETED, AtlasSSEEvent.PAGE_CREATED, AtlasSSEEvent.PAGE_UPDATED, AtlasSSEEvent.PAGE_DELETED, AtlasSSEEvent.PAGE_CONTENT_DIFF_UPDATED, AtlasSSEEvent.ATLAS_DOCUMENT_CREATE, AtlasSSEEvent.ATLAS_DOCUMENT_DELETE;
@@ -1,4 +1,4 @@
1
- import { Endpoint, ICON_LIBRARY } from '../utils';
1
+ import { Endpoint, ICON_LIBRARY, CurvePoint } from '../utils';
2
2
  export type DrawData = {
3
3
  drawId: string | null;
4
4
  shapes: DrawShapeToJsonResult[];
@@ -39,8 +39,12 @@ export interface DrawStyle {
39
39
  cornerRadius: number;
40
40
  fontSize: number;
41
41
  fontFamily: string;
42
+ fontWeight?: number;
42
43
  preserveAspectRatio: boolean;
43
44
  rotation: number;
45
+ textAlign?: 'left' | 'center' | 'right';
46
+ textVerticalPosition?: 'top' | 'center' | 'bottom';
47
+ textHorizontalPosition?: 'left' | 'center' | 'right';
44
48
  }
45
49
  export interface ShapeProperties {
46
50
  position: Point;
@@ -56,10 +60,11 @@ export declare enum DrawShapeType {
56
60
  ICON = "ICON",
57
61
  IMAGE = "IMAGE",
58
62
  COMMENT = "COMMENT",
59
- ARROW = "ARROW"
63
+ ARROW = "ARROW",
64
+ PENCIL = "PENCIL"
60
65
  }
61
66
  export type ResizeShape = {
62
- corner: 'se' | 'sw' | 'ne' | 'nw';
67
+ corner: 'se' | 'sw' | 'ne' | 'nw' | 'e' | 'w' | 'n' | 's';
63
68
  startPos: Point;
64
69
  originalSize: DrawSize;
65
70
  originalPosition: Point;
@@ -71,6 +76,12 @@ export type RotationData = {
71
76
  };
72
77
  export type Id = string;
73
78
  export type PortId = 'top' | 'right' | 'bottom' | 'left' | 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
79
+ export type TextAnchor = {
80
+ shapeId: string;
81
+ portId: PortId;
82
+ offsetX?: number;
83
+ offsetY?: number;
84
+ };
74
85
  export type DrawShapeToJsonBaseResult = {
75
86
  id: string;
76
87
  type: DrawShapeType;
@@ -84,6 +95,7 @@ export type DrawShapeArrowToJsonResult = DrawShapeToJsonBaseResult & {
84
95
  type: DrawShapeType.ARROW;
85
96
  startEndpoint: Endpoint;
86
97
  endEndpoint: Endpoint;
98
+ curvePoints?: CurvePoint[];
87
99
  };
88
100
  export type DrawShapeIconToJsonResult = DrawShapeToJsonBaseResult & {
89
101
  type: DrawShapeType.ICON;
@@ -92,6 +104,7 @@ export type DrawShapeIconToJsonResult = DrawShapeToJsonBaseResult & {
92
104
  export type DrawShapeTextToJsonResult = DrawShapeToJsonBaseResult & {
93
105
  type: DrawShapeType.TEXT;
94
106
  text: string;
107
+ anchor?: TextAnchor;
95
108
  };
96
109
  export type DrawShapeRectangleToJsonResult = {
97
110
  type: DrawShapeType.RECTANGLE;
@@ -112,4 +125,8 @@ export type DrawShapeCommentToJsonResult = DrawShapeToJsonBaseResult & {
112
125
  text: string;
113
126
  date: string;
114
127
  };
115
- export type DrawShapeToJsonResult = DrawShapeArrowToJsonResult | DrawShapeIconToJsonResult | DrawShapeTextToJsonResult | DrawShapeRectangleToJsonResult | DrawShapeDiamondToJsonResult | DrawShapeImageToJsonResult | DrawShapeCommentToJsonResult | DrawShapeEllipseToJsonResult;
128
+ export type DrawShapePencilToJsonResult = DrawShapeToJsonBaseResult & {
129
+ type: DrawShapeType.PENCIL;
130
+ points: number[];
131
+ };
132
+ export type DrawShapeToJsonResult = DrawShapeArrowToJsonResult | DrawShapeIconToJsonResult | DrawShapeTextToJsonResult | DrawShapeRectangleToJsonResult | DrawShapeDiamondToJsonResult | DrawShapeImageToJsonResult | DrawShapeCommentToJsonResult | DrawShapeEllipseToJsonResult | DrawShapePencilToJsonResult;
@@ -11,4 +11,5 @@ var DrawShapeType;
11
11
  DrawShapeType["IMAGE"] = "IMAGE";
12
12
  DrawShapeType["COMMENT"] = "COMMENT";
13
13
  DrawShapeType["ARROW"] = "ARROW";
14
+ DrawShapeType["PENCIL"] = "PENCIL";
14
15
  })(DrawShapeType || (exports.DrawShapeType = DrawShapeType = {}));
@@ -81,6 +81,8 @@ export declare enum AbyssApplicationEvent {
81
81
  ATLAS_PAGE_CONTENT_CREATE = "atlas-page-content.create",
82
82
  ATLAS_PAGE_CONTENT_UPDATE = "atlas-page-content.update",
83
83
  ATLAS_PAGE_CONTENT_DELETE = "atlas-page-content.delete",
84
+ ATLAS_DOCUMENT_CREATE = "atlas-document.create",
85
+ ATLAS_DOCUMENT_DELETE = "atlas-document.delete",
84
86
  MEMO_CREATE = "memo.create",
85
87
  MEMO_UPDATE = "memo.update",
86
88
  MEMO_DELETE = "memo.delete",
@@ -85,6 +85,8 @@ var AbyssApplicationEvent;
85
85
  AbyssApplicationEvent["ATLAS_PAGE_CONTENT_CREATE"] = "atlas-page-content.create";
86
86
  AbyssApplicationEvent["ATLAS_PAGE_CONTENT_UPDATE"] = "atlas-page-content.update";
87
87
  AbyssApplicationEvent["ATLAS_PAGE_CONTENT_DELETE"] = "atlas-page-content.delete";
88
+ AbyssApplicationEvent["ATLAS_DOCUMENT_CREATE"] = "atlas-document.create";
89
+ AbyssApplicationEvent["ATLAS_DOCUMENT_DELETE"] = "atlas-document.delete";
88
90
  AbyssApplicationEvent["MEMO_CREATE"] = "memo.create";
89
91
  AbyssApplicationEvent["MEMO_UPDATE"] = "memo.update";
90
92
  AbyssApplicationEvent["MEMO_DELETE"] = "memo.delete";
@@ -39,5 +39,6 @@ export declare enum Code {
39
39
  unableToDeleteFormExist = "unable_to_delete_form_exist",
40
40
  boardCardDocumentLimitReached = "board_card_document_limit_reached",
41
41
  boardCardMoveInvalidDestination = "board_card_move_invalid_destination",
42
+ atlasDocumentLimitReached = "atlas_document_limit_reached",
42
43
  retrospectiveCannotBeModifiedWhenCompleted = "retrospective_cannot_be_modified_when_completed"
43
44
  }
@@ -44,5 +44,6 @@ var Code;
44
44
  Code["unableToDeleteFormExist"] = "unable_to_delete_form_exist";
45
45
  Code["boardCardDocumentLimitReached"] = "board_card_document_limit_reached";
46
46
  Code["boardCardMoveInvalidDestination"] = "board_card_move_invalid_destination";
47
+ Code["atlasDocumentLimitReached"] = "atlas_document_limit_reached";
47
48
  Code["retrospectiveCannotBeModifiedWhenCompleted"] = "retrospective_cannot_be_modified_when_completed";
48
49
  })(Code || (exports.Code = Code = {}));
@@ -41,6 +41,7 @@ export * from './requests/retrospective.public.request';
41
41
  export * from './requests/atlas.request';
42
42
  export * from './requests/atlas-page.request';
43
43
  export * from './requests/atlas-group.request';
44
+ export * from './requests/atlas-document.request';
44
45
  export * from './requests/atlas.public.request';
45
46
  export * from './requests/memo.request';
46
47
  export * from './requests/short-link.request';
@@ -87,6 +88,7 @@ export * from './responses/retrospective.public.response';
87
88
  export * from './responses/atlas.response';
88
89
  export * from './responses/atlas-page.response';
89
90
  export * from './responses/atlas-group.response';
91
+ export * from './responses/atlas-document.response';
90
92
  export * from './responses/atlas.public.response';
91
93
  export * from './responses/memo.response';
92
94
  export * from './responses/short-link.response';
@@ -57,6 +57,7 @@ __exportStar(require("./requests/retrospective.public.request"), exports);
57
57
  __exportStar(require("./requests/atlas.request"), exports);
58
58
  __exportStar(require("./requests/atlas-page.request"), exports);
59
59
  __exportStar(require("./requests/atlas-group.request"), exports);
60
+ __exportStar(require("./requests/atlas-document.request"), exports);
60
61
  __exportStar(require("./requests/atlas.public.request"), exports);
61
62
  __exportStar(require("./requests/memo.request"), exports);
62
63
  __exportStar(require("./requests/short-link.request"), exports);
@@ -103,6 +104,7 @@ __exportStar(require("./responses/retrospective.public.response"), exports);
103
104
  __exportStar(require("./responses/atlas.response"), exports);
104
105
  __exportStar(require("./responses/atlas-page.response"), exports);
105
106
  __exportStar(require("./responses/atlas-group.response"), exports);
107
+ __exportStar(require("./responses/atlas-document.response"), exports);
106
108
  __exportStar(require("./responses/atlas.public.response"), exports);
107
109
  __exportStar(require("./responses/memo.response"), exports);
108
110
  __exportStar(require("./responses/short-link.response"), exports);
@@ -0,0 +1,26 @@
1
+ import { QueryPaginate } from '..';
2
+ export type IGetUploadPreSignedUrlAtlasDocumentParams = {
3
+ atlasId: string;
4
+ atlasPageId: string;
5
+ };
6
+ export type IGetUploadPreSignedUrlAtlasDocumentBody = {
7
+ name: string;
8
+ };
9
+ export type IGetAtlasDocumentParams = {
10
+ atlasId: string;
11
+ atlasDocumentId: string;
12
+ };
13
+ export type IDeleteAtlasDocumentParams = {
14
+ atlasId: string;
15
+ atlasDocumentId: string;
16
+ };
17
+ export type IPaginateAtlasDocumentParams = {
18
+ atlasId: string;
19
+ };
20
+ export type IPaginateAtlasDocumentQuery = QueryPaginate & {
21
+ atlasPageId?: string;
22
+ };
23
+ export type IListAtlasDocumentParams = {
24
+ atlasId: string;
25
+ atlasPageId: string;
26
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { IResponse, BasePaginate } from '..';
2
+ import { IAtlasDocument } from '../..';
3
+ export interface IGetAtlasDocumentData {
4
+ atlasDocument: IAtlasDocument;
5
+ }
6
+ export type IGetAtlasDocumentResponse = IResponse<IGetAtlasDocumentData>;
7
+ export interface IGetUploadPreSignedUrlAtlasDocumentData {
8
+ preSignedUrl: string;
9
+ }
10
+ export type IGetUploadPreSignedUrlAtlasDocumentResponse = IResponse<IGetUploadPreSignedUrlAtlasDocumentData>;
11
+ export interface IDeleteAtlasDocumentData {
12
+ }
13
+ export type IDeleteAtlasDocumentResponse = IResponse<IDeleteAtlasDocumentData>;
14
+ export type IPaginateAtlasDocumentResponse = IResponse<BasePaginate<IAtlasDocument>>;
15
+ export interface IListAtlasDocumentData {
16
+ atlasDocuments: IAtlasDocument[];
17
+ }
18
+ export type IListAtlasDocumentResponse = IResponse<IListAtlasDocumentData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -39,6 +39,7 @@ export * from './models/atlas.model';
39
39
  export * from './models/atlas-group.model';
40
40
  export * from './models/atlas-page.model';
41
41
  export * from './models/atlas-page-content.model';
42
+ export * from './models/atlas-document.model';
42
43
  export * from './models/memo.model';
43
44
  export * from './models/short-link.model';
44
45
  export * from './models/short-link-click.model';
@@ -55,6 +55,7 @@ __exportStar(require("./models/atlas.model"), exports);
55
55
  __exportStar(require("./models/atlas-group.model"), exports);
56
56
  __exportStar(require("./models/atlas-page.model"), exports);
57
57
  __exportStar(require("./models/atlas-page-content.model"), exports);
58
+ __exportStar(require("./models/atlas-document.model"), exports);
58
59
  __exportStar(require("./models/memo.model"), exports);
59
60
  __exportStar(require("./models/short-link.model"), exports);
60
61
  __exportStar(require("./models/short-link-click.model"), exports);
@@ -0,0 +1,19 @@
1
+ import { IAtlasPage } from './atlas-page.model';
2
+ import { IAtlas } from './atlas.model';
3
+ export interface IAtlasDocument {
4
+ id: string;
5
+ atlasPageId: string;
6
+ atlasId: string;
7
+ name: string;
8
+ externalId: string;
9
+ publicAccessId: string;
10
+ thumbnailId: string | null;
11
+ thumbnailPublicAccessId: string | null;
12
+ sizeOctet: number;
13
+ mimeType: string;
14
+ checksum: string;
15
+ createdAt?: Date;
16
+ updatedAt?: Date;
17
+ atlasPage?: IAtlasPage;
18
+ atlas?: IAtlas;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ import { IAtlasDocument } from './atlas-document.model';
1
2
  import { IAtlasGroup } from './atlas-group.model';
2
3
  import { IAtlasPageContent } from './atlas-page-content.model';
3
4
  import { IAtlas } from './atlas.model';
@@ -18,4 +19,5 @@ export interface IAtlasPage {
18
19
  atlas?: IAtlas;
19
20
  atlasGroup?: IAtlasGroup | null;
20
21
  atlasPageContent?: IAtlasPageContent[];
22
+ atlasDocument?: IAtlasDocument[];
21
23
  }
@@ -1,3 +1,4 @@
1
+ import { IAtlasDocument } from './atlas-document.model';
1
2
  import { IAtlasGroup } from './atlas-group.model';
2
3
  import { IAtlasPage } from './atlas-page.model';
3
4
  import { IProject } from './project.model';
@@ -16,6 +17,7 @@ export interface IAtlas {
16
17
  project?: IProject | null;
17
18
  atlasGroup?: IAtlasGroup[];
18
19
  atlasPage?: IAtlasPage[];
20
+ atlasDocument?: IAtlasDocument[];
19
21
  }
20
22
  export interface IAtlasWithDetails extends IAtlas {
21
23
  atlasGroup: IAtlasGroup[];
@@ -11,6 +11,9 @@ export type Endpoint = {
11
11
  portId: PortId;
12
12
  });
13
13
  export type DrawArrowEndpointStyle = 'arrow' | 'circle' | 'square' | 'diamond' | 'none';
14
+ export type CurvePoint = Point & {
15
+ type: 'straight' | 'curved';
16
+ };
14
17
  export declare const rectangleToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
15
18
  export declare const diamondToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
16
19
  export declare const ellipseToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.69",
3
+ "version": "1.0.72",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",