14 lines
497 B
TypeScript
14 lines
497 B
TypeScript
import { createActionGroup, emptyProps, props } from '@ngrx/store';
|
|
|
|
export const GorodarActions = createActionGroup({
|
|
source: 'Gorodar',
|
|
events: {
|
|
'Take Photo': props<{ landmarkId: string }>(),
|
|
'Photo Captured': props<{ landmarkId: string; photo: string }>(),
|
|
'Photo Cancelled': emptyProps(),
|
|
'Claim Step Changed': props<{ step: number }>(),
|
|
'Claim Completed': props<{ landmarkId: string; photo: string; collectedAt: string }>(),
|
|
'Claim Reset': emptyProps(),
|
|
},
|
|
});
|