• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

inclusion-numerique / coop-mediation-numerique / 007bf683-4a98-4b4b-a255-f7bd09910bbe

08 Apr 2026 12:12PM UTC coverage: 7.47% (-3.1%) from 10.61%
007bf683-4a98-4b4b-a255-f7bd09910bbe

push

circleci

web-flow
Merge pull request #471 from inclusion-numerique/feat/quick-access

feat: quick access items

500 of 10544 branches covered (4.74%)

Branch coverage included in aggregate %.

0 of 5 new or added lines in 1 file covered. (0.0%)

1379 existing lines in 153 files now uncovered.

1500 of 16230 relevant lines covered (9.24%)

36.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/web/src/auth/serializePrismaSessionUser.ts
1
import type {
2
  PrismaSessionUser,
3
  PrismaSessionUsupper,
4
} from '@app/web/auth/getSessionUserFromSessionToken'
5
import type { SessionUser } from '@app/web/auth/sessionUser'
6
import { splitMediateursCoordonnes } from '@app/web/features/mediateurs/splitMediateursCoordonnes'
7

8
/**
9
 * This is the session user that will be publicly sent to the client.
10
 * DO NOT INCLUDE ANY SECRET DATA IN THIS OBJECT
11
 */
UNCOV
12
export const serializePrismaSessionUser = (
×
13
  prismaSessionUser: PrismaSessionUser,
14
  usurper?: PrismaSessionUsupper,
15
): SessionUser => ({
×
16
  ...prismaSessionUser,
17
  coordinateur: splitMediateursCoordonnes(prismaSessionUser.coordinateur),
18
  emailVerified: prismaSessionUser.emailVerified?.toISOString() ?? null,
×
19
  created: prismaSessionUser.created.toISOString(),
20
  updated: prismaSessionUser.updated.toISOString(),
21
  hasSeenOnboarding: prismaSessionUser.hasSeenOnboarding?.toISOString() ?? null,
×
22
  inscriptionValidee:
23
    prismaSessionUser.inscriptionValidee?.toISOString() ?? null,
×
24
  structureEmployeuseRenseignee:
25
    prismaSessionUser.structureEmployeuseRenseignee?.toISOString() ?? null,
×
26
  lieuxActiviteRenseignes:
27
    prismaSessionUser.lieuxActiviteRenseignes?.toISOString() ?? null,
×
28
  usurper: usurper ?? null,
×
29
  rdvAccount: prismaSessionUser.rdvAccount
×
30
    ? {
31
        id: prismaSessionUser.rdvAccount.id,
32
        hasOauthTokens: !!(
33
          prismaSessionUser.rdvAccount.accessToken &&
×
34
          prismaSessionUser.rdvAccount.refreshToken
35
        ),
36
        error: prismaSessionUser.rdvAccount.error ?? null,
×
37
        includeRdvsInActivitesList:
38
          prismaSessionUser.rdvAccount.includeRdvsInActivitesList,
39
        created: prismaSessionUser.rdvAccount.created.toISOString(),
40
        updated: prismaSessionUser.rdvAccount.updated.toISOString(),
41
        syncFrom: prismaSessionUser.rdvAccount.syncFrom?.toISOString() ?? null,
×
42
        lastSynced:
43
          prismaSessionUser.rdvAccount.lastSynced?.toISOString() ?? null,
×
44
        organisations: prismaSessionUser.rdvAccount.organisations.map(
45
          ({ organisation }) => organisation,
×
46
        ),
47
        invalidWebhookOrganisationIds:
48
          prismaSessionUser.rdvAccount.invalidWebhookOrganisationIds ?? [],
×
49
      }
50
    : null,
51
})
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc