@abyss-project/console 1.0.71 → 1.0.73
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/internal-ticket-config.api.d.ts +14 -3
- package/dist/api/internal-ticket-config.api.js +60 -5
- package/dist/api/internal-ticket.api.d.ts +7 -1
- package/dist/api/internal-ticket.api.js +31 -1
- package/dist/index.d.ts +25 -0
- package/dist/index.js +25 -0
- package/dist/types/enum/internal-ticket.enum.d.ts +11 -2
- package/dist/types/enum/internal-ticket.enum.js +9 -0
- package/dist/types/interface/api/requests/internal-ticket-config.request.d.ts +70 -0
- package/dist/types/interface/api/requests/internal-ticket.request.d.ts +44 -0
- package/dist/types/interface/api/responses/internal-ticket-config.response.d.ts +49 -0
- package/dist/types/interface/api/responses/internal-ticket.response.d.ts +29 -0
- package/dist/types/interface/index.d.ts +3 -0
- package/dist/types/interface/index.js +3 -0
- package/dist/types/interface/models/internal-ticket-assignee.model.d.ts +12 -0
- package/dist/types/interface/models/internal-ticket-assignee.model.js +2 -0
- package/dist/types/interface/models/internal-ticket-category.model.d.ts +5 -0
- package/dist/types/interface/models/internal-ticket-message-reaction.model.d.ts +9 -0
- package/dist/types/interface/models/internal-ticket-message-reaction.model.js +2 -0
- package/dist/types/interface/models/internal-ticket-message.model.d.ts +5 -0
- package/dist/types/interface/models/internal-ticket-priority.model.d.ts +7 -0
- package/dist/types/interface/models/internal-ticket-section.model.d.ts +18 -0
- package/dist/types/interface/models/internal-ticket-section.model.js +2 -0
- package/dist/types/interface/models/internal-ticket.model.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import { ICreateInternalTicketCategoryParams, ICreateInternalTicketCategoryBody, IListInternalTicketCategoryParams, IUpdateInternalTicketCategoryParams, IUpdateInternalTicketCategoryBody, IDeleteInternalTicketCategoryParams, ICreateInternalTicketPriorityParams, ICreateInternalTicketPriorityBody, IListInternalTicketPriorityParams, IUpdateInternalTicketPriorityParams, IUpdateInternalTicketPriorityBody, IDeleteInternalTicketPriorityParams, ICreateInternalTicketCategoryResponse, IListInternalTicketCategoryResponse, IUpdateInternalTicketCategoryResponse, IDeleteInternalTicketCategoryResponse, ICreateInternalTicketPriorityResponse, IListInternalTicketPriorityResponse, IUpdateInternalTicketPriorityResponse, IDeleteInternalTicketPriorityResponse } from '../types';
|
|
1
|
+
import { ICreateInternalTicketSectionParams, ICreateInternalTicketSectionBody, IListInternalTicketSectionParams, IUpdateInternalTicketSectionParams, IUpdateInternalTicketSectionBody, IDeleteInternalTicketSectionParams, IArchiveInternalTicketSectionParams, IUnarchiveInternalTicketSectionParams, IGetInternalTicketSectionStatsParams, ICreateInternalTicketCategoryParams, ICreateInternalTicketCategoryBody, IListInternalTicketCategoryParams, IListInternalTicketCategoryQuery, IUpdateInternalTicketCategoryParams, IUpdateInternalTicketCategoryBody, IDeleteInternalTicketCategoryParams, IArchiveInternalTicketCategoryParams, IUnarchiveInternalTicketCategoryParams, ICreateInternalTicketPriorityParams, ICreateInternalTicketPriorityBody, IListInternalTicketPriorityParams, IListInternalTicketPriorityQuery, IUpdateInternalTicketPriorityParams, IUpdateInternalTicketPriorityBody, IDeleteInternalTicketPriorityParams, IArchiveInternalTicketPriorityParams, IUnarchiveInternalTicketPriorityParams, ICreateInternalTicketSectionResponse, IListInternalTicketSectionResponse, IUpdateInternalTicketSectionResponse, IDeleteInternalTicketSectionResponse, IArchiveInternalTicketSectionResponse, IUnarchiveInternalTicketSectionResponse, IGetInternalTicketSectionStatsResponse, ICreateInternalTicketCategoryResponse, IListInternalTicketCategoryResponse, IUpdateInternalTicketCategoryResponse, IDeleteInternalTicketCategoryResponse, IArchiveInternalTicketCategoryResponse, IUnarchiveInternalTicketCategoryResponse, ICreateInternalTicketPriorityResponse, IListInternalTicketPriorityResponse, IUpdateInternalTicketPriorityResponse, IDeleteInternalTicketPriorityResponse, IArchiveInternalTicketPriorityResponse, IUnarchiveInternalTicketPriorityResponse } from '../types';
|
|
2
|
+
export declare const createInternalTicketSection: (params: ICreateInternalTicketSectionParams, body: ICreateInternalTicketSectionBody) => Promise<ICreateInternalTicketSectionResponse>;
|
|
3
|
+
export declare const listInternalTicketSection: (params: IListInternalTicketSectionParams) => Promise<IListInternalTicketSectionResponse>;
|
|
4
|
+
export declare const updateInternalTicketSection: (params: IUpdateInternalTicketSectionParams, body: IUpdateInternalTicketSectionBody) => Promise<IUpdateInternalTicketSectionResponse>;
|
|
5
|
+
export declare const deleteInternalTicketSection: (params: IDeleteInternalTicketSectionParams) => Promise<IDeleteInternalTicketSectionResponse>;
|
|
6
|
+
export declare const getInternalTicketSectionStats: (params: IGetInternalTicketSectionStatsParams) => Promise<IGetInternalTicketSectionStatsResponse>;
|
|
7
|
+
export declare const archiveInternalTicketSection: (params: IArchiveInternalTicketSectionParams) => Promise<IArchiveInternalTicketSectionResponse>;
|
|
8
|
+
export declare const unarchiveInternalTicketSection: (params: IUnarchiveInternalTicketSectionParams) => Promise<IUnarchiveInternalTicketSectionResponse>;
|
|
2
9
|
export declare const createInternalTicketCategory: (params: ICreateInternalTicketCategoryParams, body: ICreateInternalTicketCategoryBody) => Promise<ICreateInternalTicketCategoryResponse>;
|
|
3
|
-
export declare const listInternalTicketCategory: (params: IListInternalTicketCategoryParams) => Promise<IListInternalTicketCategoryResponse>;
|
|
10
|
+
export declare const listInternalTicketCategory: (params: IListInternalTicketCategoryParams, query?: IListInternalTicketCategoryQuery) => Promise<IListInternalTicketCategoryResponse>;
|
|
4
11
|
export declare const updateInternalTicketCategory: (params: IUpdateInternalTicketCategoryParams, body: IUpdateInternalTicketCategoryBody) => Promise<IUpdateInternalTicketCategoryResponse>;
|
|
5
12
|
export declare const deleteInternalTicketCategory: (params: IDeleteInternalTicketCategoryParams) => Promise<IDeleteInternalTicketCategoryResponse>;
|
|
13
|
+
export declare const archiveInternalTicketCategory: (params: IArchiveInternalTicketCategoryParams) => Promise<IArchiveInternalTicketCategoryResponse>;
|
|
14
|
+
export declare const unarchiveInternalTicketCategory: (params: IUnarchiveInternalTicketCategoryParams) => Promise<IUnarchiveInternalTicketCategoryResponse>;
|
|
6
15
|
export declare const createInternalTicketPriority: (params: ICreateInternalTicketPriorityParams, body: ICreateInternalTicketPriorityBody) => Promise<ICreateInternalTicketPriorityResponse>;
|
|
7
|
-
export declare const listInternalTicketPriority: (params: IListInternalTicketPriorityParams) => Promise<IListInternalTicketPriorityResponse>;
|
|
16
|
+
export declare const listInternalTicketPriority: (params: IListInternalTicketPriorityParams, query?: IListInternalTicketPriorityQuery) => Promise<IListInternalTicketPriorityResponse>;
|
|
8
17
|
export declare const updateInternalTicketPriority: (params: IUpdateInternalTicketPriorityParams, body: IUpdateInternalTicketPriorityBody) => Promise<IUpdateInternalTicketPriorityResponse>;
|
|
9
18
|
export declare const deleteInternalTicketPriority: (params: IDeleteInternalTicketPriorityParams) => Promise<IDeleteInternalTicketPriorityResponse>;
|
|
19
|
+
export declare const archiveInternalTicketPriority: (params: IArchiveInternalTicketPriorityParams) => Promise<IArchiveInternalTicketPriorityResponse>;
|
|
20
|
+
export declare const unarchiveInternalTicketPriority: (params: IUnarchiveInternalTicketPriorityParams) => Promise<IUnarchiveInternalTicketPriorityResponse>;
|
|
@@ -1,14 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteInternalTicketPriority = exports.updateInternalTicketPriority = exports.listInternalTicketPriority = exports.createInternalTicketPriority = exports.deleteInternalTicketCategory = exports.updateInternalTicketCategory = exports.listInternalTicketCategory = exports.createInternalTicketCategory = void 0;
|
|
3
|
+
exports.unarchiveInternalTicketPriority = exports.archiveInternalTicketPriority = exports.deleteInternalTicketPriority = exports.updateInternalTicketPriority = exports.listInternalTicketPriority = exports.createInternalTicketPriority = exports.unarchiveInternalTicketCategory = exports.archiveInternalTicketCategory = exports.deleteInternalTicketCategory = exports.updateInternalTicketCategory = exports.listInternalTicketCategory = exports.createInternalTicketCategory = exports.unarchiveInternalTicketSection = exports.archiveInternalTicketSection = exports.getInternalTicketSectionStats = exports.deleteInternalTicketSection = exports.updateInternalTicketSection = exports.listInternalTicketSection = exports.createInternalTicketSection = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
|
+
const createInternalTicketSection = async (params, body) => {
|
|
6
|
+
const response = await __1.AbyssConsoleCore.axios.post(`/internal-ticket-config/${params.projectId}/section`, body);
|
|
7
|
+
return response.data;
|
|
8
|
+
};
|
|
9
|
+
exports.createInternalTicketSection = createInternalTicketSection;
|
|
10
|
+
const listInternalTicketSection = async (params) => {
|
|
11
|
+
const response = await __1.AbyssConsoleCore.axios.get(`/internal-ticket-config/${params.projectId}/section`);
|
|
12
|
+
return response.data;
|
|
13
|
+
};
|
|
14
|
+
exports.listInternalTicketSection = listInternalTicketSection;
|
|
15
|
+
const updateInternalTicketSection = async (params, body) => {
|
|
16
|
+
const response = await __1.AbyssConsoleCore.axios.put(`/internal-ticket-config/${params.projectId}/section/${params.internalTicketSectionId}`, body);
|
|
17
|
+
return response.data;
|
|
18
|
+
};
|
|
19
|
+
exports.updateInternalTicketSection = updateInternalTicketSection;
|
|
20
|
+
const deleteInternalTicketSection = async (params) => {
|
|
21
|
+
const response = await __1.AbyssConsoleCore.axios.delete(`/internal-ticket-config/${params.projectId}/section/${params.internalTicketSectionId}`);
|
|
22
|
+
return response.data;
|
|
23
|
+
};
|
|
24
|
+
exports.deleteInternalTicketSection = deleteInternalTicketSection;
|
|
25
|
+
const getInternalTicketSectionStats = async (params) => {
|
|
26
|
+
const response = await __1.AbyssConsoleCore.axios.get(`/internal-ticket-config/${params.projectId}/section/${params.internalTicketSectionId}/stats`);
|
|
27
|
+
return response.data;
|
|
28
|
+
};
|
|
29
|
+
exports.getInternalTicketSectionStats = getInternalTicketSectionStats;
|
|
30
|
+
const archiveInternalTicketSection = async (params) => {
|
|
31
|
+
const response = await __1.AbyssConsoleCore.axios.put(`/internal-ticket-config/${params.projectId}/section/${params.internalTicketSectionId}/archive`);
|
|
32
|
+
return response.data;
|
|
33
|
+
};
|
|
34
|
+
exports.archiveInternalTicketSection = archiveInternalTicketSection;
|
|
35
|
+
const unarchiveInternalTicketSection = async (params) => {
|
|
36
|
+
const response = await __1.AbyssConsoleCore.axios.put(`/internal-ticket-config/${params.projectId}/section/${params.internalTicketSectionId}/unarchive`);
|
|
37
|
+
return response.data;
|
|
38
|
+
};
|
|
39
|
+
exports.unarchiveInternalTicketSection = unarchiveInternalTicketSection;
|
|
5
40
|
const createInternalTicketCategory = async (params, body) => {
|
|
6
41
|
const response = await __1.AbyssConsoleCore.axios.post(`/internal-ticket-config/${params.projectId}/category`, body);
|
|
7
42
|
return response.data;
|
|
8
43
|
};
|
|
9
44
|
exports.createInternalTicketCategory = createInternalTicketCategory;
|
|
10
|
-
const listInternalTicketCategory = async (params) => {
|
|
11
|
-
const response = await __1.AbyssConsoleCore.axios.get(`/internal-ticket-config/${params.projectId}/category
|
|
45
|
+
const listInternalTicketCategory = async (params, query) => {
|
|
46
|
+
const response = await __1.AbyssConsoleCore.axios.get(`/internal-ticket-config/${params.projectId}/category`, { params: query });
|
|
12
47
|
return response.data;
|
|
13
48
|
};
|
|
14
49
|
exports.listInternalTicketCategory = listInternalTicketCategory;
|
|
@@ -22,13 +57,23 @@ const deleteInternalTicketCategory = async (params) => {
|
|
|
22
57
|
return response.data;
|
|
23
58
|
};
|
|
24
59
|
exports.deleteInternalTicketCategory = deleteInternalTicketCategory;
|
|
60
|
+
const archiveInternalTicketCategory = async (params) => {
|
|
61
|
+
const response = await __1.AbyssConsoleCore.axios.put(`/internal-ticket-config/${params.projectId}/category/${params.internalTicketCategoryId}/archive`);
|
|
62
|
+
return response.data;
|
|
63
|
+
};
|
|
64
|
+
exports.archiveInternalTicketCategory = archiveInternalTicketCategory;
|
|
65
|
+
const unarchiveInternalTicketCategory = async (params) => {
|
|
66
|
+
const response = await __1.AbyssConsoleCore.axios.put(`/internal-ticket-config/${params.projectId}/category/${params.internalTicketCategoryId}/unarchive`);
|
|
67
|
+
return response.data;
|
|
68
|
+
};
|
|
69
|
+
exports.unarchiveInternalTicketCategory = unarchiveInternalTicketCategory;
|
|
25
70
|
const createInternalTicketPriority = async (params, body) => {
|
|
26
71
|
const response = await __1.AbyssConsoleCore.axios.post(`/internal-ticket-config/${params.projectId}/priority`, body);
|
|
27
72
|
return response.data;
|
|
28
73
|
};
|
|
29
74
|
exports.createInternalTicketPriority = createInternalTicketPriority;
|
|
30
|
-
const listInternalTicketPriority = async (params) => {
|
|
31
|
-
const response = await __1.AbyssConsoleCore.axios.get(`/internal-ticket-config/${params.projectId}/priority
|
|
75
|
+
const listInternalTicketPriority = async (params, query) => {
|
|
76
|
+
const response = await __1.AbyssConsoleCore.axios.get(`/internal-ticket-config/${params.projectId}/priority`, { params: query });
|
|
32
77
|
return response.data;
|
|
33
78
|
};
|
|
34
79
|
exports.listInternalTicketPriority = listInternalTicketPriority;
|
|
@@ -42,3 +87,13 @@ const deleteInternalTicketPriority = async (params) => {
|
|
|
42
87
|
return response.data;
|
|
43
88
|
};
|
|
44
89
|
exports.deleteInternalTicketPriority = deleteInternalTicketPriority;
|
|
90
|
+
const archiveInternalTicketPriority = async (params) => {
|
|
91
|
+
const response = await __1.AbyssConsoleCore.axios.put(`/internal-ticket-config/${params.projectId}/priority/${params.internalTicketPriorityId}/archive`);
|
|
92
|
+
return response.data;
|
|
93
|
+
};
|
|
94
|
+
exports.archiveInternalTicketPriority = archiveInternalTicketPriority;
|
|
95
|
+
const unarchiveInternalTicketPriority = async (params) => {
|
|
96
|
+
const response = await __1.AbyssConsoleCore.axios.put(`/internal-ticket-config/${params.projectId}/priority/${params.internalTicketPriorityId}/unarchive`);
|
|
97
|
+
return response.data;
|
|
98
|
+
};
|
|
99
|
+
exports.unarchiveInternalTicketPriority = unarchiveInternalTicketPriority;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICreateInternalTicketParams, ICreateInternalTicketBody, IPaginateInternalTicketParams, IPaginateInternalTicketQuery, IGetInternalTicketParams, IUpdateInternalTicketParams, IUpdateInternalTicketBody, IArchiveInternalTicketParams, IUnarchiveInternalTicketParams, IDeleteInternalTicketParams, ICreateInternalTicketMessageParams, ICreateInternalTicketMessageBody, IUpdateInternalTicketMessageParams, IUpdateInternalTicketMessageBody, IDeleteInternalTicketMessageParams, IPaginateInternalTicketMessageParams, IPaginateInternalTicketMessageQuery, ICreateInternalTicketMessageAttachmentParams, ICreateInternalTicketMessageAttachmentBody, IDeleteInternalTicketMessageAttachmentParams, ICreateInternalTicketAttachmentParams, ICreateInternalTicketAttachmentBody, IDeleteInternalTicketAttachmentParams, IPaginateInternalTicketActivityParams, IPaginateInternalTicketActivityQuery, IFollowInternalTicketParams, IUnfollowInternalTicketParams, IListInternalTicketFollowerParams, ICreateBoardCardInternalTicketParams, ICreateBoardCardInternalTicketBody, ICreateInternalTicketResponse, IPaginateInternalTicketResponse, IGetInternalTicketResponse, IUpdateInternalTicketResponse, IArchiveInternalTicketResponse, IUnarchiveInternalTicketResponse, IDeleteInternalTicketResponse, ICreateInternalTicketMessageResponse, IUpdateInternalTicketMessageResponse, IDeleteInternalTicketMessageResponse, IPaginateInternalTicketMessageResponse, ICreateInternalTicketMessageAttachmentResponse, IDeleteInternalTicketMessageAttachmentResponse, ICreateInternalTicketAttachmentResponse, IDeleteInternalTicketAttachmentResponse, IPaginateInternalTicketActivityResponse, IFollowInternalTicketResponse, IUnfollowInternalTicketResponse, IListInternalTicketFollowerResponse, ICreateBoardCardInternalTicketResponse } from '../types';
|
|
1
|
+
import { ICreateInternalTicketParams, ICreateInternalTicketBody, IPaginateInternalTicketParams, IPaginateInternalTicketQuery, IGetInternalTicketParams, IUpdateInternalTicketParams, IUpdateInternalTicketBody, IArchiveInternalTicketParams, IUnarchiveInternalTicketParams, IDeleteInternalTicketParams, ICreateInternalTicketMessageParams, ICreateInternalTicketMessageBody, IUpdateInternalTicketMessageParams, IUpdateInternalTicketMessageBody, IDeleteInternalTicketMessageParams, IPaginateInternalTicketMessageParams, IPaginateInternalTicketMessageQuery, ICreateInternalTicketMessageAttachmentParams, ICreateInternalTicketMessageAttachmentBody, IDeleteInternalTicketMessageAttachmentParams, ICreateInternalTicketAttachmentParams, ICreateInternalTicketAttachmentBody, IDeleteInternalTicketAttachmentParams, IPaginateInternalTicketActivityParams, IPaginateInternalTicketActivityQuery, IFollowInternalTicketParams, IUnfollowInternalTicketParams, IListInternalTicketFollowerParams, ICreateBoardCardInternalTicketParams, ICreateBoardCardInternalTicketBody, IAddInternalTicketMessageReactionParams, IAddInternalTicketMessageReactionBody, IRemoveInternalTicketMessageReactionParams, ICreateInternalTicketResponse, IPaginateInternalTicketResponse, IGetInternalTicketResponse, IUpdateInternalTicketResponse, IArchiveInternalTicketResponse, IUnarchiveInternalTicketResponse, IDeleteInternalTicketResponse, ICreateInternalTicketMessageResponse, IUpdateInternalTicketMessageResponse, IDeleteInternalTicketMessageResponse, IPaginateInternalTicketMessageResponse, ICreateInternalTicketMessageAttachmentResponse, IDeleteInternalTicketMessageAttachmentResponse, ICreateInternalTicketAttachmentResponse, IDeleteInternalTicketAttachmentResponse, IPaginateInternalTicketActivityResponse, IFollowInternalTicketResponse, IUnfollowInternalTicketResponse, IListInternalTicketFollowerResponse, ICreateBoardCardInternalTicketResponse, IAddInternalTicketMessageReactionResponse, IRemoveInternalTicketMessageReactionResponse, IAddInternalTicketAssigneeParams, IAddInternalTicketAssigneeBody, IRemoveInternalTicketAssigneeParams, IListInternalTicketAssigneeParams, IListInternalTicketMembersParams, IListInternalTicketMembersQuery, IAddInternalTicketAssigneeResponse, IRemoveInternalTicketAssigneeResponse, IListInternalTicketAssigneeResponse, IListInternalTicketMembersResponse } from '../types';
|
|
2
2
|
export declare const createInternalTicket: (params: ICreateInternalTicketParams, body: ICreateInternalTicketBody) => Promise<ICreateInternalTicketResponse>;
|
|
3
3
|
export declare const paginateInternalTicket: (params: IPaginateInternalTicketParams, query: IPaginateInternalTicketQuery) => Promise<IPaginateInternalTicketResponse>;
|
|
4
4
|
export declare const getInternalTicket: (params: IGetInternalTicketParams) => Promise<IGetInternalTicketResponse>;
|
|
@@ -18,4 +18,10 @@ export declare const paginateInternalTicketActivity: (params: IPaginateInternalT
|
|
|
18
18
|
export declare const followInternalTicket: (params: IFollowInternalTicketParams) => Promise<IFollowInternalTicketResponse>;
|
|
19
19
|
export declare const unfollowInternalTicket: (params: IUnfollowInternalTicketParams) => Promise<IUnfollowInternalTicketResponse>;
|
|
20
20
|
export declare const listInternalTicketFollower: (params: IListInternalTicketFollowerParams) => Promise<IListInternalTicketFollowerResponse>;
|
|
21
|
+
export declare const addInternalTicketMessageReaction: (params: IAddInternalTicketMessageReactionParams, body: IAddInternalTicketMessageReactionBody) => Promise<IAddInternalTicketMessageReactionResponse>;
|
|
22
|
+
export declare const removeInternalTicketMessageReaction: (params: IRemoveInternalTicketMessageReactionParams) => Promise<IRemoveInternalTicketMessageReactionResponse>;
|
|
21
23
|
export declare const createBoardCardInternalTicket: (params: ICreateBoardCardInternalTicketParams, body: ICreateBoardCardInternalTicketBody) => Promise<ICreateBoardCardInternalTicketResponse>;
|
|
24
|
+
export declare const addInternalTicketAssignee: (params: IAddInternalTicketAssigneeParams, body: IAddInternalTicketAssigneeBody) => Promise<IAddInternalTicketAssigneeResponse>;
|
|
25
|
+
export declare const removeInternalTicketAssignee: (params: IRemoveInternalTicketAssigneeParams) => Promise<IRemoveInternalTicketAssigneeResponse>;
|
|
26
|
+
export declare const listInternalTicketAssignee: (params: IListInternalTicketAssigneeParams) => Promise<IListInternalTicketAssigneeResponse>;
|
|
27
|
+
export declare const listInternalTicketMembers: (params: IListInternalTicketMembersParams, query?: IListInternalTicketMembersQuery) => Promise<IListInternalTicketMembersResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createBoardCardInternalTicket = exports.listInternalTicketFollower = exports.unfollowInternalTicket = exports.followInternalTicket = exports.paginateInternalTicketActivity = exports.deleteInternalTicketAttachment = exports.createInternalTicketAttachment = exports.deleteInternalTicketMessageAttachment = exports.createInternalTicketMessageAttachment = exports.paginateInternalTicketMessage = exports.deleteInternalTicketMessage = exports.updateInternalTicketMessage = exports.createInternalTicketMessage = exports.deleteInternalTicket = exports.unarchiveInternalTicket = exports.archiveInternalTicket = exports.updateInternalTicket = exports.getInternalTicket = exports.paginateInternalTicket = exports.createInternalTicket = void 0;
|
|
3
|
+
exports.listInternalTicketMembers = exports.listInternalTicketAssignee = exports.removeInternalTicketAssignee = exports.addInternalTicketAssignee = exports.createBoardCardInternalTicket = exports.removeInternalTicketMessageReaction = exports.addInternalTicketMessageReaction = exports.listInternalTicketFollower = exports.unfollowInternalTicket = exports.followInternalTicket = exports.paginateInternalTicketActivity = exports.deleteInternalTicketAttachment = exports.createInternalTicketAttachment = exports.deleteInternalTicketMessageAttachment = exports.createInternalTicketMessageAttachment = exports.paginateInternalTicketMessage = exports.deleteInternalTicketMessage = exports.updateInternalTicketMessage = exports.createInternalTicketMessage = exports.deleteInternalTicket = exports.unarchiveInternalTicket = exports.archiveInternalTicket = exports.updateInternalTicket = exports.getInternalTicket = exports.paginateInternalTicket = exports.createInternalTicket = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const createInternalTicket = async (params, body) => {
|
|
6
6
|
const response = await __1.AbyssConsoleCore.axios.post(`/internal-ticket/${params.projectId}`, body);
|
|
@@ -97,8 +97,38 @@ const listInternalTicketFollower = async (params) => {
|
|
|
97
97
|
return response.data;
|
|
98
98
|
};
|
|
99
99
|
exports.listInternalTicketFollower = listInternalTicketFollower;
|
|
100
|
+
const addInternalTicketMessageReaction = async (params, body) => {
|
|
101
|
+
const response = await __1.AbyssConsoleCore.axios.post(`/internal-ticket/${params.projectId}/${params.internalTicketId}/message/${params.internalTicketMessageId}/reaction`, body);
|
|
102
|
+
return response.data;
|
|
103
|
+
};
|
|
104
|
+
exports.addInternalTicketMessageReaction = addInternalTicketMessageReaction;
|
|
105
|
+
const removeInternalTicketMessageReaction = async (params) => {
|
|
106
|
+
const response = await __1.AbyssConsoleCore.axios.delete(`/internal-ticket/${params.projectId}/${params.internalTicketId}/message/${params.internalTicketMessageId}/reaction/${params.internalTicketMessageReactionId}`);
|
|
107
|
+
return response.data;
|
|
108
|
+
};
|
|
109
|
+
exports.removeInternalTicketMessageReaction = removeInternalTicketMessageReaction;
|
|
100
110
|
const createBoardCardInternalTicket = async (params, body) => {
|
|
101
111
|
const response = await __1.AbyssConsoleCore.axios.post(`/internal-ticket/${params.projectId}/${params.internalTicketId}/create-board-card`, body);
|
|
102
112
|
return response.data;
|
|
103
113
|
};
|
|
104
114
|
exports.createBoardCardInternalTicket = createBoardCardInternalTicket;
|
|
115
|
+
const addInternalTicketAssignee = async (params, body) => {
|
|
116
|
+
const response = await __1.AbyssConsoleCore.axios.post(`/internal-ticket/${params.projectId}/${params.internalTicketId}/assignee`, body);
|
|
117
|
+
return response.data;
|
|
118
|
+
};
|
|
119
|
+
exports.addInternalTicketAssignee = addInternalTicketAssignee;
|
|
120
|
+
const removeInternalTicketAssignee = async (params) => {
|
|
121
|
+
const response = await __1.AbyssConsoleCore.axios.delete(`/internal-ticket/${params.projectId}/${params.internalTicketId}/assignee/${params.userId}`);
|
|
122
|
+
return response.data;
|
|
123
|
+
};
|
|
124
|
+
exports.removeInternalTicketAssignee = removeInternalTicketAssignee;
|
|
125
|
+
const listInternalTicketAssignee = async (params) => {
|
|
126
|
+
const response = await __1.AbyssConsoleCore.axios.get(`/internal-ticket/${params.projectId}/${params.internalTicketId}/assignee`);
|
|
127
|
+
return response.data;
|
|
128
|
+
};
|
|
129
|
+
exports.listInternalTicketAssignee = listInternalTicketAssignee;
|
|
130
|
+
const listInternalTicketMembers = async (params, query) => {
|
|
131
|
+
const response = await __1.AbyssConsoleCore.axios.get(`/internal-ticket/${params.projectId}/members`, { params: query });
|
|
132
|
+
return response.data;
|
|
133
|
+
};
|
|
134
|
+
exports.listInternalTicketMembers = listInternalTicketMembers;
|
package/dist/index.d.ts
CHANGED
|
@@ -133,6 +133,10 @@ type AbyssConsoleCoreSDK = {
|
|
|
133
133
|
create: typeof internalTicketApi.createInternalTicketMessageAttachment;
|
|
134
134
|
delete: typeof internalTicketApi.deleteInternalTicketMessageAttachment;
|
|
135
135
|
};
|
|
136
|
+
reaction: {
|
|
137
|
+
add: typeof internalTicketApi.addInternalTicketMessageReaction;
|
|
138
|
+
remove: typeof internalTicketApi.removeInternalTicketMessageReaction;
|
|
139
|
+
};
|
|
136
140
|
};
|
|
137
141
|
attachment: {
|
|
138
142
|
create: typeof internalTicketApi.createInternalTicketAttachment;
|
|
@@ -147,19 +151,40 @@ type AbyssConsoleCoreSDK = {
|
|
|
147
151
|
list: typeof internalTicketApi.listInternalTicketFollower;
|
|
148
152
|
};
|
|
149
153
|
createBoardCard: typeof internalTicketApi.createBoardCardInternalTicket;
|
|
154
|
+
assignee: {
|
|
155
|
+
add: typeof internalTicketApi.addInternalTicketAssignee;
|
|
156
|
+
remove: typeof internalTicketApi.removeInternalTicketAssignee;
|
|
157
|
+
list: typeof internalTicketApi.listInternalTicketAssignee;
|
|
158
|
+
};
|
|
159
|
+
members: {
|
|
160
|
+
list: typeof internalTicketApi.listInternalTicketMembers;
|
|
161
|
+
};
|
|
150
162
|
};
|
|
151
163
|
internalTicketConfig: {
|
|
164
|
+
section: {
|
|
165
|
+
create: typeof internalTicketConfigApi.createInternalTicketSection;
|
|
166
|
+
list: typeof internalTicketConfigApi.listInternalTicketSection;
|
|
167
|
+
update: typeof internalTicketConfigApi.updateInternalTicketSection;
|
|
168
|
+
delete: typeof internalTicketConfigApi.deleteInternalTicketSection;
|
|
169
|
+
archive: typeof internalTicketConfigApi.archiveInternalTicketSection;
|
|
170
|
+
unarchive: typeof internalTicketConfigApi.unarchiveInternalTicketSection;
|
|
171
|
+
getStats: typeof internalTicketConfigApi.getInternalTicketSectionStats;
|
|
172
|
+
};
|
|
152
173
|
category: {
|
|
153
174
|
create: typeof internalTicketConfigApi.createInternalTicketCategory;
|
|
154
175
|
list: typeof internalTicketConfigApi.listInternalTicketCategory;
|
|
155
176
|
update: typeof internalTicketConfigApi.updateInternalTicketCategory;
|
|
156
177
|
delete: typeof internalTicketConfigApi.deleteInternalTicketCategory;
|
|
178
|
+
archive: typeof internalTicketConfigApi.archiveInternalTicketCategory;
|
|
179
|
+
unarchive: typeof internalTicketConfigApi.unarchiveInternalTicketCategory;
|
|
157
180
|
};
|
|
158
181
|
priority: {
|
|
159
182
|
create: typeof internalTicketConfigApi.createInternalTicketPriority;
|
|
160
183
|
list: typeof internalTicketConfigApi.listInternalTicketPriority;
|
|
161
184
|
update: typeof internalTicketConfigApi.updateInternalTicketPriority;
|
|
162
185
|
delete: typeof internalTicketConfigApi.deleteInternalTicketPriority;
|
|
186
|
+
archive: typeof internalTicketConfigApi.archiveInternalTicketPriority;
|
|
187
|
+
unarchive: typeof internalTicketConfigApi.unarchiveInternalTicketPriority;
|
|
163
188
|
};
|
|
164
189
|
};
|
|
165
190
|
workflow: {
|
package/dist/index.js
CHANGED
|
@@ -237,6 +237,10 @@ class AbyssConsoleCore {
|
|
|
237
237
|
create: internalTicketApi.createInternalTicketMessageAttachment,
|
|
238
238
|
delete: internalTicketApi.deleteInternalTicketMessageAttachment,
|
|
239
239
|
},
|
|
240
|
+
reaction: {
|
|
241
|
+
add: internalTicketApi.addInternalTicketMessageReaction,
|
|
242
|
+
remove: internalTicketApi.removeInternalTicketMessageReaction,
|
|
243
|
+
},
|
|
240
244
|
},
|
|
241
245
|
attachment: {
|
|
242
246
|
create: internalTicketApi.createInternalTicketAttachment,
|
|
@@ -251,19 +255,40 @@ class AbyssConsoleCore {
|
|
|
251
255
|
list: internalTicketApi.listInternalTicketFollower,
|
|
252
256
|
},
|
|
253
257
|
createBoardCard: internalTicketApi.createBoardCardInternalTicket,
|
|
258
|
+
assignee: {
|
|
259
|
+
add: internalTicketApi.addInternalTicketAssignee,
|
|
260
|
+
remove: internalTicketApi.removeInternalTicketAssignee,
|
|
261
|
+
list: internalTicketApi.listInternalTicketAssignee,
|
|
262
|
+
},
|
|
263
|
+
members: {
|
|
264
|
+
list: internalTicketApi.listInternalTicketMembers,
|
|
265
|
+
},
|
|
254
266
|
},
|
|
255
267
|
internalTicketConfig: {
|
|
268
|
+
section: {
|
|
269
|
+
create: internalTicketConfigApi.createInternalTicketSection,
|
|
270
|
+
list: internalTicketConfigApi.listInternalTicketSection,
|
|
271
|
+
update: internalTicketConfigApi.updateInternalTicketSection,
|
|
272
|
+
delete: internalTicketConfigApi.deleteInternalTicketSection,
|
|
273
|
+
archive: internalTicketConfigApi.archiveInternalTicketSection,
|
|
274
|
+
unarchive: internalTicketConfigApi.unarchiveInternalTicketSection,
|
|
275
|
+
getStats: internalTicketConfigApi.getInternalTicketSectionStats,
|
|
276
|
+
},
|
|
256
277
|
category: {
|
|
257
278
|
create: internalTicketConfigApi.createInternalTicketCategory,
|
|
258
279
|
list: internalTicketConfigApi.listInternalTicketCategory,
|
|
259
280
|
update: internalTicketConfigApi.updateInternalTicketCategory,
|
|
260
281
|
delete: internalTicketConfigApi.deleteInternalTicketCategory,
|
|
282
|
+
archive: internalTicketConfigApi.archiveInternalTicketCategory,
|
|
283
|
+
unarchive: internalTicketConfigApi.unarchiveInternalTicketCategory,
|
|
261
284
|
},
|
|
262
285
|
priority: {
|
|
263
286
|
create: internalTicketConfigApi.createInternalTicketPriority,
|
|
264
287
|
list: internalTicketConfigApi.listInternalTicketPriority,
|
|
265
288
|
update: internalTicketConfigApi.updateInternalTicketPriority,
|
|
266
289
|
delete: internalTicketConfigApi.deleteInternalTicketPriority,
|
|
290
|
+
archive: internalTicketConfigApi.archiveInternalTicketPriority,
|
|
291
|
+
unarchive: internalTicketConfigApi.unarchiveInternalTicketPriority,
|
|
267
292
|
},
|
|
268
293
|
},
|
|
269
294
|
workflow: workflowSDK,
|
|
@@ -8,7 +8,12 @@ export declare enum InternalTicketSSEEvent {
|
|
|
8
8
|
MESSAGE_UPDATED = "MESSAGE_UPDATED",
|
|
9
9
|
MESSAGE_DELETED = "MESSAGE_DELETED",
|
|
10
10
|
ATTACHMENT_ADDED = "ATTACHMENT_ADDED",
|
|
11
|
-
ATTACHMENT_REMOVED = "ATTACHMENT_REMOVED"
|
|
11
|
+
ATTACHMENT_REMOVED = "ATTACHMENT_REMOVED",
|
|
12
|
+
REACTION_ADDED = "REACTION_ADDED",
|
|
13
|
+
REACTION_REMOVED = "REACTION_REMOVED",
|
|
14
|
+
SECTION_CREATED = "SECTION_CREATED",
|
|
15
|
+
SECTION_UPDATED = "SECTION_UPDATED",
|
|
16
|
+
SECTION_DELETED = "SECTION_DELETED"
|
|
12
17
|
}
|
|
13
18
|
export declare enum InternalTicketStatus {
|
|
14
19
|
OPEN = "OPEN",
|
|
@@ -20,7 +25,9 @@ export declare enum InternalTicketStatus {
|
|
|
20
25
|
export declare enum InternalTicketActivityType {
|
|
21
26
|
STATUS_CHANGED = "STATUS_CHANGED",
|
|
22
27
|
PRIORITY_CHANGED = "PRIORITY_CHANGED",
|
|
28
|
+
PRIORITY_CONFIRMED = "PRIORITY_CONFIRMED",
|
|
23
29
|
CATEGORY_CHANGED = "CATEGORY_CHANGED",
|
|
30
|
+
SECTION_CHANGED = "SECTION_CHANGED",
|
|
24
31
|
ASSIGNED = "ASSIGNED",
|
|
25
32
|
UNASSIGNED = "UNASSIGNED",
|
|
26
33
|
MESSAGE_ADDED = "MESSAGE_ADDED",
|
|
@@ -28,5 +35,7 @@ export declare enum InternalTicketActivityType {
|
|
|
28
35
|
ATTACHMENT_REMOVED = "ATTACHMENT_REMOVED",
|
|
29
36
|
ARCHIVED = "ARCHIVED",
|
|
30
37
|
UNARCHIVED = "UNARCHIVED",
|
|
31
|
-
BOARD_CARD_CREATED = "BOARD_CARD_CREATED"
|
|
38
|
+
BOARD_CARD_CREATED = "BOARD_CARD_CREATED",
|
|
39
|
+
FOLLOWER_ADDED = "FOLLOWER_ADDED",
|
|
40
|
+
FOLLOWER_REMOVED = "FOLLOWER_REMOVED"
|
|
32
41
|
}
|
|
@@ -13,6 +13,11 @@ var InternalTicketSSEEvent;
|
|
|
13
13
|
InternalTicketSSEEvent["MESSAGE_DELETED"] = "MESSAGE_DELETED";
|
|
14
14
|
InternalTicketSSEEvent["ATTACHMENT_ADDED"] = "ATTACHMENT_ADDED";
|
|
15
15
|
InternalTicketSSEEvent["ATTACHMENT_REMOVED"] = "ATTACHMENT_REMOVED";
|
|
16
|
+
InternalTicketSSEEvent["REACTION_ADDED"] = "REACTION_ADDED";
|
|
17
|
+
InternalTicketSSEEvent["REACTION_REMOVED"] = "REACTION_REMOVED";
|
|
18
|
+
InternalTicketSSEEvent["SECTION_CREATED"] = "SECTION_CREATED";
|
|
19
|
+
InternalTicketSSEEvent["SECTION_UPDATED"] = "SECTION_UPDATED";
|
|
20
|
+
InternalTicketSSEEvent["SECTION_DELETED"] = "SECTION_DELETED";
|
|
16
21
|
})(InternalTicketSSEEvent || (exports.InternalTicketSSEEvent = InternalTicketSSEEvent = {}));
|
|
17
22
|
var InternalTicketStatus;
|
|
18
23
|
(function (InternalTicketStatus) {
|
|
@@ -26,7 +31,9 @@ var InternalTicketActivityType;
|
|
|
26
31
|
(function (InternalTicketActivityType) {
|
|
27
32
|
InternalTicketActivityType["STATUS_CHANGED"] = "STATUS_CHANGED";
|
|
28
33
|
InternalTicketActivityType["PRIORITY_CHANGED"] = "PRIORITY_CHANGED";
|
|
34
|
+
InternalTicketActivityType["PRIORITY_CONFIRMED"] = "PRIORITY_CONFIRMED";
|
|
29
35
|
InternalTicketActivityType["CATEGORY_CHANGED"] = "CATEGORY_CHANGED";
|
|
36
|
+
InternalTicketActivityType["SECTION_CHANGED"] = "SECTION_CHANGED";
|
|
30
37
|
InternalTicketActivityType["ASSIGNED"] = "ASSIGNED";
|
|
31
38
|
InternalTicketActivityType["UNASSIGNED"] = "UNASSIGNED";
|
|
32
39
|
InternalTicketActivityType["MESSAGE_ADDED"] = "MESSAGE_ADDED";
|
|
@@ -35,4 +42,6 @@ var InternalTicketActivityType;
|
|
|
35
42
|
InternalTicketActivityType["ARCHIVED"] = "ARCHIVED";
|
|
36
43
|
InternalTicketActivityType["UNARCHIVED"] = "UNARCHIVED";
|
|
37
44
|
InternalTicketActivityType["BOARD_CARD_CREATED"] = "BOARD_CARD_CREATED";
|
|
45
|
+
InternalTicketActivityType["FOLLOWER_ADDED"] = "FOLLOWER_ADDED";
|
|
46
|
+
InternalTicketActivityType["FOLLOWER_REMOVED"] = "FOLLOWER_REMOVED";
|
|
38
47
|
})(InternalTicketActivityType || (exports.InternalTicketActivityType = InternalTicketActivityType = {}));
|
|
@@ -1,14 +1,58 @@
|
|
|
1
|
+
export interface ICreateInternalTicketSectionParams {
|
|
2
|
+
projectId: string;
|
|
3
|
+
}
|
|
4
|
+
export interface ICreateInternalTicketSectionBody {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
order?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface IListInternalTicketSectionParams {
|
|
12
|
+
projectId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IUpdateInternalTicketSectionParams {
|
|
15
|
+
projectId: string;
|
|
16
|
+
internalTicketSectionId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IUpdateInternalTicketSectionBody {
|
|
19
|
+
name?: string;
|
|
20
|
+
description?: string | null;
|
|
21
|
+
color?: string | null;
|
|
22
|
+
icon?: string | null;
|
|
23
|
+
order?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IDeleteInternalTicketSectionParams {
|
|
26
|
+
projectId: string;
|
|
27
|
+
internalTicketSectionId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IArchiveInternalTicketSectionParams {
|
|
30
|
+
projectId: string;
|
|
31
|
+
internalTicketSectionId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IUnarchiveInternalTicketSectionParams {
|
|
34
|
+
projectId: string;
|
|
35
|
+
internalTicketSectionId: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IGetInternalTicketSectionStatsParams {
|
|
38
|
+
projectId: string;
|
|
39
|
+
internalTicketSectionId: string;
|
|
40
|
+
}
|
|
1
41
|
export interface ICreateInternalTicketCategoryParams {
|
|
2
42
|
projectId: string;
|
|
3
43
|
}
|
|
4
44
|
export interface ICreateInternalTicketCategoryBody {
|
|
5
45
|
name: string;
|
|
46
|
+
sectionId: string;
|
|
6
47
|
color?: string;
|
|
7
48
|
description?: string;
|
|
8
49
|
}
|
|
9
50
|
export interface IListInternalTicketCategoryParams {
|
|
10
51
|
projectId: string;
|
|
11
52
|
}
|
|
53
|
+
export interface IListInternalTicketCategoryQuery {
|
|
54
|
+
sectionId?: string;
|
|
55
|
+
}
|
|
12
56
|
export interface IUpdateInternalTicketCategoryParams {
|
|
13
57
|
projectId: string;
|
|
14
58
|
internalTicketCategoryId: string;
|
|
@@ -18,22 +62,37 @@ export interface IUpdateInternalTicketCategoryBody {
|
|
|
18
62
|
color?: string;
|
|
19
63
|
description?: string;
|
|
20
64
|
order?: number;
|
|
65
|
+
isEnabled?: boolean;
|
|
21
66
|
}
|
|
22
67
|
export interface IDeleteInternalTicketCategoryParams {
|
|
23
68
|
projectId: string;
|
|
24
69
|
internalTicketCategoryId: string;
|
|
25
70
|
}
|
|
71
|
+
export interface IArchiveInternalTicketCategoryParams {
|
|
72
|
+
projectId: string;
|
|
73
|
+
internalTicketCategoryId: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IUnarchiveInternalTicketCategoryParams {
|
|
76
|
+
projectId: string;
|
|
77
|
+
internalTicketCategoryId: string;
|
|
78
|
+
}
|
|
26
79
|
export interface ICreateInternalTicketPriorityParams {
|
|
27
80
|
projectId: string;
|
|
28
81
|
}
|
|
29
82
|
export interface ICreateInternalTicketPriorityBody {
|
|
30
83
|
name: string;
|
|
84
|
+
sectionId: string;
|
|
31
85
|
color?: string;
|
|
32
86
|
level: number;
|
|
87
|
+
label?: string;
|
|
88
|
+
requirePriorityReason?: boolean;
|
|
33
89
|
}
|
|
34
90
|
export interface IListInternalTicketPriorityParams {
|
|
35
91
|
projectId: string;
|
|
36
92
|
}
|
|
93
|
+
export interface IListInternalTicketPriorityQuery {
|
|
94
|
+
sectionId?: string;
|
|
95
|
+
}
|
|
37
96
|
export interface IUpdateInternalTicketPriorityParams {
|
|
38
97
|
projectId: string;
|
|
39
98
|
internalTicketPriorityId: string;
|
|
@@ -43,8 +102,19 @@ export interface IUpdateInternalTicketPriorityBody {
|
|
|
43
102
|
color?: string;
|
|
44
103
|
level?: number;
|
|
45
104
|
isDefault?: boolean;
|
|
105
|
+
label?: string;
|
|
106
|
+
isEnabled?: boolean;
|
|
107
|
+
requirePriorityReason?: boolean;
|
|
46
108
|
}
|
|
47
109
|
export interface IDeleteInternalTicketPriorityParams {
|
|
48
110
|
projectId: string;
|
|
49
111
|
internalTicketPriorityId: string;
|
|
50
112
|
}
|
|
113
|
+
export interface IArchiveInternalTicketPriorityParams {
|
|
114
|
+
projectId: string;
|
|
115
|
+
internalTicketPriorityId: string;
|
|
116
|
+
}
|
|
117
|
+
export interface IUnarchiveInternalTicketPriorityParams {
|
|
118
|
+
projectId: string;
|
|
119
|
+
internalTicketPriorityId: string;
|
|
120
|
+
}
|
|
@@ -6,8 +6,10 @@ export interface ICreateInternalTicketParams {
|
|
|
6
6
|
export interface ICreateInternalTicketBody {
|
|
7
7
|
title: string;
|
|
8
8
|
description: string;
|
|
9
|
+
sectionId: string;
|
|
9
10
|
priorityId?: string;
|
|
10
11
|
categoryId?: string;
|
|
12
|
+
priorityReason?: string;
|
|
11
13
|
}
|
|
12
14
|
export interface IPaginateInternalTicketParams {
|
|
13
15
|
projectId: string;
|
|
@@ -16,6 +18,7 @@ export interface IPaginateInternalTicketQuery extends QueryPaginate {
|
|
|
16
18
|
status?: InternalTicketStatus;
|
|
17
19
|
priorityId?: string;
|
|
18
20
|
categoryId?: string;
|
|
21
|
+
sectionId?: string;
|
|
19
22
|
isArchived?: boolean;
|
|
20
23
|
search?: string;
|
|
21
24
|
assignedToUserId?: string;
|
|
@@ -34,7 +37,10 @@ export interface IUpdateInternalTicketBody {
|
|
|
34
37
|
status?: InternalTicketStatus;
|
|
35
38
|
priorityId?: string;
|
|
36
39
|
categoryId?: string;
|
|
40
|
+
sectionId?: string;
|
|
37
41
|
assignedToUserId?: string | null;
|
|
42
|
+
priorityReason?: string;
|
|
43
|
+
priorityCheckedAt?: Date;
|
|
38
44
|
}
|
|
39
45
|
export interface IArchiveInternalTicketParams {
|
|
40
46
|
projectId: string;
|
|
@@ -54,6 +60,8 @@ export interface ICreateInternalTicketMessageParams {
|
|
|
54
60
|
}
|
|
55
61
|
export interface ICreateInternalTicketMessageBody {
|
|
56
62
|
content: string;
|
|
63
|
+
replyToMessageId?: string;
|
|
64
|
+
mentionedUserIds?: string[];
|
|
57
65
|
}
|
|
58
66
|
export interface IUpdateInternalTicketMessageParams {
|
|
59
67
|
projectId: string;
|
|
@@ -116,6 +124,42 @@ export interface IListInternalTicketFollowerParams {
|
|
|
116
124
|
projectId: string;
|
|
117
125
|
internalTicketId: string;
|
|
118
126
|
}
|
|
127
|
+
export interface IAddInternalTicketMessageReactionParams {
|
|
128
|
+
projectId: string;
|
|
129
|
+
internalTicketId: string;
|
|
130
|
+
internalTicketMessageId: string;
|
|
131
|
+
}
|
|
132
|
+
export interface IAddInternalTicketMessageReactionBody {
|
|
133
|
+
emoji: string;
|
|
134
|
+
}
|
|
135
|
+
export interface IRemoveInternalTicketMessageReactionParams {
|
|
136
|
+
projectId: string;
|
|
137
|
+
internalTicketId: string;
|
|
138
|
+
internalTicketMessageId: string;
|
|
139
|
+
internalTicketMessageReactionId: string;
|
|
140
|
+
}
|
|
141
|
+
export interface IAddInternalTicketAssigneeParams {
|
|
142
|
+
projectId: string;
|
|
143
|
+
internalTicketId: string;
|
|
144
|
+
}
|
|
145
|
+
export interface IAddInternalTicketAssigneeBody {
|
|
146
|
+
userId: string;
|
|
147
|
+
}
|
|
148
|
+
export interface IRemoveInternalTicketAssigneeParams {
|
|
149
|
+
projectId: string;
|
|
150
|
+
internalTicketId: string;
|
|
151
|
+
userId: string;
|
|
152
|
+
}
|
|
153
|
+
export interface IListInternalTicketAssigneeParams {
|
|
154
|
+
projectId: string;
|
|
155
|
+
internalTicketId: string;
|
|
156
|
+
}
|
|
157
|
+
export interface IListInternalTicketMembersParams {
|
|
158
|
+
projectId: string;
|
|
159
|
+
}
|
|
160
|
+
export interface IListInternalTicketMembersQuery {
|
|
161
|
+
search?: string;
|
|
162
|
+
}
|
|
119
163
|
export interface ICreateBoardCardInternalTicketParams {
|
|
120
164
|
projectId: string;
|
|
121
165
|
internalTicketId: string;
|
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
import { IInternalTicketCategory } from '../../models/internal-ticket-category.model';
|
|
2
2
|
import { IInternalTicketPriority } from '../../models/internal-ticket-priority.model';
|
|
3
|
+
import { IInternalTicketSection } from '../../models/internal-ticket-section.model';
|
|
3
4
|
import { IResponse } from '../type-message/response';
|
|
5
|
+
export interface ICreateInternalTicketSectionData {
|
|
6
|
+
internalTicketSection: IInternalTicketSection;
|
|
7
|
+
}
|
|
8
|
+
export type ICreateInternalTicketSectionResponse = IResponse<ICreateInternalTicketSectionData>;
|
|
9
|
+
export interface IListInternalTicketSectionData {
|
|
10
|
+
internalTicketSections: IInternalTicketSection[];
|
|
11
|
+
}
|
|
12
|
+
export type IListInternalTicketSectionResponse = IResponse<IListInternalTicketSectionData>;
|
|
13
|
+
export interface IUpdateInternalTicketSectionData {
|
|
14
|
+
internalTicketSection: IInternalTicketSection;
|
|
15
|
+
}
|
|
16
|
+
export type IUpdateInternalTicketSectionResponse = IResponse<IUpdateInternalTicketSectionData>;
|
|
17
|
+
export interface IDeleteInternalTicketSectionData {
|
|
18
|
+
}
|
|
19
|
+
export type IDeleteInternalTicketSectionResponse = IResponse<IDeleteInternalTicketSectionData>;
|
|
20
|
+
export interface IArchiveInternalTicketSectionData {
|
|
21
|
+
internalTicketSection: IInternalTicketSection;
|
|
22
|
+
}
|
|
23
|
+
export type IArchiveInternalTicketSectionResponse = IResponse<IArchiveInternalTicketSectionData>;
|
|
24
|
+
export interface IUnarchiveInternalTicketSectionData {
|
|
25
|
+
internalTicketSection: IInternalTicketSection;
|
|
26
|
+
}
|
|
27
|
+
export type IUnarchiveInternalTicketSectionResponse = IResponse<IUnarchiveInternalTicketSectionData>;
|
|
28
|
+
export interface IGetInternalTicketSectionStatsData {
|
|
29
|
+
total: number;
|
|
30
|
+
open: number;
|
|
31
|
+
inProgress: number;
|
|
32
|
+
waitingForResponse: number;
|
|
33
|
+
resolved: number;
|
|
34
|
+
closed: number;
|
|
35
|
+
}
|
|
36
|
+
export type IGetInternalTicketSectionStatsResponse = IResponse<IGetInternalTicketSectionStatsData>;
|
|
4
37
|
export interface ICreateInternalTicketCategoryData {
|
|
5
38
|
internalTicketCategory: IInternalTicketCategory;
|
|
6
39
|
}
|
|
@@ -16,6 +49,14 @@ export type IUpdateInternalTicketCategoryResponse = IResponse<IUpdateInternalTic
|
|
|
16
49
|
export interface IDeleteInternalTicketCategoryData {
|
|
17
50
|
}
|
|
18
51
|
export type IDeleteInternalTicketCategoryResponse = IResponse<IDeleteInternalTicketCategoryData>;
|
|
52
|
+
export interface IArchiveInternalTicketCategoryData {
|
|
53
|
+
internalTicketCategory: IInternalTicketCategory;
|
|
54
|
+
}
|
|
55
|
+
export type IArchiveInternalTicketCategoryResponse = IResponse<IArchiveInternalTicketCategoryData>;
|
|
56
|
+
export interface IUnarchiveInternalTicketCategoryData {
|
|
57
|
+
internalTicketCategory: IInternalTicketCategory;
|
|
58
|
+
}
|
|
59
|
+
export type IUnarchiveInternalTicketCategoryResponse = IResponse<IUnarchiveInternalTicketCategoryData>;
|
|
19
60
|
export interface ICreateInternalTicketPriorityData {
|
|
20
61
|
internalTicketPriority: IInternalTicketPriority;
|
|
21
62
|
}
|
|
@@ -31,3 +72,11 @@ export type IUpdateInternalTicketPriorityResponse = IResponse<IUpdateInternalTic
|
|
|
31
72
|
export interface IDeleteInternalTicketPriorityData {
|
|
32
73
|
}
|
|
33
74
|
export type IDeleteInternalTicketPriorityResponse = IResponse<IDeleteInternalTicketPriorityData>;
|
|
75
|
+
export interface IArchiveInternalTicketPriorityData {
|
|
76
|
+
internalTicketPriority: IInternalTicketPriority;
|
|
77
|
+
}
|
|
78
|
+
export type IArchiveInternalTicketPriorityResponse = IResponse<IArchiveInternalTicketPriorityData>;
|
|
79
|
+
export interface IUnarchiveInternalTicketPriorityData {
|
|
80
|
+
internalTicketPriority: IInternalTicketPriority;
|
|
81
|
+
}
|
|
82
|
+
export type IUnarchiveInternalTicketPriorityResponse = IResponse<IUnarchiveInternalTicketPriorityData>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IInternalTicket } from '../../models/internal-ticket.model';
|
|
2
|
+
import { IInternalTicketAssignee, IInternalTicketMember } from '../../models/internal-ticket-assignee.model';
|
|
2
3
|
import { IInternalTicketMessage } from '../../models/internal-ticket-message.model';
|
|
4
|
+
import { IInternalTicketMessageReaction } from '../../models/internal-ticket-message-reaction.model';
|
|
3
5
|
import { IInternalTicketActivity } from '../../models/internal-ticket-activity.model';
|
|
4
6
|
import { IInternalTicketFollower } from '../../models/internal-ticket-follower.model';
|
|
5
7
|
import { IResponse } from '../type-message/response';
|
|
@@ -67,6 +69,13 @@ export interface IListInternalTicketFollowerData {
|
|
|
67
69
|
internalTicketFollowers: IInternalTicketFollower[];
|
|
68
70
|
}
|
|
69
71
|
export type IListInternalTicketFollowerResponse = IResponse<IListInternalTicketFollowerData>;
|
|
72
|
+
export interface IAddInternalTicketMessageReactionData {
|
|
73
|
+
internalTicketMessageReaction: IInternalTicketMessageReaction;
|
|
74
|
+
}
|
|
75
|
+
export type IAddInternalTicketMessageReactionResponse = IResponse<IAddInternalTicketMessageReactionData>;
|
|
76
|
+
export interface IRemoveInternalTicketMessageReactionData {
|
|
77
|
+
}
|
|
78
|
+
export type IRemoveInternalTicketMessageReactionResponse = IResponse<IRemoveInternalTicketMessageReactionData>;
|
|
70
79
|
export interface IInternalTicketSSEPayloadInput {
|
|
71
80
|
projectId: string;
|
|
72
81
|
internalTicketId: string;
|
|
@@ -75,6 +84,11 @@ export interface IInternalTicketSSEPayloadInput {
|
|
|
75
84
|
attachmentId?: string;
|
|
76
85
|
previousStatus?: string;
|
|
77
86
|
newStatus?: string;
|
|
87
|
+
sectionId?: string;
|
|
88
|
+
reactionId?: string;
|
|
89
|
+
emoji?: string;
|
|
90
|
+
mentionedUserIds?: string[];
|
|
91
|
+
replyToMessageId?: string;
|
|
78
92
|
}
|
|
79
93
|
export interface IInternalTicketSSEPayload extends IInternalTicketSSEPayloadInput {
|
|
80
94
|
timestamp: string;
|
|
@@ -91,3 +105,18 @@ export interface ICreateBoardCardInternalTicketData {
|
|
|
91
105
|
};
|
|
92
106
|
}
|
|
93
107
|
export type ICreateBoardCardInternalTicketResponse = IResponse<ICreateBoardCardInternalTicketData>;
|
|
108
|
+
export interface IAddInternalTicketAssigneeData {
|
|
109
|
+
internalTicketAssignee: IInternalTicketAssignee;
|
|
110
|
+
}
|
|
111
|
+
export type IAddInternalTicketAssigneeResponse = IResponse<IAddInternalTicketAssigneeData>;
|
|
112
|
+
export interface IRemoveInternalTicketAssigneeData {
|
|
113
|
+
}
|
|
114
|
+
export type IRemoveInternalTicketAssigneeResponse = IResponse<IRemoveInternalTicketAssigneeData>;
|
|
115
|
+
export interface IListInternalTicketAssigneeData {
|
|
116
|
+
internalTicketAssignees: IInternalTicketAssignee[];
|
|
117
|
+
}
|
|
118
|
+
export type IListInternalTicketAssigneeResponse = IResponse<IListInternalTicketAssigneeData>;
|
|
119
|
+
export interface IListInternalTicketMembersData {
|
|
120
|
+
members: IInternalTicketMember[];
|
|
121
|
+
}
|
|
122
|
+
export type IListInternalTicketMembersResponse = IResponse<IListInternalTicketMembersData>;
|
|
@@ -24,6 +24,9 @@ export * from './models/internal-ticket.model';
|
|
|
24
24
|
export * from './models/internal-ticket-category.model';
|
|
25
25
|
export * from './models/internal-ticket-priority.model';
|
|
26
26
|
export * from './models/internal-ticket-message.model';
|
|
27
|
+
export * from './models/internal-ticket-message-reaction.model';
|
|
27
28
|
export * from './models/internal-ticket-attachment.model';
|
|
28
29
|
export * from './models/internal-ticket-activity.model';
|
|
29
30
|
export * from './models/internal-ticket-follower.model';
|
|
31
|
+
export * from './models/internal-ticket-section.model';
|
|
32
|
+
export * from './models/internal-ticket-assignee.model';
|
|
@@ -40,6 +40,9 @@ __exportStar(require("./models/internal-ticket.model"), exports);
|
|
|
40
40
|
__exportStar(require("./models/internal-ticket-category.model"), exports);
|
|
41
41
|
__exportStar(require("./models/internal-ticket-priority.model"), exports);
|
|
42
42
|
__exportStar(require("./models/internal-ticket-message.model"), exports);
|
|
43
|
+
__exportStar(require("./models/internal-ticket-message-reaction.model"), exports);
|
|
43
44
|
__exportStar(require("./models/internal-ticket-attachment.model"), exports);
|
|
44
45
|
__exportStar(require("./models/internal-ticket-activity.model"), exports);
|
|
45
46
|
__exportStar(require("./models/internal-ticket-follower.model"), exports);
|
|
47
|
+
__exportStar(require("./models/internal-ticket-section.model"), exports);
|
|
48
|
+
__exportStar(require("./models/internal-ticket-assignee.model"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IInternalTicketAssignee {
|
|
2
|
+
id: string;
|
|
3
|
+
internalTicketId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
assignedByUserId: string;
|
|
6
|
+
createdAt?: Date;
|
|
7
|
+
updatedAt?: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface IInternalTicketMember {
|
|
10
|
+
userId: string;
|
|
11
|
+
displayName?: string;
|
|
12
|
+
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { IInternalTicket } from './internal-ticket.model';
|
|
2
|
+
import { IInternalTicketSection } from './internal-ticket-section.model';
|
|
2
3
|
export interface IInternalTicketCategory {
|
|
3
4
|
id: string;
|
|
4
5
|
projectId: string;
|
|
6
|
+
sectionId: string;
|
|
5
7
|
name: string;
|
|
6
8
|
color: string | null;
|
|
7
9
|
description: string | null;
|
|
8
10
|
order: number;
|
|
11
|
+
isEnabled: boolean;
|
|
12
|
+
archivedAt: Date | null;
|
|
9
13
|
createdAt?: Date;
|
|
10
14
|
updatedAt?: Date;
|
|
15
|
+
internalTicketSection?: IInternalTicketSection;
|
|
11
16
|
internalTicket?: IInternalTicket[];
|
|
12
17
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IInternalTicketMessage } from './internal-ticket-message.model';
|
|
2
|
+
export interface IInternalTicketMessageReaction {
|
|
3
|
+
id: string;
|
|
4
|
+
internalTicketMessageId: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
emoji: string;
|
|
7
|
+
createdAt?: Date;
|
|
8
|
+
internalTicketMessage?: IInternalTicketMessage;
|
|
9
|
+
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { IInternalTicket } from './internal-ticket.model';
|
|
2
2
|
import { IInternalTicketAttachment } from './internal-ticket-attachment.model';
|
|
3
|
+
import { IInternalTicketMessageReaction } from './internal-ticket-message-reaction.model';
|
|
3
4
|
export interface IInternalTicketMessage {
|
|
4
5
|
id: string;
|
|
5
6
|
internalTicketId: string;
|
|
6
7
|
userId: string;
|
|
7
8
|
content: string;
|
|
9
|
+
replyToMessageId: string | null;
|
|
10
|
+
mentionedUserIds: string[];
|
|
8
11
|
createdAt?: Date;
|
|
9
12
|
updatedAt?: Date;
|
|
10
13
|
internalTicket?: IInternalTicket;
|
|
14
|
+
replyToMessage?: IInternalTicketMessage | null;
|
|
11
15
|
internalTicketAttachment?: IInternalTicketAttachment[];
|
|
16
|
+
internalTicketMessageReaction?: IInternalTicketMessageReaction[];
|
|
12
17
|
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { IInternalTicket } from './internal-ticket.model';
|
|
2
|
+
import { IInternalTicketSection } from './internal-ticket-section.model';
|
|
2
3
|
export interface IInternalTicketPriority {
|
|
3
4
|
id: string;
|
|
4
5
|
projectId: string;
|
|
6
|
+
sectionId: string;
|
|
5
7
|
name: string;
|
|
8
|
+
label: string | null;
|
|
6
9
|
color: string | null;
|
|
7
10
|
level: number;
|
|
8
11
|
isDefault: boolean;
|
|
12
|
+
isEnabled: boolean;
|
|
13
|
+
requirePriorityReason: boolean;
|
|
14
|
+
archivedAt: Date | null;
|
|
9
15
|
createdAt?: Date;
|
|
10
16
|
updatedAt?: Date;
|
|
17
|
+
internalTicketSection?: IInternalTicketSection;
|
|
11
18
|
internalTicket?: IInternalTicket[];
|
|
12
19
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IInternalTicketCategory } from './internal-ticket-category.model';
|
|
2
|
+
import { IInternalTicketPriority } from './internal-ticket-priority.model';
|
|
3
|
+
import { IInternalTicket } from './internal-ticket.model';
|
|
4
|
+
export interface IInternalTicketSection {
|
|
5
|
+
id: string;
|
|
6
|
+
projectId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
color: string | null;
|
|
10
|
+
icon: string | null;
|
|
11
|
+
order: number;
|
|
12
|
+
archivedAt: Date | null;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
internalTicketCategory?: IInternalTicketCategory[];
|
|
16
|
+
internalTicketPriority?: IInternalTicketPriority[];
|
|
17
|
+
internalTicket?: IInternalTicket[];
|
|
18
|
+
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { InternalTicketStatus } from '../../enum';
|
|
2
|
+
import { IInternalTicketAssignee } from './internal-ticket-assignee.model';
|
|
2
3
|
import { IInternalTicketCategory } from './internal-ticket-category.model';
|
|
3
4
|
import { IInternalTicketMessage } from './internal-ticket-message.model';
|
|
4
5
|
import { IInternalTicketActivity } from './internal-ticket-activity.model';
|
|
5
6
|
import { IInternalTicketAttachment } from './internal-ticket-attachment.model';
|
|
6
7
|
import { IInternalTicketFollower } from './internal-ticket-follower.model';
|
|
7
8
|
import { IInternalTicketPriority } from './internal-ticket-priority.model';
|
|
9
|
+
import { IInternalTicketSection } from './internal-ticket-section.model';
|
|
8
10
|
export interface IInternalTicket {
|
|
9
11
|
id: string;
|
|
10
12
|
projectId: string;
|
|
13
|
+
sectionId: string;
|
|
11
14
|
title: string;
|
|
12
15
|
description: string;
|
|
13
16
|
status: InternalTicketStatus;
|
|
@@ -15,14 +18,18 @@ export interface IInternalTicket {
|
|
|
15
18
|
categoryId: string | null;
|
|
16
19
|
createdByUserId: string;
|
|
17
20
|
assignedToUserId: string | null;
|
|
21
|
+
priorityCheckedAt: Date | null;
|
|
22
|
+
priorityReason: string | null;
|
|
18
23
|
archivedAt: Date | null;
|
|
19
24
|
closedAt: Date | null;
|
|
20
25
|
createdAt?: Date;
|
|
21
26
|
updatedAt?: Date;
|
|
27
|
+
internalTicketSection?: IInternalTicketSection;
|
|
22
28
|
internalTicketCategory?: IInternalTicketCategory;
|
|
23
29
|
internalTicketPriority?: IInternalTicketPriority;
|
|
24
30
|
internalTicketMessage?: IInternalTicketMessage[];
|
|
25
31
|
internalTicketActivity?: IInternalTicketActivity[];
|
|
26
32
|
internalTicketAttachment?: IInternalTicketAttachment[];
|
|
27
33
|
internalTicketFollower?: IInternalTicketFollower[];
|
|
34
|
+
internalTicketAssignee?: IInternalTicketAssignee[];
|
|
28
35
|
}
|