@abyss-project/main 1.0.65 → 1.0.67

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 (86) hide show
  1. package/dist/api/atlas-group.api.d.ts +6 -0
  2. package/dist/api/atlas-group.api.js +24 -0
  3. package/dist/api/atlas-page-content.api.d.ts +0 -0
  4. package/dist/api/atlas-page-content.api.js +1 -0
  5. package/dist/api/atlas-page.api.d.ts +10 -0
  6. package/dist/api/atlas-page.api.js +46 -0
  7. package/dist/api/atlas.api.d.ts +8 -0
  8. package/dist/api/atlas.api.js +35 -0
  9. package/dist/api/atlas.public.api.d.ts +4 -0
  10. package/dist/api/atlas.public.api.js +18 -0
  11. package/dist/api/board-card.api.d.ts +2 -1
  12. package/dist/api/board-card.api.js +7 -1
  13. package/dist/api/index.d.ts +6 -0
  14. package/dist/api/index.js +6 -0
  15. package/dist/api/memo.api.d.ts +8 -0
  16. package/dist/api/memo.api.js +36 -0
  17. package/dist/api/short-link.api.d.ts +15 -0
  18. package/dist/api/short-link.api.js +58 -0
  19. package/dist/constants/index.d.ts +1 -0
  20. package/dist/constants/index.js +1 -0
  21. package/dist/constants/memo.constants.d.ts +3 -0
  22. package/dist/constants/memo.constants.js +6 -0
  23. package/dist/server-sent-events/index.d.ts +2 -1
  24. package/dist/server-sent-events/index.js +1 -0
  25. package/dist/server-sent-events/protocols/atlas/atlas.sse-protocol.d.ts +62 -0
  26. package/dist/server-sent-events/protocols/atlas/atlas.sse-protocol.js +19 -0
  27. package/dist/server-sent-events/protocols/atlas/index.d.ts +1 -0
  28. package/dist/server-sent-events/protocols/atlas/index.js +17 -0
  29. package/dist/server-sent-events/protocols/index.d.ts +1 -0
  30. package/dist/server-sent-events/protocols/index.js +1 -0
  31. package/dist/server-sent-events/protocols/retrospective/retrospective.sse-protocol.d.ts +0 -4
  32. package/dist/server-sent-events/protocols/retrospective/retrospective.sse-protocol.js +1 -2
  33. package/dist/types/draw.type.d.ts +9 -0
  34. package/dist/types/enum/abyss-application-event.enum.d.ts +22 -0
  35. package/dist/types/enum/abyss-application-event.enum.js +22 -0
  36. package/dist/types/interface/api/index.d.ts +14 -0
  37. package/dist/types/interface/api/index.js +14 -0
  38. package/dist/types/interface/api/requests/atlas-group.request.d.ts +40 -0
  39. package/dist/types/interface/api/requests/atlas-group.request.js +2 -0
  40. package/dist/types/interface/api/requests/atlas-page.request.d.ts +72 -0
  41. package/dist/types/interface/api/requests/atlas-page.request.js +2 -0
  42. package/dist/types/interface/api/requests/atlas.public.request.d.ts +18 -0
  43. package/dist/types/interface/api/requests/atlas.public.request.js +2 -0
  44. package/dist/types/interface/api/requests/atlas.request.d.ts +33 -0
  45. package/dist/types/interface/api/requests/atlas.request.js +2 -0
  46. package/dist/types/interface/api/requests/board-card.request.d.ts +8 -0
  47. package/dist/types/interface/api/requests/memo.request.d.ts +29 -0
  48. package/dist/types/interface/api/requests/memo.request.js +2 -0
  49. package/dist/types/interface/api/requests/short-link.admin.request.d.ts +26 -0
  50. package/dist/types/interface/api/requests/short-link.admin.request.js +2 -0
  51. package/dist/types/interface/api/requests/short-link.request.d.ts +66 -0
  52. package/dist/types/interface/api/requests/short-link.request.js +2 -0
  53. package/dist/types/interface/api/responses/atlas-group.response.d.ts +18 -0
  54. package/dist/types/interface/api/responses/atlas-group.response.js +2 -0
  55. package/dist/types/interface/api/responses/atlas-page.response.d.ts +43 -0
  56. package/dist/types/interface/api/responses/atlas-page.response.js +2 -0
  57. package/dist/types/interface/api/responses/atlas.public.response.d.ts +17 -0
  58. package/dist/types/interface/api/responses/atlas.public.response.js +2 -0
  59. package/dist/types/interface/api/responses/atlas.response.d.ts +18 -0
  60. package/dist/types/interface/api/responses/atlas.response.js +2 -0
  61. package/dist/types/interface/api/responses/board-card.response.d.ts +12 -0
  62. package/dist/types/interface/api/responses/memo.response.d.ts +18 -0
  63. package/dist/types/interface/api/responses/memo.response.js +2 -0
  64. package/dist/types/interface/api/responses/short-link.admin.response.d.ts +14 -0
  65. package/dist/types/interface/api/responses/short-link.admin.response.js +2 -0
  66. package/dist/types/interface/api/responses/short-link.response.d.ts +35 -0
  67. package/dist/types/interface/api/responses/short-link.response.js +2 -0
  68. package/dist/types/interface/index.d.ts +7 -0
  69. package/dist/types/interface/index.js +7 -0
  70. package/dist/types/interface/models/atlas-group.model.d.ts +18 -0
  71. package/dist/types/interface/models/atlas-group.model.js +2 -0
  72. package/dist/types/interface/models/atlas-page-content.model.d.ts +14 -0
  73. package/dist/types/interface/models/atlas-page-content.model.js +2 -0
  74. package/dist/types/interface/models/atlas-page.model.d.ts +21 -0
  75. package/dist/types/interface/models/atlas-page.model.js +2 -0
  76. package/dist/types/interface/models/atlas.model.d.ts +23 -0
  77. package/dist/types/interface/models/atlas.model.js +2 -0
  78. package/dist/types/interface/models/memo.model.d.ts +14 -0
  79. package/dist/types/interface/models/memo.model.js +2 -0
  80. package/dist/types/interface/models/project.model.d.ts +8 -0
  81. package/dist/types/interface/models/short-link-click.model.d.ts +18 -0
  82. package/dist/types/interface/models/short-link-click.model.js +2 -0
  83. package/dist/types/interface/models/short-link.model.d.ts +50 -0
  84. package/dist/types/interface/models/short-link.model.js +2 -0
  85. package/dist/types/interface/models/user.model.d.ts +5 -1
  86. package/package.json +1 -1
