Skip to content

Commit 8e4ab4a

Browse files
committed
[create-pull-request] automated change
1 parent c102a69 commit 8e4ab4a

File tree

3 files changed

+65
-54
lines changed

3 files changed

+65
-54
lines changed

packages/client/api.yaml

+43-51
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ components:
116116
type: string
117117
type:
118118
anyOf:
119-
- const: 0
119+
- enum:
120+
- 0
120121
type: number
121122
- enum:
122123
- 1
@@ -1090,8 +1091,7 @@ paths:
10901091
replyTo:
10911092
default: 0
10921093
description: 被回复的 topic ID, `0` 代表回复楼主
1093-
examples:
1094-
- 0
1094+
example: 0
10951095
type: integer
10961096
required:
10971097
- content
@@ -1750,14 +1750,11 @@ paths:
17501750
properties:
17511751
date:
17521752
description: YYYY-MM-DD
1753-
examples:
1754-
- '2022-02-02'
1753+
example: '2022-02-02'
17551754
pattern: ^\d{4}-\d{2}-\d{2}$
17561755
type: string
17571756
duration:
1758-
examples:
1759-
- '24:53'
1760-
- 24m52s
1757+
example: '24:53'
17611758
type: string
17621759
ep:
17631760
type: number
@@ -1769,7 +1766,8 @@ paths:
17691766
type: string
17701767
type:
17711768
anyOf:
1772-
- const: 0
1769+
- enum:
1770+
- 0
17731771
type: number
17741772
- enum:
17751773
- 1
@@ -1926,46 +1924,44 @@ paths:
19261924
minLength: 1
19271925
type: string
19281926
subject:
1929-
examples:
1930-
- infobox: |-
1931-
{{Infobox animanga/TVAnime
1932-
|中文名= 沙盒
1933-
|别名={
1934-
}
1935-
|话数= 7
1936-
|放送开始= 0000-10-06
1937-
|放送星期=
1938-
|官方网站=
1939-
|播放电视台=
1940-
|其他电视台=
1941-
|播放结束=
1942-
|其他=
1943-
|Copyright=
1944-
|平台={
1945-
[龟壳]
1946-
[Xbox Series S]
1947-
[Xbox Series X]
1948-
[Xbox Series X/S]
1949-
[PC]
1950-
[Xbox Series X|S]
1951-
}
1952-
}}
1953-
name: 沙盒
1954-
nsfw: false
1955-
platform: 0
1956-
summary: >-
1957-
本条目是一个沙盒,可以用于尝试bgm功能。
1927+
example:
1928+
infobox: |-
1929+
{{Infobox animanga/TVAnime
1930+
|中文名= 沙盒
1931+
|别名={
1932+
}
1933+
|话数= 7
1934+
|放送开始= 0000-10-06
1935+
|放送星期=
1936+
|官方网站=
1937+
|播放电视台=
1938+
|其他电视台=
1939+
|播放结束=
1940+
|其他=
1941+
|Copyright=
1942+
|平台={
1943+
[龟壳]
1944+
[Xbox Series S]
1945+
[Xbox Series X]
1946+
[Xbox Series X/S]
1947+
[PC]
1948+
[Xbox Series X|S]
1949+
}
1950+
}}
1951+
name: 沙盒
1952+
nsfw: false
1953+
platform: 0
1954+
summary: >-
1955+
本条目是一个沙盒,可以用于尝试bgm功能。
19581956
19591957
1960-
普通维基人可以随意编辑条目信息以及相关关联查看编辑效果,但是请不要完全删除沙盒说明并且不要关联非沙盒条目/人物/角色。
1958+
普通维基人可以随意编辑条目信息以及相关关联查看编辑效果,但是请不要完全删除沙盒说明并且不要关联非沙盒条目/人物/角色。
19611959
19621960
1963-
https://bgm.tv/group/topic/366812#post_1923517
1961+
https://bgm.tv/group/topic/366812#post_1923517
19641962
properties:
19651963
date:
1966-
examples:
1967-
- '0000-00-00'
1968-
- '2007-01-30'
1964+
example: '0000-00-00'
19691965
pattern: ^\d{4}-\d{2}-\d{2}$
19701966
type: string
19711967
infobox:
@@ -2130,8 +2126,7 @@ paths:
21302126
large:
21312127
type: string
21322128
medium:
2133-
examples:
2134-
- sai
2129+
example: sai
21352130
type: string
21362131
small:
21372132
type: string
@@ -2142,20 +2137,17 @@ paths:
21422137
title: Avatar
21432138
type: object
21442139
id:
2145-
examples:
2146-
- 1
2140+
example: 1
21472141
type: integer
21482142
nickname:
2149-
examples:
2150-
- Sai🖖
2143+
example: Sai🖖
21512144
type: string
21522145
sign:
21532146
type: string
21542147
user_group:
21552148
type: integer
21562149
username:
2157-
examples:
2158-
- sai
2150+
example: sai
21592151
type: string
21602152
required:
21612153
- id

