diff --git a/apps/web/src/mocks/metricData.ts b/apps/web/src/mocks/metricData.ts index c8e097ef0..5809faf8c 100644 --- a/apps/web/src/mocks/metricData.ts +++ b/apps/web/src/mocks/metricData.ts @@ -62,7 +62,8 @@ const dataMetadata: DataMetadata = { const MOCK_DATA: Required = { data: mockData(), metricId: 'mock-metric-1', - data_metadata: dataMetadata + data_metadata: dataMetadata, + has_more_records: false }; export const createMockData = (metricId: string): Required => { diff --git a/packages/server-shared/src/user/responses.types.ts b/packages/server-shared/src/user/responses.types.ts index e3a288e17..2243f3f42 100644 --- a/packages/server-shared/src/user/responses.types.ts +++ b/packages/server-shared/src/user/responses.types.ts @@ -1,14 +1,18 @@ -import { z } from 'zod'; -import { OrganizationSchema } from '../organization/organization.types'; -import { OrganizationRoleSchema } from '../organization/roles.types'; -import { TeamSchema } from '../teams/teams.types'; -import { UserFavoriteSchema } from './favorites.types'; -import { UserSchema } from './users.types'; +import { z } from "zod"; +import { OrganizationSchema } from "../organization/organization.types"; +import { OrganizationRoleSchema } from "../organization/roles.types"; +import { TeamSchema } from "../teams/teams.types"; +import { UserFavoriteSchema } from "./favorites.types"; +import { UserSchema } from "./users.types"; + +const OrganizationUserSchema = OrganizationSchema.extend({ + role: OrganizationRoleSchema, +}); export const UserResponseSchema = z.object({ user: UserSchema, teams: z.array(TeamSchema), - organizations: z.array(OrganizationSchema).nullable(), + organizations: z.array(OrganizationUserSchema).nullable(), }); export const UserListResponseSchema = z.array(