()
| 11 | * @returns Default data for resetting a user's properties. |
| 12 | */ |
| 13 | export const createResetProperties = () => ({ |
| 14 | completedChallenges: [], // TODO(Post-MVP): Omit this from the document? (prisma will always return []) |
| 15 | completedExams: [], // TODO(Post-MVP): Omit this from the document? (prisma will always return []) |
| 16 | currentChallengeId: '', |
| 17 | experience: [], // TODO(Post-MVP): Omit this from the document? (prisma will always return []) |
| 18 | is2018DataVisCert: false, |
| 19 | is2018FullStackCert: false, |
| 20 | isA2EnglishCert: false, |
| 21 | isApisMicroservicesCert: false, |
| 22 | isBackEndCert: false, |
| 23 | isCollegeAlgebraPyCertV8: false, |
| 24 | isDataAnalysisPyCertV7: false, |
| 25 | isDataVisCert: false, |
| 26 | isFoundationalCSharpCertV8: false, |
| 27 | isFrontEndCert: false, |
| 28 | isFrontEndLibsCert: false, |
| 29 | isFullStackCert: false, |
| 30 | isInfosecCertV7: false, |
| 31 | isInfosecQaCert: false, |
| 32 | isJavascriptCertV9: false, |
| 33 | isJsAlgoDataStructCert: false, |
| 34 | isJsAlgoDataStructCertV8: false, |
| 35 | isMachineLearningPyCertV7: false, |
| 36 | isPythonCertV9: false, |
| 37 | isQaCertV7: false, |
| 38 | isRelationalDatabaseCertV8: false, |
| 39 | isRelationalDatabaseCertV9: false, |
| 40 | isRespWebDesignCert: false, |
| 41 | isRespWebDesignCertV9: false, |
| 42 | isSciCompPyCertV7: false, |
| 43 | isFrontEndLibsCertV9: false, |
| 44 | isBackEndDevApisCertV9: false, |
| 45 | isFullStackDeveloperCertV9: false, |
| 46 | isB1EnglishCert: false, |
| 47 | isA2SpanishCert: false, |
| 48 | isA2ChineseCert: false, |
| 49 | isA1ChineseCert: false, |
| 50 | needsModeration: false, |
| 51 | partiallyCompletedChallenges: [], // TODO(Post-MVP): Omit this from the document? (prisma will always return []) |
| 52 | progressTimestamps: [Date.now()], // TODO(Post-MVP): This may need normalising before we can omit it. Also, does it need to start with a timestamp? |
| 53 | savedChallenges: [] // TODO(Post-MVP): Omit this from the document? (prisma will always return []) |
| 54 | }); |
| 55 | |
| 56 | /** |
| 57 | * Creates the necessary data to create a new user. |
no outgoing calls
no test coverage detected