diff --git a/packages/ui/components/core/ActionButtons.stories.tsx b/packages/ui/components/core/ActionButtons.stories.tsx index 2a0fbeb2c3..29d62dd9bf 100644 --- a/packages/ui/components/core/ActionButtons.stories.tsx +++ b/packages/ui/components/core/ActionButtons.stories.tsx @@ -1,7 +1,9 @@ import { type Meta, type StoryObj } from '@storybook/react' import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { createAndSave, getAll, saveItem } from '~ui/mockData/savedList' +import { organization } from '~ui/mockData/organization' +import { review } from '~ui/mockData/review' +import { savedList } from '~ui/mockData/savedList' import { ActionButtons as ActionButtonsComponent } from './ActionButtons' @@ -16,34 +18,11 @@ export default { layout: 'fullscreen', layoutWrapper: 'centeredHalf', msw: [ - getTRPCMock({ - path: ['organization', 'getIdFromSlug'], - type: 'query', - response: { - id: 'orgn_ORGANIZATIONID', - }, - }), - getTRPCMock({ - path: ['review', 'create'], - type: 'mutation', - response: { - id: 'orev_NEWREVIEWID', - }, - }), - getTRPCMock({ - path: ['savedList', 'getAll'], - response: getAll, - }), - getTRPCMock({ - path: ['savedList', 'saveItem'], - type: 'mutation', - response: saveItem, - }), - getTRPCMock({ - path: ['savedList', 'createAndSaveItem'], - type: 'mutation', - response: createAndSave, - }), + organization.getIdFromSlug, + review.create, + savedList.getAll, + savedList.saveItem, + savedList.createAndSaveItem, ], nextjs: { router: { @@ -89,38 +68,7 @@ export const SavedToSingleList = { nextAuthMock: { session: 'userPic', }, - msw: [ - getTRPCMock({ - path: ['savedList', 'isSaved'], - response: [ - { - id: 'listId', - name: 'List Name', - }, - ], - }), - getTRPCMock({ - path: ['savedList', 'getAll'], - response: getAll, - }), - getTRPCMock({ - path: ['savedList', 'deleteItem'], - type: 'mutation', - response: { - id: 'listId', - name: 'list name', - organizations: [], - services: [], - }, - }), - getTRPCMock({ - path: ['organization', 'getIdFromSlug'], - type: 'query', - response: { - id: 'orgn_ORGANIZATIONID', - }, - }), - ], + msw: [savedList.isSavedSingle, savedList.deleteItem, organization.getIdFromSlug], }, } satisfies StoryDef export const SavedToMultipleLists = { @@ -131,42 +79,7 @@ export const SavedToMultipleLists = { nextAuthMock: { session: 'userPic', }, - msw: [ - getTRPCMock({ - path: ['savedList', 'isSaved'], - response: [ - { - id: 'listId1', - name: 'List Name 1', - }, - { - id: 'listId2', - name: 'List Name 2', - }, - ], - }), - getTRPCMock({ - path: ['savedList', 'getAll'], - response: getAll, - }), - getTRPCMock({ - path: ['savedList', 'deleteItem'], - type: 'mutation', - response: { - id: 'listId', - name: 'list name', - organizations: [], - services: [], - }, - }), - getTRPCMock({ - path: ['organization', 'getIdFromSlug'], - type: 'query', - response: { - id: 'orgn_ORGANIZATIONID', - }, - }), - ], + msw: [savedList.isSavedMultiple, savedList.getAll, savedList.deleteItem, organization.getIdFromSlug], }, } satisfies StoryDef export const Share = { diff --git a/packages/ui/components/core/SearchBox.stories.tsx b/packages/ui/components/core/SearchBox.stories.tsx index 09111112df..421b18eb0a 100644 --- a/packages/ui/components/core/SearchBox.stories.tsx +++ b/packages/ui/components/core/SearchBox.stories.tsx @@ -2,9 +2,8 @@ import { type Meta, type StoryObj } from '@storybook/react' import { type ComponentProps, useState } from 'react' import { type SetOptional } from 'type-fest' -import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { mockAutocomplete, mockGeocode } from '~ui/mockData/locationSearch' -import { mockOrgNameSearch } from '~ui/mockData/orgSearch' +import { geo } from '~ui/mockData/geo' +import { organization } from '~ui/mockData/organization' import { SearchBox as SearchBoxComp } from './SearchBox' @@ -22,25 +21,7 @@ export default { type: 'figma', url: 'https://www.figma.com/file/gl8ppgnhpSq1Dr7Daohk55/Design-System-(2023)?node-id=51%3A493&t=AVaWASBVFglQPwtW-0', }, - msw: [ - getTRPCMock({ - path: ['organization', 'searchName'], - type: 'query', - response: (input) => mockOrgNameSearch(input), - delay: 1500, - }), - getTRPCMock({ - path: ['geo', 'autocomplete'], - type: 'query', - response: (input) => mockAutocomplete(input), - delay: 2000, - }), - getTRPCMock({ - path: ['geo', 'geoByPlaceId'], - type: 'query', - response: (input) => mockGeocode(input), - }), - ], + msw: [organization.searchName, geo.autocompleteSearchBox, geo.geocodeSearchBox], layoutWrapper: 'centeredFullscreen', rqDevtools: true, }, diff --git a/packages/ui/components/core/SearchResultCard.stories.tsx b/packages/ui/components/core/SearchResultCard.stories.tsx index 75367c88b2..a5f2ced1fe 100644 --- a/packages/ui/components/core/SearchResultCard.stories.tsx +++ b/packages/ui/components/core/SearchResultCard.stories.tsx @@ -1,7 +1,8 @@ import { type Meta } from '@storybook/react' import { StorybookGridDouble } from '~ui/layouts' -import { searchResultLongTitle, searchResultsMock } from '~ui/mockData/searchResults' +import { trpc } from '~ui/lib/trpcClient' +import { organization } from '~ui/mockData/organization' import { SearchResultCard } from './SearchResultCard' @@ -20,24 +21,68 @@ export default { } satisfies Meta export const SingleResult = { - args: { - result: searchResultsMock.orgs[0], + parameters: { + msw: [organization.searchDistance], + }, + render: () => { + const { data } = trpc.organization.searchDistance.useQuery({ + dist: 0, + lat: 0, + lon: 0, + unit: 'mi', + skip: 0, + take: 0, + }) + if (!data) return <>Loading mock data + const item = data.orgs.at(0) + if (!item) return <>Something is wrong with the mock data + return }, } export const SingleResultWithLongName = { - args: { - result: searchResultLongTitle, + parameters: { + msw: [organization.searchDistanceLongTitle], + }, + render: () => { + const { data } = trpc.organization.searchDistance.useQuery({ + dist: 0, + lat: 0, + lon: 0, + unit: 'mi', + skip: 0, + take: 0, + }) + if (!data) return <>Loading mock data + const item = data.orgs.at(0) + if (!item) return <>Something is wrong with the mock data + return }, } export const MultipleResults = { - render: () => ( - <> - {searchResultsMock.orgs.map((result) => ( - - ))} - - ), + parameters: { + msw: [organization.searchDistance], + }, + render: () => { + const { data } = trpc.organization.searchDistance.useQuery({ + dist: 0, + lat: 0, + lon: 0, + unit: 'mi', + skip: 0, + take: 0, + }) + if (!data) return <>Loading mock data + const item = data.orgs.at(0) + if (!item) return <>Something is wrong with the mock data + return ( + <> + {data.orgs.map((result) => ( + + ))} + + ) + }, } export const SingleLoading = { args: { diff --git a/packages/ui/components/data-display/ContactInfo.stories.tsx b/packages/ui/components/data-display/ContactInfo.stories.tsx index cba07a4c2f..8387cb9a8e 100644 --- a/packages/ui/components/data-display/ContactInfo.stories.tsx +++ b/packages/ui/components/data-display/ContactInfo.stories.tsx @@ -1,6 +1,6 @@ import { type Meta, type StoryObj } from '@storybook/react' -import { getTRPCMock } from '~ui/lib/getTrpcMock' +import { organization } from '~ui/mockData/organization' import { orgEmail } from '~ui/mockData/orgEmail' import { orgPhone } from '~ui/mockData/orgPhone' import { orgSocialMedia } from '~ui/mockData/orgSocialMedia' @@ -25,13 +25,7 @@ export default { }, }, msw: [ - getTRPCMock({ - path: ['organization', 'getIdFromSlug'], - type: 'query', - response: { - id: 'orgn_ORGANIZATIONID', - }, - }), + organization.getIdFromSlug, orgEmail.forContactInfo, orgPhone.forContactInfo, orgWebsite.forContactInfo, diff --git a/packages/ui/components/data-portal/AddressDrawer.stories.tsx b/packages/ui/components/data-portal/AddressDrawer.stories.tsx index 83b2aeacfc..1a349e910f 100644 --- a/packages/ui/components/data-portal/AddressDrawer.stories.tsx +++ b/packages/ui/components/data-portal/AddressDrawer.stories.tsx @@ -3,10 +3,10 @@ import { type Meta, type StoryObj } from '@storybook/react' import { Button } from '~ui/components/core/Button' import { getTRPCMock } from '~ui/lib/getTrpcMock' import { fieldOpt } from '~ui/mockData/fieldOpt' -import { geoMocks } from '~ui/mockData/geo' +import { geo } from '~ui/mockData/geo' import { location } from '~ui/mockData/location' import { organization } from '~ui/mockData/organization' -import { service } from '~ui/mockData/orgService' +import { service } from '~ui/mockData/service' import { AddressDrawer } from './AddressDrawer' @@ -26,8 +26,8 @@ export default { }, }, msw: [ - geoMocks.autocomplete, - geoMocks.geocodeFullAddress, + geo.autocompleteFullAddress, + geo.geocodeFullAddress, fieldOpt.govDistsByCountryNoSub, organization.getIdFromSlug, service.getNames, diff --git a/packages/ui/components/data-portal/EmailTableDrawer.stories.tsx b/packages/ui/components/data-portal/EmailTableDrawer.stories.tsx index 685db6870c..a606a0a5e4 100644 --- a/packages/ui/components/data-portal/EmailTableDrawer.stories.tsx +++ b/packages/ui/components/data-portal/EmailTableDrawer.stories.tsx @@ -2,10 +2,10 @@ import { type Meta, type StoryObj } from '@storybook/react' import { Button } from '~ui/components/core/Button' import { allFieldOptHandlers } from '~ui/mockData/fieldOpt' +import { location } from '~ui/mockData/location' import { organization } from '~ui/mockData/organization' import { orgEmail } from '~ui/mockData/orgEmail' -import { location } from '~ui/mockData/orgLocation' -import { service } from '~ui/mockData/orgService' +import { service } from '~ui/mockData/service' import { EmailTableDrawer } from './EmailTableDrawer' diff --git a/packages/ui/components/data-portal/HoursDrawer/index.stories.tsx b/packages/ui/components/data-portal/HoursDrawer/index.stories.tsx index 7342fb7031..2b076cad78 100644 --- a/packages/ui/components/data-portal/HoursDrawer/index.stories.tsx +++ b/packages/ui/components/data-portal/HoursDrawer/index.stories.tsx @@ -3,11 +3,10 @@ import { type Meta, type StoryObj } from '@storybook/react' import { Button } from '~ui/components/core/Button' import { getTRPCMock } from '~ui/lib/getTrpcMock' import { fieldOpt } from '~ui/mockData/fieldOpt' -import { geoMocks } from '~ui/mockData/geo' import { location } from '~ui/mockData/location' import { organization } from '~ui/mockData/organization' import { orgHours } from '~ui/mockData/orgHours' -import { service } from '~ui/mockData/orgService' +import { service } from '~ui/mockData/service' import { HoursDrawer } from './index' @@ -28,8 +27,6 @@ export default { }, }, msw: [ - geoMocks.autocomplete, - geoMocks.geocodeFullAddress, fieldOpt.govDistsByCountryNoSub, organization.getIdFromSlug, service.getNames, diff --git a/packages/ui/components/data-portal/PhoneTableDrawer.stories.tsx b/packages/ui/components/data-portal/PhoneTableDrawer.stories.tsx index 81172c1d02..13989a9102 100644 --- a/packages/ui/components/data-portal/PhoneTableDrawer.stories.tsx +++ b/packages/ui/components/data-portal/PhoneTableDrawer.stories.tsx @@ -1,10 +1,10 @@ import { type Meta, type StoryObj } from '@storybook/react' import { Button } from '~ui/components/core/Button' +import { location } from '~ui/mockData/location' import { organization } from '~ui/mockData/organization' -import { location } from '~ui/mockData/orgLocation' import { orgPhone } from '~ui/mockData/orgPhone' -import { service } from '~ui/mockData/orgService' +import { service } from '~ui/mockData/service' import { phoneEmailFieldMocks } from '~ui/modals/dataPortal/PhoneEmail/fields.stories' import { PhoneTableDrawer } from './PhoneTableDrawer' diff --git a/packages/ui/components/data-portal/ServiceEditDrawer.stories.tsx b/packages/ui/components/data-portal/ServiceEditDrawer.stories.tsx index 9e62f39000..8206fb7722 100644 --- a/packages/ui/components/data-portal/ServiceEditDrawer.stories.tsx +++ b/packages/ui/components/data-portal/ServiceEditDrawer.stories.tsx @@ -3,7 +3,7 @@ import { type Meta, type StoryObj } from '@storybook/react' import { Button } from '~ui/components/core/Button' import { fieldOpt } from '~ui/mockData/fieldOpt' import { organization } from '~ui/mockData/organization' -import { service } from '~ui/mockData/orgService' +import { service } from '~ui/mockData/service' import { ServiceEditDrawer } from './ServiceEditDrawer' diff --git a/packages/ui/components/data-portal/ServicesDrawer.stories.tsx b/packages/ui/components/data-portal/ServicesDrawer.stories.tsx index ca4f493ef2..ede5867d9f 100644 --- a/packages/ui/components/data-portal/ServicesDrawer.stories.tsx +++ b/packages/ui/components/data-portal/ServicesDrawer.stories.tsx @@ -2,7 +2,7 @@ import { type Meta, type StoryObj } from '@storybook/react' import { Button } from '~ui/components/core/Button' import { organization } from '~ui/mockData/organization' -import { service } from '~ui/mockData/orgService' +import { service } from '~ui/mockData/service' import { ServicesDrawer } from './ServicesDrawer' diff --git a/packages/ui/components/sections/Contact.stories.tsx b/packages/ui/components/sections/Contact.stories.tsx index 70693b51c8..fc09cd83c1 100644 --- a/packages/ui/components/sections/Contact.stories.tsx +++ b/packages/ui/components/sections/Contact.stories.tsx @@ -3,6 +3,7 @@ import { type Meta, type StoryObj } from '@storybook/react' import { StorybookGridSingle } from '~ui/layouts' import { getTRPCMock } from '~ui/lib/getTrpcMock' import { miscMock } from '~ui/mockData/misc' +import { organization } from '~ui/mockData/organization' import { orgEmail } from '~ui/mockData/orgEmail' import { orgPhone } from '~ui/mockData/orgPhone' import { orgSocialMedia } from '~ui/mockData/orgSocialMedia' @@ -29,13 +30,7 @@ export default { }, }, msw: [ - getTRPCMock({ - path: ['organization', 'getIdFromSlug'], - type: 'query', - response: { - id: 'orgn_ORGANIZATIONID', - }, - }), + organization.getIdFromSlug, orgEmail.forContactInfo, orgPhone.forContactInfo, orgWebsite.forContactInfo, diff --git a/packages/ui/components/sections/CrisisSupport/index.stories.tsx b/packages/ui/components/sections/CrisisSupport/index.stories.tsx index 9412ef68b7..f7006737d9 100644 --- a/packages/ui/components/sections/CrisisSupport/index.stories.tsx +++ b/packages/ui/components/sections/CrisisSupport/index.stories.tsx @@ -1,6 +1,7 @@ import { type Meta, type StoryObj } from '@storybook/react' -import { organizationData } from '~ui/mockData/organization' +import { trpc } from '~ui/lib/trpcClient' +import { organization } from '~ui/mockData/organization' import { CrisisSupport } from './index' @@ -9,36 +10,50 @@ export default { component: CrisisSupport, parameters: { layoutWrapper: 'gridDouble', + msw: [organization.getIntlCrisis, organization.getNatlCrisis], }, } satisfies Meta export const InternationalContainer = { - args: { - role: 'international', - children: organizationData.getIntlCrisis.map((item) => ( - - )), + render: () => { + const { data } = trpc.organization.getIntlCrisis.useQuery({ cca2: '' }) + + return ( + + {data?.map((item) => )} + + ) }, } satisfies StoryObj export const InternationalOrgCard = { - args: { - data: organizationData.getIntlCrisis[0], + render: () => { + const { data } = trpc.organization.getIntlCrisis.useQuery({ cca2: '' }) + const item = data?.at(0) + + if (!item) return <>Loading... + + return }, - render: (args) => , } satisfies StoryObj export const NationalContainer = { - args: { - role: 'national', - children: organizationData.getNatlCrisis.map((item) => ( - - )), + render: () => { + const { data } = trpc.organization.getNatlCrisis.useQuery({ cca2: '' }) + return ( + + {data?.map((item) => )} + + ) }, } satisfies StoryObj export const NationalOrgCard = { - args: { - data: organizationData.getNatlCrisis[0], + render: () => { + const { data } = trpc.organization.getNatlCrisis.useQuery({ cca2: '' }) + const item = data?.at(0) + + if (!item) return <>Loading... + + return }, - render: (args) => , } satisfies StoryObj diff --git a/packages/ui/components/sections/Photos.stories.tsx b/packages/ui/components/sections/Photos.stories.tsx index d9949d1d55..c77b012a3a 100644 --- a/packages/ui/components/sections/Photos.stories.tsx +++ b/packages/ui/components/sections/Photos.stories.tsx @@ -1,8 +1,7 @@ import { type Meta, type StoryObj } from '@storybook/react' import { StorybookGridDouble } from '~ui/layouts' -import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { orgPhoto, orgPhotoData } from '~ui/mockData/orgPhoto' +import { orgPhoto } from '~ui/mockData/orgPhoto' import { PhotosSection } from './Photos' @@ -25,23 +24,13 @@ export const Desktop10Photos = {} satisfies StoryDef export const Desktop2Photos = { parameters: { - msw: [ - getTRPCMock({ - path: ['orgPhoto', 'getByParent'], - response: orgPhotoData.getByParent.slice(0, 2), - }), - ], + msw: [orgPhoto.getByParent2], }, } satisfies StoryDef export const Desktop4Photos = { parameters: { - msw: [ - getTRPCMock({ - path: ['orgPhoto', 'getByParent'], - response: orgPhotoData.getByParent.slice(0, 4), - }), - ], + msw: [orgPhoto.getByParent4], }, } satisfies StoryDef @@ -58,22 +47,12 @@ export const Mobile2Photos = { viewport: { defaultViewport: 'iphonex', }, - msw: [ - getTRPCMock({ - path: ['orgPhoto', 'getByParent'], - response: orgPhotoData.getByParent.slice(0, 2), - }), - ], + msw: [orgPhoto.getByParent2], }, } satisfies StoryDef export const NoPhotos = { parameters: { - msw: [ - getTRPCMock({ - path: ['orgPhoto', 'getByParent'], - response: [], - }), - ], + msw: [orgPhoto.getByParent0], }, } satisfies StoryDef diff --git a/packages/ui/components/sections/Reviews.stories.tsx b/packages/ui/components/sections/Reviews.stories.tsx index 74e7848923..96950f0eb6 100644 --- a/packages/ui/components/sections/Reviews.stories.tsx +++ b/packages/ui/components/sections/Reviews.stories.tsx @@ -2,7 +2,8 @@ import { type Meta, type StoryObj } from '@storybook/react' import { StorybookGridDouble } from '~ui/layouts' import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { reviewMockIds, reviewsMock } from '~ui/mockData/reviews' +import { organization } from '~ui/mockData/organization' +import { review } from '~ui/mockData/review' import { ReviewSection } from './Reviews' @@ -10,39 +11,11 @@ export default { title: 'Sections/Reviews', component: ReviewSection, args: { - reviews: reviewMockIds, + reviews: [], }, parameters: { msw: { - handlers: [ - getTRPCMock({ - path: ['review', 'getByIds'], - type: 'query', - response: reviewsMock, - }), - getTRPCMock({ - path: ['review', 'getAverage'], - type: 'query', - response: { - average: 4.3, - count: 10, - }, - }), - getTRPCMock({ - path: ['organization', 'getIdFromSlug'], - type: 'query', - response: { - id: 'orgn_ORGANIZATIONID', - }, - }), - getTRPCMock({ - path: ['review', 'create'], - type: 'mutation', - response: { - id: 'orev_NEWREVIEWID', - }, - }), - ], + handlers: [review.getByIds, review.getAverage, organization.getIdFromSlug, review.create], }, nextjs: { router: { diff --git a/packages/ui/components/sections/SearchResultSidebar.stories.tsx b/packages/ui/components/sections/SearchResultSidebar.stories.tsx index 6efb8b6605..449eb2b754 100644 --- a/packages/ui/components/sections/SearchResultSidebar.stories.tsx +++ b/packages/ui/components/sections/SearchResultSidebar.stories.tsx @@ -1,8 +1,7 @@ import { type Meta } from '@storybook/react' import { StorybookGridSingle } from '~ui/layouts' -import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { moreFilterMock } from '~ui/mockData/moreFilter' +import { attribute } from '~ui/mockData/attribute' import { SearchResultSidebar } from './SearchResultSidebar' @@ -13,13 +12,7 @@ export default { parameters: { layout: 'fullscreen', msw: { - handlers: [ - getTRPCMock({ - path: ['attribute', 'getFilterOptions'], - type: 'query', - response: moreFilterMock, - }), - ], + handlers: [attribute.getFilterOptions], }, }, args: { diff --git a/packages/ui/components/sections/ServicesInfo.stories.tsx b/packages/ui/components/sections/ServicesInfo.stories.tsx index 9e35514076..cdba4954a4 100644 --- a/packages/ui/components/sections/ServicesInfo.stories.tsx +++ b/packages/ui/components/sections/ServicesInfo.stories.tsx @@ -1,7 +1,7 @@ import { type Meta, type StoryObj } from '@storybook/react' import { StorybookGridDouble } from '~ui/layouts' -import { mockService } from '~ui/mockData/service' +import { service } from '~ui/mockData/service' import { ServicesInfoCard } from './ServicesInfo' @@ -25,7 +25,7 @@ export default { }, }, }, - msw: [mockService.forServiceInfoCard, mockService.getParentName, mockService.byId], + msw: [service.forServiceInfoCard, service.getParentName, service.byId], rqDevtools: true, }, decorators: [StorybookGridDouble], diff --git a/packages/ui/components/sections/SuggestOrg/index.stories.tsx b/packages/ui/components/sections/SuggestOrg/index.stories.tsx index 31bd23c6de..80fd5e3b45 100644 --- a/packages/ui/components/sections/SuggestOrg/index.stories.tsx +++ b/packages/ui/components/sections/SuggestOrg/index.stories.tsx @@ -1,8 +1,7 @@ import { type Meta, type StoryObj } from '@storybook/react' -import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { geoAutocompleteFullAddress, getFullAddress } from '~ui/mockData/geo' -import { existingOrg, suggestionOptions } from '~ui/mockData/suggestOrg' +import { geo } from '~ui/mockData/geo' +import { organization } from '~ui/mockData/organization' import { SuggestOrg } from '.' @@ -13,32 +12,12 @@ export default { layout: 'fullscreen', layoutWrapper: 'gridDouble', msw: [ - getTRPCMock({ - path: ['geo', 'autocomplete'], - type: 'query', - response: geoAutocompleteFullAddress, - }), - getTRPCMock({ - path: ['geo', 'geoByPlaceId'], - response: (input) => getFullAddress(input), - }), - getTRPCMock({ - path: ['organization', 'suggestionOptions'], - response: suggestionOptions, - }), - getTRPCMock({ - path: ['organization', 'checkForExisting'], - response: (input) => existingOrg(input), - }), - getTRPCMock({ - path: ['organization', 'createNewSuggestion'], - type: 'mutation', - response: { id: 'sugg_LKSDJFIOW156AWER15' }, - }), - getTRPCMock({ - path: ['organization', 'generateSlug'], - response: 'this-is-a-generated-slug', - }), + geo.autocompleteFullAddress, + geo.geocodeFullAddress, + organization.suggestionOptions, + organization.createNewSuggestion, + organization.checkForExisting, + organization.generateSlug, ], }, } satisfies Meta diff --git a/packages/ui/mockData/attribute.ts b/packages/ui/mockData/attribute.ts new file mode 100644 index 0000000000..09d03a6ccf --- /dev/null +++ b/packages/ui/mockData/attribute.ts @@ -0,0 +1,13 @@ +import { type ApiOutput } from '@weareinreach/api' +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' + +export const attribute = { + getFilterOptions: getTRPCMock({ + path: ['attribute', 'getFilterOptions'], + type: 'query', + response: async () => { + const { default: data } = await import('./json/attribute.getFilterOptions.json') + return data as ApiOutput['attribute']['getFilterOptions'] + }, + }), +} satisfies MockHandlerObject<'attribute'> diff --git a/packages/ui/mockData/contactSection.ts b/packages/ui/mockData/contactSection.ts deleted file mode 100644 index 19da599aa6..0000000000 --- a/packages/ui/mockData/contactSection.ts +++ /dev/null @@ -1,129 +0,0 @@ -export const contactMock = { - emails: [ - { - email: { - email: 'hello@demo.org', - firstName: null, - lastName: null, - legacyDesc: null, - primary: true, - description: { - key: 'email-desc-key', - ns: 'org-data', - tsKey: { - text: 'Default text', - }, - }, - title: null, - locationOnly: false, - serviceOnly: false, - }, - }, - ], - phones: [ - { - phone: { - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - phoneType: null, - description: { - key: 'phone-desc-key', - ns: 'org-data', - tsKey: { - text: 'Phone description text', - }, - }, - phoneLangs: [], - number: '2025551234', - ext: null, - primary: true, - locationOnly: false, - }, - }, - ], - socialMedia: [ - { - service: { - logoIcon: '', - name: 'Twitter', - tsKey: 'twitter', - tsNs: 'common', - urlBase: [''], - }, - url: 'https://twitter.com/userName', - username: 'userName', - }, - { - service: { - logoIcon: '', - name: 'Facebook', - tsKey: 'facebook', - tsNs: 'common', - urlBase: [''], - }, - url: 'https://facebook.com/userName', - username: 'fbUserName', - }, - ], - websites: [ - { - description: { - key: 'website-desc-key', - ns: 'org-data', - tsKey: { - text: 'Default text', - }, - }, - id: 'i435uoi3wskljhglk', - isPrimary: true, - languages: [ - { - language: { - languageName: 'English', - nativeName: 'English', - }, - }, - ], - orgLocationId: null, - orgLocationOnly: false, - url: 'https://google.com', - }, - { - description: { - key: 'website-desc-key2', - ns: 'org-data', - tsKey: { - text: 'Default text', - }, - }, - id: 'adskfjawelrjlaksjf', - isPrimary: false, - languages: [ - { - language: { - languageName: 'English', - nativeName: 'English', - }, - }, - ], - orgLocationId: null, - orgLocationOnly: false, - url: 'https://maps.google.com', - }, - ], -} - -export const singleContactMock = { - emails: contactMock.emails[0] ? [contactMock.emails[0]] : [], - phones: contactMock.phones[0] ? [contactMock.phones[0]] : [], - socialMedia: contactMock.socialMedia[0] ? [contactMock.socialMedia[0]] : [], - websites: contactMock.websites[0] ? [contactMock.websites[0]] : [], -} diff --git a/packages/ui/mockData/geo.ts b/packages/ui/mockData/geo.ts index 9735bb4ed7..9d2caba6ee 100644 --- a/packages/ui/mockData/geo.ts +++ b/packages/ui/mockData/geo.ts @@ -1,281 +1,73 @@ -import { type ApiOutput } from '@weareinreach/api' +import { type ApiInput, type ApiOutput } from '@weareinreach/api' import { getTRPCMock } from '~ui/lib/getTrpcMock' -export const geoByPlaceIdCityState = { - status: 'OK', - result: { - streetNumber: undefined, - streetName: undefined, - street2: undefined, - city: 'New York', - country: 'US', - govDist: 'NY', - postCode: undefined, - geometry: { - location: { lat: 0, lng: 0 }, - viewport: { - northeast: { - lat: 0, - lng: 0, - }, - southwest: { lat: 0, lng: 0 }, - }, - }, - }, -} satisfies ApiOutput['geo']['geoByPlaceId'] -export const geoAutocompleteCityState = { - results: [ - { - label: 'New York', - subheading: 'NY, USA', - value: 'New York, NY, USA', - placeId: 'ChIJOwg_06VPwokRYv534QaPC8g', - }, - { - label: 'Washington D.C.', - subheading: 'DC, USA', - value: 'Washington D.C., DC, USA', - placeId: 'ChIJW-T2Wt7Gt4kRKl2I1CJFUsI', - }, - { - label: 'Boston', - subheading: 'MA, USA', - value: 'Boston, MA, USA', - placeId: 'ChIJGzE9DS1l44kRoOhiASS_fHg', - }, - { - label: 'Atlanta', - subheading: 'GA, USA', - value: 'Atlanta, GA, USA', - placeId: 'ChIJjQmTaV0E9YgRC2MLmS_e_mY', - }, - ], - status: 'OK', -} satisfies ApiOutput['geo']['autocomplete'] - -export const geoAutocompleteFullAddress = { - status: 'OK', - results: [ - { - label: '1235 South Clark Street', - subheading: 'Arlington, VA, USA', - value: '1235 South Clark Street, Arlington, VA, USA', - placeId: 'ChIJcYM1qya3t4kRc74WPRj7sYI', - }, - { - label: '1238 Maryland Avenue Southwest', - subheading: 'Washington, DC, USA', - value: '1238 Maryland Avenue Southwest, Washington, DC, USA', - placeId: 'ChIJb3QAk3W3t4kRutCtFhHp3Ps', - }, - { - label: '1234 Massachusetts Avenue Northwest', - subheading: 'Washington, DC, USA', - value: '1234 Massachusetts Avenue Northwest, Washington, DC, USA', - placeId: 'ChIJa_U96pS3t4kRDkcIEZ7AOAY', - }, - { - label: '1235 W Street Northeast', - subheading: 'Washington, DC, USA', - value: '1235 W Street Northeast, Washington, DC, USA', - placeId: 'ChIJf_V0Hwu4t4kRODyM6gzYgS0', - }, - { - label: '1234 19th Street Northwest', - subheading: 'Washington, DC, USA', - value: '1234 19th Street Northwest, Washington, DC, USA', - placeId: 'ChIJKyDtC7i3t4kRkWca2kUeRuY', - }, - ], -} satisfies ApiOutput['geo']['autocomplete'] - -export const getFullAddress = (placeId: string): ApiOutput['geo']['geoByPlaceId'] => { - const data = { - ChIJb3QAk3W3t4kRutCtFhHp3Ps: { - result: { - geometry: { - location: { - lat: 38.8840413, - lng: -77.0291325, - }, - viewport: { - northeast: { - lat: 38.8854635302915, - lng: -77.0278169197085, - }, - southwest: { - lat: 38.8827655697085, - lng: -77.0305148802915, - }, - }, - }, - streetNumber: '1238', - streetName: 'Maryland Avenue Southwest', - street2: undefined, - city: 'Washington', - govDist: 'DC', - postCode: '20024', - country: 'US', - }, - status: 'OK', - }, - ChIJcYM1qya3t4kRc74WPRj7sYI: { - result: { - geometry: { - location: { - lat: 38.8615918, - lng: -77.05074499999999, - }, - viewport: { - northeast: { - lat: 38.8630417302915, - lng: -77.04943286970848, - }, - southwest: { - lat: 38.8603437697085, - lng: -77.0521308302915, - }, - }, - }, - streetNumber: '1235', - streetName: 'South Clark Street', - street2: undefined, - city: 'Arlington', - govDist: 'VA', - postCode: '22202', - country: 'US', - }, - status: 'OK', - }, - ChIJa_U96pS3t4kRDkcIEZ7AOAY: { - result: { - geometry: { - location: { - lat: 38.9041649, - lng: -77.0293694, - }, - bounds: { - northeast: { - lat: 38.9045259, - lng: -77.0289873, - }, - southwest: { - lat: 38.9038505, - lng: -77.02946349999999, - }, - }, - viewport: { - northeast: { - lat: 38.9055371802915, - lng: -77.02787641970849, - }, - southwest: { - lat: 38.9028392197085, - lng: -77.0305743802915, - }, - }, - }, - streetNumber: '1234', - streetName: 'Massachusetts Avenue Northwest', - street2: undefined, - city: 'Washington', - govDist: 'DC', - postCode: '20005', - country: 'US', - }, - status: 'OK', - }, - ChIJf_V0Hwu4t4kRODyM6gzYgS0: { - result: { - geometry: { - location: { - lat: 38.918697, - lng: -76.9888859, - }, - bounds: { - northeast: { - lat: 38.919051, - lng: -76.9885501, - }, - southwest: { - lat: 38.9184487, - lng: -76.9891359, - }, - }, - viewport: { - northeast: { - lat: 38.9200988302915, - lng: -76.98755561970849, - }, - southwest: { - lat: 38.9174008697085, - lng: -76.99025358029151, - }, - }, - }, - streetNumber: '1235', - streetName: 'W Street Northeast', - street2: undefined, - city: 'Washington', - govDist: 'DC', - postCode: '20018', - country: 'US', - }, - status: 'OK', - }, - ChIJKyDtC7i3t4kRkWca2kUeRuY: { - result: { - geometry: { - location: { - lat: 38.9068626, - lng: -77.0437183, - }, - bounds: { - northeast: { - lat: 38.9069787, - lng: -77.0436337, - }, - southwest: { - lat: 38.9067718, - lng: -77.0438921, - }, - }, - viewport: { - northeast: { - lat: 38.9082242302915, - lng: -77.04231956970848, - }, - southwest: { - lat: 38.9055262697085, - lng: -77.0450175302915, - }, - }, - }, - streetNumber: '1234', - streetName: '19th Street Northwest', - street2: undefined, - city: 'Washington', - govDist: 'DC', - postCode: '20036', - country: 'US', - }, - status: 'OK', - }, - } as const - return Object.keys(data).includes(placeId) - ? data[placeId as keyof typeof data] - : data.ChIJKyDtC7i3t4kRkWca2kUeRuY +const getFullAddress = async ( + placeId: ApiInput['geo']['geoByPlaceId'] +): Promise => { + const { default: data } = await import('./json/geo.getFullAddress.json') + return ( + Object.keys(data).includes(placeId) + ? data[placeId as keyof typeof data] + : data.ChIJKyDtC7i3t4kRkWca2kUeRuY + ) as ApiOutput['geo']['geoByPlaceId'] } -export const geoMocks = { - autocomplete: getTRPCMock({ +export const geo = { + autocompleteFullAddress: getTRPCMock({ path: ['geo', 'autocomplete'], type: 'query', - response: geoAutocompleteFullAddress, + response: async (): Promise => { + const { default: data } = await import('./json/geo.autocompleteFullAddress.json') + return data as ApiOutput['geo']['autocomplete'] + }, }), geocodeFullAddress: getTRPCMock({ path: ['geo', 'geoByPlaceId'], type: 'query', response: getFullAddress, }), + placeIdCityState: getTRPCMock({ + path: ['geo', 'geoByPlaceId'], + response: async (): Promise => { + const { default: data } = await import('./json/geo.placeIdCityState.json') + return data as ApiOutput['geo']['geoByPlaceId'] + }, + }), + autocompleteCityState: getTRPCMock({ + path: ['geo', 'autocomplete'], + type: 'query', + response: async () => { + const { default: data } = await import('./json/geo.autocompleteCityState.json') + return data as ApiOutput['geo']['autocomplete'] + }, + }), + autocompleteSearchBox: getTRPCMock({ + path: ['geo', 'autocomplete'], + type: 'query', + response: async (input) => { + const { default: data } = await import('./json/geo.autocompleteSearchBox.json') + + const searchRegex = new RegExp(`.*${input.search}.*`, 'i') + const results = data + .filter(({ searchValue }) => searchRegex.test(searchValue)) + .map(({ searchValue, ...data }) => ({ ...data })) + + if (!results.length) return { results, status: 'ZERO_RESULTS' } + + return { results, status: 'OK' } + }, + }), + geocodeSearchBox: getTRPCMock({ + path: ['geo', 'geoByPlaceId'], + response: async (input) => { + const { default: data } = await import('./json/geo.geocodeSearchBox.json') + + const results = data + .filter(({ placeId }) => placeId === input) + .map(({ geometry, ...data }) => ({ geometry, ...data })) + const result = results[0] as ApiOutput['geo']['geoByPlaceId']['result'] + + return { result, status: 'OK' } + }, + }), } diff --git a/packages/ui/mockData/json/attribute.getFilterOptions.json b/packages/ui/mockData/json/attribute.getFilterOptions.json new file mode 100644 index 0000000000..8918e093d8 --- /dev/null +++ b/packages/ui/mockData/json/attribute.getFilterOptions.json @@ -0,0 +1 @@ +[{"id":"cle6jfyrj000mag9kg9wr8v77","tsKey":"additional-at-capacity","tsNs":"attribute","filterType":"EXCLUDE"},{"id":"cle6jfyre000lag9ka9u94wxv","tsKey":"additional-has-confidentiality-policy","tsNs":"attribute","filterType":"INCLUDE"},{"id":"cle6jfyyf0026ag9k4hype5ej","tsKey":"eligibility-req-medical-insurance","tsNs":"attribute","filterType":"EXCLUDE"},{"id":"cle6jfyyj0027ag9k5czmb5hz","tsKey":"eligibility-req-photo-id","tsNs":"attribute","filterType":"EXCLUDE"},{"id":"cle6jfyym0028ag9kfghl10n9","tsKey":"eligibility-req-proof-of-age","tsNs":"attribute","filterType":"EXCLUDE"},{"id":"cle6jfyyq0029ag9khciv7xsl","tsKey":"eligibility-req-proof-of-income","tsNs":"attribute","filterType":"EXCLUDE"},{"id":"cle6jfyyu002aag9k2a37d4vv","tsKey":"eligibility-req-proof-of-residence","tsNs":"attribute","filterType":"EXCLUDE"},{"id":"cle6jfyyx002bag9kf8h49ly0","tsKey":"eligibility-req-referral","tsNs":"attribute","filterType":"EXCLUDE"}] \ No newline at end of file diff --git a/packages/ui/mockData/json/geo.autocompleteCityState.json b/packages/ui/mockData/json/geo.autocompleteCityState.json new file mode 100644 index 0000000000..4d030acaf5 --- /dev/null +++ b/packages/ui/mockData/json/geo.autocompleteCityState.json @@ -0,0 +1 @@ +{"results":[{"label":"New York","subheading":"NY, USA","value":"New York, NY, USA","placeId":"ChIJOwg_06VPwokRYv534QaPC8g"},{"label":"Washington D.C.","subheading":"DC, USA","value":"Washington D.C., DC, USA","placeId":"ChIJW-T2Wt7Gt4kRKl2I1CJFUsI"},{"label":"Boston","subheading":"MA, USA","value":"Boston, MA, USA","placeId":"ChIJGzE9DS1l44kRoOhiASS_fHg"},{"label":"Atlanta","subheading":"GA, USA","value":"Atlanta, GA, USA","placeId":"ChIJjQmTaV0E9YgRC2MLmS_e_mY"}],"status":"OK"} \ No newline at end of file diff --git a/packages/ui/mockData/json/geo.autocompleteFullAddress.json b/packages/ui/mockData/json/geo.autocompleteFullAddress.json new file mode 100644 index 0000000000..dd546b9065 --- /dev/null +++ b/packages/ui/mockData/json/geo.autocompleteFullAddress.json @@ -0,0 +1 @@ +{"status":"OK","results":[{"label":"1235 South Clark Street","subheading":"Arlington, VA, USA","value":"1235 South Clark Street, Arlington, VA, USA","placeId":"ChIJcYM1qya3t4kRc74WPRj7sYI"},{"label":"1238 Maryland Avenue Southwest","subheading":"Washington, DC, USA","value":"1238 Maryland Avenue Southwest, Washington, DC, USA","placeId":"ChIJb3QAk3W3t4kRutCtFhHp3Ps"},{"label":"1234 Massachusetts Avenue Northwest","subheading":"Washington, DC, USA","value":"1234 Massachusetts Avenue Northwest, Washington, DC, USA","placeId":"ChIJa_U96pS3t4kRDkcIEZ7AOAY"},{"label":"1235 W Street Northeast","subheading":"Washington, DC, USA","value":"1235 W Street Northeast, Washington, DC, USA","placeId":"ChIJf_V0Hwu4t4kRODyM6gzYgS0"},{"label":"1234 19th Street Northwest","subheading":"Washington, DC, USA","value":"1234 19th Street Northwest, Washington, DC, USA","placeId":"ChIJKyDtC7i3t4kRkWca2kUeRuY"}]} \ No newline at end of file diff --git a/packages/ui/mockData/json/geo.autocompleteSearchBox.json b/packages/ui/mockData/json/geo.autocompleteSearchBox.json new file mode 100644 index 0000000000..a79f25b9b0 --- /dev/null +++ b/packages/ui/mockData/json/geo.autocompleteSearchBox.json @@ -0,0 +1 @@ +[{"placeId":"v9c7vv128hlvo0m2p6i2x1v6426i","label":"New York","subheading":"Queens, NY, US","value":"New York, Queens, NY, US","searchValue":"New York, Queens, NY, US"},{"placeId":"h9e8yw432nhro1c4o6y9s1b3636v","label":"Los Angeles","subheading":"Los Angeles, CA, US","value":"Los Angeles, Los Angeles, CA, US","searchValue":"Los Angeles, Los Angeles, CA, US"},{"placeId":"h7b8gt028yqer4p8i2u4l8q1523x","label":"Chicago","subheading":"Cook, IL, US","value":"Chicago, Cook, IL, US","searchValue":"Chicago, Cook, IL, US"},{"placeId":"f8l6iv834xhqg3a1l1u1o8g8627z","label":"Miami","subheading":"Miami-Dade, FL, US","value":"Miami, Miami-Dade, FL, US","searchValue":"Miami, Miami-Dade, FL, US"},{"placeId":"a6z8nj171pbjb1i1h4z0l9n6755m","label":"Dallas","subheading":"Dallas, TX, US","value":"Dallas, Dallas, TX, US","searchValue":"Dallas, Dallas, TX, US"},{"placeId":"z5a2ps335usgt1o7m8x1w7o3437t","label":"Houston","subheading":"Harris, TX, US","value":"Houston, Harris, TX, US","searchValue":"Houston, Harris, TX, US"},{"placeId":"v5k1nh657hijm8u4j1h8y1x8161h","label":"Philadelphia","subheading":"Philadelphia, PA, US","value":"Philadelphia, Philadelphia, PA, US","searchValue":"Philadelphia, Philadelphia, PA, US"},{"placeId":"j4w6yn512jkqq2r5d3e4y1x3401l","label":"Atlanta","subheading":"Fulton, GA, US","value":"Atlanta, Fulton, GA, US","searchValue":"Atlanta, Fulton, GA, US"},{"placeId":"p9z8bo212bcfy0a4c3g2r8m1348p","label":"Washington","subheading":"District of Columbia, DC, US","value":"Washington, District of Columbia, DC, US","searchValue":"Washington, District of Columbia, DC, US"},{"placeId":"x8w2pl911vkec1p7n7u9d2w8791r","label":"Boston","subheading":"Suffolk, MA, US","value":"Boston, Suffolk, MA, US","searchValue":"Boston, Suffolk, MA, US"},{"placeId":"e7f1od477hora2l8g2a8g7m4283a","label":"Phoenix","subheading":"Maricopa, AZ, US","value":"Phoenix, Maricopa, AZ, US","searchValue":"Phoenix, Maricopa, AZ, US"},{"placeId":"g1q9vi249jrec3x6e9o8w4k4431e","label":"Detroit","subheading":"Wayne, MI, US","value":"Detroit, Wayne, MI, US","searchValue":"Detroit, Wayne, MI, US"},{"placeId":"o7y3wu258pdht1n6x4j0g4a4197w","label":"Seattle","subheading":"King, WA, US","value":"Seattle, King, WA, US","searchValue":"Seattle, King, WA, US"},{"placeId":"m6p4oi095ucwx5l9y3d1b1c7603v","label":"San Francisco","subheading":"San Francisco, CA, US","value":"San Francisco, San Francisco, CA, US","searchValue":"San Francisco, San Francisco, CA, US"},{"placeId":"k5m6ra593sdqg1w7p3e1d9z7756b","label":"San Diego","subheading":"San Diego, CA, US","value":"San Diego, San Diego, CA, US","searchValue":"San Diego, San Diego, CA, US"},{"placeId":"d5g3tn102yqpd0z3h1q3i7s5164r","label":"Minneapolis","subheading":"Hennepin, MN, US","value":"Minneapolis, Hennepin, MN, US","searchValue":"Minneapolis, Hennepin, MN, US"},{"placeId":"m2k9ry579igfc5f8w3i0e5i3346d","label":"Brooklyn","subheading":"Kings, NY, US","value":"Brooklyn, Kings, NY, US","searchValue":"Brooklyn, Kings, NY, US"},{"placeId":"g4e6wh692jwgf2z3f3r6k1l1184w","label":"Tampa","subheading":"Hillsborough, FL, US","value":"Tampa, Hillsborough, FL, US","searchValue":"Tampa, Hillsborough, FL, US"},{"placeId":"g6p5hz725pqxh9d9x7w6h4z0733x","label":"Denver","subheading":"Denver, CO, US","value":"Denver, Denver, CO, US","searchValue":"Denver, Denver, CO, US"},{"placeId":"p7n4pt581bydd6t6j9g4c7b4336c","label":"Queens","subheading":"Queens, NY, US","value":"Queens, Queens, NY, US","searchValue":"Queens, Queens, NY, US"},{"placeId":"o1t5pn583kpeb8e2v2w9i4q4119t","label":"Baltimore","subheading":"Baltimore, MD, US","value":"Baltimore, Baltimore, MD, US","searchValue":"Baltimore, Baltimore, MD, US"},{"placeId":"t7e7ok334xgsh8q3h4q4l2m5824d","label":"Las Vegas","subheading":"Clark, NV, US","value":"Las Vegas, Clark, NV, US","searchValue":"Las Vegas, Clark, NV, US"},{"placeId":"y3o8mb567rnjt9v9u3t6e7k6124e","label":"St. Louis","subheading":"St. Louis, MO, US","value":"St. Louis, St. Louis, MO, US","searchValue":"St. Louis, St. Louis, MO, US"},{"placeId":"b1q5dh343fgqr2w2m5z7r0d3673b","label":"Portland","subheading":"Multnomah, OR, US","value":"Portland, Multnomah, OR, US","searchValue":"Portland, Multnomah, OR, US"},{"placeId":"r4u6wq218lrbz6i4p8v2q1p4971k","label":"Riverside","subheading":"Riverside, CA, US","value":"Riverside, Riverside, CA, US","searchValue":"Riverside, Riverside, CA, US"}] \ No newline at end of file diff --git a/packages/ui/mockData/json/geo.geocodeSearchBox.json b/packages/ui/mockData/json/geo.geocodeSearchBox.json new file mode 100644 index 0000000000..c9afa5d270 --- /dev/null +++ b/packages/ui/mockData/json/geo.geocodeSearchBox.json @@ -0,0 +1 @@ +[{"geometry":{"bounds":{"northeast":{"lat":8.4018,"lng":-126.6084},"southwest":{"lat":-81.9646,"lng":124.493}},"location":{"lat":-89.9994,"lng":6.0222},"viewport":{"northeast":{"lat":-20.6148,"lng":-2.1118},"southwest":{"lat":-67.1275,"lng":-87.9182}}},"placeId":"v9c7vv128hlvo0m2p6i2x1v6426i","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-72.7388,"lng":103.9609},"southwest":{"lat":83.7282,"lng":-129.311}},"location":{"lat":21.8233,"lng":138.2632},"viewport":{"northeast":{"lat":60.0396,"lng":49.7454},"southwest":{"lat":-77.9764,"lng":162.8978}}},"placeId":"h9e8yw432nhro1c4o6y9s1b3636v","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":57.0643,"lng":41.4927},"southwest":{"lat":-23.0505,"lng":-39.3423}},"location":{"lat":81.7907,"lng":-122.3625},"viewport":{"northeast":{"lat":-33.6723,"lng":-93.1541},"southwest":{"lat":44.1207,"lng":-138.9166}}},"placeId":"h7b8gt028yqer4p8i2u4l8q1523x","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-52.1005,"lng":-62.4799},"southwest":{"lat":63.8332,"lng":-149.3469}},"location":{"lat":39.8434,"lng":129.6737},"viewport":{"northeast":{"lat":-6.3549,"lng":-129.7557},"southwest":{"lat":79.8459,"lng":-76.0193}}},"placeId":"f8l6iv834xhqg3a1l1u1o8g8627z","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":74.1964,"lng":118.1967},"southwest":{"lat":54.1087,"lng":-87.3531}},"location":{"lat":-50.5558,"lng":23.7797},"viewport":{"northeast":{"lat":-75.3262,"lng":-154.521},"southwest":{"lat":-24.2494,"lng":-22.386}}},"placeId":"a6z8nj171pbjb1i1h4z0l9n6755m","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":49.7323,"lng":155.707},"southwest":{"lat":0.0818,"lng":-72.163}},"location":{"lat":76.8073,"lng":50.0803},"viewport":{"northeast":{"lat":69.6185,"lng":151.8833},"southwest":{"lat":50.9962,"lng":142.4655}}},"placeId":"z5a2ps335usgt1o7m8x1w7o3437t","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":39.6009,"lng":24.54},"southwest":{"lat":-35.5656,"lng":176.7186}},"location":{"lat":69.4473,"lng":-23.6272},"viewport":{"northeast":{"lat":82.6381,"lng":111.7868},"southwest":{"lat":-49.6481,"lng":9.699}}},"placeId":"v5k1nh657hijm8u4j1h8y1x8161h","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":30.0911,"lng":-10.2653},"southwest":{"lat":-29.2937,"lng":170.8376}},"location":{"lat":-51.2407,"lng":76.5857},"viewport":{"northeast":{"lat":-32.249,"lng":38.4164},"southwest":{"lat":-2.2099,"lng":-150.6011}}},"placeId":"j4w6yn512jkqq2r5d3e4y1x3401l","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":7.3736,"lng":-160.7492},"southwest":{"lat":-85.8909,"lng":8.0029}},"location":{"lat":68.9126,"lng":-90.3229},"viewport":{"northeast":{"lat":-43.2683,"lng":43.0401},"southwest":{"lat":-52.19,"lng":170.7363}}},"placeId":"p9z8bo212bcfy0a4c3g2r8m1348p","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":17.6943,"lng":-63.1688},"southwest":{"lat":-82.3691,"lng":-84.8036}},"location":{"lat":-5.4545,"lng":14.1494},"viewport":{"northeast":{"lat":-66.5169,"lng":58.9635},"southwest":{"lat":-28.5722,"lng":-9.6433}}},"placeId":"x8w2pl911vkec1p7n7u9d2w8791r","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":35.1223,"lng":10.7898},"southwest":{"lat":-64.1741,"lng":-139.3439}},"location":{"lat":-2.1364,"lng":-120.2015},"viewport":{"northeast":{"lat":-28.8087,"lng":-97.3556},"southwest":{"lat":-2.9705,"lng":-171.4283}}},"placeId":"e7f1od477hora2l8g2a8g7m4283a","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-55.0895,"lng":-78.9101},"southwest":{"lat":-32.5621,"lng":35.739}},"location":{"lat":15.4678,"lng":-168.9005},"viewport":{"northeast":{"lat":78.0048,"lng":-55.537},"southwest":{"lat":-71.0732,"lng":46.3503}}},"placeId":"g1q9vi249jrec3x6e9o8w4k4431e","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-22.2146,"lng":-78.4273},"southwest":{"lat":40.2328,"lng":-87.0038}},"location":{"lat":-61.233,"lng":-135.7392},"viewport":{"northeast":{"lat":70.309,"lng":-38.5593},"southwest":{"lat":1.7198,"lng":150.9999}}},"placeId":"o7y3wu258pdht1n6x4j0g4a4197w","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":46.1084,"lng":-47.4029},"southwest":{"lat":-19.7036,"lng":-76.4696}},"location":{"lat":-22.0351,"lng":-84.814},"viewport":{"northeast":{"lat":-80.6043,"lng":-42.4252},"southwest":{"lat":40.3638,"lng":-147.4568}}},"placeId":"m6p4oi095ucwx5l9y3d1b1c7603v","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":0.4157,"lng":79.0507},"southwest":{"lat":18.67,"lng":-160.4461}},"location":{"lat":62.9685,"lng":-115.1122},"viewport":{"northeast":{"lat":-71.0917,"lng":131.7315},"southwest":{"lat":-20.3189,"lng":33.8835}}},"placeId":"k5m6ra593sdqg1w7p3e1d9z7756b","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":20.584,"lng":86.4564},"southwest":{"lat":40.6807,"lng":-111.0425}},"location":{"lat":57.3995,"lng":31.3868},"viewport":{"northeast":{"lat":-77.1209,"lng":83.8166},"southwest":{"lat":6.5259,"lng":7.4366}}},"placeId":"d5g3tn102yqpd0z3h1q3i7s5164r","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-6.1004,"lng":146.4781},"southwest":{"lat":5.1133,"lng":-10.7965}},"location":{"lat":-64.3959,"lng":-147.4064},"viewport":{"northeast":{"lat":-59.1541,"lng":-74.4482},"southwest":{"lat":-50.1385,"lng":-41.4244}}},"placeId":"m2k9ry579igfc5f8w3i0e5i3346d","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-65.8361,"lng":-153.1264},"southwest":{"lat":15.4261,"lng":-111.295}},"location":{"lat":56.4647,"lng":-113.4506},"viewport":{"northeast":{"lat":13.7961,"lng":-117.8208},"southwest":{"lat":-47.776,"lng":-168.1263}}},"placeId":"g4e6wh692jwgf2z3f3r6k1l1184w","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-68.7204,"lng":-0.6626},"southwest":{"lat":-75.6279,"lng":-17.9185}},"location":{"lat":-60.6576,"lng":-27.9354},"viewport":{"northeast":{"lat":-72.915,"lng":-160.2898},"southwest":{"lat":-38.3733,"lng":-141.4312}}},"placeId":"g6p5hz725pqxh9d9x7w6h4z0733x","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-13.4385,"lng":-102.1023},"southwest":{"lat":70.4651,"lng":-127.6315}},"location":{"lat":-50.4536,"lng":177.5505},"viewport":{"northeast":{"lat":6.6371,"lng":119.593},"southwest":{"lat":59.667,"lng":34.351}}},"placeId":"p7n4pt581bydd6t6j9g4c7b4336c","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":25.6738,"lng":-77.2356},"southwest":{"lat":-4.6663,"lng":130.8507}},"location":{"lat":-83.6131,"lng":-44.9859},"viewport":{"northeast":{"lat":54.8933,"lng":-118.6904},"southwest":{"lat":-36.72,"lng":112.011}}},"placeId":"o1t5pn583kpeb8e2v2w9i4q4119t","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":13.581,"lng":109.9596},"southwest":{"lat":-51.1,"lng":92.082}},"location":{"lat":30.9855,"lng":-24.0543},"viewport":{"northeast":{"lat":32.754,"lng":1.9596},"southwest":{"lat":34.4076,"lng":-128.4677}}},"placeId":"t7e7ok334xgsh8q3h4q4l2m5824d","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-17.2851,"lng":-110.0698},"southwest":{"lat":26.9638,"lng":-47.1316}},"location":{"lat":10.328,"lng":-69.055},"viewport":{"northeast":{"lat":4.4691,"lng":135.6165},"southwest":{"lat":72.4854,"lng":-125.8083}}},"placeId":"y3o8mb567rnjt9v9u3t6e7k6124e","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":-56.45,"lng":88.2345},"southwest":{"lat":48.3636,"lng":-24.6145}},"location":{"lat":66.0678,"lng":12.5426},"viewport":{"northeast":{"lat":-74.7186,"lng":-67.787},"southwest":{"lat":83.9225,"lng":-86.8238}}},"placeId":"b1q5dh343fgqr2w2m5z7r0d3673b","city":"","govDist":"","country":""},{"geometry":{"bounds":{"northeast":{"lat":87.8036,"lng":-164.8523},"southwest":{"lat":-74.42,"lng":-74.5699}},"location":{"lat":-1.4329,"lng":-123.3681},"viewport":{"northeast":{"lat":-41.3206,"lng":89.0329},"southwest":{"lat":-1.1006,"lng":-114.4768}}},"placeId":"r4u6wq218lrbz6i4p8v2q1p4971k","city":"","govDist":"","country":""}] \ No newline at end of file diff --git a/packages/ui/mockData/json/geo.getFullAddress.json b/packages/ui/mockData/json/geo.getFullAddress.json new file mode 100644 index 0000000000..a3575ca6f9 --- /dev/null +++ b/packages/ui/mockData/json/geo.getFullAddress.json @@ -0,0 +1 @@ +{"ChIJKyDtC7i3t4kRkWca2kUeRuY":{"result":{"city":"Washington","country":"US","geometry":{"bounds":{"northeast":{"lat":38.9069787,"lng":-77.0436337},"southwest":{"lat":38.9067718,"lng":-77.0438921}},"location":{"lat":38.9068626,"lng":-77.0437183},"viewport":{"northeast":{"lat":38.9082242302915,"lng":-77.04231956970848},"southwest":{"lat":38.9055262697085,"lng":-77.0450175302915}}},"govDist":"DC","postCode":"20036","streetName":"19th Street Northwest","streetNumber":"1234"},"status":"OK"},"ChIJa_U96pS3t4kRDkcIEZ7AOAY":{"result":{"city":"Washington","country":"US","geometry":{"bounds":{"northeast":{"lat":38.9045259,"lng":-77.0289873},"southwest":{"lat":38.9038505,"lng":-77.02946349999999}},"location":{"lat":38.9041649,"lng":-77.0293694},"viewport":{"northeast":{"lat":38.9055371802915,"lng":-77.02787641970849},"southwest":{"lat":38.9028392197085,"lng":-77.0305743802915}}},"govDist":"DC","postCode":"20005","streetName":"Massachusetts Avenue Northwest","streetNumber":"1234"},"status":"OK"},"ChIJb3QAk3W3t4kRutCtFhHp3Ps":{"result":{"city":"Washington","country":"US","geometry":{"location":{"lat":38.8840413,"lng":-77.0291325},"viewport":{"northeast":{"lat":38.8854635302915,"lng":-77.0278169197085},"southwest":{"lat":38.8827655697085,"lng":-77.0305148802915}}},"govDist":"DC","postCode":"20024","streetName":"Maryland Avenue Southwest","streetNumber":"1238"},"status":"OK"},"ChIJcYM1qya3t4kRc74WPRj7sYI":{"result":{"city":"Arlington","country":"US","geometry":{"location":{"lat":38.8615918,"lng":-77.05074499999999},"viewport":{"northeast":{"lat":38.8630417302915,"lng":-77.04943286970848},"southwest":{"lat":38.8603437697085,"lng":-77.0521308302915}}},"govDist":"VA","postCode":"22202","streetName":"South Clark Street","streetNumber":"1235"},"status":"OK"},"ChIJf_V0Hwu4t4kRODyM6gzYgS0":{"result":{"city":"Washington","country":"US","geometry":{"bounds":{"northeast":{"lat":38.919051,"lng":-76.9885501},"southwest":{"lat":38.9184487,"lng":-76.9891359}},"location":{"lat":38.918697,"lng":-76.9888859},"viewport":{"northeast":{"lat":38.9200988302915,"lng":-76.98755561970849},"southwest":{"lat":38.9174008697085,"lng":-76.99025358029151}}},"govDist":"DC","postCode":"20018","streetName":"W Street Northeast","streetNumber":"1235"},"status":"OK"}} \ No newline at end of file diff --git a/packages/ui/mockData/json/geo.placeIdCityState.json b/packages/ui/mockData/json/geo.placeIdCityState.json new file mode 100644 index 0000000000..8146fcbaae --- /dev/null +++ b/packages/ui/mockData/json/geo.placeIdCityState.json @@ -0,0 +1 @@ +{"result":{"city":"New York","country":"US","geometry":{"location":{"lat":0,"lng":0},"viewport":{"northeast":{"lat":0,"lng":0},"southwest":{"lat":0,"lng":0}}},"govDist":"NY"},"status":"OK"} \ No newline at end of file diff --git a/packages/ui/mockData/json/location.forGoogleMaps.json b/packages/ui/mockData/json/location.forGoogleMaps.json new file mode 100644 index 0000000000..342ecba0aa --- /dev/null +++ b/packages/ui/mockData/json/location.forGoogleMaps.json @@ -0,0 +1 @@ +{"locations":[{"id":"oloc_01GVH3VEVBERFNA9PHHJYEBGA3","name":"Whitman-Walker 1525","latitude":38.91,"longitude":-77.032}],"bounds":null,"center":{"lat":38.91,"lng":-77.032},"zoom":13} \ No newline at end of file diff --git a/packages/ui/mockData/json/location.forLocationCard.json b/packages/ui/mockData/json/location.forLocationCard.json new file mode 100644 index 0000000000..de10234432 --- /dev/null +++ b/packages/ui/mockData/json/location.forLocationCard.json @@ -0,0 +1 @@ +{"id":"oloc_01GVH3VEVBERFNA9PHHJYEBGA3","name":"Whitman-Walker 1525","street1":"1525 14th St. NW","street2":null,"city":"Washington","postCode":"20005","latitude":38.91,"longitude":-77.032,"country":"US","govDist":{"abbrev":"DC","tsKey":"us-district-of-columbia","tsNs":"gov-dist"},"phones":[],"attributes":[],"services":["medical.CATEGORYNAME","mental-health.CATEGORYNAME"]} \ No newline at end of file diff --git a/packages/ui/mockData/json/location.forVisitCard.json b/packages/ui/mockData/json/location.forVisitCard.json new file mode 100644 index 0000000000..3d72539471 --- /dev/null +++ b/packages/ui/mockData/json/location.forVisitCard.json @@ -0,0 +1 @@ +{"id":"oloc_01GVH3VEVBERFNA9PHHJYEBGA3","name":"Whitman-Walker 1525","street1":"1525 14th St. NW","street2":null,"city":"Washington","postCode":"20005","country":{"cca2":"US"},"govDist":{"abbrev":"DC","tsKey":"us-district-of-columbia","tsNs":"gov-dist"},"latitude":38.91,"longitude":-77.032} \ No newline at end of file diff --git a/packages/ui/mockData/json/location.getAddress.json b/packages/ui/mockData/json/location.getAddress.json new file mode 100644 index 0000000000..74676a3fd3 --- /dev/null +++ b/packages/ui/mockData/json/location.getAddress.json @@ -0,0 +1 @@ +{"id":"oloc_01GVH3VEVBERFNA9PHHJYEBGA3","data":{"name":"Whitman-Walker 1525","street1":"1525 14th St. NW","street2":"","city":"Washington","postCode":"20005","govDistId":"gdst_01GW2HJ5A278S2G84AB3N9FCW0","countryId":"ctry_01GW2HHDK9M26M80SG63T21SVH","latitude":38.91,"longitude":-77.032,"mailOnly":false,"published":true,"accessible":{},"services":["osvc_01GVH3VEVSNF9NH79R7HC9FHY6","osvc_01GVH3VEW2ND36DB0XWAH1PQY0","osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z","osvc_01GVH3VEWHDC6F5FCQHB0H5GD6","osvc_01GVH3VEWK33YAKZMQ2W3GT4QK"]}} \ No newline at end of file diff --git a/packages/ui/mockData/json/location.getNames.json b/packages/ui/mockData/json/location.getNames.json new file mode 100644 index 0000000000..3b23ea9446 --- /dev/null +++ b/packages/ui/mockData/json/location.getNames.json @@ -0,0 +1 @@ +[{"id":"oloc_01GVH3VEVBERFNA9PHHJYEBGA3","name":"Whitman-Walker 1525"},{"id":"oloc_01GVH3VEVBRCFA2AHNTWCXQA2B","name":"Max Robinson Center"},{"id":"oloc_01GVH3VEVBSA85T6VR2C38BJPT","name":"Whitman-Walker (LIZ)"}] \ No newline at end of file diff --git a/packages/ui/mockData/json/orgEmail.forContactInfo.json b/packages/ui/mockData/json/orgEmail.forContactInfo.json new file mode 100644 index 0000000000..b776c6ae6e --- /dev/null +++ b/packages/ui/mockData/json/orgEmail.forContactInfo.json @@ -0,0 +1 @@ +[{"id":"oeml_01GVH3VEVDZK28VPR8ETDTVX2V","email":"appointments@whitman-walker.org","primary":true,"locationOnly":false,"serviceOnly":false,"title":null,"description":{"key":"whitman-walker-health.oeml_01GVH3VEVDZK28VPR8ETDTVX2V.description","defaultText":"Schedule An Appointment"}},{"id":"oeml_01GVH3VEVDX7QVQ4QA4C1XXVN3","email":"contact-legal@whitman-walker.org","primary":false,"locationOnly":false,"serviceOnly":false,"title":null,"description":{"key":"whitman-walker-health.oeml_01GVH3VEVDX7QVQ4QA4C1XXVN3.description","defaultText":"Legal Services Program"}},{"id":"oeml_01GVH3VEVD5Q45WH8V1KK13EZ8","email":"Transhealth@whitman-walker.org","primary":false,"locationOnly":false,"serviceOnly":false,"title":null,"description":{"key":"whitman-walker-health.oeml_01GVH3VEVD5Q45WH8V1KK13EZ8.description","defaultText":"Gender Affirming Services"}},{"id":"oeml_01GVH3VEVD2HF0GFPPTHJA9AJT","email":"youthmentalhealth@whitman-walker.org","primary":false,"locationOnly":false,"serviceOnly":false,"title":null,"description":{"key":"whitman-walker-health.oeml_01GVH3VEVD2HF0GFPPTHJA9AJT.description","defaultText":"Youth Mental Health Services"}}] \ No newline at end of file diff --git a/packages/ui/mockData/json/orgEmail.get.json b/packages/ui/mockData/json/orgEmail.get.json new file mode 100644 index 0000000000..423f195b16 --- /dev/null +++ b/packages/ui/mockData/json/orgEmail.get.json @@ -0,0 +1 @@ +[{"id":"oeml_01GVH3VEVDX7QVQ4QA4C1XXVN3","firstName":null,"lastName":null,"primary":false,"email":"contact-legal@whitman-walker.org","published":true,"deleted":false,"description":"Legal Services Program","locations":[],"organization":[{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"}],"title":null,"services":[{"id":"osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC","serviceName":"Get legal help with immigration services"},{"id":"osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG","serviceName":"Get legal help for transgender people to replace and update name/gender marker on immigration documents"}]},{"id":"oeml_01GVH3VEVD5Q45WH8V1KK13EZ8","firstName":null,"lastName":null,"primary":false,"email":"Transhealth@whitman-walker.org","published":true,"deleted":false,"description":"Gender Affirming Services","locations":[],"organization":[{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"}],"title":null,"services":[{"id":"osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ","serviceName":"Receive gender affirming care and services"},{"id":"osvc_01GVH3VEWHDC6F5FCQHB0H5GD6","serviceName":"Get gender affirming hormone therapy"}]},{"id":"oeml_01GVH3VEVD2HF0GFPPTHJA9AJT","firstName":null,"lastName":null,"primary":false,"email":"youthmentalhealth@whitman-walker.org","published":true,"deleted":false,"description":"Youth Mental Health Services","locations":[],"organization":[{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"}],"title":null,"services":[{"id":"osvc_01GVH3VEVY24KAYTWY2ZSFZNBX","serviceName":"Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)"}]},{"id":"oeml_01GVH3VEVDZK28VPR8ETDTVX2V","firstName":null,"lastName":null,"primary":true,"email":"appointments@whitman-walker.org","published":true,"deleted":false,"description":"Schedule An Appointment","locations":[],"organization":[{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"}],"title":null,"services":[{"id":"osvc_01GVH3VEW2ND36DB0XWAH1PQY0","serviceName":"Get dental health services for HIV-positive individuals"}]}] \ No newline at end of file diff --git a/packages/ui/mockData/json/orgHours.forHoursDisplay.json b/packages/ui/mockData/json/orgHours.forHoursDisplay.json new file mode 100644 index 0000000000..8766cf2c47 --- /dev/null +++ b/packages/ui/mockData/json/orgHours.forHoursDisplay.json @@ -0,0 +1 @@ +{"0":[{"id":"ohrs_01GW2HT8CQFZHK6TD586TJ7BJH","dayIndex":0,"interval":"2023-12-24T00:00:00.000-05:00/2023-12-24T23:59:00.000-05:00","closed":true,"tz":"America/New_York"}],"1":[{"id":"ohrs_01GW2HT8CP5HHCF2XBF9EGAJ6B","dayIndex":1,"interval":"2023-12-25T08:00:00.000-05:00/2023-12-25T12:00:00.000-05:00","closed":false,"tz":"America/New_York"},{"id":"ohrs_01GW2HT8CQHH5YKE1GTM2P4EWD","dayIndex":1,"interval":"2023-12-25T13:00:00.000-05:00/2023-12-25T16:00:00.000-05:00","closed":false,"tz":"America/New_York"}],"2":[{"id":"ohrs_01GW2HT8CPVWH1JYX1MW1PM4PG","dayIndex":2,"interval":"2023-12-26T08:00:00.000-05:00/2023-12-26T10:00:00.000-05:00","closed":false,"tz":"America/New_York"},{"id":"ohrs_01GW2HT8CQA1K5BHKRF2BR90SY","dayIndex":2,"interval":"2023-12-26T10:30:00.000-05:00/2023-12-26T13:00:00.000-05:00","closed":false,"tz":"America/New_York"},{"id":"ohrs_01GW2HT8CRZK6Y2P4DHCR6ZJHM","dayIndex":2,"interval":"2023-12-26T13:30:00.000-05:00/2023-12-26T17:00:00.000-05:00","closed":false,"tz":"America/New_York"}],"3":[{"id":"ohrs_01GW2HT8CQDXMWWDW1FK7W8TV7","dayIndex":3,"interval":"2023-12-27T08:00:00.000-05:00/2023-12-27T17:00:00.000-05:00","closed":false,"tz":"America/New_York"}],"4":[{"id":"ohrs_01GW2HT8CQGR2M2BNBRWE94PS5","dayIndex":4,"interval":"2023-12-28T08:00:00.000-05:00/2023-12-28T17:00:00.000-05:00","closed":false,"tz":"America/New_York"}],"5":[{"id":"ohrs_01GW2HT8CQFZHK6TD586TJ1MFH","dayIndex":5,"interval":"2023-12-29T08:00:00.000-05:00/2023-12-29T17:00:00.000-05:00","closed":false,"tz":"America/New_York"}],"6":[{"id":"ohrs_01GW2HT8CQFZHK6TD586TJ1VER","dayIndex":6,"interval":"2023-12-30T00:00:00.000-05:00/2023-12-30T23:59:00.000-05:00","closed":false,"tz":"America/New_York"}]} \ No newline at end of file diff --git a/packages/ui/mockData/json/orgHours.forHoursDrawer.json b/packages/ui/mockData/json/orgHours.forHoursDrawer.json new file mode 100644 index 0000000000..c4ca3f2939 --- /dev/null +++ b/packages/ui/mockData/json/orgHours.forHoursDrawer.json @@ -0,0 +1 @@ +[{"id":"ohrs_01GW2HT8CP5HHCF2XBF9EGAJ6B","dayIndex":1,"interval":"2023-12-25T08:00:00.000-05:00/2023-12-25T12:00:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":false},{"id":"ohrs_01GW2HT8CQHH5YKE1GTM2P4EWD","dayIndex":1,"interval":"2023-12-25T13:00:00.000-05:00/2023-12-25T16:00:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":false},{"id":"ohrs_01GW2HT8CPVWH1JYX1MW1PM4PG","dayIndex":2,"interval":"2023-12-26T08:00:00.000-05:00/2023-12-26T10:00:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":false},{"id":"ohrs_01GW2HT8CQA1K5BHKRF2BR90SY","dayIndex":2,"interval":"2023-12-26T10:30:00.000-05:00/2023-12-26T13:00:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":false},{"id":"ohrs_01GW2HT8CRZK6Y2P4DHCR6ZJHM","dayIndex":2,"interval":"2023-12-26T13:30:00.000-05:00/2023-12-26T17:00:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":false},{"id":"ohrs_01GW2HT8CQDXMWWDW1FK7W8TV7","dayIndex":3,"interval":"2023-12-27T08:00:00.000-05:00/2023-12-27T17:00:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":false},{"id":"ohrs_01GW2HT8CQGR2M2BNBRWE94PS5","dayIndex":4,"interval":"2023-12-28T08:00:00.000-05:00/2023-12-28T17:00:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":false},{"id":"ohrs_01GW2HT8CQFZHK6TD586TJ1MFH","dayIndex":5,"interval":"2023-12-29T08:00:00.000-05:00/2023-12-29T17:00:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":false},{"id":"ohrs_01GW2HT8CQFZHK6TD586TJ1VER","dayIndex":6,"interval":"2023-12-30T00:00:00.000-05:00/2023-12-30T23:59:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":true},{"id":"ohrs_01GW2HT8CQFZHK6TD586TJ7BJH","dayIndex":0,"interval":"2023-12-24T00:00:00.000-05:00/2023-12-24T23:59:00.000-05:00","closed":false,"tz":"America/New_York","open24hours":true}] \ No newline at end of file diff --git a/packages/ui/mockData/json/orgPhone.forContactInfo.json b/packages/ui/mockData/json/orgPhone.forContactInfo.json new file mode 100644 index 0000000000..1d298f05a9 --- /dev/null +++ b/packages/ui/mockData/json/orgPhone.forContactInfo.json @@ -0,0 +1 @@ +[{"id":"ophn_01GVH3VEVCFKT3NWQ79STYVDKR","number":"2027457000","ext":null,"primary":true,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCFKT3NWQ79STYVDKR.description","defaultText":"Medical Care/ Appointments"}},{"id":"ophn_01GVH3VEVCYYQQS9NGH5Z1GYJ4","number":"2027456175","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCYYQQS9NGH5Z1GYJ4.description","defaultText":"GMHW Sexual Health Clinic"}},{"id":"ophn_01GVH3VEVCE8GNAJ7NJ9FYKME5","number":"2029397630","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCE8GNAJ7NJ9FYKME5.description","defaultText":"Legal Services Program"}},{"id":"ophn_01GVH3VEVCQW5N7R8YEV06D3AZ","number":"2027974457","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCQW5N7R8YEV06D3AZ.description","defaultText":"Gender Affirming Services"}},{"id":"ophn_01GVH3VEVC36PW0Z9GDV0ZERV1","number":"2027974439","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVC36PW0Z9GDV0ZERV1.description","defaultText":"HIV/STI Testing or Sexual Health Appointment"}},{"id":"ophn_01GVH3VEVCV5Y3PEXRQ0SDK41K","number":"2022072360","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCV5Y3PEXRQ0SDK41K.description","defaultText":"Youth Care"}},{"id":"ophn_01GVH3VEVCSADS12PEYP2GF2Y3","number":"2029397623","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCSADS12PEYP2GF2Y3.description","defaultText":"Behavioral Health (Therapy & Psychiatry)"}},{"id":"ophn_01GVH3VEVCDEFMAGG3SAJVWJFQ","number":"2025439355","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCDEFMAGG3SAJVWJFQ.description","defaultText":"Max Robinson Center HIV/STI & Pregnancy Testing"}},{"id":"ophn_01GVH3VEVCBFHYF56W5EZ5M2QS","number":"2027974437","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCBFHYF56W5EZ5M2QS.description","defaultText":"New with HIV"}},{"id":"ophn_01GVH3VEVCKB84BV4X0MSAKE2M","number":"2029397690","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVCKB84BV4X0MSAKE2M.description","defaultText":"PrEP Clinic"}},{"id":"ophn_01GVH3VEVDSJTN1379Y17FNP28","number":"2022072480","ext":null,"primary":false,"locationOnly":false,"country":"US","phoneType":null,"description":{"key":"whitman-walker-health.ophn_01GVH3VEVDSJTN1379Y17FNP28.description","defaultText":"COVID-19 Vaccine Appointments"}}] \ No newline at end of file diff --git a/packages/ui/mockData/json/orgPhone.get.json b/packages/ui/mockData/json/orgPhone.get.json new file mode 100644 index 0000000000..ec03991276 --- /dev/null +++ b/packages/ui/mockData/json/orgPhone.get.json @@ -0,0 +1 @@ +[{"id":"ophn_01GVH3VEVCQW5N7R8YEV06D3AZ","number":"2027974457","ext":null,"deleted":false,"primary":false,"published":true,"country":{"id":"ctry_01GW2HHDK9M26M80SG63T21SVH","cca2":"US"},"description":"Gender Affirming Services","locations":[],"organization":{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"},"phoneType":null,"services":[{"id":"osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ","serviceName":"Receive gender affirming care and services"},{"id":"osvc_01GVH3VEWHDC6F5FCQHB0H5GD6","serviceName":"Get gender affirming hormone therapy"}]},{"id":"ophn_01GVH3VEVCFKT3NWQ79STYVDKR","number":"2027457000","ext":null,"deleted":false,"primary":true,"published":true,"country":{"id":"ctry_01GW2HHDK9M26M80SG63T21SVH","cca2":"US"},"description":"Medical Care/ Appointments","locations":[],"organization":{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"},"phoneType":null,"services":[{"id":"osvc_01GVH3VEVPF1KEKBTRVTV70WGV","serviceName":"Get rapid HIV testing"},{"id":"osvc_01GVH3VEVSNF9NH79R7HC9FHY6","serviceName":"Get HIV care for newly diagnosed patients"},{"id":"osvc_01GVH3VEW2ND36DB0XWAH1PQY0","serviceName":"Get dental health services for HIV-positive individuals"}]},{"id":"ophn_01GVH3VEVC36PW0Z9GDV0ZERV1","number":"2027974439","ext":null,"deleted":false,"primary":false,"published":true,"country":{"id":"ctry_01GW2HHDK9M26M80SG63T21SVH","cca2":"US"},"description":"HIV/STI Testing or Sexual Health Appointment","locations":[],"organization":{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"},"phoneType":null,"services":[]},{"id":"ophn_01GVH3VEVCV5Y3PEXRQ0SDK41K","number":"2022072360","ext":null,"deleted":false,"primary":false,"published":true,"country":{"id":"ctry_01GW2HHDK9M26M80SG63T21SVH","cca2":"US"},"description":"Youth Care","locations":[],"organization":{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"},"phoneType":null,"services":[]},{"id":"ophn_01GVH3VEVCBFHYF56W5EZ5M2QS","number":"2027974437","ext":null,"deleted":false,"primary":false,"published":false,"country":{"id":"ctry_01GW2HHDK9M26M80SG63T21SVH","cca2":"US"},"description":"New with HIV","locations":[],"organization":{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"},"phoneType":null,"services":[]},{"id":"ophn_01GVH3VEVDSJTN1379Y17FNP28","number":"2022072480","ext":null,"deleted":true,"primary":false,"published":false,"country":{"id":"ctry_01GW2HHDK9M26M80SG63T21SVH","cca2":"US"},"description":"COVID-19 Vaccine Appointments","locations":[],"organization":{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health","slug":"whitman-walker-health"},"phoneType":null,"services":[{"id":"osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55","serviceName":"Get the COVID-19 vaccine"}]}] \ No newline at end of file diff --git a/packages/ui/mockData/json/orgPhoto.getByParent.json b/packages/ui/mockData/json/orgPhoto.getByParent.json new file mode 100644 index 0000000000..d650137359 --- /dev/null +++ b/packages/ui/mockData/json/orgPhoto.getByParent.json @@ -0,0 +1 @@ +[{"id":"opto_01GW2HTA78QEM7QQCHQHQDHZ7D","src":"https://fastly.4sqi.net/img/general/300x300/842405_vs0swjE8OEtAkzWyR5w0aveLmOb8yLTm423NIQNUGtw.jpg","height":192,"width":192},{"id":"opto_01GW2HTA78R7G11YQDK51HJZD4","src":"https://fastly.4sqi.net/img/general/300x300/72996168_ohYvz_SNrumUOIQ39NBrBSBQsb9mH0F8wFp_YCEj2B0.jpg","height":192,"width":192},{"id":"opto_01GW2HTA780XY9A36SQF089S0T","src":"https://fastly.4sqi.net/img/general/300x300/16156_DrGSoE806kcnmWou8BKqeSdzyg4bCkk5VTDw2ETbc0Y.jpg","height":192,"width":192},{"id":"opto_01GW2HTA783T3W7DQKSB7BBSV5","src":"https://fastly.4sqi.net/img/general/300x300/842405_KYR_c3I84HvC3XWPOLeYIouBCpSpWMjrDqgc9ODrrKg.jpg","height":192,"width":192},{"id":"opto_01GW2HTA78QW9DAT94JGCFPTHW","src":"https://fastly.4sqi.net/img/general/300x300/8588378_1UqeD58opqKIqI02HIyVYExC3rs8fxr1cfITOSFel2A.jpg","height":289,"width":289},{"id":"opto_01GW2HTA786G8HX5J5ZX6FFMG5","src":"https://fastly.4sqi.net/img/general/300x300/63477693_nyM4Nwf1oKvlhNQ2ae3QUnTBRgScBIfrAuGBhQueXxE.jpg","height":192,"width":192},{"id":"opto_01GW2HTA78Q2HWH4YZDCHEZZVQ","src":"https://fastly.4sqi.net/img/general/300x300/34968821_FIfZPBDcdR6xrh0lzro0ch3rJffjP092IqX_jX-AsU4.jpg","height":192,"width":192}] \ No newline at end of file diff --git a/packages/ui/mockData/json/orgSocialMedia.forContactInfo.json b/packages/ui/mockData/json/orgSocialMedia.forContactInfo.json new file mode 100644 index 0000000000..ac03d2382c --- /dev/null +++ b/packages/ui/mockData/json/orgSocialMedia.forContactInfo.json @@ -0,0 +1 @@ +[{"id":"osmd_01GVH3VEVDBV523DYH978RVD4P","url":"https://www.linkedin.com/company/whitman-walker/","username":"whitman-walker","orgLocationOnly":false,"service":"LinkedIn"},{"id":"osmd_01GVH3VEVDATZJAAVXWA7D357F","url":"https://www.facebook.com/whitmanwalker","username":"whitmanwalker","orgLocationOnly":false,"service":"Facebook"},{"id":"osmd_01GVH3VEVD6ZPA8SNC42X0RTM7","url":"https://www.instagram.com/whitmanwalker/","username":"whitmanwalker","orgLocationOnly":false,"service":"Instagram"},{"id":"osmd_01GVH3VEVDH90J5JDXYB5GRRWK","url":"https://www.youtube.com/@whitmanwalker/featured","username":"","orgLocationOnly":false,"service":"YouTube"},{"id":"osmd_01GVH3VEVD93QH872SAPRYYCS2","url":"https://twitter.com/whitmanwalker","username":"whitmanwalker","orgLocationOnly":false,"service":"Twitter"}] \ No newline at end of file diff --git a/packages/ui/mockData/json/orgWebsite.forContactInfo.json b/packages/ui/mockData/json/orgWebsite.forContactInfo.json new file mode 100644 index 0000000000..c80c3bf3ba --- /dev/null +++ b/packages/ui/mockData/json/orgWebsite.forContactInfo.json @@ -0,0 +1 @@ +[{"id":"oweb_01GW2HT9ETW73ZW159JW0BSKN6","url":"https://www.whitman-walker.org","isPrimary":false,"orgLocationOnly":false,"description":null}] \ No newline at end of file diff --git a/packages/ui/mockData/json/organization.getIntlCrisis.json b/packages/ui/mockData/json/organization.getIntlCrisis.json new file mode 100644 index 0000000000..105899399d --- /dev/null +++ b/packages/ui/mockData/json/organization.getIntlCrisis.json @@ -0,0 +1 @@ +[{"id":"orgn_01H64P2CHAE2CFWD7EF5HWAEAZ","name":"Rainbow Railroad","description":{"key":"orgn_01H64P2CHAE2CFWD7EF5HWAEAZ.description","text":"Rainbow Railroad is a Canadian-based nonprofit helping LGBT people escape to safer countries. While they have worked with LGBT people from other countries before, Rainbow Railroad's priority is people in countries with state-sponsored violence against the LGBT community."},"targetPop":{"tag":"other-describe","text":"People in countries with state-sponsored violence against the LGBT community.","tsKey":"orgn_01H64P2CHAE2CFWD7EF5HWAEAZ.attribute.atts_01H64PK2TKMRTVGAPV3HYZ1017"},"services":[{"tsKey":"international-support.resettlement-assistance","tsNs":"services"}],"accessInstructions":[{"tag":"accesslink","access_type":"link","access_value":"https://www.rainbowrailroad.org/request-help"}]},{"id":"orgn_01H64R1VP03AYSEA6GBNA9PDBZ","name":"Trevor Project's TrevorSpace","description":{"key":"orgn_01H64R1VP03AYSEA6GBNA9PDBZ.description","text":"The Trevor Project's TrevorSpace is an affirming international community for LGBTQ young people ages 13-24. No matter where you live, you can access www.TrevorSpace.org, a safe and secure social networking site for LGBTQ young people and their allies. The Trevor Project makes sure that the only people allowed on the site are ages 13 to 24, and no hate-speech, discrimination, or bullying of any kind are allowed."},"targetPop":{"tag":"other-describe","text":"LGBTQ young people ages 13 to 24.","tsKey":"orgn_01H64R1VP03AYSEA6GBNA9PDBZ.attribute.atts_01H64R1VP03S77QQ7DVK8SV8GZ"},"services":[{"tsKey":"international-support.mental-health","tsNs":"services"}],"accessInstructions":[{"tag":"accesslink","access_type":"link","access_value":"https://www.trevorspace.org"}]},{"id":"orgn_01H64R9AJBT38SDZXP2MYRR5TW","name":"Ahwaa","description":{"key":"orgn_01H64R9AJBT38SDZXP2MYRR5TW.description","text":"Ahwaa is an open space to discuss LGBTQ issues in the Middle East. Discussion topics include:sexuality, identity, society, religion, family, relationships and culture. Ahwaa is now the largest LGBTQ community site in the Arab world."},"targetPop":{"tag":"other-describe","text":"Arab LGBTQ community.","tsKey":"orgn_01H64R9AJBT38SDZXP2MYRR5TW.attribute.atts_01H64R9AJBDFGWH3RC17Q9604N"},"services":[{"tsKey":"international-support.mental-health","tsNs":"services"}],"accessInstructions":[{"tag":"accesslink","access_type":"link","access_value":"https://www.ahwaa.org"}]},{"id":"orgn_01H64RC712WNQ97VZMG5DKWX60","name":"International Railroad for Queer Refugees (IRQR)","description":{"key":"orgn_01H64RC712WNQ97VZMG5DKWX60.description","text":"International Railroad for Queer Refugees (IRQR)'s mission is to relieve poverty for LGBT refugees living in Turkey by providing the basic necessities of life; and to relieve poverty by sponsoring, providing financial and resettlement assistance to LGBT refugees in Turkey who have fled because of persecution for their sexual orientation or gender identity."},"targetPop":{"tag":"other-describe","text":"LGBT refugees living in Turkey until they are resettled in a safe country.","tsKey":"orgn_01H64RC712WNQ97VZMG5DKWX60.attribute.atts_01H64RC712SZGKJQHVAQ55SXVK"},"services":[{"tsKey":"international-support.resettlement-assistance","tsNs":"services"},{"tsKey":"international-support.financial-assistance","tsNs":"services"}],"accessInstructions":[{"tag":"accesslink","access_type":"link","access_value":"https://www.irqr.net"},{"tag":"accessemail","access_type":"email","access_value":"info@irq.ca"},{"tag":"accessphone","access_type":"phone","access_value":"4169857456"}]},{"id":"orgn_01H64RHG49SQC6QWBA1CGJ2QTZ","name":"Trans Asylias","description":{"key":"orgn_01H64RHG49SQC6QWBA1CGJ2QTZ.description","text":"Trans Asylias is a non-profit organization created in 2021 with the purpose to help transgender and non-binary asylum seekers escape from their home countries where they face persecution and resettle in safer countries."},"targetPop":{"tag":"other-describe","text":"Transgender and non-binary asylum seekers.","tsKey":"orgn_01H64RHG49SQC6QWBA1CGJ2QTZ.attribute.atts_01H64RHG49FXZZ1GG84S124C56"},"services":[{"tsKey":"international-support.resettlement-assistance","tsNs":"services"}],"accessInstructions":[{"tag":"accesslink","access_type":"link","access_value":"https://www.transasylias.org"}]}] \ No newline at end of file diff --git a/packages/ui/mockData/json/organization.getNatlCrisis.json b/packages/ui/mockData/json/organization.getNatlCrisis.json new file mode 100644 index 0000000000..ade07f80af --- /dev/null +++ b/packages/ui/mockData/json/organization.getNatlCrisis.json @@ -0,0 +1 @@ +[{"id":"orgn_01H29CX1TRDGZZ73ETGHRN910M","name":"988 Suicide and Crisis Lifeline","description":{"text":"If you're thinking about suicide, are worried about a friend or loved one, or would like emotional support, the Lifeline network is available 24/7 across the United States.","key":"orgn_01H29CX1TRDGZZ73ETGHRN910M.osvc_01H6PKD58K02BF1H6F1THZN3PZ.description"},"community":{"icon":"🏳️‍🌈","tsKey":"crisis-support-community.general-lgbtq"},"accessInstructions":[{"tag":"accessphone","access_type":"phone","access_value":"988","key":"orgn_01H29CX1TRDGZZ73ETGHRN910M.attribute.atts_01H6PKZ9ZRRBVNN3E76NAQ2F0F","text":"hotline for english speakers (24/7)"},{"tag":"accesssms","access_type":"sms","access_value":"988","key":"orgn_01H29CX1TRDGZZ73ETGHRN910M.attribute.atts_01H6PKZ9ZSCZZFK8DH7T2774BS","text":"sms for english speakers (24/7)"},{"tag":"accessphone","access_type":"phone","access_value":"8886289454","key":"orgn_01H29CX1TRDGZZ73ETGHRN910M.attribute.atts_01H6PKZ9ZS4K3AD435F367CHJP","text":"hotline spanish speakers (en español) (24/7)"}]},{"id":"orgn_01GVH3V4BHVEYSTF9AY2RYCMP5","name":"Trans Lifeline","description":{"text":"Trans Lifeline's Hotline is a peer support phone service run by trans people for trans and questioning people. Call them if you need someone trans to talk to, even if you're not in crisis or if you're not sure you're trans.","key":"orgn_01GVH3V4BHVEYSTF9AY2RYCMP5.osvc_01H6PKD58M5HT9MEANJKKR304Q.description"},"community":{"icon":"🏳️‍⚧️","tsKey":"srvfocus.trans-comm"},"accessInstructions":[{"tag":"accessphone","access_type":"phone","access_value":"8775658860","key":"orgn_01GVH3V4BHVEYSTF9AY2RYCMP5.attribute.atts_01H6PNCHJCWE8PHEJPZHP2VBXM","text":"hotline (24/7)"}]},{"id":"orgn_01H6PQ07W414JAWCEN619FQ77W","name":"Kids Help Phone","description":{"text":"Kids Help Phone is Canada's only 24/7 e-mental health service offering free, confidential support to young people in English and French. Kids Help Phone is here for 2SLGBTQ+ youth from coast to coast to coast 365 days a year.","key":"orgn_01H6PQ07W414JAWCEN619FQ77W.osvc_01H6PQ75E8THP2ZK08RHHB6X02.description"},"community":{"icon":"🌱","tsKey":"srvfocus.lgbtq-youth-focus"},"accessInstructions":[{"tag":"accesssms","access_type":"sms","sms_body":"CONNECT","access_value":"686868","key":"orgn_01H6PQ07W414JAWCEN619FQ77W.attribute.atts_01H6PQ7YC72VJ3HRS6NVMF9NQE","text":"sms in canada (24/7)"}]},{"id":"orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ","name":"The Trevor Project","description":{"text":"The Trevor Project provides information and support to LGBTQ+ youth 24/7, every day of the year, throughout Mexico. Services are 100% free and confidential. Contact the Trevor Project's trained crisis counselors in Mexico 24/7 via the information below.","key":"orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ.osvc_01H6PQGS55V1ERST7E0KJB98Q3.description"},"community":{"icon":"🌱","tsKey":"srvfocus.lgbtq-youth-focus"},"accessInstructions":[{"tag":"accesslink","access_type":"link","access_value":"https://thetrevorproject.mx/Ayuda","key":"orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ.attribute.atts_01H6PQPFNXWXPDCEA8NDNF81B7","text":"online chat (24/7)"},{"tag":"accesssms","access_type":"sms","sms_body":"Comenzar","access_value":"67676","key":"orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ.attribute.atts_01H6PQRQ184NRH6N7TZSDX91GV","text":"sms in mexico (24/7)"},{"tag":"accesswhatsapp","access_type":"whatsapp","access_value":"+5592253337","key":"orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ.attribute.atts_01H6PQHNWS0AH8AD8FD33ZWHX5","text":"whatsapp in mexico (24/7)"}]}] \ No newline at end of file diff --git a/packages/ui/mockData/json/organization.searchDistance.json b/packages/ui/mockData/json/organization.searchDistance.json new file mode 100644 index 0000000000..94d2448f08 --- /dev/null +++ b/packages/ui/mockData/json/organization.searchDistance.json @@ -0,0 +1 @@ +{"orgs":[{"id":"orgn_01GVH3V4MT8QBB7JSP7HSYAZ7Y","name":"Arlington Food Assistance Center","slug":"arlington-food-assistance-center","description":{"key":"orgn_01GVH3V4MT8QBB7JSP7HSYAZ7Y.description","ns":"org-data","text":"Since 1988, the Arlington Food Assistance Center remains dedicated to its simple but critical mission of obtaining and distributing groceries, directly and free of charge, to people living in Arlington, VA, who cannot afford to purchase enough food to meet their basic needs. AFAC is committed to maintaining a safe, supportive, and respectful space for all members of the community regardless of race, religion, immigration status, age, sexual orientation, ethnicity, first language, gender, or disability."},"serviceCategories":[{"id":"svct_01GW2HHEVFXW9YFMK4R95ZHBPV","tsKey":"food.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[],"locations":["Arlington"],"distance":1.46,"unit":"mi","national":[]},{"id":"orgn_01GVH3V9EKZ9ZZMW9E5S51SB2B","name":"Hogar Immigrant Services","slug":"hogar-immigrant-services","description":{"key":"orgn_01GVH3V9EKZ9ZZMW9E5S51SB2B.description","ns":"org-data","text":"Hogar Immigrant Services is a program of Catholic Charities Diocese of Arlington which seeks to fulfill the Catholic Church's mission to \"welcome the stranger\"by providing high-quality, low-cost immigration legal services to individuals, regardless of their race, religion, nationality, sexuality, country of origin, or ability to pay."},"serviceCategories":[{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","icon":"️‍️‍🌎","iconBg":null,"_count":{"parents":0}}],"locations":["Alexandria"],"distance":3.22,"unit":"mi","national":[]},{"id":"orgn_01GVH3VABSTMFWTM40J8XTYEPX","name":"Legal Aid Justice Center","slug":"legal-aid-justice-center","description":{"key":"orgn_01GVH3VABSTMFWTM40J8XTYEPX.description","ns":"org-data","text":"Legal Aid Justice Center's Access to Justice Partnership provides legal services to low-income clients in areas such as consumer protection, education, elder law, immigration, employment, and housing disputes."},"serviceCategories":[{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","icon":"️‍️‍🌎","iconBg":null,"_count":{"parents":0}}],"locations":["Falls Church","Richmond","Charlottesville","Petersburg"],"distance":3.82,"unit":"mi","national":[]},{"id":"orgn_01GVH3V61FAZQGQ1ZDGBXVD79V","name":"African Communities Together","slug":"african-communities-together","description":{"key":"orgn_01GVH3V61FAZQGQ1ZDGBXVD79V.description","ns":"org-data","text":"African Communities Together is an organization of African immigrants fighting for civil rights, opportunity, and a better life for their families here in the U.S. and worldwide. They connect African immigrants to critical services, help Africans develop as leaders, and organize communities around the issues that matter. ACT helps African immigrants find free or low-cost assistance with immigration, jobs, and other needs. Through the Monthly Membership Meetings, Leadership Committees, and training, ACT gives African immigrants the tools and information they need to become leaders on the issues that matter to them. ACT mobilizes African immigrant communities to speak out on the issues that affect their lives and the lives of their families."},"serviceCategories":[{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVPFRQR07PTHMWJDDKS","tsKey":"translation-and-interpretation.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"}],"orgLeader":[{"category":{"tag":"organization-leadership"},"id":"attr_01GW2HHFVN3JX2J7REFFT5NAMS","tsKey":"orgleader.black-led","icon":"️‍️‍✊🏿","iconBg":"#C77E54","_count":{"parents":0}},{"category":{"tag":"organization-leadership"},"id":"attr_01GW2HHFVNHMF72WHVKRF6W4TA","tsKey":"orgleader.immigrant-led","icon":"️‍️‍🌎","iconBg":"#79ADD7","_count":{"parents":0}},{"category":{"tag":"organization-leadership"},"id":"attr_01GW2HHFVNPKMHYK12DDRVC1VJ","tsKey":"orgleader.bipoc-led","icon":"🤎","iconBg":"#F1DD7F","_count":{"parents":0}}],"orgFocus":[{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVN72D7XEBZZJXCJQXQ","tsKey":"srvfocus.bipoc-comm","icon":"️‍️‍✊🏿","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","icon":"️‍️‍🌎","iconBg":null,"_count":{"parents":0}}],"locations":["Arlington","Washington","New York"],"distance":4.42,"unit":"mi","national":[]},{"id":"orgn_01GVH3V8JWQQZ7W4VHTZJX8J3Q","name":"PathForward","slug":"pathforward","description":{"key":"orgn_01GVH3V8JWQQZ7W4VHTZJX8J3Q.description","ns":"org-data","text":"PathForward is a non-profit working to end homelessness in Arlington, Virginia. PathForward (formerly A-SPAN) transforms lives by delivering housing solutions and pathways to stability in Arlington County, VA."},"serviceCategories":[{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","tsKey":"medical.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","tsKey":"mental-health.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVGD7CE9VKYVSZYYTPS","tsKey":"hygiene-and-clothing.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVF8W7D67CH3NVSQYA6","tsKey":"housing.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVFXW9YFMK4R95ZHBPV","tsKey":"food.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[],"locations":["Arlington"],"distance":5.37,"unit":"mi","national":[]},{"id":"orgn_01GVH3V9HWXJMSE5R0F9QWV67J","name":"Community of Hope","slug":"community-of-hope","description":{"key":"orgn_01GVH3V9HWXJMSE5R0F9QWV67J.description","ns":"org-data","text":"Community of Hope's mission is to improve health and end family homelessness to make Washington, DC more equitable. Their goals include ending homelessness for families in Washington, DC and improving health and eliminating inequities in health outcomes in under-resources communities in Washington, DC. They embrace the diversity of their community, welcome all voices and perspectives, and treat everyone with respect, compassion, and integrity."},"serviceCategories":[{"id":"svct_01GW2HHEVF8W7D67CH3NVSQYA6","tsKey":"housing.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","tsKey":"medical.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[],"locations":["Washington"],"distance":6.36,"unit":"mi","national":[]},{"id":"orgn_01GVH3V4KBTWXQ61TRMT5H33TA","name":"CASA","slug":"casa","description":{"key":"orgn_01GVH3V4KBTWXQ61TRMT5H33TA.description","ns":"org-data","text":"Since 1985, CASA has worked to assist Central American refugees fleeing wars and civil strife at home. They do this by providing employment placement; workforce development and training; health education; citizenship and legal services; and financial, language, and literacy training to Latino and immigrant communities in Maryland, Pennsylvania, and Virginia. CASA has formalized its commitment to including LGBTQ+ brothers, sisters, and siblings, united in the fight for justice. Its staff-led LGBT+ Advisory Committee creates a welcoming and inclusive organization for staff and community members by providing support, guidance and creating safe and brave spaces for individuals across the spectrums of gender and sexuality."},"serviceCategories":[{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","tsKey":"medical.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVN72D7XEBZZJXCJQXQ","tsKey":"srvfocus.bipoc-comm","icon":"️‍️‍✊🏿","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","icon":"️‍️‍🌎","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVQ8AGBKBBZJWTHNP2F","tsKey":"srvfocus.spanish-speakers","icon":"🗣️","iconBg":null,"_count":{"parents":0}}],"locations":["Falls Church","Hyattsville","Silver Spring","Langley Park","Woodbridge","Rockville","Baltimore","York","Lancaster"],"distance":7.16,"unit":"mi","national":[]},{"id":"orgn_01GVH3V43QAKQH440MP6TWWD0X","name":"The George Washington University Immigration Clinic","slug":"the-george-washington-university-immigration-clinic","description":{"key":"orgn_01GVH3V43QAKQH440MP6TWWD0X.description","ns":"org-data","text":"The George Washington University Immigration Clinic represents clients from around the world on immigration law matters, including removal proceedings and petitions for affirmative asylum. The clinic accepts removal cases scheduled in the Arlington Immigration Court and affirmative asylum cases, as well as deportation or removal proceedings involving cancellation of removal, temporary protected status, or criminal issues."},"serviceCategories":[{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","icon":"️‍️‍🌎","iconBg":null,"_count":{"parents":0}}],"locations":["Washington"],"distance":7.21,"unit":"mi","national":[]},{"id":"orgn_01GVH3V43VTXXF9FET8M5J2GNA","name":"Ayuda","slug":"ayuda","description":{"key":"orgn_01GVH3V43VTXXF9FET8M5J2GNA.description","ns":"org-data","text":"Ayuda advocates for and defends the legal and human rights of low-income immigrants living in Washington, DC, Maryland, and Virginia. Ayuda provides legal, social, and language services to help low-income immigrants access justice and transform their lives. Ayuda’s expert and dedicated professionals help immigrants from anywhere in the world navigate the immigration and justice systems and access the social safety net. Their comprehensive and welcoming approach breaks down barriers, helps those in need, and makes the community stronger."},"serviceCategories":[{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","tsKey":"mental-health.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVPFRQR07PTHMWJDDKS","tsKey":"translation-and-interpretation.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","icon":"️‍️‍🌎","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVQ8AGBKBBZJWTHNP2F","tsKey":"srvfocus.spanish-speakers","icon":"🗣️","iconBg":null,"_count":{"parents":0}}],"locations":["Washington","Fairfax","Silver Spring"],"distance":7.44,"unit":"mi","national":[]},{"id":"orgn_01GVH3VAFY3EF3NZDMZDZJN0X1","name":"Just Neighbors","slug":"just-neighbors-n0x1","description":{"key":"orgn_01GVH3VAFY3EF3NZDMZDZJN0X1.description","ns":"org-data","text":"Just Neighbors is a nonprofit 501(c)(3) tax-exempt organization dedicated to serving and supporting the immigrant community of Washington, D.C., Maryland, and Virginia. They foster mutual understanding between immigrants and the larger community in which they live.\nLow-income immigrants and refugees often face many hurdles, everything from putting food on the table to understanding English. Just Neighbors knows that immigrants and refugees are striving to achieve their own version of the American Dream. That’s why Just Neighbors offers compassionate immigration legal services. During appointments, attorneys will offer trustworthy advice and assistance with individual immigration situation. Just Neighbors strives to be an inclusive, antiracist organization that fosters an environment where everyone belongs. Just Neighbors is Safe Zone trained. Safe Zone trainings are opportunities to learn about LGBTQ+ identities, gender and sexuality, and examine prejudice, assumptions, and privilege."},"serviceCategories":[{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"}],"orgLeader":[],"orgFocus":[{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","icon":"️‍️‍🌎","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVQ8AGBKBBZJWTHNP2F","tsKey":"srvfocus.spanish-speakers","icon":"🗣️","iconBg":null,"_count":{"parents":0}}],"locations":["Annandale","Rockville","Warrenton"],"distance":7.55,"unit":"mi","national":[]}],"resultCount":98} \ No newline at end of file diff --git a/packages/ui/mockData/json/organization.searchDistanceLongTitle.json b/packages/ui/mockData/json/organization.searchDistanceLongTitle.json new file mode 100644 index 0000000000..e425235f77 --- /dev/null +++ b/packages/ui/mockData/json/organization.searchDistanceLongTitle.json @@ -0,0 +1 @@ +{"orgs":[{"id":"orgn_01GVH3V408N0YS7CDYAH3F2BMH","name":"Whitman-Walker Health With Extra Long Title to Test Text Wrapping","slug":"whitman-walker-health","description":{"key":"whitman-walker-health.description","ns":"org-data","text":"Whitman-Walker Health's mission is to offer affirming community-based health and wellness services to all with a special expertise in LGBTQ and HIV care. They empower all persons to live healthy, love openly, and achieve equality and inclusion. Through multiple locations throughout DC, they provide stigma-free care to anyone who walks through our doors. They are proud and honored to be a place where the gay, lesbian, bisexual, transgender and queer communities, as well to those living with or affected by HIV feel supported, welcomed and respected. They strive to be a place where they see the person first; a healthcare home where you will be treated with the dignity, respect and love."},"serviceCategories":[{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","tsKey":"medical.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","tsKey":"mental-health.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3","tsKey":"community-support.CATEGORYNAME","tsNs":"services"}],"orgLeader":[{"tsKey":"orgleader.bipoc-led","icon":"🤎","iconBg":"#F1DD7F","id":"","category":{"tag":"organization-leadership"},"_count":{"parents":0}}],"orgFocus":[{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPSYBCYF37B44WP6CZ","tsKey":"srvfocus.trans-comm","icon":"🏳️‍⚧️","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","icon":"️‍️‍🌎","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVQ8AGBKBBZJWTHNP2F","tsKey":"srvfocus.spanish-speakers","icon":"🗣️","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVQCZPA3Z5GW6J3MQHW","tsKey":"srvfocus.lgbtq-youth-focus","icon":"🌱","iconBg":null,"_count":{"parents":0}},{"category":{"tag":"service-focus"},"id":"attr_01GW2HHFVRMQFJ9AMA633SQQGV","tsKey":"srvfocus.hiv-comm","icon":"💛","iconBg":null,"_count":{"parents":0}}],"locations":["Washington"],"distance":8.52,"unit":"mi","national":[]}],"resultCount":1} \ No newline at end of file diff --git a/packages/ui/mockData/json/organization.searchName.json b/packages/ui/mockData/json/organization.searchName.json new file mode 100644 index 0000000000..50af015776 --- /dev/null +++ b/packages/ui/mockData/json/organization.searchName.json @@ -0,0 +1 @@ +[{"value":"Lyon-Martin Health Services","label":"Lyon-Martin Health Services","id":"orgn_01GSKV7YTJ3R4PM8SSHBZ72HX1","slug":"lyon-martin-health-services"},{"value":"Larkin Street Youth Services","label":"Larkin Street Youth Services","id":"orgn_01GSKV7YV30W3B6EWEF4SJSX9S","slug":"larkin-street-youth-services"},{"value":"Mission Neighborhood Health Center","label":"Mission Neighborhood Health Center","id":"orgn_01GSKV7YVNTF1REYZGTAPA9HP8","slug":"mission-neighborhood-health-center"},{"value":"North East Medical Services","label":"North East Medical Services","id":"orgn_01GSKV7YW7XVRN9VZF9EPWWQVJ","slug":"north-east-medical-services"},{"value":"San Francisco Community Health Center","label":"San Francisco Community Health Center","id":"orgn_01GSKV7YWS9CEYHZF99HEXMT48","slug":"san-francisco-community-health-center"},{"value":"San Francisco City Clinic","label":"San Francisco City Clinic","id":"orgn_01GSKV7YXBSTXX9F9627HHRSMN","slug":"san-francisco-city-clinic"},{"value":"St. James Infirmary (SJI)","label":"St. James Infirmary (SJI)","id":"orgn_01GSKV7YXX9PW72HTYAD5DAPW4","slug":"st-james-infirmary-sji"},{"value":"Upwardly Global","label":"Upwardly Global","id":"orgn_01GSKV7YYF8FDW9PAEQM606T5J","slug":"upwardly-global"},{"value":"Episcopal Community Services","label":"Episcopal Community Services","id":"orgn_01GSKV7YZ12KK64KBGYJTNDY7Q","slug":"episcopal-community-services"},{"value":"Transgender Law Center (TLC)","label":"Transgender Law Center (TLC)","id":"orgn_01GSKV7YZK90DKC1JCJGTJFJQS","slug":"transgender-law-center-tlc"},{"value":"San Francisco City Impact","label":"San Francisco City Impact","id":"orgn_01GSKV7Z0425JENMBG75JSD22P","slug":"san-francisco-city-impact"},{"value":"The Trevor Project","label":"The Trevor Project","id":"orgn_01GSKV7Z18SGSYMEPJS59TNYGY","slug":"the-trevor-project"},{"value":"Billy DeFrank LGBTQ+ Community Center","label":"Billy DeFrank LGBTQ+ Community Center","id":"orgn_01GSKV7Z1VFW1VB6RB04P7MQ56","slug":"billy-defrank-lgbtq-community-center"},{"value":"United We Dream","label":"United We Dream","id":"orgn_01GSKV7Z2ZWQM265B04N0KP9JW","slug":"united-we-dream"},{"value":"Los Angeles Regional Food Bank","label":"Los Angeles Regional Food Bank","id":"orgn_01GSKV7Z3HE7SSMGDF7ZF949RB","slug":"los-angeles-regional-food-bank"},{"value":"Los Angeles LGBT Center","label":"Los Angeles LGBT Center","id":"orgn_01GSKV7Z40VJ549D2TX63K0D4R","slug":"los-angeles-lgbt-center"},{"value":"St. John's Well Child and Family Center","label":"St. John's Well Child and Family Center","id":"orgn_01GSKV7Z4KN9HDW04FYQRF30Q4","slug":"st-johns-well-child-and-family-center"},{"value":"Pro Bono Project","label":"Pro Bono Project","id":"orgn_01GSKV7Z545Y5NZCW5G2XJRR00","slug":"pro-bono-project"},{"value":"LGBTQ Center Long Beach","label":"LGBTQ Center Long Beach","id":"orgn_01GSKV7Z5PFVY0KERFKHYMZDP6","slug":"lgbtq-center-long-beach"},{"value":"Eastmont Community Center","label":"Eastmont Community Center","id":"orgn_01GSKV7Z6SJBT1TFD5QEZ7868Y","slug":"eastmont-community-center"},{"value":"Covenant Presbyterian Church","label":"Covenant Presbyterian Church","id":"orgn_01GSKV7Z7AJKHE0B2G7B5HYW90","slug":"covenant-presbyterian-church"},{"value":"Emeryville Citizens Assistance Program","label":"Emeryville Citizens Assistance Program","id":"orgn_01GSKV7Z7X422NREA7DXJ8G6WG","slug":"emeryville-citizens-assistance-program"},{"value":"Northwest Immigrant Rights Project (NWIRP)","label":"Northwest Immigrant Rights Project (NWIRP)","id":"orgn_01GSKV7Z8FX1ZYM86191S1CCD9","slug":"northwest-immigrant-rights-project-nwirp"},{"value":"Entre Hermanos","label":"Entre Hermanos","id":"orgn_01GSKV7Z9JDXB27TBFRDV5AGMZ","slug":"entre-hermanos"},{"value":"Law Office of Andre Olivie, PLLC","label":"Law Office of Andre Olivie, PLLC","id":"orgn_01GSKV7ZA5CXFNH7E1A828J4PA","slug":"law-office-of-andre-olivie-pllc"},{"value":"Jewish Vocational Service SoCal (JVS SoCal)","label":"Jewish Vocational Service SoCal (JVS SoCal)","id":"orgn_01GSKV7ZAQD87Q8D1CF5ET6XHG","slug":"jewish-vocational-service-socal-jvs-socal"},{"value":"PARS Equality Center","label":"PARS Equality Center","id":"orgn_01GSKV7ZB9K1SVYNS48YAA26QP","slug":"pars-equality-center"},{"value":"Haitian Women for Haitian Refugees","label":"Haitian Women for Haitian Refugees","id":"orgn_01GSKV7ZBVGFXCGM44HZDZBE6H","slug":"haitian-women-for-haitian-refugees"},{"value":"The Karsh Center","label":"The Karsh Center","id":"orgn_01GSKV7ZCBCNXV6RM0CJNK8S3R","slug":"the-karsh-center"},{"value":"Catholic Charities of Los Angeles, Inc.","label":"Catholic Charities of Los Angeles, Inc.","id":"orgn_01GSKV7ZCX8ABDKDQCJ0C7FYK2","slug":"catholic-charities-of-los-angeles-inc"},{"value":"Friends Community Center","label":"Friends Community Center","id":"orgn_01GSKV7ZDE2C896P8H853D9C7Z","slug":"friends-community-center"},{"value":"The Northwest Network of Survivors","label":"The Northwest Network of Survivors","id":"orgn_01GSKV7ZEHMQZW5VBK906C61DM","slug":"the-northwest-network-of-survivors"},{"value":"Neighborcare Health","label":"Neighborcare Health","id":"orgn_01GSKV7ZFNDEJ0PH6YRWTA2QF7","slug":"neighborcare-health"},{"value":"ROOTS","label":"ROOTS","id":"orgn_01GSKV7ZG74M6CMTK1B72X23KS","slug":"roots"},{"value":"Jewish Family Service of Seattle","label":"Jewish Family Service of Seattle","id":"orgn_01GSKV7ZGRFA5HCK6DG4J2Q9JD","slug":"jewish-family-service-of-seattle"},{"value":"Asian Counseling and Referral Service (ACRS)","label":"Asian Counseling and Referral Service (ACRS)","id":"orgn_01GSKV7ZHAXTMPN5H4V1YGB02R","slug":"asian-counseling-and-referral-service-acrs"},{"value":"Thai Community Development Center","label":"Thai Community Development Center","id":"orgn_01GSKV7ZHVFG0XDYY5X2MQMNXR","slug":"thai-community-development-center"},{"value":"Alameda County Sheriff's Office - Youth and Family Services Bureau (YFSB)","label":"Alameda County Sheriff's Office - Youth and Family Services Bureau (YFSB)","id":"orgn_01GSKV7ZJDJ75T1DSWC8832EEY","slug":"alameda-county-sheriffs-office-youth-and-family-services-bureau-yfsb"},{"value":"Consejo Counseling & Referral Service","label":"Consejo Counseling & Referral Service","id":"orgn_01GSKV7ZJYDGBKM6VGYMJ0QM06","slug":"consejo-counseling-and-referral-service"},{"value":"Three Dollar Bill Cinema","label":"Three Dollar Bill Cinema","id":"orgn_01GSKV7ZKG091YZ38BW1JV10F2","slug":"three-dollar-bill-cinema"},{"value":"Rainbow City Performing Arts (RCPA)","label":"Rainbow City Performing Arts (RCPA)","id":"orgn_01GSKV7ZM1GCYTB888VCPJZTJ9","slug":"rainbow-city-performing-arts-rcpa"},{"value":"OutVentures","label":"OutVentures","id":"orgn_01GSKV7ZN508X33W2571FXX85K","slug":"outventures"},{"value":"Lutheran Community Services Northwest - Refugees Northwest Program","label":"Lutheran Community Services Northwest - Refugees Northwest Program","id":"orgn_01GSKV7ZPA3CK1KB29XFHQ273N","slug":"lutheran-community-services-northwest-refugees-northwest-program"},{"value":"The Jewish Federation of Greater Seattle","label":"The Jewish Federation of Greater Seattle","id":"orgn_01GSKV7ZPW4NQ9T3ANJJSMBBG7","slug":"the-jewish-federation-of-greater-seattle"},{"value":"Philadelphia Human Rights Clinic","label":"Philadelphia Human Rights Clinic","id":"orgn_01GSKV7ZR7Y7EJ40JMZ0T6ZHJR","slug":"philadelphia-human-rights-clinic"},{"value":"William Way LGBT Community Center","label":"William Way LGBT Community Center","id":"orgn_01GSKV7ZRZ48X16MCV729SED80","slug":"william-way-lgbt-community-center"},{"value":"Nemours Pediatrics","label":"Nemours Pediatrics","id":"orgn_01GSKV7ZSQPWJ7CMM074BWDCCW","slug":"nemours-pediatrics"},{"value":"Reading Hospital Women’s Health Center","label":"Reading Hospital Women’s Health Center","id":"orgn_01GSKV7ZT9GGMHY4YVMNFRCN3Q","slug":"reading-hospital-womens-health-center"},{"value":"Equal Access Legal Services","label":"Equal Access Legal Services","id":"orgn_01GSKV7ZTTMQ4A4T1Z6A2H96DG","slug":"equal-access-legal-services"},{"value":"Philadelphia Voices of Pride","label":"Philadelphia Voices of Pride","id":"orgn_01GSKV7ZVXXXGP2069FX6M7A68","slug":"philadelphia-voices-of-pride"},{"value":"Peer Seattle","label":"Peer Seattle","id":"orgn_01GSKV7ZX10FX9J6VAYVA9KDQE","slug":"peer-seattle"},{"value":"Children's Hospital of Philadelphia - Refugee Health Program","label":"Children's Hospital of Philadelphia - Refugee Health Program","id":"orgn_01GSKV7ZXJEPEVWNN5M0EKRXCC","slug":"childrens-hospital-of-philadelphia-refugee-health-program"},{"value":"Seattle Frontrunners","label":"Seattle Frontrunners","id":"orgn_01GSKV7ZY4XZEYANVX1C7E8AYF","slug":"seattle-frontrunners"},{"value":"Whitman-Walker Health","label":"Whitman-Walker Health","id":"orgn_01GSKV7ZYP2GDSH8PNJY3TVTYK","slug":"whitman-walker-health"},{"value":"The DC Center for the LGBT Community","label":"The DC Center for the LGBT Community","id":"orgn_01GSKV7ZZ7GMGR4HA686J09K2F","slug":"the-dc-center-for-the-lgbt-community"},{"value":"The Attic Youth Center","label":"The Attic Youth Center","id":"orgn_01GSKV7ZZS5T2KXTK1YD385GGA","slug":"the-attic-youth-center"},{"value":"COMHAR","label":"COMHAR","id":"orgn_01GSKV800AGJTHZS6Q3S210SVR","slug":"comhar"},{"value":"Community Behavioral Health","label":"Community Behavioral Health","id":"orgn_01GSKV800WEBJP0026WFDC60ZP","slug":"community-behavioral-health"},{"value":"Congreso","label":"Congreso","id":"orgn_01GSKV801EWZNDJDZHXNJYX0TJ","slug":"congreso"},{"value":"AIDS Activities Coordinating Office","label":"AIDS Activities Coordinating Office","id":"orgn_01GSKV80202MD7PTD0TF764GQA","slug":"aids-activities-coordinating-office"},{"value":"Einstein Health - Community Practice Center","label":"Einstein Health - Community Practice Center","id":"orgn_01GSKV804WKY61R21581QM1S08","slug":"einstein-health-community-practice-center"},{"value":"Public Health Management Corporation - Health Connection","label":"Public Health Management Corporation - Health Connection","id":"orgn_01GSKV805EPXBQVVV0FAPCQSHS","slug":"public-health-management-corporation-health-connection"},{"value":"Public Health Management Corporation - Rising Sun","label":"Public Health Management Corporation - Rising Sun","id":"orgn_01GSKV80601Q24151QRZCQ4HVN","slug":"public-health-management-corporation-rising-sun"},{"value":"Lambert House","label":"Lambert House","id":"orgn_01GSKV806HHFJZRS3YZQQTMSY3","slug":"lambert-house"},{"value":"The Mazzoni Center","label":"The Mazzoni Center","id":"orgn_01GSKV8072RG8Q64KT6EX7WM00","slug":"the-mazzoni-center"},{"value":"Nationalities Services Center","label":"Nationalities Services Center","id":"orgn_01GSKV807MXP55HHZ9DR570S2W","slug":"nationalities-services-center"},{"value":"The COLOURS Organization","label":"The COLOURS Organization","id":"orgn_01GSKV8086PF12B1G5S5KMHMHZ","slug":"the-colours-organization"},{"value":"Women Organized Against Rape (WOAR)","label":"Women Organized Against Rape (WOAR)","id":"orgn_01GSKV808QQ0KSMMRT1900SB0J","slug":"women-organized-against-rape-woar"},{"value":"AccessMatters","label":"AccessMatters","id":"orgn_01GSKV80AYBHFPQR5HYQHN1Y6V","slug":"accessmatters"},{"value":"AIDS Law Project of Pennsylvania","label":"AIDS Law Project of Pennsylvania","id":"orgn_01GSKV80BF1DKN38AWM42N7CH2","slug":"aids-law-project-of-pennsylvania"},{"value":"African Cultural Alliance of North America, Inc.","label":"African Cultural Alliance of North America, Inc.","id":"orgn_01GSKV80CHXF7S80WWMFHVHH05","slug":"african-cultural-alliance-of-north-america-inc"},{"value":"Catholic Social Services of Philadelphia - Immigration Legal Services","label":"Catholic Social Services of Philadelphia - Immigration Legal Services","id":"orgn_01GSKV80D4G6VH7P46MZVE34QG","slug":"catholic-social-services-of-philadelphia-immigration-legal-services"},{"value":"El Centro de la Raza","label":"El Centro de la Raza","id":"orgn_01GSKV80E6VAN5Y1VQYQZK7FRK","slug":"el-centro-de-la-raza"},{"value":"Human Rights First","label":"Human Rights First","id":"orgn_01GSKV80EQB9J7JNV4AYESDR12","slug":"human-rights-first"},{"value":"The George Washington University Immigration Clinic","label":"The George Washington University Immigration Clinic","id":"orgn_01GSKV80FB7Y8669784XFN5FQN","slug":"the-george-washington-university-immigration-clinic"},{"value":"Capital Area Immigrants' Rights (CAIR) Coalition","label":"Capital Area Immigrants' Rights (CAIR) Coalition","id":"orgn_01GSKV80HG3HN3XKNW81BWFPH6","slug":"capital-area-immigrants-rights-cair-coalition"},{"value":"National Center for Lesbian Rights (NCLR)","label":"National Center for Lesbian Rights (NCLR)","id":"orgn_01GSKV80J2KNWNP0TY5EM36Z2S","slug":"national-center-for-lesbian-rights-nclr"},{"value":"Penn Medicine Program for LGBT Health","label":"Penn Medicine Program for LGBT Health","id":"orgn_01GSKV80K5Y6WT4JGDRZ605ZF6","slug":"penn-medicine-program-for-lgbt-health"},{"value":"The LGBT Asylum Project","label":"The LGBT Asylum Project","id":"orgn_01GSKV80MSNSJXHV1SX209VSF7","slug":"the-lgbt-asylum-project"},{"value":"The Lesbian, Gay, Bisexual & Transgender Community Center","label":"The Lesbian, Gay, Bisexual & Transgender Community Center","id":"orgn_01GSKV80PQTS0GCFACR35YG4J6","slug":"the-lesbian-gay-bisexual-and-transgender-community-center"},{"value":"St. James Immigrant Assistance","label":"St. James Immigrant Assistance","id":"orgn_01GSKV80QXZS5281HXQ6SMJ2NP","slug":"st-james-immigrant-assistance"},{"value":"Rainbow Center","label":"Rainbow Center","id":"orgn_01GSKV80REK1Z8XGH3NS8MHA4J","slug":"rainbow-center"},{"value":"New York Legal Assistance Group (NYLAG)","label":"New York Legal Assistance Group (NYLAG)","id":"orgn_01GSKV80RZJV32Z3VEPEWGB8NK","slug":"new-york-legal-assistance-group-nylag"},{"value":"African Hope Committee","label":"African Hope Committee","id":"orgn_01GSKV80SHTVWB7EK10WG3FSDP","slug":"african-hope-committee"},{"value":"City Bar Justice Center (CBJC)","label":"City Bar Justice Center (CBJC)","id":"orgn_01GSKV80T3NTH3P2NEQF54XS0P","slug":"city-bar-justice-center-cbjc"},{"value":"Housing Works","label":"Housing Works","id":"orgn_01GSKV80TMTCJDBVKNGA4CJHDT","slug":"housing-works"},{"value":"Immigration Equality","label":"Immigration Equality","id":"orgn_01GSKV80V6ZX0E5WWQXQX0RC23","slug":"immigration-equality"},{"value":"RAICES - San Antonio North","label":"RAICES - San Antonio North","id":"orgn_01GSKV81CKCYRQ4B6MNSSYCFK0","slug":"raices-san-antonio-north"},{"value":"Gender Justice League (GJL)","label":"Gender Justice League (GJL)","id":"orgn_01GSKV80WC6JV47EF4T8NA1H8H","slug":"gender-justice-league-gjl"},{"value":"People of Color Against AIDS Network (POCAAN)","label":"People of Color Against AIDS Network (POCAAN)","id":"orgn_01GSKV80Y1BQKC2FDKZ14R0BTJ","slug":"people-of-color-against-aids-network-pocaan"},{"value":"HealthRIGHT 360","label":"HealthRIGHT 360","id":"orgn_01GSKV80Z48VYKHPRWHP01ZQC7","slug":"healthright-360"},{"value":"Queer Detainee Empowerment Project (QDEP)","label":"Queer Detainee Empowerment Project (QDEP)","id":"orgn_01GSKV80ZPWHF9PM7C7G5E05VQ","slug":"queer-detainee-empowerment-project-qdep"},{"value":"Community Forward San Francisco","label":"Community Forward San Francisco","id":"orgn_01GSKV8109S9RKKZQJY72GZRVF","slug":"community-forward-san-francisco"},{"value":"Homeless Outreach Program Integrated Care System (HOPICS)","label":"Homeless Outreach Program Integrated Care System (HOPICS)","id":"orgn_01GSKV810T4GPF2RF968V4Z7ZP","slug":"homeless-outreach-program-integrated-care-system-hopics"},{"value":"Safe Horizon","label":"Safe Horizon","id":"orgn_01GSKV811BMKXHS88PFD0VK2RJ","slug":"safe-horizon"},{"value":"RUSA LGBT","label":"RUSA LGBT","id":"orgn_01GSKV8120EYRWBHAW915M0QE5","slug":"rusa-lgbt"},{"value":"RIF Asylum Support","label":"RIF Asylum Support","id":"orgn_01GSKV812HYNB02ZGABFXAGNHP","slug":"rif-asylum-support"},{"value":"Jewish Family Services of Western New York","label":"Jewish Family Services of Western New York","id":"orgn_01GSKV8134SBEQ5E34JCMKDAFS","slug":"jewish-family-services-of-western-new-york"},{"value":"HealthRight International's Human Rights Clinic (HRC)","label":"HealthRight International's Human Rights Clinic (HRC)","id":"orgn_01GSKV813SGKXCKZWWX484G5WR","slug":"healthright-internationals-human-rights-clinic-hrc"},{"value":"BronxWorks","label":"BronxWorks","id":"orgn_01GSKV814BV7YGZ46HCTJPAYDA","slug":"bronxworks"}] \ No newline at end of file diff --git a/packages/ui/mockData/json/organization.suggestionOptions.json b/packages/ui/mockData/json/organization.suggestionOptions.json new file mode 100644 index 0000000000..337d977500 --- /dev/null +++ b/packages/ui/mockData/json/organization.suggestionOptions.json @@ -0,0 +1 @@ +{"communities":[{"children":[],"icon":"️‍️‍✊🏿","id":"attr_01GW2HHFVN72D7XEBZZJXCJQXQ","tsKey":"srvfocus.bipoc-comm","tsNs":"attribute"},{"children":[],"icon":"💛","id":"attr_01GW2HHFVRMQFJ9AMA633SQQGV","tsKey":"srvfocus.hiv-comm","tsNs":"attribute"},{"children":[{"id":"attr_01GW2HHFVPCVX8F3B7M30ZJEHW","parentId":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.asylum-seekers","tsNs":"attribute"},{"id":"attr_01GW2HHFVPJERY0GS9D7F56A23","parentId":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.resettled-refugees","tsNs":"attribute"}],"icon":"️‍️‍🌎","id":"attr_01GW2HHFVPTK9555WHJHDBDA2J","tsKey":"srvfocus.immigrant-comm","tsNs":"attribute"},{"children":[{"id":"attr_01GW2HHFVQVEGH6W3A2ANH1QZE","parentId":"attr_01GW2HHFVQCZPA3Z5GW6J3MQHW","tsKey":"srvfocus.trans-youth-focus","tsNs":"attribute"}],"icon":"🌱","id":"attr_01GW2HHFVQCZPA3Z5GW6J3MQHW","tsKey":"srvfocus.lgbtq-youth-focus","tsNs":"attribute"},{"children":[],"icon":"🗣️","id":"attr_01GW2HHFVQ8AGBKBBZJWTHNP2F","tsKey":"srvfocus.spanish-speakers","tsNs":"attribute"},{"children":[{"id":"attr_01GW2HHFVQ7SYGD3KM8WP9X50B","parentId":"attr_01GW2HHFVPSYBCYF37B44WP6CZ","tsKey":"srvfocus.gender-nc","tsNs":"attribute"},{"id":"attr_01GW2HHFVQEFWW42MBAD64BWXZ","parentId":"attr_01GW2HHFVPSYBCYF37B44WP6CZ","tsKey":"srvfocus.trans-masc","tsNs":"attribute"},{"id":"attr_01GW2HHFVQX4M8DY1FSAYSJSSK","parentId":"attr_01GW2HHFVPSYBCYF37B44WP6CZ","tsKey":"srvfocus.trans-fem","tsNs":"attribute"},{"id":"attr_01GW2HHFVQVEGH6W3A2ANH1QZE","parentId":"attr_01GW2HHFVPSYBCYF37B44WP6CZ","tsKey":"srvfocus.trans-youth-focus","tsNs":"attribute"}],"icon":"🏳️‍⚧️","id":"attr_01GW2HHFVPSYBCYF37B44WP6CZ","tsKey":"srvfocus.trans-comm","tsNs":"attribute"}],"countries":[{"cca2":"US","id":"ctry_01GW2HHDK9M26M80SG63T21SVH","tsKey":"USA.name"},{"cca2":"MX","id":"ctry_01GW2HHDKB9DG2T2YZM5MFFVX9","tsKey":"MEX.name"},{"cca2":"CA","id":"ctry_01GW2HHDKAWXWYHAAESAA5HH94","tsKey":"CAN.name"}],"serviceTypes":[{"id":"svct_01GW2HHEVBM0ZHVJ295P2QKR6H","tsKey":"abortion-care.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3","tsKey":"community-support.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVDKRVB42KT85KA3FM3","tsKey":"computers-and-internet.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVFXW9YFMK4R95ZHBPV","tsKey":"food.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVF8W7D67CH3NVSQYA6","tsKey":"housing.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVGD7CE9VKYVSZYYTPS","tsKey":"hygiene-and-clothing.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","tsKey":"legal.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVQ0VE6E94T3CZWEW9F","tsKey":"mail.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","tsKey":"medical.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","tsKey":"mental-health.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVPE008PHCPNHZDAWMS","tsKey":"sports-and-entertainment.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVPFRQR07PTHMWJDDKS","tsKey":"translation-and-interpretation.CATEGORYNAME","tsNs":"services"},{"id":"svct_01GW2HHEVPXANJ6MPCDE0S4CWT","tsKey":"transportation.CATEGORYNAME","tsNs":"services"}]} \ No newline at end of file diff --git a/packages/ui/mockData/json/review.getByIds.json b/packages/ui/mockData/json/review.getByIds.json new file mode 100644 index 0000000000..f3634b0d02 --- /dev/null +++ b/packages/ui/mockData/json/review.getByIds.json @@ -0,0 +1 @@ +[{"rating":5,"user":{"image":"https://i.pravatar.cc/50?u=abcdef","name":"User Name"},"createdAt":"2023-01-03T05:00:00.000Z","reviewText":"Bicycle rights you probably haven't heard of them tote bag af, lorem hella eu humblebrag gastropub distillery shabby chic poke raclette. Selvage chicharrones skateboard fit. Mustache selvage vinyl coloring book. Af twee beard same scenester 8-bit tempor plaid actually irure. Letterpress eiusmod wayfarers, tonx pop-up exercitation schlitz tumeric gentrify.","id":"orev_LCRREVIEW","langConfidence":100,"language":null,"lcrCity":"Washington","lcrCountry":{"tsKey":"USA.name","tsNs":"country"},"lcrGovDist":{"tsKey":"us-district-of-columbia","tsNs":"gov-dist"},"translatedText":[],"verifiedUser":true},{"rating":5,"user":{"image":null,"name":null},"createdAt":"2022-12-30T05:00:00.000Z","reviewText":"Laborum gastropub mukbang, paleo deep v yes plz praxis veniam. 3 wolf moon affogato snackwave gluten-free photo booth. Keytar esse knausgaard seitan waistcoat. Bushwick la croix trust fund cliche dolor pug, 3 wolf moon heirloom cronut listicle jianbing leggings pinterest. Biodiesel edison bulb DSA pariatur lomo fugiat. Cornhole etsy meggings jianbing, swag before they sold out chia tempor. Shaman glossier dolor kitsch deserunt.","id":"orev_REGULARREVIEW","langConfidence":100,"language":null,"lcrCity":null,"lcrCountry":null,"lcrGovDist":null,"translatedText":[],"verifiedUser":false},{"rating":4,"user":{"image":null,"name":null},"createdAt":"2022-05-02T04:00:00.000Z","reviewText":"Proident Brooklyn vibecession portland migas slow-carb kitsch sus chambray. Butcher small batch subway tile, keytar hoodie authentic fanny pack. Tonx post-ironic literally, yr banjo single-origin coffee craft beer tofu. Praxis taiyaki gluten-free meh.","id":"orev_REGULARREVIEW2","langConfidence":100,"language":null,"lcrCity":null,"lcrCountry":null,"lcrGovDist":null,"translatedText":[],"verifiedUser":false},{"rating":3,"user":{"image":null,"name":null},"createdAt":"2023-02-05T05:00:00.000Z","reviewText":"Cray street art iceland, next level copper mug id ullamco meditation hoodie chartreuse vexillologist stumptown.","id":"orev_REGULARREVIEW4","langConfidence":100,"language":null,"lcrCity":null,"lcrCountry":null,"lcrGovDist":null,"translatedText":[],"verifiedUser":false}] \ No newline at end of file diff --git a/packages/ui/mockData/json/savedList.getAll.json b/packages/ui/mockData/json/savedList.getAll.json new file mode 100644 index 0000000000..263654e3f9 --- /dev/null +++ b/packages/ui/mockData/json/savedList.getAll.json @@ -0,0 +1 @@ +[{"_count":{"organizations":0,"services":0,"sharedWith":0},"id":"ulst_LISTID1","name":"Example List 1"},{"_count":{"organizations":0,"services":0,"sharedWith":0},"id":"ulst_LISTID2","name":"Example List 2"},{"_count":{"organizations":0,"services":0,"sharedWith":0},"id":"ulst_LISTID3","name":"Example List 3"}] \ No newline at end of file diff --git a/packages/ui/mockData/json/service.byId.json b/packages/ui/mockData/json/service.byId.json new file mode 100644 index 0000000000..29054a8bcf --- /dev/null +++ b/packages/ui/mockData/json/service.byId.json @@ -0,0 +1 @@ +{"serviceName":{"key":"orgn_01GVH3V3RCCBMFD55PWHR8AEC0.osvc_01GVH3VDMSN34BACQDMY6S5GPM.name","ns":"org-data","tsKey":{"text":"Get education and employment services for youth ages 24 and under","crowdinId":null}},"services":[{"tag":{"defaultAttributes":[],"primaryCategory":{"tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"},"tsKey":"education-and-employment.career-counseling","tsNs":"services","active":true}}],"serviceAreas":{"countries":[],"districts":[{"govDist":{"id":"gdst_01GW2HJ23GMD17FBJMJWD16PZ1","name":"California","slug":"us-california","iso":"US-CA","abbrev":"CA","country":{"cca2":"US","cca3":"USA","id":"ctry_01GW2HHDK9M26M80SG63T21SVH","name":"United States","dialCode":null,"flag":"🇺🇸","tsKey":"USA.name","tsNs":"country"},"govDistType":{"tsKey":"type-state","tsNs":"gov-dist"},"isPrimary":true,"tsKey":"us-california","tsNs":"gov-dist","parent":null}},{"govDist":{"id":"gdst_01GW2HJ2S1061RNRAT6S4RJN1S","name":"San Francisco","slug":"us-california-san-francisco-county","iso":null,"abbrev":null,"country":{"cca2":"US","cca3":"USA","id":"ctry_01GW2HHDK9M26M80SG63T21SVH","name":"United States","dialCode":null,"flag":"🇺🇸","tsKey":"USA.name","tsNs":"country"},"govDistType":{"tsKey":"type-county","tsNs":"gov-dist"},"isPrimary":false,"tsKey":"us-california-san-francisco-county","tsNs":"gov-dist","parent":{"id":"gdst_01GW2HJ23GMD17FBJMJWD16PZ1","name":"California","slug":"us-california","iso":"US-CA","abbrev":"CA","country":{"cca2":"US","cca3":"USA","id":"ctry_01GW2HHDK9M26M80SG63T21SVH","name":"United States","dialCode":null,"flag":"🇺🇸","tsKey":"USA.name","tsNs":"country"},"govDistType":{"tsKey":"type-state","tsNs":"gov-dist"},"isPrimary":true,"tsKey":"us-california","tsNs":"gov-dist"}}}]},"hours":[],"reviews":[],"attributes":[{"attribute":{"id":"attr_01GW2HHFV3BADK80TG0DXXFPMM","tsKey":"additional.has-confidentiality-policy","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"additional-information","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVGDTNW9PDQNXK6TF1T","tsKey":"cost.cost-free","tsNs":"attribute","icon":"carbon:piggy-bank","iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"cost","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVGJ5GD2WHNJDPSFNRW","tsKey":"eligibility.time-appointment-required","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"eligibility-requirements","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVGSAZXGR4JAVHEK6ZC","tsKey":"eligibility.elig-age","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"eligibility-requirements","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[{"id":"atts_01GW2HT8C1J8AQAEHVGANCYRPB","country":null,"language":null,"text":null,"govDist":null,"boolean":null,"data":{"min":24}}]},{"attribute":{"id":"attr_01GW2HHFVJ8K180CNX339BTXM2","tsKey":"lang.lang-offered","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"languages","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[{"id":"atts_01GW2HT8C1N900BKNRTY39R58H","country":null,"language":{"languageName":"English","nativeName":"English"},"text":null,"govDist":null,"boolean":null,"data":null}]},{"attribute":{"id":"attr_01GW2HHFVK8KPRGKYFSSM5ECPQ","tsKey":"sys.incompatible-info","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"system","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[{"id":"atts_01GW2HT8C256BP7P50M1G32GNK","country":null,"language":null,"text":null,"govDist":null,"boolean":null,"data":{"json":[{"service-city-california-san-francisco":"true"},{"community-transitional-age-youth":"true"},{"action-signup-url":"http://larkinstreetyouth.org/get-help/#section-education-employment"},{"community-lgbt":"true"},{"elig-age-or-under (value = #)":null}],"meta":{"values":{"4.elig-age-or-under (value = #)":["undefined"]}}}}]}],"phones":[],"emails":[],"accessDetails":[{"attribute":{"id":"attr_01GW2HHFVMH6AE94EXN7T5A87C","tsKey":"serviceaccess.accesslocation","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"service-access-instructions","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[{"id":"atts_01GW2HT8BWQ0WZ804A34QV7P0J","country":null,"language":null,"text":{"key":"orgn_01GVH3V3RCCBMFD55PWHR8AEC0.attribute.atts_01GW2HT8BWQ0WZ804A34QV7P0J","ns":"org-data","tsKey":{"text":"The above are drop-in service hours for education. Drop-in hours for employment services are Monday, Tuesday:10 a.m. to noon, and 2:30 to 4:30 p.m. Wednesday:10 a.m. to noon, and 1 to 2 p.m. Thursday:10 a.m. to noon, and 1 to 3 p.m. Friday:10 a.m. to 1 p.m.","crowdinId":null}},"govDist":null,"boolean":null,"data":{"json":{"_id":{"$oid":"5e7e4bd9d54f1760921a3aff"},"access_type":"location","access_value":"134 Golden Gate Ave, San Francisco, CA 94102","instructions":"The above are drop-in service hours for education. Drop-in hours for employment services are Monday, Tuesday:10 a.m. to noon, and 2:30 to 4:30 p.m. Wednesday:10 a.m. to noon, and 1 to 2 p.m. Thursday:10 a.m. to noon, and 1 to 3 p.m. Friday:10 a.m. to 1 p.m.","access_value_ES":"134 Golden Gate Ave, San Francisco, CA 94102","instructions_ES":"Visita para más información."}}}]},{"attribute":{"id":"attr_01GW2HHFVMKTFWCKBVVFJ5GMY0","tsKey":"serviceaccess.accessphone","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"service-access-instructions","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[{"id":"atts_01GW2HT8BWZG5BTQ57DAQHJZ5Z","country":null,"language":null,"text":{"key":"orgn_01GVH3V3RCCBMFD55PWHR8AEC0.attribute.atts_01GW2HT8BWZG5BTQ57DAQHJZ5Z","ns":"org-data","tsKey":{"text":"Call for more information.","crowdinId":null}},"govDist":null,"boolean":null,"data":{"json":{"_id":{"$oid":"5e7e4bd9d54f1760921a3b00"},"access_type":"phone","access_value":"415-673-0911","instructions":"Call for more information.","access_value_ES":"415-673-0911","instructions_ES":"Llama para más información."}}}]}],"locations":[{"location":{"name":"Larkin Street Youth Services - Administration Office","street1":"134 Golden Gate Avenue","street2":"","city":"San Francisco","postCode":"94109","primary":true,"govDist":{"abbrev":"CA","govDistType":{"tsKey":"type-state","tsNs":"gov-dist"},"tsKey":"us-california","tsNs":"gov-dist"},"country":{"cca2":"US","cca3":"USA","id":"ctry_01GW2HHDK9M26M80SG63T21SVH","name":"United States","dialCode":null,"flag":"🇺🇸","tsKey":"USA.name","tsNs":"country"},"longitude":-122.413,"latitude":37.782}}],"id":"osvc_01GVH3VDMSN34BACQDMY6S5GPM","description":{"key":"orgn_01GVH3V3RCCBMFD55PWHR8AEC0.osvc_01GVH3VDMSN34BACQDMY6S5GPM.description","ns":"org-data","tsKey":{"text":"Larkin Street Academy Services offers job readiness, college readiness, computer classes, job placement and retention, internships, tutoring, GED tutoring and classes, secondary and post-secondary school enrollment and support, mindfulness, visual and performing arts. Offices are open Monday through Thursday, 9:00 AM - 16:00 PM, appointments only.","crowdinId":null}}} \ No newline at end of file diff --git a/packages/ui/mockData/json/service.forServiceDrawer.json b/packages/ui/mockData/json/service.forServiceDrawer.json new file mode 100644 index 0000000000..66fc36a9ad --- /dev/null +++ b/packages/ui/mockData/json/service.forServiceDrawer.json @@ -0,0 +1 @@ +{"medical.CATEGORYNAME":[{"id":"osvc_01GVH3VEVPF1KEKBTRVTV70WGV","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVPF1KEKBTRVTV70WGV.name","defaultText":"Get rapid HIV testing"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ.name","defaultText":"Receive gender affirming care and services"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEVSNF9NH79R7HC9FHY6","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVSNF9NH79R7HC9FHY6.name","defaultText":"Get HIV care for newly diagnosed patients"},"locations":["Whitman-Walker 1525"],"attributes":[]},{"id":"osvc_01GVH3VEVVHBRF1FFXZGMMYG7D","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVVHBRF1FFXZGMMYG7D.name","defaultText":"Access youth and family support services"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEW2ND36DB0XWAH1PQY0","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEW2ND36DB0XWAH1PQY0.name","defaultText":"Get dental health services for HIV-positive individuals"},"locations":["Whitman-Walker 1525"],"attributes":[]},{"id":"osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55.name","defaultText":"Get the COVID-19 vaccine"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEWHDC6F5FCQHB0H5GD6","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEWHDC6F5FCQHB0H5GD6.name","defaultText":"Get gender affirming hormone therapy"},"locations":["Whitman-Walker 1525"],"attributes":[]},{"id":"osvc_01GVH3VEWK33YAKZMQ2W3GT4QK","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEWK33YAKZMQ2W3GT4QK.name","defaultText":"Access PEP and PrEP"},"locations":["Whitman-Walker 1525"],"attributes":[]},{"id":"osvc_01GVH3VEWM65579T29F19QXP8E","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEWM65579T29F19QXP8E.name","defaultText":"Get help with navigating health insurance options"},"locations":[],"attributes":[]}],"legal.CATEGORYNAME":[{"id":"osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ.name","defaultText":"Receive gender affirming care and services"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC.name","defaultText":"Get legal help with immigration services"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG.name","defaultText":"Get legal help for transgender people to replace and update name/gender marker on immigration documents"},"locations":[],"attributes":[]}],"mental-health.CATEGORYNAME":[{"id":"osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ.name","defaultText":"Receive gender affirming care and services"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEVVHBRF1FFXZGMMYG7D","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVVHBRF1FFXZGMMYG7D.name","defaultText":"Access youth and family support services"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEVY24KAYTWY2ZSFZNBX","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVY24KAYTWY2ZSFZNBX.name","defaultText":"Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z.name","defaultText":"Receive behavioral health services"},"locations":["Whitman-Walker 1525"],"attributes":[]}],"community-support.CATEGORYNAME":[{"id":"osvc_01GVH3VEVVHBRF1FFXZGMMYG7D","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVVHBRF1FFXZGMMYG7D.name","defaultText":"Access youth and family support services"},"locations":[],"attributes":[]},{"id":"osvc_01GVH3VEVY24KAYTWY2ZSFZNBX","name":{"tsNs":"org-data","tsKey":"whitman-walker-health.osvc_01GVH3VEVY24KAYTWY2ZSFZNBX.name","defaultText":"Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)"},"locations":[],"attributes":[]}]} \ No newline at end of file diff --git a/packages/ui/mockData/json/service.forServiceEditDrawer.json b/packages/ui/mockData/json/service.forServiceEditDrawer.json new file mode 100644 index 0000000000..9d6ab8a925 --- /dev/null +++ b/packages/ui/mockData/json/service.forServiceEditDrawer.json @@ -0,0 +1 @@ +{"id":"osvc_01GVH3VEVPF1KEKBTRVTV70WGV","description":{"key":"orgn_01GVH3V408N0YS7CDYAH3F2BMH.osvc_01GVH3VEVPF1KEKBTRVTV70WGV.description","ns":"org-data","tsKey":{"text":"Whitman-Walker provides walk-in HIV testing at multiple locations in DC. Walk-in HIV testing includes a confidential, rapid HIV test and risk-reduction counseling. The counseling provides clients with education on their options for having safer sex. Whitman-Walker uses the INSTI® HIV-1/HIV-2 Rapid Antibody Test and results take one minute.","crowdinId":773222}},"hours":[],"published":true,"deleted":false,"serviceName":{"key":"orgn_01GVH3V408N0YS7CDYAH3F2BMH.osvc_01GVH3VEVPF1KEKBTRVTV70WGV.name","ns":"org-data","tsKey":{"text":"Get rapid HIV testing","crowdinId":773224}},"phones":["ophn_01GVH3VEVCFKT3NWQ79STYVDKR","ophn_01GVH3VEVC36PW0Z9GDV0ZERV1"],"emails":[],"locations":["oloc_01GVH3VEVBRCFA2AHNTWCXQA2B","oloc_01GVH3VEVBSA85T6VR2C38BJPT"],"services":[{"id":"svtg_01GW2HHFBRPBXSYN12DWNEAJJ7","primaryCategoryId":"svct_01GW2HHEVKVHTWSBY7PVWC5390"}],"serviceAreas":{"id":"svar_01GW2HT9F1JKT1MCAJ3P7XBDHP","countries":[],"districts":["gdst_01GW2HJ5A278S2G84AB3N9FCW0"]},"attributes":[{"attribute":{"id":"attr_01GW2HHFV3BADK80TG0DXXFPMM","tsKey":"additional.has-confidentiality-policy","tsNs":"attribute","icon":null,"categories":["additional-information"]},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFV4TM7H5V6FHWA7S9JK","tsKey":"additional.time-walk-in","tsNs":"attribute","icon":null,"categories":["additional-information"]},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVA06WHRSM241ZF0FY0","tsKey":"community.hiv-aids","tsNs":"attribute","icon":null,"categories":["community"]},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVGDTNW9PDQNXK6TF1T","tsKey":"cost.cost-free","tsNs":"attribute","icon":"carbon:piggy-bank","categories":["cost"]},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVJ8K180CNX339BTXM2","tsKey":"lang.lang-offered","tsNs":"attribute","icon":null,"categories":["languages"]},"supplement":[{"id":"atts_01GW2HT9F15B2HJK144B3NZHQK","active":true,"boolean":null,"countryId":null,"govDistId":null,"languageId":"lang_0000000000N3K70GZXE29Z03A4","text":null,"data":null}]},{"attribute":{"id":"attr_01GW2HHFVK8KPRGKYFSSM5ECPQ","tsKey":"sys.incompatible-info","tsNs":"attribute","icon":null,"categories":["system"]},"supplement":[{"id":"atts_01GW2HT9F13VVJCJ8W2WE86R6N","active":true,"boolean":null,"countryId":null,"govDistId":null,"languageId":null,"text":null,"data":[{"community-lgbt":"true"},{}]}]}],"accessDetails":[{"attribute":{"id":"attr_01GW2HHFVMH6AE94EXN7T5A87C","tsKey":"serviceaccess.accesslocation","tsNs":"attribute"},"supplement":[{"id":"atts_01GW2HT9F0SPS3EBCQ710RCNTA","text":{"key":"orgn_01GVH3V408N0YS7CDYAH3F2BMH.attribute.atts_01GW2HT9F0SPS3EBCQ710RCNTA","ns":"org-data","tsKey":{"text":"Max Robinson Center - NO walk-in testing is available. Monday:08:30-12:30, 13:30-17:30; Tuesday:08:30 - 12:30, 13:30 - 17:30; Wednesday:08:30 - 12:30, 13:30 - 17:30; Thursday:08:30 - 12:30, 13:30 - 17:30; Friday:08:30 - 12:30, 14:15 - 17:30.","crowdinId":1535745}},"data":{"_id":{"$oid":"5e7e4bdbd54f1760921a4231"},"access_type":"location","access_value":"2301 M. Luther King Jr., Washington DC 20020","instructions":"Max Robinson Center - NO walk-in testing is available. Monday:08:30-12:30, 13:30-17:30; Tuesday:08:30 - 12:30, 13:30 - 17:30; Wednesday:08:30 - 12:30, 13:30 - 17:30; Thursday:08:30 - 12:30, 13:30 - 17:30; Friday:08:30 - 12:30, 14:15 - 17:30.","access_value_ES":"2301 M. Luther King Jr., Washington DC 20020","instructions_ES":"Centro Max Robinson:NO hay pruebas disponibles sin cita previa. Lunes:08:30-12:30, 13:30-17:30; Martes:08:30 - 12:30, 13:30 - 17:30; Miércoles:08:30 - 12:30, 13:30 - 17:30; Jueves:08:30 - 12:30, 13:30 - 17:30; Viernes:08:30 - 12:30, 14:15 - 17:30."}},{"id":"atts_01GW2HT9F0638MD74PJ3SCWNXC","text":{"key":"orgn_01GVH3V408N0YS7CDYAH3F2BMH.attribute.atts_01GW2HT9F0638MD74PJ3SCWNXC","ns":"org-data","tsKey":{"text":"Whitman-Walker at 1525 - NO walk-in testing is available. Monday-Thursday:08:30-12:30 & 13:30-17:30; Friday:08:30- 12:30 & 14:30 -17:30.","crowdinId":1535741}},"data":{"_id":{"$oid":"5e7e4bdbd54f1760921a4233"},"access_type":"location","access_value":"1525 14th St, NW Washington, DC 20005","instructions":"Whitman-Walker at 1525 - NO walk-in testing is available. Monday-Thursday:08:30-12:30 & 13:30-17:30; Friday:08:30- 12:30 & 14:30 -17:30.","access_value_ES":"1525 14th St, NW Washington, DC 20005","instructions_ES":"Whitman-Walker en 1525:NO hay pruebas disponibles. Lunes-Jueves:08:30-12:30 y 13:30-17:30; Viernes:08:30- 12:30 y 14:30 -17:30."}}]},{"attribute":{"id":"attr_01GW2HHFVMKTFWCKBVVFJ5GMY0","tsKey":"serviceaccess.accessphone","tsNs":"attribute"},"supplement":[{"id":"atts_01GW2HT9F09GFRWM3JK2A43AWG","text":{"key":"orgn_01GVH3V408N0YS7CDYAH3F2BMH.attribute.atts_01GW2HT9F09GFRWM3JK2A43AWG","ns":"org-data","tsKey":{"text":"Contact the Main Office about services offered in multiple languages upon request.","crowdinId":1535743}},"data":{"_id":{"$oid":"5e7e4bdbd54f1760921a4235"},"access_type":"phone","access_value":"202-745-7000","instructions":"Contact the Main Office about services offered in multiple languages upon request.","access_value_ES":"202-745-7000","instructions_ES":"Comunícate con la oficina principal sobre los servicios que se ofrecen en varios idiomas si lo solicitas."}}]},{"attribute":{"id":"attr_01GW2HHFVMYXMS8ARA3GE7HZFD","tsKey":"serviceaccess.accesslink","tsNs":"attribute"},"supplement":[{"id":"atts_01GW2HT9F01W2M7FBSKSXAQ9R4","text":{"key":"orgn_01GVH3V408N0YS7CDYAH3F2BMH.attribute.atts_01GW2HT9F01W2M7FBSKSXAQ9R4","ns":"org-data","tsKey":{"text":"Visit the website to learn more about Whitman-Walker's testing hours and locations.","crowdinId":1535739}},"data":{"_id":{"$oid":"5e7e4bdbd54f1760921a4234"},"access_type":"link","access_value":"https://www.whitman-walker.org/hiv-sti-testing","instructions":"Visit the website to learn more about Whitman-Walker's testing hours and locations.","access_value_ES":"https://www.whitman-walker.org/hiv-sti-testing","instructions_ES":"Visita el sitio web para obtener más información sobre los horarios y lugares de prueba de Whitman-Walker."}}]}]} \ No newline at end of file diff --git a/packages/ui/mockData/json/service.forServiceInfoCard.json b/packages/ui/mockData/json/service.forServiceInfoCard.json new file mode 100644 index 0000000000..f999911369 --- /dev/null +++ b/packages/ui/mockData/json/service.forServiceInfoCard.json @@ -0,0 +1 @@ +[{"id":"osvc_01GVH3VEWK33YAKZMQ2W3GT4QK","serviceName":{"tsKey":{"text":"Access PEP and PrEP"},"tsNs":"org-data","defaultText":"Access PEP and PrEP"},"serviceCategories":["medical.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z","serviceName":{"tsKey":{"text":"Receive behavioral health services"},"tsNs":"org-data","defaultText":"Receive behavioral health services"},"serviceCategories":["mental-health.CATEGORYNAME"],"offersRemote":true},{"id":"osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55","serviceName":{"tsKey":{"text":"Get the COVID-19 vaccine"},"tsNs":"org-data","defaultText":"Get the COVID-19 vaccine"},"serviceCategories":["medical.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG","serviceName":{"tsKey":{"text":"Get legal help for transgender people to replace and update name/gender marker on immigration documents"},"tsNs":"org-data","defaultText":"Get legal help for transgender people to replace and update name/gender marker on immigration documents"},"serviceCategories":["legal.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEVY24KAYTWY2ZSFZNBX","serviceName":{"tsKey":{"text":"Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)"},"tsNs":"org-data","defaultText":"Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)"},"serviceCategories":["community-support.CATEGORYNAME","mental-health.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEVVHBRF1FFXZGMMYG7D","serviceName":{"tsKey":{"text":"Access youth and family support services"},"tsNs":"org-data","defaultText":"Access youth and family support services"},"serviceCategories":["community-support.CATEGORYNAME","medical.CATEGORYNAME","mental-health.CATEGORYNAME"],"offersRemote":true},{"id":"osvc_01GVH3VEWHDC6F5FCQHB0H5GD6","serviceName":{"tsKey":{"text":"Get gender affirming hormone therapy"},"tsNs":"org-data","defaultText":"Get gender affirming hormone therapy"},"serviceCategories":["medical.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ","serviceName":{"tsKey":{"text":"Receive gender affirming care and services"},"tsNs":"org-data","defaultText":"Receive gender affirming care and services"},"serviceCategories":["legal.CATEGORYNAME","medical.CATEGORYNAME","mental-health.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEW2ND36DB0XWAH1PQY0","serviceName":{"tsKey":{"text":"Get dental health services for HIV-positive individuals"},"tsNs":"org-data","defaultText":"Get dental health services for HIV-positive individuals"},"serviceCategories":["medical.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEVSNF9NH79R7HC9FHY6","serviceName":{"tsKey":{"text":"Get HIV care for newly diagnosed patients"},"tsNs":"org-data","defaultText":"Get HIV care for newly diagnosed patients"},"serviceCategories":["medical.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEWM65579T29F19QXP8E","serviceName":{"tsKey":{"text":"Get help with navigating health insurance options"},"tsNs":"org-data","defaultText":"Get help with navigating health insurance options"},"serviceCategories":["medical.CATEGORYNAME"],"offersRemote":true},{"id":"osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC","serviceName":{"tsKey":{"text":"Get legal help with immigration services"},"tsNs":"org-data","defaultText":"Get legal help with immigration services"},"serviceCategories":["legal.CATEGORYNAME"],"offersRemote":false},{"id":"osvc_01GVH3VEVPF1KEKBTRVTV70WGV","serviceName":{"tsKey":{"text":"Get rapid HIV testing"},"tsNs":"org-data","defaultText":"Get rapid HIV testing"},"serviceCategories":["medical.CATEGORYNAME"],"offersRemote":false}] \ No newline at end of file diff --git a/packages/ui/mockData/json/service.forServiceModal.json b/packages/ui/mockData/json/service.forServiceModal.json new file mode 100644 index 0000000000..675a7e2a4e --- /dev/null +++ b/packages/ui/mockData/json/service.forServiceModal.json @@ -0,0 +1 @@ +{"id":"osvc_01GVH3VDMSN34BACQDMY6S5GPM","services":[{"tag":{"tsKey":"education-and-employment.career-counseling"}}],"accessDetails":[{"attribute":{"id":"attr_01GW2HHFVMH6AE94EXN7T5A87C"},"supplement":[{"id":"atts_01GW2HT8BWQ0WZ804A34QV7P0J","data":{"json":{"_id":{"$oid":"5e7e4bd9d54f1760921a3aff"},"access_type":"location","access_value":"134 Golden Gate Ave, San Francisco, CA 94102","instructions":"The above are drop-in service hours for education. Drop-in hours for employment services are Monday, Tuesday:10 a.m. to noon, and 2:30 to 4:30 p.m. Wednesday:10 a.m. to noon, and 1 to 2 p.m. Thursday:10 a.m. to noon, and 1 to 3 p.m. Friday:10 a.m. to 1 p.m.","access_value_ES":"134 Golden Gate Ave, San Francisco, CA 94102","instructions_ES":"Visita para más información."}},"text":{"key":"orgn_01GVH3V3RCCBMFD55PWHR8AEC0.attribute.atts_01GW2HT8BWQ0WZ804A34QV7P0J","tsKey":{"text":"The above are drop-in service hours for education. Drop-in hours for employment services are Monday, Tuesday:10 a.m. to noon, and 2:30 to 4:30 p.m. Wednesday:10 a.m. to noon, and 1 to 2 p.m. Thursday:10 a.m. to noon, and 1 to 3 p.m. Friday:10 a.m. to 1 p.m."}}}]},{"attribute":{"id":"attr_01GW2HHFVMKTFWCKBVVFJ5GMY0"},"supplement":[{"id":"atts_01GW2HT8BWZG5BTQ57DAQHJZ5Z","data":{"json":{"_id":{"$oid":"5e7e4bd9d54f1760921a3b00"},"access_type":"phone","access_value":"415-673-0911","instructions":"Call for more information.","access_value_ES":"415-673-0911","instructions_ES":"Llama para más información."}},"text":{"key":"orgn_01GVH3V3RCCBMFD55PWHR8AEC0.attribute.atts_01GW2HT8BWZG5BTQ57DAQHJZ5Z","tsKey":{"text":"Call for more information."}}}]}],"serviceName":{"key":"orgn_01GVH3V3RCCBMFD55PWHR8AEC0.osvc_01GVH3VDMSN34BACQDMY6S5GPM.name","ns":"org-data","tsKey":{"text":"Get education and employment services for youth ages 24 and under"}},"locations":[{"location":{"country":{"cca2":"US"}}}],"attributes":[{"attribute":{"id":"attr_01GW2HHFV3BADK80TG0DXXFPMM","tsKey":"additional.has-confidentiality-policy","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"additional-information","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVGDTNW9PDQNXK6TF1T","tsKey":"cost.cost-free","tsNs":"attribute","icon":"carbon:piggy-bank","iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"cost","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVGJ5GD2WHNJDPSFNRW","tsKey":"eligibility.time-appointment-required","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"eligibility-requirements","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[]},{"attribute":{"id":"attr_01GW2HHFVGSAZXGR4JAVHEK6ZC","tsKey":"eligibility.elig-age","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"eligibility-requirements","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[{"id":"atts_01GW2HT8C1J8AQAEHVGANCYRPB","country":null,"language":null,"text":null,"govDist":null,"boolean":null,"data":{"min":24}}]},{"attribute":{"id":"attr_01GW2HHFVJ8K180CNX339BTXM2","tsKey":"lang.lang-offered","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"languages","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[{"id":"atts_01GW2HT8C1N900BKNRTY39R58H","country":null,"language":{"languageName":"English","nativeName":"English"},"text":null,"govDist":null,"boolean":null,"data":null}]},{"attribute":{"id":"attr_01GW2HHFVK8KPRGKYFSSM5ECPQ","tsKey":"sys.incompatible-info","tsNs":"attribute","icon":null,"iconBg":null,"showOnLocation":null,"categories":[{"category":{"tag":"system","icon":null}}],"_count":{"parents":0,"children":0}},"supplement":[{"id":"atts_01GW2HT8C256BP7P50M1G32GNK","country":null,"language":null,"text":null,"govDist":null,"boolean":null,"data":{"json":[{"service-city-california-san-francisco":"true"},{"community-transitional-age-youth":"true"},{"action-signup-url":"http://larkinstreetyouth.org/get-help/#section-education-employment"},{"community-lgbt":"true"},{"elig-age-or-under (value = #)":null}],"meta":{"values":{"4.elig-age-or-under (value = #)":["undefined"]}}}}]}],"hours":[],"description":{"key":"orgn_01GVH3V3RCCBMFD55PWHR8AEC0.osvc_01GVH3VDMSN34BACQDMY6S5GPM.description","ns":"org-data","tsKey":{"text":"Larkin Street Academy Services offers job readiness, college readiness, computer classes, job placement and retention, internships, tutoring, GED tutoring and classes, secondary and post-secondary school enrollment and support, mindfulness, visual and performing arts. Offices are open Monday through Thursday, 9:00 AM - 16:00 PM, appointments only."}}} \ No newline at end of file diff --git a/packages/ui/mockData/json/service.getFilterOptions.json b/packages/ui/mockData/json/service.getFilterOptions.json new file mode 100644 index 0000000000..04eaa756e9 --- /dev/null +++ b/packages/ui/mockData/json/service.getFilterOptions.json @@ -0,0 +1 @@ +[{"id":"svct_01GSKV6QWAK72ZTDFVSNVJFDQ6","tsKey":"abortion-care.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFRBNC7GFYP76X4YCW1","tsKey":"abortion-care.abortion-providers","tsNs":"services"},{"id":"svtg_01GSKV6RFS9JX8368P8FB6KTMY","tsKey":"abortion-care.financial-assistance","tsNs":"services"},{"id":"svtg_01GSKV6RFSPJ1WHVAP60N38KA2","tsKey":"abortion-care.lodging-assistance","tsNs":"services"},{"id":"svtg_01GSKV6RFS8KNFEV7JZZRSFR6Z","tsKey":"abortion-care.mail-order-services","tsNs":"services"},{"id":"svtg_01GSKV6RFS9FJCG5Q19DH3Y07V","tsKey":"abortion-care.mental-health-support","tsNs":"services"},{"id":"svtg_01GSKV6RFS8A4475BCAEAC7HAH","tsKey":"abortion-care.travel-assistance","tsNs":"services"}]},{"id":"svct_01GSKV6QXMBFAM7CDXNEMX3TBT","tsKey":"community-support.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFSJBPRDQF9SNEE6Z43","tsKey":"community-support.cultural-centers","tsNs":"services"},{"id":"svtg_01GSKV6RFSH3BJZ9Z108SM9YNC","tsKey":"community-support.lgbtq-centers","tsNs":"services"},{"id":"svtg_01GSKV6RFS5RZJXA89G73VSE1E","tsKey":"community-support.reception-services","tsNs":"services"},{"id":"svtg_01GSKV6RFS8K5KX3JZH6TF1K91","tsKey":"community-support.spiritual-support","tsNs":"services"},{"id":"svtg_01GSKV6RFSJTPXNHG7VA8ZQ201","tsKey":"community-support.sponsors","tsNs":"services"}]},{"id":"svct_01GSKV6QYM131PBK9MEXF6AV35","tsKey":"computers-and-internet.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFS6DWCZQHAP1P8RABX","tsKey":"computers-and-internet.computers-and-internet","tsNs":"services"}]},{"id":"svct_01GSKV6QYXRMGJNK7R5HZF7XYQ","tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFSVV313S66ZQRTB49P","tsKey":"education-and-employment.career-counseling","tsNs":"services"},{"id":"svtg_01GSKV6RFSMXGQNE18AV1D4MJ6","tsKey":"education-and-employment.educational-support-for-lgbtq-youth","tsNs":"services"},{"id":"svtg_01GSKV6RFT0RZZKNSNQV68H0AP","tsKey":"education-and-employment.english-classes","tsNs":"services"},{"id":"svtg_01GSKV6RFT065QBBR93MDSNJWV","tsKey":"education-and-employment.language-classes","tsNs":"services"},{"id":"svtg_01GSKV6RFT94F50RKA19D9R8BY","tsKey":"education-and-employment.leadership-training-and-professional-development","tsNs":"services"},{"id":"svtg_01GSKV6RFTSQ29V2SB2JD756MT","tsKey":"education-and-employment.libraries","tsNs":"services"},{"id":"svtg_01GSKV6RFTK24EQXAF8CZ54385","tsKey":"education-and-employment.scholarships","tsNs":"services"}]},{"id":"svct_01GSKV6R05KHWM7PDJ73M9M9JD","tsKey":"food.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFTKYE1WJP6V01N9V6E","tsKey":"food.food","tsNs":"services"},{"id":"svtg_01GSKV6RFTBGRHC4CZQFRCQCS8","tsKey":"food.food-assistance","tsNs":"services"}]},{"id":"svct_01GSKV6R0JBM43P1434A2GYX8E","tsKey":"housing.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFT0GPXTYCFGTD47HR7","tsKey":"housing.drop-in-centers-for-lgbtq-youth","tsNs":"services"},{"id":"svtg_01GSKV6RFTQZ666ECT1T2Z1RG0","tsKey":"housing.emergency-housing","tsNs":"services"},{"id":"svtg_01GSKV6RFT2KMXAT78W9TX55XK","tsKey":"housing.housing-information-and-referrals","tsNs":"services"},{"id":"svtg_01GSKV6RFT5KJ8JVPFK7CTHRHN","tsKey":"housing.short-term-housing","tsNs":"services"},{"id":"svtg_01GSKV6RFT0P7WDD3SG5N7K4ST","tsKey":"housing.trans-housing","tsNs":"services"}]},{"id":"svct_01GSKV6R1HY3YE387REQJXCH0E","tsKey":"hygiene-and-clothing.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFV8XRQBP5SYR8DFR26","tsKey":"hygiene-and-clothing.clothes","tsNs":"services"},{"id":"svtg_01GSKV6RFVKWX7W9TJM20DWRYQ","tsKey":"hygiene-and-clothing.gender-affirming-items","tsNs":"services"},{"id":"svtg_01GSKV6RFVT2646J95NCYV4SAB","tsKey":"hygiene-and-clothing.gender-neutral-bathrooms","tsNs":"services"},{"id":"svtg_01GSKV6RFVH7YAR12NY4RCY10G","tsKey":"hygiene-and-clothing.haircuts-and-stylists","tsNs":"services"},{"id":"svtg_01GSKV6RFVZ10Y6X3FGR7946MR","tsKey":"hygiene-and-clothing.hygiene","tsNs":"services"}]},{"id":"svct_01GSKV6R2FXY78FQSWTPPQTCE4","tsKey":"legal.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFV0QQ4WZDVFDMT6HCG","tsKey":"legal.asylum-application","tsNs":"services"},{"id":"svtg_01GSKV6RFVQ6HKMAWT924TYZTA","tsKey":"legal.citizenship","tsNs":"services"},{"id":"svtg_01GSKV6RFVYD7K7KHQ7HF91SKM","tsKey":"legal.crime-and-discrimination","tsNs":"services"},{"id":"svtg_01GSKV6RFVG7HS19G778NBN41F","tsKey":"legal.deferred-action-for-childhood-arrivals-daca","tsNs":"services"},{"id":"svtg_01GSKV6RFVA0QQNQN1HW166SE5","tsKey":"legal.deportation-or-removal","tsNs":"services"},{"id":"svtg_01GSKV6RFV1A2ZSCWNCZQKRDRR","tsKey":"legal.employment-authorization","tsNs":"services"},{"id":"svtg_01GSKV6RFVQ03Z4RRFWXN3NQXE","tsKey":"legal.family-petitions","tsNs":"services"},{"id":"svtg_01GSKV6RFVFE9813T9GT5P5XJ1","tsKey":"legal.immigration-detention","tsNs":"services"},{"id":"svtg_01GSKV6RFVP6XKFQRESQ5T1SN0","tsKey":"legal.legal-advice","tsNs":"services"},{"id":"svtg_01GSKV6RFWSRRKKTWRS11A7WBD","tsKey":"legal.legal-hotlines","tsNs":"services"},{"id":"svtg_01GSKV6RFW266MVX19JYQ82ETP","tsKey":"legal.name-and-gender-change","tsNs":"services"},{"id":"svtg_01GSKV6RFWFATRN63MG8TRGWGC","tsKey":"legal.refugee-claim","tsNs":"services"},{"id":"svtg_01GSKV6RFWV64NCTA9N6EB2BQH","tsKey":"legal.residency","tsNs":"services"},{"id":"svtg_01GSKV6RFWDW7FFS4G1CCV1MZZ","tsKey":"legal.special-immigrant-juvenile-status-sijs","tsNs":"services"},{"id":"svtg_01GSKV6RFWB0CKP8KXD3QGY61D","tsKey":"legal.t-visa","tsNs":"services"},{"id":"svtg_01GSKV6RFW7J2BZ9YNX5VN4132","tsKey":"legal.u-visa","tsNs":"services"}]},{"id":"svct_01GSKV6RAB1Z346J16WV29MQ8K","tsKey":"mail.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFY23ND18CMBHZA2J9T","tsKey":"mail.mail","tsNs":"services"}]},{"id":"svct_01GSKV6R520J9H61J6MYMZ21RS","tsKey":"medical.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFWVJDK4PZXBRZBPERN","tsKey":"medical.covid-19-services","tsNs":"services"},{"id":"svtg_01GSKV6RFWC00TM9QNXG7DNPKE","tsKey":"medical.dental-care","tsNs":"services"},{"id":"svtg_01GSKV6RFW56JNR3HAPABQTXR5","tsKey":"medical.hiv-and-sexual-health","tsNs":"services"},{"id":"svtg_01GSKV6RFWJ9K7YZ9KRXTAARNJ","tsKey":"medical.medical-clinics","tsNs":"services"},{"id":"svtg_01GSKV6RFW9QRAS484V6ARM63W","tsKey":"medical.obgyn-services","tsNs":"services"},{"id":"svtg_01GSKV6RFWX72B8HKEMKTHRZ2F","tsKey":"medical.physical-evaluations-for-asylum-claim","tsNs":"services"},{"id":"svtg_01GSKV6RFWR368HC2Z98WQMSBS","tsKey":"medical.physical-evaluations-for-refugee-claim","tsNs":"services"},{"id":"svtg_01GSKV6RFW40MJEGA9VA116TRQ","tsKey":"medical.trans-health","tsNs":"services"},{"id":"svtg_01GSKV6RFXTFVJ3GHWKXMB5SM9","tsKey":"medical.trans-health-gender-affirming-surgery","tsNs":"services"},{"id":"svtg_01GSKV6RFXJ7QPGN2PSDSNX7SQ","tsKey":"medical.trans-health-hormone-and-surgery-letters","tsNs":"services"},{"id":"svtg_01GSKV6RFX7ZZGJDEBDMSZ6PK5","tsKey":"medical.trans-health-hormone-therapy","tsNs":"services"},{"id":"svtg_01GSKV6RFXNFGRM40GWYXT2KKG","tsKey":"medical.trans-health-primary-care","tsNs":"services"},{"id":"svtg_01GSKV6RFXP2Q9WCPE03T80W34","tsKey":"medical.trans-health-speech-therapy","tsNs":"services"}]},{"id":"svct_01GSKV6R7ADHXMGQFKM5YYE5YS","tsKey":"mental-health.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFXS8ZDEPR0NPEMP3M4","tsKey":"mental-health.bipoc-support-groups","tsNs":"services"},{"id":"svtg_01GSKV6RFXHEFFRDVPEQTJZVXY","tsKey":"mental-health.hotlines","tsNs":"services"},{"id":"svtg_01GSKV6RFXHNZZF36K3FF5KX4R","tsKey":"mental-health.private-therapy-and-counseling","tsNs":"services"},{"id":"svtg_01GSKV6RFXD3YQAYC3BXVRF28M","tsKey":"mental-health.psychological-evaluations-for-asylum-claim","tsNs":"services"},{"id":"svtg_01GSKV6RFX912D219PY4FSTT4Q","tsKey":"mental-health.psychological-evaluations-for-refugee-claim","tsNs":"services"},{"id":"svtg_01GSKV6RFXBGA9129FP1D0BNYR","tsKey":"mental-health.substance-use","tsNs":"services"},{"id":"svtg_01GSKV6RFX55KJRY8MRRZ5AJ4V","tsKey":"mental-health.support-for-caregivers-of-trans-youth","tsNs":"services"},{"id":"svtg_01GSKV6RFXZPP8W0S45M685SQF","tsKey":"mental-health.support-for-conversion-therapy-survivors","tsNs":"services"},{"id":"svtg_01GSKV6RFX6M3V19BWPSE1SNCK","tsKey":"mental-health.support-groups","tsNs":"services"},{"id":"svtg_01GSKV6RFX2PB7KXJ1Z3XZ53V6","tsKey":"mental-health.trans-support-groups","tsNs":"services"}]},{"id":"svct_01GSKV6R93766PAS3P6N06J30X","tsKey":"sports-and-entertainment.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSXW3DWC32YXNPFSYR0DV6J0","tsKey":"sports-and-entertainment.sports-and-entertainment","tsNs":"services"}]},{"id":"svct_01GSKV6R98D3JNNKWRHXMYHTPJ","tsKey":"translation-and-interpretation.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFY4D3RZMXHTKFVAR25","tsKey":"translation-and-interpretation.for-healthcare","tsNs":"services"},{"id":"svtg_01GSKV6RFYW1CPAC1R9HRWZ2D8","tsKey":"translation-and-interpretation.for-legal-services","tsNs":"services"},{"id":"svtg_01GSKV6RFYYTY3KBHKPF0PF03A","tsKey":"translation-and-interpretation.general-translation-and-interpretation","tsNs":"services"}]},{"id":"svct_01GSKV6R9WRMQS5SFB29744ZHR","tsKey":"transportation.CATEGORYNAME","tsNs":"services","services":[{"id":"svtg_01GSKV6RFYPGNKENVQ7CD5MF1Y","tsKey":"transportation.transit-passes-and-discounts","tsNs":"services"},{"id":"svtg_01GSKV6RFY6J7NM6D064HK5498","tsKey":"transportation.transportation-assistance","tsNs":"services"}]}] \ No newline at end of file diff --git a/packages/ui/mockData/json/service.getNames.json b/packages/ui/mockData/json/service.getNames.json new file mode 100644 index 0000000000..1ffb431e4c --- /dev/null +++ b/packages/ui/mockData/json/service.getNames.json @@ -0,0 +1 @@ +[{"id":"osvc_01GVH3VEVPF1KEKBTRVTV70WGV","tsKey":"whitman-walker-health.osvc_01GVH3VEVPF1KEKBTRVTV70WGV.name","defaultText":"Get rapid HIV testing"},{"id":"osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ","tsKey":"whitman-walker-health.osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ.name","defaultText":"Receive gender affirming care and services"},{"id":"osvc_01GVH3VEVSNF9NH79R7HC9FHY6","tsKey":"whitman-walker-health.osvc_01GVH3VEVSNF9NH79R7HC9FHY6.name","defaultText":"Get HIV care for newly diagnosed patients"},{"id":"osvc_01GVH3VEVVHBRF1FFXZGMMYG7D","tsKey":"whitman-walker-health.osvc_01GVH3VEVVHBRF1FFXZGMMYG7D.name","defaultText":"Access youth and family support services"},{"id":"osvc_01GVH3VEVY24KAYTWY2ZSFZNBX","tsKey":"whitman-walker-health.osvc_01GVH3VEVY24KAYTWY2ZSFZNBX.name","defaultText":"Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)"},{"id":"osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC","tsKey":"whitman-walker-health.osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC.name","defaultText":"Get legal help with immigration services"},{"id":"osvc_01GVH3VEW2ND36DB0XWAH1PQY0","tsKey":"whitman-walker-health.osvc_01GVH3VEW2ND36DB0XWAH1PQY0.name","defaultText":"Get dental health services for HIV-positive individuals"},{"id":"osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z","tsKey":"whitman-walker-health.osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z.name","defaultText":"Receive behavioral health services"},{"id":"osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG","tsKey":"whitman-walker-health.osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG.name","defaultText":"Get legal help for transgender people to replace and update name/gender marker on immigration documents"},{"id":"osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55","tsKey":"whitman-walker-health.osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55.name","defaultText":"Get the COVID-19 vaccine"},{"id":"osvc_01GVH3VEWHDC6F5FCQHB0H5GD6","tsKey":"whitman-walker-health.osvc_01GVH3VEWHDC6F5FCQHB0H5GD6.name","defaultText":"Get gender affirming hormone therapy"},{"id":"osvc_01GVH3VEWK33YAKZMQ2W3GT4QK","tsKey":"whitman-walker-health.osvc_01GVH3VEWK33YAKZMQ2W3GT4QK.name","defaultText":"Access PEP and PrEP"},{"id":"osvc_01GVH3VEWM65579T29F19QXP8E","tsKey":"whitman-walker-health.osvc_01GVH3VEWM65579T29F19QXP8E.name","defaultText":"Get help with navigating health insurance options"}] \ No newline at end of file diff --git a/packages/ui/mockData/json/service.getOptions.json b/packages/ui/mockData/json/service.getOptions.json new file mode 100644 index 0000000000..25e8b5a848 --- /dev/null +++ b/packages/ui/mockData/json/service.getOptions.json @@ -0,0 +1 @@ +[{"id":"svtg_01GW2HHFBN31248B3MH1486GE9","active":true,"tsKey":"abortion-care.abortion-providers","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVBM0ZHVJ295P2QKR6H","active":true,"tsKey":"abortion-care.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBNJ01JJT2ZGR52T4CM","active":true,"tsKey":"abortion-care.financial-assistance","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVBM0ZHVJ295P2QKR6H","active":true,"tsKey":"abortion-care.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBNE70TNNS3KMKEYG8C","active":true,"tsKey":"abortion-care.lodging-assistance","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVBM0ZHVJ295P2QKR6H","active":true,"tsKey":"abortion-care.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBNPM2CZ5S6A5GZ3CWY","active":true,"tsKey":"abortion-care.mail-order-services","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVBM0ZHVJ295P2QKR6H","active":true,"tsKey":"abortion-care.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBNM7GG79WYXK355RC2","active":true,"tsKey":"abortion-care.mental-health-support","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVBM0ZHVJ295P2QKR6H","active":true,"tsKey":"abortion-care.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBN1NBS5WWDSNB2D9DA","active":true,"tsKey":"abortion-care.travel-assistance","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVBM0ZHVJ295P2QKR6H","active":true,"tsKey":"abortion-care.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBND37W7E730QVADK0B","active":true,"tsKey":"community-support.cultural-centers","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3","active":true,"tsKey":"community-support.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBNJ4CGGZATZZS8DZWR","active":true,"tsKey":"community-support.lgbtq-centers","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3","active":true,"tsKey":"community-support.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBN7M36NVSDWR6M9K20","active":true,"tsKey":"community-support.reception-services","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3","active":true,"tsKey":"community-support.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBN7GFWZJSATZDCK7EM","active":true,"tsKey":"community-support.sponsors","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3","active":true,"tsKey":"community-support.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBN1CFQYR8RPA0KHSV0","active":true,"tsKey":"community-support.spiritual-support","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3","active":true,"tsKey":"community-support.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBN4B2F1W8HAWNK1HVS","active":true,"tsKey":"computers-and-internet.computers-and-internet","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVDKRVB42KT85KA3FM3","active":true,"tsKey":"computers-and-internet.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBP8GY6D2YJ8N1GYTNH","active":true,"tsKey":"education-and-employment.career-counseling","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","active":true,"tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPZFZF43FEHPV32JC8","active":true,"tsKey":"education-and-employment.educational-support-for-lgbtq-youth","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","active":true,"tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPC0P27MT0WMA3C4QH","active":true,"tsKey":"education-and-employment.english-classes","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","active":true,"tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPHEBB94KEDQXEA8AC","active":true,"tsKey":"education-and-employment.language-classes","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","active":true,"tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBP9GBJPZMWM9PA5DX0","active":true,"tsKey":"education-and-employment.leadership-training-and-professional-development","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","active":true,"tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPVH03WA49B1ABGW0F","active":true,"tsKey":"education-and-employment.libraries","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","active":true,"tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPBQ7XNCBG5AJF6W0X","active":true,"tsKey":"education-and-employment.scholarships","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVDX898ZT0QGM471WMV","active":true,"tsKey":"education-and-employment.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBP9CP8V4WGA1QCWVKQ","active":true,"tsKey":"food.food","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVFXW9YFMK4R95ZHBPV","active":true,"tsKey":"food.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPV0NV6R04MR84X9H6","active":true,"tsKey":"food.food-assistance","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVFXW9YFMK4R95ZHBPV","active":true,"tsKey":"food.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPG92H7F9REAG9T2X5","active":true,"tsKey":"housing.drop-in-centers-for-lgbtq-youth","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVF8W7D67CH3NVSQYA6","active":true,"tsKey":"housing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPYW3BJXHHZSM33PMY","active":true,"tsKey":"housing.emergency-housing","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVF8W7D67CH3NVSQYA6","active":true,"tsKey":"housing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBP3A2B8E5F070E9HR6","active":true,"tsKey":"housing.housing-information-and-referrals","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVF8W7D67CH3NVSQYA6","active":true,"tsKey":"housing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBPC9YCGABHSSXEGN82","active":true,"tsKey":"housing.short-term-housing","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVF8W7D67CH3NVSQYA6","active":true,"tsKey":"housing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQ02KJQ7E5NPM3ERNE","active":true,"tsKey":"housing.trans-housing","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVF8W7D67CH3NVSQYA6","active":true,"tsKey":"housing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQYAZE13SSFJ1WZ7J8","active":true,"tsKey":"hygiene-and-clothing.clothes","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVGD7CE9VKYVSZYYTPS","active":true,"tsKey":"hygiene-and-clothing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQ817GKC3K6D6JGMVC","active":true,"tsKey":"hygiene-and-clothing.gender-affirming-items","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVGD7CE9VKYVSZYYTPS","active":true,"tsKey":"hygiene-and-clothing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQNARDK4H2W30GC1QR","active":true,"tsKey":"hygiene-and-clothing.gender-neutral-bathrooms","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVGD7CE9VKYVSZYYTPS","active":true,"tsKey":"hygiene-and-clothing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQBV2YXAS0AQAFXY33","active":true,"tsKey":"hygiene-and-clothing.haircuts-and-stylists","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVGD7CE9VKYVSZYYTPS","active":true,"tsKey":"hygiene-and-clothing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQ0J8FBM5SECT20H4K","active":true,"tsKey":"hygiene-and-clothing.hygiene","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVGD7CE9VKYVSZYYTPS","active":true,"tsKey":"hygiene-and-clothing.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQSF73S87ZRENXHKQV","active":true,"tsKey":"legal.asylum-application","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQ4R0QKMB5XKN0VPR3","active":true,"tsKey":"legal.citizenship","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQEVJCBZC1KSSEB8WN","active":true,"tsKey":"legal.crime-and-discrimination","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQMRW61WVCRR82EJ55","active":true,"tsKey":"legal.deferred-action-for-childhood-arrivals-daca","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQ053M5632FG5BEHAB","active":true,"tsKey":"legal.deportation-or-removal","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQWFR2KPXH7KPX96BD","active":true,"tsKey":"legal.employment-authorization","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQF6937029TNRN458W","active":true,"tsKey":"legal.family-petitions","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBQ78QZGW7YAPDZ2YJS","active":true,"tsKey":"legal.immigration-detention","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRSQG19TQ4G5EVP3AQ","active":true,"tsKey":"legal.legal-advice","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRY1NC6GD7XAHG6AR8","active":true,"tsKey":"legal.legal-hotlines","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRB8R4AQVR2FYE72EC","active":true,"tsKey":"legal.name-and-gender-change","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRYMX5EH2J05SREANF","active":true,"tsKey":"legal.refugee-claim","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBR53GRFZYTNQ8DQ2WF","active":true,"tsKey":"legal.residency","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBR3T44H6K1BKD38JYT","active":true,"tsKey":"legal.special-immigrant-juvenile-status-sijs","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBR0YA6DR2VTE0KCE9N","active":true,"tsKey":"legal.t-visa","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRYVSPX4GA4RZY0XTA","active":true,"tsKey":"legal.u-visa","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVH75KPRYKD49EJHYXX","active":true,"tsKey":"legal.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRJER29EH8BK4STRPE","active":true,"tsKey":"medical.covid-19-services","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRQ76SJBY7973FZFDC","active":true,"tsKey":"medical.dental-care","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRPBXSYN12DWNEAJJ7","active":true,"tsKey":"medical.hiv-and-sexual-health","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRJX151YFSTMPVN7CV","active":true,"tsKey":"medical.medical-clinics","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRDW97D7E0XAPA2XRN","active":true,"tsKey":"medical.obgyn-services","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRZB55NNQXGZDZSC8Y","active":true,"tsKey":"medical.physical-evaluations-for-asylum-claim","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBRK22BMD8KX9DZ9JA5","active":true,"tsKey":"medical.physical-evaluations-for-refugee-claim","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBR4WXR0SMNAKZAHFGK","active":true,"tsKey":"medical.trans-health","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBR506BA0ZA7XZWX23Q","active":true,"tsKey":"medical.trans-health-gender-affirming-surgery","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSBVW6KJACB43FTFNQ","active":true,"tsKey":"medical.trans-health-hormone-and-surgery-letters","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSZJ7ZQD3AVMKQK83N","active":true,"tsKey":"medical.trans-health-hormone-therapy","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSG3BES4BKSW269M8K","active":true,"tsKey":"medical.trans-health-primary-care","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBS5YQWBD8N2V56X5X0","active":true,"tsKey":"medical.trans-health-speech-therapy","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVKVHTWSBY7PVWC5390","active":true,"tsKey":"medical.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBS2G776ZTE6R3ZCWEF","active":true,"tsKey":"mental-health.bipoc-support-groups","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSKZHCJT1X2KWXC8HB","active":true,"tsKey":"mental-health.hotlines","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSTS3SZNE3GBAF9N2B","active":true,"tsKey":"mental-health.private-therapy-and-counseling","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBS617V01ANP6MXPSSX","active":true,"tsKey":"mental-health.psychological-evaluations-for-asylum-claim","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBS6STMXJT0GK4F4YQS","active":true,"tsKey":"mental-health.psychological-evaluations-for-refugee-claim","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSX65WWRQ3BFXHWCJN","active":true,"tsKey":"mental-health.substance-use","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBS72MEA9GWN7FWYWQA","active":true,"tsKey":"mental-health.support-for-caregivers-of-trans-youth","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBS16CJP08CPDSNNVBY","active":true,"tsKey":"mental-health.support-for-conversion-therapy-survivors","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSTFJC21CK33S54BPZ","active":true,"tsKey":"mental-health.support-groups","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSPTXA7Q4W5RKFP53W","active":true,"tsKey":"mental-health.trans-support-groups","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ","active":true,"tsKey":"mental-health.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSYJJ8FRE5QRW4BQVR","active":true,"tsKey":"sports-and-entertainment.sports-and-entertainment","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVPE008PHCPNHZDAWMS","active":true,"tsKey":"sports-and-entertainment.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBSA32322K840DVFNSW","active":true,"tsKey":"translation-and-interpretation.general-translation-and-interpretation","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVPFRQR07PTHMWJDDKS","active":true,"tsKey":"translation-and-interpretation.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBTPY48P18NZR9S3DC8","active":true,"tsKey":"translation-and-interpretation.for-healthcare","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVPFRQR07PTHMWJDDKS","active":true,"tsKey":"translation-and-interpretation.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBTRAAMB3K1JQ2V41GH","active":true,"tsKey":"translation-and-interpretation.for-legal-services","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVPFRQR07PTHMWJDDKS","active":true,"tsKey":"translation-and-interpretation.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBTM1JSTAQKF8DYS9V5","active":true,"tsKey":"transportation.transit-passes-and-discounts","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVPXANJ6MPCDE0S4CWT","active":true,"tsKey":"transportation.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBTQ73C86ARY7WV96WB","active":true,"tsKey":"transportation.transportation-assistance","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVPXANJ6MPCDE0S4CWT","active":true,"tsKey":"transportation.CATEGORYNAME","tsNs":"services"}},{"id":"svtg_01GW2HHFBT91CV2R6WKEX6MYPE","active":true,"tsKey":"mail.mail","tsNs":"services","primaryCategory":{"id":"svct_01GW2HHEVQ0VE6E94T3CZWEW9F","active":true,"tsKey":"mail.CATEGORYNAME","tsNs":"services"}}] \ No newline at end of file diff --git a/packages/ui/mockData/json/serviceArea.getServiceArea.json b/packages/ui/mockData/json/serviceArea.getServiceArea.json new file mode 100644 index 0000000000..c019396afb --- /dev/null +++ b/packages/ui/mockData/json/serviceArea.getServiceArea.json @@ -0,0 +1 @@ +{"id":"svar_01GW2HT8D1B1RET8SVAETPBH05","countries":[],"districts":[{"id":"gdst_01GW2HJ23GMD17FBJMJWD16PZ1","parent":null,"country":{"cca2":"US"},"tsKey":"us-california","tsNs":"gov-dist"},{"id":"gdst_01GW2HJ2S1061RNRAT6S4RJN1S","parent":{"tsKey":"us-california","tsNs":"gov-dist"},"country":{"cca2":"US"},"tsKey":"us-california-san-francisco-county","tsNs":"gov-dist"}]} \ No newline at end of file diff --git a/packages/ui/mockData/json/user.surveyOptions.json b/packages/ui/mockData/json/user.surveyOptions.json new file mode 100644 index 0000000000..e97e35799d --- /dev/null +++ b/packages/ui/mockData/json/user.surveyOptions.json @@ -0,0 +1 @@ +{"community":[{"community":"data to be populated","id":"ucom_RANDOMID","tsKey":"string","tsNs":"user"},{"community":"data to be populated 2","id":"ucom_RANDOMID2","tsKey":"string","tsNs":"user"},{"community":"data to be populated 3","id":"ucom_RANDOMID3","tsKey":"string","tsNs":"user"},{"community":"data to be populated 4","id":"ucom_RANDOMID4","tsKey":"string","tsNs":"user"}],"countries":[{"cca2":"AF","id":"ctry_01GW2HHDKATDZGNR55QRS6Y5NX","tsKey":"AFG.name","tsNs":"country"},{"cca2":"AX","id":"ctry_01GW2HHDKGQRTDPFBTD9GJT3BN","tsKey":"ALA.name","tsNs":"country"},{"cca2":"AL","id":"ctry_01GW2HHDKDSS3YW7W5994KW3ZT","tsKey":"ALB.name","tsNs":"country"},{"cca2":"DZ","id":"ctry_01GW2HHDK6ENG0N2YD2ZXD043N","tsKey":"DZA.name","tsNs":"country"},{"cca2":"AS","id":"ctry_01GW2HHDK67GZQVGA3NZ8PE5SS","tsKey":"ASM.name","tsNs":"country"},{"cca2":"AD","id":"ctry_01GW2HHDKDE152HYH5H1TD8CK6","tsKey":"AND.name","tsNs":"country"},{"cca2":"AO","id":"ctry_01GW2HHDKH6H61ZD7Q4D1EVHP5","tsKey":"AGO.name","tsNs":"country"},{"cca2":"AI","id":"ctry_01GW2HHDK87VQBC3WXQDJJZ6XM","tsKey":"AIA.name","tsNs":"country"},{"cca2":"AQ","id":"ctry_01GW2HHDKAFPAWV4NQHE9VT4BA","tsKey":"ATA.name","tsNs":"country"},{"cca2":"AG","id":"ctry_01GW2HHDKE7QG3QATZ72P7YT7V","tsKey":"ATG.name","tsNs":"country"},{"cca2":"AR","id":"ctry_01GW2HHDKAYQQC5ZYAY81QFF4G","tsKey":"ARG.name","tsNs":"country"},{"cca2":"AM","id":"ctry_01GW2HHDKD3SFPCG8ED0EP3MX3","tsKey":"ARM.name","tsNs":"country"},{"cca2":"AW","id":"ctry_01GW2HHDKGHT708N7RM8QDDEBK","tsKey":"ABW.name","tsNs":"country"},{"cca2":"AU","id":"ctry_01GW2HHDKFCKFTFJP7MARGNHRZ","tsKey":"AUS.name","tsNs":"country"},{"cca2":"AT","id":"ctry_01GW2HHDKEH1KYC4T8236ZSY3C","tsKey":"AUT.name","tsNs":"country"},{"cca2":"AZ","id":"ctry_01GW2HHDKA3CZ3WF381DJZ5D0Z","tsKey":"AZE.name","tsNs":"country"},{"cca2":"BS","id":"ctry_01GW2HHDKH7K0Z1YPRYG3CMEMW","tsKey":"BHS.name","tsNs":"country"},{"cca2":"BH","id":"ctry_01GW2HHDKCBYW7V5T1DWEBPFRV","tsKey":"BHR.name","tsNs":"country"},{"cca2":"BD","id":"ctry_01GW2HHDK67CD2NGY24P7G22SF","tsKey":"BGD.name","tsNs":"country"},{"cca2":"BB","id":"ctry_01GW2HHDK8SPF3A2D6NW2XPTHM","tsKey":"BRB.name","tsNs":"country"},{"cca2":"BY","id":"ctry_01GW2HHDKD14G6PFAPNEMTW5F5","tsKey":"BLR.name","tsNs":"country"},{"cca2":"BE","id":"ctry_01GW2HHDKHCQVPDAC0H3PQV53N","tsKey":"BEL.name","tsNs":"country"},{"cca2":"BZ","id":"ctry_01GW2HHDKEZN2DQG8Y7XVGHA0G","tsKey":"BLZ.name","tsNs":"country"},{"cca2":"BJ","id":"ctry_01GW2HHDKGTGG62NESH7TDS364","tsKey":"BEN.name","tsNs":"country"},{"cca2":"BM","id":"ctry_01GW2HHDKE6FEQT1R83S60KVPT","tsKey":"BMU.name","tsNs":"country"},{"cca2":"BT","id":"ctry_01GW2HHDK7QA15RA6W4YR0YTPQ","tsKey":"BTN.name","tsNs":"country"},{"cca2":"BO","id":"ctry_01GW2HHDKCS87MJP31FAC9S4NB","tsKey":"BOL.name","tsNs":"country"},{"cca2":"BA","id":"ctry_01GW2HHDK6V0QGJ9GRNQCW6A29","tsKey":"BIH.name","tsNs":"country"},{"cca2":"BW","id":"ctry_01GW2HHDKA6G8FACKBG654B237","tsKey":"BWA.name","tsNs":"country"},{"cca2":"BV","id":"ctry_01GW2HHDKDSY01QJC6KX2BRXH8","tsKey":"BVT.name","tsNs":"country"},{"cca2":"BR","id":"ctry_01GW2HHDKGTHZA8H042BMMGF3J","tsKey":"BRA.name","tsNs":"country"},{"cca2":"IO","id":"ctry_01GW2HHDKG19TTZ3XA7NKMZ3TJ","tsKey":"IOT.name","tsNs":"country"},{"cca2":"VG","id":"ctry_01GW2HHDK88EQB8BSKDWEPG76N","tsKey":"VGB.name","tsNs":"country"},{"cca2":"BN","id":"ctry_01GW2HHDKEGN1AYW58P63XQPZ0","tsKey":"BRN.name","tsNs":"country"},{"cca2":"BG","id":"ctry_01GW2HHDKAWJN8K8E3EYVZDENE","tsKey":"BGR.name","tsNs":"country"},{"cca2":"BF","id":"ctry_01GW2HHDKHD6PPNGQWWGD59BQT","tsKey":"BFA.name","tsNs":"country"},{"cca2":"BI","id":"ctry_01GW2HHDKGB5RY2JAQVVF4RC4X","tsKey":"BDI.name","tsNs":"country"},{"cca2":"KH","id":"ctry_01GW2HHDK7T16K1ZJ1PZX1E1ZV","tsKey":"KHM.name","tsNs":"country"},{"cca2":"CM","id":"ctry_01GW2HHDKEZMTF03P4JYAFZRN1","tsKey":"CMR.name","tsNs":"country"},{"cca2":"CA","id":"ctry_01GW2HHDKAWXWYHAAESAA5HH94","tsKey":"CAN.name","tsNs":"country"},{"cca2":"CV","id":"ctry_01GW2HHDKAJ64YAST64W2BJQSV","tsKey":"CPV.name","tsNs":"country"},{"cca2":"BQ","id":"ctry_01GW2HHDK9JPEM2C72VSS71G4H","tsKey":"BES.name","tsNs":"country"},{"cca2":"KY","id":"ctry_01GW2HHDKHA0DCHV26S9FDT5P4","tsKey":"CYM.name","tsNs":"country"},{"cca2":"CF","id":"ctry_01GW2HHDKCW140K2TYTEE750YT","tsKey":"CAF.name","tsNs":"country"},{"cca2":"TD","id":"ctry_01GW2HHDKBDJH4JA3QZRZCDB1C","tsKey":"TCD.name","tsNs":"country"},{"cca2":"CL","id":"ctry_01GW2HHDKAMPFS09WBC3XZHQKX","tsKey":"CHL.name","tsNs":"country"},{"cca2":"CN","id":"ctry_01GW2HHDKGEYB1AM0P2DVYBS7A","tsKey":"CHN.name","tsNs":"country"},{"cca2":"CX","id":"ctry_01GW2HHDKHV33E0R9ZQSE302T3","tsKey":"CXR.name","tsNs":"country"},{"cca2":"CC","id":"ctry_01GW2HHDK66TC7PJG0EVPFMBFP","tsKey":"CCK.name","tsNs":"country"},{"cca2":"CO","id":"ctry_01GW2HHDKE747AN7G49Z1R39X7","tsKey":"COL.name","tsNs":"country"},{"cca2":"KM","id":"ctry_01GW2HHDKE2EJHZ22HF2GWSB4H","tsKey":"COM.name","tsNs":"country"},{"cca2":"CK","id":"ctry_01GW2HHDK8FK98CXW90F5HFRJH","tsKey":"COK.name","tsNs":"country"},{"cca2":"CR","id":"ctry_01GW2HHDK8WHEVKX1JE6V2E5JJ","tsKey":"CRI.name","tsNs":"country"},{"cca2":"HR","id":"ctry_01GW2HHDK9SZZ6W0GPYA0STVYG","tsKey":"HRV.name","tsNs":"country"},{"cca2":"CU","id":"ctry_01GW2HHDK8K7BJH8JW34Q7JK12","tsKey":"CUB.name","tsNs":"country"},{"cca2":"CW","id":"ctry_01GW2HHDKDEHGJVDQC1VDXFM0P","tsKey":"CUW.name","tsNs":"country"},{"cca2":"CY","id":"ctry_01GW2HHDKAZ27CDARTX8QS2JMN","tsKey":"CYP.name","tsNs":"country"},{"cca2":"CZ","id":"ctry_01GW2HHDKDWZR3XW85F2G82SME","tsKey":"CZE.name","tsNs":"country"},{"cca2":"DK","id":"ctry_01GW2HHDKH7Z155XNFE328RJK5","tsKey":"DNK.name","tsNs":"country"},{"cca2":"DJ","id":"ctry_01GW2HHDKBS9SYM4Z85HKVCW7S","tsKey":"DJI.name","tsNs":"country"},{"cca2":"DM","id":"ctry_01GW2HHDKCVDAHZVSVC2YD68XN","tsKey":"DMA.name","tsNs":"country"},{"cca2":"DO","id":"ctry_01GW2HHDKCGAXYVWHRWSD40516","tsKey":"DOM.name","tsNs":"country"},{"cca2":"CD","id":"ctry_01GW2HHDK7AMX8NEKVMBA64YJS","tsKey":"COD.name","tsNs":"country"},{"cca2":"EC","id":"ctry_01GW2HHDKFWZA5DF33HK20AMQK","tsKey":"ECU.name","tsNs":"country"},{"cca2":"EG","id":"ctry_01GW2HHDK9ZK9PGCD8MGCD8YN9","tsKey":"EGY.name","tsNs":"country"},{"cca2":"SV","id":"ctry_01GW2HHDK8HE6ZXBJEN5GGJYBA","tsKey":"SLV.name","tsNs":"country"},{"cca2":"GQ","id":"ctry_01GW2HHDK95TZ43CS71K1P62JD","tsKey":"GNQ.name","tsNs":"country"},{"cca2":"ER","id":"ctry_01GW2HHDKE6ZTA1B0KNFYXA7XZ","tsKey":"ERI.name","tsNs":"country"},{"cca2":"EE","id":"ctry_01GW2HHDKEM266QFKJYJVHC53T","tsKey":"EST.name","tsNs":"country"},{"cca2":"SZ","id":"ctry_01GW2HHDKBT6AMAW7JQ18MAEGF","tsKey":"SWZ.name","tsNs":"country"},{"cca2":"ET","id":"ctry_01GW2HHDKC2S12HZKRBMRC51WB","tsKey":"ETH.name","tsNs":"country"},{"cca2":"FK","id":"ctry_01GW2HHDKE1JW9G222WXWADT5M","tsKey":"FLK.name","tsNs":"country"},{"cca2":"FO","id":"ctry_01GW2HHDKF8Y6KNW8X28APN60W","tsKey":"FRO.name","tsNs":"country"},{"cca2":"FJ","id":"ctry_01GW2HHDKC0MEFFZTGK0RWCRQA","tsKey":"FJI.name","tsNs":"country"},{"cca2":"FI","id":"ctry_01GW2HHDKFPPCXV7F8BNVZZ81G","tsKey":"FIN.name","tsNs":"country"},{"cca2":"FR","id":"ctry_01GW2HHDK6TWQ3BN3PG06DQ3HM","tsKey":"FRA.name","tsNs":"country"},{"cca2":"GF","id":"ctry_01GW2HHDKH5GV00V6MM2F7CZ3P","tsKey":"GUF.name","tsNs":"country"},{"cca2":"PF","id":"ctry_01GW2HHDKFK3ME6G5ZNBVT26XS","tsKey":"PYF.name","tsNs":"country"},{"cca2":"TF","id":"ctry_01GW2HHDKCZ5TVB7QPAQNRS362","tsKey":"ATF.name","tsNs":"country"},{"cca2":"GA","id":"ctry_01GW2HHDK7Z5N9Q2JPZNXP8VPE","tsKey":"GAB.name","tsNs":"country"},{"cca2":"GM","id":"ctry_01GW2HHDK90V1XFYZ6AWB05J58","tsKey":"GMB.name","tsNs":"country"},{"cca2":"GE","id":"ctry_01GW2HHDKCJV96MQND976G21HR","tsKey":"GEO.name","tsNs":"country"},{"cca2":"DE","id":"ctry_01GW2HHDKGGTVBR39ZYJVVDGNY","tsKey":"DEU.name","tsNs":"country"},{"cca2":"GH","id":"ctry_01GW2HHDKEW7A1ZRA4EFNWN6FB","tsKey":"GHA.name","tsNs":"country"},{"cca2":"GI","id":"ctry_01GW2HHDKBW4RFHHBG7R71M5B5","tsKey":"GIB.name","tsNs":"country"},{"cca2":"GR","id":"ctry_01GW2HHDK6GRHQQEYGGJX4CQ1Z","tsKey":"GRC.name","tsNs":"country"},{"cca2":"GL","id":"ctry_01GW2HHDKCBG5RYMSXJ7NE0EQH","tsKey":"GRL.name","tsNs":"country"},{"cca2":"GD","id":"ctry_01GW2HHDKDK9BZQS106Q7H8XJR","tsKey":"GRD.name","tsNs":"country"},{"cca2":"GP","id":"ctry_01GW2HHDKDT4XD73Q57W6631FN","tsKey":"GLP.name","tsNs":"country"},{"cca2":"GU","id":"ctry_01GW2HHDKGZ2XQ8Q9D8GX564MJ","tsKey":"GUM.name","tsNs":"country"},{"cca2":"GT","id":"ctry_01GW2HHDK6BPY9VBW9WR5HDVA5","tsKey":"GTM.name","tsNs":"country"},{"cca2":"GG","id":"ctry_01GW2HHDKDXS2FKHD8YPRKBZPY","tsKey":"GGY.name","tsNs":"country"},{"cca2":"GN","id":"ctry_01GW2HHDKCK11551EN1JD1AMT6","tsKey":"GIN.name","tsNs":"country"},{"cca2":"GW","id":"ctry_01GW2HHDKHXN8ZSHAGKGENMQ4N","tsKey":"GNB.name","tsNs":"country"},{"cca2":"GY","id":"ctry_01GW2HHDKGRJCTDX2GK4ZZDKAS","tsKey":"GUY.name","tsNs":"country"},{"cca2":"HT","id":"ctry_01GW2HHDKBP9EB7HW41MH04MCA","tsKey":"HTI.name","tsNs":"country"},{"cca2":"HM","id":"ctry_01GW2HHDKFVJ4QNETXPR3PGZES","tsKey":"HMD.name","tsNs":"country"},{"cca2":"HN","id":"ctry_01GW2HHDK96FCPGE9HBHC01VDE","tsKey":"HND.name","tsNs":"country"},{"cca2":"HK","id":"ctry_01GW2HHDKF1ZKQGXHGKH67QXYA","tsKey":"HKG.name","tsNs":"country"},{"cca2":"HU","id":"ctry_01GW2HHDKGGQ8SZPJH74RXNCP6","tsKey":"HUN.name","tsNs":"country"},{"cca2":"IS","id":"ctry_01GW2HHDKB1FFT4ZEBATSQXWRB","tsKey":"ISL.name","tsNs":"country"},{"cca2":"IN","id":"ctry_01GW2HHDK7H0GWV1MRQ6EF6E8N","tsKey":"IND.name","tsNs":"country"},{"cca2":"ID","id":"ctry_01GW2HHDKDHB62D7NFGE7RRNDN","tsKey":"IDN.name","tsNs":"country"},{"cca2":"IR","id":"ctry_01GW2HHDKBEYBGKWE7BCHXZHJ6","tsKey":"IRN.name","tsNs":"country"},{"cca2":"IQ","id":"ctry_01GW2HHDKGM9N3RGKASW4677KV","tsKey":"IRQ.name","tsNs":"country"},{"cca2":"IE","id":"ctry_01GW2HHDKF939YJGVTR7H30KPX","tsKey":"IRL.name","tsNs":"country"},{"cca2":"IM","id":"ctry_01GW2HHDKFFE67B6CGZGV25R1C","tsKey":"IMN.name","tsNs":"country"},{"cca2":"IL","id":"ctry_01GW2HHDK8JM827C3VY37CM7TF","tsKey":"ISR.name","tsNs":"country"},{"cca2":"IT","id":"ctry_01GW2HHDK65BRH9H4P9YZH3P3F","tsKey":"ITA.name","tsNs":"country"},{"cca2":"CI","id":"ctry_01GW2HHDKHRGA9ME9MF56RDYYC","tsKey":"CIV.name","tsNs":"country"},{"cca2":"JM","id":"ctry_01GW2HHDKEVZK4MDJTHQ025AQG","tsKey":"JAM.name","tsNs":"country"},{"cca2":"JP","id":"ctry_01GW2HHDKFEWN5X3FJ1QFQ55NW","tsKey":"JPN.name","tsNs":"country"},{"cca2":"JE","id":"ctry_01GW2HHDK8NAN0FT6100XB79PX","tsKey":"JEY.name","tsNs":"country"},{"cca2":"JO","id":"ctry_01GW2HHDK6Q6BB2C5DWKAYKVP9","tsKey":"JOR.name","tsNs":"country"},{"cca2":"KZ","id":"ctry_01GW2HHDKAE2X1VJCYX05SQ15T","tsKey":"KAZ.name","tsNs":"country"},{"cca2":"KE","id":"ctry_01GW2HHDK9D4RQ30ZEV336H36F","tsKey":"KEN.name","tsNs":"country"},{"cca2":"KI","id":"ctry_01GW2HHDKGR9X8QJBDSK84PAG1","tsKey":"KIR.name","tsNs":"country"},{"cca2":"XK","id":"ctry_01GW2HHDKA32KTYFEBFF1FRX6G","tsKey":"UNK.name","tsNs":"country"},{"cca2":"KW","id":"ctry_01GW2HHDKE2127XE2CXSCB0SWG","tsKey":"KWT.name","tsNs":"country"},{"cca2":"KG","id":"ctry_01GW2HHDKFGDMKVKEAVVCVHXG4","tsKey":"KGZ.name","tsNs":"country"},{"cca2":"LA","id":"ctry_01GW2HHDKG8SKA53C146FV5E0G","tsKey":"LAO.name","tsNs":"country"},{"cca2":"LV","id":"ctry_01GW2HHDK69KVF1HPHBRBTSSBE","tsKey":"LVA.name","tsNs":"country"},{"cca2":"LB","id":"ctry_01GW2HHDK9NG4F38ZGH49JE311","tsKey":"LBN.name","tsNs":"country"},{"cca2":"LS","id":"ctry_01GW2HHDKH74J20AXR1GWGX6ZQ","tsKey":"LSO.name","tsNs":"country"},{"cca2":"LR","id":"ctry_01GW2HHDKDHEQGH45498FKFDM8","tsKey":"LBR.name","tsNs":"country"},{"cca2":"LY","id":"ctry_01GW2HHDKC77VK7AC2YXTJFP9H","tsKey":"LBY.name","tsNs":"country"},{"cca2":"LI","id":"ctry_01GW2HHDKBKDT96T91NCRFZE8A","tsKey":"LIE.name","tsNs":"country"},{"cca2":"LT","id":"ctry_01GW2HHDKC6BNE39T2DV3QC4NJ","tsKey":"LTU.name","tsNs":"country"},{"cca2":"LU","id":"ctry_01GW2HHDKBTPBSDQE1XHBMBXJE","tsKey":"LUX.name","tsNs":"country"},{"cca2":"MO","id":"ctry_01GW2HHDK9114P6V7VFFNFTMNP","tsKey":"MAC.name","tsNs":"country"},{"cca2":"MG","id":"ctry_01GW2HHDKBN3B46NQY3YEACJ0K","tsKey":"MDG.name","tsNs":"country"},{"cca2":"MW","id":"ctry_01GW2HHDKHRXXQZHPZYDV3SNVZ","tsKey":"MWI.name","tsNs":"country"},{"cca2":"MY","id":"ctry_01GW2HHDKEZED648DCY8RGH5NA","tsKey":"MYS.name","tsNs":"country"},{"cca2":"MV","id":"ctry_01GW2HHDK6FR8HMD3W523Q3WRA","tsKey":"MDV.name","tsNs":"country"},{"cca2":"ML","id":"ctry_01GW2HHDKCFG7G5S12F71S6QG5","tsKey":"MLI.name","tsNs":"country"},{"cca2":"MT","id":"ctry_01GW2HHDKDD06KYX7CY9JJR1SQ","tsKey":"MLT.name","tsNs":"country"},{"cca2":"MH","id":"ctry_01GW2HHDK8HTCM0MWQXBJRXEYB","tsKey":"MHL.name","tsNs":"country"},{"cca2":"MQ","id":"ctry_01GW2HHDKB96KWQYA4T0D8VXTV","tsKey":"MTQ.name","tsNs":"country"},{"cca2":"MR","id":"ctry_01GW2HHDKAR1506PSRF3PB1HYX","tsKey":"MRT.name","tsNs":"country"},{"cca2":"MU","id":"ctry_01GW2HHDK7DF62BBZYJCBFGVYY","tsKey":"MUS.name","tsNs":"country"},{"cca2":"YT","id":"ctry_01GW2HHDK6BG4CBH38VKSZ9M4X","tsKey":"MYT.name","tsNs":"country"},{"cca2":"MX","id":"ctry_01GW2HHDKB9DG2T2YZM5MFFVX9","tsKey":"MEX.name","tsNs":"country"},{"cca2":"FM","id":"ctry_01GW2HHDKHHXXT7NMR9TQ0TY97","tsKey":"FSM.name","tsNs":"country"},{"cca2":"MD","id":"ctry_01GW2HHDKCZNJN6F1J1JTQRZ25","tsKey":"MDA.name","tsNs":"country"},{"cca2":"MC","id":"ctry_01GW2HHDKGB3V0H2DKQA84VA5K","tsKey":"MCO.name","tsNs":"country"},{"cca2":"MN","id":"ctry_01GW2HHDKC2Q96XZGFSTMMQPNB","tsKey":"MNG.name","tsNs":"country"},{"cca2":"ME","id":"ctry_01GW2HHDKGA35BCNN91RB2DFX7","tsKey":"MNE.name","tsNs":"country"},{"cca2":"MS","id":"ctry_01GW2HHDKHCN2Q3JMYRQ7HJ5VH","tsKey":"MSR.name","tsNs":"country"},{"cca2":"MA","id":"ctry_01GW2HHDKBJ9NNQ06K5V64NAB8","tsKey":"MAR.name","tsNs":"country"},{"cca2":"MZ","id":"ctry_01GW2HHDK8VJ7Z7R0D99K5E4AN","tsKey":"MOZ.name","tsNs":"country"},{"cca2":"MM","id":"ctry_01GW2HHDK99MQM7GZ8EN4WZ9FK","tsKey":"MMR.name","tsNs":"country"},{"cca2":"NA","id":"ctry_01GW2HHDKCGYGA9KDYNQ3CK7H7","tsKey":"NAM.name","tsNs":"country"},{"cca2":"NR","id":"ctry_01GW2HHDK79QNCV8EVYND8E6MY","tsKey":"NRU.name","tsNs":"country"},{"cca2":"NP","id":"ctry_01GW2HHDKFT9BZY0XPP6DESZX8","tsKey":"NPL.name","tsNs":"country"},{"cca2":"NL","id":"ctry_01GW2HHDK76HGWY2MNZTFSTT61","tsKey":"NLD.name","tsNs":"country"},{"cca2":"NC","id":"ctry_01GW2HHDK7HMC32S6PHPMFACZX","tsKey":"NCL.name","tsNs":"country"},{"cca2":"NZ","id":"ctry_01GW2HHDKEKF565F1E5ZPTXFHE","tsKey":"NZL.name","tsNs":"country"},{"cca2":"NI","id":"ctry_01GW2HHDK7372NTNTPP3V9BPGV","tsKey":"NIC.name","tsNs":"country"},{"cca2":"NE","id":"ctry_01GW2HHDKHMY5MATBT7VET2W95","tsKey":"NER.name","tsNs":"country"},{"cca2":"NG","id":"ctry_01GW2HHDK8AXT584ZTWBN739SN","tsKey":"NGA.name","tsNs":"country"},{"cca2":"NU","id":"ctry_01GW2HHDK9B08AAMK0WGCVR313","tsKey":"NIU.name","tsNs":"country"},{"cca2":"NF","id":"ctry_01GW2HHDKGHKX9XHGFYN7FAF95","tsKey":"NFK.name","tsNs":"country"},{"cca2":"MP","id":"ctry_01GW2HHDKFJ4Q7PBTTN4GSMPV0","tsKey":"MNP.name","tsNs":"country"},{"cca2":"KP","id":"ctry_01GW2HHDKCQX4EJEVCEME3EEBS","tsKey":"PRK.name","tsNs":"country"},{"cca2":"MK","id":"ctry_01GW2HHDKAKGTGCFFE8HQGZXF4","tsKey":"MKD.name","tsNs":"country"},{"cca2":"NO","id":"ctry_01GW2HHDK74HTQCYV1EVM79B1G","tsKey":"NOR.name","tsNs":"country"},{"cca2":"OM","id":"ctry_01GW2HHDKH3SMD6TVK8MPGE6DD","tsKey":"OMN.name","tsNs":"country"},{"cca2":"PK","id":"ctry_01GW2HHDKDDHRPPGSEFG2P69F0","tsKey":"PAK.name","tsNs":"country"},{"cca2":"PW","id":"ctry_01GW2HHDKBRDF1DMR5DA9DAT7K","tsKey":"PLW.name","tsNs":"country"},{"cca2":"PS","id":"ctry_01GW2HHDKGRRZM6X62GJ3M62Z4","tsKey":"PSE.name","tsNs":"country"},{"cca2":"PA","id":"ctry_01GW2HHDK7JEDGYF9BQBZVDW0X","tsKey":"PAN.name","tsNs":"country"},{"cca2":"PG","id":"ctry_01GW2HHDK9HZ6M9Q2PJEX8T6HA","tsKey":"PNG.name","tsNs":"country"},{"cca2":"PY","id":"ctry_01GW2HHDKF47X5KGDW8RWF841A","tsKey":"PRY.name","tsNs":"country"},{"cca2":"PE","id":"ctry_01GW2HHDKBRRZ84X368SH12W7Q","tsKey":"PER.name","tsNs":"country"},{"cca2":"PH","id":"ctry_01GW2HHDKAQTGEVED1E27QW61N","tsKey":"PHL.name","tsNs":"country"},{"cca2":"PN","id":"ctry_01GW2HHDKJRNN53ENTSS4Z001K","tsKey":"PCN.name","tsNs":"country"},{"cca2":"PL","id":"ctry_01GW2HHDKBRG2CC67WN648YK7S","tsKey":"POL.name","tsNs":"country"},{"cca2":"PT","id":"ctry_01GW2HHDK9W45HXETV96K8CZAZ","tsKey":"PRT.name","tsNs":"country"},{"cca2":"PR","id":"ctry_01GW2HHDK7PACTC9GJ2XBMVPKY","tsKey":"PRI.name","tsNs":"country"},{"cca2":"QA","id":"ctry_01GW2HHDKA77DT55ZPJ8XKM8P3","tsKey":"QAT.name","tsNs":"country"},{"cca2":"CG","id":"ctry_01GW2HHDKD20967VJAPNPBARXM","tsKey":"COG.name","tsNs":"country"},{"cca2":"RE","id":"ctry_01GW2HHDK7HX3TFSB0HX6YDCRR","tsKey":"REU.name","tsNs":"country"},{"cca2":"RO","id":"ctry_01GW2HHDKAGCFGK8W1ZFE62QKQ","tsKey":"ROU.name","tsNs":"country"},{"cca2":"RU","id":"ctry_01GW2HHDK8A3W54F0AW64VV2GD","tsKey":"RUS.name","tsNs":"country"},{"cca2":"RW","id":"ctry_01GW2HHDK8ZYZHYB9CAVW6C4ER","tsKey":"RWA.name","tsNs":"country"},{"cca2":"BL","id":"ctry_01GW2HHDKH0MMEJM9R74Z359R6","tsKey":"BLM.name","tsNs":"country"},{"cca2":"SH","id":"ctry_01GW2HHDKD9T5SF5CAMVPA1M4F","tsKey":"SHN.name","tsNs":"country"},{"cca2":"KN","id":"ctry_01GW2HHDKC0N6MV90J9VWJ6CQN","tsKey":"KNA.name","tsNs":"country"},{"cca2":"LC","id":"ctry_01GW2HHDKFPY9T4YYDFWGBZP5P","tsKey":"LCA.name","tsNs":"country"},{"cca2":"MF","id":"ctry_01GW2HHDKD311V08MQJWG7CK03","tsKey":"MAF.name","tsNs":"country"},{"cca2":"PM","id":"ctry_01GW2HHDK8MZVCAHNP3EBTHDGH","tsKey":"SPM.name","tsNs":"country"},{"cca2":"VC","id":"ctry_01GW2HHDKFYB0C2FBC8KQ50M36","tsKey":"VCT.name","tsNs":"country"},{"cca2":"WS","id":"ctry_01GW2HHDKFTYX6T84QB1WZYYAY","tsKey":"WSM.name","tsNs":"country"},{"cca2":"SM","id":"ctry_01GW2HHDK796T1HRBRQMRV2ZGH","tsKey":"SMR.name","tsNs":"country"},{"cca2":"ST","id":"ctry_01GW2HHDK73TNXH3DFC5BV244P","tsKey":"STP.name","tsNs":"country"},{"cca2":"SA","id":"ctry_01GW2HHDKE6SRWQT7YKMEV7N5Y","tsKey":"SAU.name","tsNs":"country"},{"cca2":"SN","id":"ctry_01GW2HHDKJ4620D1AB421E7JYX","tsKey":"SEN.name","tsNs":"country"},{"cca2":"RS","id":"ctry_01GW2HHDKCGEP7FXQHWTQWB904","tsKey":"SRB.name","tsNs":"country"},{"cca2":"SC","id":"ctry_01GW2HHDKHF02X3NEPGZ12ZFZV","tsKey":"SYC.name","tsNs":"country"},{"cca2":"SL","id":"ctry_01GW2HHDK70QBRG8S7ZXZP89W9","tsKey":"SLE.name","tsNs":"country"},{"cca2":"SG","id":"ctry_01GW2HHDK6FGT7BES1NPX66JTQ","tsKey":"SGP.name","tsNs":"country"},{"cca2":"SX","id":"ctry_01GW2HHDKGQMAVVKJ3SPPCS689","tsKey":"SXM.name","tsNs":"country"},{"cca2":"SK","id":"ctry_01GW2HHDKG21ZM449SKC9HB5YK","tsKey":"SVK.name","tsNs":"country"},{"cca2":"SI","id":"ctry_01GW2HHDK95AW3T41X8R552F6R","tsKey":"SVN.name","tsNs":"country"},{"cca2":"SB","id":"ctry_01GW2HHDKC5TFN4HP9KQ7QCQR9","tsKey":"SLB.name","tsNs":"country"},{"cca2":"SO","id":"ctry_01GW2HHDKBHVDM3WCVS2THFMHT","tsKey":"SOM.name","tsNs":"country"},{"cca2":"ZA","id":"ctry_01GW2HHDKDNEGQ31JPB4V9BBMK","tsKey":"ZAF.name","tsNs":"country"},{"cca2":"GS","id":"ctry_01GW2HHDKBM1E4N9900Q4N942Y","tsKey":"SGS.name","tsNs":"country"},{"cca2":"KR","id":"ctry_01GW2HHDKH6NG85CKMSESSPHQK","tsKey":"KOR.name","tsNs":"country"},{"cca2":"SS","id":"ctry_01GW2HHDKD48PB3V9R7ZWXZ3KP","tsKey":"SSD.name","tsNs":"country"},{"cca2":"ES","id":"ctry_01GW2HHDKAMRVA2E0TZBFPX7VF","tsKey":"ESP.name","tsNs":"country"},{"cca2":"LK","id":"ctry_01GW2HHDKHZNVZP299TK5QC9X6","tsKey":"LKA.name","tsNs":"country"},{"cca2":"SD","id":"ctry_01GW2HHDKH7NVGT1JBPB5B9SP3","tsKey":"SDN.name","tsNs":"country"},{"cca2":"SR","id":"ctry_01GW2HHDKHZP2AGK419VGS2YQ0","tsKey":"SUR.name","tsNs":"country"},{"cca2":"SJ","id":"ctry_01GW2HHDKEG4RY89ACRQMNT8SB","tsKey":"SJM.name","tsNs":"country"},{"cca2":"SE","id":"ctry_01GW2HHDKBCAGQ1RJGC3ZP6Z5S","tsKey":"SWE.name","tsNs":"country"},{"cca2":"CH","id":"ctry_01GW2HHDKGFE1AY05PY62XEWPM","tsKey":"CHE.name","tsNs":"country"},{"cca2":"SY","id":"ctry_01GW2HHDKBCYJXSMFM5N5VW3Q5","tsKey":"SYR.name","tsNs":"country"},{"cca2":"TW","id":"ctry_01GW2HHDKHMX2CYG3GWYA23W4B","tsKey":"TWN.name","tsNs":"country"},{"cca2":"TJ","id":"ctry_01GW2HHDKAHQVZWP2NHE3A02B5","tsKey":"TJK.name","tsNs":"country"},{"cca2":"TZ","id":"ctry_01GW2HHDKE97QHYGJXTAGWENKK","tsKey":"TZA.name","tsNs":"country"},{"cca2":"TH","id":"ctry_01GW2HHDKGVAGE7SGTXWD5V2EP","tsKey":"THA.name","tsNs":"country"},{"cca2":"TL","id":"ctry_01GW2HHDKF1NR34T2G6FMKQCYD","tsKey":"TLS.name","tsNs":"country"},{"cca2":"TG","id":"ctry_01GW2HHDKDMWST2K7SVAAEP7K5","tsKey":"TGO.name","tsNs":"country"},{"cca2":"TK","id":"ctry_01GW2HHDKFRPGM3P3HD5747R23","tsKey":"TKL.name","tsNs":"country"},{"cca2":"TO","id":"ctry_01GW2HHDKG1TWFSYE4QQ6CRFX7","tsKey":"TON.name","tsNs":"country"},{"cca2":"TT","id":"ctry_01GW2HHDK94QVSXT8Q12EDB4XP","tsKey":"TTO.name","tsNs":"country"},{"cca2":"TN","id":"ctry_01GW2HHDKGG7JZ2RN968FJNWJ8","tsKey":"TUN.name","tsNs":"country"},{"cca2":"TR","id":"ctry_01GW2HHDK8NAY2T3GHNV1HVD3M","tsKey":"TUR.name","tsNs":"country"},{"cca2":"TM","id":"ctry_01GW2HHDKEFVF6N0VM03AGGZF7","tsKey":"TKM.name","tsNs":"country"},{"cca2":"TC","id":"ctry_01GW2HHDKEE1FJ2XTH7MA2AZP1","tsKey":"TCA.name","tsNs":"country"},{"cca2":"TV","id":"ctry_01GW2HHDK7BMH7NEWWCXXE4XTG","tsKey":"TUV.name","tsNs":"country"},{"cca2":"UG","id":"ctry_01GW2HHDKF91Z0RAW6TC6P5TAP","tsKey":"UGA.name","tsNs":"country"},{"cca2":"UA","id":"ctry_01GW2HHDKBX833SWMMRHFEXGDG","tsKey":"UKR.name","tsNs":"country"},{"cca2":"AE","id":"ctry_01GW2HHDKDXBNPG01NBMPKYFZ2","tsKey":"ARE.name","tsNs":"country"},{"cca2":"GB","id":"ctry_01GW2HHDKFTPR1W2P2M9E081J5","tsKey":"GBR.name","tsNs":"country"},{"cca2":"US","id":"ctry_01GW2HHDK9M26M80SG63T21SVH","tsKey":"USA.name","tsNs":"country"},{"cca2":"UM","id":"ctry_01GW2HHDKCRS9KW4FG2WR2GG06","tsKey":"UMI.name","tsNs":"country"},{"cca2":"VI","id":"ctry_01GW2HHDK9DG12Y7RQMVEE5XSQ","tsKey":"VIR.name","tsNs":"country"},{"cca2":"UY","id":"ctry_01GW2HHDKAZYVYFHDZNZDE4HPB","tsKey":"URY.name","tsNs":"country"},{"cca2":"UZ","id":"ctry_01GW2HHDKH6KGE8D69GPF7SSAJ","tsKey":"UZB.name","tsNs":"country"},{"cca2":"VU","id":"ctry_01GW2HHDKBARW56WYXTBMBX9Z8","tsKey":"VUT.name","tsNs":"country"},{"cca2":"VA","id":"ctry_01GW2HHDKD09MHFTWE9SKVMMJ0","tsKey":"VAT.name","tsNs":"country"},{"cca2":"VE","id":"ctry_01GW2HHDKGJG43HR2M2T7JQ5DC","tsKey":"VEN.name","tsNs":"country"},{"cca2":"VN","id":"ctry_01GW2HHDKFX9C6AWNQ3F32P95P","tsKey":"VNM.name","tsNs":"country"},{"cca2":"WF","id":"ctry_01GW2HHDKEYSJWN1W0AYDS0NH4","tsKey":"WLF.name","tsNs":"country"},{"cca2":"EH","id":"ctry_01GW2HHDK87660QN220M6T4S2K","tsKey":"ESH.name","tsNs":"country"},{"cca2":"YE","id":"ctry_01GW2HHDKA60427HJJGXNGC3EV","tsKey":"YEM.name","tsNs":"country"},{"cca2":"ZM","id":"ctry_01GW2HHDKFPXSJ18WSJ8GEZKJ0","tsKey":"ZMB.name","tsNs":"country"},{"cca2":"ZW","id":"ctry_01GW2HHDKENXBKBZTFJ4PA6Z2C","tsKey":"ZWE.name","tsNs":"country"}],"ethnicity":[{"ethnicity":"American Indian/Native American/Indigenous Person","id":"ueth_00000000006F1H2JQ07NJTREXW","tsKey":"eth-american-indiannative-americanindigenous-person","tsNs":"user"},{"ethnicity":"Asian","id":"ueth_0000000000M2F0RHECPMF0MR6X","tsKey":"eth-asian","tsNs":"user"},{"ethnicity":"Biracial/Multiracial","id":"ueth_0000000000KEK72B3N4QHVTA3A","tsKey":"eth-biracialmultiracial","tsNs":"user"},{"ethnicity":"Black","id":"ueth_00000000008P0CEKTFHPSB5ZMH","tsKey":"eth-black","tsNs":"user"},{"ethnicity":"Latino/a/x/Hispanic","id":"ueth_0000000000PNE879MSM1953PAJ","tsKey":"eth-latinoaxhispanic","tsNs":"user"},{"ethnicity":"Middle Eastern/North African","id":"ueth_0000000000VHKHZCYN8Y1XKKSM","tsKey":"eth-middle-easternnorth-african","tsNs":"user"},{"ethnicity":"Native Hawaiian/Pacific Islander","id":"ueth_00000000000050AVJB64RKM26N","tsKey":"eth-native-hawaiianpacific-islander","tsNs":"user"},{"ethnicity":"Other","id":"ueth_0000000000E5KVESBAY6NPGJW3","tsKey":"eth-other","tsNs":"user"},{"ethnicity":"Prefer not to say","id":"ueth_0000000000408WMYJX00AG1QPW","tsKey":"eth-prefer-not-to-say","tsNs":"user"},{"ethnicity":"South Asian","id":"ueth_00000000008WXJ64CV556WDFX8","tsKey":"eth-south-asian","tsNs":"user"},{"ethnicity":"White","id":"ueth_0000000000MGT66394R9VSBBBT","tsKey":"eth-white","tsNs":"user"}],"immigration":[{"id":"uimm_01GW2HHHS4V1GC918V546W60KD","status":"Asylee (granted asylum)","tsKey":"immigration-asylee","tsNs":"user"},{"id":"uimm_01GW2HHHS4Y4GY5HY7HCSG8YK7","status":"Asylum seeker","tsKey":"immigration-asylum-seeker","tsNs":"user"},{"id":"uimm_01GW2HHHS402DH862YGCY0PCMT","status":"Dreamer (DACA recipient)","tsKey":"immigration-dreamer","tsNs":"user"},{"id":"uimm_01H2RRM42VTDFX1TE9T0JEP0RC","status":"None","tsKey":"immigration-none","tsNs":"user"},{"id":"uimm_01GW2HHHS4G6TA7FVKXBC3NT8M","status":"Other immigrant","tsKey":"immigration-immigrant","tsNs":"user"},{"id":"uimm_01H2RS1637PN3MECKRZXJRPGM2","status":"Prefer not to say","tsKey":"immigration-prefer-not-to-say","tsNs":"user"},{"id":"uimm_01GW2HHHS4DQRF2AJR7RTQ1WDJ","status":"Refugee","tsKey":"immigration-refugee","tsNs":"user"}],"sog":[{"id":"usog_01GW2HHHJ24AEGCKRWGJBM40VH","identifyAs":"Ally","tsKey":"identity-ally","tsNs":"user"},{"id":"usog_01GW2HHHJ2SW75W5HN05XSYPBD","identifyAs":"Asexual","tsKey":"identity-asexual","tsNs":"user"},{"id":"usog_01GW2HHHJ20BNN1QNFSKCFZJY0","identifyAs":"Bisexual","tsKey":"identity-bisexual","tsNs":"user"},{"id":"usog_01GW2HHHJ2B12W0TQJK6C40QVC","identifyAs":"Gay","tsKey":"identity-gay","tsNs":"user"},{"id":"usog_01GW2HHHJ21DDB2R0D19R7M7JH","identifyAs":"Intersex","tsKey":"identity-intersex","tsNs":"user"},{"id":"usog_01GW2HHHJ2QDQXKF5NP5RS5Y39","identifyAs":"Lesbian","tsKey":"identity-lesbian","tsNs":"user"},{"id":"usog_01GW2HHHJ23WPP795Y15Q870KV","identifyAs":"Man","tsKey":"identity-man","tsNs":"user"},{"id":"usog_01GW2HHHJ2Z9CG508G0Y7DYPGE","identifyAs":"Nonbinary","tsKey":"identity-nonbinary","tsNs":"user"},{"id":"usog_01GW2HHHJ2DHFBR3CMFMCYH0K5","identifyAs":"Pansexual","tsKey":"identity-pansexual","tsNs":"user"},{"id":"usog_01GW2HHHJ2WQZ68B82GX495XF8","identifyAs":"Queer","tsKey":"identity-queer","tsNs":"user"},{"id":"usog_01GW2HHHJ2HH62GFVMWJCSA4XT","identifyAs":"Questioning","tsKey":"identity-questioning","tsNs":"user"},{"id":"usog_01GW2HHHJ37AW3SB0Y8BDGQF8N","identifyAs":"Straight","tsKey":"identity-straight","tsNs":"user"},{"id":"usog_01GW2HHHJ3PQQ2XHK0AGDWCFJB","identifyAs":"Transgender","tsKey":"identity-transgender","tsNs":"user"},{"id":"usog_01GW2HHHJ3N748VNX751AY4KPE","identifyAs":"Woman","tsKey":"identity-woman","tsNs":"user"}]} \ No newline at end of file diff --git a/packages/ui/mockData/location.ts b/packages/ui/mockData/location.ts index 42e13608f5..a4a1f70477 100644 --- a/packages/ui/mockData/location.ts +++ b/packages/ui/mockData/location.ts @@ -1,104 +1,40 @@ -import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' - -const locationData = { - getAddress: { - id: 'oloc_01GVH3VEVBERFNA9PHHJYEBGA3', - data: { - name: 'Whitman-Walker 1525', - street1: '1525 14th St. NW ', - street2: '', - city: 'Washington', - postCode: '20005', - govDistId: 'gdst_01GW2HJ5A278S2G84AB3N9FCW0', - countryId: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - latitude: 38.91, - longitude: -77.032, - mailOnly: false, - published: true, - accessible: { - supplementId: undefined, - boolean: undefined, - }, - services: [ - 'osvc_01GVH3VEVSNF9NH79R7HC9FHY6', - 'osvc_01GVH3VEW2ND36DB0XWAH1PQY0', - 'osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z', - 'osvc_01GVH3VEWHDC6F5FCQHB0H5GD6', - 'osvc_01GVH3VEWK33YAKZMQ2W3GT4QK', - ], - }, - }, - forLocationCard: { - id: 'oloc_01GVH3VEVBERFNA9PHHJYEBGA3', - name: 'Whitman-Walker 1525', - street1: '1525 14th St. NW ', - street2: null, - city: 'Washington', - postCode: '20005', - latitude: 38.91, - longitude: -77.032, - country: 'US', - govDist: { - abbrev: 'DC', - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - }, - phones: [], - attributes: [], - services: ['medical.CATEGORYNAME', 'mental-health.CATEGORYNAME'], - }, - forVisitCard: { - id: 'oloc_01GVH3VEVBERFNA9PHHJYEBGA3', - name: 'Whitman-Walker 1525', - street1: '1525 14th St. NW ', - street2: null, - city: 'Washington', - postCode: '20005', - country: { - cca2: 'US', - }, - govDist: { - abbrev: 'DC', - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - }, - latitude: 38.91, - longitude: -77.032, - remote: undefined, - }, - forGoogleMaps: { - locations: [ - { - id: 'oloc_01GVH3VEVBERFNA9PHHJYEBGA3', - name: 'Whitman-Walker 1525', - latitude: 38.91, - longitude: -77.032, - }, - ], - bounds: null, - center: { - lat: 38.91, - lng: -77.032, - }, - zoom: 13, - }, -} satisfies MockDataObject<'location'> +import { type ApiOutput } from '@weareinreach/api' +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' export const location = { getAddress: getTRPCMock({ path: ['location', 'getAddress'], - response: locationData.getAddress, + response: async () => { + const { default: data } = await import('./json/location.getAddress.json') + return data as ApiOutput['location']['getAddress'] + }, }), forLocationCard: getTRPCMock({ path: ['location', 'forLocationCard'], - response: locationData.forLocationCard, + response: async () => { + const { default: data } = await import('./json/location.forLocationCard.json') + return data as ApiOutput['location']['forLocationCard'] + }, }), forVisitCard: getTRPCMock({ path: ['location', 'forVisitCard'], - response: locationData.forVisitCard, + response: async () => { + const { default: data } = await import('./json/location.forVisitCard.json') + return data as ApiOutput['location']['forVisitCard'] + }, }), forGoogleMaps: getTRPCMock({ path: ['location', 'forGoogleMaps'], - response: locationData.forGoogleMaps, + response: async () => { + const { default: data } = await import('./json/location.forGoogleMaps.json') + return data as ApiOutput['location']['forGoogleMaps'] + }, + }), + getNames: getTRPCMock({ + path: ['location', 'getNames'], + response: async () => { + const { default: data } = await import('./json/location.getNames.json') + return data + }, }), } satisfies MockHandlerObject<'location'> diff --git a/packages/ui/mockData/locationCard.ts b/packages/ui/mockData/locationCard.ts deleted file mode 100644 index 1f78539301..0000000000 --- a/packages/ui/mockData/locationCard.ts +++ /dev/null @@ -1,1970 +0,0 @@ -// http://localhost:3000/api/panel -// location.getById: oloc_01GVH3VEVBERFNA9PHHJYEBGA3 - -export const locationMock = { - govDist: { - govDistType: { - tsNs: 'gov-dist', - tsKey: 'type-district', - }, - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - abbrev: 'DC', - }, - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - attributes: [], - emails: [], - websites: [], - phones: [], - photos: [], - hours: [], - reviews: [], - services: [ - { - service: { - serviceName: { - key: 'whitman-walker-health.osvc_01GVH3VEVSNF9NH79R7HC9FHY6.name', - ns: 'org-data', - tsKey: { - text: 'Get HIV care for newly diagnosed patients', - }, - }, - description: { - key: 'whitman-walker-health.osvc_01GVH3VEVSNF9NH79R7HC9FHY6.description', - ns: 'org-data', - tsKey: { - text: "Whitman-Walker's Red Carpet program is their HIV Specialty Care program for people newly diagnosed with HIV or new to HIV care. Red Carpet is their way of connecting people living with HIV to medical care in a smooth and fast transition that fits easily into daily life. If you have insurance, please call us at 202.745.7000 and mention “Red Carpet.” Their staff will let you know whether they accept your insurance plan and will help you schedule an appointment. If you do not have insurance, please contact their Public Benefits & Insurance Navigation team at 202.745.6151.", - }, - }, - hours: [], - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFV3BADK80TG0DXXFPMM', - tsKey: 'additional.has-confidentiality-policy', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'additional-information', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGDTNW9PDQNXK6TF1T', - tsKey: 'cost.cost-free', - tsNs: 'attribute', - icon: 'carbon:piggy-bank', - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'cost', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGJ5GD2WHNJDPSFNRW', - tsKey: 'eligibility.time-appointment-required', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGSAZXGR4JAVHEK6ZC', - tsKey: 'eligibility.elig-age', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9F4BTH28ZQDRPH5PE16', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - min: 13, - }, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVJ8K180CNX339BTXM2', - tsKey: 'lang.lang-offered', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'languages', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9F4V12HEJRMBBKSSRB5', - country: null, - language: { - languageName: 'English', - nativeName: 'English', - }, - text: null, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVK8KPRGKYFSSM5ECPQ', - tsKey: 'sys.incompatible-info', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'system', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9F4FM69MC7Y8RAED87F', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - json: [ - { - 'community-lgbt': 'true', - }, - { - 'lang-all-languages-by-interpreter': null, - }, - ], - meta: { - values: { - '1.lang-all-languages-by-interpreter': ['undefined'], - }, - }, - }, - }, - ], - }, - ], - serviceAreas: { - countries: [], - districts: [ - { - govDist: { - govDistType: { - tsNs: 'gov-dist', - tsKey: 'type-district', - }, - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - abbrev: 'DC', - }, - }, - ], - }, - services: [ - { - tag: { - name: 'HIV and sexual health', - tsKey: 'medical.hiv-and-sexual-health', - tsNs: 'services', - category: { - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - defaultAttributes: [], - }, - }, - ], - accessDetails: [ - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMH6AE94EXN7T5A87C', - tsKey: 'serviceaccess.accesslocation', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9F3645YXQX5G69WPR3E', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9F3645YXQX5G69WPR3E', - ns: 'org-data', - tsKey: { - text: 'Located at the Whitman-Walker location. Please call.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '5e7e4bdbd54f1760921a423f', - }, - access_type: 'location', - access_value: '1525 14th St, NW Washington, DC 20005', - instructions: 'Located at the Whitman-Walker location. Please call.', - access_value_ES: '1525 14th St, NW Washington, DC 20005', - instructions_ES: 'Ubicado en la ubicación de Whitman-Walker. Por favor llama.', - }, - }, - }, - ], - }, - ], - }, - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMH6AE94EXN7T5A87C', - tsKey: 'serviceaccess.accesslocation', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9F3XT7ZP34G152VTPDN', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9F3XT7ZP34G152VTPDN', - ns: 'org-data', - tsKey: { - text: 'Located at the Max Robinson Center. Call to make an appointment.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '6220d260d99d3c002ee58690', - }, - access_type: 'location', - access_value: '2301 MLK Jr., Ave. SE Washington DC 20020', - instructions: 'Located at the Max Robinson Center. Call to make an appointment.', - access_value_ES: '2301 MLK Jr., Ave. SE Washington DC 20020', - instructions_ES: 'Ubicado en el Centro Max Robinson. Llama para hacer una cita.', - }, - }, - }, - ], - }, - ], - }, - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMYXMS8ARA3GE7HZFD', - tsKey: 'serviceaccess.accesslink', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9F46WSJJBV9ZYCCKWTY', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9F46WSJJBV9ZYCCKWTY', - ns: 'org-data', - tsKey: { - text: 'Visit the webpage for more information.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '638120c25a2e6c0008bc9728', - }, - access_type: 'link', - access_value: 'https://www.whitman-walker.org/care-program/hiv-care/', - instructions: 'Visit the webpage for more information.', - access_value_ES: 'https://www.whitman-walker.org/care-program/hiv-care/', - instructions_ES: 'Visita la página web para obtener más información.', - }, - }, - }, - ], - }, - ], - }, - ], - reviews: [], - phones: [ - { - phone: { - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - phoneLangs: [], - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCFKT3NWQ79STYVDKR.description', - ns: 'org-data', - tsKey: { - text: 'Medical Care/ Appointments', - }, - }, - number: '2027457000', - ext: null, - primary: true, - locationOnly: false, - }, - }, - ], - emails: [], - userLists: [], - id: 'osvc_01GVH3VEVSNF9NH79R7HC9FHY6', - }, - }, - { - service: { - serviceName: { - key: 'whitman-walker-health.osvc_01GVH3VEW2ND36DB0XWAH1PQY0.name', - ns: 'org-data', - tsKey: { - text: 'Get dental health services for HIV-positive individuals', - }, - }, - description: { - key: 'whitman-walker-health.osvc_01GVH3VEW2ND36DB0XWAH1PQY0.description', - ns: 'org-data', - tsKey: { - text: 'Whitman-Walker Health offers preventive and restorative dental health services including dental exam, teeth cleaning, mouth guard, orthodontics, prosthodontics, restorative treatment, root canal, scaling and root planing, tooth extraction, teeth whitening.', - }, - }, - hours: [], - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFV3BADK80TG0DXXFPMM', - tsKey: 'additional.has-confidentiality-policy', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'additional-information', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGJ5GD2WHNJDPSFNRW', - tsKey: 'eligibility.time-appointment-required', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGWKWB53HWAAHQ9AAZ', - tsKey: 'cost.cost-fees', - tsNs: 'attribute', - icon: 'carbon:piggy-bank', - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'cost', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FCP3N9GE0XX4JK8TC0', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FCP3N9GE0XX4JK8TC0', - ns: 'org-data', - tsKey: { - text: 'Contact for more information on fees.', - }, - }, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVJ8K180CNX339BTXM2', - tsKey: 'lang.lang-offered', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'languages', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FCJ2DFW4SW2QPV7JBZ', - country: null, - language: { - languageName: 'English', - nativeName: 'English', - }, - text: null, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVJDKVF1HV7559CNZCY', - tsKey: 'eligibility.other-describe', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FCBTTS1SW1NVENDX6G', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FCBTTS1SW1NVENDX6G', - ns: 'org-data', - tsKey: { - text: 'Due to COVID-19, please note that at this time their dental services at Whitman-Walker at 1525 14th Street, NW and Max Robinson Center in Anacostia are not accepting new patients, with the exception of patients who are living with HIV and in need of urgent dental care.', - }, - }, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVK8KPRGKYFSSM5ECPQ', - tsKey: 'sys.incompatible-info', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'system', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FCGKS23KNM319BY46Y', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - json: [ - { - 'community-lgbt': 'true', - }, - { - 'lang-all-languages-by-interpreter': null, - }, - ], - meta: { - values: { - '1.lang-all-languages-by-interpreter': ['undefined'], - }, - }, - }, - }, - ], - }, - ], - serviceAreas: { - countries: [], - districts: [ - { - govDist: { - govDistType: { - tsNs: 'gov-dist', - tsKey: 'type-district', - }, - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - abbrev: 'DC', - }, - }, - ], - }, - services: [ - { - tag: { - name: 'Dental care', - tsKey: 'medical.dental-care', - tsNs: 'services', - category: { - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - defaultAttributes: [], - }, - }, - ], - accessDetails: [ - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMKTFWCKBVVFJ5GMY0', - tsKey: 'serviceaccess.accessphone', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FB82602PRFFPWMABZ4', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FB82602PRFFPWMABZ4', - ns: 'org-data', - tsKey: { - text: 'Call to make a dental appointment.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '5e7e4bdbd54f1760921a424a', - }, - access_type: 'phone', - access_value: ' 202-745-7000', - instructions: 'Call to make a dental appointment. ', - access_value_ES: ' 202-745-7000', - instructions_ES: 'Llama para hacer una cita dental.', - }, - }, - }, - ], - }, - ], - }, - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMYXMS8ARA3GE7HZFD', - tsKey: 'serviceaccess.accesslink', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FC3T1FAK1H2R9AVHEN', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FC3T1FAK1H2R9AVHEN', - ns: 'org-data', - tsKey: { - text: 'Check the website for details on specific dental services.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '5e7e4bdbd54f1760921a424b', - }, - access_type: 'link', - access_value: 'https://www.whitman-walker.org/dental-health', - instructions: 'Check the website for details on specific dental services.', - access_value_ES: 'https://www.whitman-walker.org/dental-health', - instructions_ES: - 'Visita el sitio web para obtener detalles sobre servicios dentales específicos.', - }, - }, - }, - ], - }, - ], - }, - ], - reviews: [], - phones: [ - { - phone: { - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - phoneLangs: [], - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCFKT3NWQ79STYVDKR.description', - ns: 'org-data', - tsKey: { - text: 'Medical Care/ Appointments', - }, - }, - number: '2027457000', - ext: null, - primary: true, - locationOnly: false, - }, - }, - ], - emails: [ - { - email: { - title: null, - firstName: null, - lastName: null, - email: 'appointments@whitman-walker.org', - legacyDesc: 'Schedule An Appointment ', - description: { - key: 'whitman-walker-health.oeml_01GVH3VEVDZK28VPR8ETDTVX2V.description', - ns: 'org-data', - tsKey: { - text: 'Schedule An Appointment', - }, - }, - primary: true, - locationOnly: false, - serviceOnly: false, - }, - }, - ], - userLists: [], - id: 'osvc_01GVH3VEW2ND36DB0XWAH1PQY0', - }, - }, - { - service: { - serviceName: { - key: 'whitman-walker-health.osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z.name', - ns: 'org-data', - tsKey: { - text: 'Receive behavioral health services', - }, - }, - description: { - key: 'whitman-walker-health.osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z.description', - ns: 'org-data', - tsKey: { - text: "Whitman-Walker's Behavioral Health programs include peer support, substance use treatment, psychotherapy, psychiatry, and gender affirming assessment. They offer services to adults and youth. The behavioral healthcare team includes licensed psychotherapists (social workers, professional counselors, and marriage and family therapists, psychologists), psychiatric providers (medical doctors and nurse practitioners), and highly trained peers and graduate interns. The assessment and referral process will get you started and will help them determine together which services are right for you.", - }, - }, - hours: [], - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFV3BADK80TG0DXXFPMM', - tsKey: 'additional.has-confidentiality-policy', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'additional-information', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGDTNW9PDQNXK6TF1T', - tsKey: 'cost.cost-free', - tsNs: 'attribute', - icon: 'carbon:piggy-bank', - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'cost', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGJ5GD2WHNJDPSFNRW', - tsKey: 'eligibility.time-appointment-required', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVJ8K180CNX339BTXM2', - tsKey: 'lang.lang-offered', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'languages', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FD8RFFX8T6FZWTSE8P', - country: null, - language: { - languageName: 'English', - nativeName: 'English', - }, - text: null, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVK8KPRGKYFSSM5ECPQ', - tsKey: 'sys.incompatible-info', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'system', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FDGDY99PV0J6G8RMZX', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - json: [ - { - 'community-lgbt': 'true', - }, - { - 'lang-all-languages-by-interpreter': null, - }, - ], - meta: { - values: { - '1.lang-all-languages-by-interpreter': ['undefined'], - }, - }, - }, - }, - ], - }, - ], - serviceAreas: { - countries: [], - districts: [ - { - govDist: { - govDistType: { - tsNs: 'gov-dist', - tsKey: 'type-district', - }, - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - abbrev: 'DC', - }, - }, - ], - }, - services: [ - { - tag: { - name: 'Support groups', - tsKey: 'mental-health.support-groups', - tsNs: 'services', - category: { - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - defaultAttributes: [], - }, - }, - { - tag: { - name: 'Private therapy and counseling', - tsKey: 'mental-health.private-therapy-and-counseling', - tsNs: 'services', - category: { - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - defaultAttributes: [], - }, - }, - ], - accessDetails: [ - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMYXMS8ARA3GE7HZFD', - tsKey: 'serviceaccess.accesslink', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FD667CNFY4RBBJ6FAZ', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FD667CNFY4RBBJ6FAZ', - ns: 'org-data', - tsKey: { - text: 'Visit the website for more information and a full list of services.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '638139daf0ecf90008c64890', - }, - access_type: 'link', - access_value: 'https://www.whitman-walker.org/behavioral-health/', - instructions: 'Visit the website for more information and a full list of services.', - access_value_ES: 'https://www.whitman-walker.org/behavioral-health/', - instructions_ES: - 'Visita el sitio web para obtener más información y una lista completa de servicios.', - }, - }, - }, - ], - }, - ], - }, - ], - reviews: [], - phones: [], - emails: [], - userLists: [], - id: 'osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z', - }, - }, - { - service: { - serviceName: { - key: 'whitman-walker-health.osvc_01GVH3VEWHDC6F5FCQHB0H5GD6.name', - ns: 'org-data', - tsKey: { - text: 'Get gender affirming hormone therapy', - }, - }, - description: { - key: 'whitman-walker-health.osvc_01GVH3VEWHDC6F5FCQHB0H5GD6.description', - ns: 'org-data', - tsKey: { - text: 'Your medical provider (e.g. a doctor, nurse practitioner or physician assistant) will work with you to understand your goals and needs before prescribing medication. Whitman-Walker will follow an informed consent model for gender affirming hormone therapy with people ages 18+. If someone is working with them who is under the age of 18, Whitman-Walker will require a mental health assessment as well as parental or guardian consent.', - }, - }, - hours: [], - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFV3BADK80TG0DXXFPMM', - tsKey: 'additional.has-confidentiality-policy', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'additional-information', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGJ5GD2WHNJDPSFNRW', - tsKey: 'eligibility.time-appointment-required', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGWKWB53HWAAHQ9AAZ', - tsKey: 'cost.cost-fees', - tsNs: 'attribute', - icon: 'carbon:piggy-bank', - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'cost', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FKYRTJ0QZ2G84NZ33S', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FKYRTJ0QZ2G84NZ33S', - ns: 'org-data', - tsKey: { - text: 'Contact for more information on fees.', - }, - }, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVH0GQK0GAJR5D952V3', - tsKey: 'eligibility.req-proof-of-age', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVHZ599M48CMSPGDCSC', - tsKey: 'eligibility.req-photo-id', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVJ8K180CNX339BTXM2', - tsKey: 'lang.lang-offered', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'languages', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FK3E82QQ2H17GBS476', - country: null, - language: { - languageName: 'English', - nativeName: 'English', - }, - text: null, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVJDKVF1HV7559CNZCY', - tsKey: 'eligibility.other-describe', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FK6W1R7RR2YKY7EM85', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FK6W1R7RR2YKY7EM85', - ns: 'org-data', - tsKey: { - text: 'If someone is working with them who is under the age of 18, they will require a mental health assessment as well as parental or guardian consent.', - }, - }, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVK8KPRGKYFSSM5ECPQ', - tsKey: 'sys.incompatible-info', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'system', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FME78R743MNP9H9HCG', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - json: [ - { - 'community-lgbt': 'true', - }, - { - 'lang-all-languages-by-interpreter': null, - }, - { - 'service-city-district-of-columbia-washington': 'true', - }, - ], - meta: { - values: { - '1.lang-all-languages-by-interpreter': ['undefined'], - }, - }, - }, - }, - ], - }, - ], - serviceAreas: { - countries: [], - districts: [ - { - govDist: { - govDistType: { - tsNs: 'gov-dist', - tsKey: 'type-district', - }, - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - abbrev: 'DC', - }, - }, - ], - }, - services: [ - { - tag: { - name: 'Trans Health - Hormone Therapy', - tsKey: 'medical.trans-health-hormone-therapy', - tsNs: 'services', - category: { - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - defaultAttributes: [], - }, - }, - ], - accessDetails: [ - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMKTFWCKBVVFJ5GMY0', - tsKey: 'serviceaccess.accessphone', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FJVRYRWH7YKD5PSXJQ', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FJVRYRWH7YKD5PSXJQ', - ns: 'org-data', - tsKey: { - text: 'Call for more information about their Gender Affirming Services.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '5e7e4bdbd54f1760921a424d', - }, - access_type: 'phone', - access_value: '202-797-4457', - instructions: 'Call for more information about their Gender Affirming Services.', - access_value_ES: '202-797-4457', - instructions_ES: - 'Llama para obtener más información sobre sus servicios de afirmación de género.', - }, - }, - }, - ], - }, - ], - }, - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVKFM4TDY4QRK4AR2ZW', - tsKey: 'serviceaccess.accessemail', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FK5WYEX857QKM3KM2F', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FK5WYEX857QKM3KM2F', - ns: 'org-data', - tsKey: { - text: 'Email for more information about their Gender Affirming Services.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '5e953b4def07fe001758d6b1', - }, - access_type: 'email', - access_value: 'Transhealth@whitman-walker.org', - instructions: 'Email for more information about their Gender Affirming Services.', - access_value_ES: 'Transhealth@whitman-walker.org', - instructions_ES: - 'Envía un correo electrónico para obtener más información sobre sus servicios de afirmación de género.', - }, - }, - }, - ], - }, - ], - }, - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMYXMS8ARA3GE7HZFD', - tsKey: 'serviceaccess.accesslink', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FJVN6X0NCHDMQRNH1J', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FJVN6X0NCHDMQRNH1J', - ns: 'org-data', - tsKey: { - text: "Visit the website to learn more about Whitman-Walker Health's gender affirming hormone therapy.", - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '5e7e4bdbd54f1760921a424e', - }, - access_type: 'link', - access_value: - 'https://www.whitman-walker.org/care-program/transgender-care-hormone-therapy-ht-hrt', - instructions: - "Visit the website to learn more about Whitman-Walker Health's gender affirming hormone therapy. ", - access_value_ES: - 'https://www.whitman-walker.org/care-program/transgender-care-hormone-therapy-ht-hrt', - instructions_ES: - 'Visita el sitio web para obtener más información sobre la terapia hormonal de afirmación de género de Whitman-Walker Health.', - }, - }, - }, - ], - }, - ], - }, - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMH6AE94EXN7T5A87C', - tsKey: 'serviceaccess.accesslocation', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FKR1P5XFFG4QR14FT8', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FKR1P5XFFG4QR14FT8', - ns: 'org-data', - tsKey: { - text: 'Gender affirming hormone therapy services are offered at the Whitman-Walker at 1525 and Max Robinson Center locations.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '63388c28b155890016f14daf', - }, - access_type: 'location', - access_value: - 'Whitman-Walker at 1525\n1525 14th St, NW Washington, DC 20005\n\nand\n\nMax Robinson Center\n2301 MLK Jr., Ave. SE Washington DC 20020', - instructions: - 'Gender affirming hormone therapy services are offered at the Whitman-Walker at 1525 and Max Robinson Center locations. ', - access_value_ES: 'Whitman-Walker at 1525\n1525 14th St, NW Washington, DC 20005\n', - instructions_ES: - 'Los servicios de terapia hormonal de afirmación de género se ofrecen en las ubicaciones de Whitman-Walker en 1525 y Max Robinson Center.', - }, - }, - }, - ], - }, - ], - }, - ], - reviews: [], - phones: [ - { - phone: { - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - phoneLangs: [], - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCQW5N7R8YEV06D3AZ.description', - ns: 'org-data', - tsKey: { - text: 'Gender Affirming Services', - }, - }, - number: '2027974457', - ext: null, - primary: false, - locationOnly: false, - }, - }, - ], - emails: [ - { - email: { - title: null, - firstName: null, - lastName: null, - email: 'Transhealth@whitman-walker.org', - legacyDesc: 'Gender Affirming Services', - description: { - key: 'whitman-walker-health.oeml_01GVH3VEVD5Q45WH8V1KK13EZ8.description', - ns: 'org-data', - tsKey: { - text: 'Gender Affirming Services', - }, - }, - primary: false, - locationOnly: false, - serviceOnly: false, - }, - }, - ], - userLists: [], - id: 'osvc_01GVH3VEWHDC6F5FCQHB0H5GD6', - }, - }, - { - service: { - serviceName: { - key: 'whitman-walker-health.osvc_01GVH3VEWK33YAKZMQ2W3GT4QK.name', - ns: 'org-data', - tsKey: { - text: 'Access PEP and PrEP', - }, - }, - description: { - key: 'whitman-walker-health.osvc_01GVH3VEWK33YAKZMQ2W3GT4QK.description', - ns: 'org-data', - tsKey: { - text: 'Whitman-Walker offers access to both PEP and PrEP. PEP is a 28-day course of medication that should be used only in emergency situations and must be started within 72 hours after a recent, possible exposure to HIV. If you think you’ve recently been exposed to HIV during sex or through sharing needles and works to prepare drugs, or if you’ve been sexually assaulted, please call them at 202.797.4439 right away. “PrEP” stands for Pre-Exposure Prophylaxis. It is an FDA-approved once-a-day prevention pill for people who don’t have HIV but who have a greater exposure to HIV through sex or other behaviors. When taken every day, PrEP is up to 99% effective at preventing an HIV infection that is transmitted through sex. PrEP does not prevent other STIs or pregnancy. You can use PrEP with other prevention methods, like condoms, to offer more protection as PrEP. For PrEP to work effectively, people who use it must take it every day as prescribed and follow up with their doctor or medical team member every 3 months for routine screening and discussion of barriers to adherence.', - }, - }, - hours: [], - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVJ8K180CNX339BTXM2', - tsKey: 'lang.lang-offered', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'languages', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FNB2D3N8VJ8SMB7GE9', - country: null, - language: { - languageName: 'English', - nativeName: 'English', - }, - text: null, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - ], - serviceAreas: { - countries: [], - districts: [ - { - govDist: { - govDistType: { - tsNs: 'gov-dist', - tsKey: 'type-district', - }, - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - abbrev: 'DC', - }, - }, - ], - }, - services: [ - { - tag: { - name: 'HIV and sexual health', - tsKey: 'medical.hiv-and-sexual-health', - tsNs: 'services', - category: { - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - defaultAttributes: [], - }, - }, - ], - accessDetails: [ - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMYXMS8ARA3GE7HZFD', - tsKey: 'serviceaccess.accesslink', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FM36V51QJW06D31Q6V', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FM36V51QJW06D31Q6V', - ns: 'org-data', - tsKey: { - text: 'Visit the link to learn more about PrEP and access services.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '638121baa354a20008c9f5a2', - }, - access_type: 'link', - access_value: 'https://www.whitman-walker.org/care-program/prep/', - instructions: 'Visit the link to learn more about PrEP and access services.', - access_value_ES: 'https://www.whitman-walker.org/care-program/prep/', - instructions_ES: - 'Visita el enlace para obtener más información sobre PrEP y acceder a los servicios.', - }, - }, - }, - ], - }, - ], - }, - { - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFVMYXMS8ARA3GE7HZFD', - tsKey: 'serviceaccess.accesslink', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT9FM961XSJQGYGES7CVA', - country: null, - language: null, - text: { - key: 'whitman-walker-health.attribute.atts_01GW2HT9FM961XSJQGYGES7CVA', - ns: 'org-data', - tsKey: { - text: 'Visit the link to learn more about PEP and access services.', - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '638121d2a354a20008c9f5a4', - }, - access_type: 'link', - access_value: 'https://www.whitman-walker.org/care-program/pep/', - instructions: 'Visit the link to learn more about PEP and access services.', - access_value_ES: 'https://www.whitman-walker.org/care-program/pep/', - instructions_ES: - 'Visita el enlace para obtener más información sobre PEP y acceder a los servicios.', - }, - }, - }, - ], - }, - ], - }, - ], - reviews: [], - phones: [], - emails: [], - userLists: [], - id: 'osvc_01GVH3VEWK33YAKZMQ2W3GT4QK', - }, - }, - ], - serviceAreas: null, - socialMedia: [], - description: null, - name: 'Whitman-Walker 1525', - street1: '1525 14th St. NW ', - street2: '', - city: 'Washington', - postCode: '20005', - primary: true, - longitude: -77.032, - latitude: 38.91, - id: 'oloc_01GVH3VEVBERFNA9PHHJYEBGA3', -} diff --git a/packages/ui/mockData/locationSearch.ts b/packages/ui/mockData/locationSearch.ts deleted file mode 100644 index cbd7b61150..0000000000 --- a/packages/ui/mockData/locationSearch.ts +++ /dev/null @@ -1,599 +0,0 @@ -import { type ApiInput, type ApiOutput } from '@weareinreach/api' - -export const mockAutocomplete = ( - input: ApiInput['geo']['autocomplete'] -): ApiOutput['geo']['autocomplete'] => { - const searchRegex = new RegExp(`.*${input.search}.*`, 'i') - const results = locationSearchMockData.names - .filter(({ searchValue }) => searchRegex.test(searchValue)) - .map(({ searchValue, ...data }) => ({ ...data })) - - if (!results.length) return { results, status: 'ZERO_RESULTS' } - - return { results, status: 'OK' } -} - -export const mockGeocode = (input: ApiInput['geo']['geoByPlaceId']): ApiOutput['geo']['geoByPlaceId'] => { - // const searchRegex = new RegExp(`.*${input.search}.*`, 'i') - const results = locationSearchMockData.locations - .filter(({ placeId }) => placeId === input) - .map(({ geometry, ...data }) => ({ geometry, ...data })) - const result = results[0] - - return { result, status: 'OK' } -} - -const locationSearchMockData = { - names: [ - { - placeId: 'v9c7vv128hlvo0m2p6i2x1v6426i', - label: 'New York', - subheading: 'Queens, NY, US', - value: 'New York, Queens, NY, US', - searchValue: 'New York, Queens, NY, US', - }, - { - placeId: 'h9e8yw432nhro1c4o6y9s1b3636v', - label: 'Los Angeles', - subheading: 'Los Angeles, CA, US', - value: 'Los Angeles, Los Angeles, CA, US', - searchValue: 'Los Angeles, Los Angeles, CA, US', - }, - { - placeId: 'h7b8gt028yqer4p8i2u4l8q1523x', - label: 'Chicago', - subheading: 'Cook, IL, US', - value: 'Chicago, Cook, IL, US', - searchValue: 'Chicago, Cook, IL, US', - }, - { - placeId: 'f8l6iv834xhqg3a1l1u1o8g8627z', - label: 'Miami', - subheading: 'Miami-Dade, FL, US', - value: 'Miami, Miami-Dade, FL, US', - searchValue: 'Miami, Miami-Dade, FL, US', - }, - { - placeId: 'a6z8nj171pbjb1i1h4z0l9n6755m', - label: 'Dallas', - subheading: 'Dallas, TX, US', - value: 'Dallas, Dallas, TX, US', - searchValue: 'Dallas, Dallas, TX, US', - }, - { - placeId: 'z5a2ps335usgt1o7m8x1w7o3437t', - label: 'Houston', - subheading: 'Harris, TX, US', - value: 'Houston, Harris, TX, US', - searchValue: 'Houston, Harris, TX, US', - }, - { - placeId: 'v5k1nh657hijm8u4j1h8y1x8161h', - label: 'Philadelphia', - subheading: 'Philadelphia, PA, US', - value: 'Philadelphia, Philadelphia, PA, US', - searchValue: 'Philadelphia, Philadelphia, PA, US', - }, - { - placeId: 'j4w6yn512jkqq2r5d3e4y1x3401l', - label: 'Atlanta', - subheading: 'Fulton, GA, US', - value: 'Atlanta, Fulton, GA, US', - searchValue: 'Atlanta, Fulton, GA, US', - }, - { - placeId: 'p9z8bo212bcfy0a4c3g2r8m1348p', - label: 'Washington', - subheading: 'District of Columbia, DC, US', - value: 'Washington, District of Columbia, DC, US', - searchValue: 'Washington, District of Columbia, DC, US', - }, - { - placeId: 'x8w2pl911vkec1p7n7u9d2w8791r', - label: 'Boston', - subheading: 'Suffolk, MA, US', - value: 'Boston, Suffolk, MA, US', - searchValue: 'Boston, Suffolk, MA, US', - }, - { - placeId: 'e7f1od477hora2l8g2a8g7m4283a', - label: 'Phoenix', - subheading: 'Maricopa, AZ, US', - value: 'Phoenix, Maricopa, AZ, US', - searchValue: 'Phoenix, Maricopa, AZ, US', - }, - { - placeId: 'g1q9vi249jrec3x6e9o8w4k4431e', - label: 'Detroit', - subheading: 'Wayne, MI, US', - value: 'Detroit, Wayne, MI, US', - searchValue: 'Detroit, Wayne, MI, US', - }, - { - placeId: 'o7y3wu258pdht1n6x4j0g4a4197w', - label: 'Seattle', - subheading: 'King, WA, US', - value: 'Seattle, King, WA, US', - searchValue: 'Seattle, King, WA, US', - }, - { - placeId: 'm6p4oi095ucwx5l9y3d1b1c7603v', - label: 'San Francisco', - subheading: 'San Francisco, CA, US', - value: 'San Francisco, San Francisco, CA, US', - searchValue: 'San Francisco, San Francisco, CA, US', - }, - { - placeId: 'k5m6ra593sdqg1w7p3e1d9z7756b', - label: 'San Diego', - subheading: 'San Diego, CA, US', - value: 'San Diego, San Diego, CA, US', - searchValue: 'San Diego, San Diego, CA, US', - }, - { - placeId: 'd5g3tn102yqpd0z3h1q3i7s5164r', - label: 'Minneapolis', - subheading: 'Hennepin, MN, US', - value: 'Minneapolis, Hennepin, MN, US', - searchValue: 'Minneapolis, Hennepin, MN, US', - }, - { - placeId: 'm2k9ry579igfc5f8w3i0e5i3346d', - label: 'Brooklyn', - subheading: 'Kings, NY, US', - value: 'Brooklyn, Kings, NY, US', - searchValue: 'Brooklyn, Kings, NY, US', - }, - { - placeId: 'g4e6wh692jwgf2z3f3r6k1l1184w', - label: 'Tampa', - subheading: 'Hillsborough, FL, US', - value: 'Tampa, Hillsborough, FL, US', - searchValue: 'Tampa, Hillsborough, FL, US', - }, - { - placeId: 'g6p5hz725pqxh9d9x7w6h4z0733x', - label: 'Denver', - subheading: 'Denver, CO, US', - value: 'Denver, Denver, CO, US', - searchValue: 'Denver, Denver, CO, US', - }, - { - placeId: 'p7n4pt581bydd6t6j9g4c7b4336c', - label: 'Queens', - subheading: 'Queens, NY, US', - value: 'Queens, Queens, NY, US', - searchValue: 'Queens, Queens, NY, US', - }, - { - placeId: 'o1t5pn583kpeb8e2v2w9i4q4119t', - label: 'Baltimore', - subheading: 'Baltimore, MD, US', - value: 'Baltimore, Baltimore, MD, US', - searchValue: 'Baltimore, Baltimore, MD, US', - }, - { - placeId: 't7e7ok334xgsh8q3h4q4l2m5824d', - label: 'Las Vegas', - subheading: 'Clark, NV, US', - value: 'Las Vegas, Clark, NV, US', - searchValue: 'Las Vegas, Clark, NV, US', - }, - { - placeId: 'y3o8mb567rnjt9v9u3t6e7k6124e', - label: 'St. Louis', - subheading: 'St. Louis, MO, US', - value: 'St. Louis, St. Louis, MO, US', - searchValue: 'St. Louis, St. Louis, MO, US', - }, - { - placeId: 'b1q5dh343fgqr2w2m5z7r0d3673b', - label: 'Portland', - subheading: 'Multnomah, OR, US', - value: 'Portland, Multnomah, OR, US', - searchValue: 'Portland, Multnomah, OR, US', - }, - { - placeId: 'r4u6wq218lrbz6i4p8v2q1p4971k', - label: 'Riverside', - subheading: 'Riverside, CA, US', - value: 'Riverside, Riverside, CA, US', - searchValue: 'Riverside, Riverside, CA, US', - }, - ], - locations: [ - { - geometry: { - bounds: { northeast: { lat: 8.4018, lng: -126.6084 }, southwest: { lat: -81.9646, lng: 124.493 } }, - location: { lat: -89.9994, lng: 6.0222 }, - viewport: { northeast: { lat: -20.6148, lng: -2.1118 }, southwest: { lat: -67.1275, lng: -87.9182 } }, - }, - placeId: 'v9c7vv128hlvo0m2p6i2x1v6426i', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -72.7388, lng: 103.9609 }, southwest: { lat: 83.7282, lng: -129.311 } }, - location: { lat: 21.8233, lng: 138.2632 }, - viewport: { northeast: { lat: 60.0396, lng: 49.7454 }, southwest: { lat: -77.9764, lng: 162.8978 } }, - }, - placeId: 'h9e8yw432nhro1c4o6y9s1b3636v', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 57.0643, lng: 41.4927 }, southwest: { lat: -23.0505, lng: -39.3423 } }, - location: { lat: 81.7907, lng: -122.3625 }, - viewport: { - northeast: { lat: -33.6723, lng: -93.1541 }, - southwest: { lat: 44.1207, lng: -138.9166 }, - }, - }, - placeId: 'h7b8gt028yqer4p8i2u4l8q1523x', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -52.1005, lng: -62.4799 }, southwest: { lat: 63.8332, lng: -149.3469 } }, - location: { lat: 39.8434, lng: 129.6737 }, - viewport: { northeast: { lat: -6.3549, lng: -129.7557 }, southwest: { lat: 79.8459, lng: -76.0193 } }, - }, - placeId: 'f8l6iv834xhqg3a1l1u1o8g8627z', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 74.1964, lng: 118.1967 }, southwest: { lat: 54.1087, lng: -87.3531 } }, - location: { lat: -50.5558, lng: 23.7797 }, - viewport: { northeast: { lat: -75.3262, lng: -154.521 }, southwest: { lat: -24.2494, lng: -22.386 } }, - }, - placeId: 'a6z8nj171pbjb1i1h4z0l9n6755m', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 49.7323, lng: 155.707 }, southwest: { lat: 0.0818, lng: -72.163 } }, - location: { lat: 76.8073, lng: 50.0803 }, - viewport: { northeast: { lat: 69.6185, lng: 151.8833 }, southwest: { lat: 50.9962, lng: 142.4655 } }, - }, - placeId: 'z5a2ps335usgt1o7m8x1w7o3437t', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 39.6009, lng: 24.54 }, southwest: { lat: -35.5656, lng: 176.7186 } }, - location: { lat: 69.4473, lng: -23.6272 }, - viewport: { northeast: { lat: 82.6381, lng: 111.7868 }, southwest: { lat: -49.6481, lng: 9.699 } }, - }, - placeId: 'v5k1nh657hijm8u4j1h8y1x8161h', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 30.0911, lng: -10.2653 }, southwest: { lat: -29.2937, lng: 170.8376 } }, - location: { lat: -51.2407, lng: 76.5857 }, - viewport: { northeast: { lat: -32.249, lng: 38.4164 }, southwest: { lat: -2.2099, lng: -150.6011 } }, - }, - placeId: 'j4w6yn512jkqq2r5d3e4y1x3401l', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 7.3736, lng: -160.7492 }, southwest: { lat: -85.8909, lng: 8.0029 } }, - location: { lat: 68.9126, lng: -90.3229 }, - viewport: { northeast: { lat: -43.2683, lng: 43.0401 }, southwest: { lat: -52.19, lng: 170.7363 } }, - }, - placeId: 'p9z8bo212bcfy0a4c3g2r8m1348p', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 17.6943, lng: -63.1688 }, southwest: { lat: -82.3691, lng: -84.8036 } }, - location: { lat: -5.4545, lng: 14.1494 }, - viewport: { northeast: { lat: -66.5169, lng: 58.9635 }, southwest: { lat: -28.5722, lng: -9.6433 } }, - }, - placeId: 'x8w2pl911vkec1p7n7u9d2w8791r', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 35.1223, lng: 10.7898 }, southwest: { lat: -64.1741, lng: -139.3439 } }, - location: { lat: -2.1364, lng: -120.2015 }, - viewport: { - northeast: { lat: -28.8087, lng: -97.3556 }, - southwest: { lat: -2.9705, lng: -171.4283 }, - }, - }, - placeId: 'e7f1od477hora2l8g2a8g7m4283a', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -55.0895, lng: -78.9101 }, southwest: { lat: -32.5621, lng: 35.739 } }, - location: { lat: 15.4678, lng: -168.9005 }, - viewport: { northeast: { lat: 78.0048, lng: -55.537 }, southwest: { lat: -71.0732, lng: 46.3503 } }, - }, - placeId: 'g1q9vi249jrec3x6e9o8w4k4431e', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -22.2146, lng: -78.4273 }, southwest: { lat: 40.2328, lng: -87.0038 } }, - location: { lat: -61.233, lng: -135.7392 }, - viewport: { northeast: { lat: 70.309, lng: -38.5593 }, southwest: { lat: 1.7198, lng: 150.9999 } }, - }, - placeId: 'o7y3wu258pdht1n6x4j0g4a4197w', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 46.1084, lng: -47.4029 }, southwest: { lat: -19.7036, lng: -76.4696 } }, - location: { lat: -22.0351, lng: -84.814 }, - viewport: { - northeast: { lat: -80.6043, lng: -42.4252 }, - southwest: { lat: 40.3638, lng: -147.4568 }, - }, - }, - placeId: 'm6p4oi095ucwx5l9y3d1b1c7603v', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 0.4157, lng: 79.0507 }, southwest: { lat: 18.67, lng: -160.4461 } }, - location: { lat: 62.9685, lng: -115.1122 }, - viewport: { northeast: { lat: -71.0917, lng: 131.7315 }, southwest: { lat: -20.3189, lng: 33.8835 } }, - }, - placeId: 'k5m6ra593sdqg1w7p3e1d9z7756b', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 20.584, lng: 86.4564 }, southwest: { lat: 40.6807, lng: -111.0425 } }, - location: { lat: 57.3995, lng: 31.3868 }, - viewport: { northeast: { lat: -77.1209, lng: 83.8166 }, southwest: { lat: 6.5259, lng: 7.4366 } }, - }, - placeId: 'd5g3tn102yqpd0z3h1q3i7s5164r', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -6.1004, lng: 146.4781 }, southwest: { lat: 5.1133, lng: -10.7965 } }, - location: { lat: -64.3959, lng: -147.4064 }, - viewport: { - northeast: { lat: -59.1541, lng: -74.4482 }, - southwest: { lat: -50.1385, lng: -41.4244 }, - }, - }, - placeId: 'm2k9ry579igfc5f8w3i0e5i3346d', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -65.8361, lng: -153.1264 }, southwest: { lat: 15.4261, lng: -111.295 } }, - location: { lat: 56.4647, lng: -113.4506 }, - viewport: { - northeast: { lat: 13.7961, lng: -117.8208 }, - southwest: { lat: -47.776, lng: -168.1263 }, - }, - }, - placeId: 'g4e6wh692jwgf2z3f3r6k1l1184w', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -68.7204, lng: -0.6626 }, southwest: { lat: -75.6279, lng: -17.9185 } }, - location: { lat: -60.6576, lng: -27.9354 }, - viewport: { - northeast: { lat: -72.915, lng: -160.2898 }, - southwest: { lat: -38.3733, lng: -141.4312 }, - }, - }, - placeId: 'g6p5hz725pqxh9d9x7w6h4z0733x', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -13.4385, lng: -102.1023 }, southwest: { lat: 70.4651, lng: -127.6315 } }, - location: { lat: -50.4536, lng: 177.5505 }, - viewport: { northeast: { lat: 6.6371, lng: 119.593 }, southwest: { lat: 59.667, lng: 34.351 } }, - }, - placeId: 'p7n4pt581bydd6t6j9g4c7b4336c', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 25.6738, lng: -77.2356 }, southwest: { lat: -4.6663, lng: 130.8507 } }, - location: { lat: -83.6131, lng: -44.9859 }, - viewport: { northeast: { lat: 54.8933, lng: -118.6904 }, southwest: { lat: -36.72, lng: 112.011 } }, - }, - placeId: 'o1t5pn583kpeb8e2v2w9i4q4119t', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 13.581, lng: 109.9596 }, southwest: { lat: -51.1, lng: 92.082 } }, - location: { lat: 30.9855, lng: -24.0543 }, - viewport: { northeast: { lat: 32.754, lng: 1.9596 }, southwest: { lat: 34.4076, lng: -128.4677 } }, - }, - placeId: 't7e7ok334xgsh8q3h4q4l2m5824d', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -17.2851, lng: -110.0698 }, southwest: { lat: 26.9638, lng: -47.1316 } }, - location: { lat: 10.328, lng: -69.055 }, - viewport: { northeast: { lat: 4.4691, lng: 135.6165 }, southwest: { lat: 72.4854, lng: -125.8083 } }, - }, - placeId: 'y3o8mb567rnjt9v9u3t6e7k6124e', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: -56.45, lng: 88.2345 }, southwest: { lat: 48.3636, lng: -24.6145 } }, - location: { lat: 66.0678, lng: 12.5426 }, - viewport: { northeast: { lat: -74.7186, lng: -67.787 }, southwest: { lat: 83.9225, lng: -86.8238 } }, - }, - placeId: 'b1q5dh343fgqr2w2m5z7r0d3673b', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - { - geometry: { - bounds: { northeast: { lat: 87.8036, lng: -164.8523 }, southwest: { lat: -74.42, lng: -74.5699 } }, - location: { lat: -1.4329, lng: -123.3681 }, - viewport: { northeast: { lat: -41.3206, lng: 89.0329 }, southwest: { lat: -1.1006, lng: -114.4768 } }, - }, - placeId: 'r4u6wq218lrbz6i4p8v2q1p4971k', - city: '', - govDist: '', - country: '', - streetNumber: undefined, - streetName: undefined, - street2: undefined, - postCode: undefined, - }, - ], -} diff --git a/packages/ui/mockData/misc.ts b/packages/ui/mockData/misc.ts index 2826283527..1d48f1d57a 100644 --- a/packages/ui/mockData/misc.ts +++ b/packages/ui/mockData/misc.ts @@ -1,12 +1,8 @@ -import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' - -const miscMockData = { - hasContactInfo: true, -} satisfies MockDataObject<'misc'> +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' export const miscMock = { hasContactInfo: getTRPCMock({ path: ['misc', 'hasContactInfo'], - response: miscMockData.hasContactInfo, + response: true, }), } satisfies MockHandlerObject<'misc'> diff --git a/packages/ui/mockData/moreFilter.ts b/packages/ui/mockData/moreFilter.ts deleted file mode 100644 index 86fc44a762..0000000000 --- a/packages/ui/mockData/moreFilter.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { type ApiOutput } from '@weareinreach/api' - -export const moreFilterMock = [ - { - id: 'cle6jfyrj000mag9kg9wr8v77', - tsKey: 'additional-at-capacity', - tsNs: 'attribute', - filterType: 'EXCLUDE', - }, - { - id: 'cle6jfyre000lag9ka9u94wxv', - tsKey: 'additional-has-confidentiality-policy', - tsNs: 'attribute', - filterType: 'INCLUDE', - }, - { - id: 'cle6jfyyf0026ag9k4hype5ej', - tsKey: 'eligibility-req-medical-insurance', - tsNs: 'attribute', - filterType: 'EXCLUDE', - }, - { - id: 'cle6jfyyj0027ag9k5czmb5hz', - tsKey: 'eligibility-req-photo-id', - tsNs: 'attribute', - filterType: 'EXCLUDE', - }, - { - id: 'cle6jfyym0028ag9kfghl10n9', - tsKey: 'eligibility-req-proof-of-age', - tsNs: 'attribute', - filterType: 'EXCLUDE', - }, - { - id: 'cle6jfyyq0029ag9khciv7xsl', - tsKey: 'eligibility-req-proof-of-income', - tsNs: 'attribute', - filterType: 'EXCLUDE', - }, - { - id: 'cle6jfyyu002aag9k2a37d4vv', - tsKey: 'eligibility-req-proof-of-residence', - tsNs: 'attribute', - filterType: 'EXCLUDE', - }, - { - id: 'cle6jfyyx002bag9kf8h49ly0', - tsKey: 'eligibility-req-referral', - tsNs: 'attribute', - filterType: 'EXCLUDE', - }, -] satisfies ApiOutput['attribute']['getFilterOptions'] diff --git a/packages/ui/mockData/orgEmail.ts b/packages/ui/mockData/orgEmail.ts index adb90574f8..d71a39749b 100644 --- a/packages/ui/mockData/orgEmail.ts +++ b/packages/ui/mockData/orgEmail.ts @@ -1,172 +1,12 @@ import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' -export const orgEmailData = { - get: [ - { - id: 'oeml_01GVH3VEVDX7QVQ4QA4C1XXVN3', - firstName: null, - lastName: null, - primary: false, - email: 'contact-legal@whitman-walker.org', - published: true, - deleted: false, - description: 'Legal Services Program', - locations: [], - organization: [ - { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - ], - title: null, - services: [ - { - id: 'osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC', - serviceName: 'Get legal help with immigration services', - }, - { - id: 'osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG', - serviceName: - 'Get legal help for transgender people to replace and update name/gender marker on immigration documents', - }, - ], - }, - { - id: 'oeml_01GVH3VEVD5Q45WH8V1KK13EZ8', - firstName: null, - lastName: null, - primary: false, - email: 'Transhealth@whitman-walker.org', - published: true, - deleted: false, - description: 'Gender Affirming Services', - locations: [], - organization: [ - { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - ], - title: null, - services: [ - { - id: 'osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ', - serviceName: 'Receive gender affirming care and services', - }, - { - id: 'osvc_01GVH3VEWHDC6F5FCQHB0H5GD6', - serviceName: 'Get gender affirming hormone therapy', - }, - ], - }, - { - id: 'oeml_01GVH3VEVD2HF0GFPPTHJA9AJT', - firstName: null, - lastName: null, - primary: false, - email: 'youthmentalhealth@whitman-walker.org', - published: true, - deleted: false, - description: 'Youth Mental Health Services', - locations: [], - organization: [ - { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - ], - title: null, - services: [ - { - id: 'osvc_01GVH3VEVY24KAYTWY2ZSFZNBX', - serviceName: 'Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)', - }, - ], - }, - { - id: 'oeml_01GVH3VEVDZK28VPR8ETDTVX2V', - firstName: null, - lastName: null, - primary: true, - email: 'appointments@whitman-walker.org', - published: true, - deleted: false, - description: 'Schedule An Appointment', - locations: [], - organization: [ - { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - ], - title: null, - services: [ - { - id: 'osvc_01GVH3VEW2ND36DB0XWAH1PQY0', - serviceName: 'Get dental health services for HIV-positive individuals', - }, - ], - }, - ], - forContactInfo: [ - { - id: 'oeml_01GVH3VEVDZK28VPR8ETDTVX2V', - email: 'appointments@whitman-walker.org', - primary: true, - locationOnly: false, - serviceOnly: false, - title: null, - description: { - key: 'whitman-walker-health.oeml_01GVH3VEVDZK28VPR8ETDTVX2V.description', - defaultText: 'Schedule An Appointment', - }, - }, - { - id: 'oeml_01GVH3VEVDX7QVQ4QA4C1XXVN3', - email: 'contact-legal@whitman-walker.org', - primary: false, - locationOnly: false, - serviceOnly: false, - title: null, - description: { - key: 'whitman-walker-health.oeml_01GVH3VEVDX7QVQ4QA4C1XXVN3.description', - defaultText: 'Legal Services Program', - }, - }, - { - id: 'oeml_01GVH3VEVD5Q45WH8V1KK13EZ8', - email: 'Transhealth@whitman-walker.org', - primary: false, - locationOnly: false, - serviceOnly: false, - title: null, - description: { - key: 'whitman-walker-health.oeml_01GVH3VEVD5Q45WH8V1KK13EZ8.description', - defaultText: 'Gender Affirming Services', - }, - }, - { - id: 'oeml_01GVH3VEVD2HF0GFPPTHJA9AJT', - email: 'youthmentalhealth@whitman-walker.org', - primary: false, - locationOnly: false, - serviceOnly: false, - title: null, - description: { - key: 'whitman-walker-health.oeml_01GVH3VEVD2HF0GFPPTHJA9AJT.description', - defaultText: 'Youth Mental Health Services', - }, - }, - ], -} satisfies MockDataObject<'orgEmail'> export const orgEmail = { get: getTRPCMock({ path: ['orgEmail', 'get'], - response: orgEmailData.get, + response: async () => { + const { default: data } = await import('./json/orgEmail.get.json') + return data + }, }), upsertMany: getTRPCMock({ path: ['orgEmail', 'upsertMany'], @@ -176,19 +16,20 @@ export const orgEmail = { forContactInfo: getTRPCMock({ path: ['orgEmail', 'forContactInfo'], type: 'query', - response: ({ locationOnly, serviceOnly }) => { + response: async ({ locationOnly, serviceOnly }) => { + const { default: data } = await import('./json/orgEmail.forContactInfo.json') if (locationOnly !== undefined && serviceOnly !== undefined) { - return orgEmailData.forContactInfo.filter( + return data.filter( (record) => record.locationOnly === locationOnly && record.serviceOnly === serviceOnly ) } if (locationOnly !== undefined) { - return orgEmailData.forContactInfo.filter((record) => record.locationOnly === locationOnly) + return data.filter((record) => record.locationOnly === locationOnly) } if (serviceOnly !== undefined) { - return orgEmailData.forContactInfo.filter((record) => record.serviceOnly === serviceOnly) + return data.filter((record) => record.serviceOnly === serviceOnly) } - return orgEmailData.forContactInfo + return data }, }), } satisfies MockHandlerObject<'orgEmail'> diff --git a/packages/ui/mockData/orgHours.ts b/packages/ui/mockData/orgHours.ts index 9f85b6b773..048564878b 100644 --- a/packages/ui/mockData/orgHours.ts +++ b/packages/ui/mockData/orgHours.ts @@ -1,7 +1,6 @@ -import compact from 'just-compact' import { DateTime, Interval } from 'luxon' -import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' export function createInterval(start: Time, end: Time, dayIndex: number, tz: string, toString?: false): string // Interval export function createInterval(start: Time, end: Time, dayIndex: number, tz: string, toString?: true): string @@ -24,204 +23,28 @@ export function createInterval( } type Time = `${string}:${string}` -export const orgHoursData = { - forHoursDisplay: { - 1: [ - { - id: 'ohrs_01GW2HT8CP5HHCF2XBF9EGAJ6B', - dayIndex: 1, - interval: createInterval('08:00', '12:00', 1, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - { - id: 'ohrs_01GW2HT8CQHH5YKE1GTM2P4EWD', - dayIndex: 1, - interval: createInterval('13:00', '16:00', 1, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - ], - 2: [ - { - id: 'ohrs_01GW2HT8CPVWH1JYX1MW1PM4PG', - dayIndex: 2, - interval: createInterval('08:00', '10:00', 2, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - { - id: 'ohrs_01GW2HT8CQA1K5BHKRF2BR90SY', - dayIndex: 2, - interval: createInterval('10:30', '13:00', 2, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - { - id: 'ohrs_01GW2HT8CRZK6Y2P4DHCR6ZJHM', - dayIndex: 2, - interval: createInterval('13:30', '17:00', 2, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - ], - 3: [ - { - id: 'ohrs_01GW2HT8CQDXMWWDW1FK7W8TV7', - dayIndex: 3, - interval: createInterval('08:00', '17:00', 3, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - ], - 4: [ - { - id: 'ohrs_01GW2HT8CQGR2M2BNBRWE94PS5', - dayIndex: 4, - interval: createInterval('08:00', '17:00', 4, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - ], - - 5: [ - { - id: 'ohrs_01GW2HT8CQFZHK6TD586TJ1MFH', - dayIndex: 5, - interval: createInterval('08:00', '17:00', 5, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - ], - 6: [ - { - id: 'ohrs_01GW2HT8CQFZHK6TD586TJ1VER', - dayIndex: 6, - interval: createInterval('00:00', '23:59', 6, 'America/New_York'), - closed: false, - tz: 'America/New_York', - }, - ], - 0: [ - { - id: 'ohrs_01GW2HT8CQFZHK6TD586TJ7BJH', - dayIndex: 0, - interval: createInterval('00:00', '23:59', 0, 'America/New_York'), - closed: true, - tz: 'America/New_York', - }, - ], - }, - forHoursDrawer: [ - { - id: 'ohrs_01GW2HT8CP5HHCF2XBF9EGAJ6B', - dayIndex: 1, - interval: createInterval('08:00', '12:00', 1, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: false, - }, - { - id: 'ohrs_01GW2HT8CQHH5YKE1GTM2P4EWD', - dayIndex: 1, - interval: createInterval('13:00', '16:00', 1, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: false, - }, - { - id: 'ohrs_01GW2HT8CPVWH1JYX1MW1PM4PG', - dayIndex: 2, - interval: createInterval('08:00', '10:00', 2, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: false, - }, - { - id: 'ohrs_01GW2HT8CQA1K5BHKRF2BR90SY', - dayIndex: 2, - interval: createInterval('10:30', '13:00', 2, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: false, - }, - { - id: 'ohrs_01GW2HT8CRZK6Y2P4DHCR6ZJHM', - dayIndex: 2, - interval: createInterval('13:30', '17:00', 2, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: false, - }, - { - id: 'ohrs_01GW2HT8CQDXMWWDW1FK7W8TV7', - dayIndex: 3, - interval: createInterval('08:00', '17:00', 3, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: false, - }, - { - id: 'ohrs_01GW2HT8CQGR2M2BNBRWE94PS5', - dayIndex: 4, - interval: createInterval('08:00', '17:00', 4, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: false, - }, - { - id: 'ohrs_01GW2HT8CQFZHK6TD586TJ1MFH', - dayIndex: 5, - interval: createInterval('08:00', '17:00', 5, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: false, - }, - { - id: 'ohrs_01GW2HT8CQFZHK6TD586TJ1VER', - dayIndex: 6, - interval: createInterval('00:00', '23:59', 6, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: true, - }, - { - id: 'ohrs_01GW2HT8CQFZHK6TD586TJ7BJH', - dayIndex: 0, - interval: createInterval('00:00', '23:59', 0, 'America/New_York', true), - closed: false, - tz: 'America/New_York', - open24hours: true, - }, - ], - processDrawer: (data) => { - const replacementVals = compact([data.createdVals, data.updatedVals, data.deletedVals].flat()) - const valueSet = new Set([ - ...replacementVals.map((val) => JSON.stringify(val)), - ...orgHoursData.forHoursDrawer.map((val) => JSON.stringify(val)), - ]) - const newValues = [...valueSet].map((val) => JSON.parse(val)) - orgHoursData.forHoursDrawer = newValues - return { - created: data.createdVals?.length ?? 0, - updated: data.updatedVals?.length ?? 0, - deleted: data.deletedVals?.length ?? 0, - } - }, -} satisfies MockDataObject<'orgHours'> - export const orgHours = { forHoursDisplay: getTRPCMock({ path: ['orgHours', 'forHoursDisplay'], - response: orgHoursData.forHoursDisplay, + response: async () => { + const { default: data } = await import('./json/orgHours.forHoursDisplay.json') + return data + }, }), forHoursDrawer: getTRPCMock({ path: ['orgHours', 'forHoursDrawer'], - response: orgHoursData.forHoursDrawer, + response: async () => { + const { default: data } = await import('./json/orgHours.forHoursDrawer.json') + return data + }, }), processDrawer: getTRPCMock({ path: ['orgHours', 'processDrawer'], - response: orgHoursData.processDrawer, type: 'mutation', + response: async (data) => ({ + created: data.createdVals?.length ?? 0, + updated: data.updatedVals?.length ?? 0, + deleted: data.deletedVals?.length ?? 0, + }), }), } satisfies MockHandlerObject<'orgHours'> diff --git a/packages/ui/mockData/orgLocation.ts b/packages/ui/mockData/orgLocation.ts deleted file mode 100644 index c610b508c4..0000000000 --- a/packages/ui/mockData/orgLocation.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { type ApiOutput } from '@weareinreach/api' -import { getTRPCMock } from '~ui/lib/getTrpcMock' - -export const getNames = [ - { - id: 'oloc_01GVH3VEVBERFNA9PHHJYEBGA3', - name: 'Whitman-Walker 1525', - }, - { - id: 'oloc_01GVH3VEVBRCFA2AHNTWCXQA2B', - name: 'Max Robinson Center', - }, - { - id: 'oloc_01GVH3VEVBSA85T6VR2C38BJPT', - name: 'Whitman-Walker (LIZ)', - }, -] satisfies ApiOutput['location']['getNames'] - -export const location = { - getNames: getTRPCMock({ - path: ['location', 'getNames'], - response: getNames, - }), -} diff --git a/packages/ui/mockData/orgPhone.ts b/packages/ui/mockData/orgPhone.ts index 4b0733ea2e..d671a3e4f5 100644 --- a/packages/ui/mockData/orgPhone.ts +++ b/packages/ui/mockData/orgPhone.ts @@ -1,311 +1,12 @@ import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' -export const orgPhoneData = { - get: [ - { - id: 'ophn_01GVH3VEVCQW5N7R8YEV06D3AZ', - number: '2027974457', - ext: null, - deleted: false, - primary: false, - published: true, - country: { id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', cca2: 'US' }, - description: 'Gender Affirming Services', - locations: [], - organization: { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - phoneType: null, - services: [ - { - id: 'osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ', - serviceName: 'Receive gender affirming care and services', - }, - { - id: 'osvc_01GVH3VEWHDC6F5FCQHB0H5GD6', - serviceName: 'Get gender affirming hormone therapy', - }, - ], - }, - { - id: 'ophn_01GVH3VEVCFKT3NWQ79STYVDKR', - number: '2027457000', - ext: null, - deleted: false, - primary: true, - published: true, - country: { id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', cca2: 'US' }, - description: 'Medical Care/ Appointments', - locations: [], - organization: { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - phoneType: null, - services: [ - { - id: 'osvc_01GVH3VEVPF1KEKBTRVTV70WGV', - serviceName: 'Get rapid HIV testing', - }, - { - id: 'osvc_01GVH3VEVSNF9NH79R7HC9FHY6', - serviceName: 'Get HIV care for newly diagnosed patients', - }, - { - id: 'osvc_01GVH3VEW2ND36DB0XWAH1PQY0', - serviceName: 'Get dental health services for HIV-positive individuals', - }, - ], - }, - { - id: 'ophn_01GVH3VEVC36PW0Z9GDV0ZERV1', - number: '2027974439', - ext: null, - deleted: false, - primary: false, - published: true, - country: { id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', cca2: 'US' }, - description: 'HIV/STI Testing or Sexual Health Appointment', - locations: [], - organization: { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - phoneType: null, - services: [], - }, - { - id: 'ophn_01GVH3VEVCV5Y3PEXRQ0SDK41K', - number: '2022072360', - ext: null, - deleted: false, - primary: false, - published: true, - country: { id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', cca2: 'US' }, - description: 'Youth Care', - locations: [], - organization: { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - phoneType: null, - services: [], - }, - { - id: 'ophn_01GVH3VEVCBFHYF56W5EZ5M2QS', - number: '2027974437', - ext: null, - deleted: false, - primary: false, - published: false, - country: { id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', cca2: 'US' }, - description: 'New with HIV', - locations: [], - organization: { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - phoneType: null, - services: [], - }, - { - id: 'ophn_01GVH3VEVDSJTN1379Y17FNP28', - number: '2022072480', - ext: null, - deleted: true, - primary: false, - published: false, - country: { id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', cca2: 'US' }, - description: 'COVID-19 Vaccine Appointments', - locations: [], - organization: { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health', - slug: 'whitman-walker-health', - }, - phoneType: null, - services: [ - { - id: 'osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55', - serviceName: 'Get the COVID-19 vaccine', - }, - ], - }, - ], - forContactInfo: [ - { - id: 'ophn_01GVH3VEVCFKT3NWQ79STYVDKR', - number: '2027457000', - ext: null, - primary: true, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCFKT3NWQ79STYVDKR.description', - defaultText: 'Medical Care/ Appointments', - }, - }, - { - id: 'ophn_01GVH3VEVCYYQQS9NGH5Z1GYJ4', - number: '2027456175', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCYYQQS9NGH5Z1GYJ4.description', - defaultText: 'GMHW Sexual Health Clinic', - }, - }, - { - id: 'ophn_01GVH3VEVCE8GNAJ7NJ9FYKME5', - number: '2029397630', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCE8GNAJ7NJ9FYKME5.description', - defaultText: 'Legal Services Program', - }, - }, - { - id: 'ophn_01GVH3VEVCQW5N7R8YEV06D3AZ', - number: '2027974457', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCQW5N7R8YEV06D3AZ.description', - defaultText: 'Gender Affirming Services', - }, - }, - { - id: 'ophn_01GVH3VEVC36PW0Z9GDV0ZERV1', - number: '2027974439', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVC36PW0Z9GDV0ZERV1.description', - defaultText: 'HIV/STI Testing or Sexual Health Appointment', - }, - }, - { - id: 'ophn_01GVH3VEVCV5Y3PEXRQ0SDK41K', - number: '2022072360', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCV5Y3PEXRQ0SDK41K.description', - defaultText: 'Youth Care', - }, - }, - { - id: 'ophn_01GVH3VEVCSADS12PEYP2GF2Y3', - number: '2029397623', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCSADS12PEYP2GF2Y3.description', - defaultText: 'Behavioral Health (Therapy & Psychiatry)', - }, - }, - { - id: 'ophn_01GVH3VEVCDEFMAGG3SAJVWJFQ', - number: '2025439355', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCDEFMAGG3SAJVWJFQ.description', - defaultText: 'Max Robinson Center HIV/STI & Pregnancy Testing', - }, - }, - { - id: 'ophn_01GVH3VEVCBFHYF56W5EZ5M2QS', - number: '2027974437', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCBFHYF56W5EZ5M2QS.description', - defaultText: 'New with HIV', - }, - }, - { - id: 'ophn_01GVH3VEVCKB84BV4X0MSAKE2M', - number: '2029397690', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVCKB84BV4X0MSAKE2M.description', - defaultText: 'PrEP Clinic', - }, - }, - { - id: 'ophn_01GVH3VEVDSJTN1379Y17FNP28', - number: '2022072480', - ext: null, - primary: false, - locationOnly: false, - country: 'US', - phoneType: null, - description: { - key: 'whitman-walker-health.ophn_01GVH3VEVDSJTN1379Y17FNP28.description', - defaultText: 'COVID-19 Vaccine Appointments', - }, - }, - ], - forEditDrawer: { - id: 'ophn_01GVH3VFF4XR4V24E3G2JVHN0E', - number: '2027333643', - ext: null, - primary: true, - published: true, - deleted: false, - countryId: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - phoneTypeId: null, - description: { - id: 'ftxt_01E4ENGNAR7046QZ3H83Y873A2', - key: 'orgn_01GVH3V43ZWVSZA5046E3YD5YX.ophn_01GVH3VFF4XR4V24E3G2JVHN0E.description', - text: 'Custom description for phone number', - }, - locationOnly: false, - serviceOnly: false, - }, -} satisfies MockDataObject<'orgPhone'> - export const orgPhone = { get: getTRPCMock({ path: ['orgPhone', 'get'], - response: orgPhoneData.get, + response: async () => { + const { default: data } = await import(`./json/orgPhone.get.json`) + return data + }, }), upsertMany: getTRPCMock({ path: ['orgPhone', 'upsertMany'], @@ -320,10 +21,11 @@ export const orgPhone = { forContactInfo: getTRPCMock({ path: ['orgPhone', 'forContactInfo'], type: 'query', - response: ({ locationOnly }) => - locationOnly !== undefined - ? orgPhoneData.forContactInfo.filter((record) => record.locationOnly === locationOnly) - : orgPhoneData.forContactInfo, + response: async ({ locationOnly }) => { + const { default: data } = await import(`./json/orgPhone.forContactInfo.json`) + + return locationOnly !== undefined ? data.filter((record) => record.locationOnly === locationOnly) : data + }, }), forEditDrawer: getTRPCMock({ path: ['orgPhone', 'forEditDrawer'], diff --git a/packages/ui/mockData/orgPhoto.ts b/packages/ui/mockData/orgPhoto.ts index 26bc5f0d37..32a4393014 100644 --- a/packages/ui/mockData/orgPhoto.ts +++ b/packages/ui/mockData/orgPhoto.ts @@ -1,55 +1,35 @@ -import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' +import { type HttpHandler } from 'msw' -export const orgPhotoData = { - getByParent: [ - { - id: 'opto_01GW2HTA78QEM7QQCHQHQDHZ7D', - src: 'https://fastly.4sqi.net/img/general/300x300/842405_vs0swjE8OEtAkzWyR5w0aveLmOb8yLTm423NIQNUGtw.jpg', - height: 192, - width: 192, - }, - { - id: 'opto_01GW2HTA78R7G11YQDK51HJZD4', - src: 'https://fastly.4sqi.net/img/general/300x300/72996168_ohYvz_SNrumUOIQ39NBrBSBQsb9mH0F8wFp_YCEj2B0.jpg', - height: 192, - width: 192, - }, - { - id: 'opto_01GW2HTA780XY9A36SQF089S0T', - src: 'https://fastly.4sqi.net/img/general/300x300/16156_DrGSoE806kcnmWou8BKqeSdzyg4bCkk5VTDw2ETbc0Y.jpg', - height: 192, - width: 192, - }, - { - id: 'opto_01GW2HTA783T3W7DQKSB7BBSV5', - src: 'https://fastly.4sqi.net/img/general/300x300/842405_KYR_c3I84HvC3XWPOLeYIouBCpSpWMjrDqgc9ODrrKg.jpg', - height: 192, - width: 192, - }, - { - id: 'opto_01GW2HTA78QW9DAT94JGCFPTHW', - src: 'https://fastly.4sqi.net/img/general/300x300/8588378_1UqeD58opqKIqI02HIyVYExC3rs8fxr1cfITOSFel2A.jpg', - height: 289, - width: 289, - }, - { - id: 'opto_01GW2HTA786G8HX5J5ZX6FFMG5', - src: 'https://fastly.4sqi.net/img/general/300x300/63477693_nyM4Nwf1oKvlhNQ2ae3QUnTBRgScBIfrAuGBhQueXxE.jpg', - height: 192, - width: 192, - }, - { - id: 'opto_01GW2HTA78Q2HWH4YZDCHEZZVQ', - src: 'https://fastly.4sqi.net/img/general/300x300/34968821_FIfZPBDcdR6xrh0lzro0ch3rJffjP092IqX_jX-AsU4.jpg', - height: 192, - width: 192, - }, - ], -} satisfies MockDataObject<'orgPhoto'> +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' export const orgPhoto = { getByParent: getTRPCMock({ path: ['orgPhoto', 'getByParent'], - response: orgPhotoData.getByParent, + response: async () => { + const { default: data } = await import('./json/orgPhoto.getByParent.json') + return data + }, + }), + getByParent2: getTRPCMock({ + path: ['orgPhoto', 'getByParent'], + response: async () => { + const { default: data } = await import('./json/orgPhoto.getByParent.json') + return data.slice(0, 2) + }, + }), + getByParent4: getTRPCMock({ + path: ['orgPhoto', 'getByParent'], + response: async () => { + const { default: data } = await import('./json/orgPhoto.getByParent.json') + return data.slice(0, 4) + }, + }), + getByParent0: getTRPCMock({ + path: ['orgPhoto', 'getByParent'], + response: [], }), -} satisfies MockHandlerObject<'orgPhoto'> +} satisfies MockHandlerObject<'orgPhoto'> & { + getByParent2: HttpHandler + getByParent4: HttpHandler + getByParent0: HttpHandler +} diff --git a/packages/ui/mockData/orgSearch.ts b/packages/ui/mockData/orgSearch.ts deleted file mode 100644 index 0f44e2a263..0000000000 --- a/packages/ui/mockData/orgSearch.ts +++ /dev/null @@ -1,612 +0,0 @@ -import { type ApiInput, type ApiOutput } from '@weareinreach/api' - -type SearchInput = ApiInput['organization']['searchName'] - -export const mockOrgNameSearch = (input: SearchInput): ApiOutput['organization']['searchName'] => { - const searchRegex = new RegExp(`.*${input.search}.*`, 'i') - const results = mockData.filter(({ label }) => searchRegex.test(label)) - return results -} - -export const mockData = [ - { - value: 'Lyon-Martin Health Services', - label: 'Lyon-Martin Health Services', - id: 'orgn_01GSKV7YTJ3R4PM8SSHBZ72HX1', - slug: 'lyon-martin-health-services', - }, - { - value: 'Larkin Street Youth Services', - label: 'Larkin Street Youth Services', - id: 'orgn_01GSKV7YV30W3B6EWEF4SJSX9S', - slug: 'larkin-street-youth-services', - }, - { - value: 'Mission Neighborhood Health Center', - label: 'Mission Neighborhood Health Center', - id: 'orgn_01GSKV7YVNTF1REYZGTAPA9HP8', - slug: 'mission-neighborhood-health-center', - }, - { - value: 'North East Medical Services', - label: 'North East Medical Services', - id: 'orgn_01GSKV7YW7XVRN9VZF9EPWWQVJ', - slug: 'north-east-medical-services', - }, - { - value: 'San Francisco Community Health Center', - label: 'San Francisco Community Health Center', - id: 'orgn_01GSKV7YWS9CEYHZF99HEXMT48', - slug: 'san-francisco-community-health-center', - }, - { - value: 'San Francisco City Clinic', - label: 'San Francisco City Clinic', - id: 'orgn_01GSKV7YXBSTXX9F9627HHRSMN', - slug: 'san-francisco-city-clinic', - }, - { - value: 'St. James Infirmary (SJI)', - label: 'St. James Infirmary (SJI)', - id: 'orgn_01GSKV7YXX9PW72HTYAD5DAPW4', - slug: 'st-james-infirmary-sji', - }, - { - value: 'Upwardly Global', - label: 'Upwardly Global', - id: 'orgn_01GSKV7YYF8FDW9PAEQM606T5J', - slug: 'upwardly-global', - }, - { - value: 'Episcopal Community Services', - label: 'Episcopal Community Services', - id: 'orgn_01GSKV7YZ12KK64KBGYJTNDY7Q', - slug: 'episcopal-community-services', - }, - { - value: 'Transgender Law Center (TLC)', - label: 'Transgender Law Center (TLC)', - id: 'orgn_01GSKV7YZK90DKC1JCJGTJFJQS', - slug: 'transgender-law-center-tlc', - }, - { - value: 'San Francisco City Impact', - label: 'San Francisco City Impact', - id: 'orgn_01GSKV7Z0425JENMBG75JSD22P', - slug: 'san-francisco-city-impact', - }, - { - value: 'The Trevor Project', - label: 'The Trevor Project', - id: 'orgn_01GSKV7Z18SGSYMEPJS59TNYGY', - slug: 'the-trevor-project', - }, - { - value: 'Billy DeFrank LGBTQ+ Community Center', - label: 'Billy DeFrank LGBTQ+ Community Center', - id: 'orgn_01GSKV7Z1VFW1VB6RB04P7MQ56', - slug: 'billy-defrank-lgbtq-community-center', - }, - { - value: 'United We Dream', - label: 'United We Dream', - id: 'orgn_01GSKV7Z2ZWQM265B04N0KP9JW', - slug: 'united-we-dream', - }, - { - value: 'Los Angeles Regional Food Bank', - label: 'Los Angeles Regional Food Bank', - id: 'orgn_01GSKV7Z3HE7SSMGDF7ZF949RB', - slug: 'los-angeles-regional-food-bank', - }, - { - value: 'Los Angeles LGBT Center', - label: 'Los Angeles LGBT Center', - id: 'orgn_01GSKV7Z40VJ549D2TX63K0D4R', - slug: 'los-angeles-lgbt-center', - }, - { - value: "St. John's Well Child and Family Center", - label: "St. John's Well Child and Family Center", - id: 'orgn_01GSKV7Z4KN9HDW04FYQRF30Q4', - slug: 'st-johns-well-child-and-family-center', - }, - { - value: 'Pro Bono Project', - label: 'Pro Bono Project', - id: 'orgn_01GSKV7Z545Y5NZCW5G2XJRR00', - slug: 'pro-bono-project', - }, - { - value: 'LGBTQ Center Long Beach', - label: 'LGBTQ Center Long Beach', - id: 'orgn_01GSKV7Z5PFVY0KERFKHYMZDP6', - slug: 'lgbtq-center-long-beach', - }, - { - value: 'Eastmont Community Center', - label: 'Eastmont Community Center', - id: 'orgn_01GSKV7Z6SJBT1TFD5QEZ7868Y', - slug: 'eastmont-community-center', - }, - { - value: 'Covenant Presbyterian Church', - label: 'Covenant Presbyterian Church', - id: 'orgn_01GSKV7Z7AJKHE0B2G7B5HYW90', - slug: 'covenant-presbyterian-church', - }, - { - value: 'Emeryville Citizens Assistance Program', - label: 'Emeryville Citizens Assistance Program', - id: 'orgn_01GSKV7Z7X422NREA7DXJ8G6WG', - slug: 'emeryville-citizens-assistance-program', - }, - { - value: 'Northwest Immigrant Rights Project (NWIRP)', - label: 'Northwest Immigrant Rights Project (NWIRP)', - id: 'orgn_01GSKV7Z8FX1ZYM86191S1CCD9', - slug: 'northwest-immigrant-rights-project-nwirp', - }, - { - value: 'Entre Hermanos', - label: 'Entre Hermanos', - id: 'orgn_01GSKV7Z9JDXB27TBFRDV5AGMZ', - slug: 'entre-hermanos', - }, - { - value: 'Law Office of Andre Olivie, PLLC', - label: 'Law Office of Andre Olivie, PLLC', - id: 'orgn_01GSKV7ZA5CXFNH7E1A828J4PA', - slug: 'law-office-of-andre-olivie-pllc', - }, - { - value: 'Jewish Vocational Service SoCal (JVS SoCal)', - label: 'Jewish Vocational Service SoCal (JVS SoCal)', - id: 'orgn_01GSKV7ZAQD87Q8D1CF5ET6XHG', - slug: 'jewish-vocational-service-socal-jvs-socal', - }, - { - value: 'PARS Equality Center', - label: 'PARS Equality Center', - id: 'orgn_01GSKV7ZB9K1SVYNS48YAA26QP', - slug: 'pars-equality-center', - }, - { - value: 'Haitian Women for Haitian Refugees', - label: 'Haitian Women for Haitian Refugees', - id: 'orgn_01GSKV7ZBVGFXCGM44HZDZBE6H', - slug: 'haitian-women-for-haitian-refugees', - }, - { - value: 'The Karsh Center', - label: 'The Karsh Center', - id: 'orgn_01GSKV7ZCBCNXV6RM0CJNK8S3R', - slug: 'the-karsh-center', - }, - { - value: 'Catholic Charities of Los Angeles, Inc.', - label: 'Catholic Charities of Los Angeles, Inc.', - id: 'orgn_01GSKV7ZCX8ABDKDQCJ0C7FYK2', - slug: 'catholic-charities-of-los-angeles-inc', - }, - { - value: 'Friends Community Center', - label: 'Friends Community Center', - id: 'orgn_01GSKV7ZDE2C896P8H853D9C7Z', - slug: 'friends-community-center', - }, - { - value: 'The Northwest Network of Survivors', - label: 'The Northwest Network of Survivors', - id: 'orgn_01GSKV7ZEHMQZW5VBK906C61DM', - slug: 'the-northwest-network-of-survivors', - }, - { - value: 'Neighborcare Health', - label: 'Neighborcare Health', - id: 'orgn_01GSKV7ZFNDEJ0PH6YRWTA2QF7', - slug: 'neighborcare-health', - }, - { - value: 'ROOTS', - label: 'ROOTS', - id: 'orgn_01GSKV7ZG74M6CMTK1B72X23KS', - slug: 'roots', - }, - { - value: 'Jewish Family Service of Seattle', - label: 'Jewish Family Service of Seattle', - id: 'orgn_01GSKV7ZGRFA5HCK6DG4J2Q9JD', - slug: 'jewish-family-service-of-seattle', - }, - { - value: 'Asian Counseling and Referral Service (ACRS)', - label: 'Asian Counseling and Referral Service (ACRS)', - id: 'orgn_01GSKV7ZHAXTMPN5H4V1YGB02R', - slug: 'asian-counseling-and-referral-service-acrs', - }, - { - value: 'Thai Community Development Center', - label: 'Thai Community Development Center', - id: 'orgn_01GSKV7ZHVFG0XDYY5X2MQMNXR', - slug: 'thai-community-development-center', - }, - { - value: "Alameda County Sheriff's Office - Youth and Family Services Bureau (YFSB)", - label: "Alameda County Sheriff's Office - Youth and Family Services Bureau (YFSB)", - id: 'orgn_01GSKV7ZJDJ75T1DSWC8832EEY', - slug: 'alameda-county-sheriffs-office-youth-and-family-services-bureau-yfsb', - }, - { - value: 'Consejo Counseling & Referral Service', - label: 'Consejo Counseling & Referral Service', - id: 'orgn_01GSKV7ZJYDGBKM6VGYMJ0QM06', - slug: 'consejo-counseling-and-referral-service', - }, - { - value: 'Three Dollar Bill Cinema', - label: 'Three Dollar Bill Cinema', - id: 'orgn_01GSKV7ZKG091YZ38BW1JV10F2', - slug: 'three-dollar-bill-cinema', - }, - { - value: 'Rainbow City Performing Arts (RCPA)', - label: 'Rainbow City Performing Arts (RCPA)', - id: 'orgn_01GSKV7ZM1GCYTB888VCPJZTJ9', - slug: 'rainbow-city-performing-arts-rcpa', - }, - { - value: 'OutVentures', - label: 'OutVentures', - id: 'orgn_01GSKV7ZN508X33W2571FXX85K', - slug: 'outventures', - }, - { - value: 'Lutheran Community Services Northwest - Refugees Northwest Program', - label: 'Lutheran Community Services Northwest - Refugees Northwest Program', - id: 'orgn_01GSKV7ZPA3CK1KB29XFHQ273N', - slug: 'lutheran-community-services-northwest-refugees-northwest-program', - }, - { - value: 'The Jewish Federation of Greater Seattle', - label: 'The Jewish Federation of Greater Seattle', - id: 'orgn_01GSKV7ZPW4NQ9T3ANJJSMBBG7', - slug: 'the-jewish-federation-of-greater-seattle', - }, - { - value: 'Philadelphia Human Rights Clinic', - label: 'Philadelphia Human Rights Clinic', - id: 'orgn_01GSKV7ZR7Y7EJ40JMZ0T6ZHJR', - slug: 'philadelphia-human-rights-clinic', - }, - { - value: 'William Way LGBT Community Center', - label: 'William Way LGBT Community Center', - id: 'orgn_01GSKV7ZRZ48X16MCV729SED80', - slug: 'william-way-lgbt-community-center', - }, - { - value: 'Nemours Pediatrics', - label: 'Nemours Pediatrics', - id: 'orgn_01GSKV7ZSQPWJ7CMM074BWDCCW', - slug: 'nemours-pediatrics', - }, - { - value: 'Reading Hospital Women’s Health Center', - label: 'Reading Hospital Women’s Health Center', - id: 'orgn_01GSKV7ZT9GGMHY4YVMNFRCN3Q', - slug: 'reading-hospital-womens-health-center', - }, - { - value: 'Equal Access Legal Services', - label: 'Equal Access Legal Services', - id: 'orgn_01GSKV7ZTTMQ4A4T1Z6A2H96DG', - slug: 'equal-access-legal-services', - }, - { - value: 'Philadelphia Voices of Pride', - label: 'Philadelphia Voices of Pride', - id: 'orgn_01GSKV7ZVXXXGP2069FX6M7A68', - slug: 'philadelphia-voices-of-pride', - }, - { - value: 'Peer Seattle', - label: 'Peer Seattle', - id: 'orgn_01GSKV7ZX10FX9J6VAYVA9KDQE', - slug: 'peer-seattle', - }, - { - value: "Children's Hospital of Philadelphia - Refugee Health Program", - label: "Children's Hospital of Philadelphia - Refugee Health Program", - id: 'orgn_01GSKV7ZXJEPEVWNN5M0EKRXCC', - slug: 'childrens-hospital-of-philadelphia-refugee-health-program', - }, - { - value: 'Seattle Frontrunners', - label: 'Seattle Frontrunners', - id: 'orgn_01GSKV7ZY4XZEYANVX1C7E8AYF', - slug: 'seattle-frontrunners', - }, - { - value: 'Whitman-Walker Health', - label: 'Whitman-Walker Health', - id: 'orgn_01GSKV7ZYP2GDSH8PNJY3TVTYK', - slug: 'whitman-walker-health', - }, - { - value: 'The DC Center for the LGBT Community', - label: 'The DC Center for the LGBT Community', - id: 'orgn_01GSKV7ZZ7GMGR4HA686J09K2F', - slug: 'the-dc-center-for-the-lgbt-community', - }, - { - value: 'The Attic Youth Center', - label: 'The Attic Youth Center', - id: 'orgn_01GSKV7ZZS5T2KXTK1YD385GGA', - slug: 'the-attic-youth-center', - }, - { - value: 'COMHAR', - label: 'COMHAR', - id: 'orgn_01GSKV800AGJTHZS6Q3S210SVR', - slug: 'comhar', - }, - { - value: 'Community Behavioral Health', - label: 'Community Behavioral Health', - id: 'orgn_01GSKV800WEBJP0026WFDC60ZP', - slug: 'community-behavioral-health', - }, - { - value: 'Congreso', - label: 'Congreso', - id: 'orgn_01GSKV801EWZNDJDZHXNJYX0TJ', - slug: 'congreso', - }, - { - value: 'AIDS Activities Coordinating Office', - label: 'AIDS Activities Coordinating Office', - id: 'orgn_01GSKV80202MD7PTD0TF764GQA', - slug: 'aids-activities-coordinating-office', - }, - { - value: 'Einstein Health - Community Practice Center', - label: 'Einstein Health - Community Practice Center', - id: 'orgn_01GSKV804WKY61R21581QM1S08', - slug: 'einstein-health-community-practice-center', - }, - { - value: 'Public Health Management Corporation - Health Connection', - label: 'Public Health Management Corporation - Health Connection', - id: 'orgn_01GSKV805EPXBQVVV0FAPCQSHS', - slug: 'public-health-management-corporation-health-connection', - }, - { - value: 'Public Health Management Corporation - Rising Sun', - label: 'Public Health Management Corporation - Rising Sun', - id: 'orgn_01GSKV80601Q24151QRZCQ4HVN', - slug: 'public-health-management-corporation-rising-sun', - }, - { - value: 'Lambert House', - label: 'Lambert House', - id: 'orgn_01GSKV806HHFJZRS3YZQQTMSY3', - slug: 'lambert-house', - }, - { - value: 'The Mazzoni Center', - label: 'The Mazzoni Center', - id: 'orgn_01GSKV8072RG8Q64KT6EX7WM00', - slug: 'the-mazzoni-center', - }, - { - value: 'Nationalities Services Center', - label: 'Nationalities Services Center', - id: 'orgn_01GSKV807MXP55HHZ9DR570S2W', - slug: 'nationalities-services-center', - }, - { - value: 'The COLOURS Organization', - label: 'The COLOURS Organization', - id: 'orgn_01GSKV8086PF12B1G5S5KMHMHZ', - slug: 'the-colours-organization', - }, - { - value: 'Women Organized Against Rape (WOAR)', - label: 'Women Organized Against Rape (WOAR)', - id: 'orgn_01GSKV808QQ0KSMMRT1900SB0J', - slug: 'women-organized-against-rape-woar', - }, - { - value: 'AccessMatters', - label: 'AccessMatters', - id: 'orgn_01GSKV80AYBHFPQR5HYQHN1Y6V', - slug: 'accessmatters', - }, - { - value: 'AIDS Law Project of Pennsylvania', - label: 'AIDS Law Project of Pennsylvania', - id: 'orgn_01GSKV80BF1DKN38AWM42N7CH2', - slug: 'aids-law-project-of-pennsylvania', - }, - { - value: 'African Cultural Alliance of North America, Inc.', - label: 'African Cultural Alliance of North America, Inc.', - id: 'orgn_01GSKV80CHXF7S80WWMFHVHH05', - slug: 'african-cultural-alliance-of-north-america-inc', - }, - { - value: 'Catholic Social Services of Philadelphia - Immigration Legal Services', - label: 'Catholic Social Services of Philadelphia - Immigration Legal Services', - id: 'orgn_01GSKV80D4G6VH7P46MZVE34QG', - slug: 'catholic-social-services-of-philadelphia-immigration-legal-services', - }, - { - value: 'El Centro de la Raza', - label: 'El Centro de la Raza', - id: 'orgn_01GSKV80E6VAN5Y1VQYQZK7FRK', - slug: 'el-centro-de-la-raza', - }, - { - value: 'Human Rights First', - label: 'Human Rights First', - id: 'orgn_01GSKV80EQB9J7JNV4AYESDR12', - slug: 'human-rights-first', - }, - { - value: 'The George Washington University Immigration Clinic', - label: 'The George Washington University Immigration Clinic', - id: 'orgn_01GSKV80FB7Y8669784XFN5FQN', - slug: 'the-george-washington-university-immigration-clinic', - }, - { - value: "Capital Area Immigrants' Rights (CAIR) Coalition", - label: "Capital Area Immigrants' Rights (CAIR) Coalition", - id: 'orgn_01GSKV80HG3HN3XKNW81BWFPH6', - slug: 'capital-area-immigrants-rights-cair-coalition', - }, - { - value: 'National Center for Lesbian Rights (NCLR)', - label: 'National Center for Lesbian Rights (NCLR)', - id: 'orgn_01GSKV80J2KNWNP0TY5EM36Z2S', - slug: 'national-center-for-lesbian-rights-nclr', - }, - { - value: 'Penn Medicine Program for LGBT Health', - label: 'Penn Medicine Program for LGBT Health', - id: 'orgn_01GSKV80K5Y6WT4JGDRZ605ZF6', - slug: 'penn-medicine-program-for-lgbt-health', - }, - { - value: 'The LGBT Asylum Project', - label: 'The LGBT Asylum Project', - id: 'orgn_01GSKV80MSNSJXHV1SX209VSF7', - slug: 'the-lgbt-asylum-project', - }, - { - value: 'The Lesbian, Gay, Bisexual & Transgender Community Center', - label: 'The Lesbian, Gay, Bisexual & Transgender Community Center', - id: 'orgn_01GSKV80PQTS0GCFACR35YG4J6', - slug: 'the-lesbian-gay-bisexual-and-transgender-community-center', - }, - { - value: 'St. James Immigrant Assistance', - label: 'St. James Immigrant Assistance', - id: 'orgn_01GSKV80QXZS5281HXQ6SMJ2NP', - slug: 'st-james-immigrant-assistance', - }, - { - value: 'Rainbow Center', - label: 'Rainbow Center', - id: 'orgn_01GSKV80REK1Z8XGH3NS8MHA4J', - slug: 'rainbow-center', - }, - { - value: 'New York Legal Assistance Group (NYLAG)', - label: 'New York Legal Assistance Group (NYLAG)', - id: 'orgn_01GSKV80RZJV32Z3VEPEWGB8NK', - slug: 'new-york-legal-assistance-group-nylag', - }, - { - value: 'African Hope Committee', - label: 'African Hope Committee', - id: 'orgn_01GSKV80SHTVWB7EK10WG3FSDP', - slug: 'african-hope-committee', - }, - { - value: 'City Bar Justice Center (CBJC)', - label: 'City Bar Justice Center (CBJC)', - id: 'orgn_01GSKV80T3NTH3P2NEQF54XS0P', - slug: 'city-bar-justice-center-cbjc', - }, - { - value: 'Housing Works', - label: 'Housing Works', - id: 'orgn_01GSKV80TMTCJDBVKNGA4CJHDT', - slug: 'housing-works', - }, - { - value: 'Immigration Equality', - label: 'Immigration Equality', - id: 'orgn_01GSKV80V6ZX0E5WWQXQX0RC23', - slug: 'immigration-equality', - }, - { - value: 'RAICES - San Antonio North', - label: 'RAICES - San Antonio North', - id: 'orgn_01GSKV81CKCYRQ4B6MNSSYCFK0', - slug: 'raices-san-antonio-north', - }, - { - value: 'Gender Justice League (GJL)', - label: 'Gender Justice League (GJL)', - id: 'orgn_01GSKV80WC6JV47EF4T8NA1H8H', - slug: 'gender-justice-league-gjl', - }, - { - value: 'People of Color Against AIDS Network (POCAAN)', - label: 'People of Color Against AIDS Network (POCAAN)', - id: 'orgn_01GSKV80Y1BQKC2FDKZ14R0BTJ', - slug: 'people-of-color-against-aids-network-pocaan', - }, - { - value: 'HealthRIGHT 360', - label: 'HealthRIGHT 360', - id: 'orgn_01GSKV80Z48VYKHPRWHP01ZQC7', - slug: 'healthright-360', - }, - { - value: 'Queer Detainee Empowerment Project (QDEP)', - label: 'Queer Detainee Empowerment Project (QDEP)', - id: 'orgn_01GSKV80ZPWHF9PM7C7G5E05VQ', - slug: 'queer-detainee-empowerment-project-qdep', - }, - { - value: 'Community Forward San Francisco', - label: 'Community Forward San Francisco', - id: 'orgn_01GSKV8109S9RKKZQJY72GZRVF', - slug: 'community-forward-san-francisco', - }, - { - value: 'Homeless Outreach Program Integrated Care System (HOPICS)', - label: 'Homeless Outreach Program Integrated Care System (HOPICS)', - id: 'orgn_01GSKV810T4GPF2RF968V4Z7ZP', - slug: 'homeless-outreach-program-integrated-care-system-hopics', - }, - { - value: 'Safe Horizon', - label: 'Safe Horizon', - id: 'orgn_01GSKV811BMKXHS88PFD0VK2RJ', - slug: 'safe-horizon', - }, - { - value: 'RUSA LGBT', - label: 'RUSA LGBT', - id: 'orgn_01GSKV8120EYRWBHAW915M0QE5', - slug: 'rusa-lgbt', - }, - { - value: 'RIF Asylum Support', - label: 'RIF Asylum Support', - id: 'orgn_01GSKV812HYNB02ZGABFXAGNHP', - slug: 'rif-asylum-support', - }, - { - value: 'Jewish Family Services of Western New York', - label: 'Jewish Family Services of Western New York', - id: 'orgn_01GSKV8134SBEQ5E34JCMKDAFS', - slug: 'jewish-family-services-of-western-new-york', - }, - { - value: "HealthRight International's Human Rights Clinic (HRC)", - label: "HealthRight International's Human Rights Clinic (HRC)", - id: 'orgn_01GSKV813SGKXCKZWWX484G5WR', - slug: 'healthright-internationals-human-rights-clinic-hrc', - }, - { - value: 'BronxWorks', - label: 'BronxWorks', - id: 'orgn_01GSKV814BV7YGZ46HCTJPAYDA', - slug: 'bronxworks', - }, -] diff --git a/packages/ui/mockData/orgService.ts b/packages/ui/mockData/orgService.ts deleted file mode 100644 index 5ada822e8f..0000000000 --- a/packages/ui/mockData/orgService.ts +++ /dev/null @@ -1,1464 +0,0 @@ -import { type ApiOutput } from '@weareinreach/api' -import { getTRPCMock } from '~ui/lib/getTrpcMock' - -export const getNames = [ - { - id: 'osvc_01GVH3VEVPF1KEKBTRVTV70WGV', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVPF1KEKBTRVTV70WGV.name', - defaultText: 'Get rapid HIV testing', - }, - { - id: 'osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ.name', - defaultText: 'Receive gender affirming care and services', - }, - { - id: 'osvc_01GVH3VEVSNF9NH79R7HC9FHY6', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVSNF9NH79R7HC9FHY6.name', - defaultText: 'Get HIV care for newly diagnosed patients', - }, - { - id: 'osvc_01GVH3VEVVHBRF1FFXZGMMYG7D', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVVHBRF1FFXZGMMYG7D.name', - defaultText: 'Access youth and family support services', - }, - { - id: 'osvc_01GVH3VEVY24KAYTWY2ZSFZNBX', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVY24KAYTWY2ZSFZNBX.name', - defaultText: 'Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)', - }, - { - id: 'osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC.name', - defaultText: 'Get legal help with immigration services', - }, - { - id: 'osvc_01GVH3VEW2ND36DB0XWAH1PQY0', - tsKey: 'whitman-walker-health.osvc_01GVH3VEW2ND36DB0XWAH1PQY0.name', - defaultText: 'Get dental health services for HIV-positive individuals', - }, - { - id: 'osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z', - tsKey: 'whitman-walker-health.osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z.name', - defaultText: 'Receive behavioral health services', - }, - { - id: 'osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG.name', - defaultText: - 'Get legal help for transgender people to replace and update name/gender marker on immigration documents', - }, - { - id: 'osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55.name', - defaultText: 'Get the COVID-19 vaccine', - }, - { - id: 'osvc_01GVH3VEWHDC6F5FCQHB0H5GD6', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWHDC6F5FCQHB0H5GD6.name', - defaultText: 'Get gender affirming hormone therapy', - }, - { - id: 'osvc_01GVH3VEWK33YAKZMQ2W3GT4QK', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWK33YAKZMQ2W3GT4QK.name', - defaultText: 'Access PEP and PrEP', - }, - { - id: 'osvc_01GVH3VEWM65579T29F19QXP8E', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWM65579T29F19QXP8E.name', - defaultText: 'Get help with navigating health insurance options', - }, -] satisfies ApiOutput['service']['getNames'] - -export const serviceData = { - getNames, - forServiceDrawer: { - 'medical.CATEGORYNAME': [ - { - id: 'osvc_01GVH3VEVPF1KEKBTRVTV70WGV', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVPF1KEKBTRVTV70WGV.name', - defaultText: 'Get rapid HIV testing', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ.name', - defaultText: 'Receive gender affirming care and services', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEVSNF9NH79R7HC9FHY6', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVSNF9NH79R7HC9FHY6.name', - defaultText: 'Get HIV care for newly diagnosed patients', - }, - locations: ['Whitman-Walker 1525'], - attributes: [], - }, - { - id: 'osvc_01GVH3VEVVHBRF1FFXZGMMYG7D', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVVHBRF1FFXZGMMYG7D.name', - defaultText: 'Access youth and family support services', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEW2ND36DB0XWAH1PQY0', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEW2ND36DB0XWAH1PQY0.name', - defaultText: 'Get dental health services for HIV-positive individuals', - }, - locations: ['Whitman-Walker 1525'], - attributes: [], - }, - { - id: 'osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55.name', - defaultText: 'Get the COVID-19 vaccine', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEWHDC6F5FCQHB0H5GD6', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWHDC6F5FCQHB0H5GD6.name', - defaultText: 'Get gender affirming hormone therapy', - }, - locations: ['Whitman-Walker 1525'], - attributes: [], - }, - { - id: 'osvc_01GVH3VEWK33YAKZMQ2W3GT4QK', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWK33YAKZMQ2W3GT4QK.name', - defaultText: 'Access PEP and PrEP', - }, - locations: ['Whitman-Walker 1525'], - attributes: [], - }, - { - id: 'osvc_01GVH3VEWM65579T29F19QXP8E', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWM65579T29F19QXP8E.name', - defaultText: 'Get help with navigating health insurance options', - }, - locations: [], - attributes: [], - }, - ], - 'legal.CATEGORYNAME': [ - { - id: 'osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ.name', - defaultText: 'Receive gender affirming care and services', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC.name', - defaultText: 'Get legal help with immigration services', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG.name', - defaultText: - 'Get legal help for transgender people to replace and update name/gender marker on immigration documents', - }, - locations: [], - attributes: [], - }, - ], - 'mental-health.CATEGORYNAME': [ - { - id: 'osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ.name', - defaultText: 'Receive gender affirming care and services', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEVVHBRF1FFXZGMMYG7D', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVVHBRF1FFXZGMMYG7D.name', - defaultText: 'Access youth and family support services', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEVY24KAYTWY2ZSFZNBX', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVY24KAYTWY2ZSFZNBX.name', - defaultText: 'Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z.name', - defaultText: 'Receive behavioral health services', - }, - locations: ['Whitman-Walker 1525'], - attributes: [], - }, - ], - 'community-support.CATEGORYNAME': [ - { - id: 'osvc_01GVH3VEVVHBRF1FFXZGMMYG7D', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVVHBRF1FFXZGMMYG7D.name', - defaultText: 'Access youth and family support services', - }, - locations: [], - attributes: [], - }, - { - id: 'osvc_01GVH3VEVY24KAYTWY2ZSFZNBX', - name: { - tsNs: 'org-data', - tsKey: 'whitman-walker-health.osvc_01GVH3VEVY24KAYTWY2ZSFZNBX.name', - defaultText: 'Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)', - }, - locations: [], - attributes: [], - }, - ], - }, - forServiceEditDrawer: { - id: 'osvc_01GVH3VEVPF1KEKBTRVTV70WGV', - description: { - key: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH.osvc_01GVH3VEVPF1KEKBTRVTV70WGV.description', - ns: 'org-data', - tsKey: { - text: 'Whitman-Walker provides walk-in HIV testing at multiple locations in DC. Walk-in HIV testing includes a confidential, rapid HIV test and risk-reduction counseling. The counseling provides clients with education on their options for having safer sex. Whitman-Walker uses the INSTI® HIV-1/HIV-2 Rapid Antibody Test and results take one minute.', - crowdinId: 773222, - }, - }, - hours: [], - published: true, - deleted: false, - serviceName: { - key: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH.osvc_01GVH3VEVPF1KEKBTRVTV70WGV.name', - ns: 'org-data', - tsKey: { - text: 'Get rapid HIV testing', - crowdinId: 773224, - }, - }, - phones: ['ophn_01GVH3VEVCFKT3NWQ79STYVDKR', 'ophn_01GVH3VEVC36PW0Z9GDV0ZERV1'], - emails: [], - locations: ['oloc_01GVH3VEVBRCFA2AHNTWCXQA2B', 'oloc_01GVH3VEVBSA85T6VR2C38BJPT'], - services: [ - { - id: 'svtg_01GW2HHFBRPBXSYN12DWNEAJJ7', - primaryCategoryId: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - }, - ], - serviceAreas: { - id: 'svar_01GW2HT9F1JKT1MCAJ3P7XBDHP', - countries: [], - districts: ['gdst_01GW2HJ5A278S2G84AB3N9FCW0'], - }, - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFV3BADK80TG0DXXFPMM', - tsKey: 'additional.has-confidentiality-policy', - tsNs: 'attribute', - icon: null, - categories: ['additional-information'], - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFV4TM7H5V6FHWA7S9JK', - tsKey: 'additional.time-walk-in', - tsNs: 'attribute', - icon: null, - categories: ['additional-information'], - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVA06WHRSM241ZF0FY0', - tsKey: 'community.hiv-aids', - tsNs: 'attribute', - icon: null, - categories: ['community'], - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGDTNW9PDQNXK6TF1T', - tsKey: 'cost.cost-free', - tsNs: 'attribute', - icon: 'carbon:piggy-bank', - categories: ['cost'], - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVJ8K180CNX339BTXM2', - tsKey: 'lang.lang-offered', - tsNs: 'attribute', - icon: null, - categories: ['languages'], - }, - supplement: [ - { - id: 'atts_01GW2HT9F15B2HJK144B3NZHQK', - active: true, - boolean: null, - countryId: null, - govDistId: null, - languageId: 'lang_0000000000N3K70GZXE29Z03A4', - text: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVK8KPRGKYFSSM5ECPQ', - tsKey: 'sys.incompatible-info', - tsNs: 'attribute', - icon: null, - categories: ['system'], - }, - supplement: [ - { - id: 'atts_01GW2HT9F13VVJCJ8W2WE86R6N', - active: true, - boolean: null, - countryId: null, - govDistId: null, - languageId: null, - text: null, - data: [ - { - 'community-lgbt': 'true', - }, - {}, - ], - }, - ], - }, - ], - accessDetails: [ - { - attribute: { - id: 'attr_01GW2HHFVMH6AE94EXN7T5A87C', - tsKey: 'serviceaccess.accesslocation', - tsNs: 'attribute', - }, - supplement: [ - { - id: 'atts_01GW2HT9F0SPS3EBCQ710RCNTA', - text: { - key: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH.attribute.atts_01GW2HT9F0SPS3EBCQ710RCNTA', - ns: 'org-data', - tsKey: { - text: 'Max Robinson Center - NO walk-in testing is available. Monday: 08:30-12:30, 13:30-17:30; Tuesday: 08:30 - 12:30, 13:30 - 17:30; Wednesday: 08:30 - 12:30, 13:30 - 17:30; Thursday: 08:30 - 12:30, 13:30 - 17:30; Friday: 08:30 - 12:30, 14:15 - 17:30.', - crowdinId: 1535745, - }, - }, - data: { - _id: { - $oid: '5e7e4bdbd54f1760921a4231', - }, - access_type: 'location', - access_value: '2301 M. Luther King Jr., Washington DC 20020', - instructions: - 'Max Robinson Center - NO walk-in testing is available. Monday: 08:30-12:30, 13:30-17:30; Tuesday: 08:30 - 12:30, 13:30 - 17:30; Wednesday: 08:30 - 12:30, 13:30 - 17:30; Thursday: 08:30 - 12:30, 13:30 - 17:30; Friday: 08:30 - 12:30, 14:15 - 17:30.', - access_value_ES: '2301 M. Luther King Jr., Washington DC 20020', - instructions_ES: - 'Centro Max Robinson: NO hay pruebas disponibles sin cita previa. Lunes: 08:30-12:30, 13:30-17:30; Martes: 08:30 - 12:30, 13:30 - 17:30; Miércoles: 08:30 - 12:30, 13:30 - 17:30; Jueves: 08:30 - 12:30, 13:30 - 17:30; Viernes: 08:30 - 12:30, 14:15 - 17:30.', - }, - }, - { - id: 'atts_01GW2HT9F0638MD74PJ3SCWNXC', - text: { - key: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH.attribute.atts_01GW2HT9F0638MD74PJ3SCWNXC', - ns: 'org-data', - tsKey: { - text: 'Whitman-Walker at 1525 - NO walk-in testing is available. Monday-Thursday: 08:30-12:30 & 13:30-17:30; Friday: 08:30- 12:30 & 14:30 -17:30.', - crowdinId: 1535741, - }, - }, - data: { - _id: { - $oid: '5e7e4bdbd54f1760921a4233', - }, - access_type: 'location', - access_value: '1525 14th St, NW Washington, DC 20005', - instructions: - 'Whitman-Walker at 1525 - NO walk-in testing is available. Monday-Thursday: 08:30-12:30 & 13:30-17:30; Friday: 08:30- 12:30 & 14:30 -17:30.', - access_value_ES: '1525 14th St, NW Washington, DC 20005', - instructions_ES: - 'Whitman-Walker en 1525: NO hay pruebas disponibles. Lunes-Jueves: 08:30-12:30 y 13:30-17:30; Viernes: 08:30- 12:30 y 14:30 -17:30.', - }, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVMKTFWCKBVVFJ5GMY0', - tsKey: 'serviceaccess.accessphone', - tsNs: 'attribute', - }, - supplement: [ - { - id: 'atts_01GW2HT9F09GFRWM3JK2A43AWG', - text: { - key: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH.attribute.atts_01GW2HT9F09GFRWM3JK2A43AWG', - ns: 'org-data', - tsKey: { - text: 'Contact the Main Office about services offered in multiple languages upon request.', - crowdinId: 1535743, - }, - }, - data: { - _id: { - $oid: '5e7e4bdbd54f1760921a4235', - }, - access_type: 'phone', - access_value: '202-745-7000', - instructions: - 'Contact the Main Office about services offered in multiple languages upon request. ', - access_value_ES: '202-745-7000', - instructions_ES: - 'Comunícate con la oficina principal sobre los servicios que se ofrecen en varios idiomas si lo solicitas.', - }, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVMYXMS8ARA3GE7HZFD', - tsKey: 'serviceaccess.accesslink', - tsNs: 'attribute', - }, - supplement: [ - { - id: 'atts_01GW2HT9F01W2M7FBSKSXAQ9R4', - text: { - key: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH.attribute.atts_01GW2HT9F01W2M7FBSKSXAQ9R4', - ns: 'org-data', - tsKey: { - text: "Visit the website to learn more about Whitman-Walker's testing hours and locations.", - crowdinId: 1535739, - }, - }, - data: { - _id: { - $oid: '5e7e4bdbd54f1760921a4234', - }, - access_type: 'link', - access_value: 'https://www.whitman-walker.org/hiv-sti-testing', - instructions: - "Visit the website to learn more about Whitman-Walker's testing hours and locations. ", - access_value_ES: 'https://www.whitman-walker.org/hiv-sti-testing', - instructions_ES: - 'Visita el sitio web para obtener más información sobre los horarios y lugares de prueba de Whitman-Walker.', - }, - }, - ], - }, - ], - }, - getOptions: [ - { - id: 'svtg_01GW2HHFBN31248B3MH1486GE9', - active: true, - tsKey: 'abortion-care.abortion-providers', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVBM0ZHVJ295P2QKR6H', - active: true, - tsKey: 'abortion-care.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBNJ01JJT2ZGR52T4CM', - active: true, - tsKey: 'abortion-care.financial-assistance', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVBM0ZHVJ295P2QKR6H', - active: true, - tsKey: 'abortion-care.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBNE70TNNS3KMKEYG8C', - active: true, - tsKey: 'abortion-care.lodging-assistance', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVBM0ZHVJ295P2QKR6H', - active: true, - tsKey: 'abortion-care.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBNPM2CZ5S6A5GZ3CWY', - active: true, - tsKey: 'abortion-care.mail-order-services', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVBM0ZHVJ295P2QKR6H', - active: true, - tsKey: 'abortion-care.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBNM7GG79WYXK355RC2', - active: true, - tsKey: 'abortion-care.mental-health-support', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVBM0ZHVJ295P2QKR6H', - active: true, - tsKey: 'abortion-care.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBN1NBS5WWDSNB2D9DA', - active: true, - tsKey: 'abortion-care.travel-assistance', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVBM0ZHVJ295P2QKR6H', - active: true, - tsKey: 'abortion-care.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBND37W7E730QVADK0B', - active: true, - tsKey: 'community-support.cultural-centers', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3', - active: true, - tsKey: 'community-support.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBNJ4CGGZATZZS8DZWR', - active: true, - tsKey: 'community-support.lgbtq-centers', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3', - active: true, - tsKey: 'community-support.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBN7M36NVSDWR6M9K20', - active: true, - tsKey: 'community-support.reception-services', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3', - active: true, - tsKey: 'community-support.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBN7GFWZJSATZDCK7EM', - active: true, - tsKey: 'community-support.sponsors', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3', - active: true, - tsKey: 'community-support.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBN1CFQYR8RPA0KHSV0', - active: true, - tsKey: 'community-support.spiritual-support', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3', - active: true, - tsKey: 'community-support.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBN4B2F1W8HAWNK1HVS', - active: true, - tsKey: 'computers-and-internet.computers-and-internet', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVDKRVB42KT85KA3FM3', - active: true, - tsKey: 'computers-and-internet.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBP8GY6D2YJ8N1GYTNH', - active: true, - tsKey: 'education-and-employment.career-counseling', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - active: true, - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPZFZF43FEHPV32JC8', - active: true, - tsKey: 'education-and-employment.educational-support-for-lgbtq-youth', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - active: true, - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPC0P27MT0WMA3C4QH', - active: true, - tsKey: 'education-and-employment.english-classes', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - active: true, - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPHEBB94KEDQXEA8AC', - active: true, - tsKey: 'education-and-employment.language-classes', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - active: true, - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBP9GBJPZMWM9PA5DX0', - active: true, - tsKey: 'education-and-employment.leadership-training-and-professional-development', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - active: true, - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPVH03WA49B1ABGW0F', - active: true, - tsKey: 'education-and-employment.libraries', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - active: true, - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPBQ7XNCBG5AJF6W0X', - active: true, - tsKey: 'education-and-employment.scholarships', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - active: true, - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBP9CP8V4WGA1QCWVKQ', - active: true, - tsKey: 'food.food', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVFXW9YFMK4R95ZHBPV', - active: true, - tsKey: 'food.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPV0NV6R04MR84X9H6', - active: true, - tsKey: 'food.food-assistance', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVFXW9YFMK4R95ZHBPV', - active: true, - tsKey: 'food.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPG92H7F9REAG9T2X5', - active: true, - tsKey: 'housing.drop-in-centers-for-lgbtq-youth', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVF8W7D67CH3NVSQYA6', - active: true, - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPYW3BJXHHZSM33PMY', - active: true, - tsKey: 'housing.emergency-housing', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVF8W7D67CH3NVSQYA6', - active: true, - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBP3A2B8E5F070E9HR6', - active: true, - tsKey: 'housing.housing-information-and-referrals', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVF8W7D67CH3NVSQYA6', - active: true, - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBPC9YCGABHSSXEGN82', - active: true, - tsKey: 'housing.short-term-housing', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVF8W7D67CH3NVSQYA6', - active: true, - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQ02KJQ7E5NPM3ERNE', - active: true, - tsKey: 'housing.trans-housing', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVF8W7D67CH3NVSQYA6', - active: true, - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQYAZE13SSFJ1WZ7J8', - active: true, - tsKey: 'hygiene-and-clothing.clothes', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVGD7CE9VKYVSZYYTPS', - active: true, - tsKey: 'hygiene-and-clothing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQ817GKC3K6D6JGMVC', - active: true, - tsKey: 'hygiene-and-clothing.gender-affirming-items', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVGD7CE9VKYVSZYYTPS', - active: true, - tsKey: 'hygiene-and-clothing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQNARDK4H2W30GC1QR', - active: true, - tsKey: 'hygiene-and-clothing.gender-neutral-bathrooms', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVGD7CE9VKYVSZYYTPS', - active: true, - tsKey: 'hygiene-and-clothing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQBV2YXAS0AQAFXY33', - active: true, - tsKey: 'hygiene-and-clothing.haircuts-and-stylists', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVGD7CE9VKYVSZYYTPS', - active: true, - tsKey: 'hygiene-and-clothing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQ0J8FBM5SECT20H4K', - active: true, - tsKey: 'hygiene-and-clothing.hygiene', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVGD7CE9VKYVSZYYTPS', - active: true, - tsKey: 'hygiene-and-clothing.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQSF73S87ZRENXHKQV', - active: true, - tsKey: 'legal.asylum-application', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQ4R0QKMB5XKN0VPR3', - active: true, - tsKey: 'legal.citizenship', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQEVJCBZC1KSSEB8WN', - active: true, - tsKey: 'legal.crime-and-discrimination', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQMRW61WVCRR82EJ55', - active: true, - tsKey: 'legal.deferred-action-for-childhood-arrivals-daca', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQ053M5632FG5BEHAB', - active: true, - tsKey: 'legal.deportation-or-removal', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQWFR2KPXH7KPX96BD', - active: true, - tsKey: 'legal.employment-authorization', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQF6937029TNRN458W', - active: true, - tsKey: 'legal.family-petitions', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBQ78QZGW7YAPDZ2YJS', - active: true, - tsKey: 'legal.immigration-detention', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRSQG19TQ4G5EVP3AQ', - active: true, - tsKey: 'legal.legal-advice', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRY1NC6GD7XAHG6AR8', - active: true, - tsKey: 'legal.legal-hotlines', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRB8R4AQVR2FYE72EC', - active: true, - tsKey: 'legal.name-and-gender-change', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRYMX5EH2J05SREANF', - active: true, - tsKey: 'legal.refugee-claim', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBR53GRFZYTNQ8DQ2WF', - active: true, - tsKey: 'legal.residency', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBR3T44H6K1BKD38JYT', - active: true, - tsKey: 'legal.special-immigrant-juvenile-status-sijs', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBR0YA6DR2VTE0KCE9N', - active: true, - tsKey: 'legal.t-visa', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRYVSPX4GA4RZY0XTA', - active: true, - tsKey: 'legal.u-visa', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - active: true, - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRJER29EH8BK4STRPE', - active: true, - tsKey: 'medical.covid-19-services', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRQ76SJBY7973FZFDC', - active: true, - tsKey: 'medical.dental-care', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRPBXSYN12DWNEAJJ7', - active: true, - tsKey: 'medical.hiv-and-sexual-health', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRJX151YFSTMPVN7CV', - active: true, - tsKey: 'medical.medical-clinics', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRDW97D7E0XAPA2XRN', - active: true, - tsKey: 'medical.obgyn-services', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRZB55NNQXGZDZSC8Y', - active: true, - tsKey: 'medical.physical-evaluations-for-asylum-claim', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBRK22BMD8KX9DZ9JA5', - active: true, - tsKey: 'medical.physical-evaluations-for-refugee-claim', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBR4WXR0SMNAKZAHFGK', - active: true, - tsKey: 'medical.trans-health', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBR506BA0ZA7XZWX23Q', - active: true, - tsKey: 'medical.trans-health-gender-affirming-surgery', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSBVW6KJACB43FTFNQ', - active: true, - tsKey: 'medical.trans-health-hormone-and-surgery-letters', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSZJ7ZQD3AVMKQK83N', - active: true, - tsKey: 'medical.trans-health-hormone-therapy', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSG3BES4BKSW269M8K', - active: true, - tsKey: 'medical.trans-health-primary-care', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBS5YQWBD8N2V56X5X0', - active: true, - tsKey: 'medical.trans-health-speech-therapy', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - active: true, - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBS2G776ZTE6R3ZCWEF', - active: true, - tsKey: 'mental-health.bipoc-support-groups', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSKZHCJT1X2KWXC8HB', - active: true, - tsKey: 'mental-health.hotlines', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSTS3SZNE3GBAF9N2B', - active: true, - tsKey: 'mental-health.private-therapy-and-counseling', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBS617V01ANP6MXPSSX', - active: true, - tsKey: 'mental-health.psychological-evaluations-for-asylum-claim', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBS6STMXJT0GK4F4YQS', - active: true, - tsKey: 'mental-health.psychological-evaluations-for-refugee-claim', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSX65WWRQ3BFXHWCJN', - active: true, - tsKey: 'mental-health.substance-use', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBS72MEA9GWN7FWYWQA', - active: true, - tsKey: 'mental-health.support-for-caregivers-of-trans-youth', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBS16CJP08CPDSNNVBY', - active: true, - tsKey: 'mental-health.support-for-conversion-therapy-survivors', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSTFJC21CK33S54BPZ', - active: true, - tsKey: 'mental-health.support-groups', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSPTXA7Q4W5RKFP53W', - active: true, - tsKey: 'mental-health.trans-support-groups', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - active: true, - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSYJJ8FRE5QRW4BQVR', - active: true, - tsKey: 'sports-and-entertainment.sports-and-entertainment', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVPE008PHCPNHZDAWMS', - active: true, - tsKey: 'sports-and-entertainment.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBSA32322K840DVFNSW', - active: true, - tsKey: 'translation-and-interpretation.general-translation-and-interpretation', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVPFRQR07PTHMWJDDKS', - active: true, - tsKey: 'translation-and-interpretation.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBTPY48P18NZR9S3DC8', - active: true, - tsKey: 'translation-and-interpretation.for-healthcare', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVPFRQR07PTHMWJDDKS', - active: true, - tsKey: 'translation-and-interpretation.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBTRAAMB3K1JQ2V41GH', - active: true, - tsKey: 'translation-and-interpretation.for-legal-services', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVPFRQR07PTHMWJDDKS', - active: true, - tsKey: 'translation-and-interpretation.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBTM1JSTAQKF8DYS9V5', - active: true, - tsKey: 'transportation.transit-passes-and-discounts', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVPXANJ6MPCDE0S4CWT', - active: true, - tsKey: 'transportation.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBTQ73C86ARY7WV96WB', - active: true, - tsKey: 'transportation.transportation-assistance', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVPXANJ6MPCDE0S4CWT', - active: true, - tsKey: 'transportation.CATEGORYNAME', - tsNs: 'services', - }, - }, - { - id: 'svtg_01GW2HHFBT91CV2R6WKEX6MYPE', - active: true, - tsKey: 'mail.mail', - tsNs: 'services', - primaryCategory: { - id: 'svct_01GW2HHEVQ0VE6E94T3CZWEW9F', - active: true, - tsKey: 'mail.CATEGORYNAME', - tsNs: 'services', - }, - }, - ], -} satisfies Partial - -export const service = { - getNames: getTRPCMock({ - path: ['service', 'getNames'], - response: serviceData.getNames, - }), - forServiceDrawer: getTRPCMock({ - path: ['service', 'forServiceDrawer'], - response: serviceData.forServiceDrawer, - }), - forServiceEditDrawer: getTRPCMock({ - path: ['service', 'forServiceEditDrawer'], - response: serviceData.forServiceEditDrawer, - }), - getOptions: getTRPCMock({ - path: ['service', 'getOptions'], - response: serviceData.getOptions, - }), -} satisfies MockHandlers - -type MockData = { - [K in keyof ApiOutput['service']]: ApiOutput['service'][K] -} -type MockHandlers = { - [K in keyof typeof serviceData]: ReturnType -} diff --git a/packages/ui/mockData/orgSocialMedia.ts b/packages/ui/mockData/orgSocialMedia.ts index 0e06b6c651..e596cb146d 100644 --- a/packages/ui/mockData/orgSocialMedia.ts +++ b/packages/ui/mockData/orgSocialMedia.ts @@ -1,52 +1,14 @@ -import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' - -export const orgSocialMediaData = { - forContactInfo: [ - { - id: 'osmd_01GVH3VEVDBV523DYH978RVD4P', - url: 'https://www.linkedin.com/company/whitman-walker/', - username: 'whitman-walker', - orgLocationOnly: false, - service: 'LinkedIn', - }, - { - id: 'osmd_01GVH3VEVDATZJAAVXWA7D357F', - url: 'https://www.facebook.com/whitmanwalker', - username: 'whitmanwalker', - orgLocationOnly: false, - service: 'Facebook', - }, - { - id: 'osmd_01GVH3VEVD6ZPA8SNC42X0RTM7', - url: 'https://www.instagram.com/whitmanwalker/', - username: 'whitmanwalker', - orgLocationOnly: false, - service: 'Instagram', - }, - { - id: 'osmd_01GVH3VEVDH90J5JDXYB5GRRWK', - url: 'https://www.youtube.com/@whitmanwalker/featured', - username: '', - orgLocationOnly: false, - service: 'YouTube', - }, - { - id: 'osmd_01GVH3VEVD93QH872SAPRYYCS2', - url: 'https://twitter.com/whitmanwalker', - username: 'whitmanwalker', - orgLocationOnly: false, - service: 'Twitter', - }, - ], -} satisfies MockDataObject<'orgSocialMedia'> +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' export const orgSocialMedia = { forContactInfo: getTRPCMock({ path: ['orgSocialMedia', 'forContactInfo'], type: 'query', - response: ({ locationOnly }) => - locationOnly !== undefined - ? orgSocialMediaData.forContactInfo.filter((record) => record.orgLocationOnly === locationOnly) - : orgSocialMediaData.forContactInfo, + response: async ({ locationOnly }) => { + const { default: data } = await import('./json/orgSocialMedia.forContactInfo.json') + return locationOnly !== undefined + ? data.filter((record) => record.orgLocationOnly === locationOnly) + : data + }, }), } satisfies MockHandlerObject<'orgSocialMedia'> diff --git a/packages/ui/mockData/orgWebsite.ts b/packages/ui/mockData/orgWebsite.ts index 2de7a53244..245438879d 100644 --- a/packages/ui/mockData/orgWebsite.ts +++ b/packages/ui/mockData/orgWebsite.ts @@ -1,39 +1,15 @@ -import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' - -export const orgWebsiteData = { - forContactInfo: [ - { - id: 'oweb_01GW2HT9ETW73ZW159JW0BSKN6', - url: 'https://www.whitman-walker.org', - isPrimary: false, - orgLocationOnly: false, - description: null, - }, - ], - forEditDrawer: { - id: 'oweb_01H29ENF8JTJ3FNJ5BQXDH4PMA', - url: 'https://recoverycafelexington.org/', - descriptionId: null, - isPrimary: false, - deleted: false, - published: true, - organizationId: 'orgn_01H29CX1KRXD89404CG1D4TY6S', - orgLocationId: null, - orgLocationOnly: false, - createdAt: new Date('2023-03-22T21:47:01.905Z'), - updatedAt: new Date('2023-05-12T23:38:51.738Z'), - description: undefined, - }, -} satisfies MockDataObject<'orgWebsite'> +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' export const orgWebsite = { forContactInfo: getTRPCMock({ path: ['orgWebsite', 'forContactInfo'], type: 'query', - response: ({ locationOnly }) => - locationOnly !== undefined - ? orgWebsiteData.forContactInfo.filter((record) => record.orgLocationOnly === locationOnly) - : orgWebsiteData.forContactInfo, + response: async ({ locationOnly }) => { + const { default: data } = await import('./json/orgWebsite.forContactInfo.json') + return locationOnly !== undefined + ? data.filter((record) => record.orgLocationOnly === locationOnly) + : data + }, }), forEditDrawer: getTRPCMock({ path: ['orgWebsite', 'forEditDrawer'], diff --git a/packages/ui/mockData/organization.ts b/packages/ui/mockData/organization.ts index 2be8cca081..eb8ce1c449 100644 --- a/packages/ui/mockData/organization.ts +++ b/packages/ui/mockData/organization.ts @@ -1,277 +1,25 @@ import { faker } from '@faker-js/faker' +import { type HttpHandler } from 'msw' import { type ApiOutput } from '@weareinreach/api' -import { getTRPCMock } from '~ui/lib/getTrpcMock' +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' -export const organizationData = { - getIdFromSlug: { id: 'orgn_MOCKED00000ID999999' }, - getIntlCrisis: [ - { - id: 'orgn_01H64P2CHAE2CFWD7EF5HWAEAZ', - name: 'Rainbow Railroad', - description: { - key: 'orgn_01H64P2CHAE2CFWD7EF5HWAEAZ.description', - text: "Rainbow Railroad is a Canadian-based nonprofit helping LGBT people escape to safer countries. While they have worked with LGBT people from other countries before, Rainbow Railroad's priority is people in countries with state-sponsored violence against the LGBT community.", - }, - targetPop: { - tag: 'other-describe', - text: 'People in countries with state-sponsored violence against the LGBT community.', - tsKey: 'orgn_01H64P2CHAE2CFWD7EF5HWAEAZ.attribute.atts_01H64PK2TKMRTVGAPV3HYZ1017', - }, - services: [ - { - tsKey: 'international-support.resettlement-assistance', - tsNs: 'services', - }, - ], - accessInstructions: [ - { - tag: 'accesslink', - access_type: 'link', - access_value: 'https://www.rainbowrailroad.org/request-help', - }, - ], - }, - { - id: 'orgn_01H64R1VP03AYSEA6GBNA9PDBZ', - name: "Trevor Project's TrevorSpace", - description: { - key: 'orgn_01H64R1VP03AYSEA6GBNA9PDBZ.description', - text: "The Trevor Project's TrevorSpace is an affirming international community for LGBTQ young people ages 13-24. No matter where you live, you can access www.TrevorSpace.org, a safe and secure social networking site for LGBTQ young people and their allies. The Trevor Project makes sure that the only people allowed on the site are ages 13 to 24, and no hate-speech, discrimination, or bullying of any kind are allowed.", - }, - targetPop: { - tag: 'other-describe', - text: 'LGBTQ young people ages 13 to 24.', - tsKey: 'orgn_01H64R1VP03AYSEA6GBNA9PDBZ.attribute.atts_01H64R1VP03S77QQ7DVK8SV8GZ', - }, - services: [ - { - tsKey: 'international-support.mental-health', - tsNs: 'services', - }, - ], - accessInstructions: [ - { - tag: 'accesslink', - access_type: 'link', - access_value: 'https://www.trevorspace.org', - }, - ], - }, - { - id: 'orgn_01H64R9AJBT38SDZXP2MYRR5TW', - name: 'Ahwaa', - description: { - key: 'orgn_01H64R9AJBT38SDZXP2MYRR5TW.description', - text: 'Ahwaa is an open space to discuss LGBTQ issues in the Middle East. Discussion topics include: sexuality, identity, society, religion, family, relationships and culture. Ahwaa is now the largest LGBTQ community site in the Arab world.', - }, - targetPop: { - tag: 'other-describe', - text: 'Arab LGBTQ community.', - tsKey: 'orgn_01H64R9AJBT38SDZXP2MYRR5TW.attribute.atts_01H64R9AJBDFGWH3RC17Q9604N', - }, - services: [ - { - tsKey: 'international-support.mental-health', - tsNs: 'services', - }, - ], - accessInstructions: [ - { - tag: 'accesslink', - access_type: 'link', - access_value: 'https://www.ahwaa.org', - }, - ], - }, - { - id: 'orgn_01H64RC712WNQ97VZMG5DKWX60', - name: 'International Railroad for Queer Refugees (IRQR)', - description: { - key: 'orgn_01H64RC712WNQ97VZMG5DKWX60.description', - text: "International Railroad for Queer Refugees (IRQR)'s mission is to relieve poverty for LGBT refugees living in Turkey by providing the basic necessities of life; and to relieve poverty by sponsoring, providing financial and resettlement assistance to LGBT refugees in Turkey who have fled because of persecution for their sexual orientation or gender identity.", - }, - targetPop: { - tag: 'other-describe', - text: 'LGBT refugees living in Turkey until they are resettled in a safe country.', - tsKey: 'orgn_01H64RC712WNQ97VZMG5DKWX60.attribute.atts_01H64RC712SZGKJQHVAQ55SXVK', - }, - services: [ - { - tsKey: 'international-support.resettlement-assistance', - tsNs: 'services', - }, - { - tsKey: 'international-support.financial-assistance', - tsNs: 'services', - }, - ], - accessInstructions: [ - { - tag: 'accesslink', - access_type: 'link', - access_value: 'https://www.irqr.net', - }, - { - tag: 'accessemail', - access_type: 'email', - access_value: 'info@irq.ca', - }, - { - tag: 'accessphone', - access_type: 'phone', - access_value: '4169857456', - }, - ], - }, - { - id: 'orgn_01H64RHG49SQC6QWBA1CGJ2QTZ', - name: 'Trans Asylias', - description: { - key: 'orgn_01H64RHG49SQC6QWBA1CGJ2QTZ.description', - text: 'Trans Asylias is a non-profit organization created in 2021 with the purpose to help transgender and non-binary asylum seekers escape from their home countries where they face persecution and resettle in safer countries.', - }, - targetPop: { - tag: 'other-describe', - text: 'Transgender and non-binary asylum seekers.', - tsKey: 'orgn_01H64RHG49SQC6QWBA1CGJ2QTZ.attribute.atts_01H64RHG49FXZZ1GG84S124C56', - }, - services: [ - { - tsKey: 'international-support.resettlement-assistance', - tsNs: 'services', - }, - ], - accessInstructions: [ - { - tag: 'accesslink', - access_type: 'link', - access_value: 'https://www.transasylias.org', - }, - ], - }, - ], - getNatlCrisis: [ - { - id: 'orgn_01H29CX1TRDGZZ73ETGHRN910M', - name: '988 Suicide and Crisis Lifeline', - description: { - text: "If you're thinking about suicide, are worried about a friend or loved one, or would like emotional support, the Lifeline network is available 24/7 across the United States.", - key: 'orgn_01H29CX1TRDGZZ73ETGHRN910M.osvc_01H6PKD58K02BF1H6F1THZN3PZ.description', - }, - community: { - icon: '🏳️‍🌈', - tsKey: 'crisis-support-community.general-lgbtq', - }, - accessInstructions: [ - { - tag: 'accessphone', - access_type: 'phone', - access_value: '988', - key: 'orgn_01H29CX1TRDGZZ73ETGHRN910M.attribute.atts_01H6PKZ9ZRRBVNN3E76NAQ2F0F', - text: 'hotline for english speakers (24/7)', - }, - { - tag: 'accesssms', - access_type: 'sms', - access_value: '988', - key: 'orgn_01H29CX1TRDGZZ73ETGHRN910M.attribute.atts_01H6PKZ9ZSCZZFK8DH7T2774BS', - text: 'sms for english speakers (24/7)', - }, - { - tag: 'accessphone', - access_type: 'phone', - access_value: '8886289454', - key: 'orgn_01H29CX1TRDGZZ73ETGHRN910M.attribute.atts_01H6PKZ9ZS4K3AD435F367CHJP', - text: 'hotline spanish speakers (en español) (24/7)', - }, - ], - }, - { - id: 'orgn_01GVH3V4BHVEYSTF9AY2RYCMP5', - name: 'Trans Lifeline', - description: { - text: "Trans Lifeline's Hotline is a peer support phone service run by trans people for trans and questioning people. Call them if you need someone trans to talk to, even if you're not in crisis or if you're not sure you're trans.", - key: 'orgn_01GVH3V4BHVEYSTF9AY2RYCMP5.osvc_01H6PKD58M5HT9MEANJKKR304Q.description', - }, - community: { - icon: '🏳️‍⚧️', - tsKey: 'srvfocus.trans-comm', - }, - accessInstructions: [ - { - tag: 'accessphone', - access_type: 'phone', - access_value: '8775658860', - key: 'orgn_01GVH3V4BHVEYSTF9AY2RYCMP5.attribute.atts_01H6PNCHJCWE8PHEJPZHP2VBXM', - text: 'hotline (24/7)', - }, - ], - }, - { - id: 'orgn_01H6PQ07W414JAWCEN619FQ77W', - name: 'Kids Help Phone', - description: { - text: "Kids Help Phone is Canada's only 24/7 e-mental health service offering free, confidential support to young people in English and French. Kids Help Phone is here for 2SLGBTQ+ youth from coast to coast to coast 365 days a year.", - key: 'orgn_01H6PQ07W414JAWCEN619FQ77W.osvc_01H6PQ75E8THP2ZK08RHHB6X02.description', - }, - community: { - icon: '🌱', - tsKey: 'srvfocus.lgbtq-youth-focus', - }, - accessInstructions: [ - { - tag: 'accesssms', - access_type: 'sms', - sms_body: 'CONNECT', - access_value: '686868', - key: 'orgn_01H6PQ07W414JAWCEN619FQ77W.attribute.atts_01H6PQ7YC72VJ3HRS6NVMF9NQE', - text: 'sms in canada (24/7)', - }, - ], - }, - { - id: 'orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ', - name: 'The Trevor Project', - description: { - text: "The Trevor Project provides information and support to LGBTQ+ youth 24/7, every day of the year, throughout Mexico. Services are 100% free and confidential. Contact the Trevor Project's trained crisis counselors in Mexico 24/7 via the information below.", - key: 'orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ.osvc_01H6PQGS55V1ERST7E0KJB98Q3.description', - }, - community: { - icon: '🌱', - tsKey: 'srvfocus.lgbtq-youth-focus', - }, - accessInstructions: [ - { - tag: 'accesslink', - access_type: 'link', - access_value: 'https://thetrevorproject.mx/Ayuda', - key: 'orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ.attribute.atts_01H6PQPFNXWXPDCEA8NDNF81B7', - text: 'online chat (24/7)', - }, - { - tag: 'accesssms', - access_type: 'sms', - sms_body: 'Comenzar', - access_value: '67676', - key: 'orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ.attribute.atts_01H6PQRQ184NRH6N7TZSDX91GV', - text: 'sms in mexico (24/7)', - }, - { - tag: 'accesswhatsapp', - access_type: 'whatsapp', - access_value: '+5592253337', - key: 'orgn_01GVH3V3SYFJEYC2Y8QZ28V9FQ.attribute.atts_01H6PQHNWS0AH8AD8FD33ZWHX5', - text: 'whatsapp in mexico (24/7)', - }, - ], - }, - ], -} satisfies Data +const existingOrg = (input: string): ApiOutput['organization']['checkForExisting'] => { + const name = 'Existing Organization' + const regex = new RegExp(`.*${input}.*`, 'gi') + if (regex.test(name)) { + return { + name, + published: true, + slug: 'existing-org', + } + } + return null +} export const organization = { getIdFromSlug: getTRPCMock({ path: ['organization', 'getIdFromSlug'], - response: organizationData.getIdFromSlug, + response: { id: 'orgn_MOCKED00000ID999999' }, }), forOrganizationTable: getTRPCMock({ path: ['organization', 'forOrganizationTable'], @@ -317,8 +65,61 @@ export const organization = { return data }, }), -} - -type Data = Partial<{ - [K in keyof ApiOutput['organization']]: ApiOutput['organization'][K] -}> + suggestionOptions: getTRPCMock({ + path: ['organization', 'suggestionOptions'], + response: async () => { + const { default: data } = await import('./json/organization.suggestionOptions.json') + return data + }, + }), + createNewSuggestion: getTRPCMock({ + path: ['organization', 'createNewSuggestion'], + type: 'mutation', + response: { id: 'sugg_LKSDJFIOW156AWER15' }, + }), + generateSlug: getTRPCMock({ + path: ['organization', 'generateSlug'], + response: 'this-is-a-generated-slug', + }), + checkForExisting: getTRPCMock({ + path: ['organization', 'checkForExisting'], + response: (input) => existingOrg(input), + }), + searchName: getTRPCMock({ + path: ['organization', 'searchName'], + response: async (input) => { + const { default: data } = await import('./json/organization.searchName.json') + const searchRegex = new RegExp(`.*${input.search}.*`, 'i') + const results = data.filter(({ label }) => searchRegex.test(label)) + return results + }, + }), + getIntlCrisis: getTRPCMock({ + path: ['organization', 'getIntlCrisis'], + response: async () => { + const { default: data } = await import('./json/organization.getIntlCrisis.json') + return data + }, + }), + getNatlCrisis: getTRPCMock({ + path: ['organization', 'getNatlCrisis'], + response: async () => { + const { default: data } = await import('./json/organization.getNatlCrisis.json') + return data + }, + }), + searchDistance: getTRPCMock({ + path: ['organization', 'searchDistance'], + response: async () => { + const { default: data } = await import('./json/organization.searchDistance.json') + return data as ApiOutput['organization']['searchDistance'] + }, + }), + searchDistanceLongTitle: getTRPCMock({ + path: ['organization', 'searchDistance'], + response: async () => { + const { default: data } = await import('./json/organization.searchDistanceLongTitle.json') + return data as ApiOutput['organization']['searchDistance'] + }, + }), +} satisfies MockHandlerObject<'organization'> & { searchDistanceLongTitle: HttpHandler } diff --git a/packages/ui/mockData/review.ts b/packages/ui/mockData/review.ts new file mode 100644 index 0000000000..18df0f5d7e --- /dev/null +++ b/packages/ui/mockData/review.ts @@ -0,0 +1,32 @@ +import { type ApiOutput } from '@weareinreach/api' +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' + +export const review = { + getByIds: getTRPCMock({ + path: ['review', 'getByIds'], + type: 'query', + response: async () => { + const { default: data } = await import('./json/review.getByIds.json') + const formatted = data.map(({ createdAt, ...review }) => ({ + ...review, + createdAt: new Date(createdAt), + })) + return formatted as ApiOutput['review']['getByIds'] + }, + }), + getAverage: getTRPCMock({ + path: ['review', 'getAverage'], + type: 'query', + response: { + average: 4.3, + count: 10, + }, + }), + create: getTRPCMock({ + path: ['review', 'create'], + type: 'mutation', + response: { + id: 'orev_NEWREVIEWID', + }, + }), +} satisfies MockHandlerObject<'review'> diff --git a/packages/ui/mockData/reviews.ts b/packages/ui/mockData/reviews.ts deleted file mode 100644 index 7f0d5c8fbe..0000000000 --- a/packages/ui/mockData/reviews.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { type ApiOutput } from '@weareinreach/api' -import { type ReviewSectionProps } from '~ui/components/sections' - -export const reviewsMock = [ - { - rating: 5, - user: { - image: 'https://i.pravatar.cc/50?u=abcdef', - name: 'User Name', - }, - createdAt: new Date(2023, 0, 3), - reviewText: - "Bicycle rights you probably haven't heard of them tote bag af, lorem hella eu humblebrag gastropub distillery shabby chic poke raclette. Selvage chicharrones skateboard fit. Mustache selvage vinyl coloring book. Af twee beard same scenester 8-bit tempor plaid actually irure. Letterpress eiusmod wayfarers, tonx pop-up exercitation schlitz tumeric gentrify.", - id: 'orev_LCRREVIEW', - langConfidence: 100, - language: null, - lcrCity: 'Washington', - lcrCountry: { - tsKey: 'USA.name', - tsNs: 'country', - }, - lcrGovDist: { - tsKey: 'us-district-of-columbia', - tsNs: 'gov-dist', - }, - translatedText: [], - verifiedUser: true, - }, - { - rating: 5, - user: { - image: null, - name: null, - }, - createdAt: new Date(2022, 11, 30), - reviewText: - 'Laborum gastropub mukbang, paleo deep v yes plz praxis veniam. 3 wolf moon affogato snackwave gluten-free photo booth. Keytar esse knausgaard seitan waistcoat. Bushwick la croix trust fund cliche dolor pug, 3 wolf moon heirloom cronut listicle jianbing leggings pinterest. Biodiesel edison bulb DSA pariatur lomo fugiat. Cornhole etsy meggings jianbing, swag before they sold out chia tempor. Shaman glossier dolor kitsch deserunt.', - id: 'orev_REGULARREVIEW', - langConfidence: 100, - language: null, - lcrCity: null, - lcrCountry: null, - lcrGovDist: null, - translatedText: [], - verifiedUser: false, - }, - { - rating: 4, - user: { - image: null, - name: null, - }, - createdAt: new Date(2022, 4, 2), - reviewText: - 'Proident Brooklyn vibecession portland migas slow-carb kitsch sus chambray. Butcher small batch subway tile, keytar hoodie authentic fanny pack. Tonx post-ironic literally, yr banjo single-origin coffee craft beer tofu. Praxis taiyaki gluten-free meh.', - id: 'orev_REGULARREVIEW2', - langConfidence: 100, - language: null, - lcrCity: null, - lcrCountry: null, - lcrGovDist: null, - translatedText: [], - verifiedUser: false, - }, - { - rating: 3, - user: { - image: null, - name: null, - }, - createdAt: new Date(2023, 1, 5), - reviewText: - 'Cray street art iceland, next level copper mug id ullamco meditation hoodie chartreuse vexillologist stumptown.', - id: 'orev_REGULARREVIEW4', - langConfidence: 100, - language: null, - lcrCity: null, - lcrCountry: null, - lcrGovDist: null, - translatedText: [], - verifiedUser: false, - }, -] satisfies ApiOutput['review']['getByIds'] - -export const reviewMockIds = reviewsMock.map((review) => ({ - id: review.id, -})) satisfies ReviewSectionProps['reviews'] diff --git a/packages/ui/mockData/savedList.ts b/packages/ui/mockData/savedList.ts index 921c46f947..3bd916ebc1 100644 --- a/packages/ui/mockData/savedList.ts +++ b/packages/ui/mockData/savedList.ts @@ -1,31 +1,63 @@ -import { type ApiOutput } from '@weareinreach/api' +import { type HttpHandler } from 'msw' -export const getAll = [ - { - _count: { organizations: 0, services: 0, sharedWith: 0 }, - id: 'ulst_LISTID1', - name: 'Example List 1', - }, - { - _count: { organizations: 0, services: 0, sharedWith: 0 }, - id: 'ulst_LISTID2', - name: 'Example List 2', - }, - { - _count: { organizations: 0, services: 0, sharedWith: 0 }, - id: 'ulst_LISTID3', - name: 'Example List 3', - }, -] satisfies ApiOutput['savedList']['getAll'] +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' -export const saveItem = { - id: 'ulst_LISTID', - organizations: ['orgn_ITEM1', 'orgn_ITEM2'], - services: [], -} satisfies ApiOutput['savedList']['saveItem'] - -export const createAndSave = { - id: 'ulst_NEWLISTID', - organizations: ['orgn_ITEM1'], - services: [], -} satisfies ApiOutput['savedList']['createAndSaveItem'] +export const savedList = { + getAll: getTRPCMock({ + path: ['savedList', 'getAll'], + response: async () => { + const { default: data } = await import('./json/savedList.getAll.json') + return data + }, + }), + saveItem: getTRPCMock({ + path: ['savedList', 'saveItem'], + type: 'mutation', + response: { + id: 'ulst_LISTID', + organizations: ['orgn_ITEM1', 'orgn_ITEM2'], + services: [], + }, + }), + createAndSaveItem: getTRPCMock({ + path: ['savedList', 'createAndSaveItem'], + type: 'mutation', + response: { + id: 'ulst_NEWLISTID', + organizations: ['orgn_ITEM1'], + services: [], + }, + }), + isSavedSingle: getTRPCMock({ + path: ['savedList', 'isSaved'], + response: [ + { + id: 'listId', + name: 'List Name', + }, + ], + }), + isSavedMultiple: getTRPCMock({ + path: ['savedList', 'isSaved'], + response: [ + { + id: 'listId1', + name: 'List Name 1', + }, + { + id: 'listId2', + name: 'List Name 2', + }, + ], + }), + deleteItem: getTRPCMock({ + path: ['savedList', 'deleteItem'], + type: 'mutation', + response: { + id: 'listId', + name: 'list name', + organizations: [], + services: [], + }, + }), +} satisfies MockHandlerObject<'savedList'> & { isSavedMultiple: HttpHandler; isSavedSingle: HttpHandler } diff --git a/packages/ui/mockData/searchResults.ts b/packages/ui/mockData/searchResults.ts deleted file mode 100644 index 67dccade1f..0000000000 --- a/packages/ui/mockData/searchResults.ts +++ /dev/null @@ -1,613 +0,0 @@ -import { type ApiOutput } from '@weareinreach/api' - -export const searchResultsMock = { - orgs: [ - { - id: 'orgn_01GVH3V4MT8QBB7JSP7HSYAZ7Y', - name: 'Arlington Food Assistance Center', - slug: 'arlington-food-assistance-center', - description: { - key: 'orgn_01GVH3V4MT8QBB7JSP7HSYAZ7Y.description', - ns: 'org-data', - text: 'Since 1988, the Arlington Food Assistance Center remains dedicated to its simple but critical mission of obtaining and distributing groceries, directly and free of charge, to people living in Arlington, VA, who cannot afford to purchase enough food to meet their basic needs. AFAC is committed to maintaining a safe, supportive, and respectful space for all members of the community regardless of race, religion, immigration status, age, sexual orientation, ethnicity, first language, gender, or disability.', - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVFXW9YFMK4R95ZHBPV', - tsKey: 'food.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [], - locations: ['Arlington'], - distance: 1.46, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3V9EKZ9ZZMW9E5S51SB2B', - name: 'Hogar Immigrant Services', - slug: 'hogar-immigrant-services', - description: { - key: 'orgn_01GVH3V9EKZ9ZZMW9E5S51SB2B.description', - ns: 'org-data', - text: 'Hogar Immigrant Services is a program of Catholic Charities Diocese of Arlington which seeks to fulfill the Catholic Church\'s mission to "welcome the stranger" by providing high-quality, low-cost immigration legal services to individuals, regardless of their race, religion, nationality, sexuality, country of origin, or ability to pay.', - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [ - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - iconBg: null, - _count: { - parents: 0, - }, - }, - ], - locations: ['Alexandria'], - distance: 3.22, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3VABSTMFWTM40J8XTYEPX', - name: 'Legal Aid Justice Center', - slug: 'legal-aid-justice-center', - description: { - key: 'orgn_01GVH3VABSTMFWTM40J8XTYEPX.description', - ns: 'org-data', - text: "Legal Aid Justice Center's Access to Justice Partnership provides legal services to low-income clients in areas such as consumer protection, education, elder law, immigration, employment, and housing disputes.", - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [ - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - iconBg: null, - _count: { - parents: 0, - }, - }, - ], - locations: ['Falls Church', 'Richmond', 'Charlottesville', 'Petersburg'], - distance: 3.82, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3V61FAZQGQ1ZDGBXVD79V', - name: 'African Communities Together', - slug: 'african-communities-together', - description: { - key: 'orgn_01GVH3V61FAZQGQ1ZDGBXVD79V.description', - ns: 'org-data', - text: 'African Communities Together is an organization of African immigrants fighting for civil rights, opportunity, and a better life for their families here in the U.S. and worldwide. They connect African immigrants to critical services, help Africans develop as leaders, and organize communities around the issues that matter. ACT helps African immigrants find free or low-cost assistance with immigration, jobs, and other needs. Through the Monthly Membership Meetings, Leadership Committees, and training, ACT gives African immigrants the tools and information they need to become leaders on the issues that matter to them. ACT mobilizes African immigrant communities to speak out on the issues that affect their lives and the lives of their families.', - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVPFRQR07PTHMWJDDKS', - tsKey: 'translation-and-interpretation.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [ - { - category: { - tag: 'organization-leadership', - }, - id: 'attr_01GW2HHFVN3JX2J7REFFT5NAMS', - tsKey: 'orgleader.black-led', - icon: '️‍️‍✊🏿', - iconBg: '#C77E54', - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'organization-leadership', - }, - id: 'attr_01GW2HHFVNHMF72WHVKRF6W4TA', - tsKey: 'orgleader.immigrant-led', - icon: '️‍️‍🌎', - iconBg: '#79ADD7', - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'organization-leadership', - }, - id: 'attr_01GW2HHFVNPKMHYK12DDRVC1VJ', - tsKey: 'orgleader.bipoc-led', - icon: '🤎', - iconBg: '#F1DD7F', - _count: { - parents: 0, - }, - }, - ], - orgFocus: [ - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVN72D7XEBZZJXCJQXQ', - tsKey: 'srvfocus.bipoc-comm', - icon: '️‍️‍✊🏿', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - iconBg: null, - _count: { - parents: 0, - }, - }, - ], - locations: ['Arlington', 'Washington', 'New York'], - distance: 4.42, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3V8JWQQZ7W4VHTZJX8J3Q', - name: 'PathForward', - slug: 'pathforward', - description: { - key: 'orgn_01GVH3V8JWQQZ7W4VHTZJX8J3Q.description', - ns: 'org-data', - text: 'PathForward is a non-profit working to end homelessness in Arlington, Virginia. PathForward (formerly A-SPAN) transforms lives by delivering housing solutions and pathways to stability in Arlington County, VA.', - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVGD7CE9VKYVSZYYTPS', - tsKey: 'hygiene-and-clothing.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVF8W7D67CH3NVSQYA6', - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVFXW9YFMK4R95ZHBPV', - tsKey: 'food.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [], - locations: ['Arlington'], - distance: 5.37, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3V9HWXJMSE5R0F9QWV67J', - name: 'Community of Hope', - slug: 'community-of-hope', - description: { - key: 'orgn_01GVH3V9HWXJMSE5R0F9QWV67J.description', - ns: 'org-data', - text: "Community of Hope's mission is to improve health and end family homelessness to make Washington, DC more equitable. Their goals include ending homelessness for families in Washington, DC and improving health and eliminating inequities in health outcomes in under-resources communities in Washington, DC. They embrace the diversity of their community, welcome all voices and perspectives, and treat everyone with respect, compassion, and integrity.", - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVF8W7D67CH3NVSQYA6', - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [], - locations: ['Washington'], - distance: 6.36, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3V4KBTWXQ61TRMT5H33TA', - name: 'CASA', - slug: 'casa', - description: { - key: 'orgn_01GVH3V4KBTWXQ61TRMT5H33TA.description', - ns: 'org-data', - text: 'Since 1985, CASA has worked to assist Central American refugees fleeing wars and civil strife at home. They do this by providing employment placement; workforce development and training; health education; citizenship and legal services; and financial, language, and literacy training to Latino and immigrant communities in Maryland, Pennsylvania, and Virginia. CASA has formalized its commitment to including LGBTQ+ brothers, sisters, and siblings, united in the fight for justice. Its staff-led LGBT+ Advisory Committee creates a welcoming and inclusive organization for staff and community members by providing support, guidance and creating safe and brave spaces for individuals across the spectrums of gender and sexuality.', - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [ - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVN72D7XEBZZJXCJQXQ', - tsKey: 'srvfocus.bipoc-comm', - icon: '️‍️‍✊🏿', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVQ8AGBKBBZJWTHNP2F', - tsKey: 'srvfocus.spanish-speakers', - icon: '🗣️', - iconBg: null, - _count: { - parents: 0, - }, - }, - ], - locations: [ - 'Falls Church', - 'Hyattsville', - 'Silver Spring', - 'Langley Park', - 'Woodbridge', - 'Rockville', - 'Baltimore', - 'York', - 'Lancaster', - ], - distance: 7.16, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3V43QAKQH440MP6TWWD0X', - name: 'The George Washington University Immigration Clinic', - slug: 'the-george-washington-university-immigration-clinic', - description: { - key: 'orgn_01GVH3V43QAKQH440MP6TWWD0X.description', - ns: 'org-data', - text: 'The George Washington University Immigration Clinic represents clients from around the world on immigration law matters, including removal proceedings and petitions for affirmative asylum. The clinic accepts removal cases scheduled in the Arlington Immigration Court and affirmative asylum cases, as well as deportation or removal proceedings involving cancellation of removal, temporary protected status, or criminal issues.', - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [ - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - iconBg: null, - _count: { - parents: 0, - }, - }, - ], - locations: ['Washington'], - distance: 7.21, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3V43VTXXF9FET8M5J2GNA', - name: 'Ayuda', - slug: 'ayuda', - description: { - key: 'orgn_01GVH3V43VTXXF9FET8M5J2GNA.description', - ns: 'org-data', - text: 'Ayuda advocates for and defends the legal and human rights of low-income immigrants living in Washington, DC, Maryland, and Virginia. Ayuda provides legal, social, and language services to help low-income immigrants access justice and transform their lives. Ayuda’s expert and dedicated professionals help immigrants from anywhere in the world navigate the immigration and justice systems and access the social safety net. Their comprehensive and welcoming approach breaks down barriers, helps those in need, and makes the community stronger.', - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVPFRQR07PTHMWJDDKS', - tsKey: 'translation-and-interpretation.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [ - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVQ8AGBKBBZJWTHNP2F', - tsKey: 'srvfocus.spanish-speakers', - icon: '🗣️', - iconBg: null, - _count: { - parents: 0, - }, - }, - ], - locations: ['Washington', 'Fairfax', 'Silver Spring'], - distance: 7.44, - unit: 'mi', - national: [], - }, - { - id: 'orgn_01GVH3VAFY3EF3NZDMZDZJN0X1', - name: 'Just Neighbors', - slug: 'just-neighbors-n0x1', - description: { - key: 'orgn_01GVH3VAFY3EF3NZDMZDZJN0X1.description', - ns: 'org-data', - text: 'Just Neighbors is a nonprofit 501(c)(3) tax-exempt organization dedicated to serving and supporting the immigrant community of Washington, D.C., Maryland, and Virginia. They foster mutual understanding between immigrants and the larger community in which they live.\nLow-income immigrants and refugees often face many hurdles, everything from putting food on the table to understanding English. Just Neighbors knows that immigrants and refugees are striving to achieve their own version of the American Dream. That’s why Just Neighbors offers compassionate immigration legal services. During appointments, attorneys will offer trustworthy advice and assistance with individual immigration situation. Just Neighbors strives to be an inclusive, antiracist organization that fosters an environment where everyone belongs. Just Neighbors is Safe Zone trained. Safe Zone trainings are opportunities to learn about LGBTQ+ identities, gender and sexuality, and examine prejudice, assumptions, and privilege.', - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [], - orgFocus: [ - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVQ8AGBKBBZJWTHNP2F', - tsKey: 'srvfocus.spanish-speakers', - icon: '🗣️', - iconBg: null, - _count: { - parents: 0, - }, - }, - ], - locations: ['Annandale', 'Rockville', 'Warrenton'], - distance: 7.55, - unit: 'mi', - national: [], - }, - ], - resultCount: 98, -} satisfies ApiOutput['organization']['searchDistance'] - -export const searchResultLongTitle = { - id: 'orgn_01GVH3V408N0YS7CDYAH3F2BMH', - name: 'Whitman-Walker Health With Extra Long Title to Test Text Wrapping', - slug: 'whitman-walker-health', - description: { - key: 'whitman-walker-health.description', - ns: 'org-data', - text: "Whitman-Walker Health's mission is to offer affirming community-based health and wellness services to all with a special expertise in LGBTQ and HIV care. They empower all persons to live healthy, love openly, and achieve equality and inclusion. Through multiple locations throughout DC, they provide stigma-free care to anyone who walks through our doors. They are proud and honored to be a place where the gay, lesbian, bisexual, transgender and queer communities, as well to those living with or affected by HIV feel supported, welcomed and respected. They strive to be a place where they see the person first; a healthcare home where you will be treated with the dignity, respect and love.", - }, - serviceCategories: [ - { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3', - tsKey: 'community-support.CATEGORYNAME', - tsNs: 'services', - }, - ], - orgLeader: [ - { - tsKey: 'orgleader.bipoc-led', - icon: '🤎', - iconBg: '#F1DD7F', - id: '', - category: { - tag: 'organization-leadership', - }, - _count: { - parents: 0, - }, - }, - ], - orgFocus: [ - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPSYBCYF37B44WP6CZ', - tsKey: 'srvfocus.trans-comm', - icon: '🏳️‍⚧️', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVQ8AGBKBBZJWTHNP2F', - tsKey: 'srvfocus.spanish-speakers', - icon: '🗣️', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVQCZPA3Z5GW6J3MQHW', - tsKey: 'srvfocus.lgbtq-youth-focus', - icon: '🌱', - iconBg: null, - _count: { - parents: 0, - }, - }, - { - category: { - tag: 'service-focus', - }, - id: 'attr_01GW2HHFVRMQFJ9AMA633SQQGV', - tsKey: 'srvfocus.hiv-comm', - icon: '💛', - iconBg: null, - _count: { - parents: 0, - }, - }, - ], - locations: ['Washington'], - distance: 8.52, - unit: 'mi', - national: [], -} satisfies NonNullable['orgs'][number] diff --git a/packages/ui/mockData/service.ts b/packages/ui/mockData/service.ts index 068cbf1b76..fd5581f4a3 100644 --- a/packages/ui/mockData/service.ts +++ b/packages/ui/mockData/service.ts @@ -1,925 +1,19 @@ -import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' -export const serviceData = { - forServiceInfoCard: [ - { - id: 'osvc_01GVH3VEWK33YAKZMQ2W3GT4QK', - serviceName: { - tsKey: { - text: 'Access PEP and PrEP', - }, - tsNs: 'org-data', - defaultText: 'Access PEP and PrEP', - }, - serviceCategories: ['medical.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEW3CZ8P9VS6A5MA0R7Z', - serviceName: { - tsKey: { - text: 'Receive behavioral health services', - }, - tsNs: 'org-data', - defaultText: 'Receive behavioral health services', - }, - serviceCategories: ['mental-health.CATEGORYNAME'], - offersRemote: true, - }, - { - id: 'osvc_01GVH3VEWFZ5FHZ6S7BXQY1W55', - serviceName: { - tsKey: { - text: 'Get the COVID-19 vaccine', - }, - tsNs: 'org-data', - defaultText: 'Get the COVID-19 vaccine', - }, - serviceCategories: ['medical.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEWD5ZQY1JZM16Y5M9NG', - serviceName: { - tsKey: { - text: 'Get legal help for transgender people to replace and update name/gender marker on immigration documents', - }, - tsNs: 'org-data', - defaultText: - 'Get legal help for transgender people to replace and update name/gender marker on immigration documents', - }, - serviceCategories: ['legal.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEVY24KAYTWY2ZSFZNBX', - serviceName: { - tsKey: { - text: 'Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)', - }, - tsNs: 'org-data', - defaultText: 'Get free individual and group psychotherapy for LGBTQ young people (ages 13-24)', - }, - serviceCategories: ['community-support.CATEGORYNAME', 'mental-health.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEVVHBRF1FFXZGMMYG7D', - serviceName: { - tsKey: { - text: 'Access youth and family support services', - }, - tsNs: 'org-data', - defaultText: 'Access youth and family support services', - }, - serviceCategories: [ - 'community-support.CATEGORYNAME', - 'medical.CATEGORYNAME', - 'mental-health.CATEGORYNAME', - ], - offersRemote: true, - }, - { - id: 'osvc_01GVH3VEWHDC6F5FCQHB0H5GD6', - serviceName: { - tsKey: { - text: 'Get gender affirming hormone therapy', - }, - tsNs: 'org-data', - defaultText: 'Get gender affirming hormone therapy', - }, - serviceCategories: ['medical.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEVR4SRPFQD2SJF1MCJJ', - serviceName: { - tsKey: { - text: 'Receive gender affirming care and services', - }, - tsNs: 'org-data', - defaultText: 'Receive gender affirming care and services', - }, - serviceCategories: ['legal.CATEGORYNAME', 'medical.CATEGORYNAME', 'mental-health.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEW2ND36DB0XWAH1PQY0', - serviceName: { - tsKey: { - text: 'Get dental health services for HIV-positive individuals', - }, - tsNs: 'org-data', - defaultText: 'Get dental health services for HIV-positive individuals', - }, - serviceCategories: ['medical.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEVSNF9NH79R7HC9FHY6', - serviceName: { - tsKey: { - text: 'Get HIV care for newly diagnosed patients', - }, - tsNs: 'org-data', - defaultText: 'Get HIV care for newly diagnosed patients', - }, - serviceCategories: ['medical.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEWM65579T29F19QXP8E', - serviceName: { - tsKey: { - text: 'Get help with navigating health insurance options', - }, - tsNs: 'org-data', - defaultText: 'Get help with navigating health insurance options', - }, - serviceCategories: ['medical.CATEGORYNAME'], - offersRemote: true, - }, - { - id: 'osvc_01GVH3VEVZY7K2TYY1ZE7WXRRC', - serviceName: { - tsKey: { - text: 'Get legal help with immigration services', - }, - tsNs: 'org-data', - defaultText: 'Get legal help with immigration services', - }, - serviceCategories: ['legal.CATEGORYNAME'], - offersRemote: false, - }, - { - id: 'osvc_01GVH3VEVPF1KEKBTRVTV70WGV', - serviceName: { - tsKey: { - text: 'Get rapid HIV testing', - }, - tsNs: 'org-data', - defaultText: 'Get rapid HIV testing', - }, - serviceCategories: ['medical.CATEGORYNAME'], - offersRemote: false, - }, - ], - byId: { - serviceName: { - key: 'orgn_01GVH3V3RCCBMFD55PWHR8AEC0.osvc_01GVH3VDMSN34BACQDMY6S5GPM.name', - ns: 'org-data', - tsKey: { - text: 'Get education and employment services for youth ages 24 and under', - crowdinId: null, - }, - }, - services: [ - { - tag: { - defaultAttributes: [], - primaryCategory: { - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - tsKey: 'education-and-employment.career-counseling', - tsNs: 'services', - active: true, - }, - }, - ], - serviceAreas: { - countries: [], - districts: [ - { - govDist: { - id: 'gdst_01GW2HJ23GMD17FBJMJWD16PZ1', - name: 'California', - slug: 'us-california', - iso: 'US-CA', - abbrev: 'CA', - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - govDistType: { - tsKey: 'type-state', - tsNs: 'gov-dist', - }, - isPrimary: true, - tsKey: 'us-california', - tsNs: 'gov-dist', - parent: null, - }, - }, - { - govDist: { - id: 'gdst_01GW2HJ2S1061RNRAT6S4RJN1S', - name: 'San Francisco', - slug: 'us-california-san-francisco-county', - iso: null, - abbrev: null, - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - govDistType: { - tsKey: 'type-county', - tsNs: 'gov-dist', - }, - isPrimary: false, - tsKey: 'us-california-san-francisco-county', - tsNs: 'gov-dist', - parent: { - id: 'gdst_01GW2HJ23GMD17FBJMJWD16PZ1', - name: 'California', - slug: 'us-california', - iso: 'US-CA', - abbrev: 'CA', - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - govDistType: { - tsKey: 'type-state', - tsNs: 'gov-dist', - }, - isPrimary: true, - tsKey: 'us-california', - tsNs: 'gov-dist', - }, - }, - }, - ], - }, - hours: [], - reviews: [], - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFV3BADK80TG0DXXFPMM', - tsKey: 'additional.has-confidentiality-policy', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'additional-information', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGDTNW9PDQNXK6TF1T', - tsKey: 'cost.cost-free', - tsNs: 'attribute', - icon: 'carbon:piggy-bank', - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'cost', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGJ5GD2WHNJDPSFNRW', - tsKey: 'eligibility.time-appointment-required', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGSAZXGR4JAVHEK6ZC', - tsKey: 'eligibility.elig-age', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT8C1J8AQAEHVGANCYRPB', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - min: 24, - }, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVJ8K180CNX339BTXM2', - tsKey: 'lang.lang-offered', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'languages', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT8C1N900BKNRTY39R58H', - country: null, - language: { - languageName: 'English', - nativeName: 'English', - }, - text: null, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVK8KPRGKYFSSM5ECPQ', - tsKey: 'sys.incompatible-info', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'system', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT8C256BP7P50M1G32GNK', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - json: [ - { - 'service-city-california-san-francisco': 'true', - }, - { - 'community-transitional-age-youth': 'true', - }, - { - 'action-signup-url': 'http://larkinstreetyouth.org/get-help/#section-education-employment', - }, - { - 'community-lgbt': 'true', - }, - { - 'elig-age-or-under (value = #)': null, - }, - ], - meta: { - values: { - '4.elig-age-or-under (value = #)': ['undefined'], - }, - }, - }, - }, - ], - }, - ], - phones: [], - emails: [], - accessDetails: [ - { - attribute: { - id: 'attr_01GW2HHFVMH6AE94EXN7T5A87C', - tsKey: 'serviceaccess.accesslocation', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT8BWQ0WZ804A34QV7P0J', - country: null, - language: null, - text: { - key: 'orgn_01GVH3V3RCCBMFD55PWHR8AEC0.attribute.atts_01GW2HT8BWQ0WZ804A34QV7P0J', - ns: 'org-data', - tsKey: { - text: 'The above are drop-in service hours for education. Drop-in hours for employment services are Monday, Tuesday: 10 a.m. to noon, and 2:30 to 4:30 p.m. Wednesday: 10 a.m. to noon, and 1 to 2 p.m. Thursday: 10 a.m. to noon, and 1 to 3 p.m. Friday: 10 a.m. to 1 p.m.', - crowdinId: null, - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '5e7e4bd9d54f1760921a3aff', - }, - access_type: 'location', - access_value: '134 Golden Gate Ave, San Francisco, CA 94102', - instructions: - 'The above are drop-in service hours for education. Drop-in hours for employment services are Monday, Tuesday: 10 a.m. to noon, and 2:30 to 4:30 p.m. Wednesday: 10 a.m. to noon, and 1 to 2 p.m. Thursday: 10 a.m. to noon, and 1 to 3 p.m. Friday: 10 a.m. to 1 p.m.', - access_value_ES: '134 Golden Gate Ave, San Francisco, CA 94102', - instructions_ES: 'Visita para más información.', - }, - }, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVMKTFWCKBVVFJ5GMY0', - tsKey: 'serviceaccess.accessphone', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'service-access-instructions', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT8BWZG5BTQ57DAQHJZ5Z', - country: null, - language: null, - text: { - key: 'orgn_01GVH3V3RCCBMFD55PWHR8AEC0.attribute.atts_01GW2HT8BWZG5BTQ57DAQHJZ5Z', - ns: 'org-data', - tsKey: { - text: 'Call for more information.', - crowdinId: null, - }, - }, - govDist: null, - boolean: null, - data: { - json: { - _id: { - $oid: '5e7e4bd9d54f1760921a3b00', - }, - access_type: 'phone', - access_value: '415-673-0911', - instructions: 'Call for more information.', - access_value_ES: '415-673-0911', - instructions_ES: 'Llama para más información.', - }, - }, - }, - ], - }, - ], - locations: [ - { - location: { - name: 'Larkin Street Youth Services - Administration Office', - street1: '134 Golden Gate Avenue', - street2: '', - city: 'San Francisco', - postCode: '94109', - primary: true, - govDist: { - abbrev: 'CA', - govDistType: { - tsKey: 'type-state', - tsNs: 'gov-dist', - }, - tsKey: 'us-california', - tsNs: 'gov-dist', - }, - country: { - cca2: 'US', - cca3: 'USA', - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - name: 'United States', - dialCode: null, - flag: '🇺🇸', - tsKey: 'USA.name', - tsNs: 'country', - }, - longitude: -122.413, - latitude: 37.782, - }, - }, - ], - id: 'osvc_01GVH3VDMSN34BACQDMY6S5GPM', - description: { - key: 'orgn_01GVH3V3RCCBMFD55PWHR8AEC0.osvc_01GVH3VDMSN34BACQDMY6S5GPM.description', - ns: 'org-data', - tsKey: { - text: 'Larkin Street Academy Services offers job readiness, college readiness, computer classes, job placement and retention, internships, tutoring, GED tutoring and classes, secondary and post-secondary school enrollment and support, mindfulness, visual and performing arts. Offices are open Monday through Thursday, 9:00 AM - 16:00 PM, appointments only.', - crowdinId: null, - }, - }, - }, - forServiceModal: { - id: 'osvc_01GVH3VDMSN34BACQDMY6S5GPM', - services: [ - { - tag: { - tsKey: 'education-and-employment.career-counseling', - }, - }, - ], - accessDetails: [ - { - attribute: { - id: 'attr_01GW2HHFVMH6AE94EXN7T5A87C', - }, - supplement: [ - { - id: 'atts_01GW2HT8BWQ0WZ804A34QV7P0J', - data: { - json: { - _id: { - $oid: '5e7e4bd9d54f1760921a3aff', - }, - access_type: 'location', - access_value: '134 Golden Gate Ave, San Francisco, CA 94102', - instructions: - 'The above are drop-in service hours for education. Drop-in hours for employment services are Monday, Tuesday: 10 a.m. to noon, and 2:30 to 4:30 p.m. Wednesday: 10 a.m. to noon, and 1 to 2 p.m. Thursday: 10 a.m. to noon, and 1 to 3 p.m. Friday: 10 a.m. to 1 p.m.', - access_value_ES: '134 Golden Gate Ave, San Francisco, CA 94102', - instructions_ES: 'Visita para más información.', - }, - }, - text: { - key: 'orgn_01GVH3V3RCCBMFD55PWHR8AEC0.attribute.atts_01GW2HT8BWQ0WZ804A34QV7P0J', - tsKey: { - text: 'The above are drop-in service hours for education. Drop-in hours for employment services are Monday, Tuesday: 10 a.m. to noon, and 2:30 to 4:30 p.m. Wednesday: 10 a.m. to noon, and 1 to 2 p.m. Thursday: 10 a.m. to noon, and 1 to 3 p.m. Friday: 10 a.m. to 1 p.m.', - }, - }, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVMKTFWCKBVVFJ5GMY0', - }, - supplement: [ - { - id: 'atts_01GW2HT8BWZG5BTQ57DAQHJZ5Z', - data: { - json: { - _id: { - $oid: '5e7e4bd9d54f1760921a3b00', - }, - access_type: 'phone', - access_value: '415-673-0911', - instructions: 'Call for more information.', - access_value_ES: '415-673-0911', - instructions_ES: 'Llama para más información.', - }, - }, - text: { - key: 'orgn_01GVH3V3RCCBMFD55PWHR8AEC0.attribute.atts_01GW2HT8BWZG5BTQ57DAQHJZ5Z', - tsKey: { - text: 'Call for more information.', - }, - }, - }, - ], - }, - ], - serviceName: { - key: 'orgn_01GVH3V3RCCBMFD55PWHR8AEC0.osvc_01GVH3VDMSN34BACQDMY6S5GPM.name', - ns: 'org-data', - tsKey: { - text: 'Get education and employment services for youth ages 24 and under', - }, - }, - locations: [ - { - location: { - country: { - cca2: 'US', - }, - }, - }, - ], - attributes: [ - { - attribute: { - id: 'attr_01GW2HHFV3BADK80TG0DXXFPMM', - tsKey: 'additional.has-confidentiality-policy', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'additional-information', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGDTNW9PDQNXK6TF1T', - tsKey: 'cost.cost-free', - tsNs: 'attribute', - icon: 'carbon:piggy-bank', - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'cost', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGJ5GD2WHNJDPSFNRW', - tsKey: 'eligibility.time-appointment-required', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [], - }, - { - attribute: { - id: 'attr_01GW2HHFVGSAZXGR4JAVHEK6ZC', - tsKey: 'eligibility.elig-age', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'eligibility-requirements', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT8C1J8AQAEHVGANCYRPB', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - min: 24, - }, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVJ8K180CNX339BTXM2', - tsKey: 'lang.lang-offered', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'languages', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT8C1N900BKNRTY39R58H', - country: null, - language: { - languageName: 'English', - nativeName: 'English', - }, - text: null, - govDist: null, - boolean: null, - data: null, - }, - ], - }, - { - attribute: { - id: 'attr_01GW2HHFVK8KPRGKYFSSM5ECPQ', - tsKey: 'sys.incompatible-info', - tsNs: 'attribute', - icon: null, - iconBg: null, - showOnLocation: null, - categories: [ - { - category: { - tag: 'system', - icon: null, - }, - }, - ], - _count: { - parents: 0, - children: 0, - }, - }, - supplement: [ - { - id: 'atts_01GW2HT8C256BP7P50M1G32GNK', - country: null, - language: null, - text: null, - govDist: null, - boolean: null, - data: { - json: [ - { - 'service-city-california-san-francisco': 'true', - }, - { - 'community-transitional-age-youth': 'true', - }, - { - 'action-signup-url': 'http://larkinstreetyouth.org/get-help/#section-education-employment', - }, - { - 'community-lgbt': 'true', - }, - { - 'elig-age-or-under (value = #)': null, - }, - ], - meta: { - values: { - '4.elig-age-or-under (value = #)': ['undefined'], - }, - }, - }, - }, - ], - }, - ], - hours: [], - description: { - key: 'orgn_01GVH3V3RCCBMFD55PWHR8AEC0.osvc_01GVH3VDMSN34BACQDMY6S5GPM.description', - ns: 'org-data', - tsKey: { - text: 'Larkin Street Academy Services offers job readiness, college readiness, computer classes, job placement and retention, internships, tutoring, GED tutoring and classes, secondary and post-secondary school enrollment and support, mindfulness, visual and performing arts. Offices are open Monday through Thursday, 9:00 AM - 16:00 PM, appointments only.', - }, - }, - }, -} satisfies MockDataObject<'service'> - -export const mockService = { +export const service = { forServiceInfoCard: getTRPCMock({ path: ['service', 'forServiceInfoCard'], - response: serviceData.forServiceInfoCard, + response: async () => { + const { default: data } = await import('./json/service.forServiceInfoCard.json') + return data + }, }), forServiceModal: getTRPCMock({ path: ['service', 'forServiceModal'], - response: serviceData.forServiceModal, + response: async () => { + const { default: data } = await import('./json/service.forServiceModal.json') + return data + }, }), getParentName: getTRPCMock({ path: ['service', 'getParentName'], @@ -928,6 +22,45 @@ export const mockService = { byId: getTRPCMock({ path: ['service', 'byId'], type: 'query', - response: serviceData.byId, + response: async () => { + const { default: data } = await import('./json/service.byId.json') + return data + }, + }), + getNames: getTRPCMock({ + path: ['service', 'getNames'], + response: async () => { + const { default: data } = await import('./json/service.getNames.json') + return data + }, + }), + forServiceDrawer: getTRPCMock({ + path: ['service', 'forServiceDrawer'], + response: async () => { + const { default: data } = await import('./json/service.forServiceDrawer.json') + return data + }, + }), + forServiceEditDrawer: getTRPCMock({ + path: ['service', 'forServiceEditDrawer'], + response: async () => { + const { default: data } = await import('./json/service.forServiceEditDrawer.json') + return data + }, + }), + getOptions: getTRPCMock({ + path: ['service', 'getOptions'], + response: async () => { + const { default: data } = await import('./json/service.getOptions.json') + return data + }, + }), + getFilterOptions: getTRPCMock({ + path: ['service', 'getFilterOptions'], + type: 'query', + response: async () => { + const { default: data } = await import('./json/service.getFilterOptions.json') + return data + }, }), } satisfies MockHandlerObject<'service'> diff --git a/packages/ui/mockData/serviceArea.ts b/packages/ui/mockData/serviceArea.ts index 898257b10c..1503c2c6e4 100644 --- a/packages/ui/mockData/serviceArea.ts +++ b/packages/ui/mockData/serviceArea.ts @@ -1,36 +1,12 @@ -import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock' - -export const serviceAreaData = { - getServiceArea: { - id: 'svar_01GW2HT8D1B1RET8SVAETPBH05', - countries: [], - districts: [ - { - id: 'gdst_01GW2HJ23GMD17FBJMJWD16PZ1', - parent: null, - country: { cca2: 'US' }, - tsKey: 'us-california', - tsNs: 'gov-dist', - }, - { - id: 'gdst_01GW2HJ2S1061RNRAT6S4RJN1S', - parent: { - // id: 'gdst_01GW2HJ23GMD17FBJMJWD16PZ1', - tsKey: 'us-california', - tsNs: 'gov-dist', - }, - country: { cca2: 'US' }, - tsKey: 'us-california-san-francisco-county', - tsNs: 'gov-dist', - }, - ], - }, -} satisfies MockDataObject<'serviceArea'> +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' export const serviceArea = { getServiceArea: getTRPCMock({ path: ['serviceArea', 'getServiceArea'], - response: serviceAreaData.getServiceArea, + response: async () => { + const { default: data } = await import('./json/serviceArea.getServiceArea.json') + return data + }, }), update: getTRPCMock({ path: ['serviceArea', 'update'], diff --git a/packages/ui/mockData/serviceFilter.ts b/packages/ui/mockData/serviceFilter.ts deleted file mode 100644 index 90c847ca93..0000000000 --- a/packages/ui/mockData/serviceFilter.ts +++ /dev/null @@ -1,485 +0,0 @@ -export const serviceFilterMock = [ - { - id: 'svct_01GSKV6QWAK72ZTDFVSNVJFDQ6', - tsKey: 'abortion-care.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFRBNC7GFYP76X4YCW1', - tsKey: 'abortion-care.abortion-providers', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFS9JX8368P8FB6KTMY', - tsKey: 'abortion-care.financial-assistance', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFSPJ1WHVAP60N38KA2', - tsKey: 'abortion-care.lodging-assistance', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFS8KNFEV7JZZRSFR6Z', - tsKey: 'abortion-care.mail-order-services', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFS9FJCG5Q19DH3Y07V', - tsKey: 'abortion-care.mental-health-support', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFS8A4475BCAEAC7HAH', - tsKey: 'abortion-care.travel-assistance', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6QXMBFAM7CDXNEMX3TBT', - tsKey: 'community-support.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFSJBPRDQF9SNEE6Z43', - tsKey: 'community-support.cultural-centers', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFSH3BJZ9Z108SM9YNC', - tsKey: 'community-support.lgbtq-centers', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFS5RZJXA89G73VSE1E', - tsKey: 'community-support.reception-services', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFS8K5KX3JZH6TF1K91', - tsKey: 'community-support.spiritual-support', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFSJTPXNHG7VA8ZQ201', - tsKey: 'community-support.sponsors', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6QYM131PBK9MEXF6AV35', - tsKey: 'computers-and-internet.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFS6DWCZQHAP1P8RABX', - tsKey: 'computers-and-internet.computers-and-internet', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6QYXRMGJNK7R5HZF7XYQ', - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFSVV313S66ZQRTB49P', - tsKey: 'education-and-employment.career-counseling', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFSMXGQNE18AV1D4MJ6', - tsKey: 'education-and-employment.educational-support-for-lgbtq-youth', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFT0RZZKNSNQV68H0AP', - tsKey: 'education-and-employment.english-classes', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFT065QBBR93MDSNJWV', - tsKey: 'education-and-employment.language-classes', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFT94F50RKA19D9R8BY', - tsKey: 'education-and-employment.leadership-training-and-professional-development', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFTSQ29V2SB2JD756MT', - tsKey: 'education-and-employment.libraries', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFTK24EQXAF8CZ54385', - tsKey: 'education-and-employment.scholarships', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R05KHWM7PDJ73M9M9JD', - tsKey: 'food.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFTKYE1WJP6V01N9V6E', - tsKey: 'food.food', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFTBGRHC4CZQFRCQCS8', - tsKey: 'food.food-assistance', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R0JBM43P1434A2GYX8E', - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFT0GPXTYCFGTD47HR7', - tsKey: 'housing.drop-in-centers-for-lgbtq-youth', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFTQZ666ECT1T2Z1RG0', - tsKey: 'housing.emergency-housing', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFT2KMXAT78W9TX55XK', - tsKey: 'housing.housing-information-and-referrals', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFT5KJ8JVPFK7CTHRHN', - tsKey: 'housing.short-term-housing', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFT0P7WDD3SG5N7K4ST', - tsKey: 'housing.trans-housing', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R1HY3YE387REQJXCH0E', - tsKey: 'hygiene-and-clothing.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFV8XRQBP5SYR8DFR26', - tsKey: 'hygiene-and-clothing.clothes', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVKWX7W9TJM20DWRYQ', - tsKey: 'hygiene-and-clothing.gender-affirming-items', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVT2646J95NCYV4SAB', - tsKey: 'hygiene-and-clothing.gender-neutral-bathrooms', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVH7YAR12NY4RCY10G', - tsKey: 'hygiene-and-clothing.haircuts-and-stylists', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVZ10Y6X3FGR7946MR', - tsKey: 'hygiene-and-clothing.hygiene', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R2FXY78FQSWTPPQTCE4', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFV0QQ4WZDVFDMT6HCG', - tsKey: 'legal.asylum-application', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVQ6HKMAWT924TYZTA', - tsKey: 'legal.citizenship', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVYD7K7KHQ7HF91SKM', - tsKey: 'legal.crime-and-discrimination', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVG7HS19G778NBN41F', - tsKey: 'legal.deferred-action-for-childhood-arrivals-daca', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVA0QQNQN1HW166SE5', - tsKey: 'legal.deportation-or-removal', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFV1A2ZSCWNCZQKRDRR', - tsKey: 'legal.employment-authorization', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVQ03Z4RRFWXN3NQXE', - tsKey: 'legal.family-petitions', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVFE9813T9GT5P5XJ1', - tsKey: 'legal.immigration-detention', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFVP6XKFQRESQ5T1SN0', - tsKey: 'legal.legal-advice', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWSRRKKTWRS11A7WBD', - tsKey: 'legal.legal-hotlines', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFW266MVX19JYQ82ETP', - tsKey: 'legal.name-and-gender-change', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWFATRN63MG8TRGWGC', - tsKey: 'legal.refugee-claim', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWV64NCTA9N6EB2BQH', - tsKey: 'legal.residency', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWDW7FFS4G1CCV1MZZ', - tsKey: 'legal.special-immigrant-juvenile-status-sijs', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWB0CKP8KXD3QGY61D', - tsKey: 'legal.t-visa', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFW7J2BZ9YNX5VN4132', - tsKey: 'legal.u-visa', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6RAB1Z346J16WV29MQ8K', - tsKey: 'mail.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFY23ND18CMBHZA2J9T', - tsKey: 'mail.mail', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R520J9H61J6MYMZ21RS', - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFWVJDK4PZXBRZBPERN', - tsKey: 'medical.covid-19-services', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWC00TM9QNXG7DNPKE', - tsKey: 'medical.dental-care', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFW56JNR3HAPABQTXR5', - tsKey: 'medical.hiv-and-sexual-health', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWJ9K7YZ9KRXTAARNJ', - tsKey: 'medical.medical-clinics', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFW9QRAS484V6ARM63W', - tsKey: 'medical.obgyn-services', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWX72B8HKEMKTHRZ2F', - tsKey: 'medical.physical-evaluations-for-asylum-claim', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFWR368HC2Z98WQMSBS', - tsKey: 'medical.physical-evaluations-for-refugee-claim', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFW40MJEGA9VA116TRQ', - tsKey: 'medical.trans-health', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXTFVJ3GHWKXMB5SM9', - tsKey: 'medical.trans-health-gender-affirming-surgery', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXJ7QPGN2PSDSNX7SQ', - tsKey: 'medical.trans-health-hormone-and-surgery-letters', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFX7ZZGJDEBDMSZ6PK5', - tsKey: 'medical.trans-health-hormone-therapy', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXNFGRM40GWYXT2KKG', - tsKey: 'medical.trans-health-primary-care', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXP2Q9WCPE03T80W34', - tsKey: 'medical.trans-health-speech-therapy', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R7ADHXMGQFKM5YYE5YS', - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFXS8ZDEPR0NPEMP3M4', - tsKey: 'mental-health.bipoc-support-groups', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXHEFFRDVPEQTJZVXY', - tsKey: 'mental-health.hotlines', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXHNZZF36K3FF5KX4R', - tsKey: 'mental-health.private-therapy-and-counseling', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXD3YQAYC3BXVRF28M', - tsKey: 'mental-health.psychological-evaluations-for-asylum-claim', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFX912D219PY4FSTT4Q', - tsKey: 'mental-health.psychological-evaluations-for-refugee-claim', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXBGA9129FP1D0BNYR', - tsKey: 'mental-health.substance-use', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFX55KJRY8MRRZ5AJ4V', - tsKey: 'mental-health.support-for-caregivers-of-trans-youth', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFXZPP8W0S45M685SQF', - tsKey: 'mental-health.support-for-conversion-therapy-survivors', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFX6M3V19BWPSE1SNCK', - tsKey: 'mental-health.support-groups', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFX2PB7KXJ1Z3XZ53V6', - tsKey: 'mental-health.trans-support-groups', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R93766PAS3P6N06J30X', - tsKey: 'sports-and-entertainment.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSXW3DWC32YXNPFSYR0DV6J0', - tsKey: 'sports-and-entertainment.sports-and-entertainment', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R98D3JNNKWRHXMYHTPJ', - tsKey: 'translation-and-interpretation.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFY4D3RZMXHTKFVAR25', - tsKey: 'translation-and-interpretation.for-healthcare', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFYW1CPAC1R9HRWZ2D8', - tsKey: 'translation-and-interpretation.for-legal-services', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFYYTY3KBHKPF0PF03A', - tsKey: 'translation-and-interpretation.general-translation-and-interpretation', - tsNs: 'services', - }, - ], - }, - { - id: 'svct_01GSKV6R9WRMQS5SFB29744ZHR', - tsKey: 'transportation.CATEGORYNAME', - tsNs: 'services', - services: [ - { - id: 'svtg_01GSKV6RFYPGNKENVQ7CD5MF1Y', - tsKey: 'transportation.transit-passes-and-discounts', - tsNs: 'services', - }, - { - id: 'svtg_01GSKV6RFY6J7NM6D064HK5498', - tsKey: 'transportation.transportation-assistance', - tsNs: 'services', - }, - ], - }, -] diff --git a/packages/ui/mockData/suggestOrg.ts b/packages/ui/mockData/suggestOrg.ts deleted file mode 100644 index 7a65806ead..0000000000 --- a/packages/ui/mockData/suggestOrg.ts +++ /dev/null @@ -1,195 +0,0 @@ -import { type ApiOutput } from '@weareinreach/api' - -export const suggestionOptions = { - countries: [ - { - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - tsKey: 'USA.name', - cca2: 'US', - }, - { - id: 'ctry_01GW2HHDKB9DG2T2YZM5MFFVX9', - tsKey: 'MEX.name', - cca2: 'MX', - }, - { - id: 'ctry_01GW2HHDKAWXWYHAAESAA5HH94', - tsKey: 'CAN.name', - cca2: 'CA', - }, - ], - serviceTypes: [ - { - id: 'svct_01GW2HHEVBM0ZHVJ295P2QKR6H', - tsKey: 'abortion-care.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVCXGK9GPK6SAZ2Q7E3', - tsKey: 'community-support.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVDKRVB42KT85KA3FM3', - tsKey: 'computers-and-internet.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVDX898ZT0QGM471WMV', - tsKey: 'education-and-employment.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVFXW9YFMK4R95ZHBPV', - tsKey: 'food.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVF8W7D67CH3NVSQYA6', - tsKey: 'housing.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVGD7CE9VKYVSZYYTPS', - tsKey: 'hygiene-and-clothing.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVH75KPRYKD49EJHYXX', - tsKey: 'legal.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVQ0VE6E94T3CZWEW9F', - tsKey: 'mail.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVKVHTWSBY7PVWC5390', - tsKey: 'medical.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVMEF7DMG9WHP0JM2ZZ', - tsKey: 'mental-health.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVPE008PHCPNHZDAWMS', - tsKey: 'sports-and-entertainment.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVPFRQR07PTHMWJDDKS', - tsKey: 'translation-and-interpretation.CATEGORYNAME', - tsNs: 'services', - }, - { - id: 'svct_01GW2HHEVPXANJ6MPCDE0S4CWT', - tsKey: 'transportation.CATEGORYNAME', - tsNs: 'services', - }, - ], - communities: [ - { - id: 'attr_01GW2HHFVN72D7XEBZZJXCJQXQ', - tsNs: 'attribute', - tsKey: 'srvfocus.bipoc-comm', - icon: '️‍️‍✊🏿', - children: [], - }, - { - id: 'attr_01GW2HHFVRMQFJ9AMA633SQQGV', - tsNs: 'attribute', - tsKey: 'srvfocus.hiv-comm', - icon: '💛', - children: [], - }, - { - id: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - tsNs: 'attribute', - tsKey: 'srvfocus.immigrant-comm', - icon: '️‍️‍🌎', - children: [ - { - id: 'attr_01GW2HHFVPCVX8F3B7M30ZJEHW', - tsNs: 'attribute', - tsKey: 'srvfocus.asylum-seekers', - parentId: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - }, - { - id: 'attr_01GW2HHFVPJERY0GS9D7F56A23', - tsNs: 'attribute', - tsKey: 'srvfocus.resettled-refugees', - parentId: 'attr_01GW2HHFVPTK9555WHJHDBDA2J', - }, - ], - }, - { - id: 'attr_01GW2HHFVQCZPA3Z5GW6J3MQHW', - tsNs: 'attribute', - tsKey: 'srvfocus.lgbtq-youth-focus', - icon: '🌱', - children: [ - { - id: 'attr_01GW2HHFVQVEGH6W3A2ANH1QZE', - tsNs: 'attribute', - tsKey: 'srvfocus.trans-youth-focus', - parentId: 'attr_01GW2HHFVQCZPA3Z5GW6J3MQHW', - }, - ], - }, - { - id: 'attr_01GW2HHFVQ8AGBKBBZJWTHNP2F', - tsNs: 'attribute', - tsKey: 'srvfocus.spanish-speakers', - icon: '🗣️', - children: [], - }, - { - id: 'attr_01GW2HHFVPSYBCYF37B44WP6CZ', - tsNs: 'attribute', - tsKey: 'srvfocus.trans-comm', - icon: '🏳️‍⚧️', - children: [ - { - id: 'attr_01GW2HHFVQ7SYGD3KM8WP9X50B', - tsNs: 'attribute', - tsKey: 'srvfocus.gender-nc', - parentId: 'attr_01GW2HHFVPSYBCYF37B44WP6CZ', - }, - { - id: 'attr_01GW2HHFVQEFWW42MBAD64BWXZ', - tsNs: 'attribute', - tsKey: 'srvfocus.trans-masc', - parentId: 'attr_01GW2HHFVPSYBCYF37B44WP6CZ', - }, - { - id: 'attr_01GW2HHFVQX4M8DY1FSAYSJSSK', - tsNs: 'attribute', - tsKey: 'srvfocus.trans-fem', - parentId: 'attr_01GW2HHFVPSYBCYF37B44WP6CZ', - }, - { - id: 'attr_01GW2HHFVQVEGH6W3A2ANH1QZE', - tsNs: 'attribute', - tsKey: 'srvfocus.trans-youth-focus', - parentId: 'attr_01GW2HHFVPSYBCYF37B44WP6CZ', - }, - ], - }, - ], -} satisfies ApiOutput['organization']['suggestionOptions'] - -export const existingOrg = (input: string): ApiOutput['organization']['checkForExisting'] => { - const name = 'Existing Organization' - const regex = new RegExp(`.*${input}.*`, 'gi') - if (regex.test(name)) { - return { - name, - published: true, - slug: 'existing-org', - } - } - return null -} diff --git a/packages/ui/mockData/surveyOptions.ts b/packages/ui/mockData/surveyOptions.ts deleted file mode 100644 index 3670e49dc1..0000000000 --- a/packages/ui/mockData/surveyOptions.ts +++ /dev/null @@ -1,1730 +0,0 @@ -import { type ApiOutput } from '@weareinreach/api' - -export const surveyOptions = { - community: [ - { - id: 'ucom_RANDOMID', - community: 'data to be populated', - tsKey: 'string', - tsNs: 'user', - }, - { - id: 'ucom_RANDOMID2', - community: 'data to be populated 2', - tsKey: 'string', - tsNs: 'user', - }, - { - id: 'ucom_RANDOMID3', - community: 'data to be populated 3', - tsKey: 'string', - tsNs: 'user', - }, - { - id: 'ucom_RANDOMID4', - community: 'data to be populated 4', - tsKey: 'string', - tsNs: 'user', - }, - ], - countries: [ - { - id: 'ctry_01GW2HHDKATDZGNR55QRS6Y5NX', - tsKey: 'AFG.name', - tsNs: 'country', - cca2: 'AF', - }, - { - id: 'ctry_01GW2HHDKGQRTDPFBTD9GJT3BN', - tsKey: 'ALA.name', - tsNs: 'country', - cca2: 'AX', - }, - { - id: 'ctry_01GW2HHDKDSS3YW7W5994KW3ZT', - tsKey: 'ALB.name', - tsNs: 'country', - cca2: 'AL', - }, - { - id: 'ctry_01GW2HHDK6ENG0N2YD2ZXD043N', - tsKey: 'DZA.name', - tsNs: 'country', - cca2: 'DZ', - }, - { - id: 'ctry_01GW2HHDK67GZQVGA3NZ8PE5SS', - tsKey: 'ASM.name', - tsNs: 'country', - cca2: 'AS', - }, - { - id: 'ctry_01GW2HHDKDE152HYH5H1TD8CK6', - tsKey: 'AND.name', - tsNs: 'country', - cca2: 'AD', - }, - { - id: 'ctry_01GW2HHDKH6H61ZD7Q4D1EVHP5', - tsKey: 'AGO.name', - tsNs: 'country', - cca2: 'AO', - }, - { - id: 'ctry_01GW2HHDK87VQBC3WXQDJJZ6XM', - tsKey: 'AIA.name', - tsNs: 'country', - cca2: 'AI', - }, - { - id: 'ctry_01GW2HHDKAFPAWV4NQHE9VT4BA', - tsKey: 'ATA.name', - tsNs: 'country', - cca2: 'AQ', - }, - { - id: 'ctry_01GW2HHDKE7QG3QATZ72P7YT7V', - tsKey: 'ATG.name', - tsNs: 'country', - cca2: 'AG', - }, - { - id: 'ctry_01GW2HHDKAYQQC5ZYAY81QFF4G', - tsKey: 'ARG.name', - tsNs: 'country', - cca2: 'AR', - }, - { - id: 'ctry_01GW2HHDKD3SFPCG8ED0EP3MX3', - tsKey: 'ARM.name', - tsNs: 'country', - cca2: 'AM', - }, - { - id: 'ctry_01GW2HHDKGHT708N7RM8QDDEBK', - tsKey: 'ABW.name', - tsNs: 'country', - cca2: 'AW', - }, - { - id: 'ctry_01GW2HHDKFCKFTFJP7MARGNHRZ', - tsKey: 'AUS.name', - tsNs: 'country', - cca2: 'AU', - }, - { - id: 'ctry_01GW2HHDKEH1KYC4T8236ZSY3C', - tsKey: 'AUT.name', - tsNs: 'country', - cca2: 'AT', - }, - { - id: 'ctry_01GW2HHDKA3CZ3WF381DJZ5D0Z', - tsKey: 'AZE.name', - tsNs: 'country', - cca2: 'AZ', - }, - { - id: 'ctry_01GW2HHDKH7K0Z1YPRYG3CMEMW', - tsKey: 'BHS.name', - tsNs: 'country', - cca2: 'BS', - }, - { - id: 'ctry_01GW2HHDKCBYW7V5T1DWEBPFRV', - tsKey: 'BHR.name', - tsNs: 'country', - cca2: 'BH', - }, - { - id: 'ctry_01GW2HHDK67CD2NGY24P7G22SF', - tsKey: 'BGD.name', - tsNs: 'country', - cca2: 'BD', - }, - { - id: 'ctry_01GW2HHDK8SPF3A2D6NW2XPTHM', - tsKey: 'BRB.name', - tsNs: 'country', - cca2: 'BB', - }, - { - id: 'ctry_01GW2HHDKD14G6PFAPNEMTW5F5', - tsKey: 'BLR.name', - tsNs: 'country', - cca2: 'BY', - }, - { - id: 'ctry_01GW2HHDKHCQVPDAC0H3PQV53N', - tsKey: 'BEL.name', - tsNs: 'country', - cca2: 'BE', - }, - { - id: 'ctry_01GW2HHDKEZN2DQG8Y7XVGHA0G', - tsKey: 'BLZ.name', - tsNs: 'country', - cca2: 'BZ', - }, - { - id: 'ctry_01GW2HHDKGTGG62NESH7TDS364', - tsKey: 'BEN.name', - tsNs: 'country', - cca2: 'BJ', - }, - { - id: 'ctry_01GW2HHDKE6FEQT1R83S60KVPT', - tsKey: 'BMU.name', - tsNs: 'country', - cca2: 'BM', - }, - { - id: 'ctry_01GW2HHDK7QA15RA6W4YR0YTPQ', - tsKey: 'BTN.name', - tsNs: 'country', - cca2: 'BT', - }, - { - id: 'ctry_01GW2HHDKCS87MJP31FAC9S4NB', - tsKey: 'BOL.name', - tsNs: 'country', - cca2: 'BO', - }, - { - id: 'ctry_01GW2HHDK6V0QGJ9GRNQCW6A29', - tsKey: 'BIH.name', - tsNs: 'country', - cca2: 'BA', - }, - { - id: 'ctry_01GW2HHDKA6G8FACKBG654B237', - tsKey: 'BWA.name', - tsNs: 'country', - cca2: 'BW', - }, - { - id: 'ctry_01GW2HHDKDSY01QJC6KX2BRXH8', - tsKey: 'BVT.name', - tsNs: 'country', - cca2: 'BV', - }, - { - id: 'ctry_01GW2HHDKGTHZA8H042BMMGF3J', - tsKey: 'BRA.name', - tsNs: 'country', - cca2: 'BR', - }, - { - id: 'ctry_01GW2HHDKG19TTZ3XA7NKMZ3TJ', - tsKey: 'IOT.name', - tsNs: 'country', - cca2: 'IO', - }, - { - id: 'ctry_01GW2HHDK88EQB8BSKDWEPG76N', - tsKey: 'VGB.name', - tsNs: 'country', - cca2: 'VG', - }, - { - id: 'ctry_01GW2HHDKEGN1AYW58P63XQPZ0', - tsKey: 'BRN.name', - tsNs: 'country', - cca2: 'BN', - }, - { - id: 'ctry_01GW2HHDKAWJN8K8E3EYVZDENE', - tsKey: 'BGR.name', - tsNs: 'country', - cca2: 'BG', - }, - { - id: 'ctry_01GW2HHDKHD6PPNGQWWGD59BQT', - tsKey: 'BFA.name', - tsNs: 'country', - cca2: 'BF', - }, - { - id: 'ctry_01GW2HHDKGB5RY2JAQVVF4RC4X', - tsKey: 'BDI.name', - tsNs: 'country', - cca2: 'BI', - }, - { - id: 'ctry_01GW2HHDK7T16K1ZJ1PZX1E1ZV', - tsKey: 'KHM.name', - tsNs: 'country', - cca2: 'KH', - }, - { - id: 'ctry_01GW2HHDKEZMTF03P4JYAFZRN1', - tsKey: 'CMR.name', - tsNs: 'country', - cca2: 'CM', - }, - { - id: 'ctry_01GW2HHDKAWXWYHAAESAA5HH94', - tsKey: 'CAN.name', - tsNs: 'country', - cca2: 'CA', - }, - { - id: 'ctry_01GW2HHDKAJ64YAST64W2BJQSV', - tsKey: 'CPV.name', - tsNs: 'country', - cca2: 'CV', - }, - { - id: 'ctry_01GW2HHDK9JPEM2C72VSS71G4H', - tsKey: 'BES.name', - tsNs: 'country', - cca2: 'BQ', - }, - { - id: 'ctry_01GW2HHDKHA0DCHV26S9FDT5P4', - tsKey: 'CYM.name', - tsNs: 'country', - cca2: 'KY', - }, - { - id: 'ctry_01GW2HHDKCW140K2TYTEE750YT', - tsKey: 'CAF.name', - tsNs: 'country', - cca2: 'CF', - }, - { - id: 'ctry_01GW2HHDKBDJH4JA3QZRZCDB1C', - tsKey: 'TCD.name', - tsNs: 'country', - cca2: 'TD', - }, - { - id: 'ctry_01GW2HHDKAMPFS09WBC3XZHQKX', - tsKey: 'CHL.name', - tsNs: 'country', - cca2: 'CL', - }, - { - id: 'ctry_01GW2HHDKGEYB1AM0P2DVYBS7A', - tsKey: 'CHN.name', - tsNs: 'country', - cca2: 'CN', - }, - { - id: 'ctry_01GW2HHDKHV33E0R9ZQSE302T3', - tsKey: 'CXR.name', - tsNs: 'country', - cca2: 'CX', - }, - { - id: 'ctry_01GW2HHDK66TC7PJG0EVPFMBFP', - tsKey: 'CCK.name', - tsNs: 'country', - cca2: 'CC', - }, - { - id: 'ctry_01GW2HHDKE747AN7G49Z1R39X7', - tsKey: 'COL.name', - tsNs: 'country', - cca2: 'CO', - }, - { - id: 'ctry_01GW2HHDKE2EJHZ22HF2GWSB4H', - tsKey: 'COM.name', - tsNs: 'country', - cca2: 'KM', - }, - { - id: 'ctry_01GW2HHDK8FK98CXW90F5HFRJH', - tsKey: 'COK.name', - tsNs: 'country', - cca2: 'CK', - }, - { - id: 'ctry_01GW2HHDK8WHEVKX1JE6V2E5JJ', - tsKey: 'CRI.name', - tsNs: 'country', - cca2: 'CR', - }, - { - id: 'ctry_01GW2HHDK9SZZ6W0GPYA0STVYG', - tsKey: 'HRV.name', - tsNs: 'country', - cca2: 'HR', - }, - { - id: 'ctry_01GW2HHDK8K7BJH8JW34Q7JK12', - tsKey: 'CUB.name', - tsNs: 'country', - cca2: 'CU', - }, - { - id: 'ctry_01GW2HHDKDEHGJVDQC1VDXFM0P', - tsKey: 'CUW.name', - tsNs: 'country', - cca2: 'CW', - }, - { - id: 'ctry_01GW2HHDKAZ27CDARTX8QS2JMN', - tsKey: 'CYP.name', - tsNs: 'country', - cca2: 'CY', - }, - { - id: 'ctry_01GW2HHDKDWZR3XW85F2G82SME', - tsKey: 'CZE.name', - tsNs: 'country', - cca2: 'CZ', - }, - { - id: 'ctry_01GW2HHDKH7Z155XNFE328RJK5', - tsKey: 'DNK.name', - tsNs: 'country', - cca2: 'DK', - }, - { - id: 'ctry_01GW2HHDKBS9SYM4Z85HKVCW7S', - tsKey: 'DJI.name', - tsNs: 'country', - cca2: 'DJ', - }, - { - id: 'ctry_01GW2HHDKCVDAHZVSVC2YD68XN', - tsKey: 'DMA.name', - tsNs: 'country', - cca2: 'DM', - }, - { - id: 'ctry_01GW2HHDKCGAXYVWHRWSD40516', - tsKey: 'DOM.name', - tsNs: 'country', - cca2: 'DO', - }, - { - id: 'ctry_01GW2HHDK7AMX8NEKVMBA64YJS', - tsKey: 'COD.name', - tsNs: 'country', - cca2: 'CD', - }, - { - id: 'ctry_01GW2HHDKFWZA5DF33HK20AMQK', - tsKey: 'ECU.name', - tsNs: 'country', - cca2: 'EC', - }, - { - id: 'ctry_01GW2HHDK9ZK9PGCD8MGCD8YN9', - tsKey: 'EGY.name', - tsNs: 'country', - cca2: 'EG', - }, - { - id: 'ctry_01GW2HHDK8HE6ZXBJEN5GGJYBA', - tsKey: 'SLV.name', - tsNs: 'country', - cca2: 'SV', - }, - { - id: 'ctry_01GW2HHDK95TZ43CS71K1P62JD', - tsKey: 'GNQ.name', - tsNs: 'country', - cca2: 'GQ', - }, - { - id: 'ctry_01GW2HHDKE6ZTA1B0KNFYXA7XZ', - tsKey: 'ERI.name', - tsNs: 'country', - cca2: 'ER', - }, - { - id: 'ctry_01GW2HHDKEM266QFKJYJVHC53T', - tsKey: 'EST.name', - tsNs: 'country', - cca2: 'EE', - }, - { - id: 'ctry_01GW2HHDKBT6AMAW7JQ18MAEGF', - tsKey: 'SWZ.name', - tsNs: 'country', - cca2: 'SZ', - }, - { - id: 'ctry_01GW2HHDKC2S12HZKRBMRC51WB', - tsKey: 'ETH.name', - tsNs: 'country', - cca2: 'ET', - }, - { - id: 'ctry_01GW2HHDKE1JW9G222WXWADT5M', - tsKey: 'FLK.name', - tsNs: 'country', - cca2: 'FK', - }, - { - id: 'ctry_01GW2HHDKF8Y6KNW8X28APN60W', - tsKey: 'FRO.name', - tsNs: 'country', - cca2: 'FO', - }, - { - id: 'ctry_01GW2HHDKC0MEFFZTGK0RWCRQA', - tsKey: 'FJI.name', - tsNs: 'country', - cca2: 'FJ', - }, - { - id: 'ctry_01GW2HHDKFPPCXV7F8BNVZZ81G', - tsKey: 'FIN.name', - tsNs: 'country', - cca2: 'FI', - }, - { - id: 'ctry_01GW2HHDK6TWQ3BN3PG06DQ3HM', - tsKey: 'FRA.name', - tsNs: 'country', - cca2: 'FR', - }, - { - id: 'ctry_01GW2HHDKH5GV00V6MM2F7CZ3P', - tsKey: 'GUF.name', - tsNs: 'country', - cca2: 'GF', - }, - { - id: 'ctry_01GW2HHDKFK3ME6G5ZNBVT26XS', - tsKey: 'PYF.name', - tsNs: 'country', - cca2: 'PF', - }, - { - id: 'ctry_01GW2HHDKCZ5TVB7QPAQNRS362', - tsKey: 'ATF.name', - tsNs: 'country', - cca2: 'TF', - }, - { - id: 'ctry_01GW2HHDK7Z5N9Q2JPZNXP8VPE', - tsKey: 'GAB.name', - tsNs: 'country', - cca2: 'GA', - }, - { - id: 'ctry_01GW2HHDK90V1XFYZ6AWB05J58', - tsKey: 'GMB.name', - tsNs: 'country', - cca2: 'GM', - }, - { - id: 'ctry_01GW2HHDKCJV96MQND976G21HR', - tsKey: 'GEO.name', - tsNs: 'country', - cca2: 'GE', - }, - { - id: 'ctry_01GW2HHDKGGTVBR39ZYJVVDGNY', - tsKey: 'DEU.name', - tsNs: 'country', - cca2: 'DE', - }, - { - id: 'ctry_01GW2HHDKEW7A1ZRA4EFNWN6FB', - tsKey: 'GHA.name', - tsNs: 'country', - cca2: 'GH', - }, - { - id: 'ctry_01GW2HHDKBW4RFHHBG7R71M5B5', - tsKey: 'GIB.name', - tsNs: 'country', - cca2: 'GI', - }, - { - id: 'ctry_01GW2HHDK6GRHQQEYGGJX4CQ1Z', - tsKey: 'GRC.name', - tsNs: 'country', - cca2: 'GR', - }, - { - id: 'ctry_01GW2HHDKCBG5RYMSXJ7NE0EQH', - tsKey: 'GRL.name', - tsNs: 'country', - cca2: 'GL', - }, - { - id: 'ctry_01GW2HHDKDK9BZQS106Q7H8XJR', - tsKey: 'GRD.name', - tsNs: 'country', - cca2: 'GD', - }, - { - id: 'ctry_01GW2HHDKDT4XD73Q57W6631FN', - tsKey: 'GLP.name', - tsNs: 'country', - cca2: 'GP', - }, - { - id: 'ctry_01GW2HHDKGZ2XQ8Q9D8GX564MJ', - tsKey: 'GUM.name', - tsNs: 'country', - cca2: 'GU', - }, - { - id: 'ctry_01GW2HHDK6BPY9VBW9WR5HDVA5', - tsKey: 'GTM.name', - tsNs: 'country', - cca2: 'GT', - }, - { - id: 'ctry_01GW2HHDKDXS2FKHD8YPRKBZPY', - tsKey: 'GGY.name', - tsNs: 'country', - cca2: 'GG', - }, - { - id: 'ctry_01GW2HHDKCK11551EN1JD1AMT6', - tsKey: 'GIN.name', - tsNs: 'country', - cca2: 'GN', - }, - { - id: 'ctry_01GW2HHDKHXN8ZSHAGKGENMQ4N', - tsKey: 'GNB.name', - tsNs: 'country', - cca2: 'GW', - }, - { - id: 'ctry_01GW2HHDKGRJCTDX2GK4ZZDKAS', - tsKey: 'GUY.name', - tsNs: 'country', - cca2: 'GY', - }, - { - id: 'ctry_01GW2HHDKBP9EB7HW41MH04MCA', - tsKey: 'HTI.name', - tsNs: 'country', - cca2: 'HT', - }, - { - id: 'ctry_01GW2HHDKFVJ4QNETXPR3PGZES', - tsKey: 'HMD.name', - tsNs: 'country', - cca2: 'HM', - }, - { - id: 'ctry_01GW2HHDK96FCPGE9HBHC01VDE', - tsKey: 'HND.name', - tsNs: 'country', - cca2: 'HN', - }, - { - id: 'ctry_01GW2HHDKF1ZKQGXHGKH67QXYA', - tsKey: 'HKG.name', - tsNs: 'country', - cca2: 'HK', - }, - { - id: 'ctry_01GW2HHDKGGQ8SZPJH74RXNCP6', - tsKey: 'HUN.name', - tsNs: 'country', - cca2: 'HU', - }, - { - id: 'ctry_01GW2HHDKB1FFT4ZEBATSQXWRB', - tsKey: 'ISL.name', - tsNs: 'country', - cca2: 'IS', - }, - { - id: 'ctry_01GW2HHDK7H0GWV1MRQ6EF6E8N', - tsKey: 'IND.name', - tsNs: 'country', - cca2: 'IN', - }, - { - id: 'ctry_01GW2HHDKDHB62D7NFGE7RRNDN', - tsKey: 'IDN.name', - tsNs: 'country', - cca2: 'ID', - }, - { - id: 'ctry_01GW2HHDKBEYBGKWE7BCHXZHJ6', - tsKey: 'IRN.name', - tsNs: 'country', - cca2: 'IR', - }, - { - id: 'ctry_01GW2HHDKGM9N3RGKASW4677KV', - tsKey: 'IRQ.name', - tsNs: 'country', - cca2: 'IQ', - }, - { - id: 'ctry_01GW2HHDKF939YJGVTR7H30KPX', - tsKey: 'IRL.name', - tsNs: 'country', - cca2: 'IE', - }, - { - id: 'ctry_01GW2HHDKFFE67B6CGZGV25R1C', - tsKey: 'IMN.name', - tsNs: 'country', - cca2: 'IM', - }, - { - id: 'ctry_01GW2HHDK8JM827C3VY37CM7TF', - tsKey: 'ISR.name', - tsNs: 'country', - cca2: 'IL', - }, - { - id: 'ctry_01GW2HHDK65BRH9H4P9YZH3P3F', - tsKey: 'ITA.name', - tsNs: 'country', - cca2: 'IT', - }, - { - id: 'ctry_01GW2HHDKHRGA9ME9MF56RDYYC', - tsKey: 'CIV.name', - tsNs: 'country', - cca2: 'CI', - }, - { - id: 'ctry_01GW2HHDKEVZK4MDJTHQ025AQG', - tsKey: 'JAM.name', - tsNs: 'country', - cca2: 'JM', - }, - { - id: 'ctry_01GW2HHDKFEWN5X3FJ1QFQ55NW', - tsKey: 'JPN.name', - tsNs: 'country', - cca2: 'JP', - }, - { - id: 'ctry_01GW2HHDK8NAN0FT6100XB79PX', - tsKey: 'JEY.name', - tsNs: 'country', - cca2: 'JE', - }, - { - id: 'ctry_01GW2HHDK6Q6BB2C5DWKAYKVP9', - tsKey: 'JOR.name', - tsNs: 'country', - cca2: 'JO', - }, - { - id: 'ctry_01GW2HHDKAE2X1VJCYX05SQ15T', - tsKey: 'KAZ.name', - tsNs: 'country', - cca2: 'KZ', - }, - { - id: 'ctry_01GW2HHDK9D4RQ30ZEV336H36F', - tsKey: 'KEN.name', - tsNs: 'country', - cca2: 'KE', - }, - { - id: 'ctry_01GW2HHDKGR9X8QJBDSK84PAG1', - tsKey: 'KIR.name', - tsNs: 'country', - cca2: 'KI', - }, - { - id: 'ctry_01GW2HHDKA32KTYFEBFF1FRX6G', - tsKey: 'UNK.name', - tsNs: 'country', - cca2: 'XK', - }, - { - id: 'ctry_01GW2HHDKE2127XE2CXSCB0SWG', - tsKey: 'KWT.name', - tsNs: 'country', - cca2: 'KW', - }, - { - id: 'ctry_01GW2HHDKFGDMKVKEAVVCVHXG4', - tsKey: 'KGZ.name', - tsNs: 'country', - cca2: 'KG', - }, - { - id: 'ctry_01GW2HHDKG8SKA53C146FV5E0G', - tsKey: 'LAO.name', - tsNs: 'country', - cca2: 'LA', - }, - { - id: 'ctry_01GW2HHDK69KVF1HPHBRBTSSBE', - tsKey: 'LVA.name', - tsNs: 'country', - cca2: 'LV', - }, - { - id: 'ctry_01GW2HHDK9NG4F38ZGH49JE311', - tsKey: 'LBN.name', - tsNs: 'country', - cca2: 'LB', - }, - { - id: 'ctry_01GW2HHDKH74J20AXR1GWGX6ZQ', - tsKey: 'LSO.name', - tsNs: 'country', - cca2: 'LS', - }, - { - id: 'ctry_01GW2HHDKDHEQGH45498FKFDM8', - tsKey: 'LBR.name', - tsNs: 'country', - cca2: 'LR', - }, - { - id: 'ctry_01GW2HHDKC77VK7AC2YXTJFP9H', - tsKey: 'LBY.name', - tsNs: 'country', - cca2: 'LY', - }, - { - id: 'ctry_01GW2HHDKBKDT96T91NCRFZE8A', - tsKey: 'LIE.name', - tsNs: 'country', - cca2: 'LI', - }, - { - id: 'ctry_01GW2HHDKC6BNE39T2DV3QC4NJ', - tsKey: 'LTU.name', - tsNs: 'country', - cca2: 'LT', - }, - { - id: 'ctry_01GW2HHDKBTPBSDQE1XHBMBXJE', - tsKey: 'LUX.name', - tsNs: 'country', - cca2: 'LU', - }, - { - id: 'ctry_01GW2HHDK9114P6V7VFFNFTMNP', - tsKey: 'MAC.name', - tsNs: 'country', - cca2: 'MO', - }, - { - id: 'ctry_01GW2HHDKBN3B46NQY3YEACJ0K', - tsKey: 'MDG.name', - tsNs: 'country', - cca2: 'MG', - }, - { - id: 'ctry_01GW2HHDKHRXXQZHPZYDV3SNVZ', - tsKey: 'MWI.name', - tsNs: 'country', - cca2: 'MW', - }, - { - id: 'ctry_01GW2HHDKEZED648DCY8RGH5NA', - tsKey: 'MYS.name', - tsNs: 'country', - cca2: 'MY', - }, - { - id: 'ctry_01GW2HHDK6FR8HMD3W523Q3WRA', - tsKey: 'MDV.name', - tsNs: 'country', - cca2: 'MV', - }, - { - id: 'ctry_01GW2HHDKCFG7G5S12F71S6QG5', - tsKey: 'MLI.name', - tsNs: 'country', - cca2: 'ML', - }, - { - id: 'ctry_01GW2HHDKDD06KYX7CY9JJR1SQ', - tsKey: 'MLT.name', - tsNs: 'country', - cca2: 'MT', - }, - { - id: 'ctry_01GW2HHDK8HTCM0MWQXBJRXEYB', - tsKey: 'MHL.name', - tsNs: 'country', - cca2: 'MH', - }, - { - id: 'ctry_01GW2HHDKB96KWQYA4T0D8VXTV', - tsKey: 'MTQ.name', - tsNs: 'country', - cca2: 'MQ', - }, - { - id: 'ctry_01GW2HHDKAR1506PSRF3PB1HYX', - tsKey: 'MRT.name', - tsNs: 'country', - cca2: 'MR', - }, - { - id: 'ctry_01GW2HHDK7DF62BBZYJCBFGVYY', - tsKey: 'MUS.name', - tsNs: 'country', - cca2: 'MU', - }, - { - id: 'ctry_01GW2HHDK6BG4CBH38VKSZ9M4X', - tsKey: 'MYT.name', - tsNs: 'country', - cca2: 'YT', - }, - { - id: 'ctry_01GW2HHDKB9DG2T2YZM5MFFVX9', - tsKey: 'MEX.name', - tsNs: 'country', - cca2: 'MX', - }, - { - id: 'ctry_01GW2HHDKHHXXT7NMR9TQ0TY97', - tsKey: 'FSM.name', - tsNs: 'country', - cca2: 'FM', - }, - { - id: 'ctry_01GW2HHDKCZNJN6F1J1JTQRZ25', - tsKey: 'MDA.name', - tsNs: 'country', - cca2: 'MD', - }, - { - id: 'ctry_01GW2HHDKGB3V0H2DKQA84VA5K', - tsKey: 'MCO.name', - tsNs: 'country', - cca2: 'MC', - }, - { - id: 'ctry_01GW2HHDKC2Q96XZGFSTMMQPNB', - tsKey: 'MNG.name', - tsNs: 'country', - cca2: 'MN', - }, - { - id: 'ctry_01GW2HHDKGA35BCNN91RB2DFX7', - tsKey: 'MNE.name', - tsNs: 'country', - cca2: 'ME', - }, - { - id: 'ctry_01GW2HHDKHCN2Q3JMYRQ7HJ5VH', - tsKey: 'MSR.name', - tsNs: 'country', - cca2: 'MS', - }, - { - id: 'ctry_01GW2HHDKBJ9NNQ06K5V64NAB8', - tsKey: 'MAR.name', - tsNs: 'country', - cca2: 'MA', - }, - { - id: 'ctry_01GW2HHDK8VJ7Z7R0D99K5E4AN', - tsKey: 'MOZ.name', - tsNs: 'country', - cca2: 'MZ', - }, - { - id: 'ctry_01GW2HHDK99MQM7GZ8EN4WZ9FK', - tsKey: 'MMR.name', - tsNs: 'country', - cca2: 'MM', - }, - { - id: 'ctry_01GW2HHDKCGYGA9KDYNQ3CK7H7', - tsKey: 'NAM.name', - tsNs: 'country', - cca2: 'NA', - }, - { - id: 'ctry_01GW2HHDK79QNCV8EVYND8E6MY', - tsKey: 'NRU.name', - tsNs: 'country', - cca2: 'NR', - }, - { - id: 'ctry_01GW2HHDKFT9BZY0XPP6DESZX8', - tsKey: 'NPL.name', - tsNs: 'country', - cca2: 'NP', - }, - { - id: 'ctry_01GW2HHDK76HGWY2MNZTFSTT61', - tsKey: 'NLD.name', - tsNs: 'country', - cca2: 'NL', - }, - { - id: 'ctry_01GW2HHDK7HMC32S6PHPMFACZX', - tsKey: 'NCL.name', - tsNs: 'country', - cca2: 'NC', - }, - { - id: 'ctry_01GW2HHDKEKF565F1E5ZPTXFHE', - tsKey: 'NZL.name', - tsNs: 'country', - cca2: 'NZ', - }, - { - id: 'ctry_01GW2HHDK7372NTNTPP3V9BPGV', - tsKey: 'NIC.name', - tsNs: 'country', - cca2: 'NI', - }, - { - id: 'ctry_01GW2HHDKHMY5MATBT7VET2W95', - tsKey: 'NER.name', - tsNs: 'country', - cca2: 'NE', - }, - { - id: 'ctry_01GW2HHDK8AXT584ZTWBN739SN', - tsKey: 'NGA.name', - tsNs: 'country', - cca2: 'NG', - }, - { - id: 'ctry_01GW2HHDK9B08AAMK0WGCVR313', - tsKey: 'NIU.name', - tsNs: 'country', - cca2: 'NU', - }, - { - id: 'ctry_01GW2HHDKGHKX9XHGFYN7FAF95', - tsKey: 'NFK.name', - tsNs: 'country', - cca2: 'NF', - }, - { - id: 'ctry_01GW2HHDKFJ4Q7PBTTN4GSMPV0', - tsKey: 'MNP.name', - tsNs: 'country', - cca2: 'MP', - }, - { - id: 'ctry_01GW2HHDKCQX4EJEVCEME3EEBS', - tsKey: 'PRK.name', - tsNs: 'country', - cca2: 'KP', - }, - { - id: 'ctry_01GW2HHDKAKGTGCFFE8HQGZXF4', - tsKey: 'MKD.name', - tsNs: 'country', - cca2: 'MK', - }, - { - id: 'ctry_01GW2HHDK74HTQCYV1EVM79B1G', - tsKey: 'NOR.name', - tsNs: 'country', - cca2: 'NO', - }, - { - id: 'ctry_01GW2HHDKH3SMD6TVK8MPGE6DD', - tsKey: 'OMN.name', - tsNs: 'country', - cca2: 'OM', - }, - { - id: 'ctry_01GW2HHDKDDHRPPGSEFG2P69F0', - tsKey: 'PAK.name', - tsNs: 'country', - cca2: 'PK', - }, - { - id: 'ctry_01GW2HHDKBRDF1DMR5DA9DAT7K', - tsKey: 'PLW.name', - tsNs: 'country', - cca2: 'PW', - }, - { - id: 'ctry_01GW2HHDKGRRZM6X62GJ3M62Z4', - tsKey: 'PSE.name', - tsNs: 'country', - cca2: 'PS', - }, - { - id: 'ctry_01GW2HHDK7JEDGYF9BQBZVDW0X', - tsKey: 'PAN.name', - tsNs: 'country', - cca2: 'PA', - }, - { - id: 'ctry_01GW2HHDK9HZ6M9Q2PJEX8T6HA', - tsKey: 'PNG.name', - tsNs: 'country', - cca2: 'PG', - }, - { - id: 'ctry_01GW2HHDKF47X5KGDW8RWF841A', - tsKey: 'PRY.name', - tsNs: 'country', - cca2: 'PY', - }, - { - id: 'ctry_01GW2HHDKBRRZ84X368SH12W7Q', - tsKey: 'PER.name', - tsNs: 'country', - cca2: 'PE', - }, - { - id: 'ctry_01GW2HHDKAQTGEVED1E27QW61N', - tsKey: 'PHL.name', - tsNs: 'country', - cca2: 'PH', - }, - { - id: 'ctry_01GW2HHDKJRNN53ENTSS4Z001K', - tsKey: 'PCN.name', - tsNs: 'country', - cca2: 'PN', - }, - { - id: 'ctry_01GW2HHDKBRG2CC67WN648YK7S', - tsKey: 'POL.name', - tsNs: 'country', - cca2: 'PL', - }, - { - id: 'ctry_01GW2HHDK9W45HXETV96K8CZAZ', - tsKey: 'PRT.name', - tsNs: 'country', - cca2: 'PT', - }, - { - id: 'ctry_01GW2HHDK7PACTC9GJ2XBMVPKY', - tsKey: 'PRI.name', - tsNs: 'country', - cca2: 'PR', - }, - { - id: 'ctry_01GW2HHDKA77DT55ZPJ8XKM8P3', - tsKey: 'QAT.name', - tsNs: 'country', - cca2: 'QA', - }, - { - id: 'ctry_01GW2HHDKD20967VJAPNPBARXM', - tsKey: 'COG.name', - tsNs: 'country', - cca2: 'CG', - }, - { - id: 'ctry_01GW2HHDK7HX3TFSB0HX6YDCRR', - tsKey: 'REU.name', - tsNs: 'country', - cca2: 'RE', - }, - { - id: 'ctry_01GW2HHDKAGCFGK8W1ZFE62QKQ', - tsKey: 'ROU.name', - tsNs: 'country', - cca2: 'RO', - }, - { - id: 'ctry_01GW2HHDK8A3W54F0AW64VV2GD', - tsKey: 'RUS.name', - tsNs: 'country', - cca2: 'RU', - }, - { - id: 'ctry_01GW2HHDK8ZYZHYB9CAVW6C4ER', - tsKey: 'RWA.name', - tsNs: 'country', - cca2: 'RW', - }, - { - id: 'ctry_01GW2HHDKH0MMEJM9R74Z359R6', - tsKey: 'BLM.name', - tsNs: 'country', - cca2: 'BL', - }, - { - id: 'ctry_01GW2HHDKD9T5SF5CAMVPA1M4F', - tsKey: 'SHN.name', - tsNs: 'country', - cca2: 'SH', - }, - { - id: 'ctry_01GW2HHDKC0N6MV90J9VWJ6CQN', - tsKey: 'KNA.name', - tsNs: 'country', - cca2: 'KN', - }, - { - id: 'ctry_01GW2HHDKFPY9T4YYDFWGBZP5P', - tsKey: 'LCA.name', - tsNs: 'country', - cca2: 'LC', - }, - { - id: 'ctry_01GW2HHDKD311V08MQJWG7CK03', - tsKey: 'MAF.name', - tsNs: 'country', - cca2: 'MF', - }, - { - id: 'ctry_01GW2HHDK8MZVCAHNP3EBTHDGH', - tsKey: 'SPM.name', - tsNs: 'country', - cca2: 'PM', - }, - { - id: 'ctry_01GW2HHDKFYB0C2FBC8KQ50M36', - tsKey: 'VCT.name', - tsNs: 'country', - cca2: 'VC', - }, - { - id: 'ctry_01GW2HHDKFTYX6T84QB1WZYYAY', - tsKey: 'WSM.name', - tsNs: 'country', - cca2: 'WS', - }, - { - id: 'ctry_01GW2HHDK796T1HRBRQMRV2ZGH', - tsKey: 'SMR.name', - tsNs: 'country', - cca2: 'SM', - }, - { - id: 'ctry_01GW2HHDK73TNXH3DFC5BV244P', - tsKey: 'STP.name', - tsNs: 'country', - cca2: 'ST', - }, - { - id: 'ctry_01GW2HHDKE6SRWQT7YKMEV7N5Y', - tsKey: 'SAU.name', - tsNs: 'country', - cca2: 'SA', - }, - { - id: 'ctry_01GW2HHDKJ4620D1AB421E7JYX', - tsKey: 'SEN.name', - tsNs: 'country', - cca2: 'SN', - }, - { - id: 'ctry_01GW2HHDKCGEP7FXQHWTQWB904', - tsKey: 'SRB.name', - tsNs: 'country', - cca2: 'RS', - }, - { - id: 'ctry_01GW2HHDKHF02X3NEPGZ12ZFZV', - tsKey: 'SYC.name', - tsNs: 'country', - cca2: 'SC', - }, - { - id: 'ctry_01GW2HHDK70QBRG8S7ZXZP89W9', - tsKey: 'SLE.name', - tsNs: 'country', - cca2: 'SL', - }, - { - id: 'ctry_01GW2HHDK6FGT7BES1NPX66JTQ', - tsKey: 'SGP.name', - tsNs: 'country', - cca2: 'SG', - }, - { - id: 'ctry_01GW2HHDKGQMAVVKJ3SPPCS689', - tsKey: 'SXM.name', - tsNs: 'country', - cca2: 'SX', - }, - { - id: 'ctry_01GW2HHDKG21ZM449SKC9HB5YK', - tsKey: 'SVK.name', - tsNs: 'country', - cca2: 'SK', - }, - { - id: 'ctry_01GW2HHDK95AW3T41X8R552F6R', - tsKey: 'SVN.name', - tsNs: 'country', - cca2: 'SI', - }, - { - id: 'ctry_01GW2HHDKC5TFN4HP9KQ7QCQR9', - tsKey: 'SLB.name', - tsNs: 'country', - cca2: 'SB', - }, - { - id: 'ctry_01GW2HHDKBHVDM3WCVS2THFMHT', - tsKey: 'SOM.name', - tsNs: 'country', - cca2: 'SO', - }, - { - id: 'ctry_01GW2HHDKDNEGQ31JPB4V9BBMK', - tsKey: 'ZAF.name', - tsNs: 'country', - cca2: 'ZA', - }, - { - id: 'ctry_01GW2HHDKBM1E4N9900Q4N942Y', - tsKey: 'SGS.name', - tsNs: 'country', - cca2: 'GS', - }, - { - id: 'ctry_01GW2HHDKH6NG85CKMSESSPHQK', - tsKey: 'KOR.name', - tsNs: 'country', - cca2: 'KR', - }, - { - id: 'ctry_01GW2HHDKD48PB3V9R7ZWXZ3KP', - tsKey: 'SSD.name', - tsNs: 'country', - cca2: 'SS', - }, - { - id: 'ctry_01GW2HHDKAMRVA2E0TZBFPX7VF', - tsKey: 'ESP.name', - tsNs: 'country', - cca2: 'ES', - }, - { - id: 'ctry_01GW2HHDKHZNVZP299TK5QC9X6', - tsKey: 'LKA.name', - tsNs: 'country', - cca2: 'LK', - }, - { - id: 'ctry_01GW2HHDKH7NVGT1JBPB5B9SP3', - tsKey: 'SDN.name', - tsNs: 'country', - cca2: 'SD', - }, - { - id: 'ctry_01GW2HHDKHZP2AGK419VGS2YQ0', - tsKey: 'SUR.name', - tsNs: 'country', - cca2: 'SR', - }, - { - id: 'ctry_01GW2HHDKEG4RY89ACRQMNT8SB', - tsKey: 'SJM.name', - tsNs: 'country', - cca2: 'SJ', - }, - { - id: 'ctry_01GW2HHDKBCAGQ1RJGC3ZP6Z5S', - tsKey: 'SWE.name', - tsNs: 'country', - cca2: 'SE', - }, - { - id: 'ctry_01GW2HHDKGFE1AY05PY62XEWPM', - tsKey: 'CHE.name', - tsNs: 'country', - cca2: 'CH', - }, - { - id: 'ctry_01GW2HHDKBCYJXSMFM5N5VW3Q5', - tsKey: 'SYR.name', - tsNs: 'country', - cca2: 'SY', - }, - { - id: 'ctry_01GW2HHDKHMX2CYG3GWYA23W4B', - tsKey: 'TWN.name', - tsNs: 'country', - cca2: 'TW', - }, - { - id: 'ctry_01GW2HHDKAHQVZWP2NHE3A02B5', - tsKey: 'TJK.name', - tsNs: 'country', - cca2: 'TJ', - }, - { - id: 'ctry_01GW2HHDKE97QHYGJXTAGWENKK', - tsKey: 'TZA.name', - tsNs: 'country', - cca2: 'TZ', - }, - { - id: 'ctry_01GW2HHDKGVAGE7SGTXWD5V2EP', - tsKey: 'THA.name', - tsNs: 'country', - cca2: 'TH', - }, - { - id: 'ctry_01GW2HHDKF1NR34T2G6FMKQCYD', - tsKey: 'TLS.name', - tsNs: 'country', - cca2: 'TL', - }, - { - id: 'ctry_01GW2HHDKDMWST2K7SVAAEP7K5', - tsKey: 'TGO.name', - tsNs: 'country', - cca2: 'TG', - }, - { - id: 'ctry_01GW2HHDKFRPGM3P3HD5747R23', - tsKey: 'TKL.name', - tsNs: 'country', - cca2: 'TK', - }, - { - id: 'ctry_01GW2HHDKG1TWFSYE4QQ6CRFX7', - tsKey: 'TON.name', - tsNs: 'country', - cca2: 'TO', - }, - { - id: 'ctry_01GW2HHDK94QVSXT8Q12EDB4XP', - tsKey: 'TTO.name', - tsNs: 'country', - cca2: 'TT', - }, - { - id: 'ctry_01GW2HHDKGG7JZ2RN968FJNWJ8', - tsKey: 'TUN.name', - tsNs: 'country', - cca2: 'TN', - }, - { - id: 'ctry_01GW2HHDK8NAY2T3GHNV1HVD3M', - tsKey: 'TUR.name', - tsNs: 'country', - cca2: 'TR', - }, - { - id: 'ctry_01GW2HHDKEFVF6N0VM03AGGZF7', - tsKey: 'TKM.name', - tsNs: 'country', - cca2: 'TM', - }, - { - id: 'ctry_01GW2HHDKEE1FJ2XTH7MA2AZP1', - tsKey: 'TCA.name', - tsNs: 'country', - cca2: 'TC', - }, - { - id: 'ctry_01GW2HHDK7BMH7NEWWCXXE4XTG', - tsKey: 'TUV.name', - tsNs: 'country', - cca2: 'TV', - }, - { - id: 'ctry_01GW2HHDKF91Z0RAW6TC6P5TAP', - tsKey: 'UGA.name', - tsNs: 'country', - cca2: 'UG', - }, - { - id: 'ctry_01GW2HHDKBX833SWMMRHFEXGDG', - tsKey: 'UKR.name', - tsNs: 'country', - cca2: 'UA', - }, - { - id: 'ctry_01GW2HHDKDXBNPG01NBMPKYFZ2', - tsKey: 'ARE.name', - tsNs: 'country', - cca2: 'AE', - }, - { - id: 'ctry_01GW2HHDKFTPR1W2P2M9E081J5', - tsKey: 'GBR.name', - tsNs: 'country', - cca2: 'GB', - }, - { - id: 'ctry_01GW2HHDK9M26M80SG63T21SVH', - tsKey: 'USA.name', - tsNs: 'country', - cca2: 'US', - }, - { - id: 'ctry_01GW2HHDKCRS9KW4FG2WR2GG06', - tsKey: 'UMI.name', - tsNs: 'country', - cca2: 'UM', - }, - { - id: 'ctry_01GW2HHDK9DG12Y7RQMVEE5XSQ', - tsKey: 'VIR.name', - tsNs: 'country', - cca2: 'VI', - }, - { - id: 'ctry_01GW2HHDKAZYVYFHDZNZDE4HPB', - tsKey: 'URY.name', - tsNs: 'country', - cca2: 'UY', - }, - { - id: 'ctry_01GW2HHDKH6KGE8D69GPF7SSAJ', - tsKey: 'UZB.name', - tsNs: 'country', - cca2: 'UZ', - }, - { - id: 'ctry_01GW2HHDKBARW56WYXTBMBX9Z8', - tsKey: 'VUT.name', - tsNs: 'country', - cca2: 'VU', - }, - { - id: 'ctry_01GW2HHDKD09MHFTWE9SKVMMJ0', - tsKey: 'VAT.name', - tsNs: 'country', - cca2: 'VA', - }, - { - id: 'ctry_01GW2HHDKGJG43HR2M2T7JQ5DC', - tsKey: 'VEN.name', - tsNs: 'country', - cca2: 'VE', - }, - { - id: 'ctry_01GW2HHDKFX9C6AWNQ3F32P95P', - tsKey: 'VNM.name', - tsNs: 'country', - cca2: 'VN', - }, - { - id: 'ctry_01GW2HHDKEYSJWN1W0AYDS0NH4', - tsKey: 'WLF.name', - tsNs: 'country', - cca2: 'WF', - }, - { - id: 'ctry_01GW2HHDK87660QN220M6T4S2K', - tsKey: 'ESH.name', - tsNs: 'country', - cca2: 'EH', - }, - { - id: 'ctry_01GW2HHDKA60427HJJGXNGC3EV', - tsKey: 'YEM.name', - tsNs: 'country', - cca2: 'YE', - }, - { - id: 'ctry_01GW2HHDKFPXSJ18WSJ8GEZKJ0', - tsKey: 'ZMB.name', - tsNs: 'country', - cca2: 'ZM', - }, - { - id: 'ctry_01GW2HHDKENXBKBZTFJ4PA6Z2C', - tsKey: 'ZWE.name', - tsNs: 'country', - cca2: 'ZW', - }, - ], - ethnicity: [ - { - id: 'ueth_00000000006F1H2JQ07NJTREXW', - tsKey: 'eth-american-indiannative-americanindigenous-person', - tsNs: 'user', - ethnicity: 'American Indian/Native American/Indigenous Person', - }, - { - id: 'ueth_0000000000M2F0RHECPMF0MR6X', - tsKey: 'eth-asian', - tsNs: 'user', - ethnicity: 'Asian', - }, - { - id: 'ueth_0000000000KEK72B3N4QHVTA3A', - tsKey: 'eth-biracialmultiracial', - tsNs: 'user', - ethnicity: 'Biracial/Multiracial', - }, - { - id: 'ueth_00000000008P0CEKTFHPSB5ZMH', - tsKey: 'eth-black', - tsNs: 'user', - ethnicity: 'Black', - }, - { - id: 'ueth_0000000000PNE879MSM1953PAJ', - tsKey: 'eth-latinoaxhispanic', - tsNs: 'user', - ethnicity: 'Latino/a/x/Hispanic', - }, - { - id: 'ueth_0000000000VHKHZCYN8Y1XKKSM', - tsKey: 'eth-middle-easternnorth-african', - tsNs: 'user', - ethnicity: 'Middle Eastern/North African', - }, - { - id: 'ueth_00000000000050AVJB64RKM26N', - tsKey: 'eth-native-hawaiianpacific-islander', - tsNs: 'user', - ethnicity: 'Native Hawaiian/Pacific Islander', - }, - { - id: 'ueth_0000000000E5KVESBAY6NPGJW3', - tsKey: 'eth-other', - tsNs: 'user', - ethnicity: 'Other', - }, - { - id: 'ueth_0000000000408WMYJX00AG1QPW', - tsKey: 'eth-prefer-not-to-say', - tsNs: 'user', - ethnicity: 'Prefer not to say', - }, - { - id: 'ueth_00000000008WXJ64CV556WDFX8', - tsKey: 'eth-south-asian', - tsNs: 'user', - ethnicity: 'South Asian', - }, - { - id: 'ueth_0000000000MGT66394R9VSBBBT', - tsKey: 'eth-white', - tsNs: 'user', - ethnicity: 'White', - }, - ], - immigration: [ - { - id: 'uimm_01GW2HHHS4V1GC918V546W60KD', - tsKey: 'immigration-asylee', - tsNs: 'user', - status: 'Asylee (granted asylum)', - }, - { - id: 'uimm_01GW2HHHS4Y4GY5HY7HCSG8YK7', - tsKey: 'immigration-asylum-seeker', - tsNs: 'user', - status: 'Asylum seeker', - }, - { - id: 'uimm_01GW2HHHS402DH862YGCY0PCMT', - tsKey: 'immigration-dreamer', - tsNs: 'user', - status: 'Dreamer (DACA recipient)', - }, - { - id: 'uimm_01H2RRM42VTDFX1TE9T0JEP0RC', - tsKey: 'immigration-none', - tsNs: 'user', - status: 'None', - }, - { - id: 'uimm_01GW2HHHS4G6TA7FVKXBC3NT8M', - tsKey: 'immigration-immigrant', - tsNs: 'user', - status: 'Other immigrant', - }, - { - id: 'uimm_01H2RS1637PN3MECKRZXJRPGM2', - tsKey: 'immigration-prefer-not-to-say', - tsNs: 'user', - status: 'Prefer not to say', - }, - { - id: 'uimm_01GW2HHHS4DQRF2AJR7RTQ1WDJ', - tsKey: 'immigration-refugee', - tsNs: 'user', - status: 'Refugee', - }, - ], - sog: [ - { - id: 'usog_01GW2HHHJ24AEGCKRWGJBM40VH', - tsKey: 'identity-ally', - tsNs: 'user', - identifyAs: 'Ally', - }, - { - id: 'usog_01GW2HHHJ2SW75W5HN05XSYPBD', - tsKey: 'identity-asexual', - tsNs: 'user', - identifyAs: 'Asexual', - }, - { - id: 'usog_01GW2HHHJ20BNN1QNFSKCFZJY0', - tsKey: 'identity-bisexual', - tsNs: 'user', - identifyAs: 'Bisexual', - }, - { - id: 'usog_01GW2HHHJ2B12W0TQJK6C40QVC', - tsKey: 'identity-gay', - tsNs: 'user', - identifyAs: 'Gay', - }, - { - id: 'usog_01GW2HHHJ21DDB2R0D19R7M7JH', - tsKey: 'identity-intersex', - tsNs: 'user', - identifyAs: 'Intersex', - }, - { - id: 'usog_01GW2HHHJ2QDQXKF5NP5RS5Y39', - tsKey: 'identity-lesbian', - tsNs: 'user', - identifyAs: 'Lesbian', - }, - { - id: 'usog_01GW2HHHJ23WPP795Y15Q870KV', - tsKey: 'identity-man', - tsNs: 'user', - identifyAs: 'Man', - }, - { - id: 'usog_01GW2HHHJ2Z9CG508G0Y7DYPGE', - tsKey: 'identity-nonbinary', - tsNs: 'user', - identifyAs: 'Nonbinary', - }, - { - id: 'usog_01GW2HHHJ2DHFBR3CMFMCYH0K5', - tsKey: 'identity-pansexual', - tsNs: 'user', - identifyAs: 'Pansexual', - }, - { - id: 'usog_01GW2HHHJ2WQZ68B82GX495XF8', - tsKey: 'identity-queer', - tsNs: 'user', - identifyAs: 'Queer', - }, - { - id: 'usog_01GW2HHHJ2HH62GFVMWJCSA4XT', - tsKey: 'identity-questioning', - tsNs: 'user', - identifyAs: 'Questioning', - }, - { - id: 'usog_01GW2HHHJ37AW3SB0Y8BDGQF8N', - tsKey: 'identity-straight', - tsNs: 'user', - identifyAs: 'Straight', - }, - { - id: 'usog_01GW2HHHJ3PQQ2XHK0AGDWCFJB', - tsKey: 'identity-transgender', - tsNs: 'user', - identifyAs: 'Transgender', - }, - { - id: 'usog_01GW2HHHJ3N748VNX751AY4KPE', - tsKey: 'identity-woman', - tsNs: 'user', - identifyAs: 'Woman', - }, - ], -} satisfies ApiOutput['user']['surveyOptions'] diff --git a/packages/ui/mockData/user.ts b/packages/ui/mockData/user.ts new file mode 100644 index 0000000000..601e12d5cb --- /dev/null +++ b/packages/ui/mockData/user.ts @@ -0,0 +1,11 @@ +import { getTRPCMock, type MockHandlerObject } from '~ui/lib/getTrpcMock' + +export const user = { + surveyOptions: getTRPCMock({ + path: ['user', 'surveyOptions'], + response: async () => { + const data = (await import('./json/user.surveyOptions.json')).default + return data + }, + }), +} satisfies MockHandlerObject<'user'> diff --git a/packages/ui/modals/AccountVerified.stories.tsx b/packages/ui/modals/AccountVerified.stories.tsx index 45519d1ea8..42ddb37aec 100644 --- a/packages/ui/modals/AccountVerified.stories.tsx +++ b/packages/ui/modals/AccountVerified.stories.tsx @@ -1,7 +1,7 @@ import { type Meta } from '@storybook/react' import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { surveyOptions } from '~ui/mockData/surveyOptions' +import { user } from '~ui/mockData/user' import { AccountVerifyModal } from './AccountVerified' @@ -16,16 +16,12 @@ export default { response: { $metadata: {} }, delay: 2000, }), - getTRPCMock({ - path: ['user', 'surveyOptions'], - type: 'query', - response: { ...surveyOptions }, - }), getTRPCMock({ path: ['user', 'submitSurvey'], type: 'mutation', response: 'not a real id', }), + user.surveyOptions, ], nextjs: { router: { diff --git a/packages/ui/modals/LoginSignUp/index.stories.tsx b/packages/ui/modals/LoginSignUp/index.stories.tsx index aa6c20cfd6..570ac78efa 100644 --- a/packages/ui/modals/LoginSignUp/index.stories.tsx +++ b/packages/ui/modals/LoginSignUp/index.stories.tsx @@ -2,7 +2,7 @@ import { Center } from '@mantine/core' import { type Meta, type StoryObj } from '@storybook/react' import { Button } from '~ui/components/core/Button' -import { geoAutocompleteCityState, geoByPlaceIdCityState } from '~ui/mockData/geo' +import { geo } from '~ui/mockData/geo' import { SignupModalLauncher } from '.' import { getTRPCMock } from '../../lib/getTrpcMock' @@ -13,15 +13,8 @@ export default { parameters: { layout: 'fullscreen', msw: [ - getTRPCMock({ - path: ['geo', 'autocomplete'], - type: 'query', - response: geoAutocompleteCityState, - }), - getTRPCMock({ - path: ['geo', 'geoByPlaceId'], - response: geoByPlaceIdCityState, - }), + geo.autocompleteCityState, + geo.placeIdCityState, getTRPCMock({ path: ['user', 'create'], type: 'mutation', diff --git a/packages/ui/modals/MoreFilter.stories.tsx b/packages/ui/modals/MoreFilter.stories.tsx index 2b28f77fc2..ed1a171d93 100644 --- a/packages/ui/modals/MoreFilter.stories.tsx +++ b/packages/ui/modals/MoreFilter.stories.tsx @@ -4,7 +4,7 @@ import { useEffect, useState } from 'react' import { StorybookGridDouble } from '~ui/layouts/BodyGrid' import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { moreFilterMock } from '~ui/mockData/moreFilter' +import { attribute } from '~ui/mockData/attribute' import { MoreFilter } from './MoreFilter' @@ -17,13 +17,7 @@ export default { url: 'https://www.figma.com/file/gl8ppgnhpSq1Dr7Daohk55/Design-System-(2023)?node-id=51%3A493&t=OR50OY3K2rzSJbrl-0', }, msw: { - handlers: [ - getTRPCMock({ - path: ['attribute', 'getFilterOptions'], - type: 'query', - response: moreFilterMock, - }), - ], + handlers: [attribute.getFilterOptions], }, layout: 'fullscreen', }, diff --git a/packages/ui/modals/Service.stories.tsx b/packages/ui/modals/Service.stories.tsx index 6548094af2..eb7ba58f85 100644 --- a/packages/ui/modals/Service.stories.tsx +++ b/packages/ui/modals/Service.stories.tsx @@ -2,8 +2,9 @@ import { type Meta } from '@storybook/react' import { Button } from '~ui/components/core/Button' import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { getAll } from '~ui/mockData/savedList' -import { mockService } from '~ui/mockData/service' +import { organization } from '~ui/mockData/organization' +import { savedList } from '~ui/mockData/savedList' +import { service } from '~ui/mockData/service' import { ServiceModal } from './Service' @@ -13,24 +14,7 @@ export default { title: 'Modals/Service Info', component: ServiceModal, parameters: { - msw: [ - getTRPCMock({ - path: ['service', 'getParentName'], - response: { name: 'Organization name' }, - }), - getTRPCMock({ - path: ['savedList', 'getAll'], - response: getAll, - }), - getTRPCMock({ - path: ['organization', 'getIdFromSlug'], - type: 'query', - response: { - id: 'orgn_ORGANIZATIONID', - }, - }), - mockService.forServiceModal, - ], + msw: [service.getParentName, savedList.getAll, organization.getIdFromSlug, service.forServiceModal], nextjs: { router: { pathname: '/org/[slug]', diff --git a/packages/ui/modals/ServiceFilter/index.stories.tsx b/packages/ui/modals/ServiceFilter/index.stories.tsx index 1d5d3d2242..644306f8cc 100644 --- a/packages/ui/modals/ServiceFilter/index.stories.tsx +++ b/packages/ui/modals/ServiceFilter/index.stories.tsx @@ -4,7 +4,7 @@ import { useEffect, useState } from 'react' import { StorybookGridDouble } from '~ui/layouts/BodyGrid' import { getTRPCMock } from '~ui/lib/getTrpcMock' -import { serviceFilterMock } from '~ui/mockData/serviceFilter' +import { service } from '~ui/mockData/service' import { ServiceFilter } from './index' @@ -17,13 +17,7 @@ export default { url: 'https://www.figma.com/file/gl8ppgnhpSq1Dr7Daohk55/Design-System-(2023)?node-id=51%3A493&t=OR50OY3K2rzSJbrl-0', }, msw: { - handlers: [ - getTRPCMock({ - path: ['service', 'getFilterOptions'], - type: 'query', - response: [...serviceFilterMock], - }), - ], + handlers: [service.getFilterOptions], }, layout: 'fullscreen', }, diff --git a/packages/ui/modals/UserSurvey/index.stories.tsx b/packages/ui/modals/UserSurvey/index.stories.tsx index d789b6f8f9..2c43cbcb3e 100644 --- a/packages/ui/modals/UserSurvey/index.stories.tsx +++ b/packages/ui/modals/UserSurvey/index.stories.tsx @@ -2,7 +2,7 @@ import { Center } from '@mantine/core' import { type Meta } from '@storybook/react' import { Button } from '~ui/components/core/Button' -import { surveyOptions } from '~ui/mockData/surveyOptions' +import { user } from '~ui/mockData/user' import { UserSurveyModalLauncher } from '.' import { getTRPCMock } from '../../lib/getTrpcMock' @@ -13,11 +13,7 @@ export default { parameters: { layout: 'fullscreen', msw: [ - getTRPCMock({ - path: ['user', 'surveyOptions'], - type: 'query', - response: { ...surveyOptions }, - }), + user.surveyOptions, getTRPCMock({ path: ['user', 'submitSurvey'], type: 'mutation', diff --git a/packages/ui/modals/dataPortal/PhoneEmail/fields.stories.tsx b/packages/ui/modals/dataPortal/PhoneEmail/fields.stories.tsx index 3a801c45dd..8886169edd 100644 --- a/packages/ui/modals/dataPortal/PhoneEmail/fields.stories.tsx +++ b/packages/ui/modals/dataPortal/PhoneEmail/fields.stories.tsx @@ -1,10 +1,10 @@ import { type Meta, type StoryFn, type StoryObj } from '@storybook/react' import { Fragment } from 'react' -import { getTRPCMock } from '~ui/lib/getTrpcMock' import { allFieldOptHandlers } from '~ui/mockData/fieldOpt' -import { getNames as getLocationNames } from '~ui/mockData/orgLocation' -import { getNames as getServiceNames } from '~ui/mockData/orgService' +import { location } from '~ui/mockData/location' +import { organization } from '~ui/mockData/organization' +import { service } from '~ui/mockData/service' import { formHookParams, PhoneEmailFormProvider, useForm } from './context' import { PhoneEmailFlags, PhoneTypeSelect } from './fields' @@ -18,24 +18,11 @@ const FormContextDecorator = (Story: StoryFn) => { ) } -// eslint-disable-next-line storybook/prefer-pascal-case export const phoneEmailFieldMocks = [ ...allFieldOptHandlers, - getTRPCMock({ - path: ['organization', 'getIdFromSlug'], - type: 'query', - response: { - id: 'orgn_ORGANIZATIONID', - }, - }), - getTRPCMock({ - path: ['service', 'getNames'], - response: getServiceNames, - }), - getTRPCMock({ - path: ['location', 'getNames'], - response: getLocationNames, - }), + organization.getIdFromSlug, + location.getNames, + service.getNames, ] export default {