packages/client/client.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export type EpisodeWikiInfo = {
190190
name: string;
191191
nameCN: string;
192192
summary: string;
193-
type: number | 1 | 2 | 3 | 4 | 5 | 6;
193+
type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
194194
};
195195
export type WikiPlatform = {
196196
id: number;
@@ -756,7 +756,7 @@ export function patchEpisodeWikiInfo(
756756
name?: string;
757757
nameCN?: string;
758758
summary?: string;
759-
type?: number | 1 | 2 | 3 | 4 | 5 | 6;
759+
type?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
760760
};
761761
},
762762
opts?: Oazapfts.RequestOpts,

packages/client/types/index.ts

+20-1
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ export interface operations {
579579
/**
580580
* @description 被回复的 topic ID, `0` 代表回复楼主
581581
* @default 0
582+
* @example 0
582583
*/
583584
replyTo?: number;
584585
};
@@ -976,8 +977,12 @@ export interface operations {
976977
'application/json': {
977978
commitMessage: string;
978979
episode: {
979-
/** @description YYYY-MM-DD */
980+
/**
981+
* @description YYYY-MM-DD
982+
* @example 2022-02-02
983+
*/
980984
date?: string;
985+
/** @example 24:53 */
981986
duration?: string;
982987
ep?: number;
983988
name?: string;
@@ -1117,7 +1122,17 @@ export interface operations {
11171122
*/
11181123
'application/json': {
11191124
commitMessage: string;
1125+
/**
1126+
* @example {
1127+
* "infobox": "{{Infobox animanga/TVAnime\n|中文名= 沙盒\n|别名={\n}\n|话数= 7\n|放送开始= 0000-10-06\n|放送星期= \n|官方网站= \n|播放电视台= \n|其他电视台= \n|播放结束= \n|其他= \n|Copyright= \n|平台={\n[龟壳]\n[Xbox Series S]\n[Xbox Series X]\n[Xbox Series X/S]\n[PC]\n[Xbox Series X|S]\n}\n}}",
1128+
* "name": "沙盒",
1129+
* "nsfw": false,
1130+
* "platform": 0,
1131+
* "summary": "本条目是一个沙盒,可以用于尝试bgm功能。\n\n普通维基人可以随意编辑条目信息以及相关关联查看编辑效果,但是请不要完全删除沙盒说明并且不要关联非沙盒条目/人物/角色。\n\nhttps://bgm.tv/group/topic/366812#post_1923517"
1132+
* }
1133+
*/
11201134
subject: {
1135+
/** @example 0000-00-00 */
11211136
date?: string;
11221137
infobox?: string;
11231138
name?: string;
@@ -1163,13 +1178,17 @@ export interface operations {
11631178
/** Avatar */
11641179
avatar: {
11651180
large: string;
1181+
/** @example sai */
11661182
medium: string;
11671183
small: string;
11681184
};
1185+
/** @example 1 */
11691186
id: number;
1187+
/** @example Sai🖖 */
11701188
nickname: string;
11711189
sign: string;
11721190
user_group: number;
1191+
/** @example sai */
11731192
username: string;
11741193
};
11751194
id: number;

0 commit comments

Comments
 (0)