@abyss-project/main 1.0.73 → 1.0.75
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/retrospective.api.js +1 -1
- package/dist/api/short-link.admin.api.d.ts +2 -1
- package/dist/api/short-link.admin.api.js +4 -0
- package/dist/api/short-link.api.d.ts +2 -1
- package/dist/api/short-link.api.js +4 -0
- package/dist/types/interface/api/requests/short-link.admin.request.d.ts +7 -0
- package/dist/types/interface/api/requests/short-link.request.d.ts +6 -0
- package/dist/types/interface/api/responses/short-link.admin.response.d.ts +6 -0
- package/dist/types/interface/api/responses/short-link.response.d.ts +6 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ const paginateRetrospective = async (query) => {
|
|
|
17
17
|
};
|
|
18
18
|
exports.paginateRetrospective = paginateRetrospective;
|
|
19
19
|
const createForProjectRetrospective = async (params, body) => {
|
|
20
|
-
return (await __1.AbyssCore.axios.post(`project/${params.projectId}
|
|
20
|
+
return (await __1.AbyssCore.axios.post(`retrospective/project/${params.projectId}`, body)).data;
|
|
21
21
|
};
|
|
22
22
|
exports.createForProjectRetrospective = createForProjectRetrospective;
|
|
23
23
|
const createRetrospective = async (body) => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { IPaginateShortLinkAdminQuery, IPaginateShortLinkAdminResponse, IGetShortLinkAdminParams, IGetShortLinkAdminResponse, IUpdateShortLinkAdminParams, IUpdateShortLinkAdminBody, IUpdateShortLinkAdminResponse, IDeleteShortLinkAdminParams, IDeleteShortLinkAdminResponse } from '../types';
|
|
1
|
+
import type { IPaginateShortLinkAdminQuery, IPaginateShortLinkAdminResponse, IGetShortLinkAdminParams, IGetShortLinkAdminResponse, IUpdateShortLinkAdminParams, IUpdateShortLinkAdminBody, IUpdateShortLinkAdminResponse, IDeleteShortLinkAdminParams, IDeleteShortLinkAdminResponse, ITransferShortLinkAdminParams, ITransferShortLinkAdminBody, ITransferShortLinkAdminResponse } from '../types';
|
|
2
2
|
export declare const shortLinkAdminApi: {
|
|
3
3
|
paginate: (query: IPaginateShortLinkAdminQuery) => Promise<IPaginateShortLinkAdminResponse>;
|
|
4
4
|
get: (params: IGetShortLinkAdminParams) => Promise<IGetShortLinkAdminResponse>;
|
|
5
5
|
update: (params: IUpdateShortLinkAdminParams, body: IUpdateShortLinkAdminBody) => Promise<IUpdateShortLinkAdminResponse>;
|
|
6
6
|
delete: (params: IDeleteShortLinkAdminParams) => Promise<IDeleteShortLinkAdminResponse>;
|
|
7
|
+
transfer: (params: ITransferShortLinkAdminParams, body: ITransferShortLinkAdminBody) => Promise<ITransferShortLinkAdminResponse>;
|
|
7
8
|
};
|
|
@@ -19,4 +19,8 @@ exports.shortLinkAdminApi = {
|
|
|
19
19
|
const response = await index_1.AbyssCore.axios.delete(`/admin/short-link/${params.shortLinkId}`);
|
|
20
20
|
return response.data;
|
|
21
21
|
},
|
|
22
|
+
transfer: async (params, body) => {
|
|
23
|
+
const response = await index_1.AbyssCore.axios.post(`/admin/short-link/${params.shortLinkId}/transfer`, body);
|
|
24
|
+
return response.data;
|
|
25
|
+
},
|
|
22
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IGetShortLinkParams, IGetShortLinkResponse, IPaginateShortLinkQuery, IPaginateShortLinkResponse, IPaginateProjectShortLinkParams, ICreateShortLinkBody, ICreateShortLinkResponse, ICreateForProjectShortLinkParams, IUpdateShortLinkParams, IUpdateShortLinkBody, IUpdateShortLinkResponse, IDeleteShortLinkParams, IDeleteShortLinkResponse, IGetStatsShortLinkParams, IGetStatsShortLinkQuery, IGetStatsShortLinkResponse, IGetClicksShortLinkParams, IGetClicksShortLinkQuery, IGetClicksShortLinkResponse } from '../types';
|
|
1
|
+
import type { IGetShortLinkParams, IGetShortLinkResponse, IPaginateShortLinkQuery, IPaginateShortLinkResponse, IPaginateProjectShortLinkParams, ICreateShortLinkBody, ICreateShortLinkResponse, ICreateForProjectShortLinkParams, IUpdateShortLinkParams, IUpdateShortLinkBody, IUpdateShortLinkResponse, IDeleteShortLinkParams, IDeleteShortLinkResponse, IGetStatsShortLinkParams, IGetStatsShortLinkQuery, IGetStatsShortLinkResponse, IGetClicksShortLinkParams, IGetClicksShortLinkQuery, IGetClicksShortLinkResponse, ITransferShortLinkParams, ITransferShortLinkBody, ITransferShortLinkResponse } from '../types';
|
|
2
2
|
export declare const shortLinkApi: {
|
|
3
3
|
get: (params: IGetShortLinkParams) => Promise<IGetShortLinkResponse>;
|
|
4
4
|
paginate: (query: IPaginateShortLinkQuery) => Promise<IPaginateShortLinkResponse>;
|
|
@@ -9,4 +9,5 @@ export declare const shortLinkApi: {
|
|
|
9
9
|
delete: (params: IDeleteShortLinkParams) => Promise<IDeleteShortLinkResponse>;
|
|
10
10
|
getStats: (params: IGetStatsShortLinkParams, query?: IGetStatsShortLinkQuery) => Promise<IGetStatsShortLinkResponse>;
|
|
11
11
|
getClicks: (params: IGetClicksShortLinkParams, query?: IGetClicksShortLinkQuery) => Promise<IGetClicksShortLinkResponse>;
|
|
12
|
+
transfer: (params: ITransferShortLinkParams, body: ITransferShortLinkBody) => Promise<ITransferShortLinkResponse>;
|
|
12
13
|
};
|
|
@@ -27,3 +27,10 @@ export type IGetClicksShortLinkAdminParams = {
|
|
|
27
27
|
shortLinkId: string;
|
|
28
28
|
};
|
|
29
29
|
export type IGetClicksShortLinkAdminQuery = QueryPaginate;
|
|
30
|
+
export type ITransferShortLinkAdminParams = {
|
|
31
|
+
shortLinkId: string;
|
|
32
|
+
};
|
|
33
|
+
export type ITransferShortLinkAdminBody = {
|
|
34
|
+
userId?: string;
|
|
35
|
+
projectId?: string;
|
|
36
|
+
};
|
|
@@ -45,3 +45,9 @@ export type IGetClicksShortLinkParams = {
|
|
|
45
45
|
shortLinkId: string;
|
|
46
46
|
};
|
|
47
47
|
export type IGetClicksShortLinkQuery = QueryPaginate;
|
|
48
|
+
export type ITransferShortLinkParams = {
|
|
49
|
+
shortLinkId: string;
|
|
50
|
+
};
|
|
51
|
+
export type ITransferShortLinkBody = {
|
|
52
|
+
projectId: string;
|
|
53
|
+
};
|
|
@@ -13,4 +13,10 @@ export interface IUpdateShortLinkAdminData {
|
|
|
13
13
|
shortLink: IShortLink;
|
|
14
14
|
}
|
|
15
15
|
export type IUpdateShortLinkAdminResponse = IResponse<IUpdateShortLinkAdminData>;
|
|
16
|
+
export interface IGetClicksShortLinkAdminData {
|
|
17
|
+
}
|
|
16
18
|
export type IGetClicksShortLinkAdminResponse = IResponse<BasePaginate<IShortLinkClick>>;
|
|
19
|
+
export interface ITransferShortLinkAdminData {
|
|
20
|
+
shortLink: IShortLink;
|
|
21
|
+
}
|
|
22
|
+
export type ITransferShortLinkAdminResponse = IResponse<ITransferShortLinkAdminData>;
|
|
@@ -21,4 +21,10 @@ export interface IGetStatsShortLinkData {
|
|
|
21
21
|
shortLink: IShortLinkWithStats;
|
|
22
22
|
}
|
|
23
23
|
export type IGetStatsShortLinkResponse = IResponse<IGetStatsShortLinkData>;
|
|
24
|
+
export interface IGetClicksShortLinkData {
|
|
25
|
+
}
|
|
24
26
|
export type IGetClicksShortLinkResponse = IResponse<BasePaginate<IShortLinkClick>>;
|
|
27
|
+
export interface ITransferShortLinkData {
|
|
28
|
+
shortLink: IShortLink;
|
|
29
|
+
}
|
|
30
|
+
export type ITransferShortLinkResponse = IResponse<ITransferShortLinkData>;
|