@seayoo-web/gamer-api 2.14.1 → 2.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -9
- package/package.json +4 -4
- package/types/src/club.define.d.ts +8 -18
- package/types/src/utils.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -335,15 +335,12 @@ const Ve = {
|
|
|
335
335
|
bio: e.string(),
|
|
336
336
|
gender: Re,
|
|
337
337
|
birthday: e.object({ year: e.number(), month: e.number(), day: e.number() }),
|
|
338
|
-
social_medias: e.
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
huya: e.string().optional(),
|
|
345
|
-
douyu: e.string().optional()
|
|
346
|
-
}).optional()
|
|
338
|
+
social_medias: e.record(
|
|
339
|
+
e.object({
|
|
340
|
+
homepage_url: e.string(),
|
|
341
|
+
homepage_image_url: e.string()
|
|
342
|
+
}).optional()
|
|
343
|
+
).optional()
|
|
347
344
|
}).lock(), Z = e.object({
|
|
348
345
|
address_id: e.number(),
|
|
349
346
|
recipient: e.string(),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
3
|
"description": "agent for gamer api",
|
|
4
|
-
"version": "2.14.
|
|
4
|
+
"version": "2.14.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"@seayoo-web/combo-webview": "2.8.0",
|
|
34
34
|
"@seayoo-web/request": "3.4.2",
|
|
35
35
|
"@seayoo-web/scripts": "3.1.6",
|
|
36
|
-
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
36
|
"@seayoo-web/utils": "4.1.3",
|
|
37
|
+
"@seayoo-web/tsconfig": "1.0.5",
|
|
38
38
|
"@seayoo-web/validator": "2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@seayoo-web/combo-webview": "^2.8.0",
|
|
42
|
-
"@seayoo-web/
|
|
43
|
-
"@seayoo-web/
|
|
42
|
+
"@seayoo-web/validator": "^2.0.0",
|
|
43
|
+
"@seayoo-web/utils": "^4.1.3"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -118,22 +118,6 @@ export declare const PlayerRoleCardValidator: import("@seayoo-web/validator").Ob
|
|
|
118
118
|
maybeNull: never;
|
|
119
119
|
lock: never;
|
|
120
120
|
};
|
|
121
|
-
export type SocialMedia = {
|
|
122
|
-
/** 抖音 */
|
|
123
|
-
douyin?: string;
|
|
124
|
-
/** 小红书 */
|
|
125
|
-
xiaohongshu?: string;
|
|
126
|
-
/** taptap */
|
|
127
|
-
taptap?: string;
|
|
128
|
-
/** bilibili */
|
|
129
|
-
bilibili?: string;
|
|
130
|
-
/** 微博 */
|
|
131
|
-
weibo?: string;
|
|
132
|
-
/** 虎牙 */
|
|
133
|
-
huya?: string;
|
|
134
|
-
/** 斗鱼 */
|
|
135
|
-
douyu?: string;
|
|
136
|
-
};
|
|
137
121
|
export type ClubUserProfile = {
|
|
138
122
|
/** 用户昵称 */
|
|
139
123
|
name: string;
|
|
@@ -150,8 +134,14 @@ export type ClubUserProfile = {
|
|
|
150
134
|
day: number;
|
|
151
135
|
};
|
|
152
136
|
/** 社交媒体信息 */
|
|
153
|
-
social_medias?:
|
|
154
|
-
};
|
|
137
|
+
social_medias?: Record<string, Homepage | undefined>;
|
|
138
|
+
};
|
|
139
|
+
export interface Homepage {
|
|
140
|
+
/** 主页链接 */
|
|
141
|
+
homepage_url: string;
|
|
142
|
+
/** 主页截图链接 */
|
|
143
|
+
homepage_image_url: string;
|
|
144
|
+
}
|
|
155
145
|
export declare const ClubUserProfileValidator: import("@seayoo-web/validator").ObjectValidator<ClubUserProfile, false, false> & {
|
|
156
146
|
desc: never;
|
|
157
147
|
plain: never;
|
package/types/src/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const console: Pick<Console, "
|
|
1
|
+
export declare const console: Pick<Console, "log" | "error" | "warn">;
|
|
2
2
|
/** 检测是否在 combo webview */
|
|
3
3
|
export declare function inComboWebview(): boolean;
|
|
4
4
|
export declare function isRootEndpoint(path: string): boolean;
|