diff --git a/projects/quml-demo-app/src/app/app.component.ts b/projects/quml-demo-app/src/app/app.component.ts index 7a92e1ab..80c7e4c7 100644 --- a/projects/quml-demo-app/src/app/app.component.ts +++ b/projects/quml-demo-app/src/app/app.component.ts @@ -8,7 +8,7 @@ import { DataService } from './services/data.service'; styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { - contentId = 'do_11395276467516211211'; + contentId = 'do_214234702021410816111'; playerConfig: any; constructor(private dataService: DataService) { } diff --git a/projects/quml-demo-app/src/app/app.constant.ts b/projects/quml-demo-app/src/app/app.constant.ts index 441ba32d..5a0fc758 100644 --- a/projects/quml-demo-app/src/app/app.constant.ts +++ b/projects/quml-demo-app/src/app/app.constant.ts @@ -1,6 +1,6 @@ export const ApiEndPoints = { getContent: '/api/content/v1/read/', - getQuestionSetHierarchy: '/learner/questionset/v2/hierarchy/', - questionSetRead: '/api/questionset/v2/read/', + getQuestionSetHierarchy: '/action/questionset/v2/hierarchy/', + questionSetRead: '/action/questionset/v2/read/', questionList: '/api/question/v2/list', } \ No newline at end of file diff --git a/projects/quml-demo-app/src/app/quml-library-data.ts b/projects/quml-demo-app/src/app/quml-library-data.ts index de4c9695..90f6f5fb 100644 --- a/projects/quml-demo-app/src/app/quml-library-data.ts +++ b/projects/quml-demo-app/src/app/quml-library-data.ts @@ -1,555 +1,347 @@ const content = { - "lastStatusChangedOn": "2022-04-21T09:17:59.394+0000", - "timeLimits": "{\"maxTime\":\"120\"}", - "author": "Aparna", + "courseType": [ + "Enablers" + ], + "assessmentType": "Post Test", + "previewUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/do_21423465065426124815_html_1737628412545.html", + "subject": [ + "Data Computing/Data Entry" + ], + "channel": "scp-channel", + "downloadUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628412224_do_21423465065426124815_1.ecar", + "language": [ + "English" + ], + "program": [ + "SCP" + ], + "mimeType": "application/vnd.sunbird.questionset", + "showHints": false, + "variants": { + "spine": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628411654_do_21423465065426124815_1_SPINE.ecar", + "size": "6679" + }, + "online": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628411970_do_21423465065426124815_1_ONLINE.ecar", + "size": "3494" + }, + "full": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628412224_do_21423465065426124815_1.ecar", + "size": "8214" + } + }, + "objectType": "QuestionSet", + "se_mediums": [ + "Hindi" + ], + "gradeLevel": [ + "Grade 10" + ], + "appIcon": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/artifact/sunbird.thumb.jpeg", + "primaryCategory": "Practice Question Set", "children": [ { - "lastStatusChangedOn": "2022-04-21T09:17:59.384+0000", - "parent": "do_213521052524797952167", + "lastStatusChangedOn": "2025-01-23T10:33:06.699+0000", + "timeLimits": { + "questionSet": { + "max": 0, + "min": 0 + } + }, + "parent": "do_21423465065426124815", "children": [ { - "lastStatusChangedOn": "2022-04-21T09:18:00.347+0000", - "parent": "do_213521053485416448168", - "author": "Aparna", - "name": "1", - "createdOn": "2022-04-21T05:34:28.824+0000", - "channel": "01345815127107174426", - "pdfUrl": "", - "lastUpdatedOn": "2022-04-21T09:18:00.347+0000", + "lastStatusChangedOn": "2025-01-23T10:33:30.555+0000", + "parent": "do_21423465095161446416", + "author": "John", + "name": "Capital", + "createdOn": "2025-01-23T10:32:23.377+0000", + "channel": "scp-channel", + "maxScore": 1, + "lastUpdatedOn": "2025-01-23T10:33:30.555+0000", "subject": [ - "English" + "Data Computing/Data Entry" ], - "showTimer": "No", - "identifier": "do_213521053850206208170", + "showTimer": false, + "identifier": "do_21423465138894438418", "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 4, - "audience": [ - "Audience1" + "Grade 10" ], + "compatibilityLevel": 5, "se_boards": [ - "CBSE" + "NIOS - Rajasthan" ], "primaryCategory": "Multiple Choice Question", "se_mediums": [ - "English" + "Hindi" ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521053850206208170/1_1650532680175_do_213521053850206208170_1.ecar", + "downloadUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409372_do_21423465138894438418_1.ecar", "se_subjects": [ - "English" + "Data Computing/Data Entry" ], "medium": [ - "English" + "Hindi" ], "interactionTypes": [ "choice" ], - "framework": "ekstep_ncert_k-12", - "versionKey": "1650519268826", + "framework": "scp-framework", + "versionKey": "1737628343385", "mimeType": "application/vnd.sunbird.question", - "code": "eb72d233-9eea-e889-eccc-b6350b11974a", + "code": "0d17f510-6820-4327-8fce-1c64399ef83c", "license": "CC BY 4.0", - "version": 1, + "qumlVersion": 1.1, "prevStatus": "Draft", + "showHints": false, "templateId": "mcq-vertical", "language": [ "English" ], - "board": "CBSE", - "showFeedback": "No", + "board": "NIOS - Rajasthan", + "showFeedback": false, "objectType": "Question", "status": "Live", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", + "createdBy": "15155b7a-5316-4bb2-992a-772093e85f44", "contentEncoding": "gzip", "depth": 2, + "lastPublishedBy": "15155b7a-5316-4bb2-992a-772093e85f44", "se_gradeLevels": [ - "Class 1" + "Grade 10" ], "se_FWIds": [ - "ekstep_ncert_k-12" + "scp-framework" ], "allowAnonymousAccess": "Yes", "contentDisposition": "inline", - "artifactUrl": "https://stagingdock.blob.core.windows.net/sunbird-content-dock/question/do_213521053850206208170/do_213521053850206208170_1650532680102.zip", - "visibility": "Parent", + "schemaVersion": "1.1", + "artifactUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/do_21423465138894438418_1737628404123.zip", + "visibility": "Default", "qType": "MCQ", - "showSolutions": "No", + "showSolutions": false, "variants": { "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521053850206208170/1_1650532680175_do_213521053850206208170_1.ecar", - "size": 94432 + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409372_do_21423465138894438418_1.ecar", + "size": "2876" }, "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521053850206208170/1_1650532680263_do_213521053850206208170_1_ONLINE.ecar", - "size": 1498 + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409758_do_21423465138894438418_1_ONLINE.ecar", + "size": "1379" } }, "index": 1, - "pkgVersion": 1 - }, - { - "lastStatusChangedOn": "2022-04-21T09:18:00.644+0000", - "parent": "do_213521053485416448168", - "author": "Aparna", - "name": "2", - "createdOn": "2022-04-21T05:37:30.411+0000", - "channel": "01345815127107174426", - "pdfUrl": "", - "lastUpdatedOn": "2022-04-21T09:18:00.644+0000", - "subject": [ - "English" - ], - "showTimer": "No", - "identifier": "do_213521055337766912172", - "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 4, - "audience": [ - "Audience1" - ], - "se_boards": [ - "CBSE" - ], - "primaryCategory": "Multiple Choice Question", - "se_mediums": [ - "English" - ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055337766912172/2_1650532680515_do_213521055337766912172_1.ecar", - "se_subjects": [ - "English" - ], - "medium": [ - "English" - ], - "interactionTypes": [ - "choice" - ], - "framework": "ekstep_ncert_k-12", - "versionKey": "1650519450412", - "mimeType": "application/vnd.sunbird.question", - "code": "cba4a5d3-fa0a-ef84-c468-bc3bd0da466c", - "license": "CC BY 4.0", - "version": 1, - "prevStatus": "Draft", - "templateId": "mcq-vertical", - "language": [ - "English" - ], - "board": "CBSE", - "showFeedback": "No", - "objectType": "Question", - "status": "Live", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", - "contentEncoding": "gzip", - "depth": 2, - "se_gradeLevels": [ - "Class 1" - ], - "se_FWIds": [ - "ekstep_ncert_k-12" - ], - "allowAnonymousAccess": "Yes", - "contentDisposition": "inline", - "artifactUrl": "https://stagingdock.blob.core.windows.net/sunbird-content-dock/question/do_213521055337766912172/do_213521055337766912172_1650532680472.zip", - "visibility": "Parent", - "qType": "MCQ", - "showSolutions": "No", - "variants": { - "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055337766912172/2_1650532680515_do_213521055337766912172_1.ecar", - "size": 101777 - }, - "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055337766912172/2_1650532680595_do_213521055337766912172_1_ONLINE.ecar", - "size": 1537 - } - }, - "index": 2, - "pkgVersion": 1 - }, - { - "lastStatusChangedOn": "2022-04-21T09:18:00.939+0000", - "parent": "do_213521053485416448168", - "author": "Aparna", - "name": "3", - "createdOn": "2022-04-21T05:37:50.505+0000", - "channel": "01345815127107174426", - "pdfUrl": "", - "lastUpdatedOn": "2022-04-21T09:18:00.939+0000", - "subject": [ - "English" - ], - "showTimer": "No", - "identifier": "do_213521055502376960174", - "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 4, - "audience": [ - "Audience1" - ], - "se_boards": [ - "CBSE" - ], - "primaryCategory": "Subjective Question", - "se_mediums": [ - "English" - ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055502376960174/3_1650532680793_do_213521055502376960174_1.ecar", - "se_subjects": [ - "English" - ], - "medium": [ - "English" - ], - "framework": "ekstep_ncert_k-12", - "versionKey": "1650519541827", - "mimeType": "application/vnd.sunbird.question", - "code": "aed75d95-e6c5-fefe-51be-4d501fd47b0a", - "license": "CC BY 4.0", - "version": 1, - "prevStatus": "Draft", - "language": [ - "English" - ], - "board": "CBSE", - "showFeedback": "No", - "objectType": "Question", - "status": "Live", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", - "contentEncoding": "gzip", - "depth": 2, - "se_gradeLevels": [ - "Class 1" - ], - "se_FWIds": [ - "ekstep_ncert_k-12" - ], - "allowAnonymousAccess": "Yes", - "contentDisposition": "inline", - "artifactUrl": "https://stagingdock.blob.core.windows.net/sunbird-content-dock/question/do_213521055502376960174/do_213521055502376960174_1650532680744.zip", - "visibility": "Parent", - "qType": "SA", - "showSolutions": "No", - "variants": { - "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055502376960174/3_1650532680793_do_213521055502376960174_1.ecar", - "size": 262940 - }, - "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055502376960174/3_1650532680888_do_213521055502376960174_1_ONLINE.ecar", - "size": 1279 - } - }, - "index": 3, - "pkgVersion": 1 - }, - { - "lastStatusChangedOn": "2022-04-21T09:18:01.237+0000", - "parent": "do_213521053485416448168", - "author": "Aparna", - "name": "4", - "createdOn": "2022-04-21T05:38:39.133+0000", - "channel": "01345815127107174426", - "pdfUrl": "", - "lastUpdatedOn": "2022-04-21T09:18:01.237+0000", - "subject": [ - "English" - ], - "showTimer": "No", - "identifier": "do_213521055900729344176", - "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 4, - "audience": [ - "Audience1" - ], - "se_boards": [ - "CBSE" - ], - "primaryCategory": "Multiple Choice Question", - "se_mediums": [ - "English" - ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055900729344176/4_1650532681075_do_213521055900729344176_1.ecar", - "se_subjects": [ - "English" - ], - "medium": [ - "English" - ], - "interactionTypes": [ - "choice" - ], - "framework": "ekstep_ncert_k-12", - "versionKey": "1650519519134", - "mimeType": "application/vnd.sunbird.question", - "code": "032b9874-4a61-77f4-c838-600f3639ef04", - "license": "CC BY 4.0", - "version": 1, - "prevStatus": "Draft", - "templateId": "mcq-vertical", - "language": [ - "English" - ], - "board": "CBSE", - "showFeedback": "No", - "objectType": "Question", - "status": "Live", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", - "contentEncoding": "gzip", - "depth": 2, - "se_gradeLevels": [ - "Class 1" - ], - "se_FWIds": [ - "ekstep_ncert_k-12" - ], - "allowAnonymousAccess": "Yes", - "contentDisposition": "inline", - "artifactUrl": "https://stagingdock.blob.core.windows.net/sunbird-content-dock/question/do_213521055900729344176/do_213521055900729344176_1650532681014.zip", - "visibility": "Parent", - "qType": "MCQ", - "showSolutions": "No", - "variants": { - "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055900729344176/4_1650532681075_do_213521055900729344176_1.ecar", - "size": 263381 - }, - "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055900729344176/4_1650532681186_do_213521055900729344176_1_ONLINE.ecar", - "size": 1517 - } - }, - "index": 4, - "pkgVersion": 1 + "pkgVersion": 1, + "languageCode": [ + "en" + ] } ], - "name": "section-1", + "name": "Section-1", "navigationMode": "non-linear", - "createdOn": "2022-04-21T05:33:44.294+0000", - "channel": "01345815127107174426", - "lastUpdatedOn": "2022-04-21T09:17:59.384+0000", - "showTimer": "No", - "identifier": "do_213521053485416448168", - "description": "Test", + "createdOn": "2025-01-23T10:31:29.992+0000", + "channel": "scp-channel", + "generateDIALCodes": "No", + "lastUpdatedOn": "2025-01-23T10:33:06.699+0000", + "showTimer": false, + "identifier": "do_21423465095161446416", + "description": "Section-1", "containsUserData": "No", "allowSkip": "Yes", - "compatibilityLevel": 5, + "compatibilityLevel": 6, + "trackable": { + "enabled": "No", + "autoBatch": "No" + }, "primaryCategory": "Practice Question Set", "setType": "materialised", "languageCode": [ "en" ], "attributions": [], - "versionKey": "1650519224294", + "scoreCutoffType": "AssessmentLevel", + "versionKey": "1737628289992", "mimeType": "application/vnd.sunbird.questionset", - "code": "0dbb2f59-e532-ce49-be46-81b5ff78e21f", + "code": "0cfe929d-0503-4635-822c-4a59795f0b5b", "license": "CC BY 4.0", - "version": 1, + "qumlVersion": 1.1, "prevStatus": "Draft", - "showHints": "No", + "showHints": false, "language": [ "English" ], - "showFeedback": "Yes", + "showFeedback": false, "objectType": "QuestionSet", "status": "Live", "requiresSubmit": "No", "shuffle": true, "contentEncoding": "gzip", "depth": 1, + "instructions": "
Test
", "allowAnonymousAccess": "Yes", "contentDisposition": "inline", + "schemaVersion": "1.1", "allowBranching": "No", "visibility": "Parent", - "showSolutions": "Yes", + "showSolutions": false, "index": 1 } ], - "name": "Talkback-question set", - "navigationMode": "non-linear", - "createdOn": "2022-04-21T05:31:47.032+0000", - "channel": "01345815127107174426", - "pdfUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/do_213521052524797952167_pdf_1650532681744.pdf", - "maxScore": 3, - "lastUpdatedOn": "2022-04-21T09:17:59.398+0000", - "subject": [ - "English" - ], - "showTimer": "Yes", - "identifier": "do_213521052524797952167", - "description": "Test", - "gradeLevel": [ - "Class 1" - ], - "containsUserData": "No", - "unitIdentifiers": [ - "do_213520491003019264113185" - ], - "mediumIds": [ - "ekstep_ncert_k-12_medium_english" - ], - "allowSkip": "Yes", - "compatibilityLevel": 5, - "audience": [ - "Audience1" + "contentEncoding": "gzip", + "generateDIALCodes": "No", + "se_gradeLevels": [ + "Grade 10" ], - "se_boards": [ - "CBSE" + "showSolutions": false, + "trackable": { + "enabled": "No", + "autoBatch": "No" + }, + "identifier": "do_21423465065426124815", + "visibility": "Default", + "showTimer": false, + "author": "John", + "childNodes": [ + "do_21423465138894438418", + "do_21423465095161446416" ], - "primaryCategory": "Practice Question Set", - "setType": "materialised", - "appIcon": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/istockphoto-184276818-612x612.thumb.jpg", - "collectionId": "do_213520491002503168113184", - "se_mediums": [ - "English" + "lastPublishedBy": "15155b7a-5316-4bb2-992a-772093e85f44", + "languageCode": [ + "en" ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/talkback-question-set_1650532681606_do_213521052524797952167_1.ecar", "se_subjects": [ - "English" + "Data Computing/Data Entry" ], - "medium": [ - "English" - ], - "attributions": [], - "framework": "ekstep_ncert_k-12", - "posterImage": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/istockphoto-184276818-612x612.jpg", - "creator": "Aparna", - "versionKey": "1650532679398", - "mimeType": "application/vnd.sunbird.questionset", - "code": "6d935b0c-7723-35d8-3bd3-d89293ec97ce", "license": "CC BY 4.0", - "version": 1, - "prevStatus": "Draft", - "showHints": "No", - "summaryType": "Duration", - "language": [ - "English" - ], - "board": "CBSE", - "showFeedback": "No", - "lastPublishedOn": "2022-04-21T09:18:01.284+0000", - "objectType": "QuestionSet", - "subjectIds": [ - "ekstep_ncert_k-12_subject_english" - ], + "size": 8214, + "lastPublishedOn": "2025-01-23T10:33:30.740+0000", + "name": "Test QuestionSet", + "allowBranching": "No", "status": "Live", - "targetFWIds": [ - "ekstep_ncert_k-12" - ], - "programId": "7396acb0-c094-11ec-bd37-a3fb6f2404bd", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", - "requiresSubmit": "Yes", - "keywords": [ - "Test" - ], - "shuffle": true, - "contentEncoding": "gzip", - "depth": 0, - "consumerId": "dc5ef13b-0346-467c-9f43-9a44173addbe", - "se_gradeLevels": [ - "Class 1" + "code": "f173cad0-bc98-4283-a03c-4e5e33b4a7e4", + "allowSkip": "Yes", + "containsUserData": "No", + "qumlVersion": 1.1, + "prevStatus": "Draft", + "description": "Test QuestionSet", + "medium": [ + "Hindi" ], - "se_FWIds": [ - "ekstep_ncert_k-12" + "posterImage": "https://knowlg-public.s3-ap-south-1.amazonaws.com/content/assets/do_21423465157686886414/sunbird.jpeg", + "createdOn": "2025-01-23T10:30:53.698+0000", + "pdfUrl": "", + "se_boards": [ + "NIOS - Rajasthan" ], - "allowAnonymousAccess": "Yes", + "scoreCutoffType": "AssessmentLevel", "contentDisposition": "inline", - "additionalCategories": [], - "allowBranching": "No", - "boardIds": [ - "ekstep_ncert_k-12_board_cbse" - ], - "childNodes": [ - "do_213521053850206208170", - "do_213521053485416448168", - "do_213521055337766912172", - "do_213521055502376960174", - "do_213521055900729344176" + "lastUpdatedOn": "2025-01-23T10:33:33.333+0000", + "allowAnonymousAccess": "Yes", + "lastStatusChangedOn": "2025-01-23T10:33:33.333+0000", + "schemaVersion": "1.1", + "requiresSubmit": "No", + "se_FWIds": [ + "scp-framework" ], - "visibility": "Default", - "showSolutions": "No", - "variants": { - "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/talkback-question-set_1650532681606_do_213521052524797952167_1.ecar", - "size": 371535 - }, - "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/talkback-question-set_1650532681554_do_213521052524797952167_1_ONLINE.ecar", - "size": 4552 - }, - "spine": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/talkback-question-set_1650532681498_do_213521052524797952167_1_SPINE.ecar", - "size": 10030 + "setType": "materialised", + "pkgVersion": 1, + "versionKey": "1737628386771", + "showFeedback": false, + "framework": "scp-framework", + "depth": 0, + "createdBy": "15155b7a-5316-4bb2-992a-772093e85f44", + "compatibilityLevel": 6, + "navigationMode": "non-linear", + "timeLimits": { + "questionSet": { + "max": 0, + "min": 0 } }, - "gradeLevelIds": [ - "ekstep_ncert_k-12_gradelevel_class1" - ], - "pkgVersion": 1 + "shuffle": true, + "board": "NIOS - Rajasthan", + "instructions": null, + "outcomeDeclaration": { + "maxScore": { + "cardinality": "single", + "type": "integer", + "defaultValue": 1 + } + }, + "level": 1, + "maxTime": null, + "maxAttempts": null, + "summaryType": null, + "maxQuestions": 1 } export const samplePlayerConfig = { - 'context': { - 'threshold': 3, - 'mode': 'play', - 'authToken': ' ', - 'sid': '913b3c6c-2874-26dd-ed0c-c23ddc00b718', - 'did': '561c348e631fd225b46a5571cbd42ad1', - 'uid': '', - 'channel': '01268904781886259221', - 'pdata': { - 'id': 'dev.sunbird.portal', - 'ver': '3.3.0', - 'pid': 'sunbird-portal.qumlplayer' + "context": { + "user": { + "id": "15155b7a-5316-4bb2-992a-772093e85f44", + "fullName": "John Doe", + "firstName": "John", + "lastName": "Doe", + "orgIds": [ + "scp-channel" + ] }, - 'contextRollup': { - 'l1': 'string', - 'l2': 'string', - 'l3': 'string', - 'l4': 'string', + "identifier": "do_21423465065426124815", + "sid": "0fb90b74-34d9-4018-8654-7d092d857b94", + "did": "1cc43bb3-432e-4b32-a042-ebbe9b641484", + "uid": "15155b7a-5316-4bb2-992a-772093e85f44", + "channel": "scp-channel", + "pdata": { + "id": "pratham.admin.portal", + "ver": "1.0.0", + "pid": "pratham-portal.questionset_editor" }, - 'tags': [], - 'cdata': [ - { - 'id': 'c0c9384a82a75f219468d363e1891963', - 'type': 'ContentSession' - }, + "contextRollup": { + "l1": "scp-channel" + }, + "tags": [ + "scp-channel" + ], + "cdata": [ { - 'id': 'a12f45a1d7078901adb27b48be4b428d', - 'type': 'PlaySession' + "id": "scp-channel", + "type": "pratham-portal" } ], - 'timeDiff': 5, - 'objectRollup': { - 'l1': 'string', - 'l2': 'string', - 'l3': 'string', - 'l4': 'string', + "timeDiff": 5, + "objectRollup": {}, + "host": "", + "defaultLicense": "CC BY 4.0", + "endpoint": "/data/v3/telemetry", + "env": "questionset_editor", + "framework": "scp-framework", + "cloudStorageUrls": [ + "https://knowlg-public.s3.ap-south-1.amazonaws.com/" + ], + "labels": { + "save_collection_btn_label": "Save as Draft" }, - 'host': '', - 'endpoint': '/data/v3/telemetry', - 'userData': { - 'firstName': 'Test', - 'lastName': 'User' - } + "correctionComments": false, + "sourcingResourceStatus": true, + "cloudStorage": { + "provider": "aws", + "presigned_headers": {} + }, + "userData": { + "firstName": "John", + "lastName": "Doe" + }, + "mode": "play", + "threshold": 2 }, 'metadata': content, - 'config': { - 'traceId': '1234', - 'sideMenu': { - 'enable': true, - 'showShare': true, - 'showDownload': true, - 'showReplay': false, - 'showExit': false, + "config": { + "traceId": "1234", + "sideMenu": { + "enable": false, + "showShare": false, + "showDownload": false, + "showReplay": true, + "showExit": false }, - warningTime: 75, - showWarningTimer: true, - nextContent: { name: 'Next content', identifier: 'do_231234332232' }, - showDeviceOrientation: true, - }, + "showDeviceOrientation": true, + } } diff --git a/projects/quml-demo-app/src/environments/environment.ts b/projects/quml-demo-app/src/environments/environment.ts index db192a50..8975042c 100644 --- a/projects/quml-demo-app/src/environments/environment.ts +++ b/projects/quml-demo-app/src/environments/environment.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - baseUrl: 'https://dev.sunbirded.org', + baseUrl: 'https://dev-middleware.prathamdigital.org', }; /* diff --git a/projects/quml-demo-app/src/proxy.conf.json b/projects/quml-demo-app/src/proxy.conf.json index 80f86397..eaa0068b 100644 --- a/projects/quml-demo-app/src/proxy.conf.json +++ b/projects/quml-demo-app/src/proxy.conf.json @@ -1,18 +1,18 @@ { "/api/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true }, "/action/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true }, "/assets/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true diff --git a/projects/quml-library/src/lib/section-player/section-player.component.spec.data.ts b/projects/quml-library/src/lib/section-player/section-player.component.spec.data.ts index bbbd4329..457b75a9 100644 --- a/projects/quml-library/src/lib/section-player/section-player.component.spec.data.ts +++ b/projects/quml-library/src/lib/section-player/section-player.component.spec.data.ts @@ -841,7 +841,7 @@ export const mockSectionMTFQuestions = [{ "id": "do_113952273632460800126", "type": "image", "src": "/assets/public/content/assets/do_113952273632460800126/test.png", - "baseUrl": "https://dev.sunbirded.org" + "baseUrl": "https://dev-middleware.prathamdigital.org" }, { "id": "do_113952273902215168128", @@ -849,7 +849,7 @@ export const mockSectionMTFQuestions = [{ "type": "video", "assetId": "do_113952273902215168128", "name": "earth", - "baseUrl": "https://dev.sunbirded.org" + "baseUrl": "https://dev-middleware.prathamdigital.org" } ], "editorState": { diff --git a/web-component-examples/react-app/README.md b/web-component-examples/react-app/README.md index 9ecf6921..a683cdda 100644 --- a/web-component-examples/react-app/README.md +++ b/web-component-examples/react-app/README.md @@ -8,7 +8,7 @@ This guide assumes you already have a React project. If you want to create a new ### Step 1: Installing packages You can use the npm command-line tool to install packages. ``` -npm install --save @project-sunbird/sunbird-quml-player-web-component +npm install --save @tekdi/sunbird-quml-player-web-component ``` ### Step 2: Installing dependencies @@ -53,8 +53,8 @@ import { useEffect, useRef } from "react"; import "./App.css"; + import $ from "jquery"; -+ import "@project-sunbird/sunbird-quml-player-web-component/styles.css"; -+ import "@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js"; ++ import "@tekdi/sunbird-quml-player-web-component/styles.css"; ++ import "@tekdi/sunbird-quml-player-web-component/sunbird-quml-player.js"; function App() { @@ -78,8 +78,8 @@ import { useEffect, useRef } from "react"; import "./App.css"; import $ from "jquery"; -import "@project-sunbird/sunbird-quml-player-web-component/styles.css"; -import "@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js"; +import "@tekdi/sunbird-quml-player-web-component/styles.css"; +import "@tekdi/sunbird-quml-player-web-component/sunbird-quml-player.js"; function App() { @@ -105,8 +105,8 @@ import { useEffect, useRef } from "react"; import "./App.css"; import $ from "jquery"; -import "@project-sunbird/sunbird-quml-player-web-component/styles.css"; -import "@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js"; +import "@tekdi/sunbird-quml-player-web-component/styles.css"; +import "@tekdi/sunbird-quml-player-web-component/sunbird-quml-player.js"; + import { playerConfig } from "./data"; @@ -115,7 +115,7 @@ function App() { // Assign jQuery and questionListUrl to window object window.jQuery = $; -+ window.questionListUrl = "https://dev.sunbirded.org/api/question/v2/list"; ++ window.questionListUrl = "https://dev-middleware.prathamdigital.org/api/question/v2/list"; return (Test
", "allowAnonymousAccess": "Yes", "contentDisposition": "inline", "schemaVersion": "1.1", @@ -243,157 +186,162 @@ const sectionContent = { "index": 1 } ], - "name": "Sample QuestionSet V2", - "navigationMode": "non-linear", - "createdOn": "2023-12-22T04:12:24.845+0000", - "createdFor": [ - "0137541424673095687" - ], - "channel": "0137541424673095687", - "pdfUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/do_11395276467516211211_pdf_1703218647645.pdf", + "contentEncoding": "gzip", "generateDIALCodes": "No", - "lastUpdatedOn": "2023-12-22T04:16:50.254+0000", - "subject": [ - "Accountancy" - ], - "size": 7123, - "showTimer": false, - "identifier": "do_11395276467516211211", - "description": "Sample QuestionSet V2", - "gradeLevel": [ - "Class 1" - ], - "containsUserData": "No", - "allowSkip": "Yes", - "compatibilityLevel": 6, - "audience": [ - "Administrator" + "se_gradeLevels": [ + "Grade 10" ], + "showSolutions": false, "trackable": { "enabled": "No", "autoBatch": "No" }, - "se_boards": [ - "State(Tamil Nadu)" + "identifier": "do_21423465065426124815", + "visibility": "Default", + "showTimer": false, + "author": "John", + "childNodes": [ + "do_21423465138894438418", + "do_21423465095161446416" ], - "primaryCategory": "Practice Question Set", - "setType": "materialised", - "appIcon": "", - "se_mediums": [ - "English" + "lastPublishedBy": "15155b7a-5316-4bb2-992a-772093e85f44", + "languageCode": [ + "en" ], - "downloadUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/sample-questionset-v2_1703218647276_do_11395276467516211211_1.ecar", "se_subjects": [ - "Accountancy" + "Data Computing/Data Entry" ], - "medium": [ - "English" - ], - "attributions": [], - "scoreCutoffType": "AssessmentLevel", - "framework": "tn_k-12", - "versionKey": "1703218610254", - "mimeType": "application/vnd.sunbird.questionset", - "code": "38c8ed0e-fc76-4c5c-a161-e8908d70bd94", "license": "CC BY 4.0", + "size": 8214, + "lastPublishedOn": "2025-01-23T10:33:30.740+0000", + "name": "Test QuestionSet", + "allowBranching": "No", + "status": "Live", + "code": "f173cad0-bc98-4283-a03c-4e5e33b4a7e4", + "allowSkip": "Yes", + "containsUserData": "No", "qumlVersion": 1.1, "prevStatus": "Draft", - "showHints": false, - "summaryType": "Complete", - "language": [ - "English" - ], - "board": "State(Tamil Nadu)", - "showFeedback": false, - "lastPublishedOn": "2023-12-22T04:17:26.925+0000", - "objectType": "QuestionSet", - "status": "Live", - "createdBy": "155ce3c5-713e-4749-bc1c-95d09c640914", - "requiresSubmit": "No", - "shuffle": true, - "contentEncoding": "gzip", - "depth": 0, - "consumerId": "bfe5883f-ac66-4744-a064-3ed88d986eba", - "lastPublishedBy": "469dc732-04f3-42d9-9a85-30957a797acc", - "se_gradeLevels": [ - "Class 1" + "description": "Test QuestionSet", + "medium": [ + "Hindi" ], - "se_FWIds": [ - "tn_k-12" + "posterImage": "https://knowlg-public.s3-ap-south-1.amazonaws.com/content/assets/do_21423465157686886414/sunbird.jpeg", + "createdOn": "2025-01-23T10:30:53.698+0000", + "pdfUrl": "", + "se_boards": [ + "NIOS - Rajasthan" ], - "allowAnonymousAccess": "Yes", + "scoreCutoffType": "AssessmentLevel", "contentDisposition": "inline", + "lastUpdatedOn": "2025-01-23T10:33:33.333+0000", + "allowAnonymousAccess": "Yes", + "lastStatusChangedOn": "2025-01-23T10:33:33.333+0000", "schemaVersion": "1.1", - "additionalCategories": [], - "allowBranching": "No", - "previewUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/do_11395276467516211211_html_1703218647645.html", - "childNodes": [ - "do_11395276601870745611", - "do_11395276534294118411", - "do_11395276677466521611" + "requiresSubmit": "No", + "se_FWIds": [ + "scp-framework" ], - "visibility": "Default", - "showSolutions": false, - "variants": { - "spine": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/sample-questionset-v2_1703218647008_do_11395276467516211211_1_SPINE.ecar", - "size": "3916" - }, - "online": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/sample-questionset-v2_1703218647145_do_11395276467516211211_1_ONLINE.ecar", - "size": "3917" - }, - "full": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/sample-questionset-v2_1703218647276_do_11395276467516211211_1.ecar", - "size": "7123" + "setType": "materialised", + "pkgVersion": 1, + "versionKey": "1737628386771", + "showFeedback": false, + "framework": "scp-framework", + "depth": 0, + "createdBy": "15155b7a-5316-4bb2-992a-772093e85f44", + "compatibilityLevel": 6, + "navigationMode": "non-linear", + "timeLimits": { + "questionSet": { + "max": 0, + "min": 0 } }, - "pkgVersion": 1, - "instructions": "Sample QuestionSet V2
", + "shuffle": true, + "board": "NIOS - Rajasthan", + "instructions": null, "outcomeDeclaration": { "maxScore": { "cardinality": "single", "type": "integer", - "defaultValue": 2 + "defaultValue": 1 } - } + }, + "level": 1, + "maxTime": null, + "maxAttempts": null, + "summaryType": null, + "maxQuestions": 1 } export const playerConfig = { "context": { - "mode": "play", - "partner": [], + "user": { + "id": "15155b7a-5316-4bb2-992a-772093e85f44", + "fullName": "John Doe", + "firstName": "John", + "lastName": "Doe", + "orgIds": [ + "scp-channel" + ] + }, + "identifier": "do_21423465065426124815", + "sid": "0fb90b74-34d9-4018-8654-7d092d857b94", + "did": "1cc43bb3-432e-4b32-a042-ebbe9b641484", + "uid": "15155b7a-5316-4bb2-992a-772093e85f44", + "channel": "scp-channel", "pdata": { - "id": "dev.sunbird.portal", - "ver": "7.0.0", - "pid": "sunbird-portal" + "id": "pratham.admin.portal", + "ver": "1.0.0", + "pid": "pratham-portal.questionset_editor" }, - "contentId": "do_11395276467516211211", - "sid": "b667b4e6-a4d5-4230-9609-9a4b97e87879", - "uid": "anonymous", - "timeDiff": -0.562, - "channel": "0138934136407244800", - "tags": [ - "0138934136407244800" - ], - "did": "f4603b26b6d4491be363e9f8ade58231", "contextRollup": { - "l1": "0138934136407244800" + "l1": "scp-channel" }, + "tags": [ + "scp-channel" + ], + "cdata": [ + { + "id": "scp-channel", + "type": "pratham-portal" + } + ], + "timeDiff": 5, "objectRollup": {}, - "threshold": 3, + "host": "", + "defaultLicense": "CC BY 4.0", + "endpoint": "/data/v3/telemetry", + "env": "questionset_editor", + "framework": "scp-framework", + "cloudStorageUrls": [ + "https://knowlg-public.s3.ap-south-1.amazonaws.com/" + ], + "labels": { + "save_collection_btn_label": "Save as Draft" + }, + "correctionComments": false, + "sourcingResourceStatus": true, + "cloudStorage": { + "provider": "aws", + "presigned_headers": {} + }, "userData": { - "firstName": "Guest", - "lastName": "" - } + "firstName": "John", + "lastName": "Doe" + }, + "mode": "play", + "threshold": 2 }, - "metadata": sectionContent, "config": { "traceId": "1234", "sideMenu": { - "showShare": true, - "showDownload": true, + "enable": false, + "showShare": false, + "showDownload": false, "showReplay": true, - "showExit": true, + "showExit": false }, - } -}; + "showDeviceOrientation": true + }, + "metadata": content +} diff --git a/web-component-examples/vanilla-js/index.html b/web-component-examples/vanilla-js/index.html index 3a46f9bb..a698433b 100644 --- a/web-component-examples/vanilla-js/index.html +++ b/web-component-examples/vanilla-js/index.html @@ -32,11 +32,10 @@