@seayoo-web/gamer-api 2.15.0 → 2.15.2
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 +12 -4
- package/package.json +4 -4
- package/types/src/club.d.ts +4 -1
- package/types/src/event.d.ts +1 -1
- package/types/src/utils.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -585,8 +585,16 @@ class ha {
|
|
|
585
585
|
*/
|
|
586
586
|
async addAddress(t, n) {
|
|
587
587
|
if (!await this.token.autoLogin()) return null;
|
|
588
|
-
const { data: r } = await this.req.post(
|
|
589
|
-
|
|
588
|
+
const { data: r, code: a, message: o } = await this.req.post(
|
|
589
|
+
"/club/add-address",
|
|
590
|
+
c(t),
|
|
591
|
+
B,
|
|
592
|
+
n
|
|
593
|
+
);
|
|
594
|
+
return r ?? {
|
|
595
|
+
message: o,
|
|
596
|
+
error: a
|
|
597
|
+
};
|
|
590
598
|
}
|
|
591
599
|
/**
|
|
592
600
|
* 修改自己的俱乐部收货地址
|
|
@@ -2046,9 +2054,9 @@ class Va {
|
|
|
2046
2054
|
*
|
|
2047
2055
|
* https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=gOqT9svLF7
|
|
2048
2056
|
*/
|
|
2049
|
-
async
|
|
2057
|
+
async getRedeemItemStocks(t, n) {
|
|
2050
2058
|
if (!await this.token.autoLogin()) return null;
|
|
2051
|
-
const { data: r, code: a, message: o } = await this.req.get("event/redeem
|
|
2059
|
+
const { data: r, code: a, message: o } = await this.req.get("event/redeem/item-stocks", Er, {
|
|
2052
2060
|
...n,
|
|
2053
2061
|
params: {
|
|
2054
2062
|
event_id: this.event,
|
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.15.
|
|
4
|
+
"version": "2.15.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
-
"@seayoo-web/tsconfig": "1.0.5",
|
|
34
|
-
"@seayoo-web/request": "3.4.2",
|
|
35
33
|
"@seayoo-web/combo-webview": "2.8.0",
|
|
34
|
+
"@seayoo-web/request": "3.4.2",
|
|
36
35
|
"@seayoo-web/scripts": "3.1.6",
|
|
36
|
+
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
37
|
"@seayoo-web/utils": "4.1.3",
|
|
38
38
|
"@seayoo-web/validator": "2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/utils": "^4.1.3",
|
|
42
41
|
"@seayoo-web/combo-webview": "^2.8.0",
|
|
42
|
+
"@seayoo-web/utils": "^4.1.3",
|
|
43
43
|
"@seayoo-web/validator": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
package/types/src/club.d.ts
CHANGED
|
@@ -91,7 +91,10 @@ export declare class ClubApi {
|
|
|
91
91
|
*
|
|
92
92
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=TaGIIYDRYA
|
|
93
93
|
*/
|
|
94
|
-
addAddress(option: Omit<SomePartial<ClubAddress, "is_default">, "address_id">, requestOptions?: IRequestOptions): Promise<ClubAddress |
|
|
94
|
+
addAddress(option: Omit<SomePartial<ClubAddress, "is_default">, "address_id">, requestOptions?: IRequestOptions): Promise<ClubAddress | {
|
|
95
|
+
message: string;
|
|
96
|
+
error: RequestInternalError;
|
|
97
|
+
} | null>;
|
|
95
98
|
/**
|
|
96
99
|
* 修改自己的俱乐部收货地址
|
|
97
100
|
*
|
package/types/src/event.d.ts
CHANGED
|
@@ -437,7 +437,7 @@ export declare class EventApi {
|
|
|
437
437
|
*
|
|
438
438
|
* https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=gOqT9svLF7
|
|
439
439
|
*/
|
|
440
|
-
|
|
440
|
+
getRedeemItemStocks(featureId: number, requestOptions?: IRequestOptions): Promise<import("./event.engage").RedeemStocksResponse | {
|
|
441
441
|
message: string;
|
|
442
442
|
error: RequestInternalError | "event_not_found" | "feature_not_found";
|
|
443
443
|
} | null>;
|
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, "error" | "log" | "warn">;
|
|
2
2
|
/** 检测是否在 combo webview */
|
|
3
3
|
export declare function inComboWebview(): boolean;
|
|
4
4
|
export declare function isRootEndpoint(path: string): boolean;
|