@seayoo-web/gamer-api 4.5.5 → 4.5.6
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 +9 -6
- package/package.json +5 -5
- package/types/src/event.methods.d.ts +5 -1
package/dist/index.js
CHANGED
|
@@ -1235,15 +1235,18 @@ async function ei(e, t) {
|
|
|
1235
1235
|
let { data: n } = await this.req.post("event/unlimit-qrcode", a(e), Or, t);
|
|
1236
1236
|
return n?.img ?? null;
|
|
1237
1237
|
}
|
|
1238
|
-
async function ti(e, t) {
|
|
1238
|
+
async function ti(e, t, n) {
|
|
1239
1239
|
if (!await this.token.autoLogin()) return null;
|
|
1240
|
-
let { data:
|
|
1241
|
-
|
|
1240
|
+
let { data: r, code: i, message: a } = await this.req.get(`event/${this.event}/quest-progress`, {
|
|
1241
|
+
feature_id: e,
|
|
1242
1242
|
...t
|
|
1243
|
+
}, kr, {
|
|
1244
|
+
message: !1,
|
|
1245
|
+
...n
|
|
1243
1246
|
});
|
|
1244
|
-
return
|
|
1245
|
-
message:
|
|
1246
|
-
error:
|
|
1247
|
+
return r || {
|
|
1248
|
+
message: a,
|
|
1249
|
+
error: i
|
|
1247
1250
|
};
|
|
1248
1251
|
}
|
|
1249
1252
|
async function ni(e, t) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.6",
|
|
4
4
|
"description": "agent for gamer api",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "web@seayoo.com",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"happy-dom": "^13.10.1",
|
|
32
32
|
"vitest": "^4.1.4",
|
|
33
33
|
"@seayoo-web/combo-webview": "2.9.8",
|
|
34
|
-
"@seayoo-web/scripts": "4.3.10",
|
|
35
|
-
"@seayoo-web/tsconfig": "1.0.6",
|
|
36
|
-
"@seayoo-web/utils": "4.5.5",
|
|
37
34
|
"@seayoo-web/request": "4.1.3",
|
|
35
|
+
"@seayoo-web/scripts": "4.3.11",
|
|
36
|
+
"@seayoo-web/tsconfig": "1.0.7",
|
|
37
|
+
"@seayoo-web/utils": "4.5.5",
|
|
38
38
|
"@seayoo-web/validator": "2.3.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/combo-webview": "^2.9.8",
|
|
42
41
|
"@seayoo-web/utils": "^4.5.5",
|
|
42
|
+
"@seayoo-web/combo-webview": "^2.9.8",
|
|
43
43
|
"@seayoo-web/validator": "^2.3.1"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
@@ -238,7 +238,11 @@ export declare function generateUnlimitQrcode(this: ApiInstance, option: {
|
|
|
238
238
|
*
|
|
239
239
|
* https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=ZAnm12d3f0
|
|
240
240
|
*/
|
|
241
|
-
export declare function getQuestProgress(this: ApiInstance, featureId: number,
|
|
241
|
+
export declare function getQuestProgress(this: ApiInstance, featureId: number, option?: {
|
|
242
|
+
/** 游戏服务器 ID,quest 玩法的 game_task_gm objective 必传。 */
|
|
243
|
+
server_id?: string;
|
|
244
|
+
role_id?: string;
|
|
245
|
+
}, requestOptions?: RequestOptions): Promise<import("./event.engage").QuestProgress | {
|
|
242
246
|
message: string;
|
|
243
247
|
error: RequestInternalError | "invalid_token" | "feature_not_found";
|
|
244
248
|
} | null>;
|