summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/boards/constants.js')
-rw-r--r--app/assets/javascripts/boards/constants.js42
1 files changed, 39 insertions, 3 deletions
diff --git a/app/assets/javascripts/boards/constants.js b/app/assets/javascripts/boards/constants.js
index 4ebd30fe67b..d88774d11c1 100644
--- a/app/assets/javascripts/boards/constants.js
+++ b/app/assets/javascripts/boards/constants.js
@@ -1,10 +1,28 @@
+import boardListsQuery from 'ee_else_ce/boards/graphql/board_lists.query.graphql';
import { __ } from '~/locale';
import updateEpicSubscriptionMutation from '~/sidebar/queries/update_epic_subscription.mutation.graphql';
import updateEpicTitleMutation from '~/sidebar/queries/update_epic_title.mutation.graphql';
import boardBlockingIssuesQuery from './graphql/board_blocking_issues.query.graphql';
+import destroyBoardListMutation from './graphql/board_list_destroy.mutation.graphql';
+import updateBoardListMutation from './graphql/board_list_update.mutation.graphql';
+
import issueSetSubscriptionMutation from './graphql/issue_set_subscription.mutation.graphql';
import issueSetTitleMutation from './graphql/issue_set_title.mutation.graphql';
+export const SupportedFilters = [
+ 'assigneeUsername',
+ 'authorUsername',
+ 'labelName',
+ 'milestoneTitle',
+ 'releaseTag',
+ 'search',
+ 'myReactionEmoji',
+ 'assigneeId',
+];
+
+/* eslint-disable-next-line @gitlab/require-i18n-strings */
+export const AssigneeIdParamValues = ['Any', 'None'];
+
export const issuableTypes = {
issue: 'issue',
epic: 'epic',
@@ -46,9 +64,10 @@ export const NOT_FILTER = 'not[';
export const flashAnimationDuration = 2000;
-export default {
- BoardType,
- ListType,
+export const listsQuery = {
+ [issuableTypes.issue]: {
+ query: boardListsQuery,
+ },
};
export const blockingIssuablesQueries = {
@@ -57,6 +76,18 @@ export const blockingIssuablesQueries = {
},
};
+export const updateListQueries = {
+ [issuableTypes.issue]: {
+ mutation: updateBoardListMutation,
+ },
+};
+
+export const deleteListQueries = {
+ [issuableTypes.issue]: {
+ mutation: destroyBoardListMutation,
+ },
+};
+
export const titleQueries = {
[issuableTypes.issue]: {
mutation: issueSetTitleMutation,
@@ -74,3 +105,8 @@ export const subscriptionQueries = {
mutation: updateEpicSubscriptionMutation,
},
};
+
+export default {
+ BoardType,
+ ListType,
+};