@seayoo-web/gamer-api 2.9.7 → 2.9.9

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/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.7",
4
+ "version": "2.9.9",
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/combo-webview": "2.7.0",
33
+ "@seayoo-web/scripts": "3.1.3",
34
34
  "@seayoo-web/request": "3.4.0",
35
- "@seayoo-web/scripts": "3.1.2",
35
+ "@seayoo-web/combo-webview": "2.7.0",
36
+ "@seayoo-web/utils": "4.1.3",
36
37
  "@seayoo-web/tsconfig": "1.0.5",
37
- "@seayoo-web/validator": "1.1.0",
38
- "@seayoo-web/utils": "4.1.3"
38
+ "@seayoo-web/validator": "1.1.0"
39
39
  },
40
40
  "peerDependencies": {
41
+ "@seayoo-web/combo-webview": "^2.7.0",
41
42
  "@seayoo-web/utils": "^4.1.3",
42
- "@seayoo-web/validator": "^1.1.0",
43
- "@seayoo-web/combo-webview": "^2.7.0"
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",
@@ -96,7 +96,7 @@ export declare class CommunityApi {
96
96
  image_urls?: string[];
97
97
  topic_ids?: number[];
98
98
  }, requestOptions?: IRequestOptions): Promise<{
99
- post: import("./community.define").Post;
99
+ post: import("./community.define").Post | undefined;
100
100
  antispam: import("./community.define").Antispam | undefined;
101
101
  } | {
102
102
  message: string;
@@ -15,7 +15,7 @@ export declare const isGetPostsResponse: (data: unknown) => data is {
15
15
  next_token: string | undefined;
16
16
  };
17
17
  export declare const isCreatePostResponse: (data: unknown) => data is {
18
- post: import("./community.define").Post;
18
+ post: import("./community.define").Post | undefined;
19
19
  antispam: import("./community.define").Antispam | undefined;
20
20
  };
21
21
  export declare const isRelyListResponse: (data: unknown) => data is {
@@ -1,5 +1,5 @@
1
- import { ClaimRewardStatus, type GamerItemType, type RewardSource } from "./event.enums";
2
1
  import type { EngagementFeatureType, InferEngagementParam } from "./event.define";
2
+ import type { GamerItemType, RewardSource } from "./event.enums";
3
3
  import type { AuthToken } from "./token";
4
4
  import type { RequestInternalError, IRequestOptions } from "@seayoo-web/request";
5
5
  export * from "./event.define";
@@ -181,7 +181,7 @@ export declare class EventApi {
181
181
  * https://kdocs.cn/l/ckWFDcOsYEUA?linkname=aQLhlOAB4Q
182
182
  */
183
183
  claimWeixinHongbao(rewardId: number, requestOptions?: IRequestOptions): Promise<{
184
- reward_status: ClaimRewardStatus;
184
+ reward_status: import("./event.enums").ClaimRewardStatus;
185
185
  } | {
186
186
  message: string;
187
187
  error: RequestInternalError | "invalid_weixin_openid" | "event_not_started" | "event_already_ended" | "no_rewards_to_claim" | "reward_received" | "invalid_merchant_parameter" | "budget_not_enough";
@@ -2,7 +2,7 @@ import { type InferType } from "@seayoo-web/validator";
2
2
  import { LotteryTicketStatus, type LotteryDrawAction } from "../event.enums";
3
3
  import { type UserReward } from "./engage.lotteryDraw.reward";
4
4
  export * from "./engage.lotteryDraw.reward";
5
- declare const noRewardStatus: import("@seayoo-web/validator").StringValidator<"unknown" | "pending", false, false>;
5
+ declare const noRewardStatus: import("@seayoo-web/validator").StringValidator<"pending" | "unknown", false, false>;
6
6
  export type LotteryDrawTicket = {
7
7
  /** 抽奖券 */
8
8
  ticket: string;
@@ -40,6 +40,8 @@ export interface EngageReward {
40
40
  reward_item_icon_url: string;
41
41
  /** 奖励道具描述 */
42
42
  reward_item_desc?: string;
43
+ /** 奖励道具评级 */
44
+ reward_item_rating: number;
43
45
  /** 奖励道具数量 */
44
46
  reward_amount: number;
45
47
  /** 奖励状态 */
@@ -238,12 +238,6 @@ export declare const RewardStatusValidator: import("@seayoo-web/validator").Stri
238
238
  * 已获得奖励的奖励状态,不含有未领取状态
239
239
  */
240
240
  export declare const RewardStatusSuffix: {
241
- /**
242
- * 奖励未领取,拼写错误以兼容后端历史版本,检查请使用 Unclaimed
243
- *
244
- * @deprecated
245
- */
246
- readonly UnclaimedErr: "unaccalimed";
247
241
  /** 奖励未领取 */
248
242
  readonly Unclaimed: "unclaimed";
249
243
  /** 奖励已领取 */
@@ -270,12 +264,6 @@ export declare const RewardStatusSuffixValidator: import("@seayoo-web/validator"
270
264
  export declare const ClaimRewardStatus: {
271
265
  /** 未获得奖励 */
272
266
  readonly Ineligible: "ineligible";
273
- /**
274
- * 奖励未领取,拼写错误以兼容后端历史版本,检查请使用 Unclaimed
275
- *
276
- * @deprecated
277
- */
278
- readonly UnclaimedErr: "unaccalimed";
279
267
  /** 奖励未领取 */
280
268
  readonly Unclaimed: "unclaimed";
281
269
  /** 奖励已领取 */