import { ActionReducerMap , createSelector , createFeatureSelector } from '@ngrx/store' ; import { BulkUploadFileInfo , Question } from 'shared-library/shared/model' ; import { bulkUploadFileInfos , userBulkUploadFileInfos , bulkUploadPublishedQuestions , bulkUploadUnpublishedQuestions , bulkUploadFileUrl , bulkUploadArchiveStatus , bulkUploadFileInfo , getArchiveToggleState , getArchiveList } from './bulk.reducer' ; export * from './bulk.reducer' ; export interface BulkState { bulkUploadFileInfos : BulkUploadFileInfo [ ] ; userBulkUploadFileInfos : BulkUploadFileInfo [ ] ; bulkUploadPublishedQuestions : Question [ ] ; bulkUploadUnpublishedQuestions : Question [ ] ; bulkUploadFileUrl : string ; bulkUploadArchiveStatus : string ; bulkUploadFileInfo : BulkUploadFileInfo ; getArchiveToggleState : boolean ; getArchiveList : BulkUploadFileInfo [ ] ; } export const reducer = { bulkUploadFileInfos : bulkUploadFileInfos , userBulkUploadFileInfos : userBulkUploadFileInfos , bulkUploadPublishedQuestions : bulkUploadPublishedQuestions , bulkUploadUnpublishedQuestions : bulkUploadUnpublishedQuestions , bulkUploadFileUrl : bulkUploadFileUrl , bulkUploadArchiveStatus : bulkUploadArchiveStatus , bulkUploadFileInfo : bulkUploadFileInfo , getArchiveToggleState : getArchiveToggleState , getArchiveList : getArchiveList } ; export const bulkState = createFeatureSelector < BulkState > ( 'bulk' ) ;