@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,18 @@
1
+ import { IResponse } from '..';
2
+ import { IRetrospectiveMember } from '../..';
3
+ export interface IGetRetrospectiveMemberData {
4
+ retrospectiveMember: IRetrospectiveMember;
5
+ }
6
+ export type IGetRetrospectiveMemberResponse = IResponse<IGetRetrospectiveMemberData>;
7
+ export interface IListRetrospectiveMemberData {
8
+ retrospectiveMember: IRetrospectiveMember[];
9
+ }
10
+ export type IListRetrospectiveMemberResponse = IResponse<IListRetrospectiveMemberData>;
11
+ export interface IJoinRetrospectiveMemberData {
12
+ retrospectiveMember: IRetrospectiveMember;
13
+ }
14
+ export type IJoinRetrospectiveMemberResponse = IResponse<IJoinRetrospectiveMemberData>;
15
+ export interface IUpdateRetrospectiveMemberData {
16
+ retrospectiveMember: IRetrospectiveMember;
17
+ }
18
+ export type IUpdateRetrospectiveMemberResponse = IResponse<IUpdateRetrospectiveMemberData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { IResponse } from '..';
2
+ import { IRetrospectiveSection, BasePaginate } from '../..';
3
+ export interface IGetRetrospectiveSectionData {
4
+ retrospectiveSection: IRetrospectiveSection;
5
+ }
6
+ export type IGetRetrospectiveSectionResponse = IResponse<IGetRetrospectiveSectionData>;
7
+ export type IPaginateRetrospectiveSectionResponse = IResponse<BasePaginate<IRetrospectiveSection>>;
8
+ export interface ICreateRetrospectiveSectionData {
9
+ retrospectiveSection: IRetrospectiveSection;
10
+ }
11
+ export type ICreateRetrospectiveSectionResponse = IResponse<ICreateRetrospectiveSectionData>;
12
+ export interface IUpdateRetrospectiveSectionData {
13
+ retrospectiveSection: IRetrospectiveSection;
14
+ }
15
+ export type IUpdateRetrospectiveSectionResponse = IResponse<IUpdateRetrospectiveSectionData>;
16
+ export interface IDeleteRetrospectiveSectionData {
17
+ }
18
+ export type IDeleteRetrospectiveSectionResponse = IResponse<IDeleteRetrospectiveSectionData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ import { IResponse } from '..';
2
+ import { IRetrospective, IRetrospectiveSection, IRetrospectiveMember, IRetrospectiveCard } from '../..';
3
+ export interface IGetRetrospectivePublicData {
4
+ retrospective: IRetrospective;
5
+ }
6
+ export type IGetRetrospectivePublicResponse = IResponse<IGetRetrospectivePublicData>;
7
+ export interface IUpdateRetrospectivePublicData {
8
+ retrospective: IRetrospective;
9
+ }
10
+ export type IUpdateRetrospectivePublicResponse = IResponse<IUpdateRetrospectivePublicData>;
11
+ export interface ICreateSectionRetrospectivePublicData {
12
+ retrospectiveSection: IRetrospectiveSection;
13
+ }
14
+ export type ICreateSectionRetrospectivePublicResponse = IResponse<ICreateSectionRetrospectivePublicData>;
15
+ export interface IUpdateSectionRetrospectivePublicData {
16
+ retrospectiveSection: IRetrospectiveSection;
17
+ }
18
+ export type IUpdateSectionRetrospectivePublicResponse = IResponse<IUpdateSectionRetrospectivePublicData>;
19
+ export type IDeleteSectionRetrospectivePublicResponse = IResponse<Record<string, never>>;
20
+ export interface IJoinMemberRetrospectivePublicData {
21
+ retrospectiveMember: IRetrospectiveMember;
22
+ }
23
+ export type IJoinMemberRetrospectivePublicResponse = IResponse<IJoinMemberRetrospectivePublicData>;
24
+ export interface IUpdateMemberRetrospectivePublicData {
25
+ retrospectiveMember: IRetrospectiveMember;
26
+ }
27
+ export type IUpdateMemberRetrospectivePublicResponse = IResponse<IUpdateMemberRetrospectivePublicData>;
28
+ export interface ICreateCardRetrospectivePublicData {
29
+ retrospectiveCard: IRetrospectiveCard;
30
+ }
31
+ export type ICreateCardRetrospectivePublicResponse = IResponse<ICreateCardRetrospectivePublicData>;
32
+ export interface IUpdateCardRetrospectivePublicData {
33
+ retrospectiveCard: IRetrospectiveCard;
34
+ }
35
+ export type IUpdateCardRetrospectivePublicResponse = IResponse<IUpdateCardRetrospectivePublicData>;
36
+ export type IDeleteCardRetrospectivePublicResponse = IResponse<Record<string, never>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { IResponse } from '..';
2
+ import { IRetrospective, BasePaginate } from '../..';
3
+ export interface IGetRetrospectiveData {
4
+ retrospective: IRetrospective;
5
+ }
6
+ export type IGetRetrospectiveResponse = IResponse<IGetRetrospectiveData>;
7
+ export type IPaginateRetrospectiveResponse = IResponse<BasePaginate<IRetrospective>>;
8
+ export interface ICreateRetrospectiveData {
9
+ retrospective: IRetrospective;
10
+ }
11
+ export type ICreateRetrospectiveResponse = IResponse<ICreateRetrospectiveData>;
12
+ export interface IUpdateRetrospectiveData {
13
+ retrospective: IRetrospective;
14
+ }
15
+ export type IUpdateRetrospectiveResponse = IResponse<IUpdateRetrospectiveData>;
16
+ export interface IDeleteRetrospectiveData {
17
+ }
18
+ export type IDeleteRetrospectiveResponse = IResponse<IDeleteRetrospectiveData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -30,3 +30,8 @@ export * from './models/board-card-checklist-row.model';
30
30
  export * from './models/board-card-comment.model';
