diff --git a/scripts/createData.js b/scripts/createData.js new file mode 100644 index 00000000..610fc5ac --- /dev/null +++ b/scripts/createData.js @@ -0,0 +1,6568 @@ +const { MongoClient } = require("mongodb"); +const { ObjectId } = require("mongodb"); +require('dotenv').config({ path: '../.env' }); + +const url = process.env.MONGODB_URL_TO_CREATE; + +const entityDB = process.env.ENTITY_DB; +const surveyDB = process.env.SURVEY_DB; +const projectDB = process.env.PROJECT_DB; + +let districtId = new ObjectId(); + +let entityType = [ + { + _id: new ObjectId(), + name: "state", + toBeMappedToParentEntities: true, + immediateChildrenEntityType: ["district"], + isDeleted: false, + }, + { + _id: new ObjectId(), + name: "district", + toBeMappedToParentEntities: true, + immediateChildrenEntityType: ["block"], + isDeleted: false, + }, +]; + +let entities = [ + { + _id: new ObjectId(), + name: "Karnataka", + entityType: "state", + entityTypeId: entityType[0]._id, + userId: "1", + metaInformation: { + externalId: "KR001", + name: "Karnataka", + }, + childHierarchyPath: [], + groups: { + district: [districtId], + }, + }, + { + _id: districtId, + name: "Bangalore", + entityType: "district", + entityTypeId: entityType[1]._id, + userId: "1", + metaInformation: { + externalId: "BN001", + name: "Bangalore", + }, + childHierarchyPath: [], + groups: {}, + }, +]; + +let userRoleExtension = [ + { + _id: new ObjectId(), + status: "ACTIVE", + createdBy: "SYSTEM", + updatedBy: "SYSTEM", + deleted: false, + userRoleId: "8", + title: "State Education Officer", + entityTypes: [ + { + entityType: "state", + entityTypeId: entityType[0]._id.toString(), + }, + ], + updatedAt: "2024-09-09T09:31:47.135Z", + createdAt: "2024-09-09T09:31:47.135Z", + __v: 0, + }, +]; + +const entityData = { + entities: entities, + entityType: entityType, + userRoleExtension: userRoleExtension, +}; + +let solutionData = [ + { + _id: new ObjectId("66f4e62d8ea984c17a5b374a"), + externalId: "606d92fa-42d8-11ec-ac61-26092024-1011-OBSERVATION-TEMPLATE", + isReusable: true, + name: "NISHTHA 2.0 Feedback Form", + description: "NISHTHA 2.0 feedback form", + author: "", + resourceType: ["Observations Framework"], + language: ["English"], + keywords: ["Framework", "Observation", "Feedback form"], + concepts: [], + scoringSystem: null, + levelToScoreMapping: { + L1: { + points: 100, + label: "Good", + }, + }, + themes: [ + { + type: "theme", + label: "theme", + name: "Observation Theme", + externalId: "OB", + weightage: 100, + criteria: [ + { + criteriaId: new ObjectId("66f4e62d8ea984c17a5b3748"), + weightage: 100, + }, + ], + }, + ], + flattenedThemes: [], + entityType: "school", + type: "observation", + subType: "", + entities: [], + registry: [], + frameworkId: new ObjectId("66f4e6208ea984c17a5b3744"), + frameworkExternalId: "606d92fa-42d8-11ec-ac61-26092024-1011", + noOfRatingLevels: 1, + isRubricDriven: false, + enableQuestionReadOut: false, + updatedBy: "2", + captureGpsLocationAtQuestionLevel: false, + isAPrivateProgram: false, + allowMultipleAssessemts: false, + isDeleted: false, + pageHeading: "Domains", + minNoOfSubmissionsRequired: 1, + rootOrganisations: [], + createdFor: [], + updatedAt: new Date("2024-09-26T04:42:43.860Z"), + createdAt: new Date("2021-11-11T10:16:02.564Z"), + deleted: false, + __v: 0, + evidenceMethods: { + OB: { + externalId: "OB", + tip: null, + name: "Observation", + description: null, + modeOfCollection: "onfield", + canBeNotApplicable: false, + notApplicable: false, + canBeNotAllowed: false, + remarks: null, + }, + }, + sections: { + S1: "Observation Question", + }, + status: "active", + scope: { + state: [entities[0]._id.toString()], + roles: [ + "district_education_officer", + "TEACHER", + "state_education_officer", + ], + entityType: entityType[0].name, + }, + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b3789"), + externalId: + "606d92fa-42d8-11ec-ac61-26092024-1011-OBSERVATION-TEMPLATE-1727325913582", + isReusable: false, + name: "dev_testing", + description: "dev testing", + author: "2", + parentSolutionId: new ObjectId("66f4e62d8ea984c17a5b374a"), + resourceType: ["Observations Framework"], + language: ["English"], + keywords: ["Framework", "Observation", "Feedback form"], + concepts: [], + scoringSystem: null, + levelToScoreMapping: { + L1: { + points: 100, + label: "Good", + }, + }, + themes: [ + { + type: "theme", + label: "theme", + name: "Observation Theme", + externalId: "OB", + weightage: 100, + criteria: [ + { + criteriaId: new ObjectId("66f4e6d98ea984c17a5b3785"), + weightage: 100, + }, + ], + }, + ], + flattenedThemes: [], + entityType: "school", + type: "observation", + subType: "", + entities: [], + startDate: new Date("2022-08-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "active", + evidenceMethods: { + OB: { + externalId: "OB", + tip: null, + name: "Observation", + description: null, + modeOfCollection: "onfield", + canBeNotApplicable: false, + notApplicable: false, + canBeNotAllowed: false, + remarks: null, + }, + }, + sections: { + S1: "Observation Question", + }, + registry: [], + frameworkId: new ObjectId("66f4e6208ea984c17a5b3744"), + frameworkExternalId: "606d92fa-42d8-11ec-ac61-26092024-1011", + noOfRatingLevels: 1, + isRubricDriven: false, + enableQuestionReadOut: false, + updatedBy: "2", + captureGpsLocationAtQuestionLevel: false, + isAPrivateProgram: false, + allowMultipleAssessemts: false, + isDeleted: false, + pageHeading: "Domains", + minNoOfSubmissionsRequired: 1, + rootOrganisations: [], + createdFor: [], + updatedAt: new Date("2024-09-26T04:45:13.585Z"), + createdAt: new Date("2024-09-26T04:45:13.581Z"), + deleted: false, + __v: 0, + link: "8f563917c4f3bfa2e179a960af2360be", + scope: { + state: [entities[0]._id.toString()], + roles: [ + "district_education_officer", + "TEACHER", + "state_education_officer", + ], + entityType: entityType[0].name, + }, + }, + { + _id: new ObjectId("66f3dd81953231bda151086f"), + externalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-SURVEY-TEMPLATE", + isReusable: true, + name: "survey support test", + description: "This is Testing for survey upload", + author: "2", + resourceType: ["Survey Solution"], + language: ["English"], + keywords: ["Survey"], + concepts: [], + themes: [ + { + type: "theme", + label: "theme", + externalId: "SF", + name: "Survey and Feedback", + weightage: 0, + criteria: [ + { + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + weightage: 0, + }, + ], + }, + ], + flattenedThemes: [], + type: "survey", + subType: "survey", + entities: [], + startDate: new Date("2023-08-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "active", + evidenceMethods: { + SF: { + externalId: "SF", + name: "Survey And Feedback", + description: "Survey And Feedback", + modeOfCollection: "", + canBeNotApplicable: false, + notApplicable: false, + canBeNotAllowed: false, + remarks: "", + isActive: true, + }, + }, + sections: { + SQ: "Survey Questions", + }, + registry: [], + isRubricDriven: false, + enableQuestionReadOut: false, + captureGpsLocationAtQuestionLevel: false, + linkTitle: "", + linkUrl: "", + isAPrivateProgram: false, + allowMultipleAssessemts: false, + isDeleted: false, + pageHeading: "Domains", + minNoOfSubmissionsRequired: 1, + rootOrganisations: [], + createdFor: [], + deleted: false, + updatedAt: new Date("2024-09-25T09:53:05.235Z"), + createdAt: new Date("2024-09-25T09:53:05.235Z"), + scope: { + state: [entities[0]._id.toString()], + roles: [ + "district_education_officer", + "TEACHER", + "state_education_officer", + ], + entityType: entityType[0].name, + }, + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108c6"), + externalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-1727258124738", + isReusable: false, + name: "survey support test", + description: "This is Testing for survey upload", + author: "2", + parentSolutionId: new ObjectId("66f3dd81953231bda151086f"), + resourceType: ["Survey Solution"], + language: ["English"], + keywords: ["Survey"], + concepts: [], + themes: [ + { + type: "theme", + label: "theme", + externalId: "SF", + name: "Survey and Feedback", + weightage: 0, + criteria: [ + { + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + weightage: 0, + }, + ], + }, + ], + flattenedThemes: [], + type: "survey", + subType: "survey", + entities: [], + startDate: new Date("2023-08-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "active", + evidenceMethods: { + SF: { + externalId: "SF", + name: "Survey And Feedback", + description: "Survey And Feedback", + modeOfCollection: "", + canBeNotApplicable: false, + notApplicable: false, + canBeNotAllowed: false, + remarks: "", + isActive: true, + }, + }, + sections: { + SQ: "Survey Questions", + }, + registry: [], + isRubricDriven: false, + enableQuestionReadOut: false, + captureGpsLocationAtQuestionLevel: false, + linkTitle: "", + linkUrl: "", + isAPrivateProgram: false, + allowMultipleAssessemts: false, + isDeleted: false, + pageHeading: "Domains", + minNoOfSubmissionsRequired: 1, + rootOrganisations: [], + createdFor: [], + updatedAt: new Date("2024-09-25T09:55:24.781Z"), + createdAt: new Date("2024-09-25T09:55:24.777Z"), + deleted: false, + __v: 0, + link: "912444588cb29f78ad25b3c278f84b03", + scope: { + state: [entities[0]._id.toString()], + roles: [ + "district_education_officer", + "TEACHER", + "state_education_officer", + ], + entityType: entityType[0].name, + }, + }, + { + _id: new ObjectId("66f401e7953231bda15108dd"), + externalId: "606d92fa-42d8-11ec-ac61-23092024-1537-OBSERVATION-TEMPLATE", + isReusable: true, + name: "NISHTHA 2.0 Feedback Form", + description: "NISHTHA 2.0 feedback form", + author: "", + resourceType: ["Observations Framework"], + language: ["English"], + keywords: ["Framework", "Observation", "Feedback form"], + concepts: [], + scoringSystem: null, + levelToScoreMapping: { + L1: { + points: 100, + label: "Good", + }, + }, + themes: [ + { + type: "theme", + label: "theme", + name: "Observation Theme", + externalId: "OB", + weightage: 100, + criteria: [ + { + criteriaId: new ObjectId("66f401e7953231bda15108db"), + weightage: 100, + }, + ], + }, + ], + flattenedThemes: [], + entityType: "school", + type: "observation", + subType: "", + entities: [], + registry: [], + frameworkId: new ObjectId("66f401cb953231bda15108d7"), + frameworkExternalId: "606d92fa-42d8-11ec-ac61-23092024-1537", + noOfRatingLevels: 1, + isRubricDriven: false, + enableQuestionReadOut: false, + updatedBy: "2", + captureGpsLocationAtQuestionLevel: false, + isAPrivateProgram: false, + allowMultipleAssessemts: false, + isDeleted: false, + pageHeading: "Domains", + minNoOfSubmissionsRequired: 1, + rootOrganisations: [], + createdFor: [], + updatedAt: new Date("2024-09-25T12:28:55.193Z"), + createdAt: new Date("2021-11-11T10:16:02.564Z"), + deleted: false, + __v: 0, + evidenceMethods: { + OB: { + externalId: "OB", + tip: null, + name: "Observation", + description: null, + modeOfCollection: "onfield", + canBeNotApplicable: false, + notApplicable: false, + canBeNotAllowed: false, + remarks: null, + }, + }, + sections: { + S1: "Observation Question", + }, + status: "active", + scope: { + state: [entities[0]._id.toString()], + roles: [ + "district_education_officer", + "TEACHER", + "state_education_officer", + ], + entityType: entityType[0].name, + }, + }, + { + _id: new ObjectId("66f40275953231bda151091c"), + externalId: + "606d92fa-42d8-11ec-ac61-23092024-1537-OBSERVATION-TEMPLATE-1727267445504", + isReusable: false, + name: "dev_testing", + description: "dev testing", + author: "2", + parentSolutionId: new ObjectId("66f401e7953231bda15108dd"), + resourceType: ["Observations Framework"], + language: ["English"], + keywords: ["Framework", "Observation", "Feedback form"], + concepts: [], + scoringSystem: null, + levelToScoreMapping: { + L1: { + points: 100, + label: "Good", + }, + }, + themes: [ + { + type: "theme", + label: "theme", + name: "Observation Theme", + externalId: "OB", + weightage: 100, + criteria: [ + { + criteriaId: new ObjectId("66f40275953231bda1510918"), + weightage: 100, + }, + ], + }, + ], + flattenedThemes: [], + entityType: "school", + type: "observation", + subType: "", + entities: [], + startDate: new Date("2022-08-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "active", + evidenceMethods: { + OB: { + externalId: "OB", + tip: null, + name: "Observation", + description: null, + modeOfCollection: "onfield", + canBeNotApplicable: false, + notApplicable: false, + canBeNotAllowed: false, + remarks: null, + }, + }, + sections: { + S1: "Observation Question", + }, + registry: [], + frameworkId: new ObjectId("66f401cb953231bda15108d7"), + frameworkExternalId: "606d92fa-42d8-11ec-ac61-23092024-1537", + noOfRatingLevels: 1, + isRubricDriven: false, + enableQuestionReadOut: false, + updatedBy: "2", + captureGpsLocationAtQuestionLevel: false, + isAPrivateProgram: false, + allowMultipleAssessemts: false, + isDeleted: false, + pageHeading: "Domains", + minNoOfSubmissionsRequired: 1, + rootOrganisations: [], + createdFor: [], + updatedAt: new Date("2024-09-25T12:30:45.507Z"), + createdAt: new Date("2024-09-25T12:30:45.504Z"), + deleted: false, + __v: 0, + link: "dd92e92aa827554cfff6d86171976f51", + scope: { + state: [entities[0]._id.toString()], + roles: [ + "district_education_officer", + "TEACHER", + "state_education_officer", + ], + entityType: entityType[0].name, + }, + }, +]; + +let criteriaData = [ + { + _id: new ObjectId("66f4e5f08ea984c17a5b3741"), + externalId: "PRV_16_09_2024_13_05_163662571997", + timesUsed: 12, + weightage: 20, + name: "Cleanliness", + score: "", + remarks: "", + description: "Cleanliness", + resourceType: ["Program", "Framework", "Criteria"], + language: ["English"], + keywords: ["Keyword 1", "Keyword 2"], + concepts: [ + { + identifier: "LPD20100", + name: "Teacher_Performance", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20400", + name: "Instructional_Programme", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20200", + name: "Teacher_Empowerment", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + ], + createdFor: [], + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + evidences: [], + flag: "", + criteriaType: "manual", + deleted: false, + updatedAt: new Date("2024-09-26T04:41:20.008Z"), + createdAt: new Date("2024-09-26T04:41:20.008Z"), + __v: 0, + }, + { + _id: new ObjectId("66f4e62d8ea984c17a5b3748"), + externalId: "PRV_16_09_2024_13_05_163662571997", + timesUsed: 12, + weightage: 20, + name: "Cleanliness", + score: "", + remarks: "", + description: "Cleanliness", + resourceType: ["Program", "Framework", "Criteria"], + language: ["English"], + keywords: ["Keyword 1", "Keyword 2"], + concepts: [ + { + identifier: "LPD20100", + name: "Teacher_Performance", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20400", + name: "Instructional_Programme", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20200", + name: "Teacher_Empowerment", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + ], + createdFor: [], + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + evidences: [ + { + code: "OB", + sections: [ + { + code: "S1", + questions: [ + new ObjectId("66f4e6c78ea984c17a5b3756"), + new ObjectId("66f4e6c78ea984c17a5b375c"), + new ObjectId("66f4e6c78ea984c17a5b3763"), + new ObjectId("66f4e6c78ea984c17a5b3769"), + new ObjectId("66f4e6c78ea984c17a5b376f"), + ], + }, + ], + }, + ], + flag: "", + criteriaType: "manual", + frameworkCriteriaId: new ObjectId("66f4e5f08ea984c17a5b3741"), + updatedAt: new Date("2024-09-26T04:44:55.836Z"), + createdAt: new Date("2024-09-26T04:41:20.008Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b3785"), + externalId: "PRV_16_09_2024_13_05_163662571997-1727325913573", + timesUsed: 12, + weightage: 20, + name: "Cleanliness", + score: "", + remarks: "", + description: "Cleanliness", + resourceType: ["Program", "Framework", "Criteria"], + language: ["English"], + keywords: ["Keyword 1", "Keyword 2"], + concepts: [ + { + identifier: "LPD20100", + name: "Teacher_Performance", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20400", + name: "Instructional_Programme", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20200", + name: "Teacher_Empowerment", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + ], + createdFor: [], + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + evidences: [ + { + code: "OB", + sections: [ + { + code: "S1", + questions: [ + new ObjectId("66f4e6d98ea984c17a5b3779"), + new ObjectId("66f4e6d98ea984c17a5b377a"), + new ObjectId("66f4e6d98ea984c17a5b377b"), + new ObjectId("66f4e6d98ea984c17a5b377c"), + new ObjectId("66f4e6d98ea984c17a5b377d"), + ], + }, + ], + }, + ], + flag: "", + criteriaType: "manual", + frameworkCriteriaId: new ObjectId("66f4e5f08ea984c17a5b3741"), + parentCriteriaId: new ObjectId("66f4e62d8ea984c17a5b3748"), + updatedAt: new Date("2024-09-26T04:45:13.574Z"), + createdAt: new Date("2024-09-26T04:41:20.008Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3dd81953231bda151086d"), + externalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-SURVEY-TEMPLATE-SF", + owner: "2", + name: "Survey and Feedback", + description: "Survey and Feedback", + resourceType: [], + language: ["English"], + keywords: ["Keyword 1", "Keyword 2"], + concepts: [], + createdFor: [], + evidences: [ + { + code: "SF", + sections: [ + { + code: "SQ", + questions: [ + new ObjectId("66f3ddf9953231bda1510879"), + new ObjectId("66f3ddf9953231bda151087f"), + new ObjectId("66f3ddf9953231bda1510885"), + new ObjectId("66f3ddf9953231bda151088c"), + new ObjectId("66f3ddf9953231bda1510892"), + new ObjectId("66f3ddf9953231bda1510898"), + new ObjectId("66f3ddf9953231bda151089e"), + new ObjectId("66f3ddf9953231bda15108a5"), + ], + }, + ], + }, + ], + criteriaType: "manual", + frameworkCriteriaId: null, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.427Z"), + createdAt: new Date("2024-09-25T09:53:05.219Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108c2"), + externalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-1727258124738-SF", + owner: "2", + name: "Survey and Feedback", + description: "Survey and Feedback", + resourceType: [], + language: ["English"], + keywords: ["Keyword 1", "Keyword 2"], + concepts: [], + createdFor: [], + evidences: [ + { + code: "SF", + sections: [ + { + code: "SQ", + questions: [ + new ObjectId("66f3de0c953231bda15108b0"), + new ObjectId("66f3de0c953231bda15108b2"), + new ObjectId("66f3de0c953231bda15108b3"), + new ObjectId("66f3de0c953231bda15108b4"), + new ObjectId("66f3de0c953231bda15108b1"), + new ObjectId("66f3de0c953231bda15108b5"), + new ObjectId("66f3de0c953231bda15108b7"), + new ObjectId("66f3de0c953231bda15108b6"), + ], + }, + ], + }, + ], + criteriaType: "manual", + frameworkCriteriaId: null, + parentCriteriaId: new ObjectId("66f3dd81953231bda151086d"), + updatedAt: new Date("2024-09-25T09:55:24.767Z"), + createdAt: new Date("2024-09-25T09:53:05.219Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f401a8953231bda15108d4"), + externalId: "PRV_16_09_2024_13_05_163662571997", + timesUsed: 12, + weightage: 20, + name: "Cleanliness", + score: "", + remarks: "", + description: "Cleanliness", + resourceType: ["Program", "Framework", "Criteria"], + language: ["English"], + keywords: ["Keyword 1", "Keyword 2"], + concepts: [ + { + identifier: "LPD20100", + name: "Teacher_Performance", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20400", + name: "Instructional_Programme", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20200", + name: "Teacher_Empowerment", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + ], + createdFor: [], + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + evidences: [], + flag: "", + criteriaType: "manual", + deleted: false, + updatedAt: new Date("2024-09-25T12:27:20.556Z"), + createdAt: new Date("2024-09-25T12:27:20.556Z"), + __v: 0, + }, + { + _id: new ObjectId("66f401e7953231bda15108db"), + externalId: "PRV_16_09_2024_13_05_163662571997", + timesUsed: 12, + weightage: 20, + name: "Cleanliness", + score: "", + remarks: "", + description: "Cleanliness", + resourceType: ["Program", "Framework", "Criteria"], + language: ["English"], + keywords: ["Keyword 1", "Keyword 2"], + concepts: [ + { + identifier: "LPD20100", + name: "Teacher_Performance", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20400", + name: "Instructional_Programme", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20200", + name: "Teacher_Empowerment", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + ], + createdFor: [], + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + evidences: [ + { + code: "OB", + sections: [ + { + code: "S1", + questions: [ + new ObjectId("66f40259953231bda15108e9"), + new ObjectId("66f40259953231bda15108ef"), + new ObjectId("66f40259953231bda15108f6"), + new ObjectId("66f40259953231bda15108fc"), + new ObjectId("66f40259953231bda1510902"), + ], + }, + ], + }, + ], + flag: "", + criteriaType: "manual", + frameworkCriteriaId: new ObjectId("66f401a8953231bda15108d4"), + updatedAt: new Date("2024-09-25T12:30:17.689Z"), + createdAt: new Date("2024-09-25T12:27:20.556Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f40275953231bda1510918"), + externalId: "PRV_16_09_2024_13_05_163662571997-1727267445497", + timesUsed: 12, + weightage: 20, + name: "Cleanliness", + score: "", + remarks: "", + description: "Cleanliness", + resourceType: ["Program", "Framework", "Criteria"], + language: ["English"], + keywords: ["Keyword 1", "Keyword 2"], + concepts: [ + { + identifier: "LPD20100", + name: "Teacher_Performance", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20400", + name: "Instructional_Programme", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20200", + name: "Teacher_Empowerment", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + ], + createdFor: [], + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + evidences: [ + { + code: "OB", + sections: [ + { + code: "S1", + questions: [ + new ObjectId("66f40275953231bda151090c"), + new ObjectId("66f40275953231bda151090d"), + new ObjectId("66f40275953231bda151090e"), + new ObjectId("66f40275953231bda151090f"), + new ObjectId("66f40275953231bda1510910"), + ], + }, + ], + }, + ], + flag: "", + criteriaType: "manual", + frameworkCriteriaId: new ObjectId("66f401a8953231bda15108d4"), + parentCriteriaId: new ObjectId("66f401e7953231bda15108db"), + updatedAt: new Date("2024-09-25T12:30:45.497Z"), + createdAt: new Date("2024-09-25T12:27:20.556Z"), + deleted: false, + __v: 0, + }, +]; + +let criteriaQuestionsData = [ + { + _id: new ObjectId("66f4e62d8ea984c17a5b3748"), + __v: 0, + concepts: [ + { + identifier: "LPD20100", + name: "Teacher_Performance", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20400", + name: "Instructional_Programme", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20200", + name: "Teacher_Empowerment", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + ], + createdAt: new Date("2024-09-26T04:44:55.787Z"), + createdFor: [], + criteriaType: "manual", + deleted: false, + description: "Cleanliness", + evidences: [ + { + code: "OB", + sections: [ + { + code: "S1", + questions: [ + { + _id: new ObjectId("66f4e6c78ea984c17a5b3756"), + externalId: "N111_23_09_2024_15_40_1636625759433", + question: [ + "Select the medium of the course consumption PRV", + "", + ], + tip: "", + hint: "", + responseType: "radio", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "English", + }, + { + value: "R2", + label: "Telugu", + }, + { + value: "R3", + label: "Urdu", + }, + ], + sliderOptions: [], + children: [new ObjectId("66f4e6c78ea984c17a5b375c")], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.796Z"), + createdAt: new Date("2024-09-26T04:44:55.777Z"), + __v: 0, + criteriaId: new ObjectId("66f4e62d8ea984c17a5b3748"), + }, + { + _id: new ObjectId("66f4e6c78ea984c17a5b375c"), + externalId: "N112_23_09_2024_15_40_1636625759433", + question: [ + "Select the courses that you have enrolled in PRV 2.0", + "", + ], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: [ + { + operator: "===", + value: ["R1"], + _id: new ObjectId("66f4e6c78ea984c17a5b3756"), + }, + ], + options: [ + { + value: "R1", + label: "AP_Sec_1.Curriculum and Inclusive Classrooms", + }, + { + value: "R2", + label: "AP_Sec_2.ICT in Teaching-Learning and Assessment", + }, + { + value: "R3", + label: + "AP_Sec_3.Personal-Social Qualities for Holistic Development", + }, + { + value: "R4", + label: "AP_Sec_4.Art Integrated Learning", + }, + { + value: "R5", + label: "AP_Sec_5. Understanding Secondary Stage Learners", + }, + { + value: "R6", + label: "AP_Sec_6. Health and Well-being", + }, + { + value: "R7", + label: + "AP_Sec_7. Integrating Gender in Schooling Processes", + }, + { + value: "R8", + label: + "AP_Sec_8. School Leadership: Concepts and Applications", + }, + { + value: "R9", + label: "AP_Sec_9. Vocational Education", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.793Z"), + createdAt: new Date("2024-09-26T04:44:55.793Z"), + __v: 0, + criteriaId: new ObjectId("66f4e62d8ea984c17a5b3748"), + }, + { + _id: new ObjectId("66f4e6c78ea984c17a5b3763"), + externalId: "N113_23_09_2024_15_40_1636625759433", + question: [ + "Select the courses which you have got the certificate.", + "", + ], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "AP_Sec_1.Curriculum and Inclusive Classrooms", + }, + { + value: "R2", + label: "AP_Sec_2.ICT in Teaching-Learning and Assessment", + }, + { + value: "R3", + label: + "AP_Sec_3.Personal-Social Qualities for Holistic Development", + }, + { + value: "R4", + label: "AP_Sec_4.Art Integrated Learning", + }, + { + value: "R5", + label: "AP_Sec_5. Understanding Secondary Stage Learners", + }, + { + value: "R6", + label: "AP_Sec_6. Health and Well-being", + }, + { + value: "R7", + label: + "AP_Sec_7. Integrating Gender in Schooling Processes", + }, + { + value: "R8", + label: + "AP_Sec_8. School Leadership: Concepts and Applications", + }, + { + value: "R9", + label: "AP_Sec_9. Vocational Education", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "3", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.807Z"), + createdAt: new Date("2024-09-26T04:44:55.807Z"), + __v: 0, + criteriaId: new ObjectId("66f4e62d8ea984c17a5b3748"), + }, + { + _id: new ObjectId("66f4e6c78ea984c17a5b3769"), + externalId: "N114_23_09_2024_15_40_1636625759433", + question: [ + "Select the courses that you have enrolled in PRV 2.0", + "", + ], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: + "AP_Sec_మాడ్యూలు 1: విద్యా ప్రణాళిక మరియు సహిత తరగతి గదులు", + }, + { + value: "R2", + label: + "AP_Sec_మాడ్యూలు 2: బోధన, అభ్యసన, మూల్యాంకనంలో ICT ని సమగ్రపరచడం", + }, + { + value: "R3", + label: + "AP_Sec_ మాడ్యూలు 3 : వ్యక్తిగత సామాజిక లక్షణాలను అభివృద్ధి చేయడం", + }, + { + value: "R4", + label: "AP_Sec_మాడ్యూలు 4. కళ ఆధారిత అభ్యసనం", + }, + { + value: "R5", + label: + "AP_Sec_మాడ్యూలు 5 : మాధ్యమిక దశలోని విద్యార్థులను అర్థం చేసుకోవడం", + }, + { + value: "R6", + label: "AP_Sec_మాడ్యూలు 6 :ఆరోగ్యం మరియు శ్రేయస్సు", + }, + { + value: "R7", + label: + "AP_Sec_మాడ్యూలు 7 : పాఠశాల ప్రక్రియలో లింగభావనను సమగ్ర పరచడం", + }, + { + value: "R8", + label: + "AP_Sec_మాడ్యూలు 8 : పాఠశాల నాయకత్వం - భావనలు మరియు అనువర్తనాలు", + }, + { + value: "R9", + label: "AP_Sec_9 వృత్తి విద్య", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.821Z"), + createdAt: new Date("2024-09-26T04:44:55.821Z"), + __v: 0, + criteriaId: new ObjectId("66f4e62d8ea984c17a5b3748"), + }, + { + _id: new ObjectId("66f4e6c78ea984c17a5b376f"), + externalId: "N118_23_09_2024_15_40_1636625759433", + question: [ + "Give a rating on the reading materials available in the course", + "", + ], + tip: "1 is very bad, 5 is very good", + hint: "", + responseType: "slider", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + max: "5", + min: "1", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "4", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.833Z"), + createdAt: new Date("2024-09-26T04:44:55.833Z"), + __v: 0, + criteriaId: new ObjectId("66f4e62d8ea984c17a5b3748"), + }, + ], + }, + ], + }, + ], + externalId: "PRV_16_09_2024_13_05_163662571997", + flag: "", + frameworkCriteriaId: new ObjectId("66f4e5f08ea984c17a5b3741"), + keywords: ["Keyword 1", "Keyword 2"], + language: ["English"], + name: "Cleanliness", + owner: null, + remarks: "", + resourceType: ["Program", "Framework", "Criteria"], + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + score: "", + showRemarks: null, + timesUsed: 12, + updatedAt: new Date("2024-09-26T04:44:55.840Z"), + weightage: 20, + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b3785"), + __v: 0, + concepts: [ + { + identifier: "LPD20100", + name: "Teacher_Performance", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20400", + name: "Instructional_Programme", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + { + identifier: "LPD20200", + name: "Teacher_Empowerment", + objectType: "Concept", + relation: "associatedTo", + description: null, + index: null, + status: null, + depth: null, + mimeType: null, + visibility: null, + compatibilityLevel: null, + }, + ], + createdAt: new Date("2024-09-26T04:45:13.578Z"), + createdFor: [], + criteriaType: "manual", + deleted: false, + description: "Cleanliness", + evidences: [ + { + code: "OB", + sections: [ + { + code: "S1", + questions: [ + { + _id: new ObjectId("66f4e6d98ea984c17a5b3779"), + externalId: "N111_23_09_2024_15_40_1636625759433-1727325913561", + question: [ + "Select the medium of the course consumption PRV", + "", + ], + tip: "", + hint: "", + responseType: "radio", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "English", + }, + { + value: "R2", + label: "Telugu", + }, + { + value: "R3", + label: "Urdu", + }, + ], + sliderOptions: [], + children: [new ObjectId("66f4e6d98ea984c17a5b377a")], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b3756"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.777Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f4e6d98ea984c17a5b3785"), + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b377a"), + externalId: "N112_23_09_2024_15_40_1636625759433-1727325913562", + question: [ + "Select the courses that you have enrolled in PRV 2.0", + "", + ], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: [ + { + operator: "===", + value: ["R1"], + _id: new ObjectId("66f4e6d98ea984c17a5b3779"), + }, + ], + options: [ + { + value: "R1", + label: "AP_Sec_1.Curriculum and Inclusive Classrooms", + }, + { + value: "R2", + label: "AP_Sec_2.ICT in Teaching-Learning and Assessment", + }, + { + value: "R3", + label: + "AP_Sec_3.Personal-Social Qualities for Holistic Development", + }, + { + value: "R4", + label: "AP_Sec_4.Art Integrated Learning", + }, + { + value: "R5", + label: "AP_Sec_5. Understanding Secondary Stage Learners", + }, + { + value: "R6", + label: "AP_Sec_6. Health and Well-being", + }, + { + value: "R7", + label: + "AP_Sec_7. Integrating Gender in Schooling Processes", + }, + { + value: "R8", + label: + "AP_Sec_8. School Leadership: Concepts and Applications", + }, + { + value: "R9", + label: "AP_Sec_9. Vocational Education", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b375c"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.793Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f4e6d98ea984c17a5b3785"), + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b377b"), + externalId: "N113_23_09_2024_15_40_1636625759433-1727325913563", + question: [ + "Select the courses which you have got the certificate.", + "", + ], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "AP_Sec_1.Curriculum and Inclusive Classrooms", + }, + { + value: "R2", + label: "AP_Sec_2.ICT in Teaching-Learning and Assessment", + }, + { + value: "R3", + label: + "AP_Sec_3.Personal-Social Qualities for Holistic Development", + }, + { + value: "R4", + label: "AP_Sec_4.Art Integrated Learning", + }, + { + value: "R5", + label: "AP_Sec_5. Understanding Secondary Stage Learners", + }, + { + value: "R6", + label: "AP_Sec_6. Health and Well-being", + }, + { + value: "R7", + label: + "AP_Sec_7. Integrating Gender in Schooling Processes", + }, + { + value: "R8", + label: + "AP_Sec_8. School Leadership: Concepts and Applications", + }, + { + value: "R9", + label: "AP_Sec_9. Vocational Education", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "3", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b3763"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.807Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f4e6d98ea984c17a5b3785"), + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b377c"), + externalId: "N114_23_09_2024_15_40_1636625759433-1727325913563", + question: [ + "Select the courses that you have enrolled in PRV 2.0", + "", + ], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: + "AP_Sec_మాడ్యూలు 1: విద్యా ప్రణాళిక మరియు సహిత తరగతి గదులు", + }, + { + value: "R2", + label: + "AP_Sec_మాడ్యూలు 2: బోధన, అభ్యసన, మూల్యాంకనంలో ICT ని సమగ్రపరచడం", + }, + { + value: "R3", + label: + "AP_Sec_ మాడ్యూలు 3 : వ్యక్తిగత సామాజిక లక్షణాలను అభివృద్ధి చేయడం", + }, + { + value: "R4", + label: "AP_Sec_మాడ్యూలు 4. కళ ఆధారిత అభ్యసనం", + }, + { + value: "R5", + label: + "AP_Sec_మాడ్యూలు 5 : మాధ్యమిక దశలోని విద్యార్థులను అర్థం చేసుకోవడం", + }, + { + value: "R6", + label: "AP_Sec_మాడ్యూలు 6 :ఆరోగ్యం మరియు శ్రేయస్సు", + }, + { + value: "R7", + label: + "AP_Sec_మాడ్యూలు 7 : పాఠశాల ప్రక్రియలో లింగభావనను సమగ్ర పరచడం", + }, + { + value: "R8", + label: + "AP_Sec_మాడ్యూలు 8 : పాఠశాల నాయకత్వం - భావనలు మరియు అనువర్తనాలు", + }, + { + value: "R9", + label: "AP_Sec_9 వృత్తి విద్య", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b3769"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.821Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f4e6d98ea984c17a5b3785"), + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b377d"), + externalId: "N118_23_09_2024_15_40_1636625759433-1727325913564", + question: [ + "Give a rating on the reading materials available in the course", + "", + ], + tip: "1 is very bad, 5 is very good", + hint: "", + responseType: "slider", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + max: "5", + min: "1", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "4", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b376f"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.833Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f4e6d98ea984c17a5b3785"), + }, + ], + }, + ], + }, + ], + externalId: "PRV_16_09_2024_13_05_163662571997-1727325913573", + flag: "", + frameworkCriteriaId: new ObjectId("66f4e5f08ea984c17a5b3741"), + keywords: ["Keyword 1", "Keyword 2"], + language: ["English"], + name: "Cleanliness", + owner: null, + remarks: "", + resourceType: ["Program", "Framework", "Criteria"], + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + score: "", + showRemarks: null, + timesUsed: 12, + updatedAt: new Date("2024-09-26T04:45:13.578Z"), + weightage: 20, + }, + { + _id: new ObjectId("66f3dd81953231bda151086d"), + __v: 0, + concepts: [], + createdAt: new Date("2024-09-25T09:55:05.312Z"), + createdFor: [], + criteriaType: "manual", + deleted: false, + description: "Survey and Feedback", + evidences: [ + { + code: "SF", + sections: [ + { + code: "SQ", + questions: [ + { + _id: new ObjectId("66f3ddf9953231bda1510879"), + externalId: "SUR_TEST_001_25_9_2024_15_0720240801165325", + question: ["Enter your First question no", ""], + tip: "", + hint: "", + responseType: "text", + value: "", + isCompleted: false, + showRemarks: true, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [new ObjectId("66f3ddf9953231bda1510885")], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [ + new ObjectId("66f3ddf9953231bda151089e"), + new ObjectId("66f3ddf9953231bda15108a5"), + ], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.422Z"), + createdAt: new Date("2024-09-25T09:55:05.277Z"), + __v: 0, + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + }, + { + _id: new ObjectId("66f3ddf9953231bda151087f"), + externalId: "SUR_TEST_002_25_9_2024_15_0720240801165325", + question: ["Enter your First question no", ""], + tip: "", + hint: "", + responseType: "radio", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "Yes", + }, + { + value: "R2", + label: "No", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.318Z"), + createdAt: new Date("2024-09-25T09:55:05.318Z"), + __v: 0, + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + }, + { + _id: new ObjectId("66f3ddf9953231bda1510885"), + externalId: "SUR_TEST_003_25_9_2024_15_0720240801165325", + question: ["Are you planning to come back?", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: [ + { + operator: "===", + value: ["R2"], + _id: new ObjectId("66f3ddf9953231bda1510879"), + }, + ], + options: [ + { + value: "R1", + label: "Simple mobile phone without internet/data pack", + }, + { + value: "R2", + label: "Smart phone with internet/data pack", + }, + { + value: "R3", + label: "Smart phone without internet/data pack", + }, + { + value: "R4", + label: "TV", + }, + { + value: "R5", + label: "Radio", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2.1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.332Z"), + createdAt: new Date("2024-09-25T09:55:05.332Z"), + __v: 0, + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + }, + { + _id: new ObjectId("66f3ddf9953231bda151088c"), + externalId: "SUR_TEST_004_25_9_2024_15_0720240801165325", + question: ["How many devices are there in home/", ""], + tip: "", + hint: "", + responseType: "number", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + IsNumber: "true", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "3", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.349Z"), + createdAt: new Date("2024-09-25T09:55:05.349Z"), + __v: 0, + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + }, + { + _id: new ObjectId("66f3ddf9953231bda1510892"), + externalId: "SUR_TEST_005_25_9_2024_15_0720240801165325", + question: ["What type of device is available at home?", ""], + tip: "", + hint: "", + responseType: "date", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + max: "", + min: "", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + dateFormat: "DD-MM-YYYY", + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p2", + questionNumber: "4", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.366Z"), + createdAt: new Date("2024-09-25T09:55:05.366Z"), + __v: 0, + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + }, + { + _id: new ObjectId("66f3ddf9953231bda1510898"), + externalId: "SUR_TEST_006_25_9_2024_15_0720240801165325", + question: ["Does the child have a quiet place to study?", ""], + tip: "", + hint: "", + responseType: "matrix", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + instanceIdentifier: "Student", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p3", + questionNumber: "5", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.383Z"), + createdAt: new Date("2024-09-25T09:55:05.383Z"), + __v: 0, + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + }, + { + _id: new ObjectId("66f3ddf9953231bda151089e"), + externalId: "SUR_TEST_007_25_9_2024_15_0720240801165325", + question: [ + "Were you able to enroll your child in courses on Diksha?", + "", + ], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "Not able to use the app", + }, + { + value: "R2", + label: "Not aware of classrooms on DIKSHA", + }, + { + value: "R3", + label: + "Not aware of the enrolment process in the classroom", + }, + { + value: "R4", + label: "Not aware of enrolment process in the courses", + }, + { + value: "R5", + label: "Don’t find the courses useful", + }, + { + value: "R6", + label: "Others", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p4", + questionNumber: "5.1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.402Z"), + createdAt: new Date("2024-09-25T09:55:05.402Z"), + __v: 0, + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + }, + { + _id: new ObjectId("66f3ddf9953231bda15108a5"), + externalId: "SUR_TEST_008_25_9_2024_15_0720240801165325", + question: [ + "What are the challenges that you are facing in enrolment?", + "", + ], + tip: "", + hint: "", + responseType: "slider", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + max: "5", + min: "1", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p5", + questionNumber: "5.2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.420Z"), + createdAt: new Date("2024-09-25T09:55:05.420Z"), + __v: 0, + criteriaId: new ObjectId("66f3dd81953231bda151086d"), + }, + ], + }, + ], + }, + ], + externalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-SURVEY-TEMPLATE-SF", + flag: null, + frameworkCriteriaId: null, + keywords: ["Keyword 1", "Keyword 2"], + language: ["English"], + name: "Survey and Feedback", + owner: "2", + remarks: null, + resourceType: [], + rubric: null, + score: null, + showRemarks: null, + timesUsed: null, + updatedAt: new Date("2024-09-25T09:55:05.432Z"), + weightage: null, + }, + { + _id: new ObjectId("66f3de0c953231bda15108c2"), + __v: 0, + concepts: [], + createdAt: new Date("2024-09-25T09:55:24.774Z"), + createdFor: [], + criteriaType: "manual", + deleted: false, + description: "Survey and Feedback", + evidences: [ + { + code: "SF", + sections: [ + { + code: "SQ", + questions: [ + { + _id: new ObjectId("66f3de0c953231bda15108b0"), + externalId: + "SUR_TEST_001_25_9_2024_15_0720240801165325-1727258124744", + question: ["Enter your First question no", ""], + tip: "", + hint: "", + responseType: "text", + value: "", + isCompleted: false, + showRemarks: true, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [new ObjectId("66f3de0c953231bda15108b2")], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [ + new ObjectId("66f3de0c953231bda15108b6"), + new ObjectId("66f3de0c953231bda15108b7"), + ], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda1510879"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.277Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + }, + { + _id: new ObjectId("66f3de0c953231bda15108b1"), + externalId: + "SUR_TEST_002_25_9_2024_15_0720240801165325-1727258124745", + question: ["Enter your First question no", ""], + tip: "", + hint: "", + responseType: "radio", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "Yes", + }, + { + value: "R2", + label: "No", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda151087f"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.318Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + }, + { + _id: new ObjectId("66f3de0c953231bda15108b2"), + externalId: + "SUR_TEST_003_25_9_2024_15_0720240801165325-1727258124745", + question: ["Are you planning to come back?", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: [ + { + operator: "===", + value: ["R2"], + _id: new ObjectId("66f3de0c953231bda15108b0"), + }, + ], + options: [ + { + value: "R1", + label: "Simple mobile phone without internet/data pack", + }, + { + value: "R2", + label: "Smart phone with internet/data pack", + }, + { + value: "R3", + label: "Smart phone without internet/data pack", + }, + { + value: "R4", + label: "TV", + }, + { + value: "R5", + label: "Radio", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2.1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda1510885"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.332Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + }, + { + _id: new ObjectId("66f3de0c953231bda15108b3"), + externalId: + "SUR_TEST_004_25_9_2024_15_0720240801165325-1727258124746", + question: ["How many devices are there in home/", ""], + tip: "", + hint: "", + responseType: "number", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + IsNumber: "true", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "3", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda151088c"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.349Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + }, + { + _id: new ObjectId("66f3de0c953231bda15108b4"), + externalId: + "SUR_TEST_005_25_9_2024_15_0720240801165325-1727258124746", + question: ["What type of device is available at home?", ""], + tip: "", + hint: "", + responseType: "date", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + max: "", + min: "", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + dateFormat: "DD-MM-YYYY", + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p2", + questionNumber: "4", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda1510892"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.366Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + }, + { + _id: new ObjectId("66f3de0c953231bda15108b5"), + externalId: + "SUR_TEST_006_25_9_2024_15_0720240801165325-1727258124746", + question: ["Does the child have a quiet place to study?", ""], + tip: "", + hint: "", + responseType: "matrix", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + instanceIdentifier: "Student", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p3", + questionNumber: "5", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda1510898"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.383Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + }, + { + _id: new ObjectId("66f3de0c953231bda15108b6"), + externalId: + "SUR_TEST_007_25_9_2024_15_0720240801165325-1727258124747", + question: [ + "Were you able to enroll your child in courses on Diksha?", + "", + ], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "Not able to use the app", + }, + { + value: "R2", + label: "Not aware of classrooms on DIKSHA", + }, + { + value: "R3", + label: + "Not aware of the enrolment process in the classroom", + }, + { + value: "R4", + label: "Not aware of enrolment process in the courses", + }, + { + value: "R5", + label: "Don’t find the courses useful", + }, + { + value: "R6", + label: "Others", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p4", + questionNumber: "5.1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda151089e"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.402Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + }, + { + _id: new ObjectId("66f3de0c953231bda15108b7"), + externalId: + "SUR_TEST_008_25_9_2024_15_0720240801165325-1727258124748", + question: [ + "What are the challenges that you are facing in enrolment?", + "", + ], + tip: "", + hint: "", + responseType: "slider", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + max: "5", + min: "1", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p5", + questionNumber: "5.2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda15108a5"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.420Z"), + deleted: false, + __v: 0, + criteriaId: new ObjectId("66f3de0c953231bda15108c2"), + }, + ], + }, + ], + }, + ], + externalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-1727258124738-SF", + flag: null, + frameworkCriteriaId: null, + keywords: ["Keyword 1", "Keyword 2"], + language: ["English"], + name: "Survey and Feedback", + owner: "2", + remarks: null, + resourceType: [], + rubric: null, + score: null, + showRemarks: null, + timesUsed: null, + updatedAt: new Date("2024-09-25T09:55:24.774Z"), + weightage: null, + }, +]; + +let questionsData = [ + { + _id: new ObjectId("66f4e6c78ea984c17a5b3756"), + externalId: "N111_23_09_2024_15_40_1636625759433", + question: ["Select the medium of the course consumption PRV", ""], + tip: "", + hint: "", + responseType: "radio", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "English", + }, + { + value: "R2", + label: "Telugu", + }, + { + value: "R3", + label: "Urdu", + }, + ], + sliderOptions: [], + children: [new ObjectId("66f4e6c78ea984c17a5b375c")], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.796Z"), + createdAt: new Date("2024-09-26T04:44:55.777Z"), + __v: 0, + }, + { + _id: new ObjectId("66f4e6c78ea984c17a5b375c"), + externalId: "N112_23_09_2024_15_40_1636625759433", + question: ["Select the courses that you have enrolled in PRV 2.0", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: [ + { + operator: "===", + value: ["R1"], + _id: new ObjectId("66f4e6c78ea984c17a5b3756"), + }, + ], + options: [ + { + value: "R1", + label: "AP_Sec_1.Curriculum and Inclusive Classrooms", + }, + { + value: "R2", + label: "AP_Sec_2.ICT in Teaching-Learning and Assessment", + }, + { + value: "R3", + label: "AP_Sec_3.Personal-Social Qualities for Holistic Development", + }, + { + value: "R4", + label: "AP_Sec_4.Art Integrated Learning", + }, + { + value: "R5", + label: "AP_Sec_5. Understanding Secondary Stage Learners", + }, + { + value: "R6", + label: "AP_Sec_6. Health and Well-being", + }, + { + value: "R7", + label: "AP_Sec_7. Integrating Gender in Schooling Processes", + }, + { + value: "R8", + label: "AP_Sec_8. School Leadership: Concepts and Applications", + }, + { + value: "R9", + label: "AP_Sec_9. Vocational Education", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.793Z"), + createdAt: new Date("2024-09-26T04:44:55.793Z"), + __v: 0, + }, + { + _id: new ObjectId("66f4e6c78ea984c17a5b3763"), + externalId: "N113_23_09_2024_15_40_1636625759433", + question: ["Select the courses which you have got the certificate.", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "AP_Sec_1.Curriculum and Inclusive Classrooms", + }, + { + value: "R2", + label: "AP_Sec_2.ICT in Teaching-Learning and Assessment", + }, + { + value: "R3", + label: "AP_Sec_3.Personal-Social Qualities for Holistic Development", + }, + { + value: "R4", + label: "AP_Sec_4.Art Integrated Learning", + }, + { + value: "R5", + label: "AP_Sec_5. Understanding Secondary Stage Learners", + }, + { + value: "R6", + label: "AP_Sec_6. Health and Well-being", + }, + { + value: "R7", + label: "AP_Sec_7. Integrating Gender in Schooling Processes", + }, + { + value: "R8", + label: "AP_Sec_8. School Leadership: Concepts and Applications", + }, + { + value: "R9", + label: "AP_Sec_9. Vocational Education", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "3", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.807Z"), + createdAt: new Date("2024-09-26T04:44:55.807Z"), + __v: 0, + }, + { + _id: new ObjectId("66f4e6c78ea984c17a5b3769"), + externalId: "N114_23_09_2024_15_40_1636625759433", + question: ["Select the courses that you have enrolled in PRV 2.0", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "AP_Sec_మాడ్యూలు 1: విద్యా ప్రణాళిక మరియు సహిత తరగతి గదులు", + }, + { + value: "R2", + label: + "AP_Sec_మాడ్యూలు 2: బోధన, అభ్యసన, మూల్యాంకనంలో ICT ని సమగ్రపరచడం", + }, + { + value: "R3", + label: + "AP_Sec_ మాడ్యూలు 3 : వ్యక్తిగత సామాజిక లక్షణాలను అభివృద్ధి చేయడం", + }, + { + value: "R4", + label: "AP_Sec_మాడ్యూలు 4. కళ ఆధారిత అభ్యసనం", + }, + { + value: "R5", + label: + "AP_Sec_మాడ్యూలు 5 : మాధ్యమిక దశలోని విద్యార్థులను అర్థం చేసుకోవడం", + }, + { + value: "R6", + label: "AP_Sec_మాడ్యూలు 6 :ఆరోగ్యం మరియు శ్రేయస్సు", + }, + { + value: "R7", + label: "AP_Sec_మాడ్యూలు 7 : పాఠశాల ప్రక్రియలో లింగభావనను సమగ్ర పరచడం", + }, + { + value: "R8", + label: "AP_Sec_మాడ్యూలు 8 : పాఠశాల నాయకత్వం - భావనలు మరియు అనువర్తనాలు", + }, + { + value: "R9", + label: "AP_Sec_9 వృత్తి విద్య", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.821Z"), + createdAt: new Date("2024-09-26T04:44:55.821Z"), + __v: 0, + }, + { + _id: new ObjectId("66f4e6c78ea984c17a5b376f"), + externalId: "N118_23_09_2024_15_40_1636625759433", + question: [ + "Give a rating on the reading materials available in the course", + "", + ], + tip: "1 is very bad, 5 is very good", + hint: "", + responseType: "slider", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + max: "5", + min: "1", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "4", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-26T04:44:55.833Z"), + createdAt: new Date("2024-09-26T04:44:55.833Z"), + __v: 0, + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b377b"), + externalId: "N113_23_09_2024_15_40_1636625759433-1727325913563", + question: ["Select the courses which you have got the certificate.", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "AP_Sec_1.Curriculum and Inclusive Classrooms", + }, + { + value: "R2", + label: "AP_Sec_2.ICT in Teaching-Learning and Assessment", + }, + { + value: "R3", + label: "AP_Sec_3.Personal-Social Qualities for Holistic Development", + }, + { + value: "R4", + label: "AP_Sec_4.Art Integrated Learning", + }, + { + value: "R5", + label: "AP_Sec_5. Understanding Secondary Stage Learners", + }, + { + value: "R6", + label: "AP_Sec_6. Health and Well-being", + }, + { + value: "R7", + label: "AP_Sec_7. Integrating Gender in Schooling Processes", + }, + { + value: "R8", + label: "AP_Sec_8. School Leadership: Concepts and Applications", + }, + { + value: "R9", + label: "AP_Sec_9. Vocational Education", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "3", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b3763"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.807Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b3779"), + externalId: "N111_23_09_2024_15_40_1636625759433-1727325913561", + question: ["Select the medium of the course consumption PRV", ""], + tip: "", + hint: "", + responseType: "radio", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "English", + }, + { + value: "R2", + label: "Telugu", + }, + { + value: "R3", + label: "Urdu", + }, + ], + sliderOptions: [], + children: [new ObjectId("66f4e6d98ea984c17a5b377a")], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b3756"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.777Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b377d"), + externalId: "N118_23_09_2024_15_40_1636625759433-1727325913564", + question: [ + "Give a rating on the reading materials available in the course", + "", + ], + tip: "1 is very bad, 5 is very good", + hint: "", + responseType: "slider", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + max: "5", + min: "1", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "4", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b376f"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.833Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b377a"), + externalId: "N112_23_09_2024_15_40_1636625759433-1727325913562", + question: ["Select the courses that you have enrolled in PRV 2.0", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: [ + { + operator: "===", + value: ["R1"], + _id: new ObjectId("66f4e6d98ea984c17a5b3779"), + }, + ], + options: [ + { + value: "R1", + label: "AP_Sec_1.Curriculum and Inclusive Classrooms", + }, + { + value: "R2", + label: "AP_Sec_2.ICT in Teaching-Learning and Assessment", + }, + { + value: "R3", + label: "AP_Sec_3.Personal-Social Qualities for Holistic Development", + }, + { + value: "R4", + label: "AP_Sec_4.Art Integrated Learning", + }, + { + value: "R5", + label: "AP_Sec_5. Understanding Secondary Stage Learners", + }, + { + value: "R6", + label: "AP_Sec_6. Health and Well-being", + }, + { + value: "R7", + label: "AP_Sec_7. Integrating Gender in Schooling Processes", + }, + { + value: "R8", + label: "AP_Sec_8. School Leadership: Concepts and Applications", + }, + { + value: "R9", + label: "AP_Sec_9. Vocational Education", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b375c"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.793Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f4e6d98ea984c17a5b377c"), + externalId: "N114_23_09_2024_15_40_1636625759433-1727325913563", + question: ["Select the courses that you have enrolled in PRV 2.0", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "AP_Sec_మాడ్యూలు 1: విద్యా ప్రణాళిక మరియు సహిత తరగతి గదులు", + }, + { + value: "R2", + label: + "AP_Sec_మాడ్యూలు 2: బోధన, అభ్యసన, మూల్యాంకనంలో ICT ని సమగ్రపరచడం", + }, + { + value: "R3", + label: + "AP_Sec_ మాడ్యూలు 3 : వ్యక్తిగత సామాజిక లక్షణాలను అభివృద్ధి చేయడం", + }, + { + value: "R4", + label: "AP_Sec_మాడ్యూలు 4. కళ ఆధారిత అభ్యసనం", + }, + { + value: "R5", + label: + "AP_Sec_మాడ్యూలు 5 : మాధ్యమిక దశలోని విద్యార్థులను అర్థం చేసుకోవడం", + }, + { + value: "R6", + label: "AP_Sec_మాడ్యూలు 6 :ఆరోగ్యం మరియు శ్రేయస్సు", + }, + { + value: "R7", + label: "AP_Sec_మాడ్యూలు 7 : పాఠశాల ప్రక్రియలో లింగభావనను సమగ్ర పరచడం", + }, + { + value: "R8", + label: "AP_Sec_మాడ్యూలు 8 : పాఠశాల నాయకత్వం - భావనలు మరియు అనువర్తనాలు", + }, + { + value: "R9", + label: "AP_Sec_9 వృత్తి విద్య", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f4e6c78ea984c17a5b3769"), + updatedAt: new Date("2024-09-26T04:45:13.565Z"), + createdAt: new Date("2024-09-26T04:44:55.821Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3ddf9953231bda1510879"), + externalId: "SUR_TEST_001_25_9_2024_15_0720240801165325", + question: ["Enter your First question no", ""], + tip: "", + hint: "", + responseType: "text", + value: "", + isCompleted: false, + showRemarks: true, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [new ObjectId("66f3ddf9953231bda1510885")], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [ + new ObjectId("66f3ddf9953231bda151089e"), + new ObjectId("66f3ddf9953231bda15108a5"), + ], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.422Z"), + createdAt: new Date("2024-09-25T09:55:05.277Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3ddf9953231bda151087f"), + externalId: "SUR_TEST_002_25_9_2024_15_0720240801165325", + question: ["Enter your First question no", ""], + tip: "", + hint: "", + responseType: "radio", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "Yes", + }, + { + value: "R2", + label: "No", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.318Z"), + createdAt: new Date("2024-09-25T09:55:05.318Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3ddf9953231bda1510885"), + externalId: "SUR_TEST_003_25_9_2024_15_0720240801165325", + question: ["Are you planning to come back?", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: [ + { + operator: "===", + value: ["R2"], + _id: new ObjectId("66f3ddf9953231bda1510879"), + }, + ], + options: [ + { + value: "R1", + label: "Simple mobile phone without internet/data pack", + }, + { + value: "R2", + label: "Smart phone with internet/data pack", + }, + { + value: "R3", + label: "Smart phone without internet/data pack", + }, + { + value: "R4", + label: "TV", + }, + { + value: "R5", + label: "Radio", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2.1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.332Z"), + createdAt: new Date("2024-09-25T09:55:05.332Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3ddf9953231bda151088c"), + externalId: "SUR_TEST_004_25_9_2024_15_0720240801165325", + question: ["How many devices are there in home/", ""], + tip: "", + hint: "", + responseType: "number", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + IsNumber: "true", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "3", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.349Z"), + createdAt: new Date("2024-09-25T09:55:05.349Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3ddf9953231bda1510892"), + externalId: "SUR_TEST_005_25_9_2024_15_0720240801165325", + question: ["What type of device is available at home?", ""], + tip: "", + hint: "", + responseType: "date", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + max: "", + min: "", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + dateFormat: "DD-MM-YYYY", + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p2", + questionNumber: "4", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.366Z"), + createdAt: new Date("2024-09-25T09:55:05.366Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3ddf9953231bda1510898"), + externalId: "SUR_TEST_006_25_9_2024_15_0720240801165325", + question: ["Does the child have a quiet place to study?", ""], + tip: "", + hint: "", + responseType: "matrix", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + instanceIdentifier: "Student", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p3", + questionNumber: "5", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.383Z"), + createdAt: new Date("2024-09-25T09:55:05.383Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3ddf9953231bda151089e"), + externalId: "SUR_TEST_007_25_9_2024_15_0720240801165325", + question: ["Were you able to enroll your child in courses on Diksha?", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "Not able to use the app", + }, + { + value: "R2", + label: "Not aware of classrooms on DIKSHA", + }, + { + value: "R3", + label: "Not aware of the enrolment process in the classroom", + }, + { + value: "R4", + label: "Not aware of enrolment process in the courses", + }, + { + value: "R5", + label: "Don’t find the courses useful", + }, + { + value: "R6", + label: "Others", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p4", + questionNumber: "5.1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.402Z"), + createdAt: new Date("2024-09-25T09:55:05.402Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3ddf9953231bda15108a5"), + externalId: "SUR_TEST_008_25_9_2024_15_0720240801165325", + question: ["What are the challenges that you are facing in enrolment?", ""], + tip: "", + hint: "", + responseType: "slider", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + max: "5", + min: "1", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p5", + questionNumber: "5.2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:05.420Z"), + createdAt: new Date("2024-09-25T09:55:05.420Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108b0"), + externalId: "SUR_TEST_001_25_9_2024_15_0720240801165325-1727258124744", + question: ["Enter your First question no", ""], + tip: "", + hint: "", + responseType: "text", + value: "", + isCompleted: false, + showRemarks: true, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [new ObjectId("66f3de0c953231bda15108b2")], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [ + new ObjectId("66f3de0c953231bda15108b6"), + new ObjectId("66f3de0c953231bda15108b7"), + ], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda1510879"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.277Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108b4"), + externalId: "SUR_TEST_005_25_9_2024_15_0720240801165325-1727258124746", + question: ["What type of device is available at home?", ""], + tip: "", + hint: "", + responseType: "date", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + max: "", + min: "", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + dateFormat: "DD-MM-YYYY", + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p2", + questionNumber: "4", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda1510892"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.366Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108b3"), + externalId: "SUR_TEST_004_25_9_2024_15_0720240801165325-1727258124746", + question: ["How many devices are there in home/", ""], + tip: "", + hint: "", + responseType: "number", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + IsNumber: "true", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "3", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda151088c"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.349Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108b2"), + externalId: "SUR_TEST_003_25_9_2024_15_0720240801165325-1727258124745", + question: ["Are you planning to come back?", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: [ + { + operator: "===", + value: ["R2"], + _id: new ObjectId("66f3de0c953231bda15108b0"), + }, + ], + options: [ + { + value: "R1", + label: "Simple mobile phone without internet/data pack", + }, + { + value: "R2", + label: "Smart phone with internet/data pack", + }, + { + value: "R3", + label: "Smart phone without internet/data pack", + }, + { + value: "R4", + label: "TV", + }, + { + value: "R5", + label: "Radio", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2.1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda1510885"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.332Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108b1"), + externalId: "SUR_TEST_002_25_9_2024_15_0720240801165325-1727258124745", + question: ["Enter your First question no", ""], + tip: "", + hint: "", + responseType: "radio", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "Yes", + }, + { + value: "R2", + label: "No", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p1", + questionNumber: "2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda151087f"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.318Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108b5"), + externalId: "SUR_TEST_006_25_9_2024_15_0720240801165325-1727258124746", + question: ["Does the child have a quiet place to study?", ""], + tip: "", + hint: "", + responseType: "matrix", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + instanceIdentifier: "Student", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p3", + questionNumber: "5", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda1510898"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.383Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108b6"), + externalId: "SUR_TEST_007_25_9_2024_15_0720240801165325-1727258124747", + question: ["Were you able to enroll your child in courses on Diksha?", ""], + tip: "", + hint: "", + responseType: "multiselect", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [ + { + value: "R1", + label: "Not able to use the app", + }, + { + value: "R2", + label: "Not aware of classrooms on DIKSHA", + }, + { + value: "R3", + label: "Not aware of the enrolment process in the classroom", + }, + { + value: "R4", + label: "Not aware of enrolment process in the courses", + }, + { + value: "R5", + label: "Don’t find the courses useful", + }, + { + value: "R6", + label: "Others", + }, + ], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p4", + questionNumber: "5.1", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda151089e"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.402Z"), + deleted: false, + __v: 0, + }, + { + _id: new ObjectId("66f3de0c953231bda15108b7"), + externalId: "SUR_TEST_008_25_9_2024_15_0720240801165325-1727258124748", + question: ["What are the challenges that you are facing in enrolment?", ""], + tip: "", + hint: "", + responseType: "slider", + value: "", + isCompleted: false, + showRemarks: false, + remarks: "", + visibleIf: "", + options: [], + sliderOptions: [], + children: [], + questionGroup: ["A1"], + questionType: "auto", + modeOfCollection: "onfield", + usedForScoring: "", + file: { + required: true, + type: ["image/jpeg", "docx", "pdf", "ppt"], + minCount: 0, + maxCount: 10, + caption: "FALSE", + }, + fileName: [], + validation: { + required: true, + max: "5", + min: "1", + }, + accessibility: "No", + canBeNotApplicable: "false", + instanceQuestions: [], + isAGeneralQuestion: false, + autoCapture: false, + rubricLevel: "", + sectionHeader: "", + allowAudioRecording: false, + page: "p5", + questionNumber: "5.2", + weightage: 1, + prefillFromEntityProfile: false, + entityFieldName: "", + isEditable: true, + showQuestionInPreview: false, + createdFromQuestionId: new ObjectId("66f3ddf9953231bda15108a5"), + updatedAt: new Date("2024-09-25T09:55:24.750Z"), + createdAt: new Date("2024-09-25T09:55:05.420Z"), + deleted: false, + __v: 0, + }, +]; + +let frameworkData = [ + { + _id: new ObjectId("66f4e6208ea984c17a5b3744"), + externalId: "606d92fa-42d8-11ec-ac61-26092024-1011", + name: "NISHTHA 2.0 Feedback Form", + description: "NISHTHA 2.0 feedback form", + author: "", + parentId: null, + resourceType: ["Observations Framework"], + language: ["English"], + keywords: ["Framework", "Observation", "Feedback form"], + concepts: [], + createdFor: [], + scoringSystem: null, + levelToScoreMapping: { + L1: { + points: 100, + label: "Good", + }, + }, + themes: [ + { + type: "theme", + label: "theme", + name: "Observation Theme", + externalId: "OB", + weightage: 100, + criteria: [ + { + criteriaId: "66f4e5f08ea984c17a5b3741", + weightage: 100, + }, + ], + }, + ], + noOfRatingLevels: 1, + isRubricDriven: false, + updatedBy: "INITIALIZE", + isDeleted: false, + entityTypeId: new ObjectId("5f32d8228e0dc83124040567"), + entityType: "school", + rootOrganisations: [], + updatedAt: new Date("2024-09-26T04:42:08.974Z"), + createdAt: new Date("2021-11-11T10:16:02.564Z"), + deleted: false, + __v: 0, + }, +]; + +let observationSubmissionData = [ + { + _id: new ObjectId("66f4e7dd8ea984c17a5b37a0"), + observationId: new ObjectId("66f4e6e58ea984c17a5b378f"), + createdBy: "2", + status: "started", + evidencesStatus: [ + { + externalId: "OB", + tip: null, + name: "Observation", + description: null, + modeOfCollection: "onfield", + canBeNotApplicable: false, + notApplicable: false, + canBeNotAllowed: false, + remarks: null, + startTime: "", + endTime: "", + isSubmitted: false, + submissions: [], + }, + ], + evidences: { + OB: { + externalId: "OB", + tip: null, + name: "Observation", + description: null, + modeOfCollection: "onfield", + canBeNotApplicable: false, + notApplicable: false, + canBeNotAllowed: false, + remarks: null, + startTime: "", + endTime: "", + isSubmitted: false, + submissions: [], + }, + }, + criteria: [ + { + _id: new ObjectId("66f4e6d98ea984c17a5b3785"), + __v: 0, + createdAt: new Date("2024-09-26T04:45:13.578Z"), + criteriaType: "manual", + deleted: false, + description: "Cleanliness", + externalId: "PRV_16_09_2024_13_05_163662571997-1727325913573", + flag: "", + frameworkCriteriaId: new ObjectId("66f4e5f08ea984c17a5b3741"), + name: "Cleanliness", + owner: null, + remarks: "", + rubric: { + name: "Cleanliness", + description: "Cleanliness", + type: "auto", + levels: { + L1: { + level: "L1", + label: "Level 1", + description: "NA", + expression: "", + }, + }, + }, + score: "", + showRemarks: null, + timesUsed: 12, + updatedAt: new Date("2024-09-26T04:45:13.578Z"), + weightage: 100, + }, + ], + themes: [], + entityExternalId: "", + observationInformation: { + name: "dev_testing", + description: "dev testing", + createdBy: "2", + frameworkId: new ObjectId("66f4e6208ea984c17a5b3744"), + frameworkExternalId: "606d92fa-42d8-11ec-ac61-26092024-1011", + solutionId: new ObjectId("66f4e6d98ea984c17a5b3789"), + solutionExternalId: + "606d92fa-42d8-11ec-ac61-26092024-1011-OBSERVATION-TEMPLATE-1727325913582", + startDate: new Date("2024-08-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "published", + entityType: "school", + createdFor: ["2"], + rootOrganisations: [], + isAPrivateProgram: false, + link: "8f563917c4f3bfa2e179a960af2360be", + updatedAt: new Date("2024-09-26T04:45:25.003Z"), + createdAt: new Date("2024-09-26T04:45:13.581Z"), + }, + feedback: [], + solutionId: new ObjectId("66f4e6d98ea984c17a5b3789"), + solutionExternalId: + "606d92fa-42d8-11ec-ac61-26092024-1011-OBSERVATION-TEMPLATE-1727325913582", + submissionsUpdatedHistory: [], + entityType: "school", + submissionNumber: 1, + pointsBasedMaxScore: 0, + pointsBasedScoreAchieved: 0, + pointsBasedPercentageScore: 0, + isAPrivateProgram: false, + scoringSystem: null, + isRubricDriven: false, + deleted: false, + title: "Observation 1", + updatedAt: new Date("2024-09-26T04:49:33.266Z"), + createdAt: new Date("2024-09-26T04:49:33.266Z"), + __v: 0, + }, +]; + +let observationData = [ + { + _id: new ObjectId("66f4e6e58ea984c17a5b378f"), + name: "dev_testing", + description: "dev testing", + createdBy: "2", + frameworkId: new ObjectId("66f4e6208ea984c17a5b3744"), + frameworkExternalId: "606d92fa-42d8-11ec-ac61-26092024-1011", + solutionId: new ObjectId("66f4e6d98ea984c17a5b3789"), + solutionExternalId: + "606d92fa-42d8-11ec-ac61-26092024-1011-OBSERVATION-TEMPLATE-1727325913582", + startDate: new Date("2023-08-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "published", + entityType: "school", + entities: [null, "5fd1f497e84a88170cfa85a2"], + createdFor: ["2"], + rootOrganisations: [], + isAPrivateProgram: false, + link: "8f563917c4f3bfa2e179a960af2360be", + updatedAt: new Date("2024-09-26T04:45:25.003Z"), + createdAt: new Date("2024-09-26T04:45:13.581Z"), + deleted: false, + __v: 0, + }, +]; + +const ObservationData = { + observationData: observationData, + observationSubmissionData: observationSubmissionData, + frameworkData: frameworkData, + questionsData: questionsData, + criteriaQuestionsData: criteriaQuestionsData, + criteriaData: criteriaData, + solutionData: solutionData, +}; + +let programData = [ + { + _id: new ObjectId("66f3c3e13bda47893722b496"), + externalId: "PGM_DIET_DARBHANGA_MIP_20-08-24_testing131", + name: "DIET DARBHANGA _MIP_प्राथमिक कक्षाओं में चित्र-पठन कौशल_testing131", + description: + "शिक्षकों में पाठयपुस्तकों दिए गए चित्रों के पीछे छिपे संदेशों को पहचानने और उनका मूल्यांकन करने की क्षमता विकसित होगी |", + owner: "162", + createdBy: "162", + updatedBy: "162", + status: "active", + startDate: new Date("2023-08-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + resourceType: ["program"], + language: ["English"], + keywords: ["चित्र -पठन", " शिक्षक", " डायट", " कौशल"], + concepts: [], + imageCompression: { + quality: 10, + }, + components: [ + new ObjectId("66f3c3e53bda47893722b4f2"), + new ObjectId("66f3c41cf4f6cfde2411623d"), + new ObjectId("66f3c4963bda47893722b63a"), + ], + isAPrivateProgram: false, + isDeleted: false, + requestForPIIConsent: true, + metaInformation: { + state: ["Jayanagar", "Indiranagar"], + roles: ["Teacher", "HT ", "district_education_officer& Officials"], + }, + rootOrganisations: [], + createdFor: [], + deleted: false, + updatedAt: new Date("2024-09-25T08:06:47.048Z"), + createdAt: new Date("2024-09-25T08:03:45.008Z"), + __v: 0, + scope: { + state: [entities[0]._id.toString()], + roles: [ + "district_education_officer", + "TEACHER", + "state_education_officer", + ], + entityType: entityType[0].name, + }, + }, +]; + +let surveysData = [ + { + _id: new ObjectId("66f3de1f953231bda15108cc"), + name: "survey support test", + description: "This is Testing for survey upload", + createdBy: "1", + solutionId: new ObjectId("66f3de0c953231bda15108c6"), + solutionExternalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-1727258124738", + startDate: new Date("2024-06-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "published", + createdFor: [], + rootOrganisations: [], + isDeleted: false, + isAPrivateProgram: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:43.708Z"), + createdAt: new Date("2024-09-25T09:55:43.708Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3de1f953231bda15108cd"), + name: "survey support test", + description: "This is Testing for survey upload", + createdBy: "2", + solutionId: new ObjectId("66f3de0c953231bda15108c6"), + solutionExternalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-1727258124738", + startDate: new Date("2024-06-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "published", + createdFor: [], + rootOrganisations: [], + isDeleted: false, + isAPrivateProgram: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:43.708Z"), + createdAt: new Date("2024-09-25T09:55:43.708Z"), + __v: 0, + }, + { + _id: new ObjectId("66f3de1f953231bda15108ce"), + name: "survey support test", + description: "This is Testing for survey upload", + createdBy: "3", + solutionId: new ObjectId("66f3de0c953231bda15108c6"), + solutionExternalId: "a383af8d-7e4e-4c3b-a79d-ccf2bd14de58-1727258124738", + startDate: new Date("2024-06-25T18:29:59"), + endDate: getEndDate("2025-06-15 18:50:00"), + status: "published", + createdFor: [], + rootOrganisations: [], + isDeleted: false, + isAPrivateProgram: false, + deleted: false, + updatedAt: new Date("2024-09-25T09:55:43.708Z"), + createdAt: new Date("2024-09-25T09:55:43.708Z"), + __v: 0, + }, +]; + +let configurationsData = [ + { + _id: new ObjectId("672b091a95d8ba297ffe6911"), + code: "keysAllowedForTargeting", + meta: { + profileKeys: [ + "state", + "district", + "school", + "block", + "cluster", + "board", + "class", + "roles", + "entities", + "entityTypeId", + "entityType", + "subject", + "medium", + ], + }, + }, +]; + + +let forms = [ + { + _id: new ObjectId("67319cd6445236967cc2ced2"), + type: "homelist", + subType: "homelists", + action: "skip", + data: [ + { + type: "bannerList", + listingData: [ + { + title: "Hey, Welcome back!", + discription: "", + }, + ], + }, + { + type: "solutionList", + listingData: [ + { + name: "Projects", + img: "assets/images/ic_project.svg", + redirectionUrl: "/listing/project", + listType: "project", + solutionType: "improvementProject", + reportPage: false, + description: + "Manage and track your school improvement easily, by creating tasks and planning project timelines", + }, + { + name: "Survey", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + solutionType: "survey", + reportPage: false, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + { + name: "Reports", + img: "assets/images/ic_report.svg", + redirectionUrl: "/project-report", + listType: "report", + reportPage: true, + description: + "Make sense of data to enable your decision-making based on your programs with ease", + list: [ + { + name: "Improvement Project Reports", + img: "assets/images/ic_project.svg", + redirectionUrl: "/project-report", + listType: "project", + solutionType: "improvementProject", + reportPage: false, + description: + "Manage and track your school improvement easily, by creating tasks and planning project timelines", + }, + { + name: "Survey Reports", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + solutionType: "survey", + reportPage: true, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + ], + }, + { + name: "Library", + img: "assets/images/library.svg", + redirectionUrl: "/project-library", + listType: "library", + description: "", + }, + ], + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, + { + _id: new ObjectId("67319cd6445236967cc2ced3"), + type: "projectHome", + subType: "project", + action: "skip", + data: [ + { + type: "bannerList", + listingData: [ + { + title: "Hey, Welcome back!", + discription: "", + }, + ], + }, + { + type: "solutionList", + listingData: [ + { + name: "Projects", + img: "assets/images/ic_project.svg", + redirectionUrl: "/listing/project", + listType: "project", + solutionType: "improvementProject", + reportPage: false, + description: + "Manage and track your school improvement easily, by creating tasks and planning project timelines", + }, + { + name: "Reports", + img: "assets/images/ic_report.svg", + redirectionUrl: "/project-report", + listType: "report", + reportPage: true, + description: + "Make sense of data to enable your decision-making based on your programs with ease", + list: [ + { + name: "Improvement Project Reports", + img: "assets/images/ic_project.svg", + redirectionUrl: "/project-report", + listType: "project", + solutionType: "improvementProject", + reportPage: false, + description: + "Manage and track your school improvement easily, by creating tasks and planning project timelines", + }, + { + name: "Survey Reports", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + reportPage: true, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + ], + }, + { + name: "Library", + img: "assets/images/library.svg", + redirectionUrl: "/project-library", + listType: "library", + description: "", + }, + ], + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, + { + _id: new ObjectId("67319cd6445236967cc2ced4"), + type: "surveyHome", + subType: "survey", + action: "skip", + data: [ + { + type: "bannerList", + listingData: [ + { + title: "Hey, Welcome back!", + discription: "", + }, + ], + }, + { + type: "solutionList", + listingData: [ + { + name: "Survey", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + solutionType: "survey", + reportPage: false, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + { + name: "Reports", + img: "assets/images/ic_report.svg", + redirectionUrl: "/project-report", + listType: "report", + reportPage: true, + description: + "Make sense of data to enable your decision-making based on your programs with ease", + list: [ + { + name: "Survey Reports", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + solutionType: "survey", + reportPage: true, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + ], + }, + ], + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, + { + _id: new ObjectId("67319cd6445236967cc2ced5"), + type: "form", + subType: "formFields", + action: "skip", + data: [ + { + name: "name", + label: "Enter your name", + value: "", + type: "text", + placeHolder: "Ex. Enter your name", + errorMessage: { + required: "Enter your name", + pattern: "This field can only contain alphabets", + }, + validators: { + required: true, + pattern: "^[a-zA-Z\\s]*$", + }, + disable: "false", + }, + { + name: "state", + label: "Select your state", + placeHolder: "Select your state", + value: "", + type: "select", + errorMessage: { + required: "Please select your state", + }, + validators: { + required: true, + }, + dynamicEntity: true, + options: [], + disable: "false", + }, + { + name: "roles", + label: "Choose your role", + value: "", + type: "chip", + dynamicUrl: "/entity-management/v1/entities/targetedRoles/", + errorMessage: { + required: "Select a role", + }, + validators: { + required: true, + }, + options: [], + dependsOn: "state", + multiple: true, + disable: "false", + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, + { + _id: new ObjectId("67319cd6445236967cc2ced6"), + subType: "KR001", + type: "KR001", + data: [ + { + name: "district", + label: "Select your district", + placeHolder: "Select your district", + value: "", + type: "select", + errorMessage: { + required: "Please select your district", + }, + validators: { + required: true, + }, + options: [], + dependsOn: "state", + disable: "false", + }, + { + name: "block", + label: "Select your block", + placeHolder: "Select your block", + value: "", + type: "select", + errorMessage: { + required: "Please select your block", + }, + validators: { + required: false, + }, + options: [], + dependsOn: "district", + disable: "false", + }, + { + name: "cluster", + label: "Select your cluster", + placeHolder: "Select your cluster", + value: "", + type: "select", + errorMessage: { + required: "Please select your cluster", + }, + validators: { + required: false, + }, + options: [], + dependsOn: "block", + disable: "false", + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, +]; + +const surveyData = { + configurationsData: configurationsData, + surveysData: surveysData, + programData: programData, + forms: forms, +}; + + +let programDataProjects = [{ + "_id" : new ObjectId("6735de4dddff700f9dfe6911"), + "resourceType" : [ + "program" + ], + "language" : [ + "English" + ], + "keywords" : [], + "concepts" : [], + "components" : [], + "isAPrivateProgram" : false, + "isDeleted" : false, + "requestForPIIConsent" : true, + "rootOrganisations" : [], + "createdFor" : [], + "deleted" : false, + "status" : "active", + "owner" : "1", + "createdBy" : "1", + "updatedBy" : "1", + "externalId" : "PG01", + "name" : "School Hygiene Improvement Initiative", + "description" : "The School Hygiene Improvement Initiative is dedicated to ensuring clean, safe, and healthy environments in schools. This program focuses on promoting hygiene best practices among students, staff, and administrators to prevent the spread of illnesses, enhance student well-being, and foster an atmosphere conducive to learning. Through regular cleanliness audits, sanitation drives, and hygiene awareness campaigns, the program aims to improve the condition of school facilities, particularly washrooms, classrooms, and common areas. Special emphasis is placed on educating students about personal hygiene, proper handwashing techniques, and maintaining a clean environment to create a culture of responsibility and care within the school community.", +"startDate": getStartDate("2024-08-15 18:50:00"), + "endDate": getEndDate("2029-09-15 18:50:00"), + "scope" : { + state: [entities[0]._id.toString()], + "roles" : [ + "district_education_officer","state_education_officer" + ], + entityType: entityType[0].name, + }, +}]; + + + +let solutionDataProjects = [ + { + "_id" : new ObjectId("6735de4e7fab361e72fe6911"), + "resourceType" : [ + "Improvement Project Solution" + ], + "language" : [ + "English" + ], + "keywords" : [ + "Improvement Project" + ], + "entities" : [ + "" + ], + "programId" : new ObjectId("6735de4dddff700f9dfe6911"), + "name" : "Washroom Hygiene", + "description" : "The School Hygiene Improvement Initiative is dedicated to ensuring clean, safe, and healthy environments in schools...", + "programExternalId" : "PG01", + "scope" : { + state: [entities[0]._id.toString()], + "roles" : [ + "district_education_officer","state_education_officer" + ], + entityType: entityType[0].name, + }, + "projectTemplateId" : new ObjectId("6735de4d1d323709c1fe6911"), +"startDate": getStartDate("2024-08-15 18:50:00"), +"endDate": getEndDate("2029-09-15 18:50:00"), +"isDeleted" : false, + "isAPrivateProgram" : false, + "isReusable" : false, + "status" : "active", + "type" : "improvementProject" +}, +{ + "_id" : new ObjectId("6735de4e7fab361e72fe6912"), + "resourceType" : [ + "Improvement Project Solution" + ], + "language" : [ + "English" + ], + "keywords" : [ + "Improvement Project" + ], + "entities" : [ + "" + ], + "programId" : new ObjectId("6735de4dddff700f9dfe6911"), + "name" : "Library Management", + "description" : "A robust library management program fosters a culture of reading and learning, empowering students to explore diverse resources...", + "programExternalId" : "PG01", + "scope" : { + state: [entities[0]._id.toString()], + "roles" : [ + "district_education_officer","state_education_officer" + ], + entityType: entityType[0].name, + }, + "projectTemplateId" : new ObjectId("6735de4d1d323709c1fe6912"), +"startDate": getStartDate("2024-08-15 18:50:00"), +"endDate": getEndDate("2029-09-15 18:50:00"), +"isDeleted" : false, + "isAPrivateProgram" : false, + "isReusable" : false, + "status" : "active", + "type" : "improvementProject" +}, +{ + "_id" : new ObjectId("6735de4e7fab361e72fe6913"), + "resourceType" : [ + "Improvement Project Solution" + ], + "language" : [ + "English" + ], + "keywords" : [ + "Improvement Project" + ], + "entities" : [ + "" + ], + "programId" : new ObjectId("6735de4dddff700f9dfe6911"), + "name" : "Drinking Water Management", + "description" : "Ensuring access to clean and safe water in schools is vital for fostering a healthy learning environment, enhancing student well-being, and promoting overall academic success.", + "programExternalId" : "PG01", + "scope" : { + state: [entities[0]._id.toString()], + "roles" : [ + "district_education_officer","state_education_officer" + ], + entityType: entityType[0].name, + }, + "projectTemplateId" :new ObjectId("6735de4d1d323709c1fe6913"), +"startDate": getStartDate("2024-08-15 18:50:00"), +"endDate": getEndDate("2029-09-15 18:50:00"), + "isDeleted" : false, + "isAPrivateProgram" : false, + "isReusable" : false, + "status" : "active", + "type" : "improvementProject" +}, +{ + "_id" : new ObjectId("6735de4e7fab361e72fe6914"), + "resourceType" : [ + "Improvement Project Solution" + ], + "language" : [ + "English" + ], + "keywords" : [ + "Improvement Project" + ], + "entities" : [ + "" + ], + "programId" : new ObjectId("6735de4dddff700f9dfe6911"), + "name" : "Sports Management", + "description" : "Providing access to quality sports equipment fosters teamwork, promotes physical fitness, and nurtures the spirit of competition, ultimately contributing to the holistic development...", + "programExternalId" : "PG01", + "scope" : { + state: [entities[0]._id.toString()], + "roles" : [ + "district_education_officer","state_education_officer" + ], + entityType: entityType[0].name, + }, + "projectTemplateId" : new ObjectId("6735de4d1d323709c1fe6914"), +"startDate": getStartDate("2024-08-15 18:50:00"), +"endDate": getEndDate("2029-09-15 18:50:00"), + "isDeleted" : false, + "isAPrivateProgram" : false, + "isReusable" : false, + "status" : "active", + "type" : "improvementProject" +} +]; + + +let formsProject = [ + { + _id: new ObjectId("67319cd6445236967cc2ced2"), + type: "homelist", + subType: "homelists", + action: "skip", + data: [ + { + type: "bannerList", + listingData: [ + { + title: "Hey, Welcome back!", + discription: "", + }, + ], + }, + { + type: "solutionList", + listingData: [ + { + name: "Projects", + img: "assets/images/ic_project.svg", + redirectionUrl: "/listing/project", + listType: "project", + solutionType: "improvementProject", + reportPage: false, + description: + "Manage and track your school improvement easily, by creating tasks and planning project timelines", + }, + { + name: "Reports", + img: "assets/images/ic_report.svg", + redirectionUrl: "/project-report", + listType: "report", + reportPage: true, + description: + "Make sense of data to enable your decision-making based on your programs with ease", + list: [ + { + name: "Improvement Project Reports", + img: "assets/images/ic_project.svg", + redirectionUrl: "/project-report", + listType: "project", + solutionType: "improvementProject", + reportPage: false, + description: + "Manage and track your school improvement easily, by creating tasks and planning project timelines", + }, + { + name: "Survey Reports", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + solutionType: "survey", + reportPage: true, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + ], + }, + { + name: "Library", + img: "assets/images/library.svg", + redirectionUrl: "/project-library", + listType: "library", + description: "", + }, + ], + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, + { + _id: new ObjectId("67319cd6445236967cc2ced3"), + type: "projectHome", + subType: "project", + action: "skip", + data: [ + { + type: "bannerList", + listingData: [ + { + title: "Hey, Welcome back!", + discription: "", + }, + ], + }, + { + type: "solutionList", + listingData: [ + { + name: "Projects", + img: "assets/images/ic_project.svg", + redirectionUrl: "/listing/project", + listType: "project", + solutionType: "improvementProject", + reportPage: false, + description: + "Manage and track your school improvement easily, by creating tasks and planning project timelines", + }, + { + name: "Reports", + img: "assets/images/ic_report.svg", + redirectionUrl: "/project-report", + listType: "report", + reportPage: true, + description: + "Make sense of data to enable your decision-making based on your programs with ease", + list: [ + { + name: "Improvement Project Reports", + img: "assets/images/ic_project.svg", + redirectionUrl: "/project-report", + listType: "project", + solutionType: "improvementProject", + reportPage: false, + description: + "Manage and track your school improvement easily, by creating tasks and planning project timelines", + }, + { + name: "Survey Reports", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + reportPage: true, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + ], + }, + { + name: "Library", + img: "assets/images/library.svg", + redirectionUrl: "/project-library", + listType: "library", + description: "", + }, + ], + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, + { + _id: new ObjectId("67319cd6445236967cc2ced4"), + type: "surveyHome", + subType: "survey", + action: "skip", + data: [ + { + type: "bannerList", + listingData: [ + { + title: "Hey, Welcome back!", + discription: "", + }, + ], + }, + { + type: "solutionList", + listingData: [ + { + name: "Survey", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + solutionType: "survey", + reportPage: false, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + { + name: "Reports", + img: "assets/images/ic_report.svg", + redirectionUrl: "/project-report", + listType: "report", + reportPage: true, + description: + "Make sense of data to enable your decision-making based on your programs with ease", + list: [ + { + name: "Survey Reports", + img: "assets/images/ic_survey.svg", + redirectionUrl: "/listing/survey", + listType: "survey", + solutionType: "survey", + reportPage: true, + reportIdentifier: "surveyReportPage", + description: + "Provide information and feedback through quick and easy surveys", + }, + ], + }, + ], + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, + { + _id: new ObjectId("67319cd6445236967cc2ced5"), + type: "form", + subType: "formFields", + action: "skip", + data: [ + { + name: "name", + label: "Enter your name", + value: "", + type: "text", + placeHolder: "Ex. Enter your name", + errorMessage: { + required: "Enter your name", + pattern: "This field can only contain alphabets", + }, + validators: { + required: true, + pattern: "^[a-zA-Z\\s]*$", + }, + disable: "false", + }, + { + name: "state", + label: "Select your state", + placeHolder: "Select your state", + value: "", + type: "select", + errorMessage: { + required: "Please select your state", + }, + validators: { + required: true, + }, + dynamicEntity: true, + options: [], + disable: "false", + }, + { + name: "roles", + label: "Choose your role", + value: "", + type: "chip", + dynamicUrl: "/entity-management/v1/entities/targetedRoles/", + errorMessage: { + required: "Select a role", + }, + validators: { + required: true, + }, + options: [], + dependsOn: "state", + multiple: true, + disable: "false", + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, + { + _id: new ObjectId("67319cd6445236967cc2ced6"), + subType: "KR001", + type: "KR001", + data: [ + { + name: "district", + label: "Select your district", + placeHolder: "Select your district", + value: "", + type: "select", + errorMessage: { + required: "Please select your district", + }, + validators: { + required: true, + }, + options: [], + dependsOn: "state", + disable: "false", + }, + { + name: "block", + label: "Select your block", + placeHolder: "Select your block", + value: "", + type: "select", + errorMessage: { + required: "Please select your block", + }, + validators: { + required: false, + }, + options: [], + dependsOn: "district", + disable: "false", + }, + { + name: "cluster", + label: "Select your cluster", + placeHolder: "Select your cluster", + value: "", + type: "select", + errorMessage: { + required: "Please select your cluster", + }, + validators: { + required: false, + }, + options: [], + dependsOn: "block", + disable: "false", + }, + ], + organizationId: 1, + deleted: false, + version: 0, + __v: 0, + }, +]; + + +let configurationsDataProjects = [ + { + _id: new ObjectId("672b091a95d8ba297ffe6911"), + code: "keysAllowedForTargeting", + meta: { + profileKeys: [ + "state", + "district", + "school", + "block", + "cluster", + "board", + "class", + "roles", + "entities", + "entityTypeId", + "entityType", + "subject", + "medium", + ], + }, + }, +]; +let projectCategoriesData = [ + { + "_id" : new ObjectId("6735e35f078fc44652fe6911"), + "externalId" : "educationLeader", + "name" : "Education Leader", + "status" : "active" +}, +{ + "_id" : new ObjectId("6735e35f078fc44652fe6912"), + "externalId" : "community", + "name" : "Community", + "status" : "active" +}, +{ + "_id" : new ObjectId("6735e35f078fc44652fe6913"), + "externalId" : "teacher", + "name" : "Teacher", + "status" : "active" +}]; + + +let projectTemplatesData = [ + { + "_id" : new ObjectId("6735de4d1d323709c1fe6911"), + "description" : "The School Hygiene Improvement Initiative is dedicated to ensuring clean, safe, and healthy environments in schools...", + "concepts" : [ + "" + ], + "keywords" : [ + "" + ], + "isDeleted" : false, + "recommendedFor" : [], + "tasks" : [ + new ObjectId("6735de4e10f195f8abfe6911") + ], + "learningResources" : [ + { + "name" : "Washroom management learning resource", + "link" : "https://youtu.be/libKVRa01L8?feature=shared", + "app" : "projectService", + "id" : "libKVRa01L8?feature=shared" + } + ], + "isReusable" : false, + "title" : "Washroom Hygiene", + "externalId" : "WASH-HYGIENE", + "categories" : [ + { + "_id" : new ObjectId("6735e35f078fc44652fe6911"), + "externalId" : "educationLeader", + "name" : "Education Leader" + } + ], + "status" : "published", + "programId" : new ObjectId("6735de4dddff700f9dfe6911"), + "solutionId" : new ObjectId("6735de4e7fab361e72fe6911") +}, +{ + "_id" : new ObjectId("66fbcc3aa4c3a568b1a26b14"), + "description" : "Updating a school library with books for all class levels can greatly enhance the educational experience of students...", + "concepts" : [ + "projects" + ], + "keywords" : [ + "PRO" + ], + "isDeleted" : false, + "recommendedFor" : ["HM" + ], + "tasks" : ["Two" + ], + "learningResources" : [ + { + "link" : "https://www.youtube.com/watch?v=2yt1mlCePzs", + "app" : "projectService", + "id" : "2yt1mlCePzs?feature=shared" + } + ], + "isReusable" : false, + "title" : "Updating a school library", + "externalId" : "SCHOOL-LIBRARY", + "categories" : [ + { + "_id" : new ObjectId("6735e35f078fc44652fe6911"), + "externalId" : "educationLeader", + "name" : "Education Leader" + } + ], + "status" : "published", + "programId" : new ObjectId("66fbcc3a7cbf47f6fba26a13"), + "solutionId" : new ObjectId("66fbcc3b2be2b9057aa26a14") +}, +{ + "_id" : new ObjectId("6735de4d1d323709c1fe6912"), + "description" : "A robust library management program fosters a culture of reading and learning, empowering students to explore diverse resources...", + "concepts" : [ + "" + ], + "keywords" : [ + "" + ], + "isDeleted" : false, + "recommendedFor" : [], + "tasks" : [ + new ObjectId("6735de4e10f195f8abfe6912") + ], + "learningResources" : [ + { + "name" : "Library Management learning resource", + "link" : "https://youtu.be/libKVRa01L8?feature=shared", + "app" : "projectService", + "id" : "libKVRa01L8?feature=shared" + } + ], + "isReusable" : false, + "title" : "Library Management", + "externalId" : "LIB-MANAGEMENT", + "categories" : [ + { + "_id" : new ObjectId("6735e35f078fc44652fe6911"), + "externalId" : "educationLeader", + "name" : "Education Leader" + } + ], + "status" : "published", + "programId" : new ObjectId("6735de4dddff700f9dfe6911"), + "solutionId" : new ObjectId("6735de4e7fab361e72fe6912") +}, +{ + "_id" : new ObjectId("6735de4d1d323709c1fe6913"), + "description" : "Ensuring access to clean and safe water in schools is vital for fostering a healthy learning environment, enhancing student well-being, and promoting overall academic success.", + "concepts" : [ + "" + ], + "keywords" : [ + "" + ], + "isDeleted" : false, + "recommendedFor" : [], + "tasks" : [ + new ObjectId("6735de4e10f195f8abfe6913") + ], + "learningResources" : [ + { + "name" : "Drinking water management learning resource", + "link" : "https://youtu.be/libKVRa01L8?feature=shared", + "app" : "projectService", + "id" : "libKVRa01L8?feature=shared" + } + ], + "isReusable" : false, + "title" : "Drinking Water Availability", + "externalId" : "DRINKING-WATER-AVAILABILITY", + "categories" : [ + { + "_id" : new ObjectId("6735e35f078fc44652fe6911"), + "externalId" : "educationLeader", + "name" : "Education Leader" + } + ], + "status" : "published", + "programId" : new ObjectId("6735de4dddff700f9dfe6911"), + "solutionId" : new ObjectId("6735de4e7fab361e72fe6913") +}, +{ + "_id" : new ObjectId("6735de4d1d323709c1fe6914"), + "description" : "Providing access to quality sports equipment fosters teamwork, promotes physical fitness, and nurtures the spirit of competition, ultimately contributing to the holistic development...", + "concepts" : [ + "" + ], + "keywords" : [ + "" + ], + "isDeleted" : false, + "recommendedFor" : [], + "tasks" : [], + "learningResources" : [ + { + "name" : "Sports management learning resource", + "link" : "https://youtu.be/libKVRa01L8?feature=shared", + "app" : "projectService", + "id" : "libKVRa01L8?feature=shared" + } + ], + "isReusable" : false, + "title" : "Sports Management", + "externalId" : "SPORTS-MANAGEMENT", + "categories" : [ + { + "_id" : new ObjectId("6735e35f078fc44652fe6911"), + "externalId" : "educationLeader", + "name" : "Education Leader" + } + ], + "status" : "published", + "programId" : new ObjectId("6735de4dddff700f9dfe6911") +} +]; + +let projectTemplateTask = [ + { + "_id" : new ObjectId("6735de4e10f195f8abfe6911"), + "isDeleted" : false, + "isDeletable" : false, + "taskSequence" : [], + "children" : [], + "visibleIf" : [], + "hasSubTasks" : false, + "learningResources" : [ + { + "name" : "Washroom management learning resource", + "link" : "https://youtube.com/watch?v=XExMb0XBhw4", + "app" : "projectService", + "id" : "watch?v=XExMb0XBhw4" + } + ], + "deleted" : false, + "type" : "content", + "projectTemplateId" :new ObjectId("6735de4d1d323709c1fe6911"), + "projectTemplateExternalId" : "WASH-HYGIENE", + "name" : "Keep the washroom clean.", + "externalId" : "Wash-Hyg-01", + "description" : "", + "sequenceNumber" : "1", + "metaInformation" : { + "hasAParentTask" : "NO", + "parentTaskOperator" : "", + "parentTaskValue" : "", + "parentTaskId" : "", + "startDate" : "30/08/2021", + "endDate" : "30/08/2029", + "minNoOfSubmissionsRequired" : "" + }, + "__v" : 0 +}, +{ + "_id" : new ObjectId("6735de4e10f195f8abfe6912"), + "isDeleted" : false, + "isDeletable" : false, + "taskSequence" : [], + "children" : [], + "visibleIf" : [], + "hasSubTasks" : false, + "learningResources" : [ + { + "name" : "Library management learning resource", + "link" : "https://youtube.com/watch?v=XExMb0XBhw4", + "app" : "projectService", + "id" : "watch?v=XExMb0XBhw4" + } + ], + "deleted" : false, + "type" : "content", + "projectTemplateId" : new ObjectId("6735de4d1d323709c1fe6912"), + "projectTemplateExternalId" : "LIB-MANAGEMENT", + "name" : "Stack the books properly in the library.", + "externalId" : "Lib-Mana-01", + "description" : "", + "sequenceNumber" : "1", + "metaInformation" : { + "hasAParentTask" : "NO", + "parentTaskOperator" : "", + "parentTaskValue" : "", + "parentTaskId" : "", + "startDate" : "30/08/2021", + "endDate" : "30/08/2029", + "minNoOfSubmissionsRequired" : "" + }, + "__v" : 0 +}, +{ + "_id" : new ObjectId("6735de4e10f195f8abfe6913"), + "isDeleted" : false, + "isDeletable" : false, + "taskSequence" : [], + "children" : [], + "visibleIf" : [], + "hasSubTasks" : false, + "learningResources" : [ + { + "name" : "Drinking water management learning resource", + "link" : "https://youtube.com/watch?v=XExMb0XBhw4", + "app" : "projectService", + "id" : "watch?v=XExMb0XBhw4" + } + ], + "deleted" : false, + "type" : "content", + "projectTemplateId" : new ObjectId("6735de4d1d323709c1fe6913"), + "projectTemplateExternalId" : "DRINKING-WATER-AVAILABILITY", + "name" : "Keep the drinking water vessels clean.", + "externalId" : "Drink-Wat-01", + "description" : "", + "sequenceNumber" : "1", + "metaInformation" : { + "hasAParentTask" : "NO", + "parentTaskOperator" : "", + "parentTaskValue" : "", + "parentTaskId" : "", + "startDate" : "30/08/2021", + "endDate" : "30/08/2029", + "minNoOfSubmissionsRequired" : "" + }, + "__v" : 0 +}, +{ + "_id" : new ObjectId("6735de4e10f195f8abfe6914"), + "isDeleted" : false, + "isDeletable" : false, + "taskSequence" : [], + "children" : [], + "visibleIf" : [], + "hasSubTasks" : false, + "learningResources" : [ + { + "name" : "Sports management learning resource", + "link" : "https://youtube.com/watch?v=XExMb0XBhw4", + "app" : "projectService", + "id" : "watch?v=XExMb0XBhw4" + } + ], + "deleted" : false, + "type" : "content", + "projectTemplateId" : new ObjectId("6735de4d1d323709c1fe6914"), + "projectTemplateExternalId" : "SPORTS-MANAGEMENT", + "name" : "Stack the sport equipments in correct order.", + "externalId" : "Spor-Mana-01", + "description" : "", + "sequenceNumber" : "1", + "metaInformation" : { + "hasAParentTask" : "NO", + "parentTaskOperator" : "", + "parentTaskValue" : "", + "parentTaskId" : "", + "startDate" : "30/08/2021", + "endDate" : "30/08/2029", + "minNoOfSubmissionsRequired" : "" + }, + "__v" : 0 +} +] +const projectData = { + projectTemplatesData: projectTemplatesData, + projectCategoriesData: projectCategoriesData, + configurationsDataProjects: configurationsDataProjects, + formsProject: formsProject, + solutionDataProjects: solutionDataProjects, + programDataProjects: programDataProjects, + projectTemplateTask:projectTemplateTask +}; + +function getStartDate(date) { + let startDate = date.split(" "); + if (startDate[1] === "" || startDate[1] === undefined) { + date = startDate[0] + " 00:00:00"; + } + date = new Date(date); + date = addOffsetToDateTime(date, "+05:30"); + return date; +} + +function addOffsetToDateTime(time, timeZoneDifference) { + //get the offset time from env with respect UTC + let localTimeZone = timeZoneDifference + //convert offset time to minutes + let localTime = localTimeZone.split(':') + let localHourDifference = Number(localTime[0]) + let getTimeDiffInMinutes = + localHourDifference * 60 + (localHourDifference / Math.abs(localHourDifference)) * Number(localTime[1]) + //get server offset time w.r.t. UTC time + let timeDifference = new Date().getTimezoneOffset() + //get actual time difference in minutes + let differenceWithLocal = timeDifference + getTimeDiffInMinutes + // if its 0 then return same time + if (differenceWithLocal === 0) { + return time + } else { + // set time difference + let getMinutes = differenceWithLocal % 60 + let getHours = (differenceWithLocal - getMinutes) / 60 + time.setHours(time.getHours() - getHours) + time.setMinutes(time.getMinutes() - getMinutes) + return time + } +} + + +function getEndDate(date) { + let endDate = date.split(" "); + if (endDate[1] === "" || endDate[1] === undefined) { + date = endDate[0] + " 23:59:59"; + } + date = new Date(date); + date = addOffsetToDateTime(date, "+05:30"); + console.log(date, "this is date"); + return date; +} + + +function addOffsetToDateTime(time, timeZoneDifference) { + //get the offset time from env with respect UTC + let localTimeZone = timeZoneDifference; + //convert offset time to minutes + let localTime = localTimeZone.split(":"); + let localHourDifference = Number(localTime[0]); + let getTimeDiffInMinutes = + localHourDifference * 60 + + (localHourDifference / Math.abs(localHourDifference)) * + Number(localTime[1]); + //get server offset time w.r.t. UTC time + let timeDifference = new Date().getTimezoneOffset(); + //get actual time difference in minutes + let differenceWithLocal = timeDifference + getTimeDiffInMinutes; + // if its 0 then return same time + if (differenceWithLocal === 0) { + return time; + } else { + // set time difference + let getMinutes = differenceWithLocal % 60; + let getHours = (differenceWithLocal - getMinutes) / 60; + time.setHours(time.getHours() - getHours); + time.setMinutes(time.getMinutes() - getMinutes); + return time; + } +} + +async function insertData(collectionName, dataFile, curretDB = surveyDB) { + const client = new MongoClient(url); + + try { + // Connect to MongoDB + await client.connect(); + console.log(`Connected to MongoDB for ${collectionName}`); + + const db = client.db(curretDB); + const collection = db.collection(collectionName); + + // Read the data from the file + const data = dataFile; + + if (!data) { + await client.close(); + return; + } + const filteredData = data.filter(item => item !== null && item !== undefined); + + const result = await collection.insertMany(filteredData); + //console.log(`Inserted ${result.insertedCount} documents into ${collectionName}`); + } finally { + await client.close(); + } +} + +async function main({ dataToBeInserted }) { + await insertData("entities", dataToBeInserted.entities, entityDB); + await insertData("entityTypes", dataToBeInserted.entityType, entityDB); + await insertData( + "userRoleExtension", + dataToBeInserted.userRoleExtension, + entityDB + ); + await insertData("programs", dataToBeInserted.programData, surveyDB); + await insertData("solutions", dataToBeInserted.solutionData, surveyDB); + await insertData("surveys", dataToBeInserted.surveysData, surveyDB); + await insertData("criteria", dataToBeInserted.criteriaData, surveyDB); + await insertData( + "criteriaQuestions", + dataToBeInserted.criteriaQuestionsData, + surveyDB + ); + await insertData("questions", dataToBeInserted.questionsData, surveyDB); + await insertData("forms", dataToBeInserted.forms, surveyDB); + await insertData( + "configurations", + dataToBeInserted.configurationsData, + surveyDB + ); + await insertData("frameworks", dataToBeInserted.frameworkData, surveyDB); + await insertData( + "observationSubmissions", + dataToBeInserted.observationSubmissionData, + surveyDB + ); + await insertData('programs', dataToBeInserted.programDataProjects,projectDB); + await insertData('solutions',dataToBeInserted.solutionDataProjects,projectDB); + await insertData('projectTemplates', dataToBeInserted.projectTemplatesData,projectDB); + await insertData('projectCategories',dataToBeInserted.projectCategoriesData,projectDB); + await insertData('forms',dataToBeInserted.forms,projectDB); + await insertData('configurations',dataToBeInserted.configurationsDataProjects,projectDB); + await insertData('projectTemplateTasks',dataToBeInserted.projectTemplateTask,projectDB); + +} + +main({ dataToBeInserted: entityData }) + .then(() => { + console.log("survey data populated successfully."); + }) + .catch(console.error); +main({ dataToBeInserted: surveyData }) + .then(() => { + console.log("survey data populated successfully."); + }) + .catch(console.error); +main({ dataToBeInserted: ObservationData }) + .then(() => { + console.log("Observation data populated successfully."); + }) + .catch(console.error); + + + main({ dataToBeInserted: projectData }) + .then(() => { + console.log("project data populated successfully."); + }) + .catch(console.error); \ No newline at end of file diff --git a/scripts/deleteData.js b/scripts/deleteData.js new file mode 100644 index 00000000..70aa4c94 --- /dev/null +++ b/scripts/deleteData.js @@ -0,0 +1,44 @@ +require('dotenv').config({ path: '../.env' }); +const { MongoClient } = require('mongodb'); + + +// Fetch MongoDB URL and collections to delete from environment variables +const URL = process.env.MONGODB_URL; +const collectionsToDelete = process.env.COLLECTIONS_TO_DELETE.split(','); + +// Function to delete specified collections in MongoDB +async function deleteCollections() { +// Initialize the MongoDB client with the connection URL + const client = new MongoClient(URL); + + try { + await client.connect(); + console.log('Connected to MongoDB'); + + // Access the default database specified in the connection URL + const db = client.db(); + + // Loop through each collection name in the array + for (const collectionName of collectionsToDelete) { + const collection = db.collection(collectionName); + const exists = await collection.countDocuments(); + + if (exists > 0) { + // Drop the collection if it contains documents + await db.dropCollection(collectionName); + console.log(`Deleted collection: ${collectionName}`); + } else { + console.log(`Collection not found or already empty: ${collectionName}`); + } + } + } + + catch (error) { + console.error('Error deleting collections:', error); + } finally { + await client.close(); + console.log('Connection to MongoDB closed'); + } +} + +deleteCollections(); diff --git a/scripts/envFile/.env.sample b/scripts/envFile/.env.sample new file mode 100644 index 00000000..9d4cf96e --- /dev/null +++ b/scripts/envFile/.env.sample @@ -0,0 +1,10 @@ +# ENV for create +MONGODB_URL_TO_CREATE=mongodb://localhost:27017/ +SURVEY_DB = 'elevate-samiksha' +ENTITY_DB = 'elevate-entity' +PROJECT_DB = 'elevate-project' + +# ENV to delete +MONGODB_URL_TO_DELETE=mongodb://localhost:27017/testdb2 +COLLECTIONS_TO_DELETE = forms,polls,apps +