wip: clip
This commit is contained in:
parent
d53c55ecb5
commit
8e8459fa55
6 changed files with 193 additions and 4 deletions
|
@ -15,8 +15,10 @@ export class ClipRepository extends Repository<Clip> {
|
|||
return {
|
||||
id: clip.id,
|
||||
createdAt: clip.createdAt.toISOString(),
|
||||
userId: clip.userId,
|
||||
name: clip.name,
|
||||
description: clip.description,
|
||||
isPublic: clip.isPublic,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +40,11 @@ export const packedClipSchema = {
|
|||
format: 'date-time',
|
||||
description: 'The date that the Clip was created.'
|
||||
},
|
||||
userId: {
|
||||
type: 'string' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
format: 'id',
|
||||
},
|
||||
name: {
|
||||
type: 'string' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
|
@ -48,5 +55,10 @@ export const packedClipSchema = {
|
|||
optional: false as const, nullable: true as const,
|
||||
description: 'The description of the Clip.'
|
||||
},
|
||||
isPublic: {
|
||||
type: 'boolean' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
description: 'Whether this Clip is public.',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue