tidy(ui): remove all refs to boards thunks

This commit is contained in:
psychedelicious 2023-06-22 11:34:18 +10:00
parent 3c04340f3f
commit 10008859a4
2 changed files with 0 additions and 54 deletions

View File

@ -9,7 +9,6 @@ import { imageMetadataReceived } from 'services/thunks/image';
import { sessionCanceled } from 'services/thunks/session';
import { isImageOutput } from 'services/types/guards';
import { progressImageSet } from 'features/system/store/systemSlice';
import { imageAddedToBoard } from '../../../../../../services/thunks/board';
import { api } from 'services/apiSlice';
const moduleLog = log.child({ namespace: 'socketio' });

View File

@ -1,53 +0,0 @@
import { createAppAsyncThunk } from '../../app/store/storeUtils';
import { BoardsService } from '../api';
/**
* `BoardsService.listBoards()` thunk
*/
export const receivedBoards = createAppAsyncThunk(
'api/receivedBoards',
async (_, { getState }) => {
const response = await BoardsService.listBoards({});
return response;
}
);
type BoardCreatedArg = Parameters<(typeof BoardsService)['createBoard']>[0];
export const boardCreated = createAppAsyncThunk(
'api/boardCreated',
async (arg: BoardCreatedArg) => {
const response = await BoardsService.createBoard(arg);
return response;
}
);
export const boardDeleted = createAppAsyncThunk(
'api/boardDeleted',
async (boardId: string) => {
await BoardsService.deleteBoard({ boardId });
return boardId;
}
);
type BoardUpdatedArg = Parameters<(typeof BoardsService)['updateBoard']>[0];
export const boardUpdated = createAppAsyncThunk(
'api/boardUpdated',
async (arg: BoardUpdatedArg) => {
const response = await BoardsService.updateBoard(arg);
return response;
}
);
type ImageAddedToBoardArg = Parameters<
(typeof BoardsService)['createBoardImage']
>[0]['requestBody'];
export const imageAddedToBoard = createAppAsyncThunk(
'api/imageAddedToBoard',
async (arg: ImageAddedToBoardArg) => {
const response = await BoardsService.createBoardImage(arg);
return response;
}
);