Skip to content

Move Shared Types Utilities #1845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 44 additions & 3 deletions functions/src/auth/types.ts → common/auth/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,49 @@ export type Claim = Static<typeof Claim>
export const Frequency = Union(L("Weekly"), L("Monthly"), L("None"))
export type Frequency = Static<typeof Frequency>

export const OrgCategory = Union(
L("Agriculture"),
L("Animal Rights"),
L("Automotive"),
L("Civil Rights"),
L("Communications"),
L("Consumer Goods"),
L("Criminal Justice"),
L("Prison Reform"),
L("Education"),
L("Elder Care"),
L("Employment/Labor"),
L("Environment"),
L("Financial"),
L("Food"),
L("Good Government"),
L("Human Rights"),
L("Children's Rights"),
L("Death Penalty"),
L("Disabeled Rights"),
L("LGBTQ+ Rights"),
L("Housing"),
L("Immigration"),
L("Insurance"),
L("Internet & Technology"),
L("Legal"),
L("Medical/Health"),
L("Poverty"),
L("Privacy"),
L("Racial Justice"),
L("Regional"),
L("Refugee"),
L("Reproductive Health"),
L("Pharmaceuticals"),
L("Small & Local Business"),
L("Taxes"),
L("Water"),
L("Women's Rights"),
L("Multi-issue"),
L("Other")
)
export type OrgCategory = Static<typeof OrgCategory>

export const OrgCategories = [
"Agriculture",
"Animal Rights",
Expand Down Expand Up @@ -67,6 +110,4 @@ export const OrgCategories = [
"Women's Rights",
"Multi-issue",
"Other"
] as const

export type OrgCategory = (typeof OrgCategories)[number]
]
Loading