@@ -51,3 +51,10 @@ __exportStar(require("./models//retrospective.model"), exports);
51
51
  __exportStar(require("./models//retrospective-section.model"), exports);
52
52
  __exportStar(require("./models//retrospective-member.model"), exports);
53
53
  __exportStar(require("./models//retrospective-card.model"), exports);
54
+ __exportStar(require("./models/atlas.model"), exports);
55
+ __exportStar(require("./models/atlas-group.model"), exports);
56
+ __exportStar(require("./models/atlas-page.model"), exports);
57
+ __exportStar(require("./models/atlas-page-content.model"), exports);
58
+ __exportStar(require("./models/memo.model"), exports);
59
+ __exportStar(require("./models/short-link.model"), exports);
60
+ __exportStar(require("./models/short-link-click.model"), exports);
@@ -0,0 +1,18 @@
1
+ import { IAtlasPage } from './atlas-page.model';
2
+ import { IAtlas } from './atlas.model';
3
+ export interface IAtlasGroup {
4
+ id: string;
5
+ atlasId: string;
6
+ parentAtlasGroupId: string | null;
7
+ name: string;
8
+ description: string | null;
9
+ color: string | null;
10
+ position: number;
11
+ createdAt?: Date;
12
+ updatedAt?: Date;
13
+ deletedAt?: Date | null;
14
+ atlas?: IAtlas | null;
15
+ parentAtlasGroup?: IAtlasGroup | null;
16
+ atlasGroup?: IAtlasGroup[];
17
+ atlasPage?: IAtlasPage[];
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { IAtlasPage } from './atlas-page.model';
2
+ export interface IAtlasPageContent {
3
+ id: string;
4
+ atlasPageId: string;
5
+ content: string;
6
+ contentHash: string;
7
+ version: number;
8
+ isActive: boolean;
9
+ diff: string | null;
10
+ createdByUserId: string | null;
11
+ createdAt?: Date;
12
+ updatedAt?: Date;
13
+ atlasPage?: IAtlasPage;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { IAtlasGroup } from './atlas-group.model';
2
+ import { IAtlasPageContent } from './atlas-page-content.model';
3
+ import { IAtlas } from './atlas.model';
4
+ export interface IAtlasPage {
5
+ id: string;
6
+ atlasId: string;
7
+ atlasGroupId: string | null;
8
+ title: string;
9
+ slug: string;
10
+ icon: string | null;
11
+ color: string | null;
12
+ position: number;
13
+ lastModifiedAt: Date | null;
14
+ lastModifiedByUserId: string | null;
15
+ createdAt?: Date;
16
+ updatedAt?: Date;
17
+ deletedAt?: Date;
18
+ atlas?: IAtlas;
19
+ atlasGroup?: IAtlasGroup | null;
20
+ atlasPageContent?: IAtlasPageContent[];
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { IAtlasGroup } from './atlas-group.model';
2
+ import { IAtlasPage } from './atlas-page.model';
3
+ import { IProject } from './project.model';
4
+ import { IUser } from './user.model';
5
+ export interface IAtlas {
6
+ id: string;
7
+ title: string;
8
+ description: string | null;
9
+ userId: string | null;
10
+ projectId: string | null;
11
+ publicAccessToken: string | null;
12
+ createdAt?: Date;
13
+ updatedAt?: Date;
14
+ deletedAt?: Date | null;
15
+ user?: IUser | null;
16
+ project?: IProject | null;
17
+ atlasGroup?: IAtlasGroup[];
18
+ atlasPage?: IAtlasPage[];
19
+ }
20
+ export interface IAtlasWithDetails extends IAtlas {
21
+ atlasGroup: IAtlasGroup[];
22
+ atlasPage: IAtlasPage[];
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { IProject } from './project.model';
2
+ import { IUser } from './user.model';
3
+ export interface IMemo {
4
+ id: string;
5
+ title: string;
6
+ content: string;
7
+ userId: string | null;
8
+ projectId: string | null;
9
+ archivedAt?: Date | null;
10
+ updatedAt?: Date;
11
+ createdAt?: Date;
12
+ user?: IUser | null;
13
+ project?: IProject | null;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,10 @@ import { ISubscription } from './subscription.model';
6
6
  import { IUserTransaction } from './user-transaction.model';
7
7
  import { ProjectStatus } from '../../enum';
8
8
  import { IDraw } from './draw.model';
9
+ import { IAtlas } from './atlas.model';
10
+ import { IRetrospective } from './retrospective.model';
11
+ import { IMemo } from './memo.model';
12
+ import { IShortLink } from './short-link.model';
9
13
  export interface IProject {
10
14
  id?: string;
11
15
  name: string;
@@ -23,4 +27,8 @@ export interface IProject {
23
27
  subscription?: ISubscription | null;
24
28
  userTransaction?: IUserTransaction[];
25
29
  draw?: IDraw[];
30
+ retrospective?: IRetrospective[];
31
+ atlas?: IAtlas[];
32
+ memo?: IMemo[];
33
+ shortLink?: IShortLink[];
26
34
  }
@@ -0,0 +1,18 @@
1
+ import { IShortLink } from './short-link.model';
2
+ export interface IShortLinkClick {
3
+ id: string;
4
+ shortLinkId: string;
5
+ ipAddress: string | null;
6
+ ipHash: string;
7
+ userAgent: string | null;
8
+ referer: string | null;
9
+ country: string | null;
10
+ city: string | null;
11
+ device: string | null;
12
+ browser: string | null;
13
+ os: string | null;
14
+ clickedAt: Date;
15
+ createdAt?: Date;
16
+ updatedAt?: Date;
17
+ shortLink?: IShortLink;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,50 @@
1
+ import { IUser } from './user.model';
2
+ import { IProject } from './project.model';
3
+ import { IShortLinkClick } from './short-link-click.model';
4
+ export interface IShortLink {
5
+ id: string;
6
+ slug: string;
7
+ originalUrl: string;
8
+ title: string | null;
9
+ description: string | null;
10
+ userId: string | null;
11
+ projectId: string | null;
12
+ isActive: boolean;
13
+ clickCount: number;
14
+ uniqueClickCount: number;
15
+ lastClickedAt: Date | null;
16
+ expiresAt: Date | null;
17
+ maxClicks: number | null;
18
+ password: string | null;
19
+ createdAt?: Date;
20
+ updatedAt?: Date;
21
+ deletedAt?: Date | null;
22
+ user?: IUser | null;
23
+ project?: IProject | null;
24
+ shortLinkClick?: IShortLinkClick[];
25
+ }
26
+ export interface IShortLinkWithStats extends IShortLink {
27
+ stats?: {
28
+ clicksByDay: {
29
+ date: string;
30
+ clicks: number;
31
+ uniqueClicks: number;
32
+ }[];
33
+ clicksByCountry: {
34
+ country: string;
35
+ clicks: number;
36
+ }[];
37
+ clicksByDevice: {
38
+ device: string;
39
+ clicks: number;
40
+ }[];
41
+ clicksByBrowser: {
42
+ browser: string;
43
+ clicks: number;
44
+ }[];
45
+ clicksByReferer: {
46
+ referer: string;
47
+ clicks: number;
48
+ }[];
49
+ };
50
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { IBoard, IGiftCodeActivation, IOAuthAccount, IProject, IUserTransaction } from '..';
1
+ import { IAtlas, IBoard, IGiftCodeActivation, IMemo, IOAuthAccount, IProject, IRetrospective, IShortLink, IUserTransaction } from '..';
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';
@@ -43,6 +43,10 @@ export interface IUser {
43
43
  boardCardComment?: IBoardCardComment[];
44
44
  board?: IBoard[];
45
45
  draw?: IDraw[];
46
+ retrospective?: IRetrospective[];
47
+ atlas?: IAtlas[];
48
+ memo?: IMemo[];
49
+ shortLink?: IShortLink[];
46
50
  }
47
51
  export type UserOnboardingStatus = {
48
52
  completedAt?: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",