Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | 42x 42x 42x 42x | import NS from './modules.types';
import createFq from './utils';
export const ME_GROUPS_MUT = Object.freeze({
set: 'SET',
setLoading: 'SET_LOADING',
setCreating: 'SET_CREATING',
setError: 'SET_ERROR',
setPagination: 'SET_PAGINATION',
setCurrentMeGroup: 'SET_CURRENT_ME_GROUP',
addMeGroup: 'ADD_ME_GROUP',
updateMeGroupInList: 'UPDATE_ME_GROUP_IN_LIST',
removeMeGroup: 'REMOVE_ME_GROUP',
});
export const ME_GROUPS_ACT = Object.freeze({
hydrate: 'HYDRATE',
load: 'LOAD',
loadSingle: 'LOAD_SINGLE',
create: 'CREATE',
update: 'UPDATE',
delete: 'DELETE',
});
export const ME_GROUPS_GET = Object.freeze({
meGroups: 'meGroups',
isLoading: 'isLoading',
isCreating: 'isCreating',
error: 'error',
errorMessage: 'errorMessage',
pagination: 'pagination',
currentMeGroup: 'currentMeGroup',
});
export const ME_GROUPS_FQ = Object.freeze({
getters: Object.freeze({
meGroups: createFq(NS.meGroups, ME_GROUPS_GET.meGroups),
isLoading: createFq(NS.meGroups, ME_GROUPS_GET.isLoading),
isCreating: createFq(NS.meGroups, ME_GROUPS_GET.isCreating),
error: createFq(NS.meGroups, ME_GROUPS_GET.error),
errorMessage: createFq(NS.meGroups, ME_GROUPS_GET.errorMessage),
pagination: createFq(NS.meGroups, ME_GROUPS_GET.pagination),
currentMeGroup: createFq(NS.meGroups, ME_GROUPS_GET.currentMeGroup),
}),
actions: Object.freeze({
hydrate: createFq(NS.meGroups, ME_GROUPS_ACT.hydrate),
load: createFq(NS.meGroups, ME_GROUPS_ACT.load),
loadSingle: createFq(NS.meGroups, ME_GROUPS_ACT.loadSingle),
create: createFq(NS.meGroups, ME_GROUPS_ACT.create),
update: createFq(NS.meGroups, ME_GROUPS_ACT.update),
delete: createFq(NS.meGroups, ME_GROUPS_ACT.delete),
}),
mutations: Object.freeze({
set: createFq(NS.meGroups, ME_GROUPS_MUT.set),
setLoading: createFq(NS.meGroups, ME_GROUPS_MUT.setLoading),
setCreating: createFq(NS.meGroups, ME_GROUPS_MUT.setCreating),
setError: createFq(NS.meGroups, ME_GROUPS_MUT.setError),
setPagination: createFq(NS.meGroups, ME_GROUPS_MUT.setPagination),
setCurrentMeGroup: createFq(NS.meGroups, ME_GROUPS_MUT.setCurrentMeGroup),
addMeGroup: createFq(NS.meGroups, ME_GROUPS_MUT.addMeGroup),
updateMeGroupInList: createFq(
NS.meGroups,
ME_GROUPS_MUT.updateMeGroupInList,
),
removeMeGroup: createFq(NS.meGroups, ME_GROUPS_MUT.removeMeGroup),
}),
});
|