diff --git a/apps/app/.eslintignore b/apps/app/.eslintignore index 66fb2ac992..75c0aef1f1 100644 --- a/apps/app/.eslintignore +++ b/apps/app/.eslintignore @@ -1 +1,2 @@ *.spec.ts +webpack-stats.json diff --git a/apps/app/.gitignore b/apps/app/.gitignore index 86fcaae04b..e742dd8bea 100644 --- a/apps/app/.gitignore +++ b/apps/app/.gitignore @@ -44,3 +44,5 @@ yarn-error.log* # Sentry Auth Token .sentryclirc + +webpack-stats.json diff --git a/apps/app/.prettierignore b/apps/app/.prettierignore index 0959e3aaed..8ccb126b3b 100644 --- a/apps/app/.prettierignore +++ b/apps/app/.prettierignore @@ -12,3 +12,4 @@ pnpm-lock.yaml .DS_Store .eslintignore .trace/*.json +webpack-stats.json diff --git a/apps/app/next.config.mjs b/apps/app/next.config.mjs index f5c62cb29a..aa973c2f6c 100644 --- a/apps/app/next.config.mjs +++ b/apps/app/next.config.mjs @@ -67,7 +67,11 @@ const nextConfig = { config.plugins = [...config.plugins, new PrismaPlugin()] } if (!dev && !isServer) { - config.plugins.push(new RelativeCiAgentWebpackPlugin()) + config.plugins.push( + new RelativeCiAgentWebpackPlugin({ + stats: { excludeAssets: [/.*\/webpack-stats\.json/, /build-manifest\.json/] }, + }) + ) } if (dev && !isServer) { /** WDYR */ diff --git a/apps/app/package.json b/apps/app/package.json index 661c4955d2..3578caf59b 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -119,7 +119,6 @@ "@types/node": "20.12.7", "@types/react": "18.2.79", "@types/react-dom": "18.2.25", - "@types/umami": "0.1.5", "@typescript-eslint/eslint-plugin": "7.7.1", "@typescript-eslint/parser": "7.7.1", "@weareinreach/config": "workspace:*", @@ -132,7 +131,6 @@ "i18next-hmr": "3.1.2", "listr2": "8.2.1", "prettier": "3.2.5", - "trpc-client-devtools-link": "0.2.1-next", "trpc-panel": "1.3.4", "trpc-playground": "1.0.4", "type-fest": "4.16.0", diff --git a/apps/app/src/utils/api.ts b/apps/app/src/utils/api.ts index daaa12d318..d0b6208b3c 100644 --- a/apps/app/src/utils/api.ts +++ b/apps/app/src/utils/api.ts @@ -4,7 +4,6 @@ import { } from '@trpc/client' import { createTRPCNext } from '@trpc/next' import { type inferRouterInputs, type inferRouterOutputs } from '@trpc/server' -import { devtoolsLink } from 'trpc-client-devtools-link' import { type AppRouter } from '@weareinreach/api' import { getEnv } from '@weareinreach/env' @@ -34,9 +33,6 @@ export const api = createTRPCNext({ links: [ ...(isDev ? [ - devtoolsLink({ - enabled: isDev, - }), loggerLink({ enabled: () => isDev, }), diff --git a/knip.config.ts b/knip.config.ts index 84ee542e4e..abaa6b8903 100644 --- a/knip.config.ts +++ b/knip.config.ts @@ -1,4 +1,6 @@ import { type KnipConfig } from 'knip' -const config: KnipConfig = {} +const config: KnipConfig = { + ignore: ['./lambdas/*/dist/*'], +} export default config diff --git a/package.json b/package.json index 9980b50892..4000a0e0ca 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ } }, "overrides": { + "@tanstack/react-table@8.10.6": "@tanstack/react-table@8.16.0", "better-sqlite3@<9": "^9.0.0", "sourcemap-codec": "npm:@jridgewell/sourcemap-codec" }, diff --git a/packages/api/package.json b/packages/api/package.json index 3561da295b..3ef4e693dc 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -68,7 +68,6 @@ "just-pascal-case": "3.2.0", "next": "14.2.2", "prettier": "3.2.5", - "trpc-client-devtools-link": "0.2.1-next", "trpc-panel": "1.3.4", "type-fest": "4.16.0", "typescript": "5.4.5" diff --git a/packages/api/router/attribute/query.getFilterOptions.handler.ts b/packages/api/router/attribute/query.getFilterOptions.handler.ts index fe5775223c..e629f9a27c 100644 --- a/packages/api/router/attribute/query.getFilterOptions.handler.ts +++ b/packages/api/router/attribute/query.getFilterOptions.handler.ts @@ -1,6 +1,6 @@ import { prisma } from '@weareinreach/db' -export const getFilterOptions = async () => { +const getFilterOptions = async () => { const result = await prisma.attribute.findMany({ where: { AND: { diff --git a/packages/api/router/attribute/query.getOne.handler.ts b/packages/api/router/attribute/query.getOne.handler.ts index b82f3e6bb1..80d32e256d 100644 --- a/packages/api/router/attribute/query.getOne.handler.ts +++ b/packages/api/router/attribute/query.getOne.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetOneSchema } from './query.getOne.schema' -export const getOne = async ({ input }: TRPCHandlerParams) => { +const getOne = async ({ input }: TRPCHandlerParams) => { const result = await prisma.attribute.findUniqueOrThrow({ where: input, select: { diff --git a/packages/api/router/attribute/query.map.handler.ts b/packages/api/router/attribute/query.map.handler.ts index 55735b4195..987eebbb79 100644 --- a/packages/api/router/attribute/query.map.handler.ts +++ b/packages/api/router/attribute/query.map.handler.ts @@ -4,7 +4,7 @@ import { prisma } from '@weareinreach/db' import { handleError } from '~api/lib/errorHandler' import { type TRPCHandlerParams } from '~api/types/handler' -export const map = async ({ ctx: _ }: TRPCHandlerParams) => { +const map = async ({ ctx: _ }: TRPCHandlerParams) => { try { const result = await prisma.attribute.findMany({ where: { diff --git a/packages/api/router/component/mutation.AttributeEditWrapper.handler.ts b/packages/api/router/component/mutation.AttributeEditWrapper.handler.ts index b342f0a510..67a9d30b68 100644 --- a/packages/api/router/component/mutation.AttributeEditWrapper.handler.ts +++ b/packages/api/router/component/mutation.AttributeEditWrapper.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAttributeEditWrapperSchema } from './mutation.AttributeEditWrapper.schema' -export const AttributeEditWrapper = async ({ +const AttributeEditWrapper = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/component/mutation.EditModeBarDelete.handler.ts b/packages/api/router/component/mutation.EditModeBarDelete.handler.ts index 9ac8363029..14ec1a27d3 100644 --- a/packages/api/router/component/mutation.EditModeBarDelete.handler.ts +++ b/packages/api/router/component/mutation.EditModeBarDelete.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TEditModeBarDeleteSchema } from './mutation.EditModeBarDelete.schema' -export const EditModeBarDelete = async ({ +const EditModeBarDelete = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/component/mutation.EditModeBarPublish.handler.ts b/packages/api/router/component/mutation.EditModeBarPublish.handler.ts index 6be2adce10..8f7cfd6639 100644 --- a/packages/api/router/component/mutation.EditModeBarPublish.handler.ts +++ b/packages/api/router/component/mutation.EditModeBarPublish.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TEditModeBarPublishSchema } from './mutation.EditModeBarPublish.schema' -export const EditModeBarPublish = async ({ +const EditModeBarPublish = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/component/mutation.EditModeBarReverify.handler.ts b/packages/api/router/component/mutation.EditModeBarReverify.handler.ts index f5cbe2014e..2a02e78edf 100644 --- a/packages/api/router/component/mutation.EditModeBarReverify.handler.ts +++ b/packages/api/router/component/mutation.EditModeBarReverify.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TEditModeBarReverifySchema } from './mutation.EditModeBarReverify.schema' -export const EditModeBarReverify = async ({ +const EditModeBarReverify = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/component/query.EditModeBar.handler.ts b/packages/api/router/component/query.EditModeBar.handler.ts index 26ea2d69c8..3496418d36 100644 --- a/packages/api/router/component/query.EditModeBar.handler.ts +++ b/packages/api/router/component/query.EditModeBar.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TEditModeBarSchema } from './query.EditModeBar.schema' -export const EditModeBar = async ({ input }: TRPCHandlerParams) => { +const EditModeBar = async ({ input }: TRPCHandlerParams) => { try { const { orgLocationId, orgServiceId, slug } = input diff --git a/packages/api/router/component/query.ServiceSelect.handler.ts b/packages/api/router/component/query.ServiceSelect.handler.ts index 3f860c0c3c..9970ae0dbe 100644 --- a/packages/api/router/component/query.ServiceSelect.handler.ts +++ b/packages/api/router/component/query.ServiceSelect.handler.ts @@ -2,7 +2,7 @@ import { prisma } from '@weareinreach/db' import { handleError } from '~api/lib/errorHandler' import { type TRPCHandlerParams } from '~api/types/handler' -export const ServiceSelect = async ({ ctx: _ctx }: TRPCHandlerParams) => { +const ServiceSelect = async ({ ctx: _ctx }: TRPCHandlerParams) => { try { const result = await prisma.serviceCategory.findMany({ where: { diff --git a/packages/api/router/component/query.serviceModal.handler.ts b/packages/api/router/component/query.serviceModal.handler.ts index 4fa96188d3..4a2f07599c 100644 --- a/packages/api/router/component/query.serviceModal.handler.ts +++ b/packages/api/router/component/query.serviceModal.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TServiceModalSchema } from './query.serviceModal.schema' -export const serviceModal = async ({ ctx, input }: TRPCHandlerParams) => { +const serviceModal = async ({ ctx, input }: TRPCHandlerParams) => { try { return null } catch (error) { diff --git a/packages/api/router/fieldOpt/query.attributeCategories.handler.ts b/packages/api/router/fieldOpt/query.attributeCategories.handler.ts index a368b90c21..5a4d3b5d66 100644 --- a/packages/api/router/fieldOpt/query.attributeCategories.handler.ts +++ b/packages/api/router/fieldOpt/query.attributeCategories.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAttributeCategoriesSchema } from './query.attributeCategories.schema' -export const attributeCategories = async ({ input }: TRPCHandlerParams) => { +const attributeCategories = async ({ input }: TRPCHandlerParams) => { const results = await prisma.attributeCategory.findMany({ where: { active: true, ...(input?.length ? { tag: { in: input } } : {}) }, select: { diff --git a/packages/api/router/fieldOpt/query.attributesByCategory.handler.ts b/packages/api/router/fieldOpt/query.attributesByCategory.handler.ts index 771c577cff..9595e3e3f7 100644 --- a/packages/api/router/fieldOpt/query.attributesByCategory.handler.ts +++ b/packages/api/router/fieldOpt/query.attributesByCategory.handler.ts @@ -14,7 +14,7 @@ const validateJsonSchema = (schema: unknown): schema is JSONSchemaType return false } -export const attributesByCategory = async ({ input }: TRPCHandlerParams) => { +const attributesByCategory = async ({ input }: TRPCHandlerParams) => { console.log(input) const result = await prisma.attributesByCategory.findMany({ where: { diff --git a/packages/api/router/fieldOpt/query.ccaMap.handler.ts b/packages/api/router/fieldOpt/query.ccaMap.handler.ts index 0dd086db74..52eb4c458e 100644 --- a/packages/api/router/fieldOpt/query.ccaMap.handler.ts +++ b/packages/api/router/fieldOpt/query.ccaMap.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCcaMapSchema } from './query.ccaMap.schema' -export const ccaMap = async ({ input }: TRPCHandlerParams) => { +const ccaMap = async ({ input }: TRPCHandlerParams) => { try { const data = await prisma.country.findMany({ where: input.activeForOrgs diff --git a/packages/api/router/fieldOpt/query.countries.handler.ts b/packages/api/router/fieldOpt/query.countries.handler.ts index d4a87304da..d332ae8ab5 100644 --- a/packages/api/router/fieldOpt/query.countries.handler.ts +++ b/packages/api/router/fieldOpt/query.countries.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCountriesSchema } from './query.countries.schema' -export const countries = async ({ input }: TRPCHandlerParams) => { +const countries = async ({ input }: TRPCHandlerParams) => { const { where } = input ?? {} const result = await prisma.country.findMany({ where, diff --git a/packages/api/router/fieldOpt/query.countryGovDistMap.handler.ts b/packages/api/router/fieldOpt/query.countryGovDistMap.handler.ts index 6293163f3e..3aeab3e320 100644 --- a/packages/api/router/fieldOpt/query.countryGovDistMap.handler.ts +++ b/packages/api/router/fieldOpt/query.countryGovDistMap.handler.ts @@ -1,6 +1,6 @@ import { prisma } from '@weareinreach/db' -export const countryGovDistMap = async () => { +const countryGovDistMap = async () => { const fields = { id: true, tsKey: true, tsNs: true } const countries = await prisma.country.findMany({ diff --git a/packages/api/router/fieldOpt/query.getSubDistricts.handler.ts b/packages/api/router/fieldOpt/query.getSubDistricts.handler.ts index 7213bde9b5..653c6a8ecc 100644 --- a/packages/api/router/fieldOpt/query.getSubDistricts.handler.ts +++ b/packages/api/router/fieldOpt/query.getSubDistricts.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetSubDistrictsSchema } from './query.getSubDistricts.schema' -export const getSubDistricts = async ({ input }: TRPCHandlerParams) => { +const getSubDistricts = async ({ input }: TRPCHandlerParams) => { try { const results = await prisma.govDist.findMany({ where: { diff --git a/packages/api/router/fieldOpt/query.govDists.handler.ts b/packages/api/router/fieldOpt/query.govDists.handler.ts index 8ea82d60ad..cef50a8ca6 100644 --- a/packages/api/router/fieldOpt/query.govDists.handler.ts +++ b/packages/api/router/fieldOpt/query.govDists.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGovDistsSchema } from './query.govDists.schema' -export const govDists = async ({ input }: TRPCHandlerParams) => { +const govDists = async ({ input }: TRPCHandlerParams) => { try { const results = await prisma.govDist.findMany({ where: input, diff --git a/packages/api/router/fieldOpt/query.govDistsByCountry.handler.ts b/packages/api/router/fieldOpt/query.govDistsByCountry.handler.ts index c4e2eaa70d..c609b680b6 100644 --- a/packages/api/router/fieldOpt/query.govDistsByCountry.handler.ts +++ b/packages/api/router/fieldOpt/query.govDistsByCountry.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGovDistsByCountrySchema } from './query.govDistsByCountry.schema' -export const govDistsByCountry = async ({ input }: TRPCHandlerParams) => { +const govDistsByCountry = async ({ input }: TRPCHandlerParams) => { const data = await prisma.country.findMany({ where: { cca2: input?.cca2, diff --git a/packages/api/router/fieldOpt/query.govDistsByCountryNoSub.handler.ts b/packages/api/router/fieldOpt/query.govDistsByCountryNoSub.handler.ts index b5cc81e737..8c54aaee90 100644 --- a/packages/api/router/fieldOpt/query.govDistsByCountryNoSub.handler.ts +++ b/packages/api/router/fieldOpt/query.govDistsByCountryNoSub.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGovDistsByCountryNoSubSchema } from './query.govDistsByCountryNoSub.schema' -export const govDistsByCountryNoSub = async ({ input }: TRPCHandlerParams) => { +const govDistsByCountryNoSub = async ({ input }: TRPCHandlerParams) => { const data = await prisma.country.findMany({ where: { cca2: input?.cca2, diff --git a/packages/api/router/fieldOpt/query.languages.handler.ts b/packages/api/router/fieldOpt/query.languages.handler.ts index 5ec0b6861a..b33635734e 100644 --- a/packages/api/router/fieldOpt/query.languages.handler.ts +++ b/packages/api/router/fieldOpt/query.languages.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TLanguagesSchema } from './query.languages.schema' -export const languages = async ({ input }: TRPCHandlerParams) => { +const languages = async ({ input }: TRPCHandlerParams) => { const results = await prisma.language.findMany({ where: input, select: { diff --git a/packages/api/router/fieldOpt/query.orgBadges.handler.ts b/packages/api/router/fieldOpt/query.orgBadges.handler.ts index a1f66e4a94..e1ecf16377 100644 --- a/packages/api/router/fieldOpt/query.orgBadges.handler.ts +++ b/packages/api/router/fieldOpt/query.orgBadges.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TOrgBadgesSchema } from './query.orgBadges.schema' -export const orgBadges = async ({ input }: TRPCHandlerParams) => { +const orgBadges = async ({ input }: TRPCHandlerParams) => { try { const badges = await prisma.attribute.findMany({ where: { diff --git a/packages/api/router/fieldOpt/query.phoneTypes.handler.ts b/packages/api/router/fieldOpt/query.phoneTypes.handler.ts index 574301d342..e9d1e34e78 100644 --- a/packages/api/router/fieldOpt/query.phoneTypes.handler.ts +++ b/packages/api/router/fieldOpt/query.phoneTypes.handler.ts @@ -1,6 +1,6 @@ import { prisma } from '@weareinreach/db' -export const phoneTypes = async () => { +const phoneTypes = async () => { const result = await prisma.phoneType.findMany({ where: { active: true }, select: { diff --git a/packages/api/router/fieldOpt/query.userTitle.handler.ts b/packages/api/router/fieldOpt/query.userTitle.handler.ts index a3749b7a8a..516c76bf7b 100644 --- a/packages/api/router/fieldOpt/query.userTitle.handler.ts +++ b/packages/api/router/fieldOpt/query.userTitle.handler.ts @@ -1,6 +1,6 @@ import { prisma } from '@weareinreach/db' -export const userTitle = async () => { +const userTitle = async () => { const results = await prisma.userTitle.findMany({ where: { searchable: true }, select: { id: true, title: true }, diff --git a/packages/api/router/geo/query.autocomplete.handler.ts b/packages/api/router/geo/query.autocomplete.handler.ts index 465c634312..fef5c963f6 100644 --- a/packages/api/router/geo/query.autocomplete.handler.ts +++ b/packages/api/router/geo/query.autocomplete.handler.ts @@ -24,7 +24,7 @@ const getTypes = (input: TAutocompleteSchema): PlaceAutocompleteType => { ] as unknown as PlaceAutocompleteType } -export const autocomplete = async ({ input }: TRPCHandlerParams) => { +const autocomplete = async ({ input }: TRPCHandlerParams) => { const types = getTypes(input) const { data } = await googleMapsApi.placeAutocomplete({ diff --git a/packages/api/router/geo/query.geoByPlaceId.handler.ts b/packages/api/router/geo/query.geoByPlaceId.handler.ts index ee2a055db4..2c3b94ab15 100644 --- a/packages/api/router/geo/query.geoByPlaceId.handler.ts +++ b/packages/api/router/geo/query.geoByPlaceId.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGeoByPlaceIdSchema } from './query.geoByPlaceId.schema' -export const geoByPlaceId = async ({ input }: TRPCHandlerParams) => { +const geoByPlaceId = async ({ input }: TRPCHandlerParams) => { const { data } = await googleMapsApi.geocode({ params: { key: process.env.GOOGLE_PLACES_API_KEY as string, diff --git a/packages/api/router/internalNote/mutation.create.handler.ts b/packages/api/router/internalNote/mutation.create.handler.ts index 6432cf7411..76507ac279 100644 --- a/packages/api/router/internalNote/mutation.create.handler.ts +++ b/packages/api/router/internalNote/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { id } = await prisma.internalNote.create(input) diff --git a/packages/api/router/internalNote/query.byId.handler.ts b/packages/api/router/internalNote/query.byId.handler.ts index 35376182b8..7635593936 100644 --- a/packages/api/router/internalNote/query.byId.handler.ts +++ b/packages/api/router/internalNote/query.byId.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TByIdSchema } from './query.byId.schema' -export const byId = async ({ input }: TRPCHandlerParams) => { +const byId = async ({ input }: TRPCHandlerParams) => { const result = await prisma.internalNote.findFirstOrThrow({ where: { id: input } }) return result } diff --git a/packages/api/router/internalNote/query.getAllForRecord.handler.ts b/packages/api/router/internalNote/query.getAllForRecord.handler.ts index 6d15094eef..645669517d 100644 --- a/packages/api/router/internalNote/query.getAllForRecord.handler.ts +++ b/packages/api/router/internalNote/query.getAllForRecord.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetAllForRecordSchema } from './query.getAllForRecord.schema' -export const getAllForRecord = async ({ input }: TRPCHandlerParams) => { +const getAllForRecord = async ({ input }: TRPCHandlerParams) => { const results = prisma.internalNote.findMany({ where: input }) return results } diff --git a/packages/api/router/location/mutation.create.handler.ts b/packages/api/router/location/mutation.create.handler.ts index a9c56491de..bad17890ce 100644 --- a/packages/api/router/location/mutation.create.handler.ts +++ b/packages/api/router/location/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const result = await prisma.orgLocation.create(input) diff --git a/packages/api/router/location/mutation.update.handler.ts b/packages/api/router/location/mutation.update.handler.ts index 3ac3305144..bd49252037 100644 --- a/packages/api/router/location/mutation.update.handler.ts +++ b/packages/api/router/location/mutation.update.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ ctx, input }: TRPCHandlerParams) => { +const update = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { where, data } = input diff --git a/packages/api/router/location/query.forGoogleMaps.handler.ts b/packages/api/router/location/query.forGoogleMaps.handler.ts index a08b0c41bc..7ff1993303 100644 --- a/packages/api/router/location/query.forGoogleMaps.handler.ts +++ b/packages/api/router/location/query.forGoogleMaps.handler.ts @@ -21,7 +21,7 @@ const getCenter = (coords: { latitude: number; longitude: number }[]): google.ma return { lat: center.latitude, lng: center.longitude } } -export const forGoogleMaps = async ({ input }: TRPCHandlerParams) => { +const forGoogleMaps = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgLocation.findMany({ where: { ...globalWhere.isPublic(), diff --git a/packages/api/router/location/query.forLocationCard.handler.ts b/packages/api/router/location/query.forLocationCard.handler.ts index f03303e40b..69673c490e 100644 --- a/packages/api/router/location/query.forLocationCard.handler.ts +++ b/packages/api/router/location/query.forLocationCard.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForLocationCardSchema } from './query.forLocationCard.schema' -export const forLocationCard = async ({ input }: TRPCHandlerParams) => { +const forLocationCard = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgLocation.findUniqueOrThrow({ where: { id: input, diff --git a/packages/api/router/location/query.forLocationPage.handler.ts b/packages/api/router/location/query.forLocationPage.handler.ts index 191d18998c..dfcc8499b4 100644 --- a/packages/api/router/location/query.forLocationPage.handler.ts +++ b/packages/api/router/location/query.forLocationPage.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForLocationPageSchema } from './query.forLocationPage.schema' -export const forLocationPage = async ({ input }: TRPCHandlerParams) => { +const forLocationPage = async ({ input }: TRPCHandlerParams) => { const location = await prisma.orgLocation.findUniqueOrThrow({ where: { id: input.id, diff --git a/packages/api/router/location/query.forLocationPageEdits.handler.ts b/packages/api/router/location/query.forLocationPageEdits.handler.ts index 72b4ab782c..eb225b0ff6 100644 --- a/packages/api/router/location/query.forLocationPageEdits.handler.ts +++ b/packages/api/router/location/query.forLocationPageEdits.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForLocationPageEditsSchema } from './query.forLocationPageEdits.schema' -export const forLocationPageEdits = async ({ input }: TRPCHandlerParams) => { +const forLocationPageEdits = async ({ input }: TRPCHandlerParams) => { try { const location = await prisma.orgLocation.findUniqueOrThrow({ where: { diff --git a/packages/api/router/location/query.forVisitCard.handler.ts b/packages/api/router/location/query.forVisitCard.handler.ts index 5e4da35f08..49f9b06809 100644 --- a/packages/api/router/location/query.forVisitCard.handler.ts +++ b/packages/api/router/location/query.forVisitCard.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForVisitCardSchema } from './query.forVisitCard.schema' -export const forVisitCard = async ({ input }: TRPCHandlerParams) => { +const forVisitCard = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgLocation.findUnique({ where: { diff --git a/packages/api/router/location/query.forVisitCardEdits.handler.ts b/packages/api/router/location/query.forVisitCardEdits.handler.ts index c1f6b62c46..80d3f8b5b4 100644 --- a/packages/api/router/location/query.forVisitCardEdits.handler.ts +++ b/packages/api/router/location/query.forVisitCardEdits.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForVisitCardEditsSchema } from './query.forVisitCardEdits.schema' -export const forVisitCardEdits = async ({ input }: TRPCHandlerParams) => { +const forVisitCardEdits = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgLocation.findUnique({ where: { diff --git a/packages/api/router/location/query.getAddress.handler.ts b/packages/api/router/location/query.getAddress.handler.ts index 24f96152a6..07c8949da5 100644 --- a/packages/api/router/location/query.getAddress.handler.ts +++ b/packages/api/router/location/query.getAddress.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetAddressSchema } from './query.getAddress.schema' -export const getAddress = async ({ input }: TRPCHandlerParams) => { +const getAddress = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgLocation.findUniqueOrThrow({ where: { id: input }, select: { diff --git a/packages/api/router/location/query.getAlerts.handler.ts b/packages/api/router/location/query.getAlerts.handler.ts index a7e4fe5c9e..ed7952ed85 100644 --- a/packages/api/router/location/query.getAlerts.handler.ts +++ b/packages/api/router/location/query.getAlerts.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetAlertsSchema } from './query.getAlerts.schema' -export const getAlerts = async ({ input }: TRPCHandlerParams) => { +const getAlerts = async ({ input }: TRPCHandlerParams) => { try { const dbResult = await prisma.attributeSupplement.findMany({ where: { diff --git a/packages/api/router/location/query.getById.handler.ts b/packages/api/router/location/query.getById.handler.ts index f2e03aafe7..56d0e71046 100644 --- a/packages/api/router/location/query.getById.handler.ts +++ b/packages/api/router/location/query.getById.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByIdSchema } from './query.getById.schema' import { select } from './selects' -export const getById = async ({ ctx, input }: TRPCHandlerParams) => { +const getById = async ({ ctx, input }: TRPCHandlerParams) => { const location = await prisma.orgLocation.findUniqueOrThrow({ where: { id: input.id, diff --git a/packages/api/router/location/query.getByOrgId.handler.ts b/packages/api/router/location/query.getByOrgId.handler.ts index 2ba7841fdf..7b826431f7 100644 --- a/packages/api/router/location/query.getByOrgId.handler.ts +++ b/packages/api/router/location/query.getByOrgId.handler.ts @@ -7,7 +7,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByOrgIdSchema } from './query.getByOrgId.schema' import { select } from './selects' -export const getByOrgId = async ({ ctx, input }: TRPCHandlerParams) => { +const getByOrgId = async ({ ctx, input }: TRPCHandlerParams) => { const locations = await prisma.orgLocation.findMany({ where: { organization: { diff --git a/packages/api/router/location/query.getNameById.handler.ts b/packages/api/router/location/query.getNameById.handler.ts index e1709f6ae0..0bd8d63d39 100644 --- a/packages/api/router/location/query.getNameById.handler.ts +++ b/packages/api/router/location/query.getNameById.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetNameByIdSchema } from './query.getNameById.schema' -export const getNameById = async ({ input }: TRPCHandlerParams) => { +const getNameById = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgLocation.findUniqueOrThrow({ where: { id: input }, select: { name: true }, diff --git a/packages/api/router/location/query.getNames.handler.ts b/packages/api/router/location/query.getNames.handler.ts index 25c65e88c4..9e542961f3 100644 --- a/packages/api/router/location/query.getNames.handler.ts +++ b/packages/api/router/location/query.getNames.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetNamesSchema } from './query.getNames.schema' -export const getNames = async ({ input }: TRPCHandlerParams) => { +const getNames = async ({ input }: TRPCHandlerParams) => { const results = await prisma.orgLocation.findMany({ where: { organization: { id: input.organizationId }, diff --git a/packages/api/router/misc/query.forEditNavbar.handler.ts b/packages/api/router/misc/query.forEditNavbar.handler.ts index 4ca8e3d6bf..c9b29564bb 100644 --- a/packages/api/router/misc/query.forEditNavbar.handler.ts +++ b/packages/api/router/misc/query.forEditNavbar.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForEditNavbarSchema } from './query.forEditNavbar.schema' -export const forEditNavbar = async ({ input }: TRPCHandlerParams) => { +const forEditNavbar = async ({ input }: TRPCHandlerParams) => { try { if (input.slug) { const slugResult = await prisma.organization.findUniqueOrThrow({ diff --git a/packages/api/router/misc/query.getCountryTranslation.handler.ts b/packages/api/router/misc/query.getCountryTranslation.handler.ts index e91250071a..f10bd42a54 100644 --- a/packages/api/router/misc/query.getCountryTranslation.handler.ts +++ b/packages/api/router/misc/query.getCountryTranslation.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetCountryTranslationSchema } from './query.getCountryTranslation.schema' -export const getCountryTranslation = async ({ input }: TRPCHandlerParams) => { +const getCountryTranslation = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.country.findUniqueOrThrow({ where: { cca2: input.cca2 }, diff --git a/packages/api/router/misc/query.hasContactInfo.handler.ts b/packages/api/router/misc/query.hasContactInfo.handler.ts index f1b16fba59..f244c6a9a2 100644 --- a/packages/api/router/misc/query.hasContactInfo.handler.ts +++ b/packages/api/router/misc/query.hasContactInfo.handler.ts @@ -103,7 +103,7 @@ const whereId = ( } } -export const hasContactInfo = async ({ input }: TRPCHandlerParams) => { +const hasContactInfo = async ({ input }: TRPCHandlerParams) => { try { const locCount = isIdFor('organization', input) ? await prisma.orgLocation.count({ where: { organization: { id: input } } }) diff --git a/packages/api/router/orgEmail/mutation.create.handler.ts b/packages/api/router/orgEmail/mutation.create.handler.ts index e5e1162481..3d00abb838 100644 --- a/packages/api/router/orgEmail/mutation.create.handler.ts +++ b/packages/api/router/orgEmail/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const newEmail = await prisma.orgEmail.create({ data: input, diff --git a/packages/api/router/orgEmail/mutation.locationLink.handler.ts b/packages/api/router/orgEmail/mutation.locationLink.handler.ts index 075c8b665e..d33f6faee4 100644 --- a/packages/api/router/orgEmail/mutation.locationLink.handler.ts +++ b/packages/api/router/orgEmail/mutation.locationLink.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TLocationLinkSchema } from './mutation.locationLink.schema' -export const locationLink = async ({ ctx, input }: TRPCHandlerParams) => { +const locationLink = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) const { action, orgEmailId, orgLocationId } = input diff --git a/packages/api/router/orgEmail/mutation.update.handler.ts b/packages/api/router/orgEmail/mutation.update.handler.ts index 065d252b89..c0c5405d06 100644 --- a/packages/api/router/orgEmail/mutation.update.handler.ts +++ b/packages/api/router/orgEmail/mutation.update.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ ctx, input }: TRPCHandlerParams) => { +const update = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { id, orgId, description, descriptionId, titleId, email, linkLocationId, ...record } = input diff --git a/packages/api/router/orgEmail/mutation.upsertMany.handler.ts b/packages/api/router/orgEmail/mutation.upsertMany.handler.ts index 8455e68fe9..e7fb59e200 100644 --- a/packages/api/router/orgEmail/mutation.upsertMany.handler.ts +++ b/packages/api/router/orgEmail/mutation.upsertMany.handler.ts @@ -11,7 +11,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpsertManySchema } from './mutation.upsertMany.schema' -export const upsertMany = async ({ ctx, input }: TRPCHandlerParams) => { +const upsertMany = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { orgId, data } = input diff --git a/packages/api/router/orgEmail/query.forContactInfo.handler.ts b/packages/api/router/orgEmail/query.forContactInfo.handler.ts index 1b17021d3f..4c0c5c4a45 100644 --- a/packages/api/router/orgEmail/query.forContactInfo.handler.ts +++ b/packages/api/router/orgEmail/query.forContactInfo.handler.ts @@ -22,7 +22,7 @@ const whereId = (input: TForContactInfoSchema): Prisma.OrgEmailWhereInput => { } } -export const forContactInfo = async ({ input }: TRPCHandlerParams) => { +const forContactInfo = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgEmail.findMany({ where: { ...isPublic, diff --git a/packages/api/router/orgEmail/query.forContactInfoEdit.handler.ts b/packages/api/router/orgEmail/query.forContactInfoEdit.handler.ts index f748a1f00e..3250de0cee 100644 --- a/packages/api/router/orgEmail/query.forContactInfoEdit.handler.ts +++ b/packages/api/router/orgEmail/query.forContactInfoEdit.handler.ts @@ -21,7 +21,7 @@ const whereId = (input: TForContactInfoEditSchema): Prisma.OrgEmailWhereInput => } } -export const forContactInfoEdit = async ({ input }: TRPCHandlerParams) => { +const forContactInfoEdit = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgEmail.findMany({ where: { diff --git a/packages/api/router/orgEmail/query.forEditDrawer.handler.ts b/packages/api/router/orgEmail/query.forEditDrawer.handler.ts index 97c00af4e1..2bae84a2fb 100644 --- a/packages/api/router/orgEmail/query.forEditDrawer.handler.ts +++ b/packages/api/router/orgEmail/query.forEditDrawer.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForEditDrawerSchema } from './query.forEditDrawer.schema' -export const forEditDrawer = async ({ input }: TRPCHandlerParams) => { +const forEditDrawer = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgEmail.findUnique({ where: input, diff --git a/packages/api/router/orgEmail/query.get.handler.ts b/packages/api/router/orgEmail/query.get.handler.ts index e755d79c49..340a36e98e 100644 --- a/packages/api/router/orgEmail/query.get.handler.ts +++ b/packages/api/router/orgEmail/query.get.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetSchema } from './query.get.schema' -export const get = async ({ input }: TRPCHandlerParams) => { +const get = async ({ input }: TRPCHandlerParams) => { const { id, orgLocationId, organizationId, serviceId } = input const result = await prisma.orgEmail.findMany({ diff --git a/packages/api/router/orgEmail/query.getLinkOptions.handler.ts b/packages/api/router/orgEmail/query.getLinkOptions.handler.ts index a2c9f1b156..865192f2d7 100644 --- a/packages/api/router/orgEmail/query.getLinkOptions.handler.ts +++ b/packages/api/router/orgEmail/query.getLinkOptions.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetLinkOptionsSchema } from './query.getLinkOptions.schema' -export const getLinkOptions = async ({ input }: TRPCHandlerParams) => { +const getLinkOptions = async ({ input }: TRPCHandlerParams) => { try { const { slug, locationId } = input const result = await prisma.orgEmail.findMany({ diff --git a/packages/api/router/orgHours/mutation.create.handler.ts b/packages/api/router/orgHours/mutation.create.handler.ts index 5169b20eae..a872563ac9 100644 --- a/packages/api/router/orgHours/mutation.create.handler.ts +++ b/packages/api/router/orgHours/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const newRecord = await prisma.orgHours.create({ data: input, diff --git a/packages/api/router/orgHours/mutation.createMany.handler.ts b/packages/api/router/orgHours/mutation.createMany.handler.ts index c03c421de9..9f1e801dd5 100644 --- a/packages/api/router/orgHours/mutation.createMany.handler.ts +++ b/packages/api/router/orgHours/mutation.createMany.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateManySchema } from './mutation.createMany.schema' -export const createMany = async ({ ctx, input }: TRPCHandlerParams) => { +const createMany = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const hours = await prisma.orgHours.createMany({ data: input, skipDuplicates: true }) diff --git a/packages/api/router/orgHours/mutation.processDrawer.handler.ts b/packages/api/router/orgHours/mutation.processDrawer.handler.ts index 40ee52cf95..26adf791d6 100644 --- a/packages/api/router/orgHours/mutation.processDrawer.handler.ts +++ b/packages/api/router/orgHours/mutation.processDrawer.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TProcessDrawerSchema } from './mutation.processDrawer.schema' -export const processDrawer = async ({ input, ctx }: TRPCHandlerParams) => { +const processDrawer = async ({ input, ctx }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) try { const results = { diff --git a/packages/api/router/orgHours/mutation.update.handler.ts b/packages/api/router/orgHours/mutation.update.handler.ts index 1153698793..d4713eddbe 100644 --- a/packages/api/router/orgHours/mutation.update.handler.ts +++ b/packages/api/router/orgHours/mutation.update.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ ctx, input }: TRPCHandlerParams) => { +const update = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const updated = await prisma.orgHours.update(input) return updated diff --git a/packages/api/router/orgHours/query.forHoursDisplay.handler.ts b/packages/api/router/orgHours/query.forHoursDisplay.handler.ts index 099c10a0a5..337308a18e 100644 --- a/packages/api/router/orgHours/query.forHoursDisplay.handler.ts +++ b/packages/api/router/orgHours/query.forHoursDisplay.handler.ts @@ -7,7 +7,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForHoursDisplaySchema } from './query.forHoursDisplay.schema' -export const forHoursDisplay = async ({ input }: TRPCHandlerParams) => { +const forHoursDisplay = async ({ input }: TRPCHandlerParams) => { const whereId = (): Prisma.OrgHoursWhereInput => { switch (true) { case isIdFor('organization', input): { diff --git a/packages/api/router/orgHours/query.forHoursDrawer.handler.ts b/packages/api/router/orgHours/query.forHoursDrawer.handler.ts index a11200a223..b837e2b555 100644 --- a/packages/api/router/orgHours/query.forHoursDrawer.handler.ts +++ b/packages/api/router/orgHours/query.forHoursDrawer.handler.ts @@ -21,7 +21,7 @@ const whereId = (input: TForHoursDrawerSchema): Prisma.OrgHoursWhereInput => { } } -export const forHoursDrawer = async ({ input }: TRPCHandlerParams) => { +const forHoursDrawer = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgHours.findMany({ where: { ...whereId(input), diff --git a/packages/api/router/orgHours/query.getTz.handler.ts b/packages/api/router/orgHours/query.getTz.handler.ts index 9407e31dad..46906177ef 100644 --- a/packages/api/router/orgHours/query.getTz.handler.ts +++ b/packages/api/router/orgHours/query.getTz.handler.ts @@ -22,7 +22,7 @@ const whereId = (input: TGetTzSchema): Prisma.OrgLocationWhereInput => { } } } -export const getTz = async ({ input }: TRPCHandlerParams) => { +const getTz = async ({ input }: TRPCHandlerParams) => { const where = whereId(input) const { latitude, longitude } = (await prisma.orgLocation.findFirst({ where, select: { latitude: true, longitude: true } })) ?? {} diff --git a/packages/api/router/orgPhone/mutation.create.handler.ts b/packages/api/router/orgPhone/mutation.create.handler.ts index 057b393238..e4ef57ca98 100644 --- a/packages/api/router/orgPhone/mutation.create.handler.ts +++ b/packages/api/router/orgPhone/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const newPhone = await prisma.orgPhone.create({ data: input, diff --git a/packages/api/router/orgPhone/mutation.locationLink.handler.ts b/packages/api/router/orgPhone/mutation.locationLink.handler.ts index 3292de13c4..dc8571f065 100644 --- a/packages/api/router/orgPhone/mutation.locationLink.handler.ts +++ b/packages/api/router/orgPhone/mutation.locationLink.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TLocationLinkSchema } from './mutation.locationLink.schema' -export const locationLink = async ({ ctx, input }: TRPCHandlerParams) => { +const locationLink = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) const { action, orgPhoneId, orgLocationId } = input diff --git a/packages/api/router/orgPhone/mutation.update.handler.ts b/packages/api/router/orgPhone/mutation.update.handler.ts index d5cf1c04f8..a437fad086 100644 --- a/packages/api/router/orgPhone/mutation.update.handler.ts +++ b/packages/api/router/orgPhone/mutation.update.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ ctx, input }: TRPCHandlerParams) => { +const update = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { id, orgId, description, countryId, phoneTypeId, ...rest } = input diff --git a/packages/api/router/orgPhone/mutation.upsertMany.handler.ts b/packages/api/router/orgPhone/mutation.upsertMany.handler.ts index f3580a26dc..76935cf70a 100644 --- a/packages/api/router/orgPhone/mutation.upsertMany.handler.ts +++ b/packages/api/router/orgPhone/mutation.upsertMany.handler.ts @@ -12,7 +12,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpsertManySchema } from './mutation.upsertMany.schema' -export const upsertMany = async ({ ctx, input }: TRPCHandlerParams) => { +const upsertMany = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { orgId, data } = input diff --git a/packages/api/router/orgPhone/query.forContactInfo.handler.ts b/packages/api/router/orgPhone/query.forContactInfo.handler.ts index 52ff89868a..29963ee644 100644 --- a/packages/api/router/orgPhone/query.forContactInfo.handler.ts +++ b/packages/api/router/orgPhone/query.forContactInfo.handler.ts @@ -22,7 +22,7 @@ const getWhereId = (input: TForContactInfoSchema): Prisma.OrgPhoneWhereInput => } } -export const forContactInfo = async ({ input }: TRPCHandlerParams) => { +const forContactInfo = async ({ input }: TRPCHandlerParams) => { const whereId = getWhereId(input) const result = await prisma.orgPhone.findMany({ diff --git a/packages/api/router/orgPhone/query.forContactInfoEdit.handler.ts b/packages/api/router/orgPhone/query.forContactInfoEdit.handler.ts index 07be445e19..3b40466feb 100644 --- a/packages/api/router/orgPhone/query.forContactInfoEdit.handler.ts +++ b/packages/api/router/orgPhone/query.forContactInfoEdit.handler.ts @@ -28,7 +28,7 @@ const getWhereId = (input: TForContactInfoEditSchema, isSingleLoc?: boolean): Pr } } -export const forContactInfoEdit = async ({ input }: TRPCHandlerParams) => { +const forContactInfoEdit = async ({ input }: TRPCHandlerParams) => { const locCount = isIdFor('organization', input.parentId) ? await prisma.orgLocation.count({ where: { organization: { id: input.parentId } }, diff --git a/packages/api/router/orgPhone/query.forEditDrawer.handler.ts b/packages/api/router/orgPhone/query.forEditDrawer.handler.ts index 42799e9dcc..37e3dfe3a5 100644 --- a/packages/api/router/orgPhone/query.forEditDrawer.handler.ts +++ b/packages/api/router/orgPhone/query.forEditDrawer.handler.ts @@ -20,7 +20,7 @@ const getOrgId = async (phoneId: string) => { return org.id } -export const forEditDrawer = async ({ input }: TRPCHandlerParams) => { +const forEditDrawer = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgPhone.findUnique({ where: input, diff --git a/packages/api/router/orgPhone/query.get.handler.ts b/packages/api/router/orgPhone/query.get.handler.ts index cbca96d100..8c59efddcf 100644 --- a/packages/api/router/orgPhone/query.get.handler.ts +++ b/packages/api/router/orgPhone/query.get.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetSchema } from './query.get.schema' -export const get = async ({ input }: TRPCHandlerParams) => { +const get = async ({ input }: TRPCHandlerParams) => { const { id, orgLocationId, organizationId, serviceId } = input const result = await prisma.orgPhone.findMany({ diff --git a/packages/api/router/orgPhone/query.getLinkOptions.handler.ts b/packages/api/router/orgPhone/query.getLinkOptions.handler.ts index bd002164c3..8d22a625fc 100644 --- a/packages/api/router/orgPhone/query.getLinkOptions.handler.ts +++ b/packages/api/router/orgPhone/query.getLinkOptions.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetLinkOptionsSchema } from './query.getLinkOptions.schema' -export const getLinkOptions = async ({ input }: TRPCHandlerParams) => { +const getLinkOptions = async ({ input }: TRPCHandlerParams) => { try { const { slug, locationId } = input const result = await prisma.orgPhone.findMany({ diff --git a/packages/api/router/orgPhoto/mutation.create.handler.ts b/packages/api/router/orgPhoto/mutation.create.handler.ts index eafdcbddbb..4f24da21a1 100644 --- a/packages/api/router/orgPhoto/mutation.create.handler.ts +++ b/packages/api/router/orgPhoto/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const newRecord = await prisma.orgPhoto.create({ data: input, diff --git a/packages/api/router/orgPhoto/mutation.update.handler.ts b/packages/api/router/orgPhoto/mutation.update.handler.ts index 78e2d656fe..68331b6d9e 100644 --- a/packages/api/router/orgPhoto/mutation.update.handler.ts +++ b/packages/api/router/orgPhoto/mutation.update.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ ctx, input }: TRPCHandlerParams) => { +const update = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const updated = await prisma.orgPhoto.update(input) return updated diff --git a/packages/api/router/orgPhoto/query.getByParent.handler.ts b/packages/api/router/orgPhoto/query.getByParent.handler.ts index 84548b481a..4122f92127 100644 --- a/packages/api/router/orgPhoto/query.getByParent.handler.ts +++ b/packages/api/router/orgPhoto/query.getByParent.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByParentSchema } from './query.getByParent.schema' -export const getByParent = async ({ input }: TRPCHandlerParams) => { +const getByParent = async ({ input }: TRPCHandlerParams) => { const whereId = (): Prisma.OrgPhotoWhereInput => { switch (true) { case isIdFor('organization', input): { diff --git a/packages/api/router/orgSocialMedia/mutation.create.handler.ts b/packages/api/router/orgSocialMedia/mutation.create.handler.ts index 58a1e3e2b9..7dbbaf89af 100644 --- a/packages/api/router/orgSocialMedia/mutation.create.handler.ts +++ b/packages/api/router/orgSocialMedia/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const newSocial = await prisma.orgSocialMedia.create({ data: input, diff --git a/packages/api/router/orgSocialMedia/mutation.locationLink.handler.ts b/packages/api/router/orgSocialMedia/mutation.locationLink.handler.ts index 4c62c6e790..bfc0c805cb 100644 --- a/packages/api/router/orgSocialMedia/mutation.locationLink.handler.ts +++ b/packages/api/router/orgSocialMedia/mutation.locationLink.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TLocationLinkSchema } from './mutation.locationLink.schema' -export const locationLink = async ({ ctx, input }: TRPCHandlerParams) => { +const locationLink = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) const { action, orgSocialMediaId, orgLocationId } = input diff --git a/packages/api/router/orgSocialMedia/mutation.update.handler.ts b/packages/api/router/orgSocialMedia/mutation.update.handler.ts index d632136110..4ffcfaa8ec 100644 --- a/packages/api/router/orgSocialMedia/mutation.update.handler.ts +++ b/packages/api/router/orgSocialMedia/mutation.update.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ ctx, input }: TRPCHandlerParams) => { +const update = async ({ ctx, input }: TRPCHandlerParams) => { const { where, data } = input const prisma = getAuditedClient(ctx.actorId) diff --git a/packages/api/router/orgSocialMedia/mutation.upsert.handler.ts b/packages/api/router/orgSocialMedia/mutation.upsert.handler.ts index d33d3b80a3..1ca4f3105b 100644 --- a/packages/api/router/orgSocialMedia/mutation.upsert.handler.ts +++ b/packages/api/router/orgSocialMedia/mutation.upsert.handler.ts @@ -11,7 +11,7 @@ const socialLinkValidator = new SocialLinks() type CreateData = Pick -export const upsert = async ({ ctx, input }: TRPCHandlerParams) => { +const upsert = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) const { diff --git a/packages/api/router/orgSocialMedia/query.forContactInfo.handler.ts b/packages/api/router/orgSocialMedia/query.forContactInfo.handler.ts index 6b095b492c..353476ece4 100644 --- a/packages/api/router/orgSocialMedia/query.forContactInfo.handler.ts +++ b/packages/api/router/orgSocialMedia/query.forContactInfo.handler.ts @@ -19,7 +19,7 @@ const whereId = (input: TForContactInfoSchema): Prisma.OrgSocialMediaWhereInput } } -export const forContactInfo = async ({ input }: TRPCHandlerParams) => { +const forContactInfo = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgSocialMedia.findMany({ where: { ...isPublic, diff --git a/packages/api/router/orgSocialMedia/query.forContactInfoEdits.handler.ts b/packages/api/router/orgSocialMedia/query.forContactInfoEdits.handler.ts index f541f6611d..ce4a7c614f 100644 --- a/packages/api/router/orgSocialMedia/query.forContactInfoEdits.handler.ts +++ b/packages/api/router/orgSocialMedia/query.forContactInfoEdits.handler.ts @@ -17,7 +17,7 @@ const whereId = (input: TForContactInfoEditsSchema): Prisma.OrgSocialMediaWhereI } } } -export const forContactInfoEdits = async ({ input }: TRPCHandlerParams) => { +const forContactInfoEdits = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgSocialMedia.findMany({ where: whereId(input), diff --git a/packages/api/router/orgSocialMedia/query.forEditDrawer.handler.ts b/packages/api/router/orgSocialMedia/query.forEditDrawer.handler.ts index fcf2aa85ad..72ca388812 100644 --- a/packages/api/router/orgSocialMedia/query.forEditDrawer.handler.ts +++ b/packages/api/router/orgSocialMedia/query.forEditDrawer.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForEditDrawerSchema } from './query.forEditDrawer.schema' -export const forEditDrawer = async ({ input }: TRPCHandlerParams) => { +const forEditDrawer = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgSocialMedia.findUnique({ where: input, diff --git a/packages/api/router/orgSocialMedia/query.getLinkOptions.handler.ts b/packages/api/router/orgSocialMedia/query.getLinkOptions.handler.ts index 9bd1c2c449..6671d06a03 100644 --- a/packages/api/router/orgSocialMedia/query.getLinkOptions.handler.ts +++ b/packages/api/router/orgSocialMedia/query.getLinkOptions.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetLinkOptionsSchema } from './query.getLinkOptions.schema' -export const getLinkOptions = async ({ input }: TRPCHandlerParams) => { +const getLinkOptions = async ({ input }: TRPCHandlerParams) => { try { const { slug, locationId } = input const result = await prisma.orgSocialMedia.findMany({ diff --git a/packages/api/router/orgSocialMedia/query.getServiceTypes.handler.ts b/packages/api/router/orgSocialMedia/query.getServiceTypes.handler.ts index a31021e07d..47408c7ac9 100644 --- a/packages/api/router/orgSocialMedia/query.getServiceTypes.handler.ts +++ b/packages/api/router/orgSocialMedia/query.getServiceTypes.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetServiceTypesSchema } from './query.getServiceTypes.schema' -export const getServiceTypes = async ({ input }: TRPCHandlerParams) => { +const getServiceTypes = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.socialMediaService.findMany({ where: input, diff --git a/packages/api/router/orgWebsite/mutation.create.handler.ts b/packages/api/router/orgWebsite/mutation.create.handler.ts index 59a1ce6644..890637235c 100644 --- a/packages/api/router/orgWebsite/mutation.create.handler.ts +++ b/packages/api/router/orgWebsite/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const newRecord = await prisma.orgWebsite.create({ data: input, diff --git a/packages/api/router/orgWebsite/mutation.locationLink.handler.ts b/packages/api/router/orgWebsite/mutation.locationLink.handler.ts index 999b24930a..a6c16760c1 100644 --- a/packages/api/router/orgWebsite/mutation.locationLink.handler.ts +++ b/packages/api/router/orgWebsite/mutation.locationLink.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TLocationLinkSchema } from './mutation.locationLink.schema' -export const locationLink = async ({ ctx, input }: TRPCHandlerParams) => { +const locationLink = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) const { action, orgWebsiteId, orgLocationId } = input diff --git a/packages/api/router/orgWebsite/mutation.update.handler.ts b/packages/api/router/orgWebsite/mutation.update.handler.ts index e8897362bd..61d2505b48 100644 --- a/packages/api/router/orgWebsite/mutation.update.handler.ts +++ b/packages/api/router/orgWebsite/mutation.update.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ ctx, input }: TRPCHandlerParams) => { +const update = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { where, diff --git a/packages/api/router/orgWebsite/mutation.upsert.handler.ts b/packages/api/router/orgWebsite/mutation.upsert.handler.ts index 9029eba6c5..e1be289d10 100644 --- a/packages/api/router/orgWebsite/mutation.upsert.handler.ts +++ b/packages/api/router/orgWebsite/mutation.upsert.handler.ts @@ -12,7 +12,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type Create, type TUpsertSchema } from './mutation.upsert.schema' type CreateData = Pick -export const upsert = async ({ ctx, input }: TRPCHandlerParams) => { +const upsert = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) const { description: desc, operation, id: passedId, orgLocationId, organizationId, ...data } = input diff --git a/packages/api/router/orgWebsite/query.forContactInfo.handler.ts b/packages/api/router/orgWebsite/query.forContactInfo.handler.ts index 04c56ab5e4..8609b7fdab 100644 --- a/packages/api/router/orgWebsite/query.forContactInfo.handler.ts +++ b/packages/api/router/orgWebsite/query.forContactInfo.handler.ts @@ -21,7 +21,7 @@ const whereId = (input: TForContactInfoSchema): Prisma.OrgWebsiteWhereInput => { } } -export const forContactInfo = async ({ input }: TRPCHandlerParams) => { +const forContactInfo = async ({ input }: TRPCHandlerParams) => { const where = { ...isPublic, ...whereId(input), diff --git a/packages/api/router/orgWebsite/query.forContactInfoEdit.handler.ts b/packages/api/router/orgWebsite/query.forContactInfoEdit.handler.ts index 4e0bcdc54e..f71d66be32 100644 --- a/packages/api/router/orgWebsite/query.forContactInfoEdit.handler.ts +++ b/packages/api/router/orgWebsite/query.forContactInfoEdit.handler.ts @@ -18,7 +18,7 @@ const whereId = (input: TForContactInfoEditSchema): Prisma.OrgWebsiteWhereInput } } } -export const forContactInfoEdit = async ({ input }: TRPCHandlerParams) => { +const forContactInfoEdit = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgWebsite.findMany({ where: { diff --git a/packages/api/router/orgWebsite/query.forEditDrawer.handler.ts b/packages/api/router/orgWebsite/query.forEditDrawer.handler.ts index 24d17bddec..332363ef55 100644 --- a/packages/api/router/orgWebsite/query.forEditDrawer.handler.ts +++ b/packages/api/router/orgWebsite/query.forEditDrawer.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForEditDrawerSchema } from './query.forEditDrawer.schema' -export const forEditDrawer = async ({ input }: TRPCHandlerParams) => { +const forEditDrawer = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgWebsite.findUnique({ where: input, include: { diff --git a/packages/api/router/orgWebsite/query.getLinkOptions.handler.ts b/packages/api/router/orgWebsite/query.getLinkOptions.handler.ts index 7ae01af108..164a248905 100644 --- a/packages/api/router/orgWebsite/query.getLinkOptions.handler.ts +++ b/packages/api/router/orgWebsite/query.getLinkOptions.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetLinkOptionsSchema } from './query.getLinkOptions.schema' -export const getLinkOptions = async ({ input }: TRPCHandlerParams) => { +const getLinkOptions = async ({ input }: TRPCHandlerParams) => { try { const { slug, locationId } = input const result = await prisma.orgWebsite.findMany({ diff --git a/packages/api/router/organization/mutation.attachAttribute.handler.ts b/packages/api/router/organization/mutation.attachAttribute.handler.ts index 9282eee957..8b5f65e13b 100644 --- a/packages/api/router/organization/mutation.attachAttribute.handler.ts +++ b/packages/api/router/organization/mutation.attachAttribute.handler.ts @@ -4,10 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAttachAttributeSchema } from './mutation.attachAttribute.schema' -export const attachAttribute = async ({ - ctx, - input, -}: TRPCHandlerParams) => { +const attachAttribute = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { locationId, organizationId, serviceId } = input diff --git a/packages/api/router/organization/mutation.createNewQuick.handler.ts b/packages/api/router/organization/mutation.createNewQuick.handler.ts index 31de528c09..625629576e 100644 --- a/packages/api/router/organization/mutation.createNewQuick.handler.ts +++ b/packages/api/router/organization/mutation.createNewQuick.handler.ts @@ -3,10 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateNewQuickSchema } from './mutation.createNewQuick.schema' -export const createNewQuick = async ({ - ctx, - input, -}: TRPCHandlerParams) => { +const createNewQuick = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const result = await prisma.organization.create(input) diff --git a/packages/api/router/organization/mutation.createNewSuggestion.handler.ts b/packages/api/router/organization/mutation.createNewSuggestion.handler.ts index a559fe4df8..9ddbc39a40 100644 --- a/packages/api/router/organization/mutation.createNewSuggestion.handler.ts +++ b/packages/api/router/organization/mutation.createNewSuggestion.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateNewSuggestionSchema } from './mutation.createNewSuggestion.schema' -export const createNewSuggestion = async ({ +const createNewSuggestion = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/organization/mutation.updateAttributesBasic.handler.ts b/packages/api/router/organization/mutation.updateAttributesBasic.handler.ts index b621667daf..6860bdb867 100644 --- a/packages/api/router/organization/mutation.updateAttributesBasic.handler.ts +++ b/packages/api/router/organization/mutation.updateAttributesBasic.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateAttributesBasicSchema } from './mutation.updateAttributesBasic.schema' -export const updateAttributesBasic = async ({ +const updateAttributesBasic = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/organization/mutation.updateBasic.handler.ts b/packages/api/router/organization/mutation.updateBasic.handler.ts index bd021eb212..734ce66e0b 100644 --- a/packages/api/router/organization/mutation.updateBasic.handler.ts +++ b/packages/api/router/organization/mutation.updateBasic.handler.ts @@ -14,7 +14,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateBasicSchema } from './mutation.updateBasic.schema' const logger = createLoggerInstance('api - organization.updateBasic') -export const updateBasic = async ({ ctx, input }: TRPCHandlerParams) => { +const updateBasic = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) const data: Prisma.OrganizationUpdateInput = {} diff --git a/packages/api/router/organization/query.checkForExisting.handler.ts b/packages/api/router/organization/query.checkForExisting.handler.ts index eea39f072b..f5f3a1a82f 100644 --- a/packages/api/router/organization/query.checkForExisting.handler.ts +++ b/packages/api/router/organization/query.checkForExisting.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCheckForExistingSchema } from './query.checkForExisting.schema' -export const checkForExisting = async ({ input }: TRPCHandlerParams) => { +const checkForExisting = async ({ input }: TRPCHandlerParams) => { const result = await prisma.organization.findFirst({ where: { name: { diff --git a/packages/api/router/organization/query.forBadgeEditModal.handler.ts b/packages/api/router/organization/query.forBadgeEditModal.handler.ts index 336974c8a7..6a95705734 100644 --- a/packages/api/router/organization/query.forBadgeEditModal.handler.ts +++ b/packages/api/router/organization/query.forBadgeEditModal.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForBadgeEditModalSchema } from './query.forBadgeEditModal.schema' -export const forBadgeEditModal = async ({ input }: TRPCHandlerParams) => { +const forBadgeEditModal = async ({ input }: TRPCHandlerParams) => { try { const data = await prisma.attributeSupplement.findMany({ where: { diff --git a/packages/api/router/organization/query.forLocationPage.handler.ts b/packages/api/router/organization/query.forLocationPage.handler.ts index c92a9ed07d..ea9a51d602 100644 --- a/packages/api/router/organization/query.forLocationPage.handler.ts +++ b/packages/api/router/organization/query.forLocationPage.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForLocationPageSchema } from './query.forLocationPage.schema' -export const forLocationPage = async ({ input }: TRPCHandlerParams) => { +const forLocationPage = async ({ input }: TRPCHandlerParams) => { const { slug } = input const org = await prisma.organization.findUniqueOrThrow({ where: { diff --git a/packages/api/router/organization/query.forOrgPage.handler.ts b/packages/api/router/organization/query.forOrgPage.handler.ts index 36b83fdabb..3f9b0c470f 100644 --- a/packages/api/router/organization/query.forOrgPage.handler.ts +++ b/packages/api/router/organization/query.forOrgPage.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForOrgPageSchema } from './query.forOrgPage.schema' -export const forOrgPage = async ({ ctx, input }: TRPCHandlerParams) => { +const forOrgPage = async ({ ctx, input }: TRPCHandlerParams) => { const { slug } = input const org = await prisma.organization.findUniqueOrThrow({ where: { diff --git a/packages/api/router/organization/query.forOrgPageEdits.handler.ts b/packages/api/router/organization/query.forOrgPageEdits.handler.ts index e5152efa6f..22a3b07ea7 100644 --- a/packages/api/router/organization/query.forOrgPageEdits.handler.ts +++ b/packages/api/router/organization/query.forOrgPageEdits.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForOrgPageEditsSchema } from './query.forOrgPageEdits.schema' -export const forOrgPageEdits = async ({ input }: TRPCHandlerParams) => { +const forOrgPageEdits = async ({ input }: TRPCHandlerParams) => { const { slug } = input const org = await prisma.organization.findUniqueOrThrow({ where: { diff --git a/packages/api/router/organization/query.forOrganizationTable.handler.ts b/packages/api/router/organization/query.forOrganizationTable.handler.ts index 1a0f835b4f..340e36e8f9 100644 --- a/packages/api/router/organization/query.forOrganizationTable.handler.ts +++ b/packages/api/router/organization/query.forOrganizationTable.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForOrganizationTableSchema } from './query.forOrganizationTable.schema' -export const forOrganizationTable = async ({ input }: TRPCHandlerParams) => { +const forOrganizationTable = async ({ input }: TRPCHandlerParams) => { const results = await prisma.organization.findMany({ where: input, select: { diff --git a/packages/api/router/organization/query.generateSlug.handler.ts b/packages/api/router/organization/query.generateSlug.handler.ts index 36535c2455..6b8085e94a 100644 --- a/packages/api/router/organization/query.generateSlug.handler.ts +++ b/packages/api/router/organization/query.generateSlug.handler.ts @@ -31,7 +31,7 @@ const uniqueSlug = async (name: string, inc?: number): Promise => { } } -export const generateSlug = async ({ input }: TRPCHandlerParams) => { +const generateSlug = async ({ input }: TRPCHandlerParams) => { const slug = await uniqueSlug(input) return slug } diff --git a/packages/api/router/organization/query.getAlerts.handler.ts b/packages/api/router/organization/query.getAlerts.handler.ts index a88537219a..c1ea7d26bd 100644 --- a/packages/api/router/organization/query.getAlerts.handler.ts +++ b/packages/api/router/organization/query.getAlerts.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetAlertsSchema } from './query.getAlerts.schema' -export const getAlerts = async ({ input }: TRPCHandlerParams) => { +const getAlerts = async ({ input }: TRPCHandlerParams) => { try { const { id, slug } = input const dbResult = await prisma.attributeSupplement.findMany({ diff --git a/packages/api/router/organization/query.getAttributes.handler.ts b/packages/api/router/organization/query.getAttributes.handler.ts index 3df635dbc4..2a130f7e3e 100644 --- a/packages/api/router/organization/query.getAttributes.handler.ts +++ b/packages/api/router/organization/query.getAttributes.handler.ts @@ -86,7 +86,7 @@ const groupByCategory = (result: DatabaseResult) => { return grouped } -export const getAttributes = async ({ input }: TRPCHandlerParams) => { +const getAttributes = async ({ input }: TRPCHandlerParams) => { try { const dbResult = await getAttributesFromDb(input) const formattedResult = groupByCategory(dbResult) diff --git a/packages/api/router/organization/query.getById.handler.ts b/packages/api/router/organization/query.getById.handler.ts index 01c3d6d31d..7fde817427 100644 --- a/packages/api/router/organization/query.getById.handler.ts +++ b/packages/api/router/organization/query.getById.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByIdSchema } from './query.getById.schema' -export const getById = async ({ ctx, input }: TRPCHandlerParams) => { +const getById = async ({ ctx, input }: TRPCHandlerParams) => { const { select } = organizationInclude(ctx) const org = await prisma.organization.findUniqueOrThrow({ where: { diff --git a/packages/api/router/organization/query.getBySlug.handler.ts b/packages/api/router/organization/query.getBySlug.handler.ts index c4a7a177f2..c7f08ecbd0 100644 --- a/packages/api/router/organization/query.getBySlug.handler.ts +++ b/packages/api/router/organization/query.getBySlug.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetBySlugSchema } from './query.getBySlug.schema' -export const getBySlug = async ({ ctx, input }: TRPCHandlerParams) => { +const getBySlug = async ({ ctx, input }: TRPCHandlerParams) => { const { slug } = input const { select } = organizationInclude(ctx) const org = await prisma.organization.findUniqueOrThrow({ diff --git a/packages/api/router/organization/query.getIdFromSlug.handler.ts b/packages/api/router/organization/query.getIdFromSlug.handler.ts index dbebc77f10..7791d3a50c 100644 --- a/packages/api/router/organization/query.getIdFromSlug.handler.ts +++ b/packages/api/router/organization/query.getIdFromSlug.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetIdFromSlugSchema } from './query.getIdFromSlug.schema' -export const getIdFromSlug = async ({ ctx, input }: TRPCHandlerParams) => { +const getIdFromSlug = async ({ ctx, input }: TRPCHandlerParams) => { const { slug } = input const cachedId = await readSlugCache(slug) if (cachedId) { diff --git a/packages/api/router/organization/query.getIntlCrisis.handler.ts b/packages/api/router/organization/query.getIntlCrisis.handler.ts index e3de423979..bb0d4b67d5 100644 --- a/packages/api/router/organization/query.getIntlCrisis.handler.ts +++ b/packages/api/router/organization/query.getIntlCrisis.handler.ts @@ -11,7 +11,7 @@ const isSuperJSON = (input: unknown): input is SuperJSONResult => const AccessInstructionSchema = z.object({ access_type: z.string(), access_value: z.string() }) -export const getIntlCrisis = async ({ input }: TRPCHandlerParams) => { +const getIntlCrisis = async ({ input }: TRPCHandlerParams) => { const orgs = await prisma.organization.findMany({ where: { serviceAreas: { active: true, countries: { some: { country: { cca2: input.cca2 } } } }, diff --git a/packages/api/router/organization/query.getNameFromSlug.handler.ts b/packages/api/router/organization/query.getNameFromSlug.handler.ts index 90e11c1205..1fc91c9c71 100644 --- a/packages/api/router/organization/query.getNameFromSlug.handler.ts +++ b/packages/api/router/organization/query.getNameFromSlug.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetNameFromSlugSchema } from './query.getNameFromSlug.schema' -export const getNameFromSlug = async ({ input }: TRPCHandlerParams) => { +const getNameFromSlug = async ({ input }: TRPCHandlerParams) => { const result = prisma.organization.findUniqueOrThrow({ where: { slug: input, diff --git a/packages/api/router/organization/query.getNatlCrisis.handler.ts b/packages/api/router/organization/query.getNatlCrisis.handler.ts index bb351110d6..5bc53c4a28 100644 --- a/packages/api/router/organization/query.getNatlCrisis.handler.ts +++ b/packages/api/router/organization/query.getNatlCrisis.handler.ts @@ -11,7 +11,7 @@ const isSuperJSON = (input: unknown): input is SuperJSONResult => const AccessInstructionSchema = accessInstructions.getAll() -export const getNatlCrisis = async ({ input }: TRPCHandlerParams) => { +const getNatlCrisis = async ({ input }: TRPCHandlerParams) => { const orgs = await prisma.organization.findMany({ where: { services: { diff --git a/packages/api/router/organization/query.isSaved.handler.ts b/packages/api/router/organization/query.isSaved.handler.ts index 8af9ea7858..0ecd667d8b 100644 --- a/packages/api/router/organization/query.isSaved.handler.ts +++ b/packages/api/router/organization/query.isSaved.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TIsSavedSchema } from './query.isSaved.schema' -export const isSaved = async ({ ctx, input }: TRPCHandlerParams) => { +const isSaved = async ({ ctx, input }: TRPCHandlerParams) => { if (!ctx.session?.user?.id) { return false } diff --git a/packages/api/router/organization/query.searchDistance.handler.ts b/packages/api/router/organization/query.searchDistance.handler.ts index 7fff1b3e8a..80b2dd399f 100644 --- a/packages/api/router/organization/query.searchDistance.handler.ts +++ b/packages/api/router/organization/query.searchDistance.handler.ts @@ -382,7 +382,7 @@ type City = { dist: number } -export const searchDistance = async ({ input }: TRPCHandlerParams) => { +const searchDistance = async ({ input }: TRPCHandlerParams) => { const { unit } = input const orgs = await searchOrgByDistance(input) diff --git a/packages/api/router/organization/query.searchName.handler.ts b/packages/api/router/organization/query.searchName.handler.ts index 44336dd09f..d88b5c670e 100644 --- a/packages/api/router/organization/query.searchName.handler.ts +++ b/packages/api/router/organization/query.searchName.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TSearchNameSchema } from './query.searchName.schema' -export const searchName = async ({ input }: TRPCHandlerParams) => { +const searchName = async ({ input }: TRPCHandlerParams) => { const orgIds = await prisma.organization.findMany({ where: { name: { diff --git a/packages/api/router/organization/query.slugRedirect.handler.ts b/packages/api/router/organization/query.slugRedirect.handler.ts index cd13d1102f..d1a57ff5ba 100644 --- a/packages/api/router/organization/query.slugRedirect.handler.ts +++ b/packages/api/router/organization/query.slugRedirect.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TSlugRedirectSchema } from './query.slugRedirect.schema' -export const slugRedirect = async ({ input }: TRPCHandlerParams) => { +const slugRedirect = async ({ input }: TRPCHandlerParams) => { const cached = await readSlugRedirectCache(input) if (cached) { return { redirectTo: cached } diff --git a/packages/api/router/organization/query.suggestionOptions.handler.ts b/packages/api/router/organization/query.suggestionOptions.handler.ts index 568490d509..07c663cc3d 100644 --- a/packages/api/router/organization/query.suggestionOptions.handler.ts +++ b/packages/api/router/organization/query.suggestionOptions.handler.ts @@ -1,6 +1,6 @@ import { prisma } from '@weareinreach/db' -export const suggestionOptions = async () => { +const suggestionOptions = async () => { const [countries, serviceTypes, communities] = await Promise.all([ prisma.country.findMany({ where: { activeForSuggest: true }, diff --git a/packages/api/router/page/mutation.LocationEditUpdate.handler.ts b/packages/api/router/page/mutation.LocationEditUpdate.handler.ts index 401494e924..1d8636fa58 100644 --- a/packages/api/router/page/mutation.LocationEditUpdate.handler.ts +++ b/packages/api/router/page/mutation.LocationEditUpdate.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TLocationEditUpdateSchema } from './mutation.LocationEditUpdate.schema' -export const LocationEditUpdate = async ({ +const LocationEditUpdate = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/page/query.serviceEdit.handler.ts b/packages/api/router/page/query.serviceEdit.handler.ts index be2fbed02c..72b66ad249 100644 --- a/packages/api/router/page/query.serviceEdit.handler.ts +++ b/packages/api/router/page/query.serviceEdit.handler.ts @@ -8,7 +8,7 @@ import { type TServiceEditSchema } from './query.serviceEdit.schema' const freeTextSelect = { select: { tsKey: { select: { key: true, text: true, ns: true } } } } as const -export const serviceEdit = async ({ input }: TRPCHandlerParams) => { +const serviceEdit = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.orgService.findUnique({ where: input, diff --git a/packages/api/router/quicklink/mutation.updateEmailData.handler.ts b/packages/api/router/quicklink/mutation.updateEmailData.handler.ts index 05cba2b3f0..749c92bfcd 100644 --- a/packages/api/router/quicklink/mutation.updateEmailData.handler.ts +++ b/packages/api/router/quicklink/mutation.updateEmailData.handler.ts @@ -3,10 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateEmailDataSchema } from './mutation.updateEmailData.schema' -export const updateEmailData = async ({ - ctx, - input, -}: TRPCHandlerParams) => { +const updateEmailData = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const updates = input.map(({ id, to }) => { const { serviceOnly, locationOnly, locations, services, published } = to diff --git a/packages/api/router/quicklink/mutation.updatePhoneData.handler.ts b/packages/api/router/quicklink/mutation.updatePhoneData.handler.ts index 922148ef8b..08b4f669e1 100644 --- a/packages/api/router/quicklink/mutation.updatePhoneData.handler.ts +++ b/packages/api/router/quicklink/mutation.updatePhoneData.handler.ts @@ -3,10 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdatePhoneDataSchema } from './mutation.updatePhoneData.schema' -export const updatePhoneData = async ({ - ctx, - input, -}: TRPCHandlerParams) => { +const updatePhoneData = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const updates = input.map(({ id, to }) => { const { serviceOnly, locationOnly, locations, services, published } = to diff --git a/packages/api/router/quicklink/mutation.updateServiceLocationData.handler.ts b/packages/api/router/quicklink/mutation.updateServiceLocationData.handler.ts index 865271f9f2..e54460eb04 100644 --- a/packages/api/router/quicklink/mutation.updateServiceLocationData.handler.ts +++ b/packages/api/router/quicklink/mutation.updateServiceLocationData.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateServiceLocationDataSchema } from './mutation.updateServiceLocationData.schema' -export const updateServiceLocationData = async ({ +const updateServiceLocationData = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/quicklink/query.getEmailData.handler.ts b/packages/api/router/quicklink/query.getEmailData.handler.ts index c78ec05b93..b1cfa9093d 100644 --- a/packages/api/router/quicklink/query.getEmailData.handler.ts +++ b/packages/api/router/quicklink/query.getEmailData.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetEmailDataSchema } from './query.getEmailData.schema' -export const getEmailData = async ({ input }: TRPCHandlerParams) => { +const getEmailData = async ({ input }: TRPCHandlerParams) => { const limit = input.limit ?? 20 const { skip } = input diff --git a/packages/api/router/quicklink/query.getPhoneData.handler.ts b/packages/api/router/quicklink/query.getPhoneData.handler.ts index 0ecd1f3d3f..dc9ffea355 100644 --- a/packages/api/router/quicklink/query.getPhoneData.handler.ts +++ b/packages/api/router/quicklink/query.getPhoneData.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetPhoneDataSchema } from './query.getPhoneData.schema' -export const getPhoneData = async ({ input }: TRPCHandlerParams) => { +const getPhoneData = async ({ input }: TRPCHandlerParams) => { const limit = input.limit ?? 20 const { skip } = input diff --git a/packages/api/router/quicklink/query.getServiceLocationData.handler.ts b/packages/api/router/quicklink/query.getServiceLocationData.handler.ts index 8e7cec82a2..90d6adab33 100644 --- a/packages/api/router/quicklink/query.getServiceLocationData.handler.ts +++ b/packages/api/router/quicklink/query.getServiceLocationData.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetServiceLocationDataSchema } from './query.getServiceLocationData.schema' -export const getServiceLocationData = async ({ input }: TRPCHandlerParams) => { +const getServiceLocationData = async ({ input }: TRPCHandlerParams) => { const limit = input.limit ?? 20 const { skip } = input diff --git a/packages/api/router/review/mutation.create.handler.ts b/packages/api/router/review/mutation.create.handler.ts index bb76af6a46..156b3a9aa7 100644 --- a/packages/api/router/review/mutation.create.handler.ts +++ b/packages/api/router/review/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const review = await prisma.orgReview.create({ data: { diff --git a/packages/api/router/review/mutation.delete.handler.ts b/packages/api/router/review/mutation.delete.handler.ts index 6896014f5c..d22fee090e 100644 --- a/packages/api/router/review/mutation.delete.handler.ts +++ b/packages/api/router/review/mutation.delete.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TDeleteSchema } from './mutation.delete.schema' -export const deleteReview = async ({ ctx, input }: TRPCHandlerParams) => { +const deleteReview = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const deleted = true diff --git a/packages/api/router/review/mutation.hide.handler.ts b/packages/api/router/review/mutation.hide.handler.ts index 69c2ad1732..9424bcf36b 100644 --- a/packages/api/router/review/mutation.hide.handler.ts +++ b/packages/api/router/review/mutation.hide.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type THideSchema } from './mutation.hide.schema' -export const hide = async ({ ctx, input }: TRPCHandlerParams) => { +const hide = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const visible = false diff --git a/packages/api/router/review/mutation.unDelete.handler.ts b/packages/api/router/review/mutation.unDelete.handler.ts index fba2d5b489..3c1e6b6b4b 100644 --- a/packages/api/router/review/mutation.unDelete.handler.ts +++ b/packages/api/router/review/mutation.unDelete.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUnDeleteSchema } from './mutation.unDelete.schema' -export const unDelete = async ({ ctx, input }: TRPCHandlerParams) => { +const unDelete = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const deleted = false diff --git a/packages/api/router/review/mutation.unHide.handler.ts b/packages/api/router/review/mutation.unHide.handler.ts index dd283b26e5..388297a976 100644 --- a/packages/api/router/review/mutation.unHide.handler.ts +++ b/packages/api/router/review/mutation.unHide.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUnHideSchema } from './mutation.unHide.schema' -export const unHide = async ({ ctx, input }: TRPCHandlerParams) => { +const unHide = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const visible = true diff --git a/packages/api/router/review/query.getAverage.handler.ts b/packages/api/router/review/query.getAverage.handler.ts index 68aed45345..d6e78ed307 100644 --- a/packages/api/router/review/query.getAverage.handler.ts +++ b/packages/api/router/review/query.getAverage.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetAverageSchema } from './query.getAverage.schema' -export const getAverage = async ({ input }: TRPCHandlerParams) => { +const getAverage = async ({ input }: TRPCHandlerParams) => { const whereId = (): Prisma.OrgReviewWhereInput => { switch (true) { case isIdFor('organization', input): { diff --git a/packages/api/router/review/query.getByIds.handler.ts b/packages/api/router/review/query.getByIds.handler.ts index a81e2f1663..d949963c5f 100644 --- a/packages/api/router/review/query.getByIds.handler.ts +++ b/packages/api/router/review/query.getByIds.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByIdsSchema } from './query.getByIds.schema' -export const getByIds = async ({ input }: TRPCHandlerParams) => { +const getByIds = async ({ input }: TRPCHandlerParams) => { const results = await prisma.orgReview.findMany({ where: { id: { diff --git a/packages/api/router/review/query.getByLocation.handler.ts b/packages/api/router/review/query.getByLocation.handler.ts index 4b5fa09bf5..ffa36b82ab 100644 --- a/packages/api/router/review/query.getByLocation.handler.ts +++ b/packages/api/router/review/query.getByLocation.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByLocationSchema } from './query.getByLocation.schema' -export const getByLocation = async ({ input }: TRPCHandlerParams) => { +const getByLocation = async ({ input }: TRPCHandlerParams) => { const reviews = await prisma.orgReview.findMany({ where: { organizationId: input.orgId, diff --git a/packages/api/router/review/query.getByOrg.handler.ts b/packages/api/router/review/query.getByOrg.handler.ts index c6749b14c5..6725e8c620 100644 --- a/packages/api/router/review/query.getByOrg.handler.ts +++ b/packages/api/router/review/query.getByOrg.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByOrgSchema } from './query.getByOrg.schema' -export const getByOrg = async ({ input }: TRPCHandlerParams) => { +const getByOrg = async ({ input }: TRPCHandlerParams) => { const reviews = await prisma.orgReview.findMany({ where: { organizationId: input.orgId, diff --git a/packages/api/router/review/query.getByService.handler.ts b/packages/api/router/review/query.getByService.handler.ts index c7478332ac..3a44706688 100644 --- a/packages/api/router/review/query.getByService.handler.ts +++ b/packages/api/router/review/query.getByService.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByServiceSchema } from './query.getByService.schema' -export const getByService = async ({ input }: TRPCHandlerParams) => { +const getByService = async ({ input }: TRPCHandlerParams) => { const reviews = await prisma.orgReview.findMany({ where: { organizationId: input.orgId, diff --git a/packages/api/router/review/query.getByUser.handler.ts b/packages/api/router/review/query.getByUser.handler.ts index 9b6945187a..a840364fb1 100644 --- a/packages/api/router/review/query.getByUser.handler.ts +++ b/packages/api/router/review/query.getByUser.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByUserSchema } from './query.getByUser.schema' -export const getByUser = async ({ input }: TRPCHandlerParams) => { +const getByUser = async ({ input }: TRPCHandlerParams) => { const reviews = await prisma.orgReview.findMany({ where: { userId: input.userId, diff --git a/packages/api/router/review/query.getCurrentUser.handler.ts b/packages/api/router/review/query.getCurrentUser.handler.ts index db300257fa..30711c88af 100644 --- a/packages/api/router/review/query.getCurrentUser.handler.ts +++ b/packages/api/router/review/query.getCurrentUser.handler.ts @@ -1,7 +1,7 @@ import { prisma } from '@weareinreach/db' import { type TRPCHandlerParams } from '~api/types/handler' -export const getCurrentUser = async ({ ctx }: TRPCHandlerParams) => { +const getCurrentUser = async ({ ctx }: TRPCHandlerParams) => { const reviews = await prisma.orgReview.findMany({ where: { userId: ctx.session.user.id, diff --git a/packages/api/router/review/query.getFeatured.handler.ts b/packages/api/router/review/query.getFeatured.handler.ts index a905e9c3eb..b355d79479 100644 --- a/packages/api/router/review/query.getFeatured.handler.ts +++ b/packages/api/router/review/query.getFeatured.handler.ts @@ -17,7 +17,7 @@ const getRandomItems = (items: T[], count: number): T[] => { return [...randomIndexes].map((i) => items[i]) as T[] } -export const getFeatured = async ({ input }: TRPCHandlerParams) => { +const getFeatured = async ({ input }: TRPCHandlerParams) => { const results = await prisma.orgReview.findMany({ where: { featured: true, diff --git a/packages/api/router/savedLists/mutation.create.handler.ts b/packages/api/router/savedLists/mutation.create.handler.ts index fad6de4c0b..c3e82ce7ff 100644 --- a/packages/api/router/savedLists/mutation.create.handler.ts +++ b/packages/api/router/savedLists/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const list = await prisma.userSavedList.create({ diff --git a/packages/api/router/savedLists/mutation.createAndSaveItem.handler.ts b/packages/api/router/savedLists/mutation.createAndSaveItem.handler.ts index 53e0aaeba7..5f433f4e4f 100644 --- a/packages/api/router/savedLists/mutation.createAndSaveItem.handler.ts +++ b/packages/api/router/savedLists/mutation.createAndSaveItem.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateAndSaveItemSchema } from './mutation.createAndSaveItem.schema' -export const createAndSaveItem = async ({ +const createAndSaveItem = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/savedLists/mutation.delete.handler.ts b/packages/api/router/savedLists/mutation.delete.handler.ts index a6ee391760..5bf3337622 100644 --- a/packages/api/router/savedLists/mutation.delete.handler.ts +++ b/packages/api/router/savedLists/mutation.delete.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TDeleteSchema } from './mutation.delete.schema' -export const deleteList = async ({ ctx, input }: TRPCHandlerParams) => { +const deleteList = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) checkListOwnership({ listId: input.id, userId: ctx.session.user.id }) diff --git a/packages/api/router/savedLists/mutation.deleteItem.handler.ts b/packages/api/router/savedLists/mutation.deleteItem.handler.ts index 2bde4f7e83..c608e3345d 100644 --- a/packages/api/router/savedLists/mutation.deleteItem.handler.ts +++ b/packages/api/router/savedLists/mutation.deleteItem.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TDeleteItemSchema } from './mutation.deleteItem.schema' -export const deleteItem = async ({ ctx, input }: TRPCHandlerParams) => { +const deleteItem = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { id, organizationId, serviceId } = input checkListOwnership({ listId: id, userId: ctx.session.user.id }) diff --git a/packages/api/router/savedLists/mutation.saveItem.handler.ts b/packages/api/router/savedLists/mutation.saveItem.handler.ts index 2b4052f7cd..e90d98f9f7 100644 --- a/packages/api/router/savedLists/mutation.saveItem.handler.ts +++ b/packages/api/router/savedLists/mutation.saveItem.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TSaveItemSchema } from './mutation.saveItem.schema' -export const saveItem = async ({ ctx, input }: TRPCHandlerParams) => { +const saveItem = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { id, organizationId, serviceId } = input diff --git a/packages/api/router/savedLists/mutation.shareUrl.handler.ts b/packages/api/router/savedLists/mutation.shareUrl.handler.ts index ce1caec57e..9ae7b009ec 100644 --- a/packages/api/router/savedLists/mutation.shareUrl.handler.ts +++ b/packages/api/router/savedLists/mutation.shareUrl.handler.ts @@ -17,7 +17,7 @@ const generateUniqueSlug = async (): Promise => { } return slug } -export const shareUrl = async ({ ctx, input }: TRPCHandlerParams) => { +const shareUrl = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const urlSlug = await generateUniqueSlug() checkListOwnership({ listId: input.id, userId: ctx.session.user.id }) diff --git a/packages/api/router/savedLists/mutation.unShareUrl.handler.ts b/packages/api/router/savedLists/mutation.unShareUrl.handler.ts index 8b4b21b2ad..25f658529a 100644 --- a/packages/api/router/savedLists/mutation.unShareUrl.handler.ts +++ b/packages/api/router/savedLists/mutation.unShareUrl.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUnShareUrlSchema } from './mutation.unShareUrl.schema' -export const unShareUrl = async ({ ctx, input }: TRPCHandlerParams) => { +const unShareUrl = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) checkListOwnership({ listId: input.id, userId: ctx.session.user.id }) diff --git a/packages/api/router/savedLists/query.getAll.handler.ts b/packages/api/router/savedLists/query.getAll.handler.ts index af65c85eff..01be9d8210 100644 --- a/packages/api/router/savedLists/query.getAll.handler.ts +++ b/packages/api/router/savedLists/query.getAll.handler.ts @@ -1,7 +1,7 @@ import { prisma } from '@weareinreach/db' import { type TRPCHandlerParams } from '~api/types/handler' -export const getAll = async ({ ctx }: TRPCHandlerParams) => { +const getAll = async ({ ctx }: TRPCHandlerParams) => { const lists = await prisma.userSavedList.findMany({ where: { ownedById: ctx.session.user.id, diff --git a/packages/api/router/savedLists/query.getById.handler.ts b/packages/api/router/savedLists/query.getById.handler.ts index d263234749..5142da954a 100644 --- a/packages/api/router/savedLists/query.getById.handler.ts +++ b/packages/api/router/savedLists/query.getById.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByIdSchema } from './query.getById.schema' -export const getById = async ({ ctx, input }: TRPCHandlerParams) => { +const getById = async ({ ctx, input }: TRPCHandlerParams) => { const list = await prisma.userSavedList.findFirst({ where: { id: input.id, diff --git a/packages/api/router/savedLists/query.getByUrl.handler.ts b/packages/api/router/savedLists/query.getByUrl.handler.ts index 25d924525c..2288b1f793 100644 --- a/packages/api/router/savedLists/query.getByUrl.handler.ts +++ b/packages/api/router/savedLists/query.getByUrl.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetByUrlSchema } from './query.getByUrl.schema' -export const getByUrl = async ({ input }: TRPCHandlerParams) => { +const getByUrl = async ({ input }: TRPCHandlerParams) => { const list = await prisma.userSavedList.findUniqueOrThrow({ where: { sharedLinkKey: input.slug, diff --git a/packages/api/router/savedLists/query.isSaved.handler.ts b/packages/api/router/savedLists/query.isSaved.handler.ts index 41b371706b..c67a18c462 100644 --- a/packages/api/router/savedLists/query.isSaved.handler.ts +++ b/packages/api/router/savedLists/query.isSaved.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TIsSavedSchema } from './query.isSaved.schema' -export const isSaved = async ({ ctx, input }: TRPCHandlerParams) => { +const isSaved = async ({ ctx, input }: TRPCHandlerParams) => { if (!ctx.session?.user?.id) { return false } diff --git a/packages/api/router/service/mutation.attachServiceAttribute.handler.ts b/packages/api/router/service/mutation.attachServiceAttribute.handler.ts index 79a6078aa5..459b22284a 100644 --- a/packages/api/router/service/mutation.attachServiceAttribute.handler.ts +++ b/packages/api/router/service/mutation.attachServiceAttribute.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAttachServiceAttributeSchema } from './mutation.attachServiceAttribute.schema' -export const attachServiceAttribute = async ({ +const attachServiceAttribute = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/service/mutation.attachServiceTags.handler.ts b/packages/api/router/service/mutation.attachServiceTags.handler.ts index 7f63b5b62c..d2b21816a1 100644 --- a/packages/api/router/service/mutation.attachServiceTags.handler.ts +++ b/packages/api/router/service/mutation.attachServiceTags.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAttachServiceTagsSchema } from './mutation.attachServiceTags.schema' -export const attachServiceTags = async ({ +const attachServiceTags = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/service/mutation.create.handler.ts b/packages/api/router/service/mutation.create.handler.ts index 2571223f25..f5314f82c7 100644 --- a/packages/api/router/service/mutation.create.handler.ts +++ b/packages/api/router/service/mutation.create.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ ctx, input }: TRPCHandlerParams) => { +const create = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const result = await prisma.orgService.create(input) diff --git a/packages/api/router/service/mutation.createAccessInstructions.handler.ts b/packages/api/router/service/mutation.createAccessInstructions.handler.ts index 75360e25a6..dff25497c0 100644 --- a/packages/api/router/service/mutation.createAccessInstructions.handler.ts +++ b/packages/api/router/service/mutation.createAccessInstructions.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateAccessInstructionsSchema } from './mutation.createAccessInstructions.schema' -export const createAccessInstructions = async ({ +const createAccessInstructions = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/service/mutation.createServiceArea.handler.ts b/packages/api/router/service/mutation.createServiceArea.handler.ts index f4da476f8a..0e61268f6f 100644 --- a/packages/api/router/service/mutation.createServiceArea.handler.ts +++ b/packages/api/router/service/mutation.createServiceArea.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateServiceAreaSchema } from './mutation.createServiceArea.schema' -export const createServiceArea = async ({ +const createServiceArea = async ({ ctx, input, }: TRPCHandlerParams) => { diff --git a/packages/api/router/service/mutation.linkEmails.handler.ts b/packages/api/router/service/mutation.linkEmails.handler.ts index 8c227ada4d..25e64821f5 100644 --- a/packages/api/router/service/mutation.linkEmails.handler.ts +++ b/packages/api/router/service/mutation.linkEmails.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TLinkEmailsSchema } from './mutation.linkEmails.schema' -export const linkEmails = async ({ ctx, input }: TRPCHandlerParams) => { +const linkEmails = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const links = await prisma.orgServiceEmail.createMany({ data: input, skipDuplicates: true }) diff --git a/packages/api/router/service/mutation.linkPhones.handler.ts b/packages/api/router/service/mutation.linkPhones.handler.ts index 686650dced..6569bbbe85 100644 --- a/packages/api/router/service/mutation.linkPhones.handler.ts +++ b/packages/api/router/service/mutation.linkPhones.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TLinkPhonesSchema } from './mutation.linkPhones.schema' -export const linkPhones = async ({ ctx, input }: TRPCHandlerParams) => { +const linkPhones = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const links = await prisma.orgServicePhone.createMany({ data: input, skipDuplicates: true }) diff --git a/packages/api/router/service/mutation.update.handler.ts b/packages/api/router/service/mutation.update.handler.ts index 8b620dc33e..26b19cb241 100644 --- a/packages/api/router/service/mutation.update.handler.ts +++ b/packages/api/router/service/mutation.update.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ ctx, input }: TRPCHandlerParams) => { +const update = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const updated = await prisma.orgService.update(input) diff --git a/packages/api/router/service/mutation.upsert.handler.ts b/packages/api/router/service/mutation.upsert.handler.ts index b8181b37c3..9aa3b222f6 100644 --- a/packages/api/router/service/mutation.upsert.handler.ts +++ b/packages/api/router/service/mutation.upsert.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpsertSchema } from './mutation.upsert.schema' -export const upsert = async ({ ctx, input }: TRPCHandlerParams) => { +const upsert = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const { generateId } = ctx diff --git a/packages/api/router/service/query.byId.handler.ts b/packages/api/router/service/query.byId.handler.ts index 7a55d1cc8d..06acc29782 100644 --- a/packages/api/router/service/query.byId.handler.ts +++ b/packages/api/router/service/query.byId.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TByIdSchema } from './query.byId.schema' import { select } from './selects' -export const byId = async ({ input }: TRPCHandlerParams) => { +const byId = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgService.findUniqueOrThrow({ where: input, select: { diff --git a/packages/api/router/service/query.byOrgId.handler.ts b/packages/api/router/service/query.byOrgId.handler.ts index 6838ede07c..50d47704c1 100644 --- a/packages/api/router/service/query.byOrgId.handler.ts +++ b/packages/api/router/service/query.byOrgId.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TByOrgIdSchema } from './query.byOrgId.schema' import { select } from './selects' -export const byOrgId = async ({ input }: TRPCHandlerParams) => { +const byOrgId = async ({ input }: TRPCHandlerParams) => { const results = await prisma.orgService.findMany({ where: input, select: { diff --git a/packages/api/router/service/query.byOrgLocationId.handler.ts b/packages/api/router/service/query.byOrgLocationId.handler.ts index 82cba606cf..79ed8a99d3 100644 --- a/packages/api/router/service/query.byOrgLocationId.handler.ts +++ b/packages/api/router/service/query.byOrgLocationId.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TByOrgLocationIdSchema } from './query.byOrgLocationId.schema' import { select } from './selects' -export const byOrgLocationId = async ({ input }: TRPCHandlerParams) => { +const byOrgLocationId = async ({ input }: TRPCHandlerParams) => { const results = await prisma.orgService.findMany({ where: { locations: { some: input } }, select: { diff --git a/packages/api/router/service/query.byUserListId.handler.ts b/packages/api/router/service/query.byUserListId.handler.ts index c357ecaecd..31d26e4c1d 100644 --- a/packages/api/router/service/query.byUserListId.handler.ts +++ b/packages/api/router/service/query.byUserListId.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TByUserListIdSchema } from './query.byUserListId.schema' import { select } from './selects' -export const byUserListId = async ({ ctx, input }: TRPCHandlerParams) => { +const byUserListId = async ({ ctx, input }: TRPCHandlerParams) => { const results = await prisma.orgService.findMany({ where: { userLists: { some: { list: { AND: { id: input.listId, ownedById: ctx.session.user.id } } } } }, select: { diff --git a/packages/api/router/service/query.forServiceDrawer.handler.ts b/packages/api/router/service/query.forServiceDrawer.handler.ts index 98d1ce0066..8e2a24d2dc 100644 --- a/packages/api/router/service/query.forServiceDrawer.handler.ts +++ b/packages/api/router/service/query.forServiceDrawer.handler.ts @@ -8,7 +8,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForServiceDrawerSchema } from './query.forServiceDrawer.schema' import { select } from './selects' -export const forServiceDrawer = async ({ input }: TRPCHandlerParams) => { +const forServiceDrawer = async ({ input }: TRPCHandlerParams) => { const results = await prisma.orgService.findMany({ where: input, select: { diff --git a/packages/api/router/service/query.forServiceEditDrawer.handler.ts b/packages/api/router/service/query.forServiceEditDrawer.handler.ts index a5b6effdfc..9ae746d57f 100644 --- a/packages/api/router/service/query.forServiceEditDrawer.handler.ts +++ b/packages/api/router/service/query.forServiceEditDrawer.handler.ts @@ -8,7 +8,7 @@ import { type TForServiceEditDrawerSchema } from './query.forServiceEditDrawer.s const freeTextSelect = { select: { tsKey: { select: { key: true, text: true, ns: true, crowdinId: true } } }, } as const -export const forServiceEditDrawer = async ({ input }: TRPCHandlerParams) => { +const forServiceEditDrawer = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgService.findUniqueOrThrow({ where: { id: input }, select: { diff --git a/packages/api/router/service/query.forServiceInfoCard.handler.ts b/packages/api/router/service/query.forServiceInfoCard.handler.ts index 6a38855f11..446566af14 100644 --- a/packages/api/router/service/query.forServiceInfoCard.handler.ts +++ b/packages/api/router/service/query.forServiceInfoCard.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForServiceInfoCardSchema } from './query.forServiceInfoCard.schema' -export const forServiceInfoCard = async ({ input }: TRPCHandlerParams) => { +const forServiceInfoCard = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgService.findMany({ where: { ...globalWhere.isPublic(), diff --git a/packages/api/router/service/query.forServiceModal.handler.ts b/packages/api/router/service/query.forServiceModal.handler.ts index 3b659a9af5..b10aec5e00 100644 --- a/packages/api/router/service/query.forServiceModal.handler.ts +++ b/packages/api/router/service/query.forServiceModal.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForServiceModalSchema } from './query.forServiceModal.schema' -export const forServiceModal = async ({ input }: TRPCHandlerParams) => { +const forServiceModal = async ({ input }: TRPCHandlerParams) => { const result = await prisma.orgService.findUniqueOrThrow({ where: { id: input, ...globalWhere.isPublic() }, select: { diff --git a/packages/api/router/service/query.getFilterOptions.handler.ts b/packages/api/router/service/query.getFilterOptions.handler.ts index 0b1467475b..a1036ecdba 100644 --- a/packages/api/router/service/query.getFilterOptions.handler.ts +++ b/packages/api/router/service/query.getFilterOptions.handler.ts @@ -1,6 +1,6 @@ import { prisma } from '@weareinreach/db' -export const getFilterOptions = async () => { +const getFilterOptions = async () => { const result = await prisma.serviceCategory.findMany({ where: { active: true, diff --git a/packages/api/router/service/query.getNames.handler.ts b/packages/api/router/service/query.getNames.handler.ts index d40294af67..372b9e8ff2 100644 --- a/packages/api/router/service/query.getNames.handler.ts +++ b/packages/api/router/service/query.getNames.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetNamesSchema } from './query.getNames.schema' -export const getNames = async ({ input }: TRPCHandlerParams) => { +const getNames = async ({ input }: TRPCHandlerParams) => { const { orgLocationId, organizationId } = input if (!orgLocationId && !organizationId) { diff --git a/packages/api/router/service/query.getOptions.handler.ts b/packages/api/router/service/query.getOptions.handler.ts index 2f7fa0fced..c27cc53e3b 100644 --- a/packages/api/router/service/query.getOptions.handler.ts +++ b/packages/api/router/service/query.getOptions.handler.ts @@ -1,6 +1,6 @@ import { prisma } from '@weareinreach/db' -export const getOptions = async () => { +const getOptions = async () => { const result = await prisma.serviceTag.findMany({ select: { id: true, diff --git a/packages/api/router/service/query.getParentName.handler.ts b/packages/api/router/service/query.getParentName.handler.ts index 09fce3e7b3..b1da06b5cc 100644 --- a/packages/api/router/service/query.getParentName.handler.ts +++ b/packages/api/router/service/query.getParentName.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetParentNameSchema } from './query.getParentName.schema' -export const getParentName = async ({ input }: TRPCHandlerParams) => { +const getParentName = async ({ input }: TRPCHandlerParams) => { const { slug, orgLocationId } = input switch (true) { diff --git a/packages/api/router/serviceArea/mutation.addToArea.handler.ts b/packages/api/router/serviceArea/mutation.addToArea.handler.ts index c96fbece33..2ee2fe3a6e 100644 --- a/packages/api/router/serviceArea/mutation.addToArea.handler.ts +++ b/packages/api/router/serviceArea/mutation.addToArea.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAddToAreaSchema } from './mutation.addToArea.schema' -export const addToArea = async ({ ctx, input }: TRPCHandlerParams) => { +const addToArea = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) diff --git a/packages/api/router/serviceArea/mutation.delFromArea.handler.ts b/packages/api/router/serviceArea/mutation.delFromArea.handler.ts index 7791554534..43b68ca4d9 100644 --- a/packages/api/router/serviceArea/mutation.delFromArea.handler.ts +++ b/packages/api/router/serviceArea/mutation.delFromArea.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TDelFromAreaSchema } from './mutation.delFromArea.schema' -export const delFromArea = async ({ ctx, input }: TRPCHandlerParams) => { +const delFromArea = async ({ ctx, input }: TRPCHandlerParams) => { try { const prisma = getAuditedClient(ctx.actorId) diff --git a/packages/api/router/serviceArea/mutation.update.handler.ts b/packages/api/router/serviceArea/mutation.update.handler.ts index 17d7fad252..1733e1650d 100644 --- a/packages/api/router/serviceArea/mutation.update.handler.ts +++ b/packages/api/router/serviceArea/mutation.update.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TUpdateSchema } from './mutation.update.schema' -export const update = async ({ input, ctx }: TRPCHandlerParams) => { +const update = async ({ input, ctx }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) try { const { id: serviceAreaId, districts, countries } = input diff --git a/packages/api/router/serviceArea/query.getServiceArea.handler.ts b/packages/api/router/serviceArea/query.getServiceArea.handler.ts index 8e83431aca..05f70c17f9 100644 --- a/packages/api/router/serviceArea/query.getServiceArea.handler.ts +++ b/packages/api/router/serviceArea/query.getServiceArea.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetServiceAreaSchema } from './query.getServiceArea.schema' -export const getServiceArea = async ({ input }: TRPCHandlerParams) => { +const getServiceArea = async ({ input }: TRPCHandlerParams) => { try { const result = await prisma.serviceArea.findUnique({ where: { diff --git a/packages/api/router/system/mutation.updateInactiveCountryEdgeConfig.handler.ts b/packages/api/router/system/mutation.updateInactiveCountryEdgeConfig.handler.ts index 932310c21c..12f7ee1966 100644 --- a/packages/api/router/system/mutation.updateInactiveCountryEdgeConfig.handler.ts +++ b/packages/api/router/system/mutation.updateInactiveCountryEdgeConfig.handler.ts @@ -2,7 +2,7 @@ import { prisma } from '@weareinreach/db' import { getEnv } from '@weareinreach/env' import { superjson } from '@weareinreach/util/transformer' -export const updateInactiveCountryEdgeConfig = async () => { +const updateInactiveCountryEdgeConfig = async () => { const active = await prisma.country.findMany({ where: { activeForOrgs: true }, select: { cca2: true }, diff --git a/packages/api/router/system/query.auditLogByActorId.handler.ts b/packages/api/router/system/query.auditLogByActorId.handler.ts index 5ce6743b77..56618a9f71 100644 --- a/packages/api/router/system/query.auditLogByActorId.handler.ts +++ b/packages/api/router/system/query.auditLogByActorId.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAuditLogByActorIdSchema } from './query.auditLogByActorId.schema' -export const auditLogByActorId = async ({ input }: TRPCHandlerParams) => { +const auditLogByActorId = async ({ input }: TRPCHandlerParams) => { try { const { actorId, skip, take, sort } = input const auditLog = await prisma.auditTrail.findMany({ diff --git a/packages/api/router/system/query.auditLogByRecordId.handler.ts b/packages/api/router/system/query.auditLogByRecordId.handler.ts index ded35e001a..cae9f577de 100644 --- a/packages/api/router/system/query.auditLogByRecordId.handler.ts +++ b/packages/api/router/system/query.auditLogByRecordId.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAuditLogByRecordIdSchema } from './query.auditLogByRecordId.schema' -export const auditLogByRecordId = async ({ input }: TRPCHandlerParams) => { +const auditLogByRecordId = async ({ input }: TRPCHandlerParams) => { try { const { recordId, skip, take, sort } = input const auditLog = await prisma.auditTrail.findMany({ diff --git a/packages/api/router/system/query.getFeatureFlag.handler.ts b/packages/api/router/system/query.getFeatureFlag.handler.ts index ee019b8f0c..39b55e2eb8 100644 --- a/packages/api/router/system/query.getFeatureFlag.handler.ts +++ b/packages/api/router/system/query.getFeatureFlag.handler.ts @@ -5,7 +5,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TGetFeatureFlagSchema } from './query.getFeatureFlag.schema' -export const getFeatureFlag = async ({ input }: TRPCHandlerParams) => { +const getFeatureFlag = async ({ input }: TRPCHandlerParams) => { const flagClient = createClient(getEnv('FEATURE_FLAG_CONFIG') satisfies string) const result = (await flagClient.get(input)) ?? false diff --git a/packages/api/router/user/mutation.adminCreate.handler.ts b/packages/api/router/user/mutation.adminCreate.handler.ts index 0191e8bb5d..76d15298a2 100644 --- a/packages/api/router/user/mutation.adminCreate.handler.ts +++ b/packages/api/router/user/mutation.adminCreate.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TAdminCreateSchema } from './mutation.adminCreate.schema' -export const adminCreate = async ({ ctx, input }: TRPCHandlerParams) => { +const adminCreate = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const newUser = await prisma.$transaction(async (tx) => { const user = await tx.user.create(input.prisma) diff --git a/packages/api/router/user/mutation.confirmAccount.handler.ts b/packages/api/router/user/mutation.confirmAccount.handler.ts index 60c0b77a6f..c1f0e1a30f 100644 --- a/packages/api/router/user/mutation.confirmAccount.handler.ts +++ b/packages/api/router/user/mutation.confirmAccount.handler.ts @@ -4,7 +4,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TConfirmAccountSchema } from './mutation.confirmAccount.schema' -export const confirmAccount = async ({ input }: TRPCHandlerParams) => { +const confirmAccount = async ({ input }: TRPCHandlerParams) => { const { code, email } = input const response = await cognitoConfirmAccount(email, code) diff --git a/packages/api/router/user/mutation.create.handler.ts b/packages/api/router/user/mutation.create.handler.ts index c2ce73593f..5109a715ae 100644 --- a/packages/api/router/user/mutation.create.handler.ts +++ b/packages/api/router/user/mutation.create.handler.ts @@ -6,7 +6,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TCreateSchema } from './mutation.create.schema' -export const create = async ({ input }: TRPCHandlerParams) => { +const create = async ({ input }: TRPCHandlerParams) => { const prisma = getAuditedClient(input.prisma.data.id) try { const newUser = await prisma.$transaction(async (tx) => { diff --git a/packages/api/router/user/mutation.deleteAccount.handler.ts b/packages/api/router/user/mutation.deleteAccount.handler.ts index dc994f0322..86f60041da 100644 --- a/packages/api/router/user/mutation.deleteAccount.handler.ts +++ b/packages/api/router/user/mutation.deleteAccount.handler.ts @@ -8,7 +8,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TDeleteAccountSchema } from './mutation.deleteAccount.schema' -export const deleteAccount = async ({ ctx, input }: TRPCHandlerParams) => { +const deleteAccount = async ({ ctx, input }: TRPCHandlerParams) => { const prisma = getAuditedClient(ctx.actorId) const email = ctx.session.user.email.toLowerCase() const cognitoSession = await userLogin(email, input) diff --git a/packages/api/router/user/mutation.forgotPassword.handler.ts b/packages/api/router/user/mutation.forgotPassword.handler.ts index 31e12469bd..e4e8e18205 100644 --- a/packages/api/router/user/mutation.forgotPassword.handler.ts +++ b/packages/api/router/user/mutation.forgotPassword.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TForgotPasswordSchema } from './mutation.forgotPassword.schema' -export const forgotPassword = async ({ input }: TRPCHandlerParams) => { +const forgotPassword = async ({ input }: TRPCHandlerParams) => { const response = await cognitoForgotPassword(input) return response } diff --git a/packages/api/router/user/mutation.resetPassword.handler.ts b/packages/api/router/user/mutation.resetPassword.handler.ts index bd43bf6a6d..88507f0b66 100644 --- a/packages/api/router/user/mutation.resetPassword.handler.ts +++ b/packages/api/router/user/mutation.resetPassword.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TResetPasswordSchema } from './mutation.resetPassword.schema' -export const resetPassword = async ({ input }: TRPCHandlerParams) => { +const resetPassword = async ({ input }: TRPCHandlerParams) => { const { code, password, email } = input const response = await cognitoResetPassword({ email: email.toLowerCase(), password, code }) return response diff --git a/packages/api/router/user/mutation.submitSurvey.handler.ts b/packages/api/router/user/mutation.submitSurvey.handler.ts index 839d6e74b3..ce73c90a69 100644 --- a/packages/api/router/user/mutation.submitSurvey.handler.ts +++ b/packages/api/router/user/mutation.submitSurvey.handler.ts @@ -3,7 +3,7 @@ import { type TRPCHandlerParams } from '~api/types/handler' import { type TSubmitSurveySchema } from './mutation.submitSurvey.schema' -export const submitSurvey = async ({ input }: TRPCHandlerParams) => { +const submitSurvey = async ({ input }: TRPCHandlerParams) => { const survey = await prisma.userSurvey.create(input) return survey.id } diff --git a/packages/api/router/user/query.getLocationPermissions.handler.ts b/packages/api/router/user/query.getLocationPermissions.handler.ts index 4928937037..bdcb486678 100644 --- a/packages/api/router/user/query.getLocationPermissions.handler.ts +++ b/packages/api/router/user/query.getLocationPermissions.handler.ts @@ -1,7 +1,7 @@ import { prisma } from '@weareinreach/db' import { type TRPCHandlerParams } from '~api/types/handler' -export const getLocationPermissions = async ({ ctx }: TRPCHandlerParams) => { +const getLocationPermissions = async ({ ctx }: TRPCHandlerParams) => { const permissions = await prisma.locationPermission.findMany({ where: { userId: ctx.session.user.id, diff --git a/packages/api/router/user/query.getOrgPermissions.handler.ts b/packages/api/router/user/query.getOrgPermissions.handler.ts index 5f576d6a8c..c2b841f295 100644 --- a/packages/api/router/user/query.getOrgPermissions.handler.ts +++ b/packages/api/router/user/query.getOrgPermissions.handler.ts @@ -1,7 +1,7 @@ import { prisma } from '@weareinreach/db' import { type TRPCHandlerParams } from '~api/types/handler' -export const getOrgPermissions = async ({ ctx }: TRPCHandlerParams) => { +const getOrgPermissions = async ({ ctx }: TRPCHandlerParams) => { const permissions = await prisma.organizationPermission.findMany({ where: { userId: ctx.session.user.id, diff --git a/packages/api/router/user/query.getPermissions.handler.ts b/packages/api/router/user/query.getPermissions.handler.ts index 23119fd0b9..4d1c11c1ce 100644 --- a/packages/api/router/user/query.getPermissions.handler.ts +++ b/packages/api/router/user/query.getPermissions.handler.ts @@ -1,7 +1,7 @@ import { prisma } from '@weareinreach/db' import { type TRPCHandlerParams } from '~api/types/handler' -export const getPermissions = async ({ ctx }: TRPCHandlerParams) => { +const getPermissions = async ({ ctx }: TRPCHandlerParams) => { const permissions = await prisma.userPermission.findMany({ where: { userId: ctx.session.user.id, diff --git a/packages/api/router/user/query.getProfile.handler.ts b/packages/api/router/user/query.getProfile.handler.ts index d876e55f30..32a1ecadc9 100644 --- a/packages/api/router/user/query.getProfile.handler.ts +++ b/packages/api/router/user/query.getProfile.handler.ts @@ -1,7 +1,7 @@ import { prisma } from '@weareinreach/db' import { type TRPCHandlerParams } from '~api/types/handler' -export const getProfile = async ({ ctx }: TRPCHandlerParams) => { +const getProfile = async ({ ctx }: TRPCHandlerParams) => { const profile = await prisma.user.findUniqueOrThrow({ where: { id: ctx.session.user.id, diff --git a/packages/api/router/user/query.surveyOptions.handler.ts b/packages/api/router/user/query.surveyOptions.handler.ts index 2d23ed84d9..b1d5dcae24 100644 --- a/packages/api/router/user/query.surveyOptions.handler.ts +++ b/packages/api/router/user/query.surveyOptions.handler.ts @@ -1,6 +1,6 @@ import { prisma } from '@weareinreach/db' -export const surveyOptions = async () => { +const surveyOptions = async () => { const commonSelect = { id: true, tsKey: true, tsNs: true } const [immigration, sog, ethnicity, community, countries] = await Promise.all([ diff --git a/packages/api/trpc/client.ts b/packages/api/trpc/client.ts index 383e4a6be4..6c20494f26 100644 --- a/packages/api/trpc/client.ts +++ b/packages/api/trpc/client.ts @@ -2,7 +2,6 @@ import { httpBatchLink, loggerLink } from '@trpc/client' import { createTRPCNext, type WithTRPCConfig } from '@trpc/next' import { type inferRouterInputs, type inferRouterOutputs } from '@trpc/server' -import { devtoolsLink } from 'trpc-client-devtools-link' import { getEnv } from '@weareinreach/env' import { transformer } from '@weareinreach/util/transformer' @@ -10,17 +9,21 @@ import { transformer } from '@weareinreach/util/transformer' import { type AppRouter } from '../router' const getBaseUrl = () => { - if (typeof window !== 'undefined') return '' // browser should use relative url - if (getEnv('VERCEL_URL')) return `https://${getEnv('VERCEL_URL')}` // SSR should use vercel url - return `http://localhost:${getEnv('PORT') ?? 3000}` // dev SSR should use localhost + // browser should use relative url + if (typeof window !== 'undefined') { + return '' + } + // SSR should use vercel url + if (getEnv('VERCEL_URL')) { + return `https://${getEnv('VERCEL_URL')}` + } + // dev SSR should use localhost + return `http://localhost:${getEnv('PORT') ?? process.env.STORYBOOK ? 6006 : 3000}` } export const trpcConfig = { transformer, links: [ - devtoolsLink({ - enabled: process.env.NODE_ENV === 'development', - }), loggerLink({ enabled: (opts) => (process.env.NODE_ENV === 'development' && typeof window !== 'undefined') || diff --git a/packages/api/turbo/generators/templates/handlers/handler.ts.hbs b/packages/api/turbo/generators/templates/handlers/handler.ts.hbs index 6c54a4c53a..664246a0c9 100644 --- a/packages/api/turbo/generators/templates/handlers/handler.ts.hbs +++ b/packages/api/turbo/generators/templates/handlers/handler.ts.hbs @@ -6,9 +6,9 @@ import { type T{{pascalCase name}}Schema } from './{{operation}}.{{name}}.schema {{/if}} {{#if createSchema}} -export const {{name}} = async ({ctx, input}: TRPCHandlerParams) => { +const {{name}} = async ({ctx, input}: TRPCHandlerParams) => { {{else}} -export const {{name}} = async ({ctx}: TRPCHandlerParams) => { +const {{name}} = async ({ctx}: TRPCHandlerParams) => { {{/if}} try { {{#if isMutation}} diff --git a/packages/ui/.storybook/decorators/Trpc.tsx b/packages/ui/.storybook/decorators/Trpc.tsx index 5e0e26e201..481594d980 100644 --- a/packages/ui/.storybook/decorators/Trpc.tsx +++ b/packages/ui/.storybook/decorators/Trpc.tsx @@ -2,8 +2,7 @@ import { type StoryContext, type StoryFn } from '@storybook/react' import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { ReactQueryDevtools } from '@tanstack/react-query-devtools' import { httpLink, loggerLink } from '@trpc/client' -import { /*useEffect,*/ useState } from 'react' -import { devtoolsLink } from 'trpc-client-devtools-link' +import { useState } from 'react' import { transformer } from '@weareinreach/util/transformer' import { type StorybookTRPC, trpc } from '~ui/lib/trpcClient' @@ -26,9 +25,6 @@ export const WithTRPC = (Story: StoryFn, { parameters }: StoryContext) => { const trpcClientOpts = { links: [ - devtoolsLink({ - enabled: true, - }), loggerLink(), httpLink({ url: '/trpc', @@ -38,12 +34,6 @@ export const WithTRPC = (Story: StoryFn, { parameters }: StoryContext) => { } const [trpcClient, _setTRPCClient] = useState(storybookTRPC.createClient(trpcClientOpts)) - // useEffect(() => { - // // queryClient.clear() - // const trpc_client = storybookTRPC.createClient(trpcClientOpts) - // setTRPCClient(trpc_client) - // // eslint-disable-next-line react-hooks/exhaustive-deps - // }, [queryClient]) return ( diff --git a/packages/ui/lib/trpcClient.ts b/packages/ui/lib/trpcClient.ts index 0aa9ae3805..06041df469 100644 --- a/packages/ui/lib/trpcClient.ts +++ b/packages/ui/lib/trpcClient.ts @@ -6,16 +6,22 @@ import { } from '@trpc/client' import { createTRPCNext } from '@trpc/next' import { createTRPCReact } from '@trpc/react-query' -import { devtoolsLink } from 'trpc-client-devtools-link' import { type AppRouter } from '@weareinreach/api' import { getEnv } from '@weareinreach/env' import { transformer } from '@weareinreach/util/transformer' export const getBaseUrl = () => { - if (typeof window !== 'undefined') return '' // browser should use relative url - if (getEnv('VERCEL_URL')) return `https://${getEnv('VERCEL_URL')}` // SSR should use vercel url - return `http://localhost:${getEnv('PORT') ?? process.env.STORYBOOK ? 6006 : 3000}` // dev SSR should use localhost + // browser should use relative url + if (typeof window !== 'undefined') { + return '' + } + // SSR should use vercel url + if (getEnv('VERCEL_URL')) { + return `https://${getEnv('VERCEL_URL')}` + } + // dev SSR should use localhost + return `http://localhost:${getEnv('PORT') ?? process.env.STORYBOOK ? 6006 : 3000}` } const isDev = process.env.NODE_ENV === 'development' && process.env.VERCEL !== '1' @@ -28,9 +34,6 @@ export const nextTRPC = () => links: [ ...(isDev ? [ - devtoolsLink({ - enabled: isDev, - }), loggerLink({ enabled: () => isDev, }), diff --git a/packages/ui/package.json b/packages/ui/package.json index 488c532beb..1b50d1206e 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -166,7 +166,6 @@ "storybook": "7.6.18", "storybook-addon-pseudo-states": "2.2.1", "style-loader": "3.3.4", - "trpc-client-devtools-link": "0.2.1-next", "tsconfig-paths-webpack-plugin": "4.1.0", "tsx": "4.7.2", "type-fest": "4.16.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1685c2a716..e6a619ab87 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,7 @@ settings: excludeLinksFromLockfile: false overrides: + '@tanstack/react-table@8.10.6': '@tanstack/react-table@8.16.0' better-sqlite3@<9: ^9.0.0 sourcemap-codec: npm:@jridgewell/sourcemap-codec @@ -381,9 +382,6 @@ importers: '@types/react-dom': specifier: 18.2.25 version: 18.2.25 - '@types/umami': - specifier: 0.1.5 - version: 0.1.5 '@typescript-eslint/eslint-plugin': specifier: 7.7.1 version: 7.7.1(@typescript-eslint/parser@7.7.1(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5) @@ -420,9 +418,6 @@ importers: prettier: specifier: 3.2.5 version: 3.2.5 - trpc-client-devtools-link: - specifier: 0.2.1-next - version: 0.2.1-next(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2) trpc-panel: specifier: 1.3.4 version: 1.3.4(patch_hash=3z2tx2cn67fyw5s2xdx73dxaji)(@trpc/server@10.45.2)(zod@3.23.3) @@ -794,9 +789,6 @@ importers: prettier: specifier: 3.2.5 version: 3.2.5 - trpc-client-devtools-link: - specifier: 0.2.1-next - version: 0.2.1-next(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2) trpc-panel: specifier: 1.3.4 version: 1.3.4(patch_hash=3z2tx2cn67fyw5s2xdx73dxaji)(@trpc/server@10.45.2)(zod@3.23.3) @@ -1672,9 +1664,6 @@ importers: style-loader: specifier: 3.3.4 version: 3.3.4(webpack@5.91.0(@swc/core@1.4.17(@swc/helpers@0.5.10))(esbuild@0.18.20)) - trpc-client-devtools-link: - specifier: 0.2.1-next - version: 0.2.1-next(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2) tsconfig-paths-webpack-plugin: specifier: 4.1.0 version: 4.1.0 @@ -5449,13 +5438,6 @@ packages: react: '>=16.8' react-dom: '>=16.8' - '@tanstack/react-table@8.10.6': - resolution: {integrity: sha512-D0VEfkIYnIKdy6SHiBNEaMc4SxO+MV7ojaPhRu8jP933/gbMi367+Wul2LxkdovJ5cq6awm0L1+jgxdS/unzIg==} - engines: {node: '>=12'} - peerDependencies: - react: '>=16' - react-dom: '>=16' - '@tanstack/react-table@8.16.0': resolution: {integrity: sha512-rKRjnt8ostqN2fercRVOIH/dq7MAmOENCMvVlKx6P9Iokhh6woBGnIZEkqsY/vEJf1jN3TqLOb34xQGLVRuhAg==} engines: {node: '>=12'} @@ -5468,10 +5450,6 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 - '@tanstack/table-core@8.10.6': - resolution: {integrity: sha512-9t8brthhAmCBIjzk7fCDa/kPKoLQTtA31l9Ir76jYxciTlHU61r/6gYm69XF9cbg9n88gVL5y7rNpeJ2dc1AFA==} - engines: {node: '>=12'} - '@tanstack/table-core@8.16.0': resolution: {integrity: sha512-dCG8vQGk4js5v88/k83tTedWOwjGnIyONrKpHpfmSJB8jwFHl8GSu1sBBxbtACVAPtAQgwNxl0rw1d3RqRM1Tg==} engines: {node: '>=12'} @@ -5930,9 +5908,6 @@ packages: '@types/trusted-types@2.0.7': resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} - '@types/umami@0.1.5': - resolution: {integrity: sha512-9MG8FuWArG85OOppjTU41AXF0ifAysjqqUgs68J1LOqOZKOHXLKv3G1NOYRKMAacYeL4f8rYR/spVAa+RfmDDA==} - '@types/unist@2.0.10': resolution: {integrity: sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==} @@ -13683,12 +13658,6 @@ packages: trough@2.2.0: resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==} - trpc-client-devtools-link@0.2.1-next: - resolution: {integrity: sha512-juHl8SSsVywR7U98KqcRb7/dYVnTcnZNboRF3l87zwtFcbVWz60R2dSAMrjD7jY2qAZ7VJYUbx1gvDKC2SaJvw==} - peerDependencies: - '@trpc/client': ^10.0.0-proxy-beta.10 - '@trpc/server': ^10.0.0-proxy-beta.10 - trpc-panel@1.3.4: resolution: {integrity: sha512-u5/dCi/AAp2tpJcCL5ZCfrdJtHHu8hrtm2hzSBZCE7z9Tw6MB1rCcliSQvgMPIEXMQrgwXk4t4IedfWkxioKng==} peerDependencies: @@ -20118,12 +20087,6 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@tanstack/react-table@8.10.6(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': - dependencies: - '@tanstack/table-core': 8.10.6 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - '@tanstack/react-table@8.16.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@tanstack/table-core': 8.16.0 @@ -20135,8 +20098,6 @@ snapshots: '@tanstack/virtual-core': 3.0.0-beta.63 react: 18.2.0 - '@tanstack/table-core@8.10.6': {} - '@tanstack/table-core@8.16.0': {} '@tanstack/virtual-core@3.0.0-beta.63': {} @@ -20653,8 +20614,6 @@ snapshots: '@types/trusted-types@2.0.7': {} - '@types/umami@0.1.5': {} - '@types/unist@2.0.10': {} '@types/unist@3.0.2': {} @@ -26344,7 +26303,7 @@ snapshots: '@mantine/hooks': 6.0.21(react@18.2.0) '@tabler/icons-react': 3.2.0(react@18.2.0) '@tanstack/match-sorter-utils': 8.8.4 - '@tanstack/react-table': 8.10.6(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@tanstack/react-table': link:@tanstack/react-table@8.16.0 '@tanstack/react-virtual': 3.0.0-beta.63(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -30405,12 +30364,6 @@ snapshots: trough@2.2.0: {} - trpc-client-devtools-link@0.2.1-next(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2): - dependencies: - '@trpc/client': 10.45.2(@trpc/server@10.45.2) - '@trpc/server': 10.45.2 - superjson: 1.13.3 - trpc-panel@1.3.4(patch_hash=3z2tx2cn67fyw5s2xdx73dxaji)(@trpc/server@10.45.2)(zod@3.23.3): dependencies: '@trpc/server': 10.45.2