blob: 3f38c4c3af6ed8f61fbe8c3055e12a2848ada331 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
import {createAction, props} from "@ngrx/store";
import {IAPIAttachmentModel} from "../../../core/api/statements";
import {IStatementEntity} from "../model";
export const fetchAllStatementsAction = createAction(
"[Dashboard] Fetch all statements"
);
export const fetchStatementDetailsAction = createAction(
"[Details/Edit] Fetch statement's details",
props<{ statementId: number; withoutConfiguration?: boolean }>()
);
export const setStatementDetails = createAction(
"[API] Set statement's details",
props<{ statementId: number, details: IStatementEntity }>()
);
export const setAttachments = createAction(
"[API] Set statement's attachments",
props<{ statementId: number, attachments: IAPIAttachmentModel[] }>()
);