31
31
  export * from './models/board-label.model';
32
32
  export * from './models/board-card-label.model';
33
+ export * from './models/draw.model';
34
+ export * from './models//retrospective.model';
35
+ export * from './models//retrospective-section.model';
36
+ export * from './models//retrospective-member.model';
37
+ export * from './models//retrospective-card.model';
@@ -46,3 +46,8 @@ __exportStar(require("./models/board-card-checklist-row.model"), exports);
46
46
  __exportStar(require("./models/board-card-comment.model"), exports);
47
47
  __exportStar(require("./models/board-label.model"), exports);
48
48
  __exportStar(require("./models/board-card-label.model"), exports);
49
+ __exportStar(require("./models/draw.model"), exports);
50
+ __exportStar(require("./models//retrospective.model"), exports);
51
+ __exportStar(require("./models//retrospective-section.model"), exports);
52
+ __exportStar(require("./models//retrospective-member.model"), exports);
53
+ __exportStar(require("./models//retrospective-card.model"), exports);
@@ -0,0 +1,20 @@
1
+ import { IProject } from './project.model';
2
+ import { IUser } from './user.model';
3
+ export interface IDraw {
4
+ id: string;
5
+ title: string;
6
+ content: string;
7
+ userId: string | null;
8
+ projectId: string | null;
9
+ publicReadAccess: string | null;
10
+ publicWriteAccess: string | null;
11
+ fileId: string | null;
12
+ filePublicAccessId: string | null;
13
+ thumbnailId: string | null;
14
+ thumbnailPublicAccessId: string | null;
15
+ archivedAt?: Date | null;
16
+ updatedAt?: Date;
17
+ createdAt?: Date;
18
+ user?: IUser | null;
19
+ project?: IProject | null;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,7 @@ import { IApplication } from './application.model';
5
5
  import { ISubscription } from './subscription.model';
6
6
  import { IUserTransaction } from './user-transaction.model';
7
7
  import { ProjectStatus } from '../../enum';
8
+ import { IDraw } from './draw.model';
8
9
  export interface IProject {
9
10
  id?: string;
10
11
  name: string;
@@ -21,4 +22,5 @@ export interface IProject {
21
22
  application?: IApplication[];
22
23
  subscription?: ISubscription | null;
23
24
  userTransaction?: IUserTransaction[];
25
+ draw?: IDraw[];
24
26
  }
@@ -0,0 +1,14 @@
1
+ import { IRetrospectiveMember } from './retrospective-member.model';
2
+ import { IRetrospective } from './retrospective.model';
3
+ export interface IRetrospectiveCard {
4
+ id: string;
5
+ content: string;
6
+ positionX: number;
7
+ positionY: number;
8
+ retrospectiveId: string;
9
+ retrospectiveMemberId?: string;
10
+ updatedAt?: Date;
11
+ createdAt?: Date;
12
+ retrospective?: IRetrospective;
13
+ retrospectiveMember?: IRetrospectiveMember;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { IRetrospective } from './retrospective.model';
2
+ export interface IRetrospectiveMember {
3
+ id: string;
4
+ alias: string | null;
5
+ userId: string | null;
6
+ externalUserId: string | null;
7
+ unmaskedAt: Date | null;
8
+ retrospectiveId: string;
9
+ updatedAt?: Date;
10
+ createdAt?: Date;
11
+ retrospective?: IRetrospective;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { IRetrospective } from './retrospective.model';
2
+ export interface IRetrospectiveSection {
3
+ id: string;
4
+ title: string;
5
+ description: string;
6
+ color: string;
7
+ positionX: number;
8
+ positionY: number;
9
+ retrospectiveId: string;
10
+ updatedAt?: Date;
11
+ createdAt?: Date;
12
+ retrospective?: IRetrospective;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import { IProject } from './project.model';
2
+ import { IRetrospectiveCard } from './retrospective-card.model';
3
+ import { IRetrospectiveMember } from './retrospective-member.model';
4
+ import { IRetrospectiveSection } from './retrospective-section.model';
5
+ import { IUser } from './user.model';
6
+ export interface IRetrospective {
7
+ id: string;
8
+ title: string;
9
+ description: string;
10
+ startDate: Date | null;
11
+ endDate: Date | null;
12
+ completedAt: Date | null;
13
+ userId: string | null;
14
+ projectId: string | null;
15
+ archivedAt: Date | null;
16
+ publicAccessToken: string | null;
17
+ updatedAt?: Date;
18
+ createdAt?: Date;
19
+ user?: IUser | null;
20
+ project?: IProject | null;
21
+ retrospectiveSection?: IRetrospectiveSection[];
22
+ retrospectiveCard?: IRetrospectiveCard[];
23
+ retrospectiveMember?: IRetrospectiveMember[];
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,7 @@ import { IBoard, IGiftCodeActivation, IOAuthAccount, IProject, IUserTransaction
2
2
  import { AbyssService, OnboardingSteps, UserCreditPurchaseCurrency, UserLanguage, UserType } from '../../enum';
3
3
  import { OnboardingData } from '../../utils';
4
4
  import { IBoardCardComment } from './board-card-comment.model';
5
+ import { IDraw } from './draw.model';
5
6
  import { ISubscription } from './subscription.model';
6
7
  import { IUserNotification } from './user-notification.model';
7
8
  export interface IUserSetting {
@@ -41,6 +42,7 @@ export interface IUser {
41
42
  project?: IProject[];
42
43
  boardCardComment?: IBoardCardComment[];
43
44
  board?: IBoard[];
45
+ draw?: IDraw[];
44
46
  }
45
47
  export type UserOnboardingStatus = {
46
48
  completedAt?: Date | null;
@@ -0,0 +1,2 @@
1
+ export declare const compress: (input: string) => string;
2
+ export declare const decompress: (input: string) => string;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.decompress = exports.compress = void 0;
4
+ const lz_string_1 = require("lz-string");
5
+ const compress = (input) => {
6
+ return (0, lz_string_1.compressToBase64)(input);
7
+ };
8
+ exports.compress = compress;
9
+ const decompress = (input) => {
10
+ return (0, lz_string_1.decompressFromBase64)(input);
11
+ };
12
+ exports.decompress = decompress;
@@ -0,0 +1 @@
1
+ export declare const srcToBase64: (src: string) => Promise<string>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.srcToBase64 = void 0;
4
+ const srcToBase64 = (src) => {
5
+ return new Promise((resolve, reject) => {
6
+ const img = new Image();
7
+ img.src = src;
8
+ img.onload = () => {
9
+ const canvas = document.createElement('canvas');
10
+ canvas.width = img.width;
11
+ canvas.height = img.height;
12
+ const ctx = canvas.getContext('2d');
13
+ ctx === null || ctx === void 0 ? void 0 : ctx.drawImage(img, 0, 0);
14
+ const dataURL = canvas.toDataURL('image/png');
15
+ resolve(dataURL);
16
+ };
17
+ img.onerror = (error) => {
18
+ reject(error);
19
+ };
20
+ });
21
+ };
22
+ exports.srcToBase64 = srcToBase64;
@@ -0,0 +1,75 @@
1
+ export declare const ICON_LIBRARY: {
2
+ database: string;
3
+ server: string;
4
+ cloud: string;
5
+ network: string;
6
+ router: string;
7
+ security: string;
8
+ warning: string;
9
+ error: string;
10
+ success: string;
11
+ info: string;
12
+ diamond: string;
13
+ gear: string;
14
+ tool: string;
15
+ wrench: string;
16
+ arrowUp: string;
17
+ arrowDown: string;
18
+ arrowLeft: string;
19
+ arrowRight: string;
20
+ arrowUpRight: string;
21
+ arrowDownRight: string;
22
+ arrowDownLeft: string;
23
+ arrowUpLeft: string;
24
+ start: string;
25
+ stop: string;
26
+ pause: string;
27
+ play: string;
28
+ process: string;
29
+ email: string;
30
+ phone: string;
31
+ message: string;
32
+ notification: string;
33
+ document: string;
34
+ folder: string;
35
+ file: string;
36
+ pdf: string;
37
+ image: string;
38
+ user: string;
39
+ users: string;
40
+ team: string;
41
+ admin: string;
42
+ add: string;
43
+ remove: string;
44
+ edit: string;
45
+ search: string;
46
+ filter: string;
47
+ sort: string;
48
+ online: string;
49
+ offline: string;
50
+ pending: string;
51
+ unknown: string;
52
+ circle: string;
53
+ square: string;
54
+ triangle: string;
55
+ star: string;
56
+ heart: string;
57
+ settings: string;
58
+ power: string;
59
+ battery: string;
60
+ wifi: string;
61
+ bluetooth: string;
62
+ };
63
+ export declare const ICON_CATEGORIES: {
64
+ technical: string[];
65
+ status: string[];
66
+ arrows: string[];
67
+ process: string[];
68
+ communication: string[];
69
+ files: string[];
70
+ users: string[];
71
+ actions: string[];
72
+ shapes: string[];
73
+ system: string[];
74
+ };
75
+ export type IconType = keyof typeof ICON_LIBRARY;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ICON_CATEGORIES = exports.ICON_LIBRARY = void 0;
4
+ exports.ICON_LIBRARY = {
5
+ database: 'πŸ—„οΈ',
6
+ server: 'πŸ–₯️',
7
+ cloud: '☁️',
8
+ network: '🌐',
9
+ router: 'πŸ“‘',
10
+ security: 'πŸ”’',
11
+ warning: '⚠️',
12
+ error: '❌',
13
+ success: 'βœ…',
14
+ info: 'ℹ️',
15
+ diamond: 'πŸ’Ž',
16
+ gear: 'βš™οΈ',
17
+ tool: 'πŸ”§',
18
+ wrench: 'πŸ”¨',
19
+ arrowUp: '⬆️',
20
+ arrowDown: '⬇️',
21
+ arrowLeft: '⬅️',
22
+ arrowRight: '➑️',
23
+ arrowUpRight: '↗️',
24
+ arrowDownRight: 'β†˜οΈ',
25
+ arrowDownLeft: '↙️',
26
+ arrowUpLeft: '↖️',
27
+ start: 'πŸš€',
28
+ stop: 'πŸ›‘',
29
+ pause: '⏸️',
30
+ play: '▢️',
31
+ process: '⚑',
32
+ email: 'πŸ“§',
33
+ phone: 'πŸ“ž',
34
+ message: 'πŸ’¬',
35
+ notification: 'πŸ””',
36
+ document: 'πŸ“„',
37
+ folder: 'πŸ“',
38
+ file: 'πŸ“‹',
39
+ pdf: 'πŸ“•',
40
+ image: 'πŸ–ΌοΈ',
41
+ user: 'πŸ‘€',
42
+ users: 'πŸ‘₯',
43
+ team: 'πŸ‘ͺ',
44
+ admin: 'πŸ‘¨β€πŸ’Ό',
45
+ add: 'βž•',
46
+ remove: 'βž–',
47
+ edit: '✏️',
48
+ search: 'πŸ”',
49
+ filter: 'πŸ”½',
50
+ sort: 'πŸ“Š',
51
+ online: '🟒',
52
+ offline: 'πŸ”΄',
53
+ pending: '🟑',
54
+ unknown: 'βšͺ',
55
+ circle: 'β­•',
56
+ square: '⬜',
57
+ triangle: 'πŸ”Ί',
58
+ star: '⭐',
59
+ heart: '❀️',
60
+ settings: 'βš™οΈ',
61
+ power: 'πŸ”Œ',
62
+ battery: 'πŸ”‹',
63
+ wifi: 'πŸ“Ά',
64
+ bluetooth: 'πŸ“²',
65
+ };
66
+ exports.ICON_CATEGORIES = {
67
+ technical: ['database', 'server', 'cloud', 'network', 'router', 'security'],
68
+ status: ['warning', 'error', 'success', 'info', 'online', 'offline', 'pending', 'unknown'],
69
+ arrows: [
70
+ 'arrowUp',
71
+ 'arrowDown',
72
+ 'arrowLeft',
73
+ 'arrowRight',
74
+ 'arrowUpRight',
75
+ 'arrowDownRight',
76
+ 'arrowDownLeft',
77
+ 'arrowUpLeft',
78
+ ],
79
+ process: ['start', 'stop', 'pause', 'play', 'process', 'gear', 'tool', 'wrench'],
80
+ communication: ['email', 'phone', 'message', 'notification'],
81
+ files: ['document', 'folder', 'file', 'pdf', 'image'],
82
+ users: ['user', 'users', 'team', 'admin'],
83
+ actions: ['add', 'remove', 'edit', 'search', 'filter', 'sort'],
84
+ shapes: ['circle', 'square', 'triangle', 'star', 'heart', 'diamond'],
85
+ system: ['settings', 'power', 'battery', 'wifi', 'bluetooth'],
86
+ };
@@ -10,3 +10,7 @@ export * from './array.utils';
10
10
  export * from './abyss.utils';
11
11
  export * from './color.utils';
12
12
  export * from './board.utils';
13
+ export * from './file.utils';
14
+ export * from './compression.utils';
15
+ export * from './shape.utils';
16
+ export * from './icons.utils';
@@ -26,3 +26,7 @@ __exportStar(require("./array.utils"), exports);
26
26
  __exportStar(require("./abyss.utils"), exports);
27
27
  __exportStar(require("./color.utils"), exports);
28
28
  __exportStar(require("./board.utils"), exports);
29
+ __exportStar(require("./file.utils"), exports);
30
+ __exportStar(require("./compression.utils"), exports);
31
+ __exportStar(require("./shape.utils"), exports);
32
+ __exportStar(require("./icons.utils"), exports);
@@ -0,0 +1,22 @@
1
+ import { Id, PortId, Point, DrawSize, DrawStyle, DrawShapeToJsonResult } from '../types/draw.type';
2
+ export type Endpoint = {
3
+ style: DrawArrowEndpointStyle;
4
+ } & ({
5
+ kind: 'free';
6
+ x: number;
7
+ y: number;
8
+ } | {
9
+ kind: 'port';
10
+ shapeId: Id;
11
+ portId: PortId;
12
+ });
13
+ export type DrawArrowEndpointStyle = 'arrow' | 'circle' | 'square' | 'diamond' | 'none';
14
+ export declare const rectangleToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
15
+ export declare const diamondToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
16
+ export declare const ellipseToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
17
+ export declare const textToSvg: (position: Point, style: DrawStyle, text: string) => string;
18
+ export declare const iconToSvg: (position: Point, size: DrawSize, style: DrawStyle, iconSymbol: string) => string;
19
+ export declare const imageToSvg: (position: Point, size: DrawSize, style: DrawStyle, src: string) => string;
20
+ export declare const commentToSvg: (position: Point, size: DrawSize, style: DrawStyle, id: string) => string;
21
+ export declare const arrowToSvg: (style: DrawStyle, startEndpoint: Endpoint, endEndpoint: Endpoint, fromPos: Point, toPos: Point) => string;
22
+ export declare const sceneToSVG: (shapes: DrawShapeToJsonResult[], width: number, height: number) => string;