Index

src/app/manage-learn/core/constants/actions.constants.ts

actions
Type : object
Default value : { PROJECT_ACTIONS: [ { title: "DOWNLOAD", icon: "cloud-download", action: "download", color: 'primary', id:'download' }, { title: "SHARE", icon: "share", action: "share", color: 'primary', id:'share' }, { title: "EDIT", icon: "create", action: "edit", color: 'primary', id:'edit' }, { title: "FRMELEMNTS_LBL_FILES", icon: "folder-open", action: "files", color: 'primary', id:'files' }, { title: "FRMELEMNTS_LBL_SYNCED", icon: "sync-circle", action: "synced", color: 'success', id:'synced' } ], SYNC_ACTION: { title: "FRMELEMNTS_LBL_SYNC", icon: "sync-circle", action: "sync", color: 'primary', id:'sync' }, SYNCED_ACTION: { title: "FRMELEMNTS_LBL_SYNCED", icon: "sync-circle", action: "synced", color: 'success', id:'sync' }, DOWNLOADED_ACTION: { title: "FRMELEMNTS_LBL_DOWNLOADED", icon: "checkmark-circle", action: "downloaded", color: 'success', id:'downloaded' }, NOT_DOWNLOADED: { title: "DOWNLOAD", icon: "cloud-download", action: "download", color: 'primary', id:'download' }, SUBMITTED_PROJECT_ACTIONS: [ { title: "SHARE", icon: "share", action: "share", color: 'primary', id:'share' }, { title: "FRMELEMNTS_LBL_FILES", icon: "folder-open", action: "files", color: 'primary', id:'files' } ], CERTIFICATE_ACTION:{ title: "CERTIFICATE", icon: "ribbon", action: "certificate", color: 'success', id:'certificate' }, TASK_FILE_DESCRIPTION:{ label:'FRMELEMNTS_LBL_TASK_ATTACHMENTS_DESCRIPTION' }, PROJECT_FILE_DESCRIPTION:{ label:'FRMELEMNTS_LBL_PROJECT_ATTACHMENTS_DESCRIPTION' }, FILE_UPLOAD_OPTIONS:[ { title: "CAMERA", icon: "camera", action: "openCamera", color: 'primary', id:'camera' }, { title: "FRMELEMNTS_LBL_GALLERY", icon: "images", action: "openGallery", color: 'primary', id:'images' }, { title: "FRMELEMNTS_LBL_FILES", icon: "document", action: "openFiles", color: 'primary', id:'document' }, { title: "FRMELEMNTS_LBL_LINKS", icon: "link-outline", action: "openLink", color: 'primary', id:'openLink' } ] }

src/app/animations/animation-grow-in-from-event.ts

animationGrowInFromEvent
Default value : (event) => { return (baseEl: HTMLElement) => { const baseAnimation = createAnimation(); const backdropAnimation = createAnimation(); backdropAnimation.addElement(baseEl.querySelector('ion-backdrop')); const wrapperAnimation = createAnimation(); wrapperAnimation.addElement(baseEl.querySelector('.popover-wrapper')); const transformOrigin = `${event.target.getBoundingClientRect().left + (event.target.getBoundingClientRect().width / 2)}px ${event.target.getBoundingClientRect().top + (event.target.getBoundingClientRect().height / 2)}px`; wrapperAnimation .beforeStyles({ 'transform-origin': transformOrigin }) .fromTo('transform', 'scaleX(0.1) scaleY(0.1)', 'translateX(0%) scaleX(1) scaleY(1)') .fromTo('opacity', 0, 1); backdropAnimation.fromTo('opacity', 0.01, 0.4); return baseAnimation .addElement(baseEl) .easing('cubic-bezier(0.36,0.66,0.04,1)') .duration(800) .beforeAddClass('tutorial-popover') .addAnimation(backdropAnimation) .addAnimation(wrapperAnimation); }; }

src/app/animations/animation-grow-in-top-right.ts

animationGrowInTopRight
Type : AnimationBuilder
Default value : (baseEl: HTMLElement) => { const baseAnimation = createAnimation(); const backdropAnimation = createAnimation(); backdropAnimation.addElement(baseEl.querySelector('ion-backdrop')); const wrapperAnimation = createAnimation(); wrapperAnimation.addElement(baseEl.querySelector('.popover-wrapper')); wrapperAnimation .beforeStyles({ 'transform-origin': 'right top' }) .fromTo('transform', 'scaleX(0.1) scaleY(0.1)', 'translateX(0%) scaleX(1) scaleY(1)') .fromTo('opacity', 0, 1); backdropAnimation.fromTo('opacity', 0.01, 0.4); return baseAnimation .addElement(baseEl) .easing('cubic-bezier(0.36,0.66,0.04,1)') .duration(800) .beforeAddClass('tutorial-popover') .addAnimation(backdropAnimation) .addAnimation(wrapperAnimation); }

src/app/animations/animation-shrink-out-top-right.ts

animationShrinkOutTopRight
Type : AnimationBuilder
Default value : (baseEl: HTMLElement) => { const baseAnimation = createAnimation(); const backdropAnimation = createAnimation(); backdropAnimation.addElement(baseEl.querySelector('ion-backdrop')); const wrapperAnimation = createAnimation(); const wrapperEl = baseEl.querySelector('.popover-wrapper'); wrapperAnimation.addElement(wrapperEl); wrapperAnimation .beforeStyles({ 'transform-origin': 'right top' }) .fromTo('transform', 'scaleX(1) scaleY(1)', 'scaleX(0.1) scaleY(0.1)') .fromTo('opacity', 1, 0); backdropAnimation.fromTo('opacity', 0.4, 0.0); return baseAnimation .addElement(baseEl) .easing('cubic-bezier(0.36,0.66,0.04,1)') .duration(800) .addAnimation(backdropAnimation) .addAnimation(wrapperAnimation); }

src/app/app.module.ts

apiService
Default value : () => { return SunbirdSdk.instance.apiService; }
authService
Default value : () => { return SunbirdSdk.instance.authService; }
certificateService
Default value : () => { return SunbirdSdk.instance.certificateService; }
contentFeedbackService
Default value : () => { return SunbirdSdk.instance.contentFeedbackService; }
contentService
Default value : () => { return SunbirdSdk.instance.contentService; }
courseService
Default value : () => { return SunbirdSdk.instance.courseService; }
dbService
Default value : () => { return SunbirdSdk.instance.dbService; }
debuggingService
Default value : () => { return SunbirdSdk.instance.debuggingService; }
deviceInfo
Default value : () => { return SunbirdSdk.instance.deviceInfo; }
deviceRegisterService
Default value : () => { return SunbirdSdk.instance.deviceRegisterService; }
discussionService
Default value : () => { return SunbirdSdk.instance.discussionService; }
downloadService
Default value : () => { return SunbirdSdk.instance.downloadService; }
eventsBusService
Default value : () => { return SunbirdSdk.instance.eventsBusService; }
formService
Default value : () => { return SunbirdSdk.instance.formService; }
frameworkService
Default value : () => { return SunbirdSdk.instance.frameworkService; }
frameworkUtilService
Default value : () => { return SunbirdSdk.instance.frameworkUtilService; }
groupService
Default value : () => { return SunbirdSdk.instance.groupService; }
notificationServiceV2
Default value : () => { return SunbirdSdk.instance.notificationServiceV2; }
pageAssembleService
Default value : () => { return SunbirdSdk.instance.pageAssembleService; }
playerService
Default value : () => { return SunbirdSdk.instance.playerService; }
profileService
Default value : () => { return SunbirdSdk.instance.profileService; }
sbutility
segmentationService
Default value : () => { return SunbirdSdk.instance.segmentationService; }
sharedPreferences
Default value : () => { return SunbirdSdk.instance.sharedPreferences; }
sunbirdSdkFactory
Default value : () => { return async () => { const buildConfigValues = JSON.parse(await new Promise<string>((resolve, reject) => { document.addEventListener('deviceready', () => { sbutility.getBuildConfigValues('org.sunbird.app', (v) => { resolve(v); }, (err) => { reject(err); }); }, false); })); await SunbirdSdk.instance.init({ platform: 'cordova', fileConfig: { }, apiConfig: { debugMode: configuration.debug, host: buildConfigValues['BASE_URL'], user_authentication: { redirectUrl: buildConfigValues['OAUTH_REDIRECT_URL'], authUrl: '/auth/realms/sunbird/protocol/openid-connect', mergeUserHost: buildConfigValues['MERGE_ACCOUNT_BASE_URL'], autoMergeApiPath: '/migrate/user/account' }, api_authentication: { mobileAppKey: buildConfigValues['MOBILE_APP_KEY'], mobileAppSecret: buildConfigValues['MOBILE_APP_SECRET'], mobileAppConsumer: buildConfigValues['MOBILE_APP_CONSUMER'], channelId: buildConfigValues['CHANNEL_ID'], producerId: buildConfigValues['PRODUCER_ID'], producerUniqueId: 'sunbird.app' }, cached_requests: { timeToLive: 2 * 60 * 60 * 1000 } }, eventsBusConfig: { debugMode: true }, dbConfig: { dbName: 'GenieServices.db' }, deviceRegisterConfig: { apiPath: '/api/v3/device' }, contentServiceConfig: { apiPath: '/api/content/v2', searchApiPath: '/api/content/v1', contentHeirarchyAPIPath: '/api/collection/v1', questionSetReadApiPath: '/api/questionset/v1', questionReadApiPath: '/api/question/v1/' }, courseServiceConfig: { apiPath: '/api/course/v1' }, formServiceConfig: { apiPath: '/api/data/v1/form', formConfigDirPath: '/data/form', }, frameworkServiceConfig: { channelApiPath: '/api/channel/v1', frameworkApiPath: '/api/framework/v1', frameworkConfigDirPath: '/data/framework', channelConfigDirPath: '/data/channel', searchOrganizationApiPath: '/api/org/v2', systemSettingsDefaultChannelIdKey: 'custodianOrgId', overriddenDefaultChannelId: onboarding.overriddenDefaultChannelId }, profileServiceConfig: { profileApiPath: '/api/user/v1', profileApiPath_V2: '/api/user/v2', profileApiPath_V5: '/api/user/v5', tenantApiPath: '/v1/tenant', otpApiPath: '/api/otp/v2', searchLocationApiPath: '/api/data/v1', locationDirPath: '/data/location' }, pageServiceConfig: { apiPath: '/api/data/v1', }, appConfig: { maxCompatibilityLevel: 5, minCompatibilityLevel: 1 }, systemSettingsConfig: { systemSettingsApiPath: '/api/data/v1', systemSettingsDirPath: '/data/system', }, telemetryConfig: { apiPath: '/api/data/v1', telemetrySyncBandwidth: 200, telemetrySyncThreshold: 200, telemetryLogMinAllowedOffset: 86400000 }, sharedPreferencesConfig: { }, certificateServiceConfig: { apiPath: '/api/certreg/v2', apiPathLegacy: '/api/certreg/v1', rcApiPath: '/api/rc/${schemaName}/v1', }, playerConfig: { showEndPage: false, endPage: [{ template: 'assessment', contentType: [CsContentType.SELF_ASSESS] }], splash: { webLink: '', text: '', icon: '', bgImage: 'assets/icons/splacebackground_1.png' }, overlay: { enableUserSwitcher: false, showUser: false }, plugins: [ { id: 'org.sunbird.player.endpage', ver: '1.1', type: 'plugin' } ] }, errorLoggerConfig: { errorLoggerApiPath: '/api/data/v1/client/logs' }, faqServiceConfig: { faqConfigDirPath: '/data/faq' } }); window['sunbird'] = SunbirdSdk.instance; }; }
sunbirdSdkServicesProvidersFactory
Type : Provider[]
Default value : sdkDriverFactory
systemSettingsService
Default value : () => { return SunbirdSdk.instance.systemSettingsService; }
telemetryService
Default value : () => { return SunbirdSdk.instance.telemetryService; }

src/app/app.constant.ts

appLanguages
Type : []
Default value : [ { label: 'हिंदी', code: 'hi', isApplied: false, name: 'Hindi' }, { label: 'English', code: 'en', isApplied: false, name: 'English' }, { label: 'অসমীয়া', code: 'as', isApplied: false, name: 'Assamese' }, { label: 'বাংলা', code: 'bn', isApplied: false, name: 'Bengali' }, { label: 'ગુજરાતી', code: 'gu', isApplied: false, name: 'Gujarati' }, { label: 'ಕನ್ನಡ', code: 'kn', isApplied: false, name: 'Kannada' }, { label: 'मराठी', code: 'mr', isApplied: false, name: 'Marathi' }, { label: 'ଓଡ଼ିଆ', code: 'or', isApplied: false, name: 'Oriya' }, { label: 'ਪੰਜਾਬੀ', code: 'pa', isApplied: false, name: 'Punjabi' }, { label: 'தமிழ்', code: 'ta', isApplied: false, name: 'Tamil' }, { label: 'తెలుగు', code: 'te', isApplied: false, name: 'Telugu' }, { label: 'اردو', code: 'ur', isApplied: false, name: 'Urdu' } ]
ColorMapping
Type : []
Default value : [ { primary: 'rgba(255,139,46,1)', secondary: 'rgba(255,139,46,0.3)' }, { primary: 'rgba(163,99,255,1)', secondary: 'rgba(163,99,255,0.3)' }, { primary: 'rgba(34,139,255,1)', secondary: 'rgba(34,139,255,0.3)' }, { primary: 'rgba(95,192,32,1)', secondary: 'rgba(95,192,32,0.3)' }, { primary: 'rgba(255,128,47,1)', secondary: 'rgba(255,128,47,0.3)' }, { primary: 'rgba(251,70,70,1)', secondary: 'rgba(251,70,70,0.3)' }, { primary: 'rgba(83,109,252,1)', secondary: 'rgba(83,109,252,0.3)' }, { primary: 'rgba(15,186,208,1)', secondary: 'rgba(15,186,208,0.3)' } ]
PrimaryCaregoryMapping
Type : object
Default value : { "digital textbooks": { icon: 'assets/imgs/textbook.svg' }, "courses": { icon: 'assets/imgs/course.svg' }, "tv programs": { icon: 'assets/imgs/tv.svg' }, "documents": { icon: 'assets/imgs/documents.svg' }, "videos": { icon: 'assets/imgs/videos.svg' }, "default": { icon: 'assets/imgs/all_content.svg' } }
SubjectMapping
Type : object
Default value : { english: { icon: 'assets/imgs/book_english.svg', theme: { iconBgColor: ColorMapping[0].primary, pillBgColor: ColorMapping[0].secondary } }, mathematics: { icon: 'assets/imgs/calculator.svg', theme: { iconBgColor: ColorMapping[1].primary, pillBgColor: ColorMapping[1].secondary } }, science: { icon: 'assets/imgs/globe.svg', theme: { iconBgColor: ColorMapping[2].primary, pillBgColor: ColorMapping[2].secondary } }, default: { icon: 'assets/imgs/book_default.svg', theme: null } }

src/util/filter.util.ts

applyProfileFilter
Default value : (appGlobalService: AppGlobalService, profileFilter: Array<any>, assembleFilter: Array<any>, categoryKey?: string) => { if (categoryKey) { const nameArray = []; profileFilter.forEach(filterCode => { let nameForCode = appGlobalService.getNameForCodeInFramework(categoryKey, filterCode); if (!nameForCode) { nameForCode = filterCode; } nameArray.push(nameForCode); }); profileFilter = nameArray; } if (!assembleFilter) { assembleFilter = []; } assembleFilter = assembleFilter.concat(profileFilter); const uniqueArray = []; for (let i = 0; i < assembleFilter.length; i++) { if (uniqueArray.indexOf(assembleFilter[i]) === -1 && assembleFilter[i].length > 0) { uniqueArray.push(assembleFilter[i]); } } assembleFilter = uniqueArray; if (assembleFilter.length === 0) { return undefined; } return assembleFilter; }
updateFilterInSearchQuery
Default value : (queryParams, appliedFilter, isFilterApplied) => { const queryObj = JSON.parse(queryParams); const filter = queryObj.request.filters; queryObj.request['searchType'] = isFilterApplied ? SearchType.FILTER : SearchType.SEARCH; if (appliedFilter) { const appliedFilterKey = Object.keys(appliedFilter); appliedFilterKey.forEach(key => { if (appliedFilter[key].length > 0) { if (!filter[key]) { filter[key] = []; } appliedFilter[key].forEach(filterValue => { if (!filter[key].includes(filterValue)) { filter[key].push(filterValue); } }); } }); } queryObj.request.filters = filter; queryParams = queryObj; return queryParams; }

src/main.ts

bootstrap
Default value : () => platformBrowserDynamic().bootstrapModule(AppModule)

src/services/download-pdf/download-pdf.data.ts

checkedStatusFalse
Type : object
Default value : { hasPermission: false }
content
Type : object
Default value : { identifier: '123456', name: 'content name', contentData: {}, mimeType: 'application/pdf', basePath: './app', contentType: 'content', referenceCount: '12', lastUpdatedTime: '45-8-2020', isAvailableLocally: true, isUpdateAvailable: true, children: [], hierarchyInfo: [], sizeOnDevice: 123456, lastUsedTime: 12345, rollup: '', contentFeedback: [], contentAccess: [], contentMarker: [], primaryCategory: 'abcd' }
downloadrequested
Type : object
Default value : { uri: 'https://downloadContent', title: '', description: 'content description', mimeType: 'application/pdf', visibleInDownloadsUi: true, notificationVisibility: 1, destinationInExternalPublicDir: { dirType: 'Download', subPath: 'download/subpath' }, headers: [] }
requestedStatusTrue
Type : object
Default value : { hasPermission: true }

src/services/segmentation-tag/segmentation-tag.service.spec.data.ts

cmdList
Type : []
Default value : [ { commandId: 1618943400000, commandType: "SEGMENT_COMMAND", controlFunction: "LOCAL_NOTIF", controlFunctionPayload: [{ id: 'payload_data' }], expiresAfter: 1619202600000, tagCriteria: "AND", tagFilterUpto: "", tagFilters: ["UA_English"], targetDeviceIds: "", targetVersion: "" } ]
validCmdList
Type : []
Default value : [ { commandId: 1618943400000, commandType: "SEGMENT_COMMAND", controlFunction: "LOCAL_NOTIF", controlFunctionPayload: [{ id: 'payload_data' }], expiresAfter: 1619202600000, tagCriteria: "AND", tagFilterUpto: "", tagFilters: ["UA_English"], targetDeviceIds: "", targetVersion: "" } ]

src/configuration/configuration.debug.ts

configuration
Type : object
Default value : { production: false, hmr: false, debug: true }

src/configuration/configuration.hmr.ts

configuration
Type : object
Default value : { production: false, hmr: true, debug: false }

src/configuration/configuration.prod.ts

configuration
Type : object
Default value : { production: true, hmr: false, debug: false }

src/configuration/configuration.ts

configuration
Type : object
Default value : { production: false, hmr: false, debug: false }

src/app/collection-detail-etb/collection-detail-etb-page.spec.data.ts

