@abyss-project/main 1.0.66 → 1.0.68

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 (43) hide show
  1. package/dist/api/index.d.ts +1 -0
  2. package/dist/api/index.js +1 -0
  3. package/dist/api/short-link.api.d.ts +15 -0
  4. package/dist/api/short-link.api.js +58 -0
  5. package/dist/server-sent-events/index.d.ts +2 -1
  6. package/dist/server-sent-events/index.js +1 -0
  7. package/dist/types/enum/abyss-application-event.enum.d.ts +3 -0
  8. package/dist/types/enum/abyss-application-event.enum.js +3 -0
  9. package/dist/types/interface/api/index.d.ts +4 -0
  10. package/dist/types/interface/api/index.js +4 -0
  11. package/dist/types/interface/api/requests/application.admin.request.d.ts +6 -7
  12. package/dist/types/interface/api/requests/application.request.d.ts +6 -7
  13. package/dist/types/interface/api/requests/gift-code.admin.request.d.ts +4 -5
  14. package/dist/types/interface/api/requests/project-access.admin.request.d.ts +10 -11
  15. package/dist/types/interface/api/requests/project-access.request.d.ts +11 -12
  16. package/dist/types/interface/api/requests/project.admin.request.d.ts +5 -6
  17. package/dist/types/interface/api/requests/project.request.d.ts +10 -11
  18. package/dist/types/interface/api/requests/short-link.admin.request.d.ts +26 -0
  19. package/dist/types/interface/api/requests/short-link.admin.request.js +2 -0
  20. package/dist/types/interface/api/requests/short-link.request.d.ts +66 -0
  21. package/dist/types/interface/api/requests/short-link.request.js +2 -0
  22. package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +5 -6
  23. package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +1 -2
  24. package/dist/types/interface/api/requests/user-notification.admin.request.d.ts +3 -4
  25. package/dist/types/interface/api/requests/user-notification.request.d.ts +2 -3
  26. package/dist/types/interface/api/requests/user-ticket.admin.request.d.ts +8 -9
  27. package/dist/types/interface/api/requests/user-ticket.request.d.ts +6 -7
  28. package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +3 -4
  29. package/dist/types/interface/api/requests/user.admin.request.d.ts +7 -8
  30. package/dist/types/interface/api/requests/user.request.d.ts +2 -3
  31. package/dist/types/interface/api/responses/short-link.admin.response.d.ts +14 -0
  32. package/dist/types/interface/api/responses/short-link.admin.response.js +2 -0
  33. package/dist/types/interface/api/responses/short-link.response.d.ts +35 -0
  34. package/dist/types/interface/api/responses/short-link.response.js +2 -0
  35. package/dist/types/interface/index.d.ts +2 -0
  36. package/dist/types/interface/index.js +2 -0
  37. package/dist/types/interface/models/project.model.d.ts +2 -0
  38. package/dist/types/interface/models/short-link-click.model.d.ts +18 -0
  39. package/dist/types/interface/models/short-link-click.model.js +2 -0
  40. package/dist/types/interface/models/short-link.model.d.ts +50 -0
  41. package/dist/types/interface/models/short-link.model.js +2 -0
  42. package/dist/types/interface/models/user.model.d.ts +2 -1
  43. package/package.json +1 -1
@@ -41,3 +41,4 @@ export * from './atlas-group.api';
41
41
  export * from './atlas-page.api';
42
42
  export * from './atlas.public.api';
43
43
  export * from './memo.api';
44
+ export * from './short-link.api';
package/dist/api/index.js CHANGED
@@ -57,3 +57,4 @@ __exportStar(require("./atlas-group.api"), exports);
57
57
  __exportStar(require("./atlas-page.api"), exports);
58
58
  __exportStar(require("./atlas.public.api"), exports);
59
59
  __exportStar(require("./memo.api"), exports);
