@seayoo-web/gamer-api 2.13.20 → 2.14.1

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.13.20",
4
+ "version": "2.14.1",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -32,9 +32,9 @@
32
32
  "@types/node": "^22.13.1",
33
33
  "@seayoo-web/combo-webview": "2.8.0",
34
34
  "@seayoo-web/request": "3.4.2",
35
- "@seayoo-web/utils": "4.1.3",
36
35
  "@seayoo-web/scripts": "3.1.6",
37
36
  "@seayoo-web/tsconfig": "1.0.5",
37
+ "@seayoo-web/utils": "4.1.3",
38
38
  "@seayoo-web/validator": "2.0.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -165,6 +165,8 @@ export declare class ClubApi {
165
165
  getProducts(option?: {
166
166
  /** 游戏账号 ID,游戏外必传 */
167
167
  player_id?: string;
168
+ /** 商品分类 ID */
169
+ catalog_id?: number;
168
170
  }, requestOptions?: IRequestOptions): Promise<import("./club.define").ClubProduct[]>;
169
171
  /**
170
172
  * 兑换商城商品
@@ -214,6 +214,17 @@ export declare class EventApi {
214
214
  user_rewards: import("./event.engage").UserReward[];
215
215
  next_token: string;
216
216
  }>;
217
+ /**
218
+ * 查询用户奖励数量,目前仅返回未领取的奖励数量
219
+ *
220
+ * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=jrFbyZ3UWN
221
+ */
222
+ getUserRewardsCount(option: {
223
+ /** 活动 ID 列表,多个用逗号分隔。若不传,则统计所有活动。*/
224
+ event_ids?: string;
225
+ }, requestOptions?: IRequestOptions): Promise<{
226
+ unclaimed: number;
227
+ }>;
217
228
  /**
218
229
  * 查询用户活动道具数量。💡 注意,这里只能是活动道具
219
230
  *
@@ -361,6 +372,20 @@ export declare class EventApi {
361
372
  message: string;
362
373
  error: RequestInternalError | "event_not_found" | "feature_not_found";
363
374
  } | null>;
375
+ /**
376
+ * 查询用户投稿数量
377
+ *
378
+ * https://www.kdocs.cn/l/ckWFDcOsYEUA?linkname=U0sYIGPzDk
379
+ */
380
+ getUgcMyCount(option: {
381
+ /** 活动 ID 列表,多个用逗号分隔。若不传,则统计所有活动。*/
382
+ event_ids?: string;
383
+ }, requestOptions?: IRequestOptions): Promise<{
384
+ total_count: number;
385
+ } | {
386
+ message: string;
387
+ error: RequestInternalError | "event_not_found";
388
+ } | null>;
364
389
  /**
365
390
  * 媒体资源预上传地址获取,为投稿玩法(UGC)提供 S3 预签名上传 URL,供用户客户端上传图片资源
366
391
  *
@@ -68,6 +68,9 @@ export interface UgcRecordResponse {
68
68
  next_token?: string;
69
69
  }
70
70
  export declare const UgcRecordResponseValidator: import("@seayoo-web/validator").ObjectValidator<UgcRecordResponse, false, false>;
71
+ export declare const UgcCountResponseValidator: import("@seayoo-web/validator").ObjectValidator<{
72
+ total_count: number;
73
+ }, false, false>;
71
74
  export interface UgcUploadImageResponse {
72
75
  /** 图片是否已存在,已存在无需上传。 */
73
76
  existed: boolean;
@@ -33,6 +33,9 @@ export declare const isGetUserRewardsResponse: (data: unknown) => data is {
33
33
  user_rewards: import("./event.engage").UserReward[];
34
34
  next_token: string | undefined;
35
35
  };
36
+ export declare const isGetUserRewardsCountResponse: (data: unknown) => data is {
37
+ unclaimed: number;
38
+ };
36
39
  export declare const isGetUnlimitQrcodeSceneResponse: (data: unknown) => data is {
37
40
  scene: string;
38
41
  };
@@ -49,6 +52,9 @@ export declare const isVote2LeaderboardResponse: (data: unknown) => data is {
49
52
  };
50
53
  export declare const isCashbackQueryResponse: (data: unknown) => data is import("./event.engage").CashbackEngagementData;
51
54
  export declare const isUgcResponse: (data: unknown) => data is import("./event.engage").UgcRecordResponse;
55
+ export declare const isUgcCountResponse: (data: unknown) => data is {
56
+ total_count: number;
57
+ };
52
58
  export declare const isUgcUploadImageResponse: (data: unknown) => data is {
53
59
  existed: boolean;
54
60
  upload_url: string | undefined;