@seayoo-web/gamer-api 2.9.3 → 2.9.5
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
CHANGED
|
@@ -1572,8 +1572,16 @@ class Qr {
|
|
|
1572
1572
|
*/
|
|
1573
1573
|
async submitUserRewardAddress(t, n) {
|
|
1574
1574
|
if (!await this.token.autoLogin()) return null;
|
|
1575
|
-
const { ok: r } = await this.req.post(
|
|
1576
|
-
|
|
1575
|
+
const { ok: r, code: a, message: o } = await this.req.post(
|
|
1576
|
+
`event/${this.event}/user-reward-address`,
|
|
1577
|
+
t,
|
|
1578
|
+
null,
|
|
1579
|
+
n
|
|
1580
|
+
);
|
|
1581
|
+
return r || {
|
|
1582
|
+
message: o,
|
|
1583
|
+
error: a
|
|
1584
|
+
};
|
|
1577
1585
|
}
|
|
1578
1586
|
/**
|
|
1579
1587
|
* 小程序码携带参数最多 32 个可见字符,若前端携带参数过长,则将参数保存在 api 中,并返回符合小程序码要求的 scene
|
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.9.
|
|
4
|
+
"version": "2.9.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
-
"@seayoo-web/utils": "4.1.
|
|
33
|
+
"@seayoo-web/utils": "4.1.1",
|
|
34
34
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
35
35
|
"@seayoo-web/combo-webview": "2.6.0",
|
|
36
36
|
"@seayoo-web/validator": "1.1.0",
|
|
37
|
-
"@seayoo-web/
|
|
38
|
-
"@seayoo-web/
|
|
37
|
+
"@seayoo-web/scripts": "3.1.1",
|
|
38
|
+
"@seayoo-web/request": "3.4.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@seayoo-web/combo-webview": "2.6.0",
|
|
42
|
-
"@seayoo-web/utils": "4.1.
|
|
43
|
-
"@seayoo-web/validator": "1.1.0"
|
|
41
|
+
"@seayoo-web/combo-webview": "^2.6.0",
|
|
42
|
+
"@seayoo-web/utils": "^4.1.1",
|
|
43
|
+
"@seayoo-web/validator": "^1.1.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type InferType } from "@seayoo-web/validator";
|
|
2
2
|
import { type EventFeatureBaseConfig } from "./feature.base";
|
|
3
|
-
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"
|
|
3
|
+
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "credit" | "external_gift_code" | "void_item", false, false>;
|
|
4
4
|
declare const featureType: "lottery";
|
|
5
5
|
export interface FeatureLotteryItemConfig {
|
|
6
6
|
/** 抽奖奖励道具 id */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InferType } from "@seayoo-web/validator";
|
|
2
|
-
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"
|
|
2
|
+
declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "credit" | "external_gift_code" | "void_item", false, false>;
|
|
3
3
|
export interface EventRewardItemConfig {
|
|
4
4
|
/** 玩法奖励道具 id */
|
|
5
5
|
reward_item_id: number;
|
package/types/src/event.d.ts
CHANGED
|
@@ -243,7 +243,10 @@ export declare class EventApi {
|
|
|
243
243
|
district: string;
|
|
244
244
|
/** 详细收货地址 */
|
|
245
245
|
address: string;
|
|
246
|
-
}, requestOptions?: IRequestOptions): Promise<
|
|
246
|
+
}, requestOptions?: IRequestOptions): Promise<true | {
|
|
247
|
+
message: string;
|
|
248
|
+
error: RequestInternalError | "invalid_token" | "event_not_found" | "address_not_found";
|
|
249
|
+
} | null>;
|
|
247
250
|
/**
|
|
248
251
|
* 小程序码携带参数最多 32 个可见字符,若前端携带参数过长,则将参数保存在 api 中,并返回符合小程序码要求的 scene
|
|
249
252
|
*
|