@abyss-project/main 1.0.63 → 1.0.65

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 (92) hide show
  1. package/dist/api/draw.api.d.ts +8 -0
  2. package/dist/api/draw.api.js +36 -0
  3. package/dist/api/draw.public.api.d.ts +5 -0
  4. package/dist/api/draw.public.api.js +20 -0
  5. package/dist/api/index.d.ts +7 -0
  6. package/dist/api/index.js +7 -0
  7. package/dist/api/retrospective-card.api.d.ts +6 -0
  8. package/dist/api/retrospective-card.api.js +26 -0
  9. package/dist/api/retrospective-member.api.d.ts +5 -0
  10. package/dist/api/retrospective-member.api.js +20 -0
  11. package/dist/api/retrospective-section.api.d.ts +6 -0
  12. package/dist/api/retrospective-section.api.js +26 -0
  13. package/dist/api/retrospective.api.d.ts +8 -0
  14. package/dist/api/retrospective.api.js +34 -0
  15. package/dist/api/retrospective.public.api.d.ts +11 -0
  16. package/dist/api/retrospective.public.api.js +44 -0
  17. package/dist/index.d.ts +2 -0
  18. package/dist/index.js +6 -1
  19. package/dist/server-sent-events/index.d.ts +2 -1
  20. package/dist/server-sent-events/index.js +1 -0
  21. package/dist/server-sent-events/protocols/index.d.ts +1 -0
  22. package/dist/server-sent-events/protocols/index.js +1 -0
  23. package/dist/server-sent-events/protocols/retrospective/index.d.ts +1 -0
  24. package/dist/server-sent-events/protocols/retrospective/index.js +17 -0
  25. package/dist/server-sent-events/protocols/retrospective/retrospective.sse-protocol.d.ts +73 -0
  26. package/dist/server-sent-events/protocols/retrospective/retrospective.sse-protocol.js +22 -0
  27. package/dist/server-sent-events/server-sent-events.manager.d.ts +1 -1
  28. package/dist/server-sent-events/server-sent-events.manager.js +2 -1
  29. package/dist/types/draw.type.d.ts +106 -0
  30. package/dist/types/draw.type.js +14 -0
  31. package/dist/types/enum/abyss-application-event.enum.d.ts +24 -2
  32. package/dist/types/enum/abyss-application-event.enum.js +24 -2
  33. package/dist/types/enum/api-error.enum.d.ts +2 -1
  34. package/dist/types/enum/api-error.enum.js +1 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/index.js +1 -0
  37. package/dist/types/interface/api/index.d.ts +14 -0
  38. package/dist/types/interface/api/index.js +14 -0
  39. package/dist/types/interface/api/requests/draw.public.request.d.ts +17 -0
  40. package/dist/types/interface/api/requests/draw.public.request.js +2 -0
  41. package/dist/types/interface/api/requests/draw.request.d.ts +31 -0
  42. package/dist/types/interface/api/requests/draw.request.js +2 -0
  43. package/dist/types/interface/api/requests/retrospective-card.request.d.ts +32 -0
  44. package/dist/types/interface/api/requests/retrospective-card.request.js +2 -0
  45. package/dist/types/interface/api/requests/retrospective-member.request.d.ts +17 -0
  46. package/dist/types/interface/api/requests/retrospective-member.request.js +2 -0
  47. package/dist/types/interface/api/requests/retrospective-section.request.d.ts +36 -0
  48. package/dist/types/interface/api/requests/retrospective-section.request.js +2 -0
  49. package/dist/types/interface/api/requests/retrospective.public.request.d.ts +71 -0
  50. package/dist/types/interface/api/requests/retrospective.public.request.js +2 -0
  51. package/dist/types/interface/api/requests/retrospective.request.d.ts +39 -0
  52. package/dist/types/interface/api/requests/retrospective.request.js +2 -0
  53. package/dist/types/interface/api/responses/draw.public.response.d.ts +17 -0
  54. package/dist/types/interface/api/responses/draw.public.response.js +2 -0
  55. package/dist/types/interface/api/responses/draw.response.d.ts +18 -0
  56. package/dist/types/interface/api/responses/draw.response.js +2 -0
  57. package/dist/types/interface/api/responses/project.response.d.ts +7 -0
  58. package/dist/types/interface/api/responses/retrospective-card.response.d.ts +18 -0
  59. package/dist/types/interface/api/responses/retrospective-card.response.js +2 -0
  60. package/dist/types/interface/api/responses/retrospective-member.response.d.ts +18 -0
  61. package/dist/types/interface/api/responses/retrospective-member.response.js +2 -0
  62. package/dist/types/interface/api/responses/retrospective-section.response.d.ts +18 -0
  63. package/dist/types/interface/api/responses/retrospective-section.response.js +2 -0
  64. package/dist/types/interface/api/responses/retrospective.public.response.d.ts +36 -0
  65. package/dist/types/interface/api/responses/retrospective.public.response.js +2 -0
  66. package/dist/types/interface/api/responses/retrospective.response.d.ts +18 -0
  67. package/dist/types/interface/api/responses/retrospective.response.js +2 -0
  68. package/dist/types/interface/index.d.ts +5 -0
  69. package/dist/types/interface/index.js +5 -0
  70. package/dist/types/interface/models/draw.model.d.ts +20 -0
  71. package/dist/types/interface/models/draw.model.js +2 -0
  72. package/dist/types/interface/models/project.model.d.ts +2 -0
  73. package/dist/types/interface/models/retrospective-card.model.d.ts +14 -0
  74. package/dist/types/interface/models/retrospective-card.model.js +2 -0
  75. package/dist/types/interface/models/retrospective-member.model.d.ts +12 -0
  76. package/dist/types/interface/models/retrospective-member.model.js +2 -0
  77. package/dist/types/interface/models/retrospective-section.model.d.ts +13 -0
  78. package/dist/types/interface/models/retrospective-section.model.js +2 -0
  79. package/dist/types/interface/models/retrospective.model.d.ts +24 -0
  80. package/dist/types/interface/models/retrospective.model.js +2 -0
  81. package/dist/types/interface/models/user.model.d.ts +2 -0
  82. package/dist/utils/compression.utils.d.ts +2 -0
  83. package/dist/utils/compression.utils.js +12 -0
  84. package/dist/utils/file.utils.d.ts +1 -0
  85. package/dist/utils/file.utils.js +22 -0
  86. package/dist/utils/icons.utils.d.ts +75 -0
  87. package/dist/utils/icons.utils.js +86 -0
  88. package/dist/utils/index.d.ts +4 -0
  89. package/dist/utils/index.js +4 -0
  90. package/dist/utils/shape.utils.d.ts +22 -0
  91. package/dist/utils/shape.utils.js +181 -0
  92. package/package.json +2 -1
