Skip to content

Commit

Permalink
Make PREreviewer ORCID iDs available
Browse files Browse the repository at this point in the history
Refs #43
  • Loading branch information
thewilkybarkid committed Aug 16, 2024
1 parent 109523c commit c2e3e82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/users.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { NodeTerminal } from '@effect/platform-node'
import { Schema } from '@effect/schema'
import { Array, Config, Effect, Option, Redacted } from 'effect'
import * as Iso3166 from '../lib/Iso3166.js'
import * as OrcidId from '../lib/OrcidId.js'
import * as Temporal from '../lib/Temporal.js'

const Users = Schema.Array(
Schema.Struct({
orcid: OrcidId.OrcidIdSchema,
careerStage: Schema.OptionFromUndefinedOr(Schema.Literal('early', 'mid', 'late')),
location: Schema.OptionFromUndefinedOr(Schema.String),
timestamp: Temporal.InstantFromStringSchema,
Expand All @@ -15,6 +17,7 @@ const Users = Schema.Array(

const Output = Schema.Array(
Schema.Struct({
orcid: OrcidId.OrcidIdSchema,
careerStage: Schema.OptionFromUndefinedOr(Schema.Literal('early', 'mid', 'late')),
location: Schema.OptionFromUndefinedOr(Schema.String),
country: Schema.OptionFromUndefinedOr(Iso3166.Alpha2CodeSchema),
Expand Down

0 comments on commit c2e3e82

Please sign in to comment.