mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
16 lines
603 B
TypeScript
16 lines
603 B
TypeScript
import { TypeBoxFromValibot } from '@sinclair/typemap'
|
|
import { t } from 'elysia'
|
|
import { hieroIdSchema, uuidv4Schema } from '../schemas/typeGuard.schema'
|
|
|
|
export const accountIdentifierUserTypeBoxSchema = t.Object({
|
|
communityTopicId: TypeBoxFromValibot(hieroIdSchema),
|
|
userUuid: TypeBoxFromValibot(uuidv4Schema),
|
|
accountNr: t.Number({ min: 0 }),
|
|
})
|
|
|
|
// identifier for a gradido account created by transaction link / deferred transfer
|
|
export const accountIdentifierSeedTypeBoxSchema = t.Object({
|
|
communityTopicId: TypeBoxFromValibot(hieroIdSchema),
|
|
seed: TypeBoxFromValibot(uuidv4Schema),
|
|
})
|