2023-05-02 12:05:17 +00:00
|
|
|
export const packedChannelSchema = {
|
|
|
|
type: 'object',
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
example: 'xxxxxxxxxx',
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
lastNotedAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'string',
|
|
|
|
nullable: true, optional: false,
|
|
|
|
},
|
|
|
|
bannerUrl: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'url',
|
|
|
|
nullable: true, optional: false,
|
|
|
|
},
|
2023-05-10 14:21:54 +00:00
|
|
|
isArchived: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-05-02 12:05:17 +00:00
|
|
|
notesCount: {
|
|
|
|
type: 'number',
|
|
|
|
nullable: false, optional: false,
|
|
|
|
},
|
|
|
|
usersCount: {
|
|
|
|
type: 'number',
|
|
|
|
nullable: false, optional: false,
|
|
|
|
},
|
|
|
|
isFollowing: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
|
|
|
isFavorited: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
|
|
|
userId: {
|
|
|
|
type: 'string',
|
|
|
|
nullable: true, optional: false,
|
|
|
|
format: 'id',
|
|
|
|
},
|
|
|
|
pinnedNoteIds: {
|
|
|
|
type: 'array',
|
|
|
|
nullable: false, optional: false,
|
|
|
|
items: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'id',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
color: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|