Skip to content

Instantly share code, notes, and snippets.

@arminyahya
Created February 22, 2020 05:08
Show Gist options
  • Save arminyahya/909efa71853423629c726f3fc401624b to your computer and use it in GitHub Desktop.
Save arminyahya/909efa71853423629c726f3fc401624b to your computer and use it in GitHub Desktop.
This is shape of DocumentListContext
export class DocumentStore {
referralStore: ReferralStore;
@observable expandedDocumentId: number;
documentListType: number;
resetList?: () => void;
@observable readedDocumentsId: number[] = [];
@observable readedReferredId: number[] = [];
@observable documentsWithNewNote: number[] = [];
@observable newDeletedDocumentNote: number[] = [];
@observable confirmingDocument: boolean;
@observable advanceSearchVisibility: boolean;
@observable tagSearchVisibility: boolean;
@observable documents: DocumentUiModel[] = [];
@observable isAllChecked = false;
@observable exceptedListIDies: number[] = [];
lastCheckedIndex = -1;
@observable totalCount = 0;
advancedSearchData?: AdvancedSearchDataModel;
personalFolderSearchData?: VisibleDocumentDataModel;
@observable orderBy: SortValues = 'CONVERT(date,RegisterationDate) DESC,IndicatorNumber DESC';
@observable listArchiveCenter?: number;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment