import { EventEmitter } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { TreeService } from '../tree/tree.service'; import { PublicDataService } from '../public-data/public-data.service'; import { IEditorConfig } from '../../interfaces/editor'; import { ConfigService } from '../config/config.service'; import { ToasterService } from '../../services/toaster/toaster.service'; import { EditorTelemetryService } from '../../services/telemetry/telemetry.service'; import { DataService } from '../data/data.service'; import { HttpClient } from '@angular/common/http'; interface SelectedChildren { label?: string; primaryCategory?: string; mimeType?: string; interactionType?: string; } export declare class EditorService { treeService: TreeService; private toasterService; configService: ConfigService; private telemetryService; private publicDataService; private dataService; httpClient: HttpClient; data: any; private _selectedChildren; questionStream$: Subject; private _editorConfig; private _editorMode; private _isReviewerEditEnable; private _isReviewModificationAllowed; showLibraryPage: EventEmitter; showQuestionLibraryPage: EventEmitter; private _bulkUploadStatus$; readonly bulkUploadStatus$: Observable; contentsCount: number; templateList: any[]; parentIdentifier: any; branchingLogic: {}; selectedSection: any; optionsLength: any; selectedPrimaryCategory: any; leafParentIdentifier: any; questionIds: any[]; private _qualityFormConfig; private _isReviewerQualityCheckEnabled; constructor(treeService: TreeService, toasterService: ToasterService, configService: ConfigService, telemetryService: EditorTelemetryService, publicDataService: PublicDataService, dataService: DataService, httpClient: HttpClient); initialize(config: IEditorConfig): void; set selectedChildren(value: SelectedChildren); get selectedChildren(): SelectedChildren; get editorConfig(): IEditorConfig; get editorMode(): string; get isReviewerEditEnable(): boolean; private setIsReviewerEditEnable; get isReviewModificationAllowed(): boolean; setIsReviewModificationAllowed(value: boolean): boolean; get contentPolicyUrl(): any; getToolbarConfig(): any; nextBulkUploadStatus(status: any): void; emitshowLibraryPageEvent(page: any): void; getshowLibraryPageEmitter(): EventEmitter; emitshowQuestionLibraryPageEvent(page: any): void; getshowQuestionLibraryPageEmitter(): EventEmitter; getQuestionList(questionIds: string[]): Observable; fetchCollectionHierarchy(collectionId: any): Observable; readQuestionSet(questionSetId: any, option?: any): Observable; fetchContentDetails(contentId: any): Observable; updateHierarchy(): Observable; getFieldsToUpdate(collectionId: any): {}; updateCollection(collectionId: any, event?: any): Observable; reviewContent(contentId: any): Observable; submitRequestChanges(contentId: any, comment: any): Observable; publishContent(contentId: any, event: any): Observable; addResourceToHierarchy(collection: any, unitIdentifier: any, contentId: any): Observable; addResourceToQuestionset(collection: any, unitIdentifier: any, contentId: any): Observable; getQuestionStream$(): Subject; publish(value: any): void; setQuestionIds(childrens: any): void; getMaxScore(): Promise; calculateMaxScore(questions: Array): any; getCollectionHierarchy(): { nodesModified: {}; hierarchy: any; }; getHierarchyObj(data: any, questionId?: any, selectUnitId?: any, parentId?: any): any; _toFlatObjFromHierarchy(data: any): any; getRelationalMetadataObj(data: any): {}; getCategoryDefinition(categoryName: any, channel: any, objectType?: any): Observable; fetchContentListDetails(req: any): Observable; sort(a: any, b: any, column: any): any; isNotEmpty(obj: any, key: any): boolean; apiErrorHandling(err: any, errorInfo: any): void; getContentChildrens(activeNode?: any): any[]; contentsCountAddedInLibraryPage(setToZero?: any): void; checkIfContentsCanbeAdded(buttonAction: any): boolean; getHierarchyFolder(): any[]; validateCSVFile(formData: any, collectionnId: any): Observable; downloadHierarchyCsv(collectionId: any): Observable; generatePreSignedUrl(req: any, contentId: any, type: any): Observable; downloadBlobUrlFile(config: any): void; generateCSV(config: any): void; getBranchingLogicByFolder(identifier: any): any; /** * * @public * @param identifier identifier of the node * @returns { source: [], target: [], sourceTarget?: [] } * @memberof EditorService */ getDependentNodes(identifier: any): { source: any; target: any; sourceTarget: any; } | { source?: undefined; target?: undefined; sourceTarget?: undefined; } | { source: any; target: any; sourceTarget?: undefined; }; /** * * @public * @param identifier identifier of the node * @returns {"do_id": { "target": [ "do_id123", "do_id456" ], "preCondition": {}, "source": [] }} * @memberof EditorService */ getBranchingLogicByNodeId(identifier: any): any; getBranchingLogicEntry(parentBranchingLogic: any, identifier: any): any; getFlattenedBranchingLogic(data: any): any; getParentDependentMap(data: any): {}; getPrimaryCategoryName(sectionId: any): any; /** * fetch Outcome Declaration levels using the questionsetId * only for Observation with Rubrics * @param identifier questionset identifier */ fetchOutComeDeclaration(questionSetId: any, option?: any): Observable; get qualityFormConfig(): any; private setQualityFormConfig; get isReviewerQualityCheckEnabled(): boolean; private setIsReviewerQualityCheckEnabled; appendCloudStorageHeaders(config: any): any; } export {};