@project-sunbird/collection-editor-react 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,3 +2,20 @@ import { IFramework, ITerm } from '../types/framework';
2
2
 
3
3
  export declare function getFramework(frameworkId: string): Promise<IFramework>;
4
4
  export declare function searchTerms(frameworkId: string, categoryCode: string, query?: string): Promise<ITerm[]>;
5
+ export interface IFrameworkSearchResult {
6
+ identifier: string;
7
+ name: string;
8
+ type?: string;
9
+ }
10
+ /**
11
+ * Discover Live frameworks via composite search — mirrors Angular
12
+ * FrameworkService.getFrameworkData (framework.service.ts:102-119). Used to
13
+ * extend the "Course Type" dropdown with frameworks whose orgFWType the
14
+ * channel does not already list.
15
+ */
16
+ export declare function searchFrameworks(filters: {
17
+ type?: string[];
18
+ identifier?: string[];
19
+ channel?: string;
20
+ systemDefault?: string;
21
+ }): Promise<IFrameworkSearchResult[]>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Reads the full QuestionSet hierarchy — the tree of units/questions with
3
+ * child stubs.
4
+ * Response shape: { result: { questionset: {...} } }
5
+ */
6
+ export declare function readQuestionSetHierarchy(questionSetId: string): Promise<Record<string, unknown>>;
7
+ /**
8
+ * Fetches full question data (body, responseDeclaration, interactions, etc.)
9
+ * for the given identifiers.
10
+ * Response shape: { result: { questions: [...] } }
11
+ */
12
+ export declare function getQuestionList(identifiers: string[]): Promise<Array<Record<string, unknown>>>;