contentDetailsMcokResponse1
Type : any
Default value : { identifier: 'do_21281258639073280011490', contentData: { ownershipType: [ 'createdBy' ], copyright: 'Odisha', me_totalDownloads: '1234.1234', keywords: [ 'test' ], subject: 'Physics', downloadUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', channel: '01269936129926758441', organisation: [ 'Odisha' ], language: [ 'English', 'Kannada' ], variants: { online: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681998_do_21281258639073280011490_2.0_online.ecar', size: 14437 }, spine: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', size: 136688 } }, mimeType: 'application/vnd.ekstep.content-collection', leafNodes: [ 'do_212686708394631168156', 'do_212686715674877952160', 'do_212608790640934912148', 'do_21266836993792409612969', 'do_212686673493696512119', 'do_2127319848127283201364', 'do_21265698034243174413049' ], appIcon: ' ', gradeLevel: [ 'Class 2', 'Class 3' ], attributions: ['gd_1', 'gd_2'], me_averageRating: 1, contentFeedback: [{ rating: 'SAMPLE_RATING' }], appId: 'staging.sunbird.app', contentEncoding: 'gzip', c_Sunbird_Stage_open_batch_count: 1, lockKey: '2e55369b-53e3-4e96-8ef1-25bd6da0642a', mimeTypesCount: '{\'application/vnd.ekstep.h5p-archive\:1,\'application/vnd.ekstep.html-archive\:1,\'video/webm\:1,\'application/pdf\:1,\'application/epub\:1,\'application/vnd.ekstep.content-collection\:7,\'video/x-youtube\:1,\'video/mp4\:1}', totalCompressedSize: 9617867, contentCredits: [ { id: '0125683555607347207', name: 'Sachin 2808', type: 'user' } ], contentType: 'Course', lastUpdatedBy: 'ab467e6e-1f32-453c-b1d8-c6b5fa6c7b9e', identifier: 'do_21281258639073280011490', audience: [ 'Learner' ], visibility: 'Default', toc_url: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_21281258639073280011490/artifact/do_21281258639073280011490_toc.json', contentTypesCount: '{\'CourseUnit\:7,\'Resource\:7}', childNodes: [ 'do_21281258639128166411497', 'do_212686715674877952160', 'do_212608790640934912148', 'do_21281258639126528011492', 'do_21281258639126528011493', 'do_21266836993792409612969', 'do_21281258639127347211494', 'do_21281258639127347211495', 'do_21281258639127347211496', 'do_21265698034243174413049', 'do_21281258639125708811491', 'do_212686708394631168156', 'do_212686673493696512119', 'do_2127319848127283201364' ], consumerId: 'a9cb3a83-a164-4bf0-aa49-b834cebf1c07', mediaType: 'content', osId: 'org.ekstep.quiz.app', ageGroup: [ '5-6' ], languageCode: [ 'en', 'ka' ], lastPublishedBy: 'dca7518d-5886-4251-94aa-360c762b1182', version: 2, c_sunbird_stage_open_batch_count: 1, tags: [ 'test' ], prevState: 'Review', license: 'Creative Commons Attribution (CC BY)', lastPublishedOn: '2019-07-25T06:54:41.549+0000', size: '136688', domain: [ 'Artificial_Intelligence' ], name: 'SB-13081-2', topic: [ 'Teaching and Classroom Management' ], status: '', code: 'org.sunbird.64hCxM.copy', purpose: 'Teaching Techniques', origin: 'do_21281254676783104011480', description: 'Enter description for Course', medium: 'English', idealScreenSize: 'normal', posterImage: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2127857103817932801565/artifact/1500_1560755661944.jpg', createdOn: '2019-07 - 25T06: 33: 44.651+0000', c_Sunbird_Stage_private_batch_count: 0, contentDisposition: 'inline', lastUpdatedOn: '2019-07 - 25T06: 54: 40.288+0000', originData: { license: 'Creative Commons Attribution(CC BY)', name: 'SB- 13081', }, SYS_INTERNAL_LAST_UPDATED_ON: '2019 - 08 - 09T18: 33: 01.908 + 0000', dialcodeRequired: 'No', creator: 'Qualitrix Content Creator Cr', createdFor: [ '0124784842112040965' ], lastStatusChangedOn: '2019 - 07 - 25T06: 54: 40.275 + 0000', os: [ 'All' ], pkgVersion: '2', versionKey: '1564037680856', idealScreenDensity: 'hdpi', s3Key: 'ecar_files / do_21281258639073280011490 / sb - 13081 -2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', depth: 0, dialcodes: [ 'H7L1Q1' ], framework: 'TPD', lastSubmittedOn: '2019 - 07 - 25T06: 53: 44.465 + 0000', createdBy: 'ab467e6e - 1f32 - 453c - b1d8 - c6b5fa6c7b9e', leafNodesCount: 7, compatibilityLevel: 4, resourceType: 'Course', licenseDetails: { description: '', name: '', url: '' }, // isAvailableLocally: false }, contentFeedback: [{ contentId: 'd0_123456', rating: 1, comments: 'string', createdAt: 1, stageId: 'string', contentVersion: 'string', }], isUpdateAvailable: true, mimeType: 'application / vnd.ekstep.content - collection', basePath: '../android/path/', contentType: 'course', isAvailableLocally: true, referenceCount: 0, sizeOnDevice: 0, lastUsedTime: 0, lastUpdatedTime: 0, contentAccess: [], }
contentDetailsMcokResponse2
Type : any
Default value : { identifier: 'do_21281258639073280011490', contentData: { ownershipType: [ 'createdBy' ], copyright: 'Odisha', me_totalDownloads: '1234.1234', keywords: [ 'test' ], subject: 'Physics', downloadUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', channel: '01269936129926758441', organisation: [ 'Odisha' ], language: [ 'English', 'Kannada' ], variants: { online: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681998_do_21281258639073280011490_2.0_online.ecar', size: 14437 }, spine: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', size: 136688 } }, mimeType: 'application/vnd.ekstep.content-collection', leafNodes: [ 'do_212686708394631168156', 'do_212686715674877952160', 'do_212608790640934912148', 'do_21266836993792409612969', 'do_212686673493696512119', 'do_2127319848127283201364', 'do_21265698034243174413049' ], appIcon: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_21281254676783104011480/artifact/1500_1560755661944.thumb.jpg', gradeLevel: [ 'Class 2', 'Class 3' ], attributions: ['gd_1', 'gd_2'], me_averageRating: 1, contentFeedback: [{ rating: 'SAMPLE_RATING' }], appId: 'staging.sunbird.app', contentEncoding: 'gzip', c_Sunbird_Stage_open_batch_count: 1, lockKey: '2e55369b-53e3-4e96-8ef1-25bd6da0642a', mimeTypesCount: '{\'application/vnd.ekstep.h5p-archive\:1,\'application/vnd.ekstep.html-archive\:1,\'video/webm\:1,\'application/pdf\:1,\'application/epub\:1,\'application/vnd.ekstep.content-collection\:7,\'video/x-youtube\:1,\'video/mp4\:1}', totalCompressedSize: 9617867, contentCredits: [ { id: '0125683555607347207', name: 'Sachin 2808', type: 'user' } ], contentType: 'Course', lastUpdatedBy: 'ab467e6e-1f32-453c-b1d8-c6b5fa6c7b9e', identifier: 'do_21281258639073280011490', audience: [ 'Learner' ], visibility: 'Default', toc_url: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_21281258639073280011490/artifact/do_21281258639073280011490_toc.json', contentTypesCount: '{\'CourseUnit\:7,\'Resource\:7}', childNodes: [ 'do_21281258639128166411497', 'do_212686715674877952160', 'do_212608790640934912148', 'do_21281258639126528011492', 'do_21281258639126528011493', 'do_21266836993792409612969', 'do_21281258639127347211494', 'do_21281258639127347211495', 'do_21281258639127347211496', 'do_21265698034243174413049', 'do_21281258639125708811491', 'do_212686708394631168156', 'do_212686673493696512119', 'do_2127319848127283201364' ], consumerId: 'a9cb3a83-a164-4bf0-aa49-b834cebf1c07', mediaType: 'content', osId: 'org.ekstep.quiz.app', ageGroup: [ '5-6' ], languageCode: [ 'en', 'ka' ], lastPublishedBy: 'dca7518d-5886-4251-94aa-360c762b1182', version: 2, c_sunbird_stage_open_batch_count: 1, tags: [ 'test' ], prevState: 'Review', license: 'Creative Commons Attribution (CC BY)', lastPublishedOn: '2019-07-25T06:54:41.549+0000', size: '136688', domain: [ 'Artificial_Intelligence' ], name: 'SB-13081-2', topic: [ 'Teaching and Classroom Management' ], status: '', code: 'org.sunbird.64hCxM.copy', purpose: 'Teaching Techniques', origin: 'do_21281254676783104011480', description: 'Enter description for Course', medium: 'English', idealScreenSize: 'normal', posterImage: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2127857103817932801565/artifact/1500_1560755661944.jpg', createdOn: '2019-07 - 25T06: 33: 44.651+0000', c_Sunbird_Stage_private_batch_count: 0, contentDisposition: 'inline', lastUpdatedOn: '2019-07 - 25T06: 54: 40.288+0000', originData: { license: 'Creative Commons Attribution(CC BY)', name: 'SB- 13081', }, SYS_INTERNAL_LAST_UPDATED_ON: '2019 - 08 - 09T18: 33: 01.908 + 0000', dialcodeRequired: 'No', creator: 'Qualitrix Content Creator Cr', createdFor: [ '0124784842112040965' ], lastStatusChangedOn: '2019 - 07 - 25T06: 54: 40.275 + 0000', os: [ 'All' ], pkgVersion: '2', versionKey: '1564037680856', idealScreenDensity: 'hdpi', s3Key: 'ecar_files / do_21281258639073280011490 / sb - 13081 -2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', depth: 0, dialcodes: [ 'H7L1Q1' ], framework: 'TPD', lastSubmittedOn: '2019 - 07 - 25T06: 53: 44.465 + 0000', createdBy: 'ab467e6e - 1f32 - 453c - b1d8 - c6b5fa6c7b9e', leafNodesCount: 7, compatibilityLevel: 4, resourceType: 'Course', licenseDetails: { description: '', name: '', url: '' }, // isAvailableLocally: false }, contentFeedback: [{ contentId: 'd0_123456', rating: 1, comments: 'string', createdAt: 1, stageId: 'string', contentVersion: 'string', }], isUpdateAvailable: false, mimeType: 'application / vnd.ekstep.content - collection', basePath: '../android/path/', contentType: 'course', isAvailableLocally: true, referenceCount: 0, sizeOnDevice: 0, lastUsedTime: 0, lastUpdatedTime: 0, contentAccess: [], }
contentDetailsMcokResponse3
Type : any
Default value : { identifier: 'do_21281258639073280011490', contentData: { ownershipType: [ 'createdBy' ], copyright: 'Odisha', me_totalDownloads: '1234.1234', keywords: [ 'test' ], subject: 'Physics', downloadUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', channel: '01269936129926758441', organisation: [ 'Odisha' ], language: [ 'English', 'Kannada' ], variants: { online: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681998_do_21281258639073280011490_2.0_online.ecar', size: 14437 }, spine: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_21281258639073280011490/sb-13081-2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', size: 136688 } }, mimeType: 'application/vnd.ekstep.content-collection', leafNodes: [ 'do_212686708394631168156', 'do_212686715674877952160', 'do_212608790640934912148', 'do_21266836993792409612969', 'do_212686673493696512119', 'do_2127319848127283201364', 'do_21265698034243174413049' ], appIcon: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_21281254676783104011480/artifact/1500_1560755661944.thumb.jpg', gradeLevel: [ 'Class 2', 'Class 3' ], attributions: ['gd_1', 'gd_2'], me_averageRating: 1, contentFeedback: [{ rating: 'SAMPLE_RATING' }], appId: 'staging.sunbird.app', contentEncoding: 'gzip', c_Sunbird_Stage_open_batch_count: 1, lockKey: '2e55369b-53e3-4e96-8ef1-25bd6da0642a', mimeTypesCount: '{\'application/vnd.ekstep.h5p-archive\:1,\'application/vnd.ekstep.html-archive\:1,\'video/webm\:1,\'application/pdf\:1,\'application/epub\:1,\'application/vnd.ekstep.content-collection\:7,\'video/x-youtube\:1,\'video/mp4\:1}', totalCompressedSize: 9617867, contentCredits: [ { id: '0125683555607347207', name: 'Sachin 2808', type: 'user' } ], contentType: 'Course', lastUpdatedBy: 'ab467e6e-1f32-453c-b1d8-c6b5fa6c7b9e', identifier: 'do_21281258639073280011490', audience: [ 'Learner' ], visibility: 'Default', toc_url: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_21281258639073280011490/artifact/do_21281258639073280011490_toc.json', contentTypesCount: '{\'CourseUnit\:7,\'Resource\:7}', childNodes: [ 'do_21281258639128166411497', 'do_212686715674877952160', 'do_212608790640934912148', 'do_21281258639126528011492', 'do_21281258639126528011493', 'do_21266836993792409612969', 'do_21281258639127347211494', 'do_21281258639127347211495', 'do_21281258639127347211496', 'do_21265698034243174413049', 'do_21281258639125708811491', 'do_212686708394631168156', 'do_212686673493696512119', 'do_2127319848127283201364' ], consumerId: 'a9cb3a83-a164-4bf0-aa49-b834cebf1c07', mediaType: 'content', osId: 'org.ekstep.quiz.app', ageGroup: [ '5-6' ], languageCode: [ 'en', 'ka' ], lastPublishedBy: 'dca7518d-5886-4251-94aa-360c762b1182', version: 2, c_sunbird_stage_open_batch_count: 1, tags: [ 'test' ], prevState: 'Review', license: 'Creative Commons Attribution (CC BY)', lastPublishedOn: '2019-07-25T06:54:41.549+0000', size: '136688', domain: [ 'Artificial_Intelligence' ], name: 'SB-13081-2', topic: [ 'Teaching and Classroom Management' ], status: '', code: 'org.sunbird.64hCxM.copy', purpose: 'Teaching Techniques', origin: 'do_21281254676783104011480', description: 'Enter description for Course', medium: 'English', idealScreenSize: 'normal', posterImage: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2127857103817932801565/artifact/1500_1560755661944.jpg', createdOn: '2019-07 - 25T06: 33: 44.651+0000', c_Sunbird_Stage_private_batch_count: 0, contentDisposition: 'inline', lastUpdatedOn: '2019-07 - 25T06: 54: 40.288+0000', originData: { license: 'Creative Commons Attribution(CC BY)', name: 'SB- 13081', }, SYS_INTERNAL_LAST_UPDATED_ON: '2019 - 08 - 09T18: 33: 01.908 + 0000', dialcodeRequired: 'No', creator: 'Qualitrix Content Creator Cr', createdFor: [ '0124784842112040965' ], lastStatusChangedOn: '2019 - 07 - 25T06: 54: 40.275 + 0000', os: [ 'All' ], pkgVersion: '2', versionKey: '1564037680856', idealScreenDensity: 'hdpi', s3Key: 'ecar_files / do_21281258639073280011490 / sb - 13081 -2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', depth: 0, dialcodes: [ 'H7L1Q1' ], framework: 'TPD', lastSubmittedOn: '2019 - 07 - 25T06: 53: 44.465 + 0000', createdBy: 'ab467e6e - 1f32 - 453c - b1d8 - c6b5fa6c7b9e', leafNodesCount: 7, compatibilityLevel: 4, resourceType: 'Course', licenseDetails: { description: '', name: '', url: '' }, }, contentFeedback: [{ contentId: 'd0_123456', rating: 1, comments: 'string', createdAt: 1, stageId: 'string', contentVersion: 'string', }], isUpdateAvailable: true, mimeType: 'application / vnd.ekstep.content - collection', basePath: '../android/path/', contentType: 'course', isAvailableLocally: false, referenceCount: 0, sizeOnDevice: 0, lastUsedTime: 0, lastUpdatedTime: 0, contentAccess: [], }
mockcollectionData
Type : Partial<Navigation>
Default value : { id: 7, initialUrl: '', trigger: 'imperative', previousNavigation: null, extras: { state: { depth: '5', content: { ownershipType: [ 'createdBy' ], copyright: 'R2.1.0', subject: 'Biology', channel: '0127870805901967364', isAvailableLocally: false, downloadUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_212911645382959104165/license-check-course_1576128983035_do_212911645382959104165_2.0_spine.ecar', organisation: [ 'R2.1.0' ], language: [ 'English' ], mimeType: 'application/vnd.ekstep.content-collection', variants: { online: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_212911645382959104165/license-check-course_1576128983287_do_212911645382959104165_2.0_online.ecar', size: 6861 }, spine: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_212911645382959104165/license-check-course_1576128983035_do_212911645382959104165_2.0_spine.ecar', size: 94964 } }, leafNodes: [ 'do_212911623572824064157', 'do_212911626086563840154', 'do_212911626512154624155', 'do_212911625643237376158', 'do_212911626908123136157' ], objectType: 'Content', gradeLevel: [ 'Class 3' ], appIcon: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_212911645382959104165/artifact/assessment_1569305945119.thumb.png', children: [ 'do_212911623572824064157', 'do_212911626908123136157', 'do_212911626512154624155', 'do_212911626086563840154', 'do_212911625643237376158' ], appId: 'staging.sunbird.portal', contentEncoding: 'gzip', lockKey: 'a8d2c96f-5921-4f88-861e-561046854667', mimeTypesCount: '{\'application/vnd.ekstep.content-collection\:1,\'application/vnd.ekstep.ecml-archive\:5}', totalCompressedSize: 72698, contentType: 'Course', identifier: 'do_212911645382959104165', audience: [ 'Learner' ], visibility: 'Default', toc_url: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_212911645382959104165/artifact/do_212911645382959104165_toc.json', contentTypesCount: '{\'CourseUnit\:1,\'Resource\:5}', consumerId: 'a9cb3a83-a164-4bf0-aa49-b834cebf1c07', childNodes: [ 'do_212911623572824064157', 'do_212911626086563840154', 'do_212911626512154624155', 'do_2129116460130713601733', 'do_212911625643237376158', 'do_212911626908123136157' ], batchId: 'SAMPLE_BATCH' }, source: PageId.GROUP_DETAIL, groupId: 'g1', activityList: [] } } }
mockContentData
Type : object
Default value : { content: { identifier: 'do_21280756435836108811838', contentData: { mimeType: 'application/vnd.ekstep.ecml-archive', contentType: 'Resource', identifier: 'do_21280756435836108811838', version: 2, size: 6194293, streamingUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/ecml/do_21280756435836108811838-latest', totalScore: 1, pkgVersion: 8, }, isUpdateAvailable: false, mimeType: 'application/vnd.ekstep.ecml-archive', contentType: 'resource', isAvailableLocally: false, hierarchyInfo: [ { identifier: 'do_212810592322265088178', contentType: 'textbook' }, { identifier: 'do_212810592541261824179', contentType: 'textbookunit' }, { identifier: 'do_2128084096298352641378', contentType: 'lessonplan' }, { identifier: 'do_2128084109778042881381', contentType: 'lessonplanunit' } ] } }
mockContentInfo
Type : object
Default value : { telemetryObject: { id: 'do_21280756435836108811838', type: 'Resource', version: 8 }, rollUp: { l1: 'do_212810592322265088178', l2: 'do_212810592541261824179', l3: 'do_2128084096298352641378', l4: 'do_2128084109778042881381' }, hierachyInfo: [ { identifier: 'do_212810592322265088178', contentType: 'textbook' }, { identifier: 'do_212810592541261824179', contentType: 'textbookunit' }, { identifier: 'do_2128084096298352641378', contentType: 'lessonplan' }, { identifier: 'do_2128084109778042881381', contentType: 'lessonplanunit' } ] }

src/app/enrolled-course-details-page/enrolled-course-details-page.spec.data.ts

contentDetailsResponse
Type : Content
Default value : { identifier: 'do_21281258639073280011490', contentData: data, isUpdateAvailable: false, mimeType: 'application / vnd.ekstep.content - collection', basePath: '', contentType: 'course', isAvailableLocally: true, referenceCount: 0, sizeOnDevice: 0, lastUsedTime: 0, lastUpdatedTime: 0, contentAccess: [], contentFeedback: [ { contentId: 'SAMPLE_ID', rating: 4, comments: 'SAMPLE_COMMANTS', contentVersion: 'SAMPLE_VERSION_6' }, { contentId: 'SAMPLE_ID_1', rating: 4, comments: 'SAMPLE_COMMANTS', contentVersion: 'SAMPLE_VERSION_6' } ], }
data
Type : Partial<ContentData>
Default value : { copyright: 'Odisha', subject: 'Physics', downloadUrl: 'https://ntpstagingall.blob.core.windows.net/sb-13081-2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', channel: '01269936129926758441', organisation: 'Odisha', language: [ 'English', 'Kannada' ], variants: { online: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net_1564037681998_do_21281258639073280011490_2.0_online.ecar', size: 14437 }, spine: { ecarUrl: 'https://sb-13081-2_1564037681733_do_21281258639073280011490_2.0_spine.ecar', size: 136688 } }, mimeType: 'application/vnd.ekstep.content-collection', appIcon: 'https://ntpstagingall.thumb.jpg', gradeLevel: [ 'Class 2', 'Class 3' ], attributions: ['gd_1', 'gd_2'], me_averageRating: 4, contentEncoding: 'gzip', contentType: 'Course', primaryCategory: 'Course', identifier: 'do_21281258639073280011490', audience: [ 'Learner' ], contentTypesCount: '{\'CourseUnit\:7,\'Resource\:7}', childNodes: [ 'do_21281258639128166411497', 'do_212686715674877952160', 'do_212608790640934912148', 'do_21281258639126528011492', 'do_21281258639126528011493', 'do_21266836993792409612969', 'do_21281258639127347211494', 'do_21281258639127347211495', 'do_21281258639127347211496', 'do_21265698034243174413049', 'do_21281258639125708811491', 'do_212686708394631168156', 'do_212686673493696512119', 'do_2127319848127283201364' ], osId: 'org.ekstep.quiz.app', license: 'Creative Commons Attribution (CC BY)', lastPublishedOn: '2019-07-25T06:54:41.549+0000', size: '136688', name: 'SB-13081-2', status: '', origin: 'do_21281254676783104011480', description: 'Enter description for Course', medium: 'English', createdOn: '2019-07 - 25T06: 33: 44.651+0000', contentDisposition: 'inline', originData: { license: 'Creative Commons Attribution(CC BY)', name: 'SB- 13081', }, creator: 'Qualitrix Content Creator Cr', pkgVersion: '2', versionKey: '1564037680856', dialcodes: [ 'H7L1Q1' ], framework: 'TPD', createdBy: 'ab467e6e - 1f32 - 453c - b1d8 - c6b5fa6c7b9e', resourceType: 'Course', licenseDetails: { description: '', name: '', url: '' }, }
mockChildrenData
Type : []
Default value : [ { children: [ { identifier: 'do_135241341148' }, { identifier: 'do_135241345727' } ] }, { children: [ { identifier: 'do_135241341784' }, { identifier: 'do_135521312312' } ] } ]
mockcontentHirerachyResponse
Type : object
Default value : { children: mockChildrenData }
mockContentStatusData
Type : object
Default value : { contentList: [ { contentId: 'do_135241341148' }, { contentId: 'do_135241345727' } ] }
mockCourseCardData
Type : object
Default value : { mimeTypesCount: '{\'video/webm\':1,\'application/vnd.ekstep.content-collection\':2,\'video/mp4\':1}', identifier: 'do_2127509908237926401406', size: 73058, name: 'Today today 29', status: 'Live', pkgVersion: 1, compatibilityLevel: 4, ownedBy: '0124784842112040965', resourceType: 'Course', node_id: 526456, batch: { identifier: '0127580528849387521', endDate: null, createdBy: 'ab467e6e-1f32-453c-b1d8-c6b5fa6c7b9e', name: '9may open batch', enrollmentType: 'open', startDate: '2019-05-09', status: 1 } }
mockCourseCardData_2
Type : object
Default value : { mimeTypesCount: '{\'video/webm\':1,\'application/vnd.ekstep.content-collection\':2,\'video/mp4\':1}', identifier: 'do_2127509908237926401406', size: 73058, name: 'Today today 29', status: 'Live', contentId: 'do_091231312312', pkgVersion: 1, compatibilityLevel: 4, ownedBy: '0124784842112040965', resourceType: 'Course', node_id: 526456, batchId: '0127580528849387521' }
mockEnrolledCourses
Type : []
Default value : [ { dateTime: '2019-05-17 05:29:01.305Z', lastReadContentStatus: 2, contentId: 'do_2127509908237926401406', courseId: 'do_091231312312', progress: 50, batch: { identifier: '0127580528849387521', endDate: null, createdBy: 'ab467e6e-1f32-453c-b1d8-c6b5fa6c7b9e', name: '9may open batch', enrollmentType: 'open', startDate: '2019-05-09', status: 1 }, description: 'Enter description for Course', courseLogoUrl: 'https://ntpstagingall.blob.core.windows.net' + '/ntp-content-staging/content/do_2127509908237926401406/artifact/4c1dbdc7d062dd11cd5b8bf5bbd25d61_1551854311088.thumb.jpg', batchId: '0127580528849387521', userId: '993230e2-d9f5-44fe-8b9c-fbfe5a1a3204' } ]
mockEnrolledData
Type : Partial<Navigation>
Default value : { id: 7, initialUrl: '', trigger: 'imperative', previousNavigation: null, extras: { state: { source: PageId.GROUP_DETAIL, content: { ownershipType: [ 'createdBy' ], copyright: 'R2.1.0', subject: 'Biology', channel: '0127870805901967364', isAvailableLocally: false, downloadUrl: 'https:license-check-course_1576128983035_do_212911645382959104165_2.0_spine.ecar', organisation: [ 'R2.1.0' ], language: [ 'English' ], mimeType: 'application/vnd.ekstep.content-collection', variants: { online: { size: 6861 }, spine: { ecarUrl: 'https://11645382959104165/license-check-course_1576128983035_do_212911645382959104165_2.0_spine.ecar', size: 94964 } }, leafNodes: [ 'do_212911623572824064157', 'do_212911626086563840154', 'do_212911626512154624155', 'do_212911625643237376158', 'do_212911626908123136157' ], objectType: 'Content', gradeLevel: [ 'Class 3' ], appIcon: 'https://artifact/assessment_1569305945119.thumb.png', children: [ 'do_212911623572824064157', 'do_212911626908123136157', 'do_212911626512154624155', 'do_212911626086563840154', 'do_212911625643237376158' ], appId: 'staging.sunbird.portal', contentEncoding: 'gzip', lockKey: 'a8d2c96f-5921-4f88-861e-561046854667', mimeTypesCount: '{\'application/vnd.ekstep.content-collection\:1,\'application/vnd.ekstep.ecml-archive\:5}', totalCompressedSize: 72698, contentType: 'Course', identifier: 'do_212911645382959104165', audience: [ 'Learner' ], visibility: 'Default', toc_url: 'https://artifact/do_212911645382959104165_toc.json', contentTypesCount: '{\'CourseUnit\:1,\'Resource\:5}', consumerId: 'a9cb3a83-a164-4bf0-aa49-b834cebf1c07', childNodes: [ 'do_212911623572824064157', 'do_212911626086563840154', 'do_212911626512154624155', 'do_2129116460130713601733', 'do_212911625643237376158', 'do_212911626908123136157' ], batchId: 'SAMPLE_BATCH' } } } }
mockExpiredBatchEnrolledCourses
Type : []
Default value : [ { dateTime: '2019-05-17 05:29:01.305Z', lastReadContentStatus: 2, contentId: 'do_2127509908237926401406', courseId: 'do_091231312312', progress: 50, batch: { identifier: '0127580528849387521', endDate: null, createdBy: 'ab467e6e-1f32-453c-b1d8-c6b5fa6c7b9e', name: '9may open batch', enrollmentType: 'open', startDate: '2019-05-09', status: 2 }, description: 'Enter description for Course', courseLogoUrl: 'https://ntpstagingall.blob.core.windows.net' + '/ntp-content-staging/content/do_2127509908237926401406/artifact/4c1dbdc7d062dd11cd5b8bf5bbd25d61_1551854311088.thumb.jpg', batchId: '0127580528849387521', userId: '993230e2-d9f5-44fe-8b9c-fbfe5a1a3204' } ]
mockGetChildDataResponse
Type : []
Default value : [ { identifier: 'do_2127509912525127681407', contentData: { identifier: 'do_2127509912525127681407', pkgVersion: 1, name: 'Unit 1', lastUpdatedOn: '2019-04-29T05:59:21.903+0000', contentType: 'CourseUnit', status: 'Live', downloadUrl: 'sample-download-url' }, isUpdateAvailable: false, mimeType: 'application/vnd.ekstep.content-collection', contentType: 'courseunit', isAvailableLocally: false, referenceCount: 1, sizeOnDevice: 0, hierarchyInfo: [ { identifier: 'do_2127509908237926401406', contentType: 'course' }, { identifier: 'do_2127509912525127681407', contentType: 'courseunit' } ], children: [ { identifier: 'do_21274246255366963214046', contentData: { size: 2466640, name: 'Sachin Mp4_1101', downloadUrl: 'sample-download-url' }, isUpdateAvailable: false, mimeType: 'video/mp4', basePath: '/storage/emulated/0/Android/data/org.sunbird.app.staging/files/content/do_21274246255366963214046/', contentType: 'resource', isAvailableLocally: false, referenceCount: 1, sizeOnDevice: 2737, hierarchyInfo: [ { identifier: 'do_2127509908237926401406', contentType: 'course' }, { identifier: 'do_2127509912525127681407', contentType: 'courseunit' } ] } ] }, { identifier: 'do_2127509912525127681408', contentData: { identifier: 'do_2127509912525127681408', name: 'Unit 2', contentType: 'CourseUnit', status: 'Live', size: 27717357, downloadUrl: 'sample-download-url' }, isUpdateAvailable: false, mimeType: 'application/vnd.ekstep.content-collection', basePath: '', contentType: 'courseunit', isAvailableLocally: false, referenceCount: 1, sizeOnDevice: 0, hierarchyInfo: [ { identifier: 'do_2127509908237926401406', contentType: 'course' }, { identifier: 'do_2127509912525127681408', contentType: 'courseunit' } ], children: [ { identifier: 'do_21274246302428364814048', contentData: { size: 27717357, name: 'sachin webm_1011', status: 'Live', downloadUrl: 'sample-download-url' }, isUpdateAvailable: false, mimeType: 'video/webm', basePath: '/storage/emulated/0/Android/data/org.sunbird.app.staging/files/content/do_21274246302428364814048/', contentType: 'resource', isAvailableLocally: false, referenceCount: 1, sizeOnDevice: 2801, hierarchyInfo: [ { identifier: 'do_2127509908237926401406', contentType: 'course' }, { identifier: 'do_2127509912525127681408', contentType: 'courseunit' } ] } ] } ]
mockImportContentResponse
Type : []
Default value : [ { identifier: 'do_21274246255366963214046', status: 0 }, { identifier: 'do_21274246302428364814048', status: 0 } ]

src/config/framework.filters.ts

contentTypeList
Type : Array<string>
Default value : [ 'Story', 'Worksheet', 'Collection', 'LessonPlan', 'TextBook' ]
domainList
Type : Array<string>
Default value : [ 'numeracy', 'literacy', 'science' ]
languageList
Type : Array<string>
Default value : [ 'Assamese', 'Bengali', 'English', 'Gujarati', 'Hindi', 'Kannada', 'Marathi', 'Punjabi', 'Tamil', 'Telugu', 'Urdu' ]

src/app/app.component.ts

cordova
window

src/services/course-util.service.ts

cordova

src/services/notification.service.ts

cordova

src/services/qrscanresulthandler.service.ts

cordova

src/services/sunbirdqrscanner.service.ts

cordova

src/app/content-details/content-details.page.ts

cordova
window

src/app/enrolled-course-details-page/enrolled-course-details-page.ts

cordova

src/app/player/player.page.ts

cordova

src/app/qrcoderesult/qrcoderesult.page.ts

cordova

src/app/search/search.page.ts

cordova

src/services/android-permissions/android-permissions.service.ts

cordova

src/app/components/application-header/application-header.component.ts

cordova

src/app/profile/certificate-view/certificate-view.page.ts

cordova

src/app/settings/data-sync/data-sync.component.ts

cordova

src/app/settings/permission/permission.component.ts

cordova

src/services/content/player/content-player-handler.ts

cordova

src/app/components/popups/upgrade-popover/upgrade-popover.component.ts

cordova

src/app/manage-learn/image-listing/image-listing/image-listing.component.ts

cordova
Type : any

src/app/module.service.ts

COURSE_TAB
Type : object
Default value : { root: 'courses', icon: 'courses', label: 'TAB_3', index: 2 }
COURSE_TAB_DISABLED
Type : object
Default value : { root: '', icon: 'courses', label: 'TAB_3', index: 2, disabled: true }
DOWNLOADS_TAB
Type : object
Default value : { root: 'download-manager', icon: 'downloads', label: 'TAB_5', index: 4 }
GUEST_HOME_SEARCH_TABS
Type : []
Default value : [ HOME_TAB, SEARCH_TAB, SCANNER_TAB, DOWNLOADS_TAB, GUEST_PROFILE_TAB ]
GUEST_PROFILE_SWITCH_TAB
Type : object
Default value : { root: 'guest-profile', icon: 'profile', label: 'TAB_6', index: 5, isSelected: true }
GUEST_PROFILE_TAB
Type : object
Default value : { root: 'guest-profile', icon: 'profile', label: 'TAB_6', index: 5 }
GUEST_STUDENT_TABS
Type : []
Default value : [ LIBRARY_TAB, COURSE_TAB, SCANNER_TAB, DOWNLOADS_TAB, GUEST_PROFILE_TAB ]
GUEST_TEACHER_TABS
Type : []
Default value : [ LIBRARY_TAB, COURSE_TAB, SCANNER_TAB, DOWNLOADS_TAB, GUEST_PROFILE_TAB ]
HOME_TAB
Type : object
Default value : { root: 'home', icon: 'home', label: 'TAB_2', index: 1, isSelected: true }
initTabs
Default value : (container: ContainerService, tabs: Array<TabOptions>) => { container.removeAllTabs(); if (tabs && tabs.length > 0) { tabs.forEach(tabOptions => { container.addTab(tabOptions); }); } }
LIBRARY_TAB
Type : object
Default value : { root: 'resources', icon: 'resources', label: 'TAB_1', index: 1, isSelected: true }
LOGGEDIN_HOME_SEARCH_TABS
Type : []
Default value : [ HOME_TAB, SEARCH_TAB, SCANNER_TAB, DOWNLOADS_TAB, PROFILE_TAB ]
LOGIN_ADMIN_TABS
Type : []
Default value : [ HOME_TAB, COURSE_TAB, SCANNER_TAB, DOWNLOADS_TAB, PROFILE_TAB ]
LOGIN_TEACHER_TABS
Type : []
Default value : [ LIBRARY_TAB, COURSE_TAB, SCANNER_TAB, DOWNLOADS_TAB, PROFILE_TAB ]
PROFILE_TAB
Type : object
Default value : { root: 'profile', icon: 'profile', label: 'TAB_6', index: 5 }
SCANNER_TAB
Type : object
Default value : { root: '', icon: 'qrscanner', label: '', index: 3 }
SEARCH_TAB
Type : object
Default value : { root: 'search', icon: 'discover', label: 'TAB_4', index: 2 }

src/app/home/user-home/user-home.page.spec.data.ts

data
Type : []
Default value : [{"title":"{\"en\":\"Continue\"}","data":[{"dateTime":1600934822230,"lastReadContentStatus":2,"enrolledDate":"2020-09-24 08:07:02:230+0000","addedBy":"6b0dbbd4-b181-4464-a3f1-a9f7aead0a28","contentId":"do_2131106194086543361226","batch":{"identifier":"01311261216033996822","endDate":"2020-10-04","createdBy":"ab467e6e-1f32-453c-b1d8-c6b5fa6c7b9e","name":"Sep21Batch","batchId":"01311261216033996822","enrollmentType":"open","startDate":"2020-09-21","status":2},"active":true,"description":"Enter description for Collection","courseLogoUrl":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2131106194086543361226/artifact/1200x900_1560253824844.thumb.jpg","batchId":"01311261216033996822","userId":"e94ad69a-9096-491c-b107-782a67760a2b","content":{"trackable":{"enabled":"Yes"},"identifier":"do_2131106194086543361226","appIcon":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2131106194086543361226/artifact/1200x900_1560253824844.thumb.jpg","orgDetails":{"orgName":"Odisha","email":"qa_ekstep@qualitrix.com"},"primaryCategory":"Content Playlist","leafNodesCount":5,"channel":"0124784842112040965","name":"Copy of vk-3.3CollectionTrackable1","description":"Enter description for Collection","contentType":"Collection","pkgVersion":2,"objectType":"Content"},"contentStatus":{"do_2130347595105484801947":2,"do_21304134100332544011422":2,"do_21310511410343936016":2,"do_21310511479696588814":2,"do_2131106370767011841260":2},"issuedCertificates":[],"completionPercentage":100,"courseName":"Copy of vk-3.3CollectionTrackable1","certificates":[],"completedOn":1600947469194,"leafNodesCount":5,"progress":5,"lastReadContentId":"do_2131106370767011841260","courseId":"do_2131106194086543361226","collectionId":"do_2131106194086543361226","status":2,"cardImg":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2131106194086543361226/artifact/1200x900_1560253824844.thumb.jpg"}],"dataSrc":{"name":"TRACKABLE_CONTENTS"},"theme":{"component":"sb-pills-grid","inputs":{"pillShape":"box","pillsLayout":"grid","pillsViewType":""}}},{"title":"{\"en\":\"Learn\"}","data":[{"facet":"English","searchCriteria":{"sortCriteria":[],"searchType":"filter","offset":0,"limit":100,"impliedFiltersMap":[],"impliedFilters":[{"name":"contentType","values":[{"name":"TextBook","apply":true}]}],"contentTypes":["TextBook"],"facets":["board","medium","gradeLevel","subject","channel"],"board":["State (Andhra Pradesh)"],"medium":["English","Telugu","Urdu"],"grade":["Class 2","Class 3","Class 4","Class 5","Class 6"]},"aggregate":{"groupBy":"primaryCategory"}},{"facet":"Mathematics","searchCriteria":{"sortCriteria":[],"searchType":"filter","offset":0,"limit":100,"impliedFiltersMap":[],"impliedFilters":[{"name":"contentType","values":[{"name":"TextBook","apply":true}]}],"contentTypes":["TextBook"],"facets":["board","medium","gradeLevel","subject","channel"],"board":["State (Andhra Pradesh)"],"medium":["English","Telugu","Urdu"],"grade":["Class 2","Class 3","Class 4","Class 5","Class 6"]},"aggregate":{"groupBy":"primaryCategory"}}],"dataSrc":{"name":"SUBJECT_CONTENT_FACETS","aggregate":{"groupBy":"primaryCategory"}},"theme":{"component":"sb-pills-grid","inputs":{"pillShape":"box","pillsViewType":"grid","displayCount":6,"seeMore":"{\"en\":\"See More\"}","seeLess":"{\"en\":\"See Less\"}"}}},{"title":"{\"en\":\"Browse by category\"}","data":[{"facet":"Digital Textbooks","searchCriteria":{"sortCriteria":[],"searchType":"filter","offset":0,"limit":100,"impliedFiltersMap":[],"impliedFilters":[{"name":"contentType","values":[{"name":"TextBook","apply":true}]}],"contentTypes":["TextBook"],"facets":["board","medium","gradeLevel","subject","channel"],"board":["State (Andhra Pradesh)"],"medium":["English","Telugu","Urdu"],"grade":["Class 2","Class 3","Class 4","Class 5","Class 6"]},"aggregate":{"groupBy":"subject"}},{"facet":"Courses","searchCriteria":{"sortCriteria":[],"searchType":"filter","offset":0,"limit":100,"impliedFiltersMap":[],"impliedFilters":[{"name":"contentType","values":[{"name":"TextBook","apply":true}]}],"contentTypes":["TextBook"],"facets":["board","medium","gradeLevel","subject","channel"],"board":["State (Andhra Pradesh)"],"medium":["English","Telugu","Urdu"],"grade":["Class 2","Class 3","Class 4","Class 5","Class 6"]},"aggregate":{"groupBy":"subject"}}],"dataSrc":{"name":"PRIMARY_CATEGORY_CONTENT_FACETS","aggregate":{"groupBy":"subject"}},"theme":{"component":"sb-pills-grid","inputs":{"pillShape":"rectangle","pillsLayout":"horizontal","pillsViewType":"scroll","pillImageSide":"left"}}},{"title":"{\"en\":\"Recently viewed\"}","data":[{"ownershipType":["createdFor"],"subject":["English"],"channel":"012530141516660736208","downloadUrl":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_2127191577989529601111/15-march-book_1552631879667_do_2127191577989529601111_1.0_spine.ecar","organisation":["SAP"],"language":["English"],"variants":{"online":{"ecarUrl":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_2127191577989529601111/15-march-book_1552631879757_do_2127191577989529601111_1.0_online.ecar","size":2763},"spine":{"ecarUrl":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_2127191577989529601111/15-march-book_1552631879667_do_2127191577989529601111_1.0_spine.ecar","size":73060}},"mimeType":"application/vnd.ekstep.content-collection","objectType":"Content","appIcon":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2127191577989529601111/artifact/1024px-sr_4409_6_wheeled_milk_wagon_didcot_railway_centre_1532407931054.thumb.jpg","gradeLevel":["Class 2"],"primaryCategory":"Digital Textbook","children":["do_212344942347632640143","do_2122952875771248641386"],"appId":"staging.sunbird.portal","contentEncoding":"gzip","lockKey":"451983c3-ecc4-461b-90be-8b8cc85b725a","mimeTypesCount":"{\"application/vnd.ekstep.content-collection\":4}","contentType":"TextBook","lastUpdatedBy":"0e0ea1db-dbad-4202-bc73-dfc8b122296f","identifier":"do_2127191577989529601111","audience":["Student"],"toc_url":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2127191577989529601111/artifact/do_2127191577989529601111toc.json","visibility":"Default","contentTypesCount":"{\"TextBookUnit\":2,\"Collection\":2}","childNodes":["do_2127191580464005121112","do_2122952875771248641386","do_2127191582091919361113","do_212344942347632640143"],"consumerId":"56ff6913-abcc-4a88-b247-c976e47cbfb4","mediaType":"content","osId":"org.ekstep.quiz.app","lastPublishedBy":"74400baf-7f32-407a-9d79-265ecd3f6952","graph_id":"domain","nodeType":"DATA_NODE","version":2,"license":"CC BY 4.0","prevState":"Review","qrCodeProcessId":"4f739d99-5540-4850-b807-5d653b0c850d","lastPublishedOn":"2019-03-15T06:37:59.430+0000","size":73060,"name":"15 March Book","status":"Live","code":"org.sunbird.juIb1Y","description":"Enter description for TextBook","medium":["English"],"posterImage":"https://ekstep-public-qa.s3-ap-south-1.amazonaws.com/content/do_212553485767499776133/artifact/1024px-sr_4409_6_wheeled_milk_wagon_didcot_railway_centre_1532407931054.jpg","idealScreenSize":"normal","createdOn":"2019-03-15T06:32:47.255+0000","reservedDialcodes":"{\"I4U8JR\":1,\"C6IT7T\":2,\"F5P1DS\":0}","contentDisposition":"inline","lastUpdatedOn":"2019-05-15T01:53:08.309+0000","SYS_INTERNAL_LAST_UPDATED_ON":"2019-10-30T04:37:15.487+0000","dialcodeRequired":"Yes","owner":"SAP","lastStatusChangedOn":"2019-06-20T08:02:16.782+0000","createdFor":["012530141516660736208"],"creator":"Helington N","os":["All"],"pkgVersion":1,"versionKey":"1557885188309","idealScreenDensity":"hdpi","s3Key":"ecar_files/do_2127191577989529601111/15-march-book_1552631879667_do_2127191577989529601111_1.0_spine.ecar","dialcodes":["F5P1DS"],"framework":"NCF","lastSubmittedOn":"2019-03-15T06:36:59.934+0000","createdBy":"0e0ea1db-dbad-4202-bc73-dfc8b122296f","additionalCategory":["Textbook"],"leafNodesCount":0,"compatibilityLevel":1,"ownedBy":"012530141516660736208","board":"CBSE","resourceType":"Book","node_id":517409,"cardImg":"https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_2127191577989529601111/artifact/1024px-sr_4409_6_wheeled_milk_wagon_didcot_railway_centre_1532407931054.thumb.jpg"}],"dataSrc":{"name":"RECENTLY_VIEWED_CONTENTS"},"theme":{"component":"sb-pills-grid","inputs":{"pillShape":"box","pillsLayout":"grid","pillsViewType":""}}}]

src/app/manage-learn/core/services/sync.service.ts

environment
Type : object
Default value : { db: { projects: "project.db", categories: "categories.db", } }

src/app/manage-learn/project/learning-resources/learning-resources.page.ts

environment
Type : object
Default value : { db: { projects: 'project.db', categories: 'categories.db' }, deepLinkAppsUrl: '' }

src/app/manage-learn/project/sync/sync.page.ts

environment
Type : object
Default value : { db: { projects: "project.db", categories: "categories.db", }, deepLinkAppsUrl: '' }

src/app/manage-learn/project/task-view/task-view.page.ts

environment
Type : object
Default value : { db: { projects: "project.db", categories: "categories.db", }, deepLinkAppsUrl: '' }

src/app/faq-help/faq-help.page.spec.data.ts

expectedFaqs
Type : []
Default value : [ { topic: 'AppName', description: 'AppName', },{ topic: 'AppName', description: 'AppName', } ]
mockFaqData
Type : object
Default value : { constants: {}, faqs: [ { topic: '{{APP_NAME}}', description: '{{APP_NAME}}', },{ topic: 'AppName', description: 'AppName', } ] }

src/services/common-util.service.ts

FCMPlugin

src/feature-id-map.ts

featureIdMap
Type : object
Default value : { downloadManager: { DOWNLOADS_DELETE: [ { id: 'download_manager:downloads:delete', type: 'Feature' }, { id: 'SB-3800', type: 'Task' } ], DOWNLOADS_SORT: [ { id: 'download_manager:downloads:sort', type: 'Feature' }, { id: 'SB-3800', type: 'Task' } ], ACTIVE_DOWNLOADS_CANCEL: [ { id: 'download_manager:active_downloads:cancel', type: 'Feature' }, { id: 'SB-3800', type: 'Task' } ], STORAGE_SETTINGS_TRANSFER: [ { id: 'download_manager:storage_settings:transfer', type: 'Feature' }, { id: 'SB-3800', type: 'Task' } ], }, searchHistory: { SEARCH_HISTORY_QUERY_FROM_HISTORY: [ { id: 'search_history:query_from_history', type: 'Feature' }, { id: 'SB-13533', type: 'Task' } ], }, location: { LOCATION_CAPTURE: [ { id: 'user:location_capture', type: 'Feature' }, { id: 'SB-14682', type: 'Task' } ], }, userVerification: { EXTERNAL_USER_VERIFICATION: [ { id: 'user:state:externalId', type: 'Feature' }, { id: 'SC-1362', type: 'Task' } ], } }

src/app/feature-id-map.ts

featureIdMap
Type : object
Default value : { downloadManager: { DOWNLOADS_DELETE: [ { id: 'download_manager:downloads:delete', type: 'Feature' }, { id: 'SB-3800', type: 'Task' } ], DOWNLOADS_SORT: [ { id: 'download_manager:downloads:sort', type: 'Feature' }, { id: 'SB-3800', type: 'Task' } ], ACTIVE_DOWNLOADS_CANCEL: [ { id: 'download_manager:active_downloads:cancel', type: 'Feature' }, { id: 'SB-3800', type: 'Task' } ], STORAGE_SETTINGS_TRANSFER: [ { id: 'download_manager:storage_settings:transfer', type: 'Feature' }, { id: 'SB-3800', type: 'Task' } ], }, searchHistory: { SEARCH_HISTORY_QUERY_FROM_HISTORY: [ { id: 'search_history:query_from_history', type: 'Feature' }, { id: 'SB-13533', type: 'Task' } ], } }

src/app/manage-learn/core/constants/mimTypes.ts

FILE_EXTENSION_HEADERS
Type : object
Default value : { aac: "audio/aac", abw: "application/x-abiword", arc: "application/x-freearc", avi: "video/mp4", azw: "application/vnd.amazon.ebook", bin: "application/octet-stream", bmp: "image/bmp", bz: "application/x-bzip", bz2: "application/x-bzip2", csh: "application/x-csh", css: "text/css", csv: "text/csv", doc: "application/msword", docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", eot: "application/vnd.ms-fontobject", epub: "application/epub+zip", gif: "image/gif", htm: "text/html", html: "text/html", ico: "image/vnd.microsoft.icon", ics: "text/calendar", jar: "application/java-archive", jpeg: "image/jpeg", JPEG: "image/jpeg", jpg: "image/jpeg", JPG: "image/jpeg", js: "text/javascript", json: "application/json", jsonld: "application/ld+json", mid: "audio/midi", midi: "audio/midi", mjs: "text/javascript", mp3: "audio/mpeg", mpeg: "video/mp4", mpkg: "application/vnd.apple.installer+xml", odp: "application/vnd.oasis.opendocument.presentation", ods: "application/vnd.oasis.opendocument.spreadsheet", odt: "application/vnd.oasis.opendocument.text", oga: "audio/ogg", ogv: "video/mp4", ogx: "application/ogg", otf: "font/otf", png: "image/jpeg", pdf: "application/pdf", ppt: "application/vnd.ms-powerpoint", pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation", rar: "application/x-rar-compressed", rtf: "application/rtf", sh: "application/x-sh", svg: "image/svg+xml", swf: "application/x-shockwave-flash", tar: "application/x-tar", tif: "image/tiff", tiff: "image/tiff", ttf: "font/ttf", txt: "text/plain", vsd: "application/vnd.visio", wav: "audio/wav", weba: "audio/webm", webm: "video/mp4", webp: "image/webp", woff: "font/woff", woff2: "font/woff2", xhtml: "application/xhtml+xml", xls: "application/vnd.ms-excel", xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", xml: "application/xml&nbsp;", xul: "application/vnd.mozilla.xul+xml", zip: "application/zip", "3gp": "video/mp4", "3g2": "video/mp4", "7z": "application/x-7z-compressed", mp4: "video/mp4", mov: "video/mp4", mkv:"video/mp4", wmv: "video/mp4", ogg: "video/mp4", m4v:"video/mp4", flv:"video/mp4", MOV: "video/mp4", }

src/app/manage-learn/shared/fileExtension.ts

FileExtension
Type : object
Default value : { videoFormats: ["mp4", "WMV", "WEBM", "flv", "avi", "3GP", "OGG", "m4v", "mov", "mkv","mpeg","ogg","webm", "3gpp", "wmv", "avi","flv", "MOV"], audioFormats: ["AIF", "cda", "mpa", "ogg", "wav", "wma", "mp3"], pptFormats: ["ppt", "pptx", "pps", "ppsx"], wordFormats: ["docx", "doc", "docm", "dotx"], imageFormats: ["jpg", "png", "jpeg"], pdfFormats: ["pdf"], spreadSheetFormats: ["xls", "xlsx"], }

src/app/search-filter/search-filter.page.spec.data.ts

FilterCriteriaData
Type : object
Default value : { facetFilters: [ { name: 'board', values: [ { name: 'sample_board_1', apply: true }, { name: 'sample_board_2', apply: false } ] }, { name: 'medium', values: [ { name: 'sample_medium_1', apply: true }, { name: 'sample_medium_2', apply: false } ] }, { name: 'gradeLevel', values: [ { name: 'sample_gradeLevel_1', apply: true }, { name: 'sample_gradeLevel_2', apply: false } ] }, { name: 'subject', values: [ { name: 'sample_subject_1', apply: true }, { name: 'sample_subject_2', apply: false } ] }, { name: 'mimeType', values: [ { name: 'sample_mimeType_1', apply: true }, { name: 'sample_mimeType_2', apply: false } ] }, { name: 'primaryCategory', values: [ { name: 'sample_primaryCategory_1', apply: true }, { name: 'sample_primaryCategory_2', apply: false } ] }, { name: 'audience', values: [ { name: 'sample_audience_1', apply: true }, { name: 'sample_audience_2', apply: false } ] } ] }

src/app/telemetryutil.ts

generateEndTelemetry
Default value : (type, mode, pageId, objectId, objectType, objectVersion, rollup: Rollup, corRelationList: Array<CorrelationData>): TelemetryEndRequest => { const telemetryEndRequest = new TelemetryEndRequest(); telemetryEndRequest.type = type; telemetryEndRequest.pageId = pageId; telemetryEndRequest.env = Environment.HOME; telemetryEndRequest.mode = mode; telemetryEndRequest.objId = objectId; telemetryEndRequest.objType = objectType; telemetryEndRequest.objVer = objectVersion; if (rollup !== undefined) { telemetryEndRequest.rollup = rollup; } if (corRelationList !== undefined) { telemetryEndRequest.correlationData = corRelationList; } return telemetryEndRequest; }
generateImpressionTelemetry
Default value : ( type, subtype, pageid, env, objectId, objectType, objectVersion, rollup: Rollup, corRelationList: Array<CorrelationData>): TelemetryImpressionRequest => { const telemetryImpressionRequest = new TelemetryImpressionRequest(); telemetryImpressionRequest.type = type; telemetryImpressionRequest.subType = subtype; telemetryImpressionRequest.pageId = pageid; telemetryImpressionRequest.env = env; telemetryImpressionRequest.objId = objectId; telemetryImpressionRequest.objType = objectType; telemetryImpressionRequest.objVer = objectVersion; if (rollup !== undefined) { telemetryImpressionRequest.rollup = rollup; } if (corRelationList !== undefined) { telemetryImpressionRequest.correlationData = corRelationList; } return telemetryImpressionRequest; }
generateInteractTelemetry
Default value : ( interactType, subType, env, pageId, values: Map, rollup: Rollup, corRelationList: Array<CorrelationData>): TelemetryInteractRequest => { const telemetryInteractRequest = new TelemetryInteractRequest(); telemetryInteractRequest.type = interactType; telemetryInteractRequest.subType = subType; telemetryInteractRequest.pageId = pageId; telemetryInteractRequest.id = pageId; telemetryInteractRequest.env = env; if (values !== null) { telemetryInteractRequest.valueMap = values; } if (rollup !== undefined) { telemetryInteractRequest.rollup = rollup; } if (corRelationList !== undefined) { telemetryInteractRequest.correlationData = corRelationList; } return telemetryInteractRequest; }
generateStartTelemetry
Default value : ( pageId, objectId, objectType, objectVersion, rollup: Rollup, corRelationList: Array<CorrelationData>): TelemetryStartRequest => { const telemetryStartRequest = new TelemetryStartRequest(); telemetryStartRequest.type = objectType; telemetryStartRequest.pageId = pageId; telemetryStartRequest.env = Environment.HOME; telemetryStartRequest.mode = Mode.PLAY; telemetryStartRequest.objId = objectId; telemetryStartRequest.objType = objectType; telemetryStartRequest.objVer = objectVersion; if (rollup !== undefined) { telemetryStartRequest.rollup = rollup; } if (corRelationList !== undefined) { telemetryStartRequest.correlationData = corRelationList; } return telemetryStartRequest; }

src/hmr.ts

hmrBootstrap
Default value : ( module: any, bootstrap: () => Promise<NgModuleRef<any>> ) => { let ngModule: NgModuleRef<any>; module.hot.accept(); bootstrap().then(mod => (ngModule = mod)); module.hot.dispose(() => { const appRef: ApplicationRef = ngModule.injector.get(ApplicationRef); const elements = appRef.components.map(c => c.location.nativeElement); const makeVisible = createNewHosts(elements); ngModule.destroy(); makeVisible(); }); }

src/app/faq-report-issue/faq-report-issue.page.ts

KEY_SUNBIRD_CONFIG_FILE_PATH
Type : string
Default value : 'sunbird_config_file_path'
SUBJECT_NAME
Type : string
Default value : 'support request'

src/app/settings/about-us/about-us.component.ts

KEY_SUNBIRD_CONFIG_FILE_PATH
Type : string
Default value : 'sunbird_config_file_path'

src/app/manage-learn/core/constants/localStorageConstants.ts

localStorageConstants
Type : object
Default value : { PROJECT_META_FORM: "projectForm", TASK_META_FORM: "taskForm", PROFILE_DATA:"profileData", DYNAMIC_LINKS: "dynamicLinks", SYNC_VARIABLE: "syncSettings", FIRST_TIME: "FirstTime", USER_DETAILS:"usersInfo", SELECTED_LANGUAGE: "selectedLanguage", LIBRARY_CATEGORIES:"libraryCategories", FILE_LIMIT:50000000 }

src/app/manage-learn/core/constants/menuConstants.ts

menuConstants
Type : object
Default value : { TASK: [ { TITLE: 'EDIT', VALUE: 'editTask', ICON: 'create' }, { TITLE: 'FRMELEMNTS_LBL_SHARE', VALUE: 'shareTask', ICON: 'share' } ], PROJECT: [ { TITLE: 'EDIT', VALUE: 'editProject', ICON: 'create' }, // { // TITLE: 'DELETE', // VALUE: 'deleteProject', // ICON: 'trash' // }, { TITLE: 'FRMELEMNTS_LBL_FILES', VALUE: 'fileProject', ICON: 'document' }, { TITLE: 'FRMELEMNTS_LBL_SHARE', VALUE: 'shareProject', ICON: 'share' }], }

src/services/framework-details.service.spec.data.ts

mockBoardCategory
Type : []
Default value : [ { name: 'Board', translations: '{\"en\":\"Board\"}', code: 'board', frameworkCategory: true, index: 1, values: [] } ]
mockGradeLevelCategory
Type : []
Default value : [ { identifier: 'tpd_gradelevel_class1', code: 'class1', translations: null, name: 'Class 1', description: 'Class 1', index: 1, category: 'gradeLevel', status: 'Live' }, { identifier: 'tpd_gradelevel_class2', code: 'class2', translations: null, name: 'Class 2', description: 'Class 2', index: 2, category: 'gradeLevel', status: 'Live' } ]
mockMediumCategory
Type : []
Default value : [ { identifier: 'tpd_medium_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 3, category: 'medium', status: 'Live' }, { identifier: 'tpd_medium_bengali', code: 'bengali', translations: null, name: 'Bengali', description: 'Bengali', index: 17, category: 'medium', status: 'Live' } ]
mockSubjectCategory
Type : []
Default value : [ { identifier: 'tpd_subject_accountancy', code: 'accountancy', translations: null, name: 'Accountancy', description: 'Accountancy', index: 16, category: 'subject', status: 'Live' }, { identifier: 'tpd_subject_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 21, category: 'subject', status: 'Live' } ]

src/services/formandframeworkutil.service.spec.data.ts

mockCategoryTermsResponse
Default value : [ { associations : [ { identifier : 'ts_k-12_2_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ts_k-12_2_gradelevel_class1' , code : 'class1' , translations : null, name : 'Class 1' , description : ' Class 1' , index : 1, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ts_k-12_2_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ts_k-12_2_subject_telugu' , code : 'telugu' , translations : null, name : 'Telugu' , description : 'Telugu' , category : 'subject' , status : 'Live' }, { associations : [ { identifier : 'ts_k-12_2_subject_mathematics' , code : 'mathematics' , translations : null, name : 'Mathematics' , description : 'Mathematics' , category : 'subject' , status : 'Live' }, { identifier : 'ts_k-12_2_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' }, { identifier : 'ts_k-12_2_subject_evs' , code : 'evs' , translations : null, name : 'EVS' , description : 'EVS' , category : 'subject' , status : 'Live' }, { identifier : 'ts_k-12_2_subject_telugu' , code : 'telugu' , translations : 'null', name : 'Telugu' , description : 'Telugu' , category : 'subject' , status : 'Live' } ], identifier : 'ts_k-12_2_gradelevel_class2' , code : 'class2' , translations : null, name : 'Class 2' , description : 'Class 2' , index : 2, category : 'gradeLevel' , status : 'Live' } ] as any
mockComingSoonMessageSystemSettingsResponse
Type : object
Default value : { id: 'contentComingSoonMsg', field: 'contentComingSoonMsg', value: '[{\"rootOrgId\":\"rootOrgId\",\"value\":\"Org specific coming soon message\",\"translations\":\"{\\\"en\\\":\\\"Coming soon message\\\"}\"}]' }
mockContentConfigResponse
Default value : { form : { type : 'config' , subtype : 'content_v2' , action : 'filter' , data : { action : 'filter' , fields : [ { name : 'library' , code : 'primaryCategory' , values : [ 'Course', 'Learning Resource', 'Explanation Content', 'Teacher Resource', 'Content Playlist', 'Digital Textbook', 'Practice Question Set', 'eTextbook', 'Course Assessment' ] }, { name : 'course' , code : 'primaryCategory' , values : [ 'Course', 'Learning Resource', 'Explanation Content', 'Teacher Resource', 'Content Playlist', 'Digital Textbook', 'Practice Question Set', 'eTextbook', 'Course Assessment' ] }, { name : 'downloads' , code : 'primaryCategory' , values : [ 'Course', 'Learning Resource', 'Explanation Content', 'Teacher Resource', 'Content Playlist', 'Digital Textbook', 'Practice Question Set', 'eTextbook', 'Course Assessment' ] }, { name : 'dialcode' , code : 'primaryCategory' , values : [ 'Course', 'Digital Textbook', 'Textbook Unit' ] } ] } } } as any
mockCourseFilterConfigResponse
Default value : { form: { type: 'pageassemble', subtype: 'course', action: 'filter', data: { action: 'filter', fields: [ { code: 'board', values: [], name: 'Board/Syllabus', index: 1 }, { code: 'contentType', values: [ { code: 'Story', name: 'Story' } ], name: 'Resource Type', index: 5 } ] } } } as any
mockCustodianOrIdResponse
Type : object
Default value : { id: 'custodianOrgId', field: 'custodianOrgId', value: 'sample_custodianOrgId' }
mockDialCodeConfigResponse
Default value : { form : { type : 'config' , subtype : 'dialcode' , action : 'get' , data : { action : 'get' , fields : [ { name : 'Dialcode parser' , code : 'dialcode' , values : 'sample_regex' } ] } } } as any
mockExternalIdVerificationResponse
Default value : { form: { type: 'user', subtype: 'externalIdVerification', action: 'onboarding', data: { action: 'onboarding', fields: [ { popupHeaderLabel: 'User Verification', headerLabel: 'Are you a government school teacher ?', fieldLabel: 'Enter your teacher ID for verification', } ] } } } as any
mockFAQSystemSettingsResponse
Type : object
Default value : { id: 'faqURL', field: 'faqURL', value: 'sample_url' }
mockforceUpgradeFormAPIResponse
Default value : { form : { type : 'app' , subtype : 'install' , action : 'upgrade' , data : { action : 'upgrade' , fields : [ { code : 'upgrade' , name : 'Upgrade of app' , language : 'en' , range : [ { minVersionCode : 13, maxVersionCode : 52, versionName : '2.4.158' , type : 'forced' } ], upgradeTypes : [ { type : 'forced' , title : 'Sample_title' , desc : '' , actionButtons : [ { action : 'yes' , label : 'Update Now' , link : 'https://play.google.com/store/apps/details?id=org.sunbird.app&hl=en' } ] } ] } ] } } } as any
mockLibraryFilterConfigResponse
Default value : { form: { type: 'pageassemble', subtype: 'library', action: 'filter', data: { action: 'filter', fields: [ { code: 'board', values: [], name: 'Board/Syllabus', index: 1 }, { code: 'gradeLevel', values: [], name: 'Class', index: 2 }, { code: 'subject', values: [], name: 'Subject', index: 3 }, { code: 'medium', values: [], name: 'Medium', index: 4 }, { code: 'contentType', values: [ { code: 'Story', name: 'Story' } ], name: 'Resource Type', index: 5 } ] } } } as any
mockLocationConfigResponse
Default value : { form : { type : 'config' , subtype : 'dialcode' , action : 'get' , data : { action : 'get' , fields : [ { name: 'Skip Location', code: 'skip', values: [] } ] } } } as any
mockPdfPlayerConfigurationResponse
Default value : { form : { type : 'config' , subtype : 'pdfPlayer' , action : 'get' , data : { action : 'get' , fields : [ { name: 'pdfPlayer', code: 'pdf', values: [ { isEnabled: true } ] } ] } } } as any
mockSelfDeclarationForm
Type : []
Default value : [ { code: 'name', type: 'label', templateOptions: { labelHtml: { contents: '<p>$0:&nbsp;$1</p>', values: { $0: 'NAME', $1: '' } } } }, { code: 'state', type: 'label', templateOptions: { labelHtml: { contents: '<p>$0:&nbsp;$1</p>', values: { $0: 'STATE', $1: '' } } } }, { code: 'district', type: 'label', templateOptions: { labelHtml: { contents: '<p>$0:&nbsp;$1</p>', values: { $0: 'DISTRICT', $1: '' } } } }, { code: 'externalIds', type: 'nested_group', children: [ { code: 'declared-phone', fieldName: 'Mobile Number', type: 'input', templateOptinputions: { labelHtml: { contents: '<span>$0&nbsp;<span class=\required-asterisk\>*</span></span>', values: { $0: 'PHONE_PLACEHOLDER' } }, placeHolder: 'ENTER_PHONE_POPUP_TITLE', prefix: '+91 -' }, validations: [ { type: 'required', value: true, message: 'ERROR_PHONE_REQUIRED' }, { type: 'pattern', value: '^[6-9*][0-9*]{9}$', message: 'ERROR_PHONE_INVALID' } ], asyncValidation: { marker: 'MOBILE_OTP_VALIDATION', message: 'PLEASE_VALIDATE_YOUR_MOBILE_NUMBER', trigger: 'validate' } }, { code: 'declared-email', fieldName: 'Email Address', type: 'input', templateOptions: { placeHolder: 'EMAIL_PLACEHOLDER', label: 'EMAIL_ID_PLACEHOLDER' }, validations: [ { type: 'pattern', value: '^[A-Za-z0-9._*%+-]+@[A-Za-z0-9.-]+\\.[a-z]{2,}$', message: 'ERROR_EMAIL_INVALID' } ], asyncValidation: { marker: 'EMAIL_OTP_VALIDATION', message: 'PLEASE_VALIDATE_YOUR_EMAIL_ADDRESS', trigger: 'validate' } }, { code: 'declared-school-name', fieldName: 'School/Organization name', type: 'input', templateOptions: { label: 'SCHOOL_OR_ORG_NAME', placeHolder: 'ENTER_SCHOOL_NAME' }, validations: [ { type: 'pattern', value: '^[^\',(\\r\\n|\\r|\\n)]*$', message: 'Special characters not allowed' } ] }, { code: 'declared-school-udise-code', fieldName: 'School UDISE ID/Org ID', type: 'input', templateOptions: { label: 'SCHOOL_UDISE_ID_OR_ORG_ID', placeHolder: 'ENTER_UDISE_ID' }, validations: [ { type: 'pattern', value: '^[^\',(\\r\\n|\\r|\\n)]*$', message: 'Special characters not allowed' } ] }, { code: 'declared-ext-id', fieldName: 'Your ID from State/Board/Org', type: 'input', templateOptions: { labelHtml: { contents: '<span>$0&nbsp;<span class=\required-asterisk\>*</span></span>', values: { $0: 'ENTER_ID_AS_REQUESTED_BY_STATE_BOARD_ORG' } }, placeHolder: 'ENTER_ID' }, validations: [ { type: 'required', value: true, message: 'ID_IS_REQUIRED' }, { type: 'pattern', value: '^[^\',(\\r\\n|\\r|\\n)]*$', message: 'Special characters not allowed' } ] } ], templateOptions: {} }, { code: 'tnc', type: 'checkbox', templateOptions: { labelHtml: { contents: '<span>$tnc <u><a href=\$url\>$0</a></u></span>', values: { $tnc: 'SELF_DECLARE_TEACHER_TNC', $url: 'url', $0: 'PRIVACY_POLICY' } } }, validations: [ { type: 'required', value: true, message: '' } ] } ]
mockTenantPersonaInfoForm
Type : []
Default value : [ { code: 'persona', type: 'select', templateOptions: { label: 'I am a', placeHolder: 'Select persona', options: [ { value: 'teacher', label: 'Teacher' }, { value: 'other', label: 'Other' } ] }, validations: [ { type: 'required', value: true, message: 'Persona is required' } ] }, { code: 'tenant', type: 'select', templateOptions: { label: 'with', placeHolder: 'Select State/ Institution', options: [ { label: 'Andhra Pradesh', value: '012320771042492416102' } ], validations: [ { type: 'required', value: true, message: 'Persona is required' } ] } } ]
mockTPDFrameworkIdResponse
Type : object
Default value : { id: 'courseFrameworkId', field: 'courseFrameworkId', value: 'sample_courseFrameworkId' }
mockWebsessionConfigResponse
Default value : { type: 'config', subType: 'login', action: 'get', form: { data: { templateName: 'login', action: 'get', fields: [ { context: 'login', target: { host: 'sample_base_url', path: 'base_path', params: [ { key: 'redirect_uri', value: 'sample_redirect_uri' }, { key: 'response_type', value: 'code' }, { key: 'scope', value: 'offline_access' }, { key: 'client_id', value: 'android' }, { key: 'version', value: 4 } ] }, return: [ { type: 'state-error', when: { host: 'sample_host', path: 'sample_path', params: [ { key: 'error_message', resolveTo: 'error_message' } ] } }, { type: 'password-reset-success', when: { host: 'sample_host', path: 'sample_path', params: [ { key: 'client_id', resolveTo: 'client_id' } ] } }, { type: 'password', when: { host: 'sample_host', path: 'sample_path', params: [ { key: 'code', resolveTo: 'code' } ] } } ] }, { context: 'migrate', target: { host: 'sample_host', path: 'sample_path', params: [ { key: 'redirect_uri', value: 'sample_callback' }, { key: 'response_type', value: 'code' } ] }, return: [ { type: 'password', when: { host: 'sample_host', path: 'sample_callback', params: [ { key: 'code', resolveTo: 'code' } ] } } ] } ] } } } as any
mockWebviewFormResponse
Default value : { form: { type: 'config', subtype: 'webview_version', action: 'get', data: { action: 'get', fields: [ { version: '54' } ] } } } as any

src/services/content/child-content.handler.spec.data.ts

mockChildContentData
Default value : { identifier : 'do_2127630844502753281124' , contentData : { identifier : 'do_2127630844502753281124' , mimeType : 'application/vnd.ekstep.content-collection' , size : '156045' }, isUpdateAvailable : false, mimeType : 'application/vnd.ekstep.content-collection' , basePath : '/storage/emulated/0/Android/data/org.sunbird.app.staging/files/content/do_2127630844502753281124/' , contentType : 'course' , isAvailableLocally : true, referenceCount : 1, sizeOnDevice : 32725, lastUsedTime : 0, lastUpdatedTime : 1578039888000, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' } ], children : [ { identifier : 'do_2127630862588313601130' , contentData : { mimeType : 'application/vnd.ekstep.content-collection' , contentType : 'CourseUnit' , identifier : 'do_2127630862588313601130' , depth : 1, lastPublishedOn : ' 2019-05-16T08:31:18.403+0000 ' }, isUpdateAvailable : false, mimeType : 'application/vnd.ekstep.content-collection' , basePath : '', contentType : 'courseunit' , isAvailableLocally : false, referenceCount : 1, sizeOnDevice : 0, lastUsedTime : 0, lastUpdatedTime : 1578039888000, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588313601130' , contentType : 'courseunit' } ], children : [ { identifier : 'do_212763017508380672130' , contentData : { mimeType : 'video/x-youtube' , identifier : 'do_212763017508380672130' }, isUpdateAvailable : false, mimeType : 'video/x-youtube' , contentType : 'resource' , isAvailableLocally : true, referenceCount : 1, sizeOnDevice : 2608, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588313601130' , contentType : 'courseunit' } ] } ] }, { identifier : 'do_2127630862588313601131' , contentData : { identifier : 'do_2127630862588313601131' }, isUpdateAvailable : false, mimeType : ' application/vnd.ekstep.content-collection' , basePath : '', contentType : 'courseunit' , isAvailableLocally : false, referenceCount : 1, sizeOnDevice : 0, lastUsedTime : 0, lastUpdatedTime : 1578039888000, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588313601131' , contentType : 'courseunit' } ], children : [ { identifier : 'do_212763019136589824134' , contentData : { identifier : 'do_212763019136589824134' }, isUpdateAvailable : false, mimeType : ' video/x-youtube' , basePath : '/storage/emulated/0/Android/data/org.sunbird.app.staging/files/content/do_212763019136589824134/' , contentType : 'resource' , isAvailableLocally : true, referenceCount : 1, sizeOnDevice : 2590, lastUsedTime : 0, lastUpdatedTime : 1578039888000, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588313601131' , contentType : 'courseunit' } ] } ] }, { identifier : 'do_2127630862588395521132' , contentData : { contentType : 'CourseUnit' , identifier : 'do_2127630862588395521132' }, isUpdateAvailable : false, mimeType : 'application/vnd.ekstep.content-collection' , basePath : '', contentType : 'courseunit' , isAvailableLocally : false, referenceCount : 1, sizeOnDevice : 0, lastUsedTime : 0, lastUpdatedTime : 1578039888000, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588395521132' , contentType : 'courseunit' } ], children : [ { identifier : 'do_212763019765645312135' , contentData : { identifier : 'do_212763019765645312135' }, isUpdateAvailable : false, mimeType : ' video/x-youtube' , basePath : '/storage/emulated/0/Android/data/org.sunbird.app.staging/files/content/do_212763019765645312135/' , contentType : 'resource' , isAvailableLocally : true, referenceCount : 1, sizeOnDevice : 2541, lastUsedTime : 0, lastUpdatedTime : 1578039888000, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588395521132' , contentType : 'courseunit' } ] } ] }, { identifier : 'do_2127630862588477441133' , contentData : { contentType : 'CourseUnit' , identifier : 'do_2127630862588477441133' }, isUpdateAvailable : false, mimeType : 'application/vnd.ekstep.content-collection' , basePath : '', contentType : 'courseunit' , isAvailableLocally : false, referenceCount : 1, sizeOnDevice : 0, lastUsedTime : 0, lastUpdatedTime : 1578039888000, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588477441133' , contentType : 'courseunit' } ], children : [ { identifier : 'do_2127630938477936641152' , contentData : { identifier : 'do_2127630938477936641152' }, isUpdateAvailable : false, mimeType : 'video/x-youtube' , basePath : '/storage/emulated/0/Android/data/org.sunbird.app.staging/files/content/do_2127630938477936641152/' , contentType : 'resource' , isAvailableLocally : true, referenceCount : 1, sizeOnDevice : 2551, lastUsedTime : 0, lastUpdatedTime : 1578039888000, hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588477441133' , contentType : 'courseunit' } ] } ] }, { identifier : 'do_2127630862588805121134' , contentData : { mimeType : 'application/vnd.ekstep.content-collection' , contentType : 'CourseUnit' , identifier : 'do_2127630862588805121134' , hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588805121134' , contentType : 'courseunit' } ], children : [ { identifier : 'do_2127630961202954241153' , hierarchyInfo : [ { identifier : 'do_2127630844502753281124' , contentType : 'course' }, { identifier : 'do_2127630862588805121134' , contentType : 'courseunit' } ] } ] } } ] } as any

src/app/components/collection-child/collection-child.component.spec.data.ts

mockChildContentData
Type : Content
Default value : { identifier: 'do_21274246255366963214046', basePath: 'samplePath', contentData: { name: 'sample_name', appIcon: 'sample_icon' }, hierarchyInfo: [{ identifier: 'do_123', contentType: 'textbook' }, { identifier: 'do098', contentType: 'resources' }], }
mockCompletedContentStatusData
Type : ContentStateResponse
Default value : { contentList: [{ contentId: 'do_21274246255366963214046', status: 2 }] }
mockInCompleteContentStatusData
Type : ContentStateResponse
Default value : { contentList: [{ contentId: 'do_21274246255366963214046', status: 1 }] }

src/services/content/player/content.player-handler.spec.data.ts

mockContent
Default value : { identifier : 'do_212936404296335360119' , contentData : { ownershipType : [ 'createdBy' ], totalQuestions: 10, mimeType : 'application/vnd.ekstep.ecml-archive', gradeLevel : [ 'Class 9' , 'Class 10 ' ], version : 2, streamingUrl : ' https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/ecml/do_212936404296335360119-latest' , medium : [ 'English' , 'Hindi' ], resourceType : 'Teach' }, isUpdateAvailable : false, mimeType : 'application/vnd.ekstep.ecml-archive' , basePath : '/_app_file_' , contentType : 'resource' , isAvailableLocally : false, rollup : { l1 : 'do_212936404296335360119' } } as any
mockPlayerConfigData
Default value : { metadata : mockContent, config : { showEndPage : false, endPage : [ { template : 'assessment' , contentType : [ 'SelfAssess' ] } ], splash : { webLink : '' , text : '' , icon : '' , bgImage : ' assets/icons/splacebackground_1.png' }, overlay : { enableUserSwitcher : true, showUser : false }, plugins : [ { id : 'org.sunbird.player.endpage' , ver : '1.1' , type : 'plugin' } ] }, context : { did : 'ef37fc07aee31d87b386a408e0e4651e00486618' , origin : 'https://staging.ntp.net.in' , pdata : { id : 'staging.sunbird.app' , pid : 'sunbird.app' , ver : '2.7.197staging-debug' }, objectRollup : { l1 : 'do_212936404296335360119' }, sid : 'e33e1b95-e6e5-400f-b438-35df4b65ee73' , actor : { type : 'User' , id : '7ebe9375-425e-4325-ba39-eac799871ed4' }, deeplinkBasePath : '' , cdata : [ { id : ' 29c9c790-3845-11ea-8647-8b09062a2e3d' , type : 'API' }, { id : 'SearchResult' , type : 'Section' }, { id : 'streaming' , type : 'PlayerLaunch' } ], channel : '505c7c48ac6dc1edc9b08f21db5a571d' }, appContext : { local : true, server : false, groupId : '' }, data : {}, uid : '7ebe9375-425e-4325-ba39-eac799871ed4' } as any

src/app/content-details/content-details.page.spec.data.ts

mockContentData
Type : Partial<Navigation>
Default value : { id: 7, initialUrl: '', trigger: 'imperative', previousNavigation: null, extras: { state: { content: { ownershipType: [ 'createdBy' ], copyright: 'R2.1.0', subject: 'Biology', channel: '0127870805901967364', downloadUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_212911645382959104165/license-check-course_1576128983035_do_212911645382959104165_2.0_spine.ecar', organisation: [ 'R2.1.0' ], language: [ 'English' ], mimeType: 'application/vnd.ekstep.content-collection', variants: { online: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_212911645382959104165/license-check-course_1576128983287_do_212911645382959104165_2.0_online.ecar', size: 6861 }, spine: { ecarUrl: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/ecar_files/do_212911645382959104165/license-check-course_1576128983035_do_212911645382959104165_2.0_spine.ecar', size: 94964 } }, leafNodes: [ 'do_212911623572824064157', 'do_212911626086563840154', 'do_212911626512154624155', 'do_212911625643237376158', 'do_212911626908123136157' ], objectType: 'Content', gradeLevel: [ 'Class 3' ], appIcon: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_212911645382959104165/artifact/assessment_1569305945119.thumb.png', children: [ 'do_212911623572824064157', 'do_212911626908123136157', 'do_212911626512154624155', 'do_212911626086563840154', 'do_212911625643237376158' ], appId: 'staging.sunbird.portal', contentEncoding: 'gzip', lockKey: 'a8d2c96f-5921-4f88-861e-561046854667', mimeTypesCount: '{\'application/vnd.ekstep.content-collection\:1,\'application/vnd.ekstep.ecml-archive\:5}', totalCompressedSize: 72698, contentType: 'Course', identifier: 'do_212911645382959104165', audience: [ 'Learner' ], visibility: 'Default', toc_url: 'https://ntpstagingall.blob.core.windows.net/ntp-content-staging/content/do_212911645382959104165/artifact/do_212911645382959104165_toc.json', contentTypesCount: '{\'CourseUnit\:1,\'Resource\:5}', consumerId: 'a9cb3a83-a164-4bf0-aa49-b834cebf1c07', childNodes: [ 'do_212911623572824064157', 'do_212911626086563840154', 'do_212911626512154624155', 'do_2129116460130713601733', 'do_212911625643237376158', 'do_212911626908123136157' ], batchId: 'SAMPLE_BATCH' }, corRelation: [{id: 'do-123', type: 'Content'}], resumedCourseCardData: { contentId: 'do-123' }, autoPlayQuizContent: true, source: PageId.GROUP_DETAIL, groupId: 'g1', activityList: [] } } }

src/services/sunbird-splashscreen/splashscreen-deeplink-action-handler-delegate.spec.data.ts

mockDeeplinkConfig
Type : []
Default value : [ { name: 'Dialcode parser', code: 'dialcode', pattern: '(\\/dial\\/(?<sunbird>[a-zA-Z0-9]+)|(\\/QR\\/\\?id=(?<epathshala>[a-zA-Z0-9]+)))', route: 'search' }, { name: 'content deatil', code: 'contentDetail', pattern: '(?:\\/(?:resources\\/play\\/content|play\\/content|play\\/quiz)\\/(?<quizId>\\w+))', route: 'content-details' }, { name: 'Textbook detail', code: 'textbookDetail', pattern: '(?:\\/play\\/(?:collection)\\/(?<content_id>\\w+))', route: 'collection-detail-etb', priority: 2 }, { name: 'Textbook content detail', code: 'textbookContentDetail', pattern: '(?:\\/play\\/(?:collection)\\/(?<content_id>\\w+)\\?(?=.*\\bcontentId\\b=(?<contentId>([^&]*)).*))', route: 'collection-detail-etb', priority: 1 }, { name: 'Course Detail', code: 'courseDetail', pattern: '(?:\\/(?:explore-course|learn)\\/course\\/(?<course_id>\\w+))', route: 'enrolled-course-details', priority: 3 }, { name: 'Module Detail', code: 'moduleDetail', pattern: '(?:\\/(?:explore-course|learn)\\/course\\/(?<course_id>\\w+)\\?(?=.*\\bmoduleId\\b=(?<moduleId>([^&]*)).*))', route: 'module-details', priority: 1 }, { name: 'Course Content Detail', code: 'courseContentDetail', pattern: '(?:\\/(?:explore-course|learn)\\/course\\/(?<course_id>\\w+)\\?(?=.*\\bcontentId\\b=(?<contentId>([^&]*)).*))', route: 'course-content-details', priority: 2 }, { name: 'Library', code: 'library', pattern: '\\/(resources|explore)$', route: 'tabs/resources' }, { name: 'TakeSurvey', code: 'takeSurvey', pattern: '\\/manage-learn\\/take-survey\\/(?<survey_id>\\w+)', route: 'survey' }, { name: 'Create Observation', code: 'createObservation', pattern: '\\/manage-learn\\/create-observation\\/(?<create_observation_id>\\w+)', route: 'deeplink-redirect/observationLink' }, { name: 'Observation', code: 'observation', pattern: '\\/manage-learn\\/observation\\/(?<observation_id>\\w+)', route: 'content-details', priority: 6 }, { name: 'Reports', code: 'report', pattern: '\\/manage-learn\\/observation\\/reports\\/(?<report_id>\\w+)', route: 'content-details', priority: 5 }, { name: 'Profile', code: 'profile', pattern: '\\/(profile)$', route: 'tabs/profile' }, { name: 'FAQ', code: 'faq', pattern: '\\/(faq)$', route: 'faq-help' }, { name: 'Content attributes', code: 'attributes', pattern: '', route: '', params: { attributes: [ { code: 'attributions', type: 'Array' }, { code: 'author', type: 'String' }, { code: 'compatibilityLevel', type: 'String' }, { code: 'contentDisposition', type: 'String' }, { code: 'contentEncoding', type: 'String' }, { code: 'createdBy', type: 'String' }, { code: 'createdFor', type: 'Array' }, { code: 'dialcodes', type: 'String' }, { code: 'language', type: 'Array' }, { code: 'organisation', type: 'Array' }, { code: 'organization', type: 'Array' }, { code: 'rating', type: 'String' }, { code: 'resourceType', type: 'Array' }, { code: 'targetFWIds', type: 'Array' }, { code: 'targetBoardIds', type: 'Array' }, { code: 'targetGradeLevelIds', type: 'Array' }, { code: 'targetMediumIds', type: 'Array' }, { code: 'targetSubjectIds', type: 'Array' }, { code: 'targetTopicIds', type: 'Array' }, { code: 'userConsent', type: 'String' }, { code: 'visibility', type: 'Array' }, { code: 'medium', type: 'Array' }, { code: 'gradeLevel', type: 'Array' }, { code: 'board', type: 'Array' }, { code: 'subject', type: 'Array' }, { code: 'primaryCategory', type: 'Array' }, { code: 'audience', type: 'Array' }, { code: 'channel', type: 'Array' }, { code: 'mimeType', type: 'Array', proxyCode: 'mediaType', filter: 'custom' } ] } }, { name: 'Search Course', code: 'searchCourse', pattern: '\\/(explore-course|learn)(\\?.*|$)', route: 'tabs/search', priority: 4, params: { key: 'key', data: [ { code: 'primaryCategory', values: [ 'Course', 'Course Assessment' ], type: 'default' } ] } }, { name: 'Search Textbook', code: 'searchTextbook', pattern: '\\/(resources|explore)(\\?.*selectedTab=textbook|$)', route: 'search', priority: 2, params: { key: 'key', data: [ { code: 'primaryCategory', values: [ 'Digital Textbook', 'eTextbook' ], type: 'default' } ] } }, { name: 'Search TV Program', code: 'searchTvProgram', pattern: '\\/(resources|explore)\\?.*selectedTab=tvProgram', route: 'search', priority: 2, params: { key: 'key', data: [ { code: 'primaryCategory', values: [ 'TVLesson' ], type: 'default' } ] } }, { name: 'Search', code: 'searchAll', pattern: '\\/(search\\/Library|explore)\\/1(\\?.*|$)', route: 'search', priority: 1, params: { key: 'key', data: [ { code: 'primaryCategory', values: [ 'Collection', 'Resource', 'Content Playlist', 'Course', 'Course Assessment', 'Digital Textbook', 'eTextbook', 'Explanation Content', 'Learning Resource', 'Practice Question Set', 'Teacher Resource', 'LessonPlan', 'FocusSpot', 'Learning Outcome Definition', 'Curiosity Questions', 'MarkingSchemeRubric', 'ExplanationResource', 'ExperientialResource', 'Practice Resource', 'TVLesson' ], type: 'default' }, { code: 'mimeType', values: [ { name: 'all', options: [ 'application/vnd.ekstep.ecml-archive', 'application/vnd.ekstep.html-archive', 'application/vnd.android.package-archive', 'application/vnd.ekstep.content-archive', 'application/vnd.ekstep.content-collection', 'application/vnd.ekstep.plugin-archive', 'application/vnd.ekstep.h5p-archive', 'application/epub', 'text/x-url', 'video/x-youtube', 'application/octet-stream', 'application/msword', 'application/pdf', 'image/jpeg', 'image/jpg', 'image/png', 'image/tiff', 'image/bmp', 'image/gif', 'image/svg+xml', 'video/avi', 'video/mpeg', 'video/quicktime', 'video/3gpp', 'video/mpeg', 'video/mp4', 'video/ogg', 'video/webm', 'audio/mp3', 'audio/mp4', 'audio/mpeg', 'audio/ogg', 'audio/webm', 'audio/x-wav', 'audio/wav' ] }, { name: 'video', options: [ 'video/avi', 'video/mpeg', 'video/quicktime', 'video/3gpp', 'video/mpeg', 'video/mp4', 'video/ogg', 'video/webm' ] }, { name: 'documents', options: [ 'application/pdf', 'application/epub', 'application/msword' ] }, { name: 'interactive', options: [ 'application/vnd.ekstep.ecml-archive', 'application/vnd.ekstep.h5p-archive', 'application/vnd.ekstep.html-archive' ] }, { name: 'audio', options: [ 'audio/mp3', 'audio/mp4', 'audio/mpeg', 'audio/ogg', 'audio/webm', 'audio/x-wav', 'audio/wav' ] } ], type: 'custom' } ] } } ]

src/app/components/discover/discover.page.spec.data.ts

mockDiscoverPageData
Type : []
Default value : [ { index: 0, title: '{"en":"Popular categories"}', data: [ { facet: 'Digital Textbook', searchCriteria: { facets: [], primaryCategories: [ 'Digital Textbook' ], mode: 'soft', searchType: 'search' }, primaryFacetFilters: [ { code: 'board', translations: '{"en":"Board/Syllabus","hi":"बोर्ड","te":"బోర్డు","ta":"வாரியம்","mr":"बोर्ड"}', values: [], name: 'Board/Syllabus', index: 1 }, { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 } ], aggregate: { groupBy: 'subject' } }, { facet: 'Courses', searchCriteria: { facets: [], primaryCategories: [ 'Course' ], mode: 'soft', searchType: 'search' }, primaryFacetFilters: [ { code: 'board', translations: '{"en":"Board/Syllabus","hi":"बोर्ड","te":"బోర్డు","ta":"வாரியம்","mr":"बोर्ड"}', values: [], name: 'Board/Syllabus', index: 1 }, { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 } ], aggregate: { groupBy: 'subject' } }, { facet: 'Tv Classes', searchCriteria: { facets: [], primaryCategories: [ 'Explanation Content' ], mode: 'soft', searchType: 'search' }, primaryFacetFilters: [ { code: 'board', translations: '{"en":"Board/Syllabus","hi":"बोर्ड","te":"బోర్డు","ta":"வாரியம்","mr":"बोर्ड"}', values: [], name: 'Board/Syllabus', index: 1 }, { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 } ], aggregate: { groupBy: 'subject' } } ], dataSrc: { type: 'CONTENT_FACETS', request: { type: 'POST', path: '/api/content/v1/search', withBearerToken: true, body: { request: { limit: 0, offset: 0, mode: 'hard', facets: [], filters: {} } } }, values: [ { facet: 'Digital Textbook', searchCriteria: { facets: [], primaryCategories: [ 'Digital Textbook' ], mode: 'soft', searchType: 'search' }, primaryFacetFilters: [ { code: 'board', translations: '{"en":"Board/Syllabus","hi":"बोर्ड","te":"బోర్డు","ta":"வாரியம்","mr":"बोर्ड"}', values: [], name: 'Board/Syllabus', index: 1 }, { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 } ], aggregate: { groupBy: 'subject' } }, { facet: 'Courses', searchCriteria: { facets: [], primaryCategories: [ 'Course' ], mode: 'soft', searchType: 'search' }, primaryFacetFilters: [ { code: 'board', translations: '{"en":"Board/Syllabus","hi":"बोर्ड","te":"బోర్డు","ta":"வாரியம்","mr":"बोर्ड"}', values: [], name: 'Board/Syllabus', index: 1 }, { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 } ], aggregate: { groupBy: 'subject' } }, { facet: 'Tv Classes', searchCriteria: { facets: [], primaryCategories: [ 'Explanation Content' ], mode: 'soft', searchType: 'search' }, primaryFacetFilters: [ { code: 'board', translations: '{"en":"Board/Syllabus","hi":"बोर्ड","te":"బోర్డు","ta":"வாரியம்","mr":"बोर्ड"}', values: [], name: 'Board/Syllabus', index: 1 }, { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 } ], aggregate: { groupBy: 'subject' } } ], mapping: [] }, theme: { component: 'sb-pills-grid', inputs: { pillShape: 'default' } } }, { index: 1, title: '{"en":"Search from other boards"}', data: [ { facet: '{"en":"AP"}', searchCriteria: { facets: [ 'board' ], filters: { board: [ 'ts_k-12_2' ] } }, primaryFacetFilters: [ { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 }, { code: 'medium', translations: '{"en":"Medium","hi":"माध्यम","te":"మాధ్యమం","ta":"மொழி","mr":"माध्यम"}', values: [], name: 'Medium', index: 4 } ], aggregate: { groupBy: 'subject' } }, { facet: '{"en":"AS"}', searchCriteria: { facets: [ 'board' ], filters: { board: [ 'as_k-12_5' ] } }, primaryFacetFilters: [ { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 }, { code: 'medium', translations: '{"en":"Medium","hi":"माध्यम","te":"మాధ్యమం","ta":"மொழி","mr":"माध्यम"}', values: [], name: 'Medium', index: 4 } ], aggregate: { groupBy: 'subject' } }, { facet: '{"en":"KA"}', searchCriteria: { facets: [ 'board' ], filters: { board: [ 'ka_k-12_1' ] } }, primaryFacetFilters: [ { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 }, { code: 'medium', translations: '{"en":"Medium","hi":"माध्यम","te":"మాధ్యమం","ta":"மொழி","mr":"माध्यम"}', values: [], name: 'Medium', index: 4 } ], aggregate: { groupBy: 'subject' } } ], dataSrc: { type: 'CONTENT_FACETS', request: { type: 'POST', path: '/api/content/v1/search', withBearerToken: true, body: { request: { limit: 0, offset: 0, mode: 'hard', facets: [], filters: {} } } }, values: [ { facet: '{"en":"AP"}', searchCriteria: { facets: [ 'board' ], filters: { board: [ 'ts_k-12_2' ] } }, primaryFacetFilters: [ { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 }, { code: 'medium', translations: '{"en":"Medium","hi":"माध्यम","te":"మాధ్యమం","ta":"மொழி","mr":"माध्यम"}', values: [], name: 'Medium', index: 4 } ], aggregate: { groupBy: 'subject' } }, { facet: '{"en":"AS"}', searchCriteria: { facets: [ 'board' ], filters: { board: [ 'as_k-12_5' ] } }, primaryFacetFilters: [ { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 }, { code: 'medium', translations: '{"en":"Medium","hi":"माध्यम","te":"మాధ్యమం","ta":"மொழி","mr":"माध्यम"}', values: [], name: 'Medium', index: 4 } ], aggregate: { groupBy: 'subject' } }, { facet: '{"en":"KA"}', searchCriteria: { facets: [ 'board' ], filters: { board: [ 'ka_k-12_1' ] } }, primaryFacetFilters: [ { code: 'gradeLevel', translations: '{"en":"Class","hi":"कक्षा","te":"క్లాసు","ta":"வகுப்பு","mr":"इयत्ता"}', values: [], name: 'Class', index: 2 }, { code: 'medium', translations: '{"en":"Medium","hi":"माध्यम","te":"మాధ్యమం","ta":"மொழி","mr":"माध्यम"}', values: [], name: 'Medium', index: 4 } ], aggregate: { groupBy: 'subject' } } ], mapping: [] }, theme: { component: 'sb-pills-grid', inputs: { pillShape: 'circle', pillsViewType: 'scroll' } }, code: 'popular_categories' }, { index: 2, title: '{"en":"Trending courses from your state"}', meta: { searchCriteria: { sortCriteria: [], searchType: 'search', offset: 0, limit: 100, impliedFiltersMap: [], impliedFilters: [ { name: 'primaryCategories', values: [ { name: 'Course', apply: true } ] } ], facets: [ 'primaryCategory' ] }, filterCriteria: { limit: 100, offset: 0, facets: [ 'primaryCategory' ], sortCriteria: [], mode: 'hard', facetFilters: [ { name: 'primaryCategory', values: [] } ], impliedFiltersMap: [ { audience: [] }, { contentType: [] }, { medium: [] }, { board: [] }, { language: [] }, { topic: [] }, { purpose: [] }, { channel: [] }, { mimeType: [] }, { subject: [] } ], impliedFilters: [ { name: 'objectType', values: [ { name: 'Content', apply: true } ] }, { name: 'primaryCategories', values: [ { name: 'Course', apply: true } ] } ] }, searchRequest: { offset: 0, limit: 100, exists: [], facets: [ 'primaryCategory' ], sort_by: {}, filters: { audience: [], objectType: [ 'Content' ], contentType: [], primaryCategory: [], medium: [], board: [], language: [], topic: [], purpose: [], channel: [], mimeType: [], subject: [], primaryCategories: [ 'Course' ] } } }, dataSrc: { type: 'CONTENTS', request: { type: 'POST', path: '/api/content/v1/search', withBearerToken: true, body: { request: { offset: 0, limit: 100, exists: [], facets: [ 'primaryCategory' ], sort_by: {}, filters: { audience: [], objectType: [ 'Content' ], contentType: [], primaryCategory: [], medium: [], board: [], language: [], topic: [], purpose: [], channel: [], mimeType: [], subject: [], primaryCategories: [ 'Course' ] } } } }, mapping: [] }, theme: { component: 'sb-course-cards-hlist', inputs: { type: 'course_card_grid', hideProgress: true, viewMoreButtonText: '{"en":"View all"}' } } }, { data: [ { facet: 'primaryCategory', icon: 'https://' } ], dataSrc: { type: 'SEARCH_CONTENTS_BY_POULAR_CATEGORY' } } ]
mockOnboardingConfigData
Type : object
Default value : { overriddenDefaultChannelId : "SAMPLE_CHANNEL_ID", theme: { name: "aqua" }, "onboarding": [ { "name": "language-setting", "skip": false, "default": { "code": "en", "label": "English" }, "data": [ { "label": "हिंदी", "code": "hi", "isApplied": false, "name": "Hindi" }, { "label": "English", "code": "en", "isApplied": false, "name": "English" } ] } ] }

src/app/page-filter/page-filter-options/page-filter-options.spec.data.ts

mockFacets
Type : object
Default value : { name: 'Topic', translations: '{\"en\":\"Topic\"}', code: 'topic', frameworkCategory: true, index: 1, selected: ['topic1'], values: [{ identifier: 'tpd_medium_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 0, category: 'topic', status: 'Live' }] }
mockFacetsBoard
Type : object
Default value : { name: 'Board', translations: '{\"en\":\"Topic\"}', code: 'board', frameworkCategory: true, index: 1, selectedValuesIndices: [0], values: [{ identifier: 'tpd_medium_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 0, category: 'topic', status: 'Live' }] }
mockFacetsBoardNew
Type : object
Default value : { name: 'Board', translations: '{\"en\":\"Topic\"}', code: 'board', frameworkCategory: true, index: 1, selected: ['AP'], selectedValuesIndices: [0], values: [{ identifier: 'tpd_medium_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 0, category: 'topic', status: 'Live' }] }
mockFacetsContentTypeWith
Type : object
Default value : { name: 'ContentType', translations: '{\"en\":\"Topic\"}', code: 'contentType', frameworkCategory: true, index: 1, selectedValuesIndices: [0], values: [{ identifier: 'tpd_medium_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 0, category: 'topic', status: 'Live' }] }
mockFacetsContetType
Type : object
Default value : { name: 'ContnetType', translations: '{\"en\":\"Topic\"}', code: 'contentType', frameworkCategory: true, index: 1, selected: ['WorkSheet'], selectedValuesIndices: [0], values: [{ identifier: 'tpd_medium_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 0, category: 'topic', status: 'Live' }] }
mockFacetsMedium
Type : object
Default value : { name: 'Medium', translations: '{\"en\":\"Topic\"}', code: 'medium', frameworkCategory: true, index: 1, selected: ['English'], selectedValuesIndices: [0], values: [{ identifier: 'tpd_medium_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 0, category: 'topic', status: 'Live' }] }

src/app/page-filter/page-filter.page.spec.data.ts

mockFilter
Type : []
Default value : [ { name: 'Topic', translations: '{\"en\":\"Topic\"}', code: 'topic', frameworkCategory: true, index: 1, values: [] }, { name: 'Purpose', translations: '{\"en\":\"Purpose\"}', code: 'purpose', frameworkCategory: true, index: 2, values: [] }, { name: 'Medium', translations: '{\"en\":\"Medium\"}', code: 'medium', frameworkCategory: true, index: 3, values: [] }, { name: 'Class', translations: '{\"en\":\"Class\"}', code: 'gradeLevel', frameworkCategory: true, index: 4, values: [] }, { name: 'Subject', translations: '{\"en\":\"Subject\"}', code: 'subject', frameworkCategory: true, index: 5, values: [] }, { name: 'Organization', translations: '{\"en\":\"Organization\"}', code: 'channel', frameworkCategory: false, index: 6, values: [] }, { name: 'ContentType', translations: '{\"en\":\"ContentType\"}', code: 'contentType', frameworkCategory: true, index: 1, selectedValuesIndices: [0, 1], selected: {}, values: [{ name: 'Story', code: 'Story' }, { name: 'Worksheet', code: 'Worksheet', }, { name: 'Collection', code: 'Collection', }], resourceTypeValues: [{ name: 'Story', code: 'Story' }, { name: 'Worksheet', code: 'Worksheet', }, { name: 'Collection', code: 'Collection', }] }, { name: 'ContentType', translations: '{\"en\":\"ContentType\"}', code: 'contentType', frameworkCategory: true, index: 1, selectedValuesIndices: [0, 1], values: [{ name: 'Story', code: 'Story' }, { name: 'Worksheet', code: 'Worksheet', }, { name: 'Collection', code: 'Collection', }], resourceTypeValues: [{ name: 'Story', code: 'Story' }, { name: 'Worksheet', code: 'Worksheet', }, { name: 'Collection', code: 'Collection', }] } ]
mockGradeLevelCategoryTerms
Type : []
Default value : [ { identifier: 'tpd_gradelevel_class1', code: 'class1', translations: null, name: 'Class 1', description: 'Class 1', index: 1, category: 'gradeLevel', status: 'Live' }, { identifier: 'tpd_gradelevel_class2', code: 'class2', translations: null, name: 'Class 2', description: 'Class 2', index: 2, category: 'gradeLevel', status: 'Live' } ]
mockMediumCategoryTerms
Type : []
Default value : [ { identifier: 'tpd_medium_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 3, category: 'medium', status: 'Live' }, { identifier: 'tpd_medium_bengali', code: 'bengali', translations: null, name: 'Bengali', description: 'Bengali', index: 17, category: 'medium', status: 'Live' } ]
mockRootOrgData
Type : []
Default value : [{ orgName: 'QWL64', hashTagId: '012547858902196224199', slug: '173' }]
mockSubjectCategoryTerms
Type : []
Default value : [ { identifier: 'tpd_subject_accountancy', code: 'accountancy', translations: null, name: 'Accountancy', description: 'Accountancy', index: 16, category: 'subject', status: 'Live' }, { identifier: 'tpd_subject_assamese', code: 'assamese', translations: null, name: 'Assamese', description: 'Assamese', index: 21, category: 'subject', status: 'Live' } ]
mockTopicCategoryTerms
Type : []
Default value : [ { name: 'Topic', translations: '{\"en\":\"Topic\"}', code: 'topic', frameworkCategory: true, index: 1, values: [] }, { name: 'Purpose', translations: '{\"en\":\"Purpose\"}', code: 'purpose', frameworkCategory: true, index: 2, values: [] }, { name: 'Medium', translations: '{\"en\":\"Medium\"}', code: 'medium', frameworkCategory: true, index: 3, values: [] }, { name: 'Class', translations: '{\"en\":\"Class\"}', code: 'gradeLevel', frameworkCategory: true, index: 4, values: [] }, { name: 'Subject', translations: '{\"en\":\"Subject\"}', code: 'subject', frameworkCategory: true, index: 5, values: [] }, { name: 'Organization', translations: '{\"en\":\"Organization\"}', code: 'channel', frameworkCategory: false, index: 6, values: [] } ]

src/app/search/filters/filters.page.spec.data.ts

mockFilterCriteria
Type : object
Default value : { query: 'hindi', limit: 100, offset: 0, facets: [ 'board', 'gradeLevel', 'subject', 'medium', 'primaryCategory', 'publisher', 'mimeType', 'audience' ], primaryCategorie: [ 'Course', 'Learning Resource', 'Explanation Content', 'Teacher Resource', 'Content Playlist', 'Digital Textbook', 'Practice Question Set', 'eTextBook', 'Course Assessment' ], sortCriteria: [], mode: 'hard', facetFilters: [ { name: 'gradeLevel', values: [ { name: 'other', count: 147, apply: false, index: 0 }, { name: 'class 10', count: 2860, apply: false, index: 2 } ], translatedName: 'Class' }, { name: 'audience', values: [ { name: 'instructor', count: 40, apply: false }, { name: 'student', count: 13457, apply: true }, { name: 'learner', count: 1833, apply: true } ] }, { name: 'primaryCategory', values: [ { name: 'template', count: 3, apply: false }, { name: 'course assessment', count: 1, apply: false } ] }, { name: 'subject', values: [ { name: 'physical education', count: 1, apply: false } ] }, { name: 'se_mediums', values: [ { name: 'gujarati', count: 12, apply: false } ], translatedName: 'Medium' }, { name: 'mimeType', values: [ { name: 'INTERACTION', count: 3567, values: [ { name: 'application/vnd.ekstep.h5p-archive', count: 85, apply: false }, { name: 'application/vnd.ekstep.html-archive', count: 54, apply: false }, { name: 'application/vnd.ekstep.ecml-archive', count: 3428, apply: false } ], apply: false }, { name: 'VIDEO', count: 3815, values: [ { name: 'video/webm', count: 94, apply: false }, { name: 'video/x-youtube', count: 803, apply: false }, { name: 'video/mp4', count: 2918, apply: false } ], apply: false }, { name: 'DOC', count: 1690, values: [ { name: 'application/pdf', count: 1610, apply: false }, { name: 'application/epub', count: 80, apply: false } ], apply: false }, { name: 'AUDIO', count: 4221, values: [ { name: 'audio/ogg', count: 4, apply: false }, { name: 'audio/mp3', count: 3236, apply: false }, { name: 'audio/wav', count: 981, apply: false } ], apply: false } ] }, { name: 'board', values: [ { name: 'other', count: 38, apply: false }, { name: 'state (kerala)', count: 37, apply: false } ], translatedName: 'Board/Syllabus' } ], impliedFiltersMap: [ { compatibilityLevel: { min: 1, max: 4 } }, { contentType: [] }, { language: [] }, { topic: [] }, { purpose: [] }, { channel: [] } ], impliedFilters: [ { name: 'objectType', values: [ { name: 'Content', apply: true } ] } ] }

src/app/faq-report-issue/faq-report-issue.page.spec.data.ts

mockFormConfig
Type : []
Default value : [ { code: 'category', type: 'nested_select', templateOptions: { placeHolder: 'Select Category', multiple: false, hidden: false, options: [ { value: 'content', label: 'Content' }, { 'value': 'loginRegistration', 'label': 'Login/Registration' }, { 'value': 'teacherTraining', 'label': 'Teacher Training' }, { 'value': 'otherissues', 'label': 'Other Issues', 'dataSrc': { 'action': 'initiateEmail' } } ] }, 'validations': [ { 'type': 'required' } ], 'children': { 'otherissues': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'subject', 'type': 'nested_select', 'context': 'grade', 'templateOptions': { 'placeHolder': 'Select Subject', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'subject' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ] } }, { 'code': 'subcategory', 'context': 'category', 'type': 'nested_select', 'children': { 'contentquality': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'subject', 'type': 'nested_select', 'context': 'grade', 'templateOptions': { 'placeHolder': 'Select Subject', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'subject' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'contentname', 'type': 'input', 'context': null, 'templateOptions': { 'placeHolder': 'Enter Content Name' }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'contentnotplaying': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'subject', 'type': 'nested_select', 'context': 'grade', 'templateOptions': { 'placeHolder': 'Select Subject', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'subject' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'contentname', 'type': 'input', 'context': null, 'templateOptions': { 'placeHolder': 'Enter Content Name' }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'contentavailability': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'subject', 'type': 'nested_select', 'context': 'grade', 'templateOptions': { 'placeHolder': 'Select Subject', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'subject' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] }, { 'code': 'notify', 'type': 'checkbox', 'templateOptions': { 'label': 'Notify me on availability' } } ], 'contentotherissues': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'subject', 'type': 'nested_select', 'context': 'grade', 'templateOptions': { 'placeHolder': 'Select Subject', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'subject' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'contentname', 'type': 'input', 'context': null, 'templateOptions': { 'placeHolder': 'Enter Content Name' }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'otpissue': [ { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'profilevalidation': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'profiledetails': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'certificate': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'teacherid': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'profileotherissues': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ], 'teacherotherissues': [ { 'code': 'board', 'type': 'select', 'templateOptions': { 'placeHolder': 'Select Board', 'multiple': false, 'dataSrc': { 'marker': 'ACTIVE_CHANNEL.SUGGESTED_FRAMEWORK_LIST.MAPPED_TO_FRAMEWORKCATEGORIES' } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'medium', 'type': 'nested_select', 'context': 'board', 'default': null, 'templateOptions': { 'placeHolder': 'Select Medium', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'medium' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'grade', 'type': 'nested_select', 'context': 'medium', 'templateOptions': { 'placeHolder': 'Select Grade', 'multiple': false, 'dataSrc': { 'marker': 'FRAMEWORK_CATEGORY_TERMS', 'params': { 'categoryCode': 'grade' } } }, 'validations': [ { 'type': 'required' } ] }, { 'code': 'details', 'type': 'textarea', 'context': null, 'templateOptions': { 'label': 'Tell us more about the problem you faced', 'placeHolder': 'Enter Details' }, 'validations': [ { 'type': 'maxLength', 'value': 1000 } ] } ] }, 'templateOptions': { 'placeHolder': 'Select Subcategory', 'multiple': false, 'hidden': false, 'options': { 'loginRegistration': [ { 'value': 'otpissue', 'label': 'OTP Issue', 'dataSrc': { 'action': 'initiateEmail' } }, { 'value': 'profilevalidation', 'label': 'Profile validation/No green tick on my profile', 'dataSrc': { 'action': 'contactBoard' } }, { 'value': 'profiledetails', 'label': 'Profile details incorrect', 'dataSrc': { 'action': 'contactBoard' } }, { 'value': 'certificate', 'label': 'Certificate related', 'dataSrc': { 'action': 'contactBoard' } }, { 'value': 'teacherid', 'label': 'Teacher id', 'dataSrc': { 'action': 'contactBoard' } }, { 'value': 'profileotherissues', 'label': 'Other issues', 'dataSrc': { 'action': 'contactBoard' } } ], 'content': [ { 'value': 'contentquality', 'label': 'Content Quality' }, { 'value': 'contentnotplaying', 'label': 'Content not playing/downloading', 'dataSrc': { 'action': 'initiateEmail' } }, { 'value': 'contentavailability', 'label': 'Content availability' }, { 'value': 'contentotherissues', 'label': 'Other Issues', 'dataSrc': { 'action': 'initiateEmail' } } ], 'teacherTraining': [ { 'value': 'profilevalidation', 'label': 'Profile validation/No green tick on my profile', 'dataSrc': { 'action': 'contactBoard' } }, { 'value': 'profiledetails', 'label': 'Profile details incorrect', 'dataSrc': { 'action': 'contactBoard' } }, { 'value': 'certificate', 'label': 'Certificate related', 'dataSrc': { 'action': 'contactBoard' } }, { 'value': 'teacherotherissues', 'label': 'Other issues', 'dataSrc': { 'action': 'contactBoard' } } ] } } } ]
mockFormValue
Type : object
Default value : { 'category': 'content', 'subcategory': 'contentnotplaying', 'children': { 'subcategory': { 'board': { 'name': 'State(Karnataka)', 'code': 'ka_k-12_1' }, 'medium': { 'name': 'English', 'code': 'english', 'frameworkCode': 'ka_k-12_1' }, 'grade': { 'name': 'Class10', 'code': 'class10', 'frameworkCode': 'ka_k-12_1' }, 'subject': { 'name': 'Science', 'code': 'science', 'frameworkCode': 'ka_k-12_1' }, 'contentname': 'Content', 'details': '' } } }
mockFrameworkList
Type : []
Default value : [ { name: 'State (Karnataka)', identifier: 'k_2-11-2' }, { name: 'State (Andhra Pradesh)', identifier: 'k_2-11-4' }, { name: 'State (Chhattisgarh)', identifier: 'k_2-11-5' }, { name: 'State (Assam)', identifier: 'k_2-11-6' }, { name: 'State (Madhya Pradesh)', identifier: 'k_2-11-8' } ]
mockHeaderEvent
Type : object
Default value : { name: 'back', identifier: '89712312' }
mockNavigationResp
Type : object
Default value : { extras: { state: { data: {}, showHeader: true, formCnotext: {} } } }
mockProfile
Type : object
Default value : { }
mockStateList
Type : []
Default value : [ { 'id': 'ka_k-12_1', 'code': 'board', 'name': 'State(Karnataka)', 'message': '(between 9 AM to 6 PM from Monday to Friday)', 'contactinfo': { 'number': '18001800666', 'email': null } }, { 'id': 'ts_k-12_2', 'code': 'board', 'name': 'State(AndhraPradesh)', 'message': '(between 11 AM to 5 PM from Monday to Friday)', 'contactinfo': { 'number': '18005728585', 'email': null } } ]
mockUserProfile
Type : object
Default value : { board: ['statekarnataka'], createdAt: 1594741466334, grade: ['class10'], gradeValue: '', handle: 'Guest1', medium: ['english'], profileType: 'teacher', source: 'local', subject: [], syllabus: ['ka_k-12_1'], uid: 'ca20b97e-9c88-456c-ad1e-4418c65f6dee' }

src/app/profile/profile.page.spec.data.ts

mockFormData
Type : []
Default value : [ { code: 'tenant', templateOptions: { options: [{ value: 'sample_org_id', label: 'sample_label' } ], }, }, { code: 'externalIds', children: [{ code: 0, fieldName: 'sample_field_name' }], templateOptions: { options: [{ value: 'sample_org_id', label: 'sample_label' } ], }, } ]
mockProfileData
Type : object
Default value : { uid: '123', userId: 'sample_user_id', handle: 'sample_name', medium: ['English', 'Bengali'], board: ['CBSE'], profileType: ProfileType.TEACHER, source: ProfileSource.SERVER, rootOrgId: 'sample_1', rootOrg: { rootOrgId: 'sample_org_id', hashTagId: 'sample_hashTagId' }, roleList: [{id: 'teacher', name: 'private'}, {id: 'state_teacher', name: 'public'}], organisations: [{ organisationId: 'xyz', roles: ['teacher', 'state_teacher'], locations: { state: 'tripura', district: 'west_tripura', block: 'dhaleshwar' } }, { organisationId: 'abc', roles: ['teacher', 'state_teacher'], locations: { state: 'west-bengal', district: 'kolkata', block: 'howrah' } }], badgeAssertions: [ 'sample_badge1', 'sampleBadge 2' ], mappedTrainingCertificates: [1, 2, 3], phone: '99999999', email: 'xyz@gmail.com', recoveryEmail: 'abc@gmail.com', recoveryPhone: '987654', profileUserType: { type: 'teacher' }, profileUserTypes: [{type: 'teacher'}, {type: 'student'}], declarations: [{ orgId: 'sample_org_id', persona: 'sample_persona', status: 'sample_status', info: [{ data: 'sample_data' }], errorType: 'sample_,error_type', }, { orgId: 'sample_org_id2' }], userLocations: [ 'State', 'District', 'Block', 'Cluster' ], framework: { medium: ['English', 'Bengali'], board: ['CBSE'], }, serverProfile: { roles: [ 'teacher', 'headmaster' ] } }
paylod
Type : object
Default value : { code:'name', children:[] }

src/services/profile-handler.spec.data.ts

mockFormFielddata
Type : []
Default value : [ { "code": "name", "type": "input", "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "Name" } }, "hidden": true, "placeHolder": "Enter Name", "multiple": false }, "validations": [ { "type": "required" } ] }, { "code": "persona", "type": "nested_select", "templateOptions": { "hidden": true, "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "Role" } }, "placeHolder": "Select Role", "multiple": false, "dataSrc": { "marker": "SUPPORTED_PERSONA_LIST" } }, "validations": [ { "type": "required" } ], "children": { "administrator": [ { "code": "state", "type": "select", "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "State" } }, "placeHolder": "Select State", "multiple": false, "dataSrc": { "marker": "STATE_LOCATION_LIST", "params": { "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "district", "type": "select", "context": "state", "default": null, "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "District" } }, "placeHolder": "Select District", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "district", "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "block", "type": "select", "context": "district", "default": null, "templateOptions": { "label": "Block", "placeHolder": "Select Block", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "block", "useCase": "SIGNEDIN" } } }, "validations": [] }, { "code": "cluster", "type": "select", "context": "block", "default": null, "templateOptions": { "label": "Cluster", "placeHolder": "Select Cluster", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "cluster", "useCase": "SIGNEDIN" } } } }, { "code": "school", "type": "select", "context": "cluster", "default": null, "templateOptions": { "label": "School", "placeHolder": "Select School", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "school", "useCase": "SIGNEDIN" } } } } ], "teacher": [ { "code": "state", "type": "select", "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "State" } }, "placeHolder": "Select State", "multiple": false, "dataSrc": { "marker": "STATE_LOCATION_LIST", "params": { "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "district", "type": "select", "context": "state", "default": null, "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "District" } }, "placeHolder": "Select District", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "district", "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "block", "type": "select", "context": "district", "default": null, "templateOptions": { "label": "Block", "placeHolder": "Select Block", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "block", "useCase": "SIGNEDIN" } } }, "validations": [] }, { "code": "cluster", "type": "select", "context": "block", "default": null, "templateOptions": { "label": "Cluster", "placeHolder": "Select Cluster", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "cluster", "useCase": "SIGNEDIN" } } } }, { "code": "school", "type": "select", "context": "cluster", "default": null, "templateOptions": { "label": "School", "placeHolder": "Select School", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "school", "useCase": "SIGNEDIN" } } } } ], "student": [ { "code": "state", "type": "select", "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "State" } }, "placeHolder": "Select State", "multiple": false, "dataSrc": { "marker": "STATE_LOCATION_LIST", "params": { "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "district", "type": "select", "context": "state", "default": null, "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "District" } }, "placeHolder": "Select District", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "district", "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "block", "type": "select", "context": "district", "default": null, "templateOptions": { "label": "Block", "placeHolder": "Select Block", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "block", "useCase": "SIGNEDIN" } } }, "validations": [] }, { "code": "cluster", "type": "select", "context": "block", "default": null, "templateOptions": { "label": "Cluster", "placeHolder": "Select Cluster", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "cluster", "useCase": "SIGNEDIN" } } } }, { "code": "school", "type": "select", "context": "cluster", "default": null, "templateOptions": { "label": "School", "placeHolder": "Select School", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "school", "useCase": "SIGNEDIN" } } } } ], "other": [ { "code": "state", "type": "select", "templateOptions": { "placeHolder": "Select State", "multiple": false, "dataSrc": { "marker": "STATE_LOCATION_LIST", "params": { "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "district", "type": "select", "context": "state", "default": null, "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "District" } }, "placeHolder": "Select District", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "district", "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "block", "type": "select", "context": "district", "default": null, "templateOptions": { "label": "Block", "placeHolder": "Select Block", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "block", "useCase": "SIGNEDIN" } } }, "validations": [] }, { "code": "cluster", "type": "select", "context": "block", "default": null, "templateOptions": { "label": "Cluster", "placeHolder": "Select Cluster", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "cluster", "useCase": "SIGNEDIN" } } } }, { "code": "school", "type": "select", "context": "cluster", "default": null, "templateOptions": { "label": "School", "placeHolder": "Select School", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "school", "useCase": "SIGNEDIN" } } } }, { "code": "subPersona", "type": "select", "context": "cluster", "default": null, "templateOptions": { "label": "School", "placeHolder": "Select School", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "subPersona", "useCase": "SIGNEDIN" } }, "options": [ { "value": "subType", "label": "HM" }, { "value": "subType", "label": "CRP" }, { "value": "chm", "label": "Complex HM" }, { "value": "meo", "label": "MEO" }, { "value": "dyeo", "label": "DyEO" }, { "value": "atwo", "label": "ATWO" } ] } } ], "parent": [ { "code": "state", "type": "select", "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "State" } }, "placeHolder": "Select State", "multiple": false, "dataSrc": { "marker": "STATE_LOCATION_LIST", "params": { "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "district", "type": "select", "context": "state", "default": null, "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "District" } }, "placeHolder": "Select District", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "district", "useCase": "SIGNEDIN_GUEST" } } }, "validations": [ { "type": "required" } ] }, { "code": "block", "type": "select", "context": "district", "default": null, "templateOptions": { "label": "Block", "placeHolder": "Select Block", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "block", "useCase": "SIGNEDIN" } } }, "validations": [] }, { "code": "cluster", "type": "select", "context": "block", "default": null, "templateOptions": { "label": "Cluster", "placeHolder": "Select Cluster", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "cluster", "useCase": "SIGNEDIN" } } } }, { "code": "school", "type": "select", "context": "cluster", "default": null, "templateOptions": { "label": "School", "placeHolder": "Select School", "multiple": false, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "school", "useCase": "SIGNEDIN" } } } }, { "code": "subPersona", "type": "select", "context": "cluster", "default": null, "templateOptions": { "label": "School", "placeHolder": "Select School", "multiple": true, "dataSrc": { "marker": "LOCATION_LIST", "params": { "id": "subPersona", "useCase": "SIGNEDIN" } }, "options": [ { "value": "subType", "label": "HM" }, { "value": "subType", "label": "CRP" }, { "value": "chm", "label": "Complex HM" }, { "value": "meo", "label": "MEO" }, { "value": "dyeo", "label": "DyEO" }, { "value": "atwo", "label": "ATWO" } ] } } ] } } ]
mockSupportedUserTypeConfig
Type : []
Default value : [ { code: 'student', name: 'Student', searchFilter: [ 'Student', 'Learner' ], ambiguousFilters: [ 'learner', 'student' ], attributes: { mandatory: [ 'board', 'medium', 'gradeLevel' ], optional: [ 'subject' ] } }, { code: 'teacher', name: 'Teacher', searchFilter: [ 'Teacher', 'Instructor' ], ambiguousFilters: [ 'teacher', 'instructor' ], attributes: { mandatory: [ 'board', 'medium', 'gradeLevel' ], optional: [ 'subject' ] } }, { code: 'administrator', name: 'Admin', searchFilter: [ 'Administrator' ], ambiguousFilters: [], attributes: { mandatory: [ 'board' ], optional: [] } } ]
profile
Type : object
Default value : { "maskedPhone": null, "tcStatus": null, "channel": "sunbirdpreprodcustodian", "profileUserTypes": [ { "type": "parent" } ], "updatedDate": "2022-04-14 06:21:59:749+0000", "managedBy": null, "flagsValue": 0, "id": "9d17a8b4-925b-41ac-a9f6-2d536ebeb34c", "recoveryEmail": "", "identifier": "9d17a8b4-925b-41ac-a9f6-2d536ebeb34c", "updatedBy": "9d17a8b4-925b-41ac-a9f6-2d536ebeb34c", "externalIds": [], "roleList": [ { "name": "Book Creator", "id": "BOOK_CREATOR" }, { "name": "Membership Management", "id": "MEMBERSHIP_MANAGEMENT" }, { "name": "Flag Reviewer", "id": "FLAG_REVIEWER" }, { "name": "Report Viewer", "id": "REPORT_VIEWER" }, { "name": "Program Manager", "id": "PROGRAM_MANAGER" }, { "name": "Program Designer", "id": "PROGRAM_DESIGNER" }, { "name": "System Administration", "id": "SYSTEM_ADMINISTRATION" }, { "name": "Content Curation", "id": "CONTENT_CURATION" }, { "name": "Book Reviewer", "id": "BOOK_REVIEWER" }, { "name": "Content Creator", "id": "CONTENT_CREATOR" }, { "name": "Org Management", "id": "ORG_MANAGEMENT" }, { "name": "Course Admin", "id": "COURSE_ADMIN" }, { "name": "Org Moderator", "id": "ORG_MODERATOR" }, { "name": "Public", "id": "PUBLIC" }, { "name": "Admin", "id": "ADMIN" }, { "name": "Course Mentor", "id": "COURSE_MENTOR" }, { "name": "Content Reviewer", "id": "CONTENT_REVIEWER" }, { "name": "Report Admin", "id": "REPORT_ADMIN" }, { "name": "Org Admin", "id": "ORG_ADMIN" } ], "rootOrgId": "0126796199493140480", "prevUsedEmail": "", "firstName": "Ssunbird", "isMinor": false, "tncAcceptedOn": 1644811598091, "allTncAccepted": { "groupsTnc": { "tncAcceptedOn": "2022-03-16 07:13:46:695+0000", "version": "3.5.0" } }, "phone": "", "dob": "1981-12-31", "status": 1, "lastName": "", "tncLatestVersion": "v12", "roles": [], "prevUsedPhone": "", "stateValidated": false, "isDeleted": false, "organisations": [ { "organisationId": "0126796199493140480", "approvedBy": null, "channel": "sunbirdpreprodcustodian", "updatedDate": null, "approvaldate": null, "isSystemUpload": false, "isDeleted": false, "id": "01347430331917926412", "isApproved": null, "orgjoindate": "2022-02-14 04:06:34:382+0000", "isSelfDeclaration": true, "updatedBy": null, "orgName": "Staging Custodian Organization", "addedByName": null, "addedBy": null, "associationType": 2, "locationIds": [ "027f81d8-0a2c-4fc6-96ac-59fe4cea3abf", "8250d58d-f1a2-4397-bfd3-b2e688ba7141" ], "orgLocation": [ { "type": "state", "id": "027f81d8-0a2c-4fc6-96ac-59fe4cea3abf" }, { "type": "district", "id": "8250d58d-f1a2-4397-bfd3-b2e688ba7141" } ], "externalId": "101010", "userId": "9d17a8b4-925b-41ac-a9f6-2d536ebeb34c", "isSchool": false, "hashTagId": "0126796199493140480", "isSSO": false, "isRejected": null, "locations": [ { "code": "29", "name": "Karnataka", "id": "027f81d8-0a2c-4fc6-96ac-59fe4cea3abf", "type": "state", "parentId": null }, { "code": "2901", "name": "BELAGAVI", "id": "8250d58d-f1a2-4397-bfd3-b2e688ba7141", "type": "district", "parentId": "027f81d8-0a2c-4fc6-96ac-59fe4cea3abf" } ], "position": null, "orgLeftDate": null } ], "provider": null, "countryCode": null, "tncLatestVersionUrl": "https://sunbirdstagingpublic.blob.core.windows.net/termsandcondtions/terms-and-conditions-v12.html", "maskedEmail": "sd*****@yopmail.com", "email": "sd*****@yopmail.com", "rootOrg": { "keys": {}, "channel": "sunbirdpreprodcustodian", "description": "Pre-prod Custodian Organization", "updatedDate": "2022-02-18 09:50:42:752+0000", "organisationType": 5, "isTenant": true, "provider": null, "id": "0126796199493140480", "email": null, "slug": "sunbirdpreprodcustodian", "isSSOEnabled": null, "orgName": "Staging Custodian Organization", "updatedBy": null, "locationIds": [ "027f81d8-0a2c-4fc6-96ac-59fe4cea3abf", "8250d58d-f1a2-4397-bfd3-b2e688ba7141" ], "externalId": "101010", "orgLocation": [ { "type": "state", "id": "027f81d8-0a2c-4fc6-96ac-59fe4cea3abf" }, { "type": "district", "id": "8250d58d-f1a2-4397-bfd3-b2e688ba7141" } ], "isRootOrg": true, "rootOrgId": "0126796199493140480", "createdDate": "2019-01-18 09:48:13:428+0000", "createdBy": "system", "hashTagId": "0126796199493140480", "status": 1 }, "topics": [], "tcUpdatedDate": null, "userLocations": [ { "code": "3207", "name": "THRISSUR", "id": "2bb88fec-873e-45a2-ba6e-facb63bbbf65", "type": "district", "parentId": "e73e5a54-3e8b-43a8-81a4-878f59130d1e" }, { "code": "32", "name": "Kerala", "id": "e73e5a54-3e8b-43a8-81a4-878f59130d1e", "type": "state", "parentId": null } ], "recoveryPhone": "", "userName": "ssunbird_meeg", "userId": "9d17a8b4-925b-41ac-a9f6-2d536ebeb34c", "declarations": [ { "persona": "default", "errorType": null, "orgId": "0127236218321879040", "status": "SUBMITTED", "info": { "declared-email": "ssunbird@yopmail.com" } } ], "promptTnC": false, "lastLoginTime": 0, "createdDate": "2022-02-14 04:06:34:342+0000", "framework": { "board": [ "State (Assam)" ], "gradeLevel": [ "Class 7", "Class 8" ], "id": [ "as_k-12" ], "medium": [ "English" ], "subject": [ "English", "Mathemaics" ] }, "createdBy": null, "profileUserType": { "subType": 'subType', "type": "parent" }, "tncAcceptedVersion": "v12", "persona": { "code": "parent", "name": "Parent", "formConfig": { "request": { "type": "profileConfig", "subType": "default", "action": "get" }, "url": "/api/data/v1/form" }, "translations": "{\"en\":\"Parent\"}", "image": "ic_parent.svg", "ambiguousFilters": [], "searchFilter": [], "attributes": { "mandatory": [ "board", "medium", "gradeLevel" ], "optional": [ "subject" ] } } }
subPersonaConfig
Type : object
Default value : { "code": "subPersona", "type": "select", "default": null, "templateOptions": { "labelHtml": { "contents": "<span>$0&nbsp;<span class=\"required-asterisk\">*</span></span>", "values": { "$0": "Subrole" } }, "placeHolder": "Select Subrole", "multiple": true, "dataSrc": { "marker": "SUBPERSONA_LIST", "params": { "useCase": "SIGNEDIN" } }, "options": [ { "value": "hm", "label": "HM" }, { "value": "crp", "label": "CRP" }, { "value": "chm", "label": "Complex HM" }, { "value": "meo", "label": "MEO" }, { "value": "dyeo", "label": "DyEO" }, { "value": "atwo", "label": "ATWO" }, { "value": "dtwo", "label": "DTWO" }, { "value": "gcdo_pmrc", "label": "GCDO PMRC" }, { "value": "cmo_pmrc", "label": "CMO PMRC" }, { "value": "amo_pmrc", "label": "AMO PMRC" }, { "value": "ddtw", "label": "DDTW" }, { "value": "aso_dpo", "label": "ASO DPO" }, { "value": "asst_als_coordinator", "label": "Asst ALS Coordinator" }, { "value": "asst_ie_coordinator", "label": "Asst IE Coordinator" }, { "value": "als_coordinator", "label": "ALS Coordinator" }, { "value": "ie_coordinator", "label": "IE Coordinator" }, { "value": "cmo", "label": "CMO" }, { "value": "aamo", "label": "AAMO" }, { "value": "amo", "label": "AMO" }, { "value": "apc", "label": "APC" }, { "value": "diet_lecturer", "label": "DIET Lecturer" }, { "value": "diet_pricipal", "label": "DIET Principal" }, { "value": "deo", "label": "DEO" }, { "value": "rjd", "label": "RJD" }, { "value": "slcc", "label": "SLCC" }, { "value": "slmo", "label": "SLMO" }, { "value": "spd", "label": "SPD" }, { "value": "dir_ad_ed", "label": "Director Adult Education" }, { "value": "dir_pub_lib", "label": "Director Public Libraries" }, { "value": "dir_scert", "label": "Director SCERT" }, { "value": "sec_kgbv", "label": "Secretary KGBV" }, { "value": "sec_pub_lib", "label": "Secretary Public Libraries" }, { "value": "dep_dir_ad_ed", "label": "Deputy director Adult Education" }, { "value": "lib_pub_lib", "label": "Librarian Public Libraries" }, { "value": "sup_ad_ed", "label": "Supervisor Adult Education" }, { "value": "lib_bdc", "label": "Librarian Public Libraries/ Book deposit center" }, { "value": "ins_ad_ed", "label": "Instructor/ Volunteer Adult Education" }, { "value": "bdc_inch", "label": "BDC Incharge" } ] }, "validations": [ { "type": "required" } ] }
userLocation
Type : object
Default value : { "district": { "code": "3207", "name": "THRISSUR", "id": "2bb88fec-873e-45a2-ba6e-facb63bbbf65", "type": "district", "parentId": "e73e5a54-3e8b-43a8-81a4-878f59130d1e" }, "state": { "code": "32", "name": "Kerala", "id": "e73e5a54-3e8b-43a8-81a4-878f59130d1e", "type": "state", "parentId": null } }

src/services/app-global-service.service.spec.data.ts

mockFrameworkData
Type : object
Default value : { identifier : 'ap_k-12_1' , code : 'ap_k-12_1' , name : 'State (Andhra Pradesh)' , description : 'Andhra Pradesh k-12' , categories : [ { identifier : 'ap_k-12_1_board' , code : 'board' , terms : [ { associations : [ { identifier : 'ap_k-12_1_medium_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'medium' , status : 'Live' } ], identifier : 'ap_k-12_1_board_stateandhrapradesh' , code : 'stateandhrapradesh' , translations : null, name : 'State (Andhra Pradesh)' , description : 'State (Andhra Pradesh)' , index : 1, category : 'board' , status : 'Live' } ], translations : null, name : 'Board' , description : 'Board' , index : 1, status : 'Live' }, { identifier : 'ap_k-12_1_medium' , code : 'medium' , terms : [ { associations : [ { identifier : 'ap_k-12_1_gradelevel_class2' , code : 'class2' , translations : null, name : 'Class 2' , description : 'Class 2' , category : 'gradeLevel' , status : 'Live' } ], identifier : 'ap_k-12_1_medium_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , index : 1, category : 'medium' , status : 'Live' }, { associations : [ { identifier : ' ap_k-12_1_gradelevel_class9' , code : 'class9' , translations : null, name : 'Class 9' , description : 'Class 9' , category : 'gradeLevel' , status : 'Live' } ], identifier : 'ap_k-12_1_medium_hindi' , code : 'hindi' , translations : null, name : 'Hindi' , description : 'Hindi' , index : 2, category : 'medium' , status : 'Live' } ], translations : null, name : 'Medium' , description : 'Medium' , index : 2, status : 'Live' }, { identifier : 'ap_k-12_1_gradelevel' , code : 'gradeLevel' , terms : [ { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class1' , code : 'class1' , translations : null, name : 'Class 1' , description : 'Class 1' , index : 1, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class2' , code : 'class2' , translations : null, name : 'Class 2' , description : 'Class 2' , index : 2, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class3' , code : 'class3' , translations : null, name : 'Class 3' , description : 'Class 3' , index : 3, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class4' , code : 'class4' , translations : null, name : 'Class 4' , description : 'Class 4' , index : 4, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class5' , code : 'class5' , translations : null, name : 'Class 5' , description : 'Class 5' , index : 5, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class6' , code : 'class6' , translations : null, name : 'Class 6' , description : 'Class 6' , index : 6, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class7' , code : 'class7' , translations : null, name : 'Class 7' , description : 'Class 7' , index : 7, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class8' , code : 'class8' , translations : null, name : 'Class 8' , description : 'Class 8' , index : 8, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class9' , code : 'class9' , translations : null, name : 'Class 9' , description : 'Class 9' , index : 9, category : 'gradeLevel' , status : 'Live' }, { associations : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , category : 'subject' , status : 'Live' } ], identifier : 'ap_k-12_1_gradelevel_class10' , code : 'class10' , translations : null, name : 'Class 10' , description : 'Class 10' , index : 10, category : 'gradeLevel' , status : 'Live' } ], translations : null, name : 'Grade' , description : 'Grade' , index : 3, status : 'Live' }, { identifier : 'ap_k-12_1_subject' , code : 'subject' , terms : [ { identifier : 'ap_k-12_1_subject_english' , code : 'english' , translations : null, name : 'English' , description : 'English' , index : 2, category : 'subject' , status : 'Live' } ], translations : null, name : 'Subject' , description : 'Subject' , index : 4, status : 'Live' } ], type : 'K-12' , objectType : 'Framework' }

src/app/home/user-home/user-home-spec.data.ts

mockUserHomeData
Type : []
Default value : [ { index: 1, title: '{"en":"Browse by subject"}', data: [ { facet: 'advance tamil', searchCriteria: { sortCriteria: [], searchType: 'search', offset: 0, limit: 100, impliedFiltersMap: [], impliedFilters: [], facets: [ 'subject', 'primaryCategory' ], board: [ 'State (Assam)' ], medium: [ 'Assamese', 'Bengali', 'English', 'Hindi' ], grade: [ 'Class 5', 'Class 6', 'Class 7', 'Class 8', 'Class 9', 'Class 10' ], subject: [ 'advance tamil' ] }, aggregate: { groupBy: 'primaryCategory' } }, { facet: 'mathematics', searchCriteria: { sortCriteria: [], searchType: 'search', offset: 0, limit: 100, impliedFiltersMap: [], impliedFilters: [], facets: [ 'subject', 'primaryCategory' ], board: [ 'State (Assam)' ], medium: [ 'Assamese', 'Bengali', 'English', 'Hindi' ], grade: [ 'Class 5', 'Class 6', 'Class 7', 'Class 8', 'Class 9', 'Class 10' ], subject: [ 'mathematics' ] }, aggregate: { groupBy: 'primaryCategory' } }, { facet: 'science', searchCriteria: { sortCriteria: [], searchType: 'search', offset: 0, limit: 100, impliedFiltersMap: [], impliedFilters: [], facets: [ 'subject', 'primaryCategory' ], board: [ 'State (Assam)' ], medium: [ 'Assamese', 'Bengali', 'English', 'Hindi' ], grade: [ 'Class 5', 'Class 6', 'Class 7', 'Class 8', 'Class 9', 'Class 10' ], subject: [ 'science' ] }, aggregate: { groupBy: 'primaryCategory' } }, ], dataSrc: { type: 'CONTENT_FACETS', request: { type: 'POST', path: '/api/content/v1/search', withBearerToken: true, body: { request: { offset: 0, limit: 0, exists: [], facets: [ 'subject', 'primaryCategory' ], sort_by: {}, filters: { audience: [], objectType: [ 'Content' ], contentType: [], primaryCategory: [], gradeLevel: [ 'Class 5', 'Class 6', 'Class 7', 'Class 8', 'Class 9', 'Class 10' ], medium: [ 'Assamese', 'Bengali', 'English', 'Hindi' ], board: [ 'State (Assam)' ], language: [], topic: [], purpose: [], channel: [], mimeType: [], subject: [] } } } }, mapping: [ { facet: 'subject', aggregate: { groupBy: 'primaryCategory' } }, { facet: 'primaryCategory', aggregate: { groupBy: 'subject' } } ], facet: 'subject' }, theme: { component: 'sb-pills-grid', inputs: { pillShape: 'default', pillsViewType: 'scroll', minDisplayCount: 10, showMoreViewType: 'new_screen', viewMoreText: '{"en":"View all subjects"}', viewLessText: '{"en":"View Less"}', pillsMultiRow: 'double_view_column' }, children: { 'sb-pill-item': { inputs: { icon: 'assets/imgs/book_default.svg' }, inputsMap: { icon: { german: 'assets/imgs/book_english.svg', mathematics: 'assets/imgs/calculator.svg', science: 'assets/imgs/globe.svg' }, theme: { german: { iconBgColor: 'rgba(255,139,46,1)', pillBgColor: 'rgba(255,139,46,0.3)' }, mathematics: { iconBgColor: 'rgba(163,99,255,1)', pillBgColor: 'rgba(163,99,255,0.3)' }, science: { iconBgColor: 'rgba(34,139,255,1)', pillBgColor: 'rgba(34,139,255,0.3)' } } } } } } }, { index: 2, title: '{"en":"Browse by category"}', data: [ { facet: 'digital textbook', searchCriteria: { sortCriteria: [], searchType: 'search', offset: 0, limit: 100, impliedFiltersMap: [], impliedFilters: [], facets: [ 'subject', 'primaryCategory' ], board: [ 'State (Assam)' ], medium: [ 'Assamese', 'Bengali', 'English', 'Hindi' ], grade: [ 'Class 5', 'Class 6', 'Class 7', 'Class 8', 'Class 9', 'Class 10' ], primaryCategory: [ 'digital textbook' ] }, aggregate: { groupBy: 'subject' } }, { facet: 'explanation content', searchCriteria: { sortCriteria: [], searchType: 'search', offset: 0, limit: 100, impliedFiltersMap: [], impliedFilters: [], facets: [ 'subject', 'primaryCategory' ], board: [ 'State (Assam)' ], medium: [ 'Assamese', 'Bengali', 'English', 'Hindi' ], grade: [ 'Class 5', 'Class 6', 'Class 7', 'Class 8', 'Class 9', 'Class 10' ], primaryCategory: [ 'explanation content' ] }, aggregate: { groupBy: 'subject' } }, { facet: 'learning resource', searchCriteria: { sortCriteria: [], searchType: 'search', offset: 0, limit: 100, impliedFiltersMap: [], impliedFilters: [], facets: [ 'subject', 'primaryCategory' ], board: [ 'State (Assam)' ], medium: [ 'Assamese', 'Bengali', 'English', 'Hindi' ], grade: [ 'Class 5', 'Class 6', 'Class 7', 'Class 8', 'Class 9', 'Class 10' ], primaryCategory: [ 'learning resource' ] }, aggregate: { groupBy: 'subject' } } ], dataSrc: { type: 'CONTENT_FACETS', request: { type: 'POST', path: '/api/content/v1/search', withBearerToken: true, body: { request: { offset: 0, limit: 0, exists: [], facets: [ 'subject', 'primaryCategory' ], sort_by: {}, filters: { audience: [], objectType: [ 'Content' ], contentType: [], primaryCategory: [], gradeLevel: [ 'Class 5', 'Class 6', 'Class 7', 'Class 8', 'Class 9', 'Class 10' ], medium: [ 'Assamese', 'Bengali', 'English', 'Hindi' ], board: [ 'State (Assam)' ], language: [], topic: [], purpose: [], channel: [], mimeType: [], subject: [] } } } }, mapping: [ { facet: 'subject', aggregate: { groupBy: 'primaryCategory' } }, { facet: 'primaryCategory', aggregate: { groupBy: 'subject' } } ], facet: 'primaryCategory' }, theme: { component: 'sb-pills-grid', inputs: { pillShape: 'image_overlap', pillsViewType: 'scroll' }, children: { 'sb-pill-item': { inputs: { icon: 'assets/imgs/all_content.svg', theme: { iconBgColor: '#FFFFFF', pillBgColor: '#FFFFFF' } }, inputsMap: { icon: { 'digital textbooks': 'assets/imgs/textbook.svg', courses: 'assets/imgs/course.svg', 'tv programs': 'assets/imgs/tv.svg', documents: 'assets/imgs/documents.svg', videos: 'assets/imgs/videos.svg' } } } } } }, { index: 3, title: '{"en":"Recently viewed"}', data: { name: '3', sections: [ { name: '3', count: 1, contents: [ { identifier: 'do_31263780400280371213182', name: ' ঘৰ্ষণ ', contentData: { ownershipType: [ 'createdBy' ], copyright: 'Assam', previewUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/ecml/do_31263780400280371213182-latest', keywords: [ 'ঘৰ্ষণ', 'friction' ], subject: [ 'Science' ], channel: '01254290140407398431', downloadUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/ecar_files/do_31263780400280371213182/ghrssnn_1545651414136_do_31263780400280371213182_1.0.ecar', questions: [ { identifier: 'do_31266189546487808011948', name: 'ঘুৰ্ণি  ঘৰ্ষণ, স্থিতি ঘৰ্ষণ আৰু পিছল ঘৰ্ষণৰ বল অধঃক্ৰমত সজালে শুদ্ধ ক্ৰমটো হব -\n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31266190753464320011998', name: 'এখন পুতলা গাড়ীমাৰ্বলৰ তিতা মাজিয়া, মাৰ্বলৰ শুকাণ মাজিয়া আৰু মাৰ্বলৰ মজিয়াৰ ওপৰত বাতৰি কাকত পাৰি চলোৱা হ\'ল ৷ পুতলা গাড়ীখনত ক্ৰিয়াকৰা ঘৰ্ষণবল উৰ্দ্ধক্ৰমত সজালে ক্ৰমটো হব-\n', description: 'MCQ', objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31263780961204633622999', name: 'এটা যন্ত্ৰৰ লৰচৰ কৰা অংশ সমুহৰ মাজত লুব্ৰিকেন্ট ব্য়ৱহাৰ কৰি ঘৰ্ষণ-\n\n \n\nসৃষ্টি কৰিব পাৰি\n\n \n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31263786605568000023033', name: 'জোতাৰ খাজ কটা তলি খন--------------- ব্য়ৱহৃত হয়\n\n\n \n\n \n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31263781552818585613190', name: '৩) ‘টনা বল\'  ক  সাধাৰণতে কোৱা হয়\n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31263781279417139213189', name: 'চকা সংযুক্ত বয় বস্তুৰ টোপোলা বা বেগ আদি টানি নিয়াটো সুবিধাজনক হয় কাৰণ -\n\n \n\n \n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31266186681373491211943', name: 'ঘৰ্ষণ বাঢ়ি যায়-\n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' } ], organisation: [ 'Assam' ], language: [ 'English' ], mimeType: 'application/vnd.ekstep.ecml-archive', variants: { spine: { ecarUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/ecar_files/do_31263780400280371213182/ghrssnn_1545651414234_do_31263780400280371213182_1.0_spine.ecar', size: 3874 } }, editorState: '{"plugin":{"noOfExtPlugins":13,"extPlugins":[{"plugin":"org.ekstep.contenteditorfunctions","version":"1.2"},{"plugin":"org.ekstep.keyboardshortcuts","version":"1.0"},{"plugin":"org.ekstep.richtext","version":"1.0"},{"plugin":"org.ekstep.iterator","version":"1.0"},{"plugin":"org.ekstep.navigation","version":"1.0"},{"plugin":"org.ekstep.mathtext","version":"1.0"},{"plugin":"org.ekstep.libs.ckeditor","version":"1.0"},{"plugin":"org.ekstep.questionunit","version":"1.0"},{"plugin":"org.ekstep.keyboard","version":"1.0"},{"plugin":"org.ekstep.questionunit.mcq","version":"1.1"},{"plugin":"org.ekstep.questionunit.mtf","version":"1.1"},{"plugin":"org.ekstep.questionunit.reorder","version":"1.0"},{"plugin":"org.ekstep.questionunit.sequence","version":"1.0"}]},"stage":{"noOfStages":2,"currentStage":"81481683-2c99-469a-a347-89b95cdb1b0e","selectedPluginObject":"cc584527-ec1a-47ba-97cb-e2d14c1003c8"},"sidebar":{"selectedMenu":"settings"}}', objectType: 'Content', gradeLevel: [ 'Class 8' ], appIcon: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/do_31263780400280371213182/artifact/hhhh_1545643284557.thumb.jpg', primaryCategory: 'Learning Resource', collections: [ { identifier: 'do_3126590295958650881129', name: 'বিজ্ঞান (অষ্টম শ্ৰেণীৰ পাঠ্য়পুথি)/ Science (Class-8)', description: 'Enter description for TextBook ', objectType: 'Collection', relation: 'hasSequenceMember', status: 'Live' }, { identifier: 'do_31266212998540492812007', name: 'unit three', description: 'this is for testing', objectType: 'Content', relation: 'hasSequenceMember', status: 'Retired' } ], appId: 'prod.sunbird.portal', contentEncoding: 'gzip', artifactUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/do_31263780400280371213182/artifact/1545651413930_do_31263780400280371213182.zip', sYS_INTERNAL_LAST_UPDATED_ON: '2019-11-08T01:31:01.556+0000', contentType: 'Resource', identifier: 'do_31263780400280371213182', lastUpdatedBy: '59cb2df2-db4e-416c-a704-728656eebb3a', audience: [ 'Student' ], visibility: 'Default', author: 'Assam', consumerId: 'e85bcfb5-a8c2-4e65-87a2-0ebb43b45f01', mediaType: 'content', osId: 'org.ekstep.quiz.app', languageCode: [ 'en' ], lastPublishedBy: '6180f7a4-d3ee-4e90-a9f5-a70d55e6fcae', version: 2, rejectReasons: [ 'Others' ], license: 'CC BY 4.0', prevState: 'Review', size: 411887, lastPublishedOn: '2018-12-24T11:36:54.135+0000', name: ' ঘৰ্ষণ ', rejectComment: 'as instructed', topic: [ 'Friction' ], status: 'Live', totalQuestions: 7, code: 'org.sunbird.KH7gCe', description: 'Multiple Choice Question', streamingUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/ecml/do_31263780400280371213182-latest', medium: [ 'Assamese' ], posterImage: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/do_31266190978555904011954/artifact/hhhh_1545643284557.jpg', idealScreenSize: 'normal', createdOn: '2018-11-20T07:58:03.935+0000', copyrightYear: 2019, contentDisposition: 'inline', lastUpdatedOn: '2018-12-24T11:36:41.281+0000', dialcodeRequired: 'No', owner: 'Lakshmi Kanta Das', createdFor: [ '01254290140407398431' ], creator: 'Lakshmi Kanta Das', os: [ 'All' ], totalScore: 7, pkgVersion: 1, versionKey: '1545651401281', idealScreenDensity: 'hdpi', framework: 'as_k-12', s3Key: 'ecar_files/do_31263780400280371213182/ghrssnn_1545651414136_do_31263780400280371213182_1.0.ecar', me_averageRating: 4, lastSubmittedOn: '2018-12-24T11:34:21.568+0000', createdBy: '59cb2df2-db4e-416c-a704-728656eebb3a', compatibilityLevel: 2, ownedBy: '59cb2df2-db4e-416c-a704-728656eebb3a', board: 'State (Assam)', resourceType: 'Test', licenseDetails: { name: 'CC BY 4.0', url: 'https://creativecommons.org/licenses/by/4.0/legalcode', description: 'For details see below:' }, trackable: { enabled: 'No' }, cardImg: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/do_31263780400280371213182/artifact/hhhh_1545643284557.thumb.jpg' }, isUpdateAvailable: false, mimeType: 'application/vnd.ekstep.ecml-archive', basePath: '', primaryCategory: 'learning resource', contentType: 'resource', isAvailableLocally: false, referenceCount: 0, sizeOnDevice: 0, lastUsedTime: 1613459367380, lastUpdatedTime: 0 } ] } ] }, dataSrc: { type: 'RECENTLY_VIEWED_CONTENTS', mapping: [] }, theme: { component: 'sb-library-cards-hlist', inputs: { type: 'mobile_textbook', viewMoreButtonText: '{"en":"View all"}', maxCardCount: 10, viewMoreButtonPosition: 'right' } } }, { index: 3, title: '{"en":"Continue"}', data: { name: '4', sections: [ { name: '4', count: 1, contents: [ { identifier: 'do_31263780400280371213182', name: ' ঘৰ্ষণ ', contentData: { ownershipType: [ 'createdBy' ], copyright: 'Assam', previewUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/ecml/do_31263780400280371213182-latest', keywords: [ 'ঘৰ্ষণ', 'friction' ], subject: [ 'Science' ], channel: '01254290140407398431', downloadUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/ecar_files/do_31263780400280371213182/ghrssnn_1545651414136_do_31263780400280371213182_1.0.ecar', questions: [ { identifier: 'do_31266189546487808011948', name: 'ঘুৰ্ণি  ঘৰ্ষণ, স্থিতি ঘৰ্ষণ আৰু পিছল ঘৰ্ষণৰ বল অধঃক্ৰমত সজালে শুদ্ধ ক্ৰমটো হব -\n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31266190753464320011998', name: 'এখন পুতলা গাড়ীমাৰ্বলৰ তিতা মাজিয়া, মাৰ্বলৰ শুকাণ মাজিয়া আৰু মাৰ্বলৰ মজিয়াৰ ওপৰত বাতৰি কাকত পাৰি চলোৱা হ\'ল ৷ পুতলা গাড়ীখনত ক্ৰিয়াকৰা ঘৰ্ষণবল উৰ্দ্ধক্ৰমত সজালে ক্ৰমটো হব-\n', description: 'MCQ', objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31263780961204633622999', name: 'এটা যন্ত্ৰৰ লৰচৰ কৰা অংশ সমুহৰ মাজত লুব্ৰিকেন্ট ব্য়ৱহাৰ কৰি ঘৰ্ষণ-\n\n \n\nসৃষ্টি কৰিব পাৰি\n\n \n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31263786605568000023033', name: 'জোতাৰ খাজ কটা তলি খন--------------- ব্য়ৱহৃত হয়\n\n\n \n\n \n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31263781552818585613190', name: '৩) ‘টনা বল\'  ক  সাধাৰণতে কোৱা হয়\n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31263781279417139213189', name: 'চকা সংযুক্ত বয় বস্তুৰ টোপোলা বা বেগ আদি টানি নিয়াটো সুবিধাজনক হয় কাৰণ -\n\n \n\n \n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' }, { identifier: 'do_31266186681373491211943', name: 'ঘৰ্ষণ বাঢ়ি যায়-\n', description: null, objectType: 'AssessmentItem', relation: 'associatedTo', status: 'Live' } ], organisation: [ 'Assam' ], language: [ 'English' ], mimeType: 'application/vnd.ekstep.ecml-archive', variants: { spine: { ecarUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/ecar_files/do_31263780400280371213182/ghrssnn_1545651414234_do_31263780400280371213182_1.0_spine.ecar', size: 3874 } }, editorState: '{"plugin":{"noOfExtPlugins":13,"extPlugins":[{"plugin":"org.ekstep.contenteditorfunctions","version":"1.2"},{"plugin":"org.ekstep.keyboardshortcuts","version":"1.0"},{"plugin":"org.ekstep.richtext","version":"1.0"},{"plugin":"org.ekstep.iterator","version":"1.0"},{"plugin":"org.ekstep.navigation","version":"1.0"},{"plugin":"org.ekstep.mathtext","version":"1.0"},{"plugin":"org.ekstep.libs.ckeditor","version":"1.0"},{"plugin":"org.ekstep.questionunit","version":"1.0"},{"plugin":"org.ekstep.keyboard","version":"1.0"},{"plugin":"org.ekstep.questionunit.mcq","version":"1.1"},{"plugin":"org.ekstep.questionunit.mtf","version":"1.1"},{"plugin":"org.ekstep.questionunit.reorder","version":"1.0"},{"plugin":"org.ekstep.questionunit.sequence","version":"1.0"}]},"stage":{"noOfStages":2,"currentStage":"81481683-2c99-469a-a347-89b95cdb1b0e","selectedPluginObject":"cc584527-ec1a-47ba-97cb-e2d14c1003c8"},"sidebar":{"selectedMenu":"settings"}}', objectType: 'Content', gradeLevel: [ 'Class 8' ], appIcon: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/do_31263780400280371213182/artifact/hhhh_1545643284557.thumb.jpg', primaryCategory: 'Learning Resource', collections: [ { identifier: 'do_3126590295958650881129', name: 'বিজ্ঞান (অষ্টম শ্ৰেণীৰ পাঠ্য়পুথি)/ Science (Class-8)', description: 'Enter description for TextBook ', objectType: 'Collection', relation: 'hasSequenceMember', status: 'Live' }, { identifier: 'do_31266212998540492812007', name: 'unit three', description: 'this is for testing', objectType: 'Content', relation: 'hasSequenceMember', status: 'Retired' } ], appId: 'prod.sunbird.portal', contentEncoding: 'gzip', artifactUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/do_31263780400280371213182/artifact/1545651413930_do_31263780400280371213182.zip', sYS_INTERNAL_LAST_UPDATED_ON: '2019-11-08T01:31:01.556+0000', contentType: 'Resource', identifier: 'do_31263780400280371213182', lastUpdatedBy: '59cb2df2-db4e-416c-a704-728656eebb3a', audience: [ 'Student' ], visibility: 'Default', author: 'Assam', consumerId: 'e85bcfb5-a8c2-4e65-87a2-0ebb43b45f01', mediaType: 'content', osId: 'org.ekstep.quiz.app', languageCode: [ 'en' ], lastPublishedBy: '6180f7a4-d3ee-4e90-a9f5-a70d55e6fcae', version: 2, rejectReasons: [ 'Others' ], license: 'CC BY 4.0', prevState: 'Review', size: 411887, lastPublishedOn: '2018-12-24T11:36:54.135+0000', name: ' ঘৰ্ষণ ', rejectComment: 'as instructed', topic: [ 'Friction' ], status: 'Live', totalQuestions: 7, code: 'org.sunbird.KH7gCe', description: 'Multiple Choice Question', streamingUrl: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/ecml/do_31263780400280371213182-latest', medium: [ 'Assamese' ], posterImage: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/do_31266190978555904011954/artifact/hhhh_1545643284557.jpg', idealScreenSize: 'normal', createdOn: '2018-11-20T07:58:03.935+0000', copyrightYear: 2019, contentDisposition: 'inline', lastUpdatedOn: '2018-12-24T11:36:41.281+0000', dialcodeRequired: 'No', owner: 'Lakshmi Kanta Das', createdFor: [ '01254290140407398431' ], creator: 'Lakshmi Kanta Das', os: [ 'All' ], totalScore: 7, pkgVersion: 1, versionKey: '1545651401281', idealScreenDensity: 'hdpi', framework: 'as_k-12', s3Key: 'ecar_files/do_31263780400280371213182/ghrssnn_1545651414136_do_31263780400280371213182_1.0.ecar', me_averageRating: 4, lastSubmittedOn: '2018-12-24T11:34:21.568+0000', createdBy: '59cb2df2-db4e-416c-a704-728656eebb3a', compatibilityLevel: 2, ownedBy: '59cb2df2-db4e-416c-a704-728656eebb3a', board: 'State (Assam)', resourceType: 'Test', licenseDetails: { name: 'CC BY 4.0', url: 'https://creativecommons.org/licenses/by/4.0/legalcode', description: 'For details see below:' }, trackable: { enabled: 'No' }, cardImg: 'https://ntpproductionall.blob.core.windows.net/ntp-content-production/content/do_31263780400280371213182/artifact/hhhh_1545643284557.thumb.jpg' }, isUpdateAvailable: false, mimeType: 'application/vnd.ekstep.ecml-archive', basePath: '', primaryCategory: 'learning resource', contentType: 'resource', isAvailableLocally: false, referenceCount: 0, sizeOnDevice: 0, lastUsedTime: 1613459367380, lastUpdatedTime: 0 } ] } ] }, dataSrc: { type: 'TRACKABLE_COLLECTIONS', mapping: [] }, theme: { component: 'sb-library-cards-hlist', inputs: { type: 'mobile_textbook', viewMoreButtonText: '{"en":"View all"}', maxCardCount: 10, viewMoreButtonPosition: 'right' } } } ]

src/app/manage-learn/core/constants/statuses.constant.ts

projectStatus
Type : object
Default value : { started: { label: "Started", value: "started" }, inProgress: { label: "In Progress", value: "inProgress" }, submitted: { label: "Submitted", value: "submitted" } }
statuses
Type : any
Default value : [ { title: statusType.notStarted }, { title: statusType.inProgress }, { title: statusType.completed } ]
statusType
Type : object
Default value : { notStarted: 'notStarted', inProgress: 'inProgress', completed: 'completed', started: 'started', submitted: 'submitted' }
taskStatus
Type : object
Default value : { notStarted: { label: "Not started", value: "notStarted" }, inProgress: { label: "In Progress", value: "inProgress" }, completed: { label: "Completed", value: "completed" } }

src/services/utility-service.ts

sbutility

src/app/manage-learn/storageKeys.ts

storageKeys
Type : object
Default value : { staticLinks: "staticLinks", observableEntities: "observableEntities", // list of entities logged in user can observe programList: "programList", // stores all programs list with solution and entities nested inside institutionalList: "institutionalList", // list of intitutional assessment // old flow individualList: "individualList", // list of individual assessment // old flow institutionFlowList: "instituionFlowList ", //new institution flow data submissionIdArray: "submissionIdArray", //to store all downloaded submissionIds createdObservationList: "createdObservationList", // list of observational assessment // old flow profileRole: "profileRole", //give all roles of current user libraryDraft: "libraryDraft", //draft(library) in localStorage libraryCategories: "libraryCategories", pollDraft: "pollDraft", observations:'observations', downloadedObservations:'downloadedObservations', mandatoryFields:'mandatoryFields', solutions:'solutions', entities:'entities', submissionsList:'submissionsList', solutionData:'solutionData' }

src/app/manage-learn/core/constants/urlConstants.ts

urlConstants
Type : object
Default value : { SERVICES: { UNNATI: '/improvement-project/api/', KENDRA: '/kendra/api/', SAMIKSHA: '/assessment/api/', DHITI: '/dhiti/api/', SUNBIRD: '/sunbird/api/', }, API_URLS: { PROGRAM_LISTING: '/api/users/mlcore/v1/programs?', GET_TARGETED_SOLUTIONS: '/api/solutions/mlcore/v1/targetedSolutions', SOLUTIONS_LISTING: '/api/users/mlcore/v1/solutions/', GET_PROJECT: '/api/userProjects/mlprojects/v1/details', PRIVATE_PROGRAMS: '/v1/users/privatePrograms', GET_SUB_ENITIES_FOR_ROLES: '/api/entities/mlcore/v1/subEntityListBasedOnRoleAndLocation/', GET_ENTITY_LIST: '/api/entities/mlcore/v1/subEntityList/', GET_REPORT: '/api/reports/mlprojects/v1/entity/', GET_FULL_REPORT: '/api/reports/mlprojects/v1/detailView/', GET_PROGRAM_BY_ENTITY: '/api/reports/mlprojects/v1/getProgramsByEntity', SYNC_PROJECT: '/api/userProjects/mlprojects/v1/sync/', CREATE_PROJECT: '/api/userProjects/mlprojects/v1/add', START_ASSESSMENT: '/api/userProjects/mlprojects/v1/solutionDetails/', PROJCET_TASK_STATUS: '/api/userProjects/mlprojects/v1/tasksStatus/', GET_SHARABLE_PDF: '/api/userProjects/mlprojects/v1/share/', GET_OBSERVATION_ENTITIES: '/api/observations/mlsurvey/v1/entities', GET_OBSERVATION_SUBMISSIONS: '/api/observationSubmissions/mlsurvey/v1/list/', GET_OBSERVATION_DETAILS: '/api/observations/mlsurvey/v1/assessment/', MANDATORY_ENTITY_TYPES_FOR_ROLES: '/api/entities/mlcore/v1/entityTypesByLocationAndRole/', GET_OBSERVATION_SUBMISSION_COUNT: '/api/observations/mlreports/v1/submissionsCount', OBSERVATION_SUBMISSION_UPDATE: '/api/observationSubmissions/mlsurvey/v1/update/', OBSERVATION_SUBMISSION_CREATE: '/api/observationSubmissions/mlsurvey/v1/create/', SEARCH_ENTITY: '/api/observations/mlsurvey/v1/searchEntities', OBSERVATION_UPDATE_ENTITES: '/api/observations/mlsurvey/v1/updateEntities/', SUBMISSION: 'v1/submissions/make/', //TODO its assessment submissionAPI TARGETTED_ENTITY_TYPES: '/api/users/mlcore/v1/targetedEntity/', OBSERVATION_REPORT_SOLUTION_LIST: '/api/observationSubmissions/mlsurvey/v1/solutionList?', GENERIC_REPORTS: '/api/reports/mlreports/v1/fetch', PROJECT_TEMPLATE_DETAILS: '/api/project/mlprojects/v1/templates/details/', ALL_EVIDENCE: '/api/observations/mlreports/v1/listAllEvidences', TEMPLATE_DETAILS:'/api/solutions/mlcore/v1/details/',//+SOL ID SURVEY_FEEDBACK: { GET_DETAILS_BY_ID: '/api/surveys/mlsurvey/v1/details', MAKE_SUBMISSION: '/api/surveySubmissions/mlsurvey/v1/update/', LIST_ALL_EVIDENCES: '/api/surveys/mlreports/v1/listAllEvidences', GET_ALL_ANSWERS: '/api/surveys/mlreports/v1/getAllResponsesOfQuestion/', }, DEEPLINK: { // VERIFY_OBSERVATION_LINK: '/api/solutions/mlsurvey/v1/verifyLink/', VERIFY_LINK: '/api/solutions/mlcore/v1/verifyLink/', //LINK }, PRESIGNED_URLS: '/api/cloud-services/mlcore/v1/files/preSignedUrls', IMPORT_LIBRARY_PROJECT:'/api/userProjects/mlprojects/v1/importFromLibrary/', //tempID?isATargetedSolution=false PROJECT_CERTIFICATES:'/api/userProjects/mlprojects/v1/certificates', GET_PROJECT_CERTIFICATE:'/api/v1/ProjectCertificate/', PROJECT_CERTIFICATE_DOWNLOAD:'/api/rc/projectCertificate/v1/download/', CERTIFICATE_VERIFY:'/api/rc/certificate/v1/key/' }, }

src/app/faq-help/faq-help-data.ts

VideoConfig
Type : object
Default value : { "context": { "mode": "play", "authToken": "", "sid": "", "did": "", "uid": "", "channel": "", "pdata": { "id": "", "ver": "", "pid": "" }, "contextRollup": { "l1": "" }, "tags": [""], "cdata": [], "timeDiff": 0, "objectRollup": {}, "host": "", "endpoint": "", "userData": { "firstName": "", "lastName": "" } }, "config": { "traceId": "" }, "metadata": { "compatibilityLevel": 0, "copyright": "", "subject": [ "" ], "channel": "", "language": [ "" ], "mimeType": "video/mp4", "objectType": "Content", "gradeLevel": [ "" ], "appIcon": "", "primaryCategory": "", "artifactUrl": "", "contentType": "", "identifier": "", "audience": [ "" ], "visibility": "Default", "mediaType": "content", "osId": "", "languageCode": [ "" ], "license": "", "name": "", "status": "Live", "code": "", "streamingUrl": "", "medium": [ "" ], "createdOn": "2020-08-24T17:58:32.911+0000", "copyrightYear": 2020, "lastUpdatedOn": "2020-08-25T04:36:47.587+0000", "creator": "", "pkgVersion": 1, "versionKey": "", "framework": "", "createdBy": "", "resourceType": "Learn", "orgDetails": { "email": "", "orgName": "" }, "licenseDetails": { "name": "", "url": "", "description": "" } }, "data": {} }

src/services/print-pdf/print-pdf.service.ts

window

results matching ""

    No results matching ""