60
+ __exportStar(require("./short-link.api"), exports);
@@ -0,0 +1,15 @@
1
+ import type { IGetShortLinkParams, IGetShortLinkResponse, IGetShortLinkBySlugParams, IGetShortLinkBySlugResponse, IValidateShortLinkPasswordBody, IValidateShortLinkPasswordResponse, IPaginateShortLinkQuery, IPaginateShortLinkResponse, IPaginateUserShortLinkQuery, IPaginateProjectShortLinkParams, IPaginateProjectShortLinkQuery, ICreateShortLinkBody, ICreateShortLinkResponse, ICreateForProjectShortLinkParams, IUpdateShortLinkParams, IUpdateShortLinkBody, IUpdateShortLinkResponse, IDeleteShortLinkParams, IDeleteShortLinkResponse, IGetShortLinkStatsParams, IGetShortLinkStatsQuery, IGetShortLinkStatsResponse } from '../types';
2
+ export declare const shortLinkApi: {
3
+ get: (params: IGetShortLinkParams) => Promise<IGetShortLinkResponse>;
4
+ getBySlug: (params: IGetShortLinkBySlugParams) => Promise<IGetShortLinkBySlugResponse>;
5
+ validatePassword: (params: IGetShortLinkBySlugParams, body: IValidateShortLinkPasswordBody) => Promise<IValidateShortLinkPasswordResponse>;
6
+ paginate: (query: IPaginateShortLinkQuery) => Promise<IPaginateShortLinkResponse>;
7
+ paginateUser: (query: IPaginateUserShortLinkQuery) => Promise<IPaginateShortLinkResponse>;
8
+ paginateProject: (params: IPaginateProjectShortLinkParams, query: IPaginateProjectShortLinkQuery) => Promise<IPaginateShortLinkResponse>;
9
+ create: (body: ICreateShortLinkBody) => Promise<ICreateShortLinkResponse>;
10
+ createAnonymous: (body: ICreateShortLinkBody) => Promise<ICreateShortLinkResponse>;
11
+ createForProject: (params: ICreateForProjectShortLinkParams, body: ICreateShortLinkBody) => Promise<ICreateShortLinkResponse>;
12
+ update: (params: IUpdateShortLinkParams, body: IUpdateShortLinkBody) => Promise<IUpdateShortLinkResponse>;
13
+ delete: (params: IDeleteShortLinkParams) => Promise<IDeleteShortLinkResponse>;
14
+ getStats: (params: IGetShortLinkStatsParams, query?: IGetShortLinkStatsQuery) => Promise<IGetShortLinkStatsResponse>;
15
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.shortLinkApi = void 0;
4
+ const index_1 = require("../index");
5
+ exports.shortLinkApi = {
6
+ get: async (params) => {
7
+ const response = await index_1.AbyssCore.axios.get(`/short-link/${params.shortLinkId}`);
8
+ return response.data;
9
+ },
10
+ getBySlug: async (params) => {
11
+ const response = await index_1.AbyssCore.axios.get(`/short-link/slug/${params.slug}`);
12
+ return response.data;
13
+ },
14
+ validatePassword: async (params, body) => {
15
+ const response = await index_1.AbyssCore.axios.post(`/short-link/slug/${params.slug}/validate-password`, body);
16
+ return response.data;
17
+ },
18
+ paginate: async (query) => {
19
+ const response = await index_1.AbyssCore.axios.get('/short-link/paginate', { params: query });
20
+ return response.data;
21
+ },
22
+ paginateUser: async (query) => {
23
+ const response = await index_1.AbyssCore.axios.get('/short-link/user/paginate', { params: query });
24
+ return response.data;
25
+ },
26
+ paginateProject: async (params, query) => {
27
+ const response = await index_1.AbyssCore.axios.get(`/short-link/project/${params.projectId}/paginate`, {
28
+ params: query,
29
+ });
30
+ return response.data;
31
+ },
32
+ create: async (body) => {
33
+ const response = await index_1.AbyssCore.axios.post('/short-link/create', body);
34
+ return response.data;
35
+ },
36
+ createAnonymous: async (body) => {
37
+ const response = await index_1.AbyssCore.axios.post('/short-link/create-anonymous', body);
38
+ return response.data;
39
+ },
40
+ createForProject: async (params, body) => {
41
+ const response = await index_1.AbyssCore.axios.post(`/short-link/project/${params.projectId}/create`, body);
42
+ return response.data;
43
+ },
44
+ update: async (params, body) => {
45
+ const response = await index_1.AbyssCore.axios.put(`/short-link/${params.shortLinkId}`, body);
46
+ return response.data;
47
+ },
48
+ delete: async (params) => {
49
+ const response = await index_1.AbyssCore.axios.delete(`/short-link/${params.shortLinkId}`);
50
+ return response.data;
51
+ },
52
+ getStats: async (params, query) => {
53
+ const response = await index_1.AbyssCore.axios.get(`/short-link/${params.shortLinkId}/stats`, {
54
+ params: query,
55
+ });
56
+ return response.data;
57
+ },
58
+ };
@@ -5,5 +5,6 @@ export declare enum SSEChannels {
5
5
  BOARD_CARD = "sse:board-card",
6
6
  USER_NOTIFICATION = "sse:user-notification",
7
7
  RETROSPECTIVE = "sse:retrospective",
8
- ATLAS = "sse:atlas"
8
+ ATLAS = "sse:atlas",
9
+ CLOUD = "sse:cloud"
9
10
  }
@@ -24,4 +24,5 @@ var SSEChannels;
24
24
  SSEChannels["USER_NOTIFICATION"] = "sse:user-notification";
25
25
  SSEChannels["RETROSPECTIVE"] = "sse:retrospective";
26
26
  SSEChannels["ATLAS"] = "sse:atlas";
27
+ SSEChannels["CLOUD"] = "sse:cloud";
27
28
  })(SSEChannels || (exports.SSEChannels = SSEChannels = {}));
