bettersg / Mendisphere

Front end for Mendisphere
4 stars 5 forks source link

Create mock dataset for organisation listing query #85

Closed karthik-Jay closed 1 year ago

karthik-Jay commented 1 year ago

Requirements:

  1. Mock dataset structure must match firestore organisations schema (refer to sample below ):
    • name : string
    • ipcApproved: number (of IPCStatus enumeration)
    • verfied: number (of VerificationStatus enumeration)
    • mainSpecialisation: string (of MentalHealthIssue enumeration)
    • mainSupportArea: string (of SupportArea enumeration)
    • services: list of string (of Service enumeration)
    • description: string
    • cardImageUrl: string (use placeholder images for mock dataset - picsum.photos

Sample dataset:

[
  {
    "name": "Over The Rainbow (OTR)",
    "ipcApproved": 1,
    "verified": 1,
    "mainSpecialisation": "Youth Mental Wellness",
    "mainSupportArea": "Funding Support",
    "services": [
      "Youth",
      "Workshops",
      "Counselling"
    ],
    "description": "Advocacy group that hopes to empower youth with practical, hands on and holistic self-care strategies.",
    "cardImageUrl": "https://picsum.photos/278/425"
  },
  {
    "name": "OCDNetwork",
    "ipcApproved": 2,
    "verified": 1,
    "mainSpecialisation": "Obsessive Compulsive Disorder",
    "mainSupportArea": "Funding Support",
    "services": [
      "Workshops",
      "Counselling"
    ],
    "description": "Non-profit society providing support services, cohesion activities and community for those struggling with OCD.",
    "cardImageUrl": "https://picsum.photos/278/425"
  }
]
  1. MentalHealthIssue enumeration:
    
    export enum MentalHealthIssue {
    AntiStigmatism = "Anti-Stigmatism",
    YouthMentalWellness = "Youth Mental Wellness",
    OCD = "Obessessive Compulsive Disorder",
    OverallMentalWellbeing = "Overall Mental Wellbeing",
    }

3. SupportArea enumeration:

export enum SupportArea { PartnershipOpportunities="Partnership Opportunities", FundingSupport="Funding Support", }


4. Service enumeration:

export enum Service { Youth="Youth", Workshops="Workshops", OCD="OCD", SupportGroup="Support Group", OverallMentalWellbeing="Overall Mental Wellbeing", TrainingProvider="Training Provider", Counselling="Counselling", SpeakingEngagements="Speaking Engagements", CorporateTraining="Corporate Training" }


5. IPCStatus enumeration:

export enum IPCStatus { NotApproved = 0, Approved = 1, Pending = 2, }

6. VerificationStatus enumeration:

export enum VerificationStatus { NotVerified = 0, Verified = 1, Pending = 2, }