summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema/page.ts
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2023-11-21 11:13:56 +0900
committerGitHub <noreply@github.com>2023-11-21 11:13:56 +0900
commit8bd9077f77eaebaa4dff403e072ba49e4cab1326 (patch)
tree91e217c04667b3d1d7a2abdb7f911c54cd1ae775 /packages/backend/src/models/json-schema/page.ts
parentupdate api.md (#12379) (diff)
downloadsharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.tar.gz
sharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.tar.bz2
sharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.zip
json-schema配下の最新化 (#12312)
* user.ts、page.ts、drive-folder.tsを各EntityServiceの戻り値をもとに最新化 * 再確認 * fix error * note以外の残りのファイルを対応 * fix CHANGELOG.md * fix CHANGELOG.md * fix user.ts * fix user.ts * コメント対応 * fix note.ts --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/models/json-schema/page.ts')
-rw-r--r--packages/backend/src/models/json-schema/page.ts66
1 files changed, 58 insertions, 8 deletions
diff --git a/packages/backend/src/models/json-schema/page.ts b/packages/backend/src/models/json-schema/page.ts
index 3f20a4b802..9baacd6884 100644
--- a/packages/backend/src/models/json-schema/page.ts
+++ b/packages/backend/src/models/json-schema/page.ts
@@ -22,6 +22,32 @@ export const packedPageSchema = {
optional: false, nullable: false,
format: 'date-time',
},
+ userId: {
+ type: 'string',
+ optional: false, nullable: false,
+ format: 'id',
+ },
+ user: {
+ type: 'object',
+ ref: 'UserLite',
+ optional: false, nullable: false,
+ },
+ content: {
+ type: 'array',
+ optional: false, nullable: false,
+ items: {
+ type: 'object',
+ optional: false, nullable: false,
+ },
+ },
+ variables: {
+ type: 'array',
+ optional: false, nullable: false,
+ items: {
+ type: 'object',
+ optional: false, nullable: false,
+ },
+ },
title: {
type: 'string',
optional: false, nullable: false,
@@ -34,23 +60,47 @@ export const packedPageSchema = {
type: 'string',
optional: false, nullable: true,
},
- content: {
- type: 'array',
+ hideTitleWhenPinned: {
+ type: 'boolean',
optional: false, nullable: false,
},
- variables: {
- type: 'array',
+ alignCenter: {
+ type: 'boolean',
optional: false, nullable: false,
},
- userId: {
+ font: {
type: 'string',
optional: false, nullable: false,
- format: 'id',
},
- user: {
+ script: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
+ eyeCatchingImageId: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ eyeCatchingImage: {
type: 'object',
- ref: 'UserLite',
+ optional: false, nullable: true,
+ ref: 'DriveFile',
+ },
+ attachedFiles: {
+ type: 'array',
+ optional: false, nullable: false,
+ items: {
+ type: 'object',
+ optional: false, nullable: false,
+ ref: 'DriveFile',
+ },
+ },
+ likedCount: {
+ type: 'number',
optional: false, nullable: false,
},
+ isLiked: {
+ type: 'boolean',
+ optional: true, nullable: false,
+ },
},
} as const;