@@ -21,6 +21,9 @@ export declare enum AbyssApplicationEvent {
21
21
  SERVER_SENT_EVENTS_ATLAS_OPEN = "server-sent-events.atlas.open",
22
22
  SERVER_SENT_EVENTS_ATLAS_CLOSE = "server-sent-events.atlas.close",
23
23
  SERVER_SENT_EVENTS_ATLAS_SEND = "server-sent-events.atlas.send",
24
+ SERVER_SENT_EVENTS_CLOUD_OPEN = "server-sent-events.cloud.open",
25
+ SERVER_SENT_EVENTS_CLOUD_CLOSE = "server-sent-events.cloud.close",
26
+ SERVER_SENT_EVENTS_CLOUD_SEND = "server-sent-events.cloud.send",
24
27
  BOARD_CREATE = "board.create",
25
28
  BOARD_UPDATE = "board.update",
26
29
  BOARD_DELETE = "board.delete",
@@ -25,6 +25,9 @@ var AbyssApplicationEvent;
25
25
  AbyssApplicationEvent["SERVER_SENT_EVENTS_ATLAS_OPEN"] = "server-sent-events.atlas.open";
26
26
  AbyssApplicationEvent["SERVER_SENT_EVENTS_ATLAS_CLOSE"] = "server-sent-events.atlas.close";
27
27
  AbyssApplicationEvent["SERVER_SENT_EVENTS_ATLAS_SEND"] = "server-sent-events.atlas.send";
28
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_CLOUD_OPEN"] = "server-sent-events.cloud.open";
29
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_CLOUD_CLOSE"] = "server-sent-events.cloud.close";
30
+ AbyssApplicationEvent["SERVER_SENT_EVENTS_CLOUD_SEND"] = "server-sent-events.cloud.send";
28
31
  AbyssApplicationEvent["BOARD_CREATE"] = "board.create";
29
32
  AbyssApplicationEvent["BOARD_UPDATE"] = "board.update";
30
33
  AbyssApplicationEvent["BOARD_DELETE"] = "board.delete";
@@ -43,6 +43,8 @@ export * from './requests/atlas-page.request';
43
43
  export * from './requests/atlas-group.request';
44
44
  export * from './requests/atlas.public.request';
45
45
  export * from './requests/memo.request';
46
+ export * from './requests/short-link.request';
47
+ export * from './requests/short-link.admin.request';
46
48
  export * from './responses/auth.response';
47
49
  export * from './responses/user.response';
48
50
  export * from './responses/user.admin.response';
@@ -86,3 +88,5 @@ export * from './responses/atlas-page.response';
86
88
  export * from './responses/atlas-group.response';
87
89
  export * from './responses/atlas.public.response';
88
90
  export * from './responses/memo.response';
91
+ export * from './responses/short-link.response';
92
+ export * from './responses/short-link.admin.response';
@@ -59,6 +59,8 @@ __exportStar(require("./requests/atlas-page.request"), exports);
59
59
  __exportStar(require("./requests/atlas-group.request"), exports);
60
60
  __exportStar(require("./requests/atlas.public.request"), exports);
61
61
  __exportStar(require("./requests/memo.request"), exports);
62
+ __exportStar(require("./requests/short-link.request"), exports);
63
+ __exportStar(require("./requests/short-link.admin.request"), exports);
62
64
  __exportStar(require("./responses/auth.response"), exports);
63
65
  __exportStar(require("./responses/user.response"), exports);
64
66
  __exportStar(require("./responses/user.admin.response"), exports);
@@ -102,3 +104,5 @@ __exportStar(require("./responses/atlas-page.response"), exports);
102
104
  __exportStar(require("./responses/atlas-group.response"), exports);
103
105
  __exportStar(require("./responses/atlas.public.response"), exports);
104
106
  __exportStar(require("./responses/memo.response"), exports);
107
+ __exportStar(require("./responses/short-link.response"), exports);
108
+ __exportStar(require("./responses/short-link.admin.response"), exports);
@@ -1,34 +1,33 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '../type-message/base-paginate';
3
2
  import { AbyssService } from '../../../enum';
4
- export interface IGetApplicationAdminParams extends core.ParamsDictionary {
3
+ export interface IGetApplicationAdminParams {
5
4
  applicationId: string;
6
5
  }
7
- export interface IGetProjectApplicationAdminParams extends core.ParamsDictionary {
6
+ export interface IGetProjectApplicationAdminParams {
8
7
  applicationId: string;
9
8
  }
10
9
  export type IPaginateApplicationAdminQuery = {
11
10
  projectId?: string[];
12
11
  service?: AbyssService[];
13
12
  } & QueryPaginate;
14
- export interface ICreateApplicationAdminParams extends core.ParamsDictionary {
13
+ export interface ICreateApplicationAdminParams {
15
14
  projectId: string;
16
15
  }
17
16
  export type ICreateApplicationAdminBody = {
18
17
  name: string;
19
18
  description?: string | null;
20
19
  };
21
- export interface IDeleteApplicationAdminParams extends core.ParamsDictionary {
20
+ export interface IDeleteApplicationAdminParams {
22
21
  applicationId: string;
23
22
  }
24
- export interface IUpdateApplicationAdminParams extends core.ParamsDictionary {
23
+ export interface IUpdateApplicationAdminParams {
25
24
  applicationId: string;
26
25
  }
27
26
  export type IUpdateApplicationAdminBody = {
28
27
  name?: string;
29
28
  description?: string;
30
29
  };
31
- export interface IActivateServiceApplicationAdminParams extends core.ParamsDictionary {
30
+ export interface IActivateServiceApplicationAdminParams {
32
31
  applicationId: string;
33
32
  }
34
33
  export type IActivateServiceApplicationAdminBody = {
@@ -1,32 +1,31 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { AbyssService } from '../../../enum';
3
- export interface IGetApplicationParams extends core.ParamsDictionary {
2
+ export interface IGetApplicationParams {
4
3
  applicationId: string;
5
4
  }
6
- export interface IListApplicationParams extends core.ParamsDictionary {
5
+ export interface IListApplicationParams {
7
6
  projectId: string;
8
7
  }
9
8
  export type IListApplicationQuery = {
10
9
  service?: AbyssService[];
11
10
  };
12
- export interface ICreateApplicationParams extends core.ParamsDictionary {
11
+ export interface ICreateApplicationParams {
13
12
  projectId: string;
14
13
  }
15
14
  export type ICreateApplicationBody = {
16
15
  name: string;
17
16
  description?: string | null;
18
17
  };
19
- export interface IDeleteApplicationParams extends core.ParamsDictionary {
18
+ export interface IDeleteApplicationParams {
20
19
  applicationId: string;
21
20
  }
22
- export interface IUpdateApplicationParams extends core.ParamsDictionary {
21
+ export interface IUpdateApplicationParams {
23
22
  applicationId: string;
24
23
  }
25
24
  export type IUpdateApplicationBody = {
26
25
  name?: string;
27
26
  description?: string;
28
27
  };
29
- export interface IActivateServiceApplicationParams extends core.ParamsDictionary {
28
+ export interface IActivateServiceApplicationParams {
30
29
  applicationId: string;
31
30
  }
32
31
  export type IActivateServiceApplicationBody = {
@@ -1,4 +1,3 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { GiftCodeType } from '../../../enum';
3
2
  import { QueryPaginate } from '../type-message/base-paginate';
4
3
  export type IPaginateGiftCodeAdminQuery = {
@@ -12,10 +11,10 @@ export type IPaginateGiftCodeActivationAdminQuery = {
12
11
  type?: GiftCodeType[];
13
12
  userId?: string;
14
13
  } & QueryPaginate;
15
- export interface IGetGiftCodeAdminParams extends core.ParamsDictionary {
14
+ export interface IGetGiftCodeAdminParams {
16
15
  giftCodeId: string;
17
16
  }
18
- export interface IUseGiftCodeAdminParams extends core.ParamsDictionary {
17
+ export interface IUseGiftCodeAdminParams {
19
18
  userId: string;
20
19
  }
21
20
  export interface IUseGiftCodeAdminQuery {
@@ -33,10 +32,10 @@ export type ICreateGiftCodeAdminBody = {
33
32
  activationIntervalInSecond: number | null;
34
33
  description?: string | null;
35
34
  };
36
- export interface IDeleteGiftCodeAdminParams extends core.ParamsDictionary {
35
+ export interface IDeleteGiftCodeAdminParams {
37
36
  giftCodeId: string;
38
37
  }
39
- export interface IUpdateGiftCodeAdminParams extends core.ParamsDictionary {
38
+ export interface IUpdateGiftCodeAdminParams {
40
39
  giftCodeId: string;
41
40
  }
42
41
  export type IUpdateGiftCodeAdminBody = {
@@ -1,7 +1,6 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '../type-message/base-paginate';
3
2
  import { ProjectAccessPermission, ProjectApplicationAccessPermission } from '../../../enum';
4
- export interface ICreateUserProjectAccessAdminParams extends core.ParamsDictionary {
3
+ export interface ICreateUserProjectAccessAdminParams {
5
4
  projectId: string;
6
5
  userId: string;
7
6
  }
@@ -14,7 +13,7 @@ export type ICreateUserProjectAccessAdminBody = {
14
13
  permission: ProjectApplicationAccessPermission[];
15
14
  }[];
16
15
  };
17
- export interface ICreateProjectAccessAdminParams extends core.ParamsDictionary {
16
+ export interface ICreateProjectAccessAdminParams {
18
17
  projectId: string;
19
18
  }
20
19
  export type ICreateProjectAccessAdminBody = {
@@ -26,7 +25,7 @@ export type ICreateProjectAccessAdminBody = {
26
25
  permission: ProjectApplicationAccessPermission[];
27
26
  }[];
28
27
  };
29
- export interface IUpdateProjectAccessAdminParams extends core.ParamsDictionary {
28
+ export interface IUpdateProjectAccessAdminParams {
30
29
  projectAccessId: string;
31
30
  }
32
31
  export type IUpdateProjectAccessAdminBody = {
@@ -34,31 +33,31 @@ export type IUpdateProjectAccessAdminBody = {
34
33
  description?: string | null;
35
34
  permission?: ProjectAccessPermission[];
36
35
  };
37
- export interface IUpsertApplicationProjectAccessAdminParams extends core.ParamsDictionary {
36
+ export interface IUpsertApplicationProjectAccessAdminParams {
38
37
  projectAccessId: string;
39
38
  applicationId: string;
40
39
  }
41
40
  export type IUpsertApplicationProjectAccessAdminBody = {
42
41
  permission?: ProjectApplicationAccessPermission[];
43
42
  };
44
- export interface IDeleteApplicationProjectAccessAdminParams extends core.ParamsDictionary {
43
+ export interface IDeleteApplicationProjectAccessAdminParams {
45
44
  projectAccessId: string;
46
45
  applicationId: string;
47
46
  }
48
- export interface IResetApiKeyProjectAccessAdminParams extends core.ParamsDictionary {
47
+ export interface IResetApiKeyProjectAccessAdminParams {
49
48
  projectAccessId: string;
50
49
  }
51
- export interface IDeleteProjectAccessAdminParams extends core.ParamsDictionary {
50
+ export interface IDeleteProjectAccessAdminParams {
52
51
  projectAccessId: string;
53
52
  }
54
- export interface IGetProjectAccessAdminParams extends core.ParamsDictionary {
53
+ export interface IGetProjectAccessAdminParams {
55
54
  projectAccessId: string;
56
55
  }
57
56
  export type IPaginateProjectAccessAdminQuery = {
58
57
  userId?: string[];
59
58
  projectId?: string[];
60
59
  } & QueryPaginate;
61
- export interface IComputeApplicationProjectAccessAdminParams extends core.ParamsDictionary {
60
+ export interface IComputeApplicationProjectAccessAdminParams {
62
61
  applicationId: string;
63
62
  }
64
63
  export type IComputeApplicationProjectAccessAdminBody = {
@@ -70,7 +69,7 @@ export type IComputeNotificationAccessProjectAccessAdminBody = {
70
69
  applicationId?: string;
71
70
  projectId?: string;
72
71
  };
73
- export interface IComputeProjectAccessAdminParams extends core.ParamsDictionary {
72
+ export interface IComputeProjectAccessAdminParams {
74
73
  projectId: string;
75
74
  }
76
75
  export type IComputeProjectAccessAdminBody = {
@@ -1,19 +1,18 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '../type-message/base-paginate';
3
2
  import { ProjectAccessPermission, ProjectApplicationAccessPermission } from '../../../enum';
4
- export interface IGetProjectAccessParams extends core.ParamsDictionary {
3
+ export interface IGetProjectAccessParams {
5
4
  projectId: string;
6
5
  projectAccessId: string;
7
6
  }
8
7
  export type IPaginateUserAccessProjectAccessQuery = QueryPaginate;
9
- export interface IPaginateProjectAccessParams extends core.ParamsDictionary {
8
+ export interface IPaginateProjectAccessParams {
10
9
  projectId: string;
11
10
  }
12
11
  export type IPaginateProjectAccessQuery = {
13
12
  onlyUserAccess?: boolean;
14
13
  onlyApiKeyAccess?: boolean;
15
14
  } & QueryPaginate;
16
- export interface ICreateUserProjectAccessParams extends core.ParamsDictionary {
15
+ export interface ICreateUserProjectAccessParams {
17
16
  projectId: string;
18
17
  userId: string;
19
18
  }
@@ -26,7 +25,7 @@ export type ICreateUserProjectAccessBody = {
26
25
  permission: ProjectApplicationAccessPermission[];
27
26
  }[];
28
27
  };
29
- export interface ICreateProjectAccessParams extends core.ParamsDictionary {
28
+ export interface ICreateProjectAccessParams {
30
29
  projectId: string;
31
30
  }
32
31
  export type ICreateProjectAccessBody = {
@@ -38,7 +37,7 @@ export type ICreateProjectAccessBody = {
38
37
  permission: ProjectApplicationAccessPermission[];
39
38
  }[];
40
39
  };
41
- export interface IUpdateProjectAccessParams extends core.ParamsDictionary {
40
+ export interface IUpdateProjectAccessParams {
42
41
  projectId: string;
43
42
  projectAccessId: string;
44
43
  }
@@ -47,7 +46,7 @@ export type IUpdateProjectAccessBody = {
47
46
  description?: string | null;
48
47
  permission?: ProjectAccessPermission[];
49
48
  };
50
- export interface IUpsertApplicationProjectAccessParams extends core.ParamsDictionary {
49
+ export interface IUpsertApplicationProjectAccessParams {
51
50
  projectId: string;
52
51
  projectAccessId: string;
53
52
  applicationId: string;
@@ -55,24 +54,24 @@ export interface IUpsertApplicationProjectAccessParams extends core.ParamsDictio
55
54
  export type IUpsertApplicationProjectAccessBody = {
56
55
  permission?: ProjectApplicationAccessPermission[];
57
56
  };
58
- export interface IDeleteApplicationProjectAccessParams extends core.ParamsDictionary {
57
+ export interface IDeleteApplicationProjectAccessParams {
59
58
  projectId: string;
60
59
  projectAccessId: string;
61
60
  applicationId: string;
62
61
  }
63
- export interface IResetApiKeyProjectAccessParams extends core.ParamsDictionary {
62
+ export interface IResetApiKeyProjectAccessParams {
64
63
  projectId: string;
65
64
  projectAccessId: string;
66
65
  }
67
- export interface IDeleteProjectAccessParams extends core.ParamsDictionary {
66
+ export interface IDeleteProjectAccessParams {
68
67
  projectId: string;
69
68
  projectAccessId: string;
70
69
  }
71
- export interface IConfirmUserProjectAccessParams extends core.ParamsDictionary {
70
+ export interface IConfirmUserProjectAccessParams {
72
71
  projectId: string;
73
72
  projectAccessId: string;
74
73
  }
75
- export interface IDeclineUserProjectAccessParams extends core.ParamsDictionary {
74
+ export interface IDeclineUserProjectAccessParams {
76
75
  projectId: string;
77
76
  projectAccessId: string;
78
77
  }
@@ -1,9 +1,8 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '../type-message/base-paginate';
3
- export interface IGetProjectAdminParams extends core.ParamsDictionary {
2
+ export interface IGetProjectAdminParams {
4
3
  projectId: string;
5
4
  }
6
- export interface IListProjectAdminParams extends core.ParamsDictionary {
5
+ export interface IListProjectAdminParams {
7
6
  userId: string;
8
7
  }
9
8
  export type IPaginateProjectAdminQuery = {
@@ -14,17 +13,17 @@ export type ICreateProjectAdminBody = {
14
13
  name: string;
15
14
  description?: string | null;
16
15
  };
17
- export interface ICreateProjectAdminParams extends core.ParamsDictionary {
16
+ export interface ICreateProjectAdminParams {
18
17
  userId: string;
19
18
  }
20
- export interface IDeleteProjectAdminParams extends core.ParamsDictionary {
19
+ export interface IDeleteProjectAdminParams {
21
20
  projectId: string;
22
21
  }
23
22
  export interface IDeleteProjectAdminQuery {
24
23
  deleteSpotlightProject?: boolean;
25
24
  deleteForm?: boolean;
26
25
  }
27
- export interface IUpdateProjectAdminParams extends core.ParamsDictionary {
26
+ export interface IUpdateProjectAdminParams {
28
27
  projectId: string;
29
28
  }
30
29
  export type IUpdateProjectAdminBody = {
@@ -1,16 +1,15 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '../type-message/base-paginate';
3
2
  import { ProjectStatus, SubscriptionLevel, UserTransactionType } from '../../../enum';
4
- export interface IGetProjectParams extends core.ParamsDictionary {
3
+ export interface IGetProjectParams {
5
4
  projectId: string;
6
5
  }
7
- export interface IGetMetricsProjectParams extends core.ParamsDictionary {
6
+ export interface IGetMetricsProjectParams {
8
7
  projectId: string;
9
8
  }
10
9
  export type IPaginateProjectQuery = {
11
10
  name?: string;
12
11
  } & QueryPaginate;
13
- export interface IPaginateTransactionProjectParams extends core.ParamsDictionary {
12
+ export interface IPaginateTransactionProjectParams {
14
13
  projectId: string;
15
14
  }
16
15
  export type IPaginateTransactionProjectQuery = {
@@ -20,14 +19,14 @@ export type ICreateProjectBody = {
20
19
  name: string;
21
20
  description?: string | null;
22
21
  };
23
- export interface IDeleteProjectParams extends core.ParamsDictionary {
22
+ export interface IDeleteProjectParams {
24
23
  projectId: string;
25
24
  }
26
25
  export interface IDeleteProjectQuery {
27
26
  deleteSpotlightProject?: boolean;
28
27
  deleteForm?: boolean;
29
28
  }
30
- export interface IUpdateProjectParams extends core.ParamsDictionary {
29
+ export interface IUpdateProjectParams {
31
30
  projectId: string;
32
31
  }
33
32
  export type IUpdateProjectBody = {
@@ -35,26 +34,26 @@ export type IUpdateProjectBody = {
35
34
  description?: string | null;
36
35
  status?: ProjectStatus;
37
36
  };
38
- export interface ILeaveProjectParams extends core.ParamsDictionary {
37
+ export interface ILeaveProjectParams {
39
38
  projectId: string;
40
39
  }
41
- export interface ICreateSubscriptionProjectParams extends core.ParamsDictionary {
40
+ export interface ICreateSubscriptionProjectParams {
42
41
  projectId: string;
43
42
  }
44
43
  export interface ICreateSubscriptionProjectBody {
45
44
  level: SubscriptionLevel;
46
45
  isAutoRenewEnabled: boolean;
47
46
  }
48
- export interface IUpdateSubscriptionProjectParams extends core.ParamsDictionary {
47
+ export interface IUpdateSubscriptionProjectParams {
49
48
  projectId: string;
50
49
  }
51
50
  export interface IUpdateSubscriptionProjectBody {
52
51
  isAutoRenewEnabled?: boolean;
53
52
  }
54
- export interface IRenewSubscriptionProjectParams extends core.ParamsDictionary {
53
+ export interface IRenewSubscriptionProjectParams {
55
54
  projectId: string;
56
55
  }
57
- export interface ISetOwnershipProjectParams extends core.ParamsDictionary {
56
+ export interface ISetOwnershipProjectParams {
58
57
  projectId: string;
59
58
  }
60
59
  export interface ISetOwnershipProjectBody {
@@ -0,0 +1,26 @@
1
+ import { QueryPaginate } from '../type-message/base-paginate';
2
+ export type IPaginateShortLinkAdminQuery = {
3
+ title?: string;
4
+ userId?: string;
5
+ projectId?: string;
6
+ isActive?: boolean;
7
+ } & QueryPaginate;
8
+ export type IGetShortLinkAdminParams = {
9
+ shortLinkId: string;
10
+ };
11
+ export type IDeleteShortLinkAdminParams = {
12
+ shortLinkId: string;
13
+ };
14
+ export type IUpdateShortLinkAdminParams = {
15
+ shortLinkId: string;
16
+ };
17
+ export type IUpdateShortLinkAdminBody = {
18
+ originalUrl?: string;
19
+ slug?: string;
20
+ title?: string;
21
+ description?: string;
22
+ isActive?: boolean;
23
+ expiresAt?: Date | null;
24
+ maxClicks?: number | null;
25
+ password?: string | null;
26
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,66 @@
1
+ import { QueryPaginate } from '../type-message/base-paginate';
2
+ export type IGetShortLinkParams = {
3
+ shortLinkId: string;
4
+ };
5
+ export type IGetShortLinkBySlugParams = {
6
+ slug: string;
7
+ };
8
+ export type IValidateShortLinkPasswordBody = {
9
+ password: string;
10
+ };
11
+ export type IPaginateShortLinkQuery = {
12
+ title?: string;
13
+ userId?: string;
14
+ projectId?: string;
15
+ isActive?: boolean;
16
+ } & QueryPaginate;
17
+ export type IPaginateUserShortLinkQuery = {
18
+ title?: string;
19
+ isActive?: boolean;
20
+ } & QueryPaginate;
21
+ export type IPaginateProjectShortLinkParams = {
22
+ projectId: string;
23
+ };
24
+ export type IPaginateProjectShortLinkQuery = {
25
+ title?: string;
26
+ isActive?: boolean;
27
+ } & QueryPaginate;
28
+ export type ICreateShortLinkBody = {
29
+ originalUrl: string;
30
+ slug?: string;
31
+ title?: string;
32
+ description?: string;
33
+ expiresAt?: Date;
34
+ maxClicks?: number;
35
+ password?: string;
36
+ };
37
+ export type ICreateForProjectShortLinkParams = {
38
+ projectId: string;
39
+ };
40
+ export type IUpdateShortLinkParams = {
41
+ shortLinkId: string;
42
+ };
43
+ export type IUpdateShortLinkBody = {
44
+ originalUrl?: string;
45
+ slug?: string;
46
+ title?: string;
47
+ description?: string;
48
+ isActive?: boolean;
49
+ expiresAt?: Date | null;
50
+ maxClicks?: number | null;
51
+ password?: string | null;
52
+ };
53
+ export type IDeleteShortLinkParams = {
54
+ shortLinkId: string;
55
+ };
56
+ export type IGetShortLinkStatsParams = {
57
+ shortLinkId: string;
58
+ };
59
+ export type IGetShortLinkStatsQuery = {
60
+ startDate?: string;
61
+ endDate?: string;
62
+ groupBy?: 'day' | 'week' | 'month';
63
+ };
64
+ export type IRedirectShortLinkParams = {
65
+ slug: string;
66
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,3 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '..';
3
2
  import { UserCreditPurchaseCurrency, UserCreditPurchasePaymentMethod, UserCreditPurchasePlatform } from '../../../enum';
4
3
  export type IPaginateUserCreditPurchaseAdminQuery = {
@@ -8,10 +7,10 @@ export type IPaginateUserCreditPurchaseAdminQuery = {
8
7
  userId?: string[];
9
8
  adminId?: string[];
10
9
  } & QueryPaginate;
11
- export interface IGetUserCreditPurchaseAdminParams extends core.ParamsDictionary {
10
+ export interface IGetUserCreditPurchaseAdminParams {
12
11
  userCreditPurchaseId: string;
13
12
  }
14
- export interface ICreateUserCreditPurchaseAdminParams extends core.ParamsDictionary {
13
+ export interface ICreateUserCreditPurchaseAdminParams {
15
14
  userId: string;
16
15
  }
17
16
  export interface ICreateUserCreditPurchaseAdminBody {
@@ -23,7 +22,7 @@ export interface ICreateUserCreditPurchaseAdminBody {
23
22
  creditAmount: number;
24
23
  externalId?: string | null;
25
24
  }
26
- export interface IUpdateUserCreditPurchaseAdminParams extends core.ParamsDictionary {
25
+ export interface IUpdateUserCreditPurchaseAdminParams {
27
26
  userCreditPurchaseId: string;
28
27
  }
29
28
  export interface IUpdateUserCreditPurchaseAdminBody {
@@ -35,9 +34,9 @@ export interface IUpdateUserCreditPurchaseAdminBody {
35
34
  creditAmount?: number;
36
35
  externalId?: string | null;
37
36
  }
38
- export interface IDeleteUserCreditPurchaseAdminParams extends core.ParamsDictionary {
37
+ export interface IDeleteUserCreditPurchaseAdminParams {
39
38
  userCreditPurchaseId: string;
40
39
  }
41
- export interface IRefundUserCreditPurchaseAdminParams extends core.ParamsDictionary {
40
+ export interface IRefundUserCreditPurchaseAdminParams {
42
41
  userCreditPurchaseId: string;
43
42
  }
@@ -1,10 +1,9 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '..';
3
2
  import { UserCreditPurchaseCurrency, UserCreditPurchasePlatform } from '../../../enum';
4
3
  export type IPaginateUserCreditPurchaseQuery = {
5
4
  method?: UserCreditPurchasePlatform[];
6
5
  currency?: UserCreditPurchaseCurrency[];
7
6
  } & QueryPaginate;
8
- export interface IGetUserCreditPurchaseParams extends core.ParamsDictionary {
7
+ export interface IGetUserCreditPurchaseParams {
9
8
  creditPurchaseId: string;
10
9
  }
@@ -1,8 +1,7 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { AbyssService, UserNotificationType } from '../../../enum';
3
2
  import { NotificationDTO } from '../../../utils';
4
3
  import { QueryPaginate } from '../type-message/base-paginate';
5
- export interface IGetUserNotificationAdminParams extends core.ParamsDictionary {
4
+ export interface IGetUserNotificationAdminParams {
6
5
  userNotificationId: string;
7
6
  }
8
7
  export type IPaginateUserNotificationAdminQuery = {
@@ -16,10 +15,10 @@ export type ICreateUserNotificationAdminBody = ({
16
15
  userId: string;
17
16
  type: UserNotificationType;
18
17
  } & NotificationDTO)[];
19
- export interface IDeleteUserNotificationAdminParams extends core.ParamsDictionary {
18
+ export interface IDeleteUserNotificationAdminParams {
20
19
  userNotificationId: string;
21
20
  }
22
- export interface IUpdateUserNotificationAdminParams extends core.ParamsDictionary {
21
+ export interface IUpdateUserNotificationAdminParams {
23
22
  userNotificationId: string;
24
23
  }
25
24
  export type IUpdateUserNotificationAdminBody = Partial<NotificationDTO> & {
@@ -1,7 +1,6 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { AbyssService, UserNotificationType } from '../../../enum';
3
2
  import { QueryPaginate } from '../type-message/base-paginate';
4
- export interface IGetUserNotificationParams extends core.ParamsDictionary {
3
+ export interface IGetUserNotificationParams {
5
4
  userNotificationId: string;
6
5
  }
7
6
  export type IPaginateUserNotificationQuery = {
@@ -9,6 +8,6 @@ export type IPaginateUserNotificationQuery = {
9
8
  service?: AbyssService[];
10
9
  shouldGetOnlyNew?: boolean;
11
10
  } & QueryPaginate;
12
- export interface IOpenUserNotificationParams extends core.ParamsDictionary {
11
+ export interface IOpenUserNotificationParams {
13
12
  userNotificationId: string;
14
13
  }
@@ -1,7 +1,6 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '..';
3
2
  import { AbyssService, UserTicketCategory } from '../../../enum';
4
- export interface IGetUserTicketAdminParams extends core.ParamsDictionary {
3
+ export interface IGetUserTicketAdminParams {
5
4
  userTicketId: string;
6
5
  }
7
6
  export type IPaginateUserTicketAdminQuery = {
@@ -10,7 +9,7 @@ export type IPaginateUserTicketAdminQuery = {
10
9
  category?: UserTicketCategory[];
11
10
  userId?: string[];
12
11
  } & QueryPaginate;
13
- export interface IUpdateUserTicketAdminParams extends core.ParamsDictionary {
12
+ export interface IUpdateUserTicketAdminParams {
14
13
  userTicketId: string;
15
14
  }
16
15
  export interface IUpdateUserTicketAdminBody {
@@ -24,35 +23,35 @@ export interface ICreateUserTicketAdminBody {
24
23
  service: AbyssService;
25
24
  userId: string;
26
25
  }
27
- export interface ICloseUserTicketAdminParams extends core.ParamsDictionary {
26
+ export interface ICloseUserTicketAdminParams {
28
27
  userTicketId: string;
29
28
  }
30
- export interface IPaginateMessageUserTicketAdminParams extends core.ParamsDictionary {
29
+ export interface IPaginateMessageUserTicketAdminParams {
31
30
  userTicketId: string;
32
31
  }
33
32
  export type IPaginateMessageUserTicketAdminQuery = {
34
33
  userTicketId?: string[];
35
34
  userId?: string[];
36
35
  } & QueryPaginate;
37
- export interface IUpdateMessageUserTicketAdminParams extends core.ParamsDictionary {
36
+ export interface IUpdateMessageUserTicketAdminParams {
38
37
  userTicketId: string;
39
38
  userTicketMessageId: string;
40
39
  }
41
40
  export interface IUpdateMessageUserTicketAdminBody {
42
41
  content?: string;
43
42
  }
44
- export interface ICreateMessageUserTicketAdminParams extends core.ParamsDictionary {
43
+ export interface ICreateMessageUserTicketAdminParams {
45
44
  userTicketId: string;
46
45
  }
47
46
  export interface ICreateMessageUserTicketAdminBody {
48
47
  content: string;
49
48
  }
50
- export interface IRemoveAttachmentMessageUserTicketAdminParams extends core.ParamsDictionary {
49
+ export interface IRemoveAttachmentMessageUserTicketAdminParams {
51
50
  userTicketId: string;
52
51
  userTicketMessageId: string;
53
52
  userTicketMessageAttachmentId: string;
54
53
  }
55
- export interface IAddAttachmentMessageUserTicketAdminParams extends core.ParamsDictionary {
54
+ export interface IAddAttachmentMessageUserTicketAdminParams {
56
55
  userTicketId: string;
57
56
  userTicketMessageId: string;
58
57
  }
@@ -1,7 +1,6 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '..';
3
2
  import { AbyssService, UserTicketCategory } from '../../../enum';
4
- export interface IGetUserTicketParams extends core.ParamsDictionary {
3
+ export interface IGetUserTicketParams {
5
4
  userTicketId: string;
6
5
  }
7
6
  export type IPaginateUserTicketQuery = {
@@ -9,7 +8,7 @@ export type IPaginateUserTicketQuery = {
9
8
  service?: AbyssService[];
10
9
  category?: UserTicketCategory[];
11
10
  } & QueryPaginate;
12
- export interface IUpdateUserTicketParams extends core.ParamsDictionary {
11
+ export interface IUpdateUserTicketParams {
13
12
  userTicketId: string;
14
13
  }
15
14
  export interface IUpdateUserTicketBody {
@@ -23,25 +22,25 @@ export interface ICreateUserTicketBody {
23
22
  export type IPaginateMessageUserTicketQuery = {
24
23
  userTicketId?: string[];
25
24
  } & QueryPaginate;
26
- export interface IUpdateMessageUserTicketParams extends core.ParamsDictionary {
25
+ export interface IUpdateMessageUserTicketParams {
27
26
  userTicketId: string;
28
27
  userTicketMessageId: string;
29
28
  }
30
29
  export interface IUpdateMessageUserTicketBody {
31
30
  content?: string;
32
31
  }
33
- export interface ICreateMessageUserTicketParams extends core.ParamsDictionary {
32
+ export interface ICreateMessageUserTicketParams {
34
33
  userTicketId: string;
35
34
  }
36
35
  export interface ICreateMessageUserTicketBody {
37
36
  content: string;
38
37
  }
39
- export interface IRemoveAttachmentMessageUserTicketParams extends core.ParamsDictionary {
38
+ export interface IRemoveAttachmentMessageUserTicketParams {
40
39
  userTicketId: string;
41
40
  userTicketMessageId: string;
42
41
  userTicketMessageAttachmentId: string;
43
42
  }
44
- export interface IAddAttachmentMessageUserTicketParams extends core.ParamsDictionary {
43
+ export interface IAddAttachmentMessageUserTicketParams {
45
44
  userTicketId: string;
46
45
  userTicketMessageId: string;
47
46
  }
@@ -1,4 +1,3 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { UserTransactionType } from '../../../enum';
3
2
  import { QueryPaginate } from '../type-message/base-paginate';
4
3
  export type IPaginateUserTransactionAdminQuery = {
@@ -9,7 +8,7 @@ export type IPaginateUserTransactionAdminQuery = {
9
8
  projectId?: string[];
10
9
  userTransactionId?: string[];
11
10
  } & QueryPaginate;
12
- export interface ICreateUserTransactionAdminParams extends core.ParamsDictionary {
11
+ export interface ICreateUserTransactionAdminParams {
13
12
  userId: string;
14
13
  }
15
14
  export interface ICreateUserTransactionAdminBody {
@@ -19,10 +18,10 @@ export interface ICreateUserTransactionAdminBody {
19
18
  projectId?: string;
20
19
  shouldFailOnNegative?: boolean;
21
20
  }
22
- export interface IDeleteUserTransactionAdminParams extends core.ParamsDictionary {
21
+ export interface IDeleteUserTransactionAdminParams {
23
22
  userTransactionId: string;
24
23
  }
25
- export interface IUpdateUserTransactionAdminParams extends core.ParamsDictionary {
24
+ export interface IUpdateUserTransactionAdminParams {
26
25
  userTransactionId: string;
27
26
  }
28
27
  export interface IUpdateUserTransactionAdminBody {
@@ -1,7 +1,6 @@
1
- import * as core from 'express-serve-static-core';
2
1
  import { QueryPaginate } from '..';
3
2
  import { AbyssService, UserLanguage } from '../../..';
4
- export interface IGetUserAdminParams extends core.ParamsDictionary {
3
+ export interface IGetUserAdminParams {
5
4
  userId: string;
6
5
  }
7
6
  export type IPaginateUserAdminQuery = {
@@ -11,7 +10,7 @@ export type IPaginateUserAdminQuery = {
11
10
  id?: string[];
12
11
  hasJoinedNewsletter?: boolean;
13
12
  } & QueryPaginate;
14
- export interface IUpdateUserAdminParams extends core.ParamsDictionary {
13
+ export interface IUpdateUserAdminParams {
15
14
  userId: string;
16
15
  }
17
16
  export interface IUpdateUserAdminBody {
@@ -24,25 +23,25 @@ export interface IUpdateUserAdminBody {
24
23
  alias?: string;
25
24
  emailVerifiedAt?: Date | null;
26
25
  }
27
- export interface IActivateServiceUserAdminParams extends core.ParamsDictionary {
26
+ export interface IActivateServiceUserAdminParams {
28
27
  userId: string;
29
28
  }
30
29
  export interface IActivateServiceUserAdminQuery {
31
30
  service: Omit<AbyssService, AbyssService.ABYSS | AbyssService.ABYSS_MONITOR | AbyssService.ABYSS_STORAGE>;
32
31
  }
33
- export interface IUpdateSettingsUserAdminParams extends core.ParamsDictionary {
32
+ export interface IUpdateSettingsUserAdminParams {
34
33
  userId: string;
35
34
  }
36
35
  export interface IUpdateSettingsUserAdminBody {
37
36
  language?: UserLanguage;
38
37
  }
39
- export interface IConnectAsAdminUserAdminParams extends core.ParamsDictionary {
38
+ export interface IConnectAsAdminUserAdminParams {
40
39
  userId: string;
41
40
  }
42
- export interface IJoinNewsletterUserAdminParams extends core.ParamsDictionary {
41
+ export interface IJoinNewsletterUserAdminParams {
43
42
  userId: string;
44
43
  }
45
- export interface ILeaveNewsletterUserAdminParams extends core.ParamsDictionary {
44
+ export interface ILeaveNewsletterUserAdminParams {
46
45
  userId: string;
47
46
  }
48
47
  export interface IUnsubscribeNewsletterUserAdminBody {
@@ -2,7 +2,6 @@ import { SubscriptionLevel, UserCreditPurchaseCurrency, UserLanguage } from '../
2
2
  import { TokenHistoryMetadataUserInvitation } from '../../models/token-history.model';
3
3
  import { UserOnboardingStatus } from '../../models/user.model';
4
4
  import { QueryPaginate } from '../type-message/base-paginate';
5
- import * as core from 'express-serve-static-core';
6
5
  export interface ISponsorUserQuery {
7
6
  email: string;
8
7
  }
@@ -41,7 +40,7 @@ export interface IImportProfilePictureFromCollectionUserBody {
41
40
  source: string;
42
41
  elementId: string;
43
42
  }
44
- export interface ICloudSaveUserParams extends core.ParamsDictionary {
43
+ export interface ICloudSaveUserParams {
45
44
  cloudId: string;
46
45
  }
47
46
  export type ICloudSaveUserBody = {
@@ -62,7 +61,7 @@ export type ICloudSaveUserBody = {
62
61
  applicationFileId: string;
63
62
  };
64
63
  });
65
- export interface ICloudImportUserParams extends core.ParamsDictionary {
64
+ export interface ICloudImportUserParams {
66
65
  cloudId: string;
67
66
  }
68
67
  export type ICloudImportUserBody = {
@@ -0,0 +1,14 @@
1
+ import { BasePaginate, IResponse } from '..';
2
+ import { IShortLink } from '../../models/short-link.model';
3
+ export type IPaginateShortLinkAdminResponse = IResponse<BasePaginate<IShortLink>>;
4
+ export interface IGetShortLinkAdminData {
5
+ shortLink: IShortLink;
6
+ }
7
+ export type IGetShortLinkAdminResponse = IResponse<IGetShortLinkAdminData>;
8
+ export interface IDeleteShortLinkAdminData {
9
+ }
10
+ export type IDeleteShortLinkAdminResponse = IResponse<IDeleteShortLinkAdminData>;
11
+ export interface IUpdateShortLinkAdminData {
12
+ shortLink: IShortLink;
13
+ }
14
+ export type IUpdateShortLinkAdminResponse = IResponse<IUpdateShortLinkAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,35 @@
1
+ import { BasePaginate, IResponse } from '..';
2
+ import { IShortLink, IShortLinkWithStats } from '../../models/short-link.model';
3
+ export interface IGetShortLinkData {
4
+ shortLink: IShortLink;
5
+ }
6
+ export type IGetShortLinkResponse = IResponse<IGetShortLinkData>;
7
+ export interface IGetShortLinkBySlugData {
8
+ shortLink: IShortLink;
9
+ requiresPassword: boolean;
10
+ }
11
+ export type IGetShortLinkBySlugResponse = IResponse<IGetShortLinkBySlugData>;
12
+ export interface IValidateShortLinkPasswordData {
13
+ valid: boolean;
14
+ }
15
+ export type IValidateShortLinkPasswordResponse = IResponse<IValidateShortLinkPasswordData>;
16
+ export type IPaginateShortLinkResponse = IResponse<BasePaginate<IShortLink>>;
17
+ export interface ICreateShortLinkData {
18
+ shortLink: IShortLink;
19
+ }
20
+ export type ICreateShortLinkResponse = IResponse<ICreateShortLinkData>;
21
+ export interface IUpdateShortLinkData {
22
+ shortLink: IShortLink;
23
+ }
24
+ export type IUpdateShortLinkResponse = IResponse<IUpdateShortLinkData>;
25
+ export interface IDeleteShortLinkData {
26
+ }
27
+ export type IDeleteShortLinkResponse = IResponse<IDeleteShortLinkData>;
28
+ export interface IGetShortLinkStatsData {
29
+ shortLink: IShortLinkWithStats;
30
+ }
31
+ export type IGetShortLinkStatsResponse = IResponse<IGetShortLinkStatsData>;
32
+ export interface IRedirectShortLinkData {
33
+ url: string;
34
+ }
35
+ export type IRedirectShortLinkResponse = IResponse<IRedirectShortLinkData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,3 +40,5 @@ export * from './models/atlas-group.model';
40
40
  export * from './models/atlas-page.model';
41
41
  export * from './models/atlas-page-content.model';
42
42
  export * from './models/memo.model';
43
+ export * from './models/short-link.model';
44
+ export * from './models/short-link-click.model';
@@ -56,3 +56,5 @@ __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
58
  __exportStar(require("./models/memo.model"), exports);
59
+ __exportStar(require("./models/short-link.model"), exports);
60
+ __exportStar(require("./models/short-link-click.model"), exports);
@@ -9,6 +9,7 @@ import { IDraw } from './draw.model';
9
9
  import { IAtlas } from './atlas.model';
10
10
  import { IRetrospective } from './retrospective.model';
11
11
  import { IMemo } from './memo.model';
12
+ import { IShortLink } from './short-link.model';
12
13
  export interface IProject {
13
14
  id?: string;
14
15
  name: string;
@@ -29,4 +30,5 @@ export interface IProject {
29
30
  retrospective?: IRetrospective[];
30
31
  atlas?: IAtlas[];
31
32
  memo?: IMemo[];
33
+ shortLink?: IShortLink[];
32
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 { IAtlas, IBoard, IGiftCodeActivation, IMemo, IOAuthAccount, IProject, IRetrospective, 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';
@@ -46,6 +46,7 @@ export interface IUser {
46
46
  retrospective?: IRetrospective[];
47
47
  atlas?: IAtlas[];
48
48
  memo?: IMemo[];
49
+ shortLink?: IShortLink[];
49
50
  }
50
51
  export type UserOnboardingStatus = {
51
52
  completedAt?: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",