mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-23 18:55:40 +00:00
20 lines
675 B
TypeScript
20 lines
675 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),
|
|
})
|
|
|
|
export const existTypeBoxSchema = t.Object({
|
|
exists: t.Boolean(),
|
|
})
|