@@ -0,0 +1,106 @@
1
+ import { Endpoint, ICON_LIBRARY } from '../utils';
2
+ export type DrawData = {
3
+ drawId: string | null;
4
+ shapes: DrawShapeToJsonResult[];
5
+ stagePos: Point;
6
+ stageScale: number;
7
+ showGrid: boolean;
8
+ timestamp: number;
9
+ version: number;
10
+ };
11
+ export interface Point {
12
+ x: number;
13
+ y: number;
14
+ }
15
+ export interface BoundingBox {
16
+ x1: number;
17
+ y1: number;
18
+ x2: number;
19
+ y2: number;
20
+ }
21
+ export interface DrawSize {
22
+ width: number;
23
+ height: number;
24
+ }
25
+ export interface DrawStyle {
26
+ fillColor: string;
27
+ strokeColor: string;
28
+ strokeWidth: number;
29
+ opacity: number;
30
+ lineDash: number[];
31
+ cornerRadius: number;
32
+ fontSize: number;
33
+ fontFamily: string;
34
+ preserveAspectRatio: boolean;
35
+ rotation: number;
36
+ }
37
+ export interface ShapeProperties {
38
+ position: Point;
39
+ zIndex?: number;
40
+ size: DrawSize;
41
+ style?: Partial<DrawStyle>;
42
+ }
43
+ export declare enum DrawShapeType {
44
+ RECTANGLE = "RECTANGLE",
45
+ DIAMOND = "DIAMOND",
46
+ ELLIPSE = "ELLIPSE",
47
+ TEXT = "TEXT",
48
+ ICON = "ICON",
49
+ IMAGE = "IMAGE",
50
+ COMMENT = "COMMENT",
51
+ ARROW = "ARROW"
52
+ }
53
+ export type ResizeShape = {
54
+ corner: 'se' | 'sw' | 'ne' | 'nw';
55
+ startPos: Point;
56
+ originalSize: DrawSize;
57
+ originalPosition: Point;
58
+ };
59
+ export type RotationData = {
60
+ startAngle: number;
61
+ originalRotation: number;
62
+ center: Point;
63
+ };
64
+ export type Id = string;
65
+ export type PortId = 'top' | 'right' | 'bottom' | 'left' | 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
66
+ export type DrawShapeToJsonBaseResult = {
67
+ id: string;
68
+ type: DrawShapeType;
69
+ position: Point;
70
+ size: DrawSize;
71
+ style: DrawStyle;
72
+ zIndex: number;
73
+ };
74
+ export type DrawShapeArrowToJsonResult = DrawShapeToJsonBaseResult & {
75
+ type: DrawShapeType.ARROW;
76
+ startEndpoint: Endpoint;
77
+ endEndpoint: Endpoint;
78
+ };
79
+ export type DrawShapeIconToJsonResult = DrawShapeToJsonBaseResult & {
80
+ type: DrawShapeType.ICON;
81
+ iconType: keyof typeof ICON_LIBRARY;
82
+ };
83
+ export type DrawShapeTextToJsonResult = DrawShapeToJsonBaseResult & {
84
+ type: DrawShapeType.TEXT;
85
+ text: string;
86
+ };
87
+ export type DrawShapeRectangleToJsonResult = {
88
+ type: DrawShapeType.RECTANGLE;
89
+ } & DrawShapeToJsonBaseResult;
90
+ export type DrawShapeDiamondToJsonResult = {
91
+ type: DrawShapeType.DIAMOND;
92
+ } & DrawShapeToJsonBaseResult;
93
+ export type DrawShapeImageToJsonResult = DrawShapeToJsonBaseResult & {
94
+ type: DrawShapeType.IMAGE;
95
+ src: string;
96
+ base64: string;
97
+ };
98
+ export type DrawShapeEllipseToJsonResult = DrawShapeToJsonBaseResult & {
99
+ type: DrawShapeType.ELLIPSE;
100
+ };
101
+ export type DrawShapeCommentToJsonResult = DrawShapeToJsonBaseResult & {
102
+ type: DrawShapeType.COMMENT;
103
+ text: string;
104
+ date: string;
105
+ };
106
+ export type DrawShapeToJsonResult = DrawShapeArrowToJsonResult | DrawShapeIconToJsonResult | DrawShapeTextToJsonResult | DrawShapeRectangleToJsonResult | DrawShapeDiamondToJsonResult | DrawShapeImageToJsonResult | DrawShapeCommentToJsonResult | DrawShapeEllipseToJsonResult;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DrawShapeType = void 0;
4
+ var DrawShapeType;
5
+ (function (DrawShapeType) {
6
+ DrawShapeType["RECTANGLE"] = "RECTANGLE";
7
+ DrawShapeType["DIAMOND"] = "DIAMOND";
8
+ DrawShapeType["ELLIPSE"] = "ELLIPSE";
9
+ DrawShapeType["TEXT"] = "TEXT";
10
+ DrawShapeType["ICON"] = "ICON";
11
+ DrawShapeType["IMAGE"] = "IMAGE";
12
+ DrawShapeType["COMMENT"] = "COMMENT";
13
+ DrawShapeType["ARROW"] = "ARROW";
14
+ })(DrawShapeType || (exports.DrawShapeType = DrawShapeType = {}));
@@ -7,11 +7,17 @@ export declare enum AbyssApplicationEvent {
7
7
  USER_NOTIFICATION_CREATE = "user.notification.create",
8
8
  USER_NOTIFICATION_OPEN = "user.notification.open",
9
9
  SERVER_SENT_EVENTS_BOARD_OPEN = "server-sent-events.board.open",
10
+ SERVER_SENT_EVENTS_BOARD_CLOSE = "server-sent-events.board.close",
10
11
  SERVER_SENT_EVENTS_BOARD_SEND = "server-sent-events.board.send",
11
12
  SERVER_SENT_EVENTS_BOARD_CARD_OPEN = "server-sent-events.board-card.open",
13
+ SERVER_SENT_EVENTS_BOARD_CARD_CLOSE = "server-sent-events.board-card.close",
12
14
  SERVER_SENT_EVENTS_BOARD_CARD_SEND = "server-sent-events.board-card.send",
13
- SERVER_SENT_EVENTS_USER_OPEN = "server-sent-events.user.open",
14
- SERVER_SENT_EVENTS_USER_SEND = "server-sent-events.user.send",
15
+ SERVER_SENT_EVENTS_USER_OPEN = "server-sent-events.user-notification.open",
16
+ SERVER_SENT_EVENTS_USER_CLOSE = "server-sent-events.user-notification.close",
17
+ SERVER_SENT_EVENTS_USER_SEND = "server-sent-events.user-notification.send",
18
+ SERVER_SENT_EVENTS_RETROSPECTIVE_OPEN = "server-sent-events.retrospective.open",
19
+ SERVER_SENT_EVENTS_RETROSPECTIVE_CLOSE = "server-sent-events.retrospective.close",
20
+ SERVER_SENT_EVENTS_RETROSPECTIVE_SEND = "server-sent-events.retrospective.send",
15
21
  BOARD_CREATE = "board.create",
16
22
  BOARD_UPDATE = "board.update",
17
23
  BOARD_DELETE = "board.delete",
@@ -40,6 +46,22 @@ export declare enum AbyssApplicationEvent {
40
46
  BOARD_CARD_COMMENT_CREATE = "board.card.comment.create",
41
47
  BOARD_CARD_COMMENT_UPDATE = "board.card.comment.update",
42
48
  BOARD_CARD_COMMENT_DELETE = "board.card.comment.delete",
49
+ DRAW_CREATE = "draw.create",
50
+ DRAW_UPDATE = "draw.update",
51
+ DRAW_DELETE = "draw.delete",
52
+ RETROSPECTIVE_CREATE = "retrospective.create",
53
+ RETROSPECTIVE_UPDATE = "retrospective.update",
54
+ RETROSPECTIVE_DELETE = "retrospective.delete",
55
+ RETROSPECTIVE_SECTION_CREATE = "retrospective.section.create",
56
+ RETROSPECTIVE_SECTION_UPDATE = "retrospective.section.update",
57
+ RETROSPECTIVE_SECTION_DELETE = "retrospective.section.delete",
58
+ RETROSPECTIVE_CARD_CREATE = "retrospective.card.create",
59
+ RETROSPECTIVE_CARD_UPDATE = "retrospective.card.update",
60
+ RETROSPECTIVE_CARD_DELETE = "retrospective.card.delete",
61
+ RETROSPECTIVE_MEMBER_ADD = "retrospective.member.add",
62
+ RETROSPECTIVE_MEMBER_UPDATE = "retrospective.member.update",
63
+ RETROSPECTIVE_MEMBER_CONNECT = "retrospective.member.connect",
64
+ RETROSPECTIVE_MEMBER_DISCONNECT = "retrospective.member.disconnect",
43
65
  ABYSS_STORAGE_MINDEE_EXTRACT = "abyss-storage.mindee.extract",
44
66
  ABYSS_STORAGE_COLLECTION_FREEPIK_FETCH = "abyss-storage.collection.freepik.fetch",
45
67
  ABYSS_STORAGE_COLLECTION_FREEPIK_GET_DOWNLOAD_URL = "abyss-storage.collection.freepik.get-download-url",
@@ -11,11 +11,17 @@ var AbyssApplicationEvent;
11
11
  AbyssApplicationEvent["USER_NOTIFICATION_CREATE"] = "user.notification.create";
12
12
  AbyssApplicationEvent["USER_NOTIFICATION_OPEN"] = "user.notification.open";
13
13
  AbyssApplicationEvent["SERVER_SENT_EVENTS_BOARD_OPEN"] = "server-sent-events.board.open";
14
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_BOARD_CLOSE"] = "server-sent-events.board.close";
14
15
  AbyssApplicationEvent["SERVER_SENT_EVENTS_BOARD_SEND"] = "server-sent-events.board.send";
15
16
  AbyssApplicationEvent["SERVER_SENT_EVENTS_BOARD_CARD_OPEN"] = "server-sent-events.board-card.open";
17
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_BOARD_CARD_CLOSE"] = "server-sent-events.board-card.close";
16
18
  AbyssApplicationEvent["SERVER_SENT_EVENTS_BOARD_CARD_SEND"] = "server-sent-events.board-card.send";
17
- AbyssApplicationEvent["SERVER_SENT_EVENTS_USER_OPEN"] = "server-sent-events.user.open";
18
- AbyssApplicationEvent["SERVER_SENT_EVENTS_USER_SEND"] = "server-sent-events.user.send";
19
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_USER_OPEN"] = "server-sent-events.user-notification.open";
20
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_USER_CLOSE"] = "server-sent-events.user-notification.close";
21
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_USER_SEND"] = "server-sent-events.user-notification.send";
22
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_RETROSPECTIVE_OPEN"] = "server-sent-events.retrospective.open";
23
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_RETROSPECTIVE_CLOSE"] = "server-sent-events.retrospective.close";
24
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_RETROSPECTIVE_SEND"] = "server-sent-events.retrospective.send";
19
25
  AbyssApplicationEvent["BOARD_CREATE"] = "board.create";
20
26
  AbyssApplicationEvent["BOARD_UPDATE"] = "board.update";
21
27
  AbyssApplicationEvent["BOARD_DELETE"] = "board.delete";
@@ -44,6 +50,22 @@ var AbyssApplicationEvent;
44
50
  AbyssApplicationEvent["BOARD_CARD_COMMENT_CREATE"] = "board.card.comment.create";
45
51
  AbyssApplicationEvent["BOARD_CARD_COMMENT_UPDATE"] = "board.card.comment.update";
46
52
  AbyssApplicationEvent["BOARD_CARD_COMMENT_DELETE"] = "board.card.comment.delete";
53
+ AbyssApplicationEvent["DRAW_CREATE"] = "draw.create";
54
+ AbyssApplicationEvent["DRAW_UPDATE"] = "draw.update";
55
+ AbyssApplicationEvent["DRAW_DELETE"] = "draw.delete";
56
+ AbyssApplicationEvent["RETROSPECTIVE_CREATE"] = "retrospective.create";
57
+ AbyssApplicationEvent["RETROSPECTIVE_UPDATE"] = "retrospective.update";
58
+ AbyssApplicationEvent["RETROSPECTIVE_DELETE"] = "retrospective.delete";
59
+ AbyssApplicationEvent["RETROSPECTIVE_SECTION_CREATE"] = "retrospective.section.create";
60
+ AbyssApplicationEvent["RETROSPECTIVE_SECTION_UPDATE"] = "retrospective.section.update";
61
+ AbyssApplicationEvent["RETROSPECTIVE_SECTION_DELETE"] = "retrospective.section.delete";
62
+ AbyssApplicationEvent["RETROSPECTIVE_CARD_CREATE"] = "retrospective.card.create";
63
+ AbyssApplicationEvent["RETROSPECTIVE_CARD_UPDATE"] = "retrospective.card.update";
64
+ AbyssApplicationEvent["RETROSPECTIVE_CARD_DELETE"] = "retrospective.card.delete";
65
+ AbyssApplicationEvent["RETROSPECTIVE_MEMBER_ADD"] = "retrospective.member.add";
66
+ AbyssApplicationEvent["RETROSPECTIVE_MEMBER_UPDATE"] = "retrospective.member.update";
67
+ AbyssApplicationEvent["RETROSPECTIVE_MEMBER_CONNECT"] = "retrospective.member.connect";
68
+ AbyssApplicationEvent["RETROSPECTIVE_MEMBER_DISCONNECT"] = "retrospective.member.disconnect";
47
69
  AbyssApplicationEvent["ABYSS_STORAGE_MINDEE_EXTRACT"] = "abyss-storage.mindee.extract";
48
70
  AbyssApplicationEvent["ABYSS_STORAGE_COLLECTION_FREEPIK_FETCH"] = "abyss-storage.collection.freepik.fetch";
49
71
  AbyssApplicationEvent["ABYSS_STORAGE_COLLECTION_FREEPIK_GET_DOWNLOAD_URL"] = "abyss-storage.collection.freepik.get-download-url";
@@ -38,5 +38,6 @@ export declare enum Code {
38
38
  unableToDeleteSpotlightProjectExist = "unable_to_delete_spotlight_project_exist",
39
39
  unableToDeleteFormExist = "unable_to_delete_form_exist",
40
40
  boardCardDocumentLimitReached = "board_card_document_limit_reached",
41
- boardCardMoveInvalidDestination = "board_card_move_invalid_destination"
41
+ boardCardMoveInvalidDestination = "board_card_move_invalid_destination",
42
+ retrospectiveCannotBeModifiedWhenCompleted = "retrospective_cannot_be_modified_when_completed"
42
43
  }
@@ -44,4 +44,5 @@ 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["retrospectiveCannotBeModifiedWhenCompleted"] = "retrospective_cannot_be_modified_when_completed";
47
48
  })(Code || (exports.Code = Code = {}));
