workspaceActions: {
    acceptInvite: AsyncThunk<
        string,
        { inviteId: string; workspaceId: string },
        AsyncThunkConfig,
    >;
    fetchWorkspaceById: AsyncThunk<IWorkspace, string, AsyncThunkConfig>;
    fetchWorkspaces: AsyncThunk<
        IPaginatedData<IWorkspaceUser>,
        { [key: string]: string | number | boolean },
        AsyncThunkConfig,
    >;
    fetchWorkspaceUser: AsyncThunk<IWorkspaceUser, void, AsyncThunkConfig>;
    rejectInvite: AsyncThunk<
        string,
        { inviteId: string; workspaceId: string },
        AsyncThunkConfig,
    >;
    reset: ActionCreatorWithoutPayload<"workspaceReducer/reset">;
    setSelectedWorkSpace: ActionCreatorWithOptionalPayload<
        IWorkspace,
        "workspaceReducer/setSelectedWorkSpace",
    >;
    setWorkspaces: ActionCreatorWithOptionalPayload<
        IPaginatedData<IWorkspaceUser>,
        "workspaceReducer/setWorkspaces",
    >;
    updateWorkspaceUser: AsyncThunk<
        IWorkspaceUser,
        { isAvailable: boolean; reasonId?: string; workspaceId: string },
        AsyncThunkConfig,
    >;
} = ...

Type declaration

  • acceptInvite: AsyncThunk<string, { inviteId: string; workspaceId: string }, AsyncThunkConfig>
  • fetchWorkspaceById: AsyncThunk<IWorkspace, string, AsyncThunkConfig>
  • fetchWorkspaces: AsyncThunk<
        IPaginatedData<IWorkspaceUser>,
        { [key: string]: string | number | boolean },
        AsyncThunkConfig,
    >
  • fetchWorkspaceUser: AsyncThunk<IWorkspaceUser, void, AsyncThunkConfig>
  • rejectInvite: AsyncThunk<string, { inviteId: string; workspaceId: string }, AsyncThunkConfig>
  • reset: ActionCreatorWithoutPayload<"workspaceReducer/reset">
  • setSelectedWorkSpace: ActionCreatorWithOptionalPayload<
        IWorkspace,
        "workspaceReducer/setSelectedWorkSpace",
    >
  • setWorkspaces: ActionCreatorWithOptionalPayload<
        IPaginatedData<IWorkspaceUser>,
        "workspaceReducer/setWorkspaces",
    >
  • updateWorkspaceUser: AsyncThunk<
        IWorkspaceUser,
        { isAvailable: boolean; reasonId?: string; workspaceId: string },
        AsyncThunkConfig,
    >