import { SimpleStringMap } from '@yourcause/common'; import { BaseYcState, RegisterYCState } from '@yourcause/common/state'; import { InKindCategory, InKindCategoryItemStat } from './in-kind.typing'; @RegisterYCState() export class InKindState extends BaseYcState { readonly categories: InKindCategory[]; readonly categoriesByClientMap: { [clientId: number]: InKindCategory[]; } = {}; readonly categoriesForApplicant: InKindCategory[]; readonly allItems: InKindCategoryItemStat[]; readonly allItemsMap: SimpleStringMap = {}; readonly categoryItemMap: Record = {}; }