@@ -7,3 +7,4 @@ export type BaseEntity<T> = Omit<T, 'createdAt' | 'deletedAt' | 'updatedAt'>;
7
7
  export type WithRequired<T, K extends keyof T> = T & {
8
8
  [P in K]-?: T[P];
9
9
  };
10
+ export * from './draw.type';
@@ -19,3 +19,4 @@ __exportStar(require("./enum"), exports);
19
19
  __exportStar(require("./session"), exports);
20
20
  __exportStar(require("./utils"), exports);
21
21
  __exportStar(require("./models"), exports);
22
+ __exportStar(require("./draw.type"), exports);
@@ -31,6 +31,13 @@ export * from './requests/board-label.request';
31
31
  export * from './requests/board-card-comment.request';
32
32
  export * from './requests/board-card-checklist.request';
33
33
  export * from './requests/board-card-document.request';
34
+ export * from './requests/draw.request';
35
+ export * from './requests/draw.public.request';
36
+ export * from './requests/retrospective-card.request';
37
+ export * from './requests/retrospective-member.request';
38
+ export * from './requests/retrospective-section.request';
39
+ export * from './requests/retrospective.request';
40
+ export * from './requests/retrospective.public.request';
34
41
  export * from './responses/auth.response';
35
42
  export * from './responses/user.response';
