@abyss-project/main 1.0.67 → 1.0.69
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.
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +2 -0
- package/dist/api/short-link.admin.api.d.ts +7 -0
- package/dist/api/short-link.admin.api.js +22 -0
- package/dist/api/short-link.api.d.ts +4 -7
- package/dist/api/short-link.api.js +8 -18
- package/dist/api/short-link.public.api.d.ts +8 -0
- package/dist/api/short-link.public.api.js +32 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/short-link.constants.d.ts +8 -0
- package/dist/constants/short-link.constants.js +11 -0
- package/dist/server-sent-events/index.d.ts +2 -1
- package/dist/server-sent-events/index.js +1 -0
- package/dist/types/enum/index.d.ts +1 -0
- package/dist/types/enum/index.js +1 -0
- package/dist/types/enum/user-agent.enum.d.ts +22 -0
- package/dist/types/enum/user-agent.enum.js +28 -0
- package/dist/types/interface/api/index.d.ts +2 -0
- package/dist/types/interface/api/index.js +2 -0
- package/dist/types/interface/api/requests/application.admin.request.d.ts +6 -7
- package/dist/types/interface/api/requests/application.request.d.ts +6 -7
- package/dist/types/interface/api/requests/gift-code.admin.request.d.ts +4 -5
- package/dist/types/interface/api/requests/project-access.admin.request.d.ts +10 -11
- package/dist/types/interface/api/requests/project-access.request.d.ts +11 -12
- package/dist/types/interface/api/requests/project.admin.request.d.ts +5 -6
- package/dist/types/interface/api/requests/project.request.d.ts +10 -11
- package/dist/types/interface/api/requests/short-link.admin.request.d.ts +4 -1
- package/dist/types/interface/api/requests/short-link.public.request.d.ts +33 -0
- package/dist/types/interface/api/requests/short-link.public.request.js +2 -0
- package/dist/types/interface/api/requests/short-link.request.d.ts +7 -26
- package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +5 -6
- package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +1 -2
- package/dist/types/interface/api/requests/user-notification.admin.request.d.ts +3 -4
- package/dist/types/interface/api/requests/user-notification.request.d.ts +2 -3
- package/dist/types/interface/api/requests/user-ticket.admin.request.d.ts +8 -9
- package/dist/types/interface/api/requests/user-ticket.request.d.ts +6 -7
- package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +3 -4
- package/dist/types/interface/api/requests/user.admin.request.d.ts +7 -8
- package/dist/types/interface/api/requests/user.request.d.ts +2 -3
- package/dist/types/interface/api/responses/short-link.admin.response.d.ts +2 -0
- package/dist/types/interface/api/responses/short-link.public.response.d.ts +20 -0
- package/dist/types/interface/api/responses/short-link.public.response.js +2 -0
- package/dist/types/interface/api/responses/short-link.response.d.ts +4 -15
- package/dist/types/interface/models/short-link-click.model.d.ts +13 -1
- package/dist/types/interface/models/short-link.model.d.ts +16 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/string.utils.d.ts +6 -0
- package/dist/utils/string.utils.js +45 -0
- package/dist/utils/tracking.utils.d.ts +11 -0
- package/dist/utils/tracking.utils.js +60 -0
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -58,3 +58,5 @@ __exportStar(require("./atlas-page.api"), exports);
|
|
|
58
58
|
__exportStar(require("./atlas.public.api"), exports);
|
|
59
59
|
__exportStar(require("./memo.api"), exports);
|
|
60
60
|
__exportStar(require("./short-link.api"), exports);
|
|
61
|
+
__exportStar(require("./short-link.admin.api"), exports);
|
|
62
|
+
__exportStar(require("./short-link.public.api"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IPaginateShortLinkAdminQuery, IPaginateShortLinkAdminResponse, IGetShortLinkAdminParams, IGetShortLinkAdminResponse, IUpdateShortLinkAdminParams, IUpdateShortLinkAdminBody, IUpdateShortLinkAdminResponse, IDeleteShortLinkAdminParams, IDeleteShortLinkAdminResponse } from '../types';
|
|
2
|
+
export declare const shortLinkAdminApi: {
|
|
3
|
+
paginate: (query: IPaginateShortLinkAdminQuery) => Promise<IPaginateShortLinkAdminResponse>;
|
|
4
|
+
get: (params: IGetShortLinkAdminParams) => Promise<IGetShortLinkAdminResponse>;
|
|
5
|
+
update: (params: IUpdateShortLinkAdminParams, body: IUpdateShortLinkAdminBody) => Promise<IUpdateShortLinkAdminResponse>;
|
|
6
|
+
delete: (params: IDeleteShortLinkAdminParams) => Promise<IDeleteShortLinkAdminResponse>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shortLinkAdminApi = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
exports.shortLinkAdminApi = {
|
|
6
|
+
paginate: async (query) => {
|
|
7
|
+
const response = await index_1.AbyssCore.axios.get('/admin/short-link/paginate', { params: query });
|
|
8
|
+
return response.data;
|
|
9
|
+
},
|
|
10
|
+
get: async (params) => {
|
|
11
|
+
const response = await index_1.AbyssCore.axios.get(`/admin/short-link/${params.shortLinkId}`);
|
|
12
|
+
return response.data;
|
|
13
|
+
},
|
|
14
|
+
update: async (params, body) => {
|
|
15
|
+
const response = await index_1.AbyssCore.axios.put(`/admin/short-link/${params.shortLinkId}`, body);
|
|
16
|
+
return response.data;
|
|
17
|
+
},
|
|
18
|
+
delete: async (params) => {
|
|
19
|
+
const response = await index_1.AbyssCore.axios.delete(`/admin/short-link/${params.shortLinkId}`);
|
|
20
|
+
return response.data;
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import type { IGetShortLinkParams, IGetShortLinkResponse,
|
|
1
|
+
import type { IGetShortLinkParams, IGetShortLinkResponse, IPaginateShortLinkQuery, IPaginateShortLinkResponse, IPaginateProjectShortLinkParams, ICreateShortLinkBody, ICreateShortLinkResponse, ICreateForProjectShortLinkParams, IUpdateShortLinkParams, IUpdateShortLinkBody, IUpdateShortLinkResponse, IDeleteShortLinkParams, IDeleteShortLinkResponse, IGetStatsShortLinkParams, IGetStatsShortLinkQuery, IGetStatsShortLinkResponse, IGetClicksShortLinkParams, IGetClicksShortLinkQuery, IGetClicksShortLinkResponse } from '../types';
|
|
2
2
|
export declare const shortLinkApi: {
|
|
3
3
|
get: (params: IGetShortLinkParams) => Promise<IGetShortLinkResponse>;
|
|
4
|
-
getBySlug: (params: IGetShortLinkBySlugParams) => Promise<IGetShortLinkBySlugResponse>;
|
|
5
|
-
validatePassword: (params: IGetShortLinkBySlugParams, body: IValidateShortLinkPasswordBody) => Promise<IValidateShortLinkPasswordResponse>;
|
|
6
4
|
paginate: (query: IPaginateShortLinkQuery) => Promise<IPaginateShortLinkResponse>;
|
|
7
|
-
|
|
8
|
-
paginateProject: (params: IPaginateProjectShortLinkParams, query: IPaginateProjectShortLinkQuery) => Promise<IPaginateShortLinkResponse>;
|
|
5
|
+
paginateProject: (params: IPaginateProjectShortLinkParams, query: IPaginateShortLinkQuery) => Promise<IPaginateShortLinkResponse>;
|
|
9
6
|
create: (body: ICreateShortLinkBody) => Promise<ICreateShortLinkResponse>;
|
|
10
|
-
createAnonymous: (body: ICreateShortLinkBody) => Promise<ICreateShortLinkResponse>;
|
|
11
7
|
createForProject: (params: ICreateForProjectShortLinkParams, body: ICreateShortLinkBody) => Promise<ICreateShortLinkResponse>;
|
|
12
8
|
update: (params: IUpdateShortLinkParams, body: IUpdateShortLinkBody) => Promise<IUpdateShortLinkResponse>;
|
|
13
9
|
delete: (params: IDeleteShortLinkParams) => Promise<IDeleteShortLinkResponse>;
|
|
14
|
-
getStats: (params:
|
|
10
|
+
getStats: (params: IGetStatsShortLinkParams, query?: IGetStatsShortLinkQuery) => Promise<IGetStatsShortLinkResponse>;
|
|
11
|
+
getClicks: (params: IGetClicksShortLinkParams, query?: IGetClicksShortLinkQuery) => Promise<IGetClicksShortLinkResponse>;
|
|
15
12
|
};
|
|
@@ -7,22 +7,10 @@ exports.shortLinkApi = {
|
|
|
7
7
|
const response = await index_1.AbyssCore.axios.get(`/short-link/${params.shortLinkId}`);
|
|
8
8
|
return response.data;
|
|
9
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
10
|
paginate: async (query) => {
|
|
19
11
|
const response = await index_1.AbyssCore.axios.get('/short-link/paginate', { params: query });
|
|
20
12
|
return response.data;
|
|
21
13
|
},
|
|
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
14
|
paginateProject: async (params, query) => {
|
|
27
15
|
const response = await index_1.AbyssCore.axios.get(`/short-link/project/${params.projectId}/paginate`, {
|
|
28
16
|
params: query,
|
|
@@ -30,15 +18,11 @@ exports.shortLinkApi = {
|
|
|
30
18
|
return response.data;
|
|
31
19
|
},
|
|
32
20
|
create: async (body) => {
|
|
33
|
-
const response = await index_1.AbyssCore.axios.post('/short-link
|
|
34
|
-
return response.data;
|
|
35
|
-
},
|
|
36
|
-
createAnonymous: async (body) => {
|
|
37
|
-
const response = await index_1.AbyssCore.axios.post('/short-link/create-anonymous', body);
|
|
21
|
+
const response = await index_1.AbyssCore.axios.post('/short-link', body);
|
|
38
22
|
return response.data;
|
|
39
23
|
},
|
|
40
24
|
createForProject: async (params, body) => {
|
|
41
|
-
const response = await index_1.AbyssCore.axios.post(`/short-link/project/${params.projectId}
|
|
25
|
+
const response = await index_1.AbyssCore.axios.post(`/short-link/project/${params.projectId}`, body);
|
|
42
26
|
return response.data;
|
|
43
27
|
},
|
|
44
28
|
update: async (params, body) => {
|
|
@@ -55,4 +39,10 @@ exports.shortLinkApi = {
|
|
|
55
39
|
});
|
|
56
40
|
return response.data;
|
|
57
41
|
},
|
|
42
|
+
getClicks: async (params, query) => {
|
|
43
|
+
const response = await index_1.AbyssCore.axios.get(`/short-link/${params.shortLinkId}/clicks`, {
|
|
44
|
+
params: query,
|
|
45
|
+
});
|
|
46
|
+
return response.data;
|
|
47
|
+
},
|
|
58
48
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ICreateAnonymousShortLinkPublicBody, ICreateShortLinkPublicResponse, IGetStatsShortLinkPublicParams, IGetStatsShortLinkPublicQuery, IGetStatsShortLinkPublicResponse, IGetClicksShortLinkPublicParams, IGetClicksShortLinkPublicQuery, IGetClicksShortLinkPublicResponse, IRenewShortLinkPublicParams, IRenewShortLinkPublicResponse, IRedirectShortLinkPublicParams, IRedirectShortLinkPublicQuery, IRedirectShortLinkPublicResponse } from '../types';
|
|
2
|
+
export declare const shortLinkPublicApi: {
|
|
3
|
+
createAnonymous: (body: ICreateAnonymousShortLinkPublicBody) => Promise<ICreateShortLinkPublicResponse>;
|
|
4
|
+
redirect: (params: IRedirectShortLinkPublicParams, query?: IRedirectShortLinkPublicQuery) => Promise<IRedirectShortLinkPublicResponse>;
|
|
5
|
+
getStats: (params: IGetStatsShortLinkPublicParams, query?: IGetStatsShortLinkPublicQuery) => Promise<IGetStatsShortLinkPublicResponse>;
|
|
6
|
+
getClicks: (params: IGetClicksShortLinkPublicParams, query?: IGetClicksShortLinkPublicQuery) => Promise<IGetClicksShortLinkPublicResponse>;
|
|
7
|
+
renew: (params: IRenewShortLinkPublicParams) => Promise<IRenewShortLinkPublicResponse>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shortLinkPublicApi = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
exports.shortLinkPublicApi = {
|
|
6
|
+
createAnonymous: async (body) => {
|
|
7
|
+
const response = await index_1.AbyssCore.axios.post('/short-link/public', body);
|
|
8
|
+
return response.data;
|
|
9
|
+
},
|
|
10
|
+
redirect: async (params, query) => {
|
|
11
|
+
const response = await index_1.AbyssCore.axios.get(`/short-link/public/redirect/${params.slug}`, {
|
|
12
|
+
params: query,
|
|
13
|
+
});
|
|
14
|
+
return response.data;
|
|
15
|
+
},
|
|
16
|
+
getStats: async (params, query) => {
|
|
17
|
+
const response = await index_1.AbyssCore.axios.get(`/short-link/public/${params.shortLinkId}/stats`, {
|
|
18
|
+
params: query,
|
|
19
|
+
});
|
|
20
|
+
return response.data;
|
|
21
|
+
},
|
|
22
|
+
getClicks: async (params, query) => {
|
|
23
|
+
const response = await index_1.AbyssCore.axios.get(`/short-link/public/${params.shortLinkId}/clicks`, {
|
|
24
|
+
params: query,
|
|
25
|
+
});
|
|
26
|
+
return response.data;
|
|
27
|
+
},
|
|
28
|
+
renew: async (params) => {
|
|
29
|
+
const response = await index_1.AbyssCore.axios.post(`/short-link/public/${params.shortLinkId}/renew`);
|
|
30
|
+
return response.data;
|
|
31
|
+
},
|
|
32
|
+
};
|
package/dist/constants/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./board.constants"), exports);
|
|
18
18
|
__exportStar(require("./memo.constants"), exports);
|
|
19
|
+
__exportStar(require("./short-link.constants"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const MIN_SHORT_LINK_PAGE = 1;
|
|
2
|
+
export declare const MIN_SHORT_LINK_LIMIT = 1;
|
|
3
|
+
export declare const MAX_SHORT_LINK_LIMIT = 500;
|
|
4
|
+
export declare const MAX_SHORT_LINK_TITLE_LENGTH = 255;
|
|
5
|
+
export declare const MAX_SHORT_LINK_DESCRIPTION_LENGTH = 1000;
|
|
6
|
+
export declare const MIN_SHORT_LINK_MAX_CLICKS = 1;
|
|
7
|
+
export declare const MIN_SHORT_LINK_SLUG_LENGTH = 3;
|
|
8
|
+
export declare const MAX_SHORT_LINK_SLUG_LENGTH = 50;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_SHORT_LINK_SLUG_LENGTH = exports.MIN_SHORT_LINK_SLUG_LENGTH = exports.MIN_SHORT_LINK_MAX_CLICKS = exports.MAX_SHORT_LINK_DESCRIPTION_LENGTH = exports.MAX_SHORT_LINK_TITLE_LENGTH = exports.MAX_SHORT_LINK_LIMIT = exports.MIN_SHORT_LINK_LIMIT = exports.MIN_SHORT_LINK_PAGE = void 0;
|
|
4
|
+
exports.MIN_SHORT_LINK_PAGE = 1;
|
|
5
|
+
exports.MIN_SHORT_LINK_LIMIT = 1;
|
|
6
|
+
exports.MAX_SHORT_LINK_LIMIT = 500;
|
|
7
|
+
exports.MAX_SHORT_LINK_TITLE_LENGTH = 255;
|
|
8
|
+
exports.MAX_SHORT_LINK_DESCRIPTION_LENGTH = 1000;
|
|
9
|
+
exports.MIN_SHORT_LINK_MAX_CLICKS = 1;
|
|
10
|
+
exports.MIN_SHORT_LINK_SLUG_LENGTH = 3;
|
|
11
|
+
exports.MAX_SHORT_LINK_SLUG_LENGTH = 50;
|
|
@@ -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 = {}));
|
package/dist/types/enum/index.js
CHANGED
|
@@ -38,3 +38,4 @@ __exportStar(require("./user-type.enum"), exports);
|
|
|
38
38
|
__exportStar(require("./onboarding-steps.enum"), exports);
|
|
39
39
|
__exportStar(require("./board-column-type.enum"), exports);
|
|
40
40
|
__exportStar(require("./board-activity.enum"), exports);
|
|
41
|
+
__exportStar(require("./user-agent.enum"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum UserAgentDevice {
|
|
2
|
+
DESKTOP = "desktop",
|
|
3
|
+
MOBILE = "mobile",
|
|
4
|
+
TABLET = "tablet",
|
|
5
|
+
UNKNOWN = "unknown"
|
|
6
|
+
}
|
|
7
|
+
export declare enum UserAgentBrowser {
|
|
8
|
+
CHROME = "Chrome",
|
|
9
|
+
FIREFOX = "Firefox",
|
|
10
|
+
SAFARI = "Safari",
|
|
11
|
+
EDGE = "Edge",
|
|
12
|
+
OPERA = "Opera",
|
|
13
|
+
UNKNOWN = "Unknown"
|
|
14
|
+
}
|
|
15
|
+
export declare enum UserAgentOS {
|
|
16
|
+
WINDOWS = "Windows",
|
|
17
|
+
MACOS = "MacOS",
|
|
18
|
+
LINUX = "Linux",
|
|
19
|
+
ANDROID = "Android",
|
|
20
|
+
IOS = "iOS",
|
|
21
|
+
UNKNOWN = "Unknown"
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserAgentOS = exports.UserAgentBrowser = exports.UserAgentDevice = void 0;
|
|
4
|
+
var UserAgentDevice;
|
|
5
|
+
(function (UserAgentDevice) {
|
|
6
|
+
UserAgentDevice["DESKTOP"] = "desktop";
|
|
7
|
+
UserAgentDevice["MOBILE"] = "mobile";
|
|
8
|
+
UserAgentDevice["TABLET"] = "tablet";
|
|
9
|
+
UserAgentDevice["UNKNOWN"] = "unknown";
|
|
10
|
+
})(UserAgentDevice || (exports.UserAgentDevice = UserAgentDevice = {}));
|
|
11
|
+
var UserAgentBrowser;
|
|
12
|
+
(function (UserAgentBrowser) {
|
|
13
|
+
UserAgentBrowser["CHROME"] = "Chrome";
|
|
14
|
+
UserAgentBrowser["FIREFOX"] = "Firefox";
|
|
15
|
+
UserAgentBrowser["SAFARI"] = "Safari";
|
|
16
|
+
UserAgentBrowser["EDGE"] = "Edge";
|
|
17
|
+
UserAgentBrowser["OPERA"] = "Opera";
|
|
18
|
+
UserAgentBrowser["UNKNOWN"] = "Unknown";
|
|
19
|
+
})(UserAgentBrowser || (exports.UserAgentBrowser = UserAgentBrowser = {}));
|
|
20
|
+
var UserAgentOS;
|
|
21
|
+
(function (UserAgentOS) {
|
|
22
|
+
UserAgentOS["WINDOWS"] = "Windows";
|
|
23
|
+
UserAgentOS["MACOS"] = "MacOS";
|
|
24
|
+
UserAgentOS["LINUX"] = "Linux";
|
|
25
|
+
UserAgentOS["ANDROID"] = "Android";
|
|
26
|
+
UserAgentOS["IOS"] = "iOS";
|
|
27
|
+
UserAgentOS["UNKNOWN"] = "Unknown";
|
|
28
|
+
})(UserAgentOS || (exports.UserAgentOS = UserAgentOS = {}));
|
|
@@ -44,6 +44,7 @@ export * from './requests/atlas-group.request';
|
|
|
44
44
|
export * from './requests/atlas.public.request';
|
|
45
45
|
export * from './requests/memo.request';
|
|
46
46
|
export * from './requests/short-link.request';
|
|
47
|
+
export * from './requests/short-link.public.request';
|
|
47
48
|
export * from './requests/short-link.admin.request';
|
|
48
49
|
export * from './responses/auth.response';
|
|
49
50
|
export * from './responses/user.response';
|
|
@@ -89,4 +90,5 @@ export * from './responses/atlas-group.response';
|
|
|
89
90
|
export * from './responses/atlas.public.response';
|
|
90
91
|
export * from './responses/memo.response';
|
|
91
92
|
export * from './responses/short-link.response';
|
|
93
|
+
export * from './responses/short-link.public.response';
|
|
92
94
|
export * from './responses/short-link.admin.response';
|
|
@@ -60,6 +60,7 @@ __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
62
|
__exportStar(require("./requests/short-link.request"), exports);
|
|
63
|
+
__exportStar(require("./requests/short-link.public.request"), exports);
|
|
63
64
|
__exportStar(require("./requests/short-link.admin.request"), exports);
|
|
64
65
|
__exportStar(require("./responses/auth.response"), exports);
|
|
65
66
|
__exportStar(require("./responses/user.response"), exports);
|
|
@@ -105,4 +106,5 @@ __exportStar(require("./responses/atlas-group.response"), exports);
|
|
|
105
106
|
__exportStar(require("./responses/atlas.public.response"), exports);
|
|
106
107
|
__exportStar(require("./responses/memo.response"), exports);
|
|
107
108
|
__exportStar(require("./responses/short-link.response"), exports);
|
|
109
|
+
__exportStar(require("./responses/short-link.public.response"), exports);
|
|
108
110
|
__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
|
|
3
|
+
export interface IGetApplicationAdminParams {
|
|
5
4
|
applicationId: string;
|
|
6
5
|
}
|
|
7
|
-
export interface IGetProjectApplicationAdminParams
|
|
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
|
|
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
|
|
20
|
+
export interface IDeleteApplicationAdminParams {
|
|
22
21
|
applicationId: string;
|
|
23
22
|
}
|
|
24
|
-
export interface IUpdateApplicationAdminParams
|
|
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
|
|
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
|
|
2
|
+
export interface IGetApplicationParams {
|
|
4
3
|
applicationId: string;
|
|
5
4
|
}
|
|
6
|
-
export interface IListApplicationParams
|
|
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
|
|
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
|
|
18
|
+
export interface IDeleteApplicationParams {
|
|
20
19
|
applicationId: string;
|
|
21
20
|
}
|
|
22
|
-
export interface IUpdateApplicationParams
|
|
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
|
|
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
|
|
14
|
+
export interface IGetGiftCodeAdminParams {
|
|
16
15
|
giftCodeId: string;
|
|
17
16
|
}
|
|
18
|
-
export interface IUseGiftCodeAdminParams
|
|
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
|
|
35
|
+
export interface IDeleteGiftCodeAdminParams {
|
|
37
36
|
giftCodeId: string;
|
|
38
37
|
}
|
|
39
|
-
export interface IUpdateGiftCodeAdminParams
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
43
|
+
export interface IDeleteApplicationProjectAccessAdminParams {
|
|
45
44
|
projectAccessId: string;
|
|
46
45
|
applicationId: string;
|
|
47
46
|
}
|
|
48
|
-
export interface IResetApiKeyProjectAccessAdminParams
|
|
47
|
+
export interface IResetApiKeyProjectAccessAdminParams {
|
|
49
48
|
projectAccessId: string;
|
|
50
49
|
}
|
|
51
|
-
export interface IDeleteProjectAccessAdminParams
|
|
50
|
+
export interface IDeleteProjectAccessAdminParams {
|
|
52
51
|
projectAccessId: string;
|
|
53
52
|
}
|
|
54
|
-
export interface IGetProjectAccessAdminParams
|
|
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
|
|
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
|
|
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
|
|
3
|
+
export interface IGetProjectAccessParams {
|
|
5
4
|
projectId: string;
|
|
6
5
|
projectAccessId: string;
|
|
7
6
|
}
|
|
8
7
|
export type IPaginateUserAccessProjectAccessQuery = QueryPaginate;
|
|
9
|
-
export interface IPaginateProjectAccessParams
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
57
|
+
export interface IDeleteApplicationProjectAccessParams {
|
|
59
58
|
projectId: string;
|
|
60
59
|
projectAccessId: string;
|
|
61
60
|
applicationId: string;
|
|
62
61
|
}
|
|
63
|
-
export interface IResetApiKeyProjectAccessParams
|
|
62
|
+
export interface IResetApiKeyProjectAccessParams {
|
|
64
63
|
projectId: string;
|
|
65
64
|
projectAccessId: string;
|
|
66
65
|
}
|
|
67
|
-
export interface IDeleteProjectAccessParams
|
|
66
|
+
export interface IDeleteProjectAccessParams {
|
|
68
67
|
projectId: string;
|
|
69
68
|
projectAccessId: string;
|
|
70
69
|
}
|
|
71
|
-
export interface IConfirmUserProjectAccessParams
|
|
70
|
+
export interface IConfirmUserProjectAccessParams {
|
|
72
71
|
projectId: string;
|
|
73
72
|
projectAccessId: string;
|
|
74
73
|
}
|
|
75
|
-
export interface IDeclineUserProjectAccessParams
|
|
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
|
|
2
|
+
export interface IGetProjectAdminParams {
|
|
4
3
|
projectId: string;
|
|
5
4
|
}
|
|
6
|
-
export interface IListProjectAdminParams
|
|
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
|
|
16
|
+
export interface ICreateProjectAdminParams {
|
|
18
17
|
userId: string;
|
|
19
18
|
}
|
|
20
|
-
export interface IDeleteProjectAdminParams
|
|
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
|
|
26
|
+
export interface IUpdateProjectAdminParams {
|
|
28
27
|
projectId: string;
|
|
29
28
|
}
|
|
30
29
|
export type IUpdateProjectAdminBody = {
|