@seayoo-web/gamer-api 2.13.6 → 2.13.8

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
@@ -687,8 +687,8 @@ const v = {
687
687
  ActivationKey: "activation_key",
688
688
  /** 抽奖券 */
689
689
  LotteryTicket: "lottery_ticket",
690
- /** 积分 */
691
- Credit: "credit",
690
+ /** 俱乐部积分 */
691
+ ClubCredit: "club_credit",
692
692
  /** 外部兑换码 */
693
693
  ExternalCode: "external_gift_code",
694
694
  /** 空奖励 */
@@ -1365,9 +1365,9 @@ const v = {
1365
1365
  feature_id: e.number(),
1366
1366
  can_engage: e.bool(),
1367
1367
  has_unclaimed_rewards: e.bool(),
1368
- final_available_count: e.number().optional(),
1369
- total_remaining_engagements: e.number().optional(),
1370
- cycle_remaining_engagements: e.number().optional()
1368
+ final_available_count: e.number(),
1369
+ total_remaining_engagements: e.number(),
1370
+ cycle_remaining_engagements: e.number()
1371
1371
  }), tr = e.object({
1372
1372
  engagement_id: e.number(),
1373
1373
  engagement: e.object({
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.6",
4
+ "version": "2.13.8",
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/scripts": "3.1.5",
34
- "@seayoo-web/utils": "4.1.3",
35
- "@seayoo-web/combo-webview": "2.8.0",
36
33
  "@seayoo-web/request": "3.4.1",
34
+ "@seayoo-web/combo-webview": "2.8.0",
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": "1.1.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@seayoo-web/combo-webview": "^2.8.0",
42
- "@seayoo-web/utils": "^4.1.3",
43
- "@seayoo-web/validator": "^1.1.1"
42
+ "@seayoo-web/validator": "^1.1.1",
43
+ "@seayoo-web/utils": "^4.1.3"
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 { EventFeatureBaseConfig } from "./feature.base";
2
2
  import type { InferType } from "@seayoo-web/validator";
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>;
3
+ declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "club_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<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "gift_code" | "activation_key" | "lottery_ticket" | "credit" | "external_gift_code" | "void_item", false, false>;
2
+ declare const rewardItemTypeValidator: import("@seayoo-web/validator").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "gift_code" | "activation_key" | "lottery_ticket" | "club_credit" | "external_gift_code" | "void_item", false, false>;
3
3
  export interface EventRewardItemConfig {
4
4
  /** 玩法奖励道具 id */
5
5
  reward_item_id: number;
@@ -24,17 +24,17 @@ export interface UserFeatureStatus {
24
24
  * 所有限制条件(总次数、周期次数等)下的最终可用参与次数。
25
25
  等于 Min(TotalRemainingEngagements, CycleRemainingEngagements)
26
26
  */
27
- final_available_count?: number;
27
+ final_available_count: number;
28
28
  /**
29
29
  * 玩法生效时间内用户剩余的参与次数。
30
30
  -1 表示玩法生效时间内参与次数无限制。
31
31
  */
32
- total_remaining_engagements?: number;
32
+ total_remaining_engagements: number;
33
33
  /**
34
34
  * 玩法当前参与周期(如每日或每周)内用户剩余的参与次数。
35
35
  -1 表示玩法当前参与周期内参与次数无限制。
36
36
  */
37
- cycle_remaining_engagements?: number;
37
+ cycle_remaining_engagements: number;
38
38
  }
39
39
  export declare const UserFeatureStatusValidator: import("@seayoo-web/validator").ObjectValidator<UserFeatureStatus, false, false>;
40
40
  export interface EngageResponse {
@@ -15,8 +15,8 @@ export declare const GamerItemType: {
15
15
  readonly ActivationKey: "activation_key";
16
16
  /** 抽奖券 */
17
17
  readonly LotteryTicket: "lottery_ticket";
18
- /** 积分 */
19
- readonly Credit: "credit";
18
+ /** 俱乐部积分 */
19
+ readonly ClubCredit: "club_credit";
20
20
  /** 外部兑换码 */
21
21
  readonly ExternalCode: "external_gift_code";
22
22
  /** 空奖励 */
@@ -48,8 +48,8 @@ export declare const RewardItemType: {
48
48
  readonly ActivationKey: "activation_key";
49
49
  /** 抽奖券 */
50
50
  readonly LotteryTicket: "lottery_ticket";
51
- /** 积分 */
52
- readonly Credit: "credit";
51
+ /** 俱乐部积分 */
52
+ readonly ClubCredit: "club_credit";
53
53
  /** 外部兑换码 */
54
54
  readonly ExternalCode: "external_gift_code";
55
55
  /** 空奖励 */