36
43
  export * from './responses/user.admin.response';
@@ -62,3 +69,10 @@ export * from './responses/board-label.response';
62
69
  export * from './responses/board-card-comment.response';
63
70
  export * from './responses/board-card-checklist.response';
64
71
  export * from './responses/board-card-document.response';
72
+ export * from './responses/draw.response';
73
+ export * from './responses/draw.public.response';
74
+ export * from './responses/retrospective-card.response';
75
+ export * from './responses/retrospective-member.response';
76
+ export * from './responses/retrospective-section.response';
77
+ export * from './responses/retrospective.response';
78
+ export * from './responses/retrospective.public.response';
@@ -47,6 +47,13 @@ __exportStar(require("./requests/board-label.request"), exports);
47
47
  __exportStar(require("./requests/board-card-comment.request"), exports);
48
48
  __exportStar(require("./requests/board-card-checklist.request"), exports);
49
49
  __exportStar(require("./requests/board-card-document.request"), exports);
50
+ __exportStar(require("./requests/draw.request"), exports);
51
+ __exportStar(require("./requests/draw.public.request"), exports);
52
+ __exportStar(require("./requests/retrospective-card.request"), exports);
53
+ __exportStar(require("./requests/retrospective-member.request"), exports);
54
+ __exportStar(require("./requests/retrospective-section.request"), exports);
55
+ __exportStar(require("./requests/retrospective.request"), exports);
56
+ __exportStar(require("./requests/retrospective.public.request"), exports);
50
57
  __exportStar(require("./responses/auth.response"), exports);
51
58
  __exportStar(require("./responses/user.response"), exports);
52
59
  __exportStar(require("./responses/user.admin.response"), exports);
@@ -78,3 +85,10 @@ __exportStar(require("./responses/board-label.response"), exports);
78
85
  __exportStar(require("./responses/board-card-comment.response"), exports);
79
86
  __exportStar(require("./responses/board-card-checklist.response"), exports);
80
87
  __exportStar(require("./responses/board-card-document.response"), exports);
88
+ __exportStar(require("./responses/draw.response"), exports);
89
+ __exportStar(require("./responses/draw.public.response"), exports);
90
+ __exportStar(require("./responses/retrospective-card.response"), exports);
91
+ __exportStar(require("./responses/retrospective-member.response"), exports);
92
+ __exportStar(require("./responses/retrospective-section.response"), exports);
93
+ __exportStar(require("./responses/retrospective.response"), exports);
94
+ __exportStar(require("./responses/retrospective.public.response"), exports);
@@ -0,0 +1,17 @@
1
+ export type ICreateDrawPublicBody = {
2
+ title: string;
3
+ content: string;
4
+ };
5
+ export type IUpdateDrawPublicParams = {
6
+ publicAccessToken: string;
7
+ };
8
+ export type IUpdateDrawPublicBody = {
9
+ title?: string;
10
+ content?: string;
11
+ };
12
+ export type IGetDrawPublicParams = {
13
+ publicAccessToken: string;
14
+ };
15
+ export type IDeleteDrawPublicParams = {
16
+ publicAccessToken: string;
17
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ import { QueryPaginate } from '../type-message/base-paginate';
2
+ export type ICreateForProjectDrawParams = {
3
+ projectId: string;
4
+ };
5
+ export type ICreateDrawBody = {
6
+ title: string;
7
+ content: string;
8
+ };
9
+ export type IUpdateDrawParams = {
10
+ drawId: string;
11
+ };
12
+ export type IUpdateDrawBody = {
13
+ title?: string;
14
+ archived?: boolean;
15
+ content?: string;
16
+ enablePublicReadAccess?: boolean;
17
+ enablePublicWriteAccess?: boolean;
18
+ };
19
+ export type IGetDrawParams = {
20
+ drawId: string;
21
+ };
22
+ export type IDeleteDrawParams = {
23
+ drawId: string;
24
+ };
25
+ export type IPaginateDrawQuery = {
26
+ title?: string;
27
+ archived?: boolean;
28
+ } & QueryPaginate;
29
+ export type IPaginateProjectDrawParams = {
30
+ projectId: string;
31
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ export interface IGetRetrospectiveCardParams {
2
+ retrospectiveId: string;
3
+ retrospectiveCardId: string;
4
+ }
5
+ export interface IPaginateRetrospectiveCardParams {
6
+ retrospectiveId: string;
7
+ }
8
+ export interface IPaginateRetrospectiveCardQuery {
9
+ page?: number;
10
+ limit?: number;
11
+ }
12
+ export type ICreateRetrospectiveCardParams = {
13
+ retrospectiveId: string;
14
+ };
15
+ export interface ICreateRetrospectiveCardBody {
16
+ content: string;
17
+ positionX: number;
18
+ positionY: number;
19
+ }
20
+ export interface IUpdateRetrospectiveCardParams {
21
+ retrospectiveId: string;
22
+ retrospectiveCardId: string;
23
+ }
24
+ export interface IUpdateRetrospectiveCardBody {
25
+ content?: string;
26
+ positionX?: number;
27
+ positionY?: number;
28
+ }
29
+ export interface IDeleteRetrospectiveCardParams {
30
+ retrospectiveId: string;
31
+ retrospectiveCardId: string;
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export interface IGetRetrospectiveMemberParams {
2
+ retrospectiveId: string;
3
+ retrospectiveMemberId: string;
4
+ }
5
+ export interface IListRetrospectiveMemberParams {
6
+ retrospectiveId: string;
7
+ }
8
+ export type IJoinRetrospectiveMemberParams = {
9
+ retrospectiveId: string;
10
+ };
11
+ export type IUpdateRetrospectiveMemberParams = {
12
+ retrospectiveId: string;
13
+ };
14
+ export interface IUpdateRetrospectiveMemberBody {
15
+ alias?: string;
16
+ unmasked?: boolean;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ export interface IGetRetrospectiveSectionParams {
2
+ retrospectiveId: string;
3
+ retrospectiveSectionId: string;
4
+ }
5
+ export interface IPaginateRetrospectiveSectionParams {
6
+ retrospectiveId: string;
7
+ }
8
+ export interface IPaginateRetrospectiveSectionQuery {
9
+ page?: number;
10
+ limit?: number;
11
+ }
12
+ export interface ICreateRetrospectiveSectionParams {
13
+ retrospectiveId: string;
14
+ }
15
+ export interface ICreateRetrospectiveSectionBody {
16
+ title: string;
17
+ description: string;
18
+ color: string;
19
+ positionX: number;
20
+ positionY: number;
21
+ }
22
+ export interface IUpdateRetrospectiveSectionParams {
23
+ retrospectiveId: string;
24
+ retrospectiveSectionId: string;
25
+ }
26
+ export interface IUpdateRetrospectiveSectionBody {
27
+ title?: string;
28
+ description?: string;
29
+ color?: string;
30
+ positionX?: number;
31
+ positionY?: number;
32
+ }
33
+ export interface IDeleteRetrospectiveSectionParams {
34
+ retrospectiveId: string;
35
+ retrospectiveSectionId: string;
36
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,71 @@
1
+ export interface IGetRetrospectivePublicParams {
2
+ accessToken: string;
3
+ }
4
+ export interface IUpdateRetrospectivePublicParams {
5
+ accessToken: string;
6
+ }
7
+ export interface IUpdateRetrospectivePublicBody {
8
+ title?: string;
9
+ description?: string;
10
+ startDate?: Date | null;
11
+ endDate?: Date | null;
12
+ }
13
+ export type ISSERetrospectivePublicParams = {
14
+ accessToken: string;
15
+ };
16
+ export interface ICreateSectionRetrospectivePublicParams {
17
+ accessToken: string;
18
+ }
19
+ export interface ICreateSectionRetrospectivePublicBody {
20
+ title: string;
21
+ description: string;
22
+ color: string;
23
+ positionX: number;
24
+ positionY: number;
25
+ }
26
+ export interface IUpdateSectionRetrospectivePublicParams {
27
+ accessToken: string;
28
+ retrospectiveSectionId: string;
29
+ }
30
+ export interface IUpdateSectionRetrospectivePublicBody {
31
+ title?: string;
32
+ description?: string;
33
+ color?: string;
34
+ positionX?: number;
35
+ positionY?: number;
36
+ }
37
+ export interface IDeleteSectionRetrospectivePublicParams {
38
+ accessToken: string;
39
+ retrospectiveSectionId: string;
40
+ }
41
+ export type IJoinMemberRetrospectivePublicParams = {
42
+ accessToken: string;
43
+ };
44
+ export type IUpdateMemberRetrospectivePublicParams = {
45
+ accessToken: string;
46
+ };
47
+ export interface IUpdateMemberRetrospectivePublicBody {
48
+ alias?: string;
49
+ unmasked?: boolean;
50
+ }
51
+ export interface ICreateCardRetrospectivePublicParams {
52
+ accessToken: string;
53
+ }
54
+ export interface ICreateCardRetrospectivePublicBody {
55
+ content: string;
56
+ positionX: number;
57
+ positionY: number;
58
+ }
59
+ export interface IUpdateCardRetrospectivePublicParams {
60
+ accessToken: string;
61
+ retrospectiveCardId: string;
62
+ }
63
+ export interface IUpdateCardRetrospectivePublicBody {
64
+ content?: string;
65
+ positionX?: number;
66
+ positionY?: number;
67
+ }
68
+ export interface IDeleteCardRetrospectivePublicParams {
69
+ accessToken: string;
70
+ retrospectiveCardId: string;
71
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ export interface IGetRetrospectiveParams {
2
+ retrospectiveId: string;
3
+ }
4
+ export interface IPaginateProjectRetrospectiveParams {
5
+ projectId: string;
6
+ }
7
+ export interface IPaginateRetrospectiveQuery {
8
+ title?: string;
9
+ archived?: boolean;
10
+ page?: number;
11
+ limit?: number;
12
+ }
13
+ export interface ICreateForProjectRetrospectiveParams {
14
+ projectId: string;
15
+ }
16
+ export interface ICreateRetrospectiveBody {
17
+ title: string;
18
+ description: string;
19
+ startDate: Date | null;
20
+ endDate: Date | null;
21
+ }
22
+ export interface IUpdateRetrospectiveParams {
23
+ retrospectiveId: string;
24
+ }
25
+ export interface IUpdateRetrospectiveBody {
26
+ title?: string;
27
+ description?: string;
28
+ startDate?: Date | null;
29
+ endDate?: Date | null;
30
+ archived?: boolean;
31
+ completed?: boolean;
32
+ enablePublicAccess?: boolean;
33
+ }
34
+ export interface IDeleteRetrospectiveParams {
35
+ retrospectiveId: string;
36
+ }
37
+ export type ISSERetrospectiveParams = {
38
+ retrospectiveId: string;
39
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { IResponse } from '..';
2
+ import { IDraw } from '../../models/draw.model';
3
+ export interface IGetDrawPublicData {
4
+ draw: IDraw;
5
+ }
6
+ export type IGetDrawPublicResponse = IResponse<IGetDrawPublicData>;
7
+ export interface IUpdateDrawPublicData {
8
+ draw: IDraw;
9
+ }
10
+ export type IUpdateDrawPublicResponse = IResponse<IUpdateDrawPublicData>;
11
+ export interface ICreateDrawPublicData {
12
+ draw: IDraw;
13
+ }
14
+ export type ICreateDrawPublicResponse = IResponse<ICreateDrawPublicData>;
15
+ export interface IDeleteDrawPublicData {
16
+ }
17
+ export type IDeleteDrawPublicResponse = IResponse<IDeleteDrawPublicData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { BasePaginate, IResponse } from '..';
2
+ import { IDraw } from '../../models/draw.model';
3
+ export interface IGetDrawData {
4
+ draw: IDraw;
5
+ }
6
+ export type IGetDrawResponse = IResponse<IGetDrawData>;
7
+ export interface IUpdateDrawData {
8
+ draw: IDraw;
9
+ }
10
+ export type IUpdateDrawResponse = IResponse<IUpdateDrawData>;
11
+ export interface ICreateDrawData {
12
+ draw: IDraw;
13
+ }
14
+ export type ICreateDrawResponse = IResponse<ICreateDrawData>;
15
+ export interface IDeleteDrawData {
16
+ }
17
+ export type IDeleteDrawResponse = IResponse<IDeleteDrawData>;
18
+ export type IPaginateDrawResponse = IResponse<BasePaginate<IDraw>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,6 +14,13 @@ export type ProjectWithoutApplication = Overwrite<IProject & IListBoardUserData,
14
14
  createdAt: Date;
15
15
  updatedAt: Date;
16
16
  }[];
17
+ metrics: {
18
+ totalBoards: number;
19
+ totalDraws: number;
20
+ totalRetrospectives: number;
21
+ totalMember: number;
22
+ totalApiKeys: number;
23
+ };
17
24
  }>;
18
25
  export interface IGetProjectData {
19
26
  project: IProject;
@@ -0,0 +1,18 @@
1
+ import { IResponse } from '..';
2
+ import { IRetrospectiveCard, BasePaginate } from '../..';
3
+ export interface IGetRetrospectiveCardData {
4
+ retrospectiveCard: IRetrospectiveCard;
5
+ }
6
+ export type IGetRetrospectiveCardResponse = IResponse<IGetRetrospectiveCardData>;
7
+ export type IPaginateRetrospectiveCardResponse = IResponse<BasePaginate<IRetrospectiveCard>>;
8
+ export interface ICreateRetrospectiveCardData {
9
+ retrospectiveCard: IRetrospectiveCard;
10
+ }
11
+ export type ICreateRetrospectiveCardResponse = IResponse<ICreateRetrospectiveCardData>;
12
+ export interface IUpdateRetrospectiveCardData {
13
+ retrospectiveCard: IRetrospectiveCard;
14
+ }
15
+ export type IUpdateRetrospectiveCardResponse = IResponse<IUpdateRetrospectiveCardData>;
16
+ export interface IDeleteRetrospectiveCardData {
17
+ }
18
+ export type IDeleteRetrospectiveCardResponse = IResponse<IDeleteRetrospectiveCardData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });