@seayoo-web/gamer-api 2.5.7 → 2.5.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/dist/index.js CHANGED
@@ -869,6 +869,7 @@ const R = {
869
869
  feature_id: e.number(),
870
870
  description: e.string(),
871
871
  cycle: We,
872
+ cycle_limit: e.number(),
872
873
  limit: e.number(),
873
874
  since: e.number(),
874
875
  until: e.number(),
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.5.7",
4
+ "version": "2.5.9",
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.5.4",
34
34
  "@seayoo-web/request": "^3.3.0",
35
- "@seayoo-web/scripts": "^2.6.2",
35
+ "@seayoo-web/utils": "^3.6.2",
36
36
  "@seayoo-web/tsconfig": "^1.0.5",
37
- "@seayoo-web/utils": "^3.6.2"
37
+ "@seayoo-web/scripts": "^2.6.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@seayoo-web/combo-webview": "^2.5.4",
@@ -9,6 +9,8 @@ export interface EventFeatureBaseConfig {
9
9
  description: string;
10
10
  /** 玩法周期,即每多长时间可参与一次 */
11
11
  cycle: EventPeriodType;
12
+ /** 单个周期内的最大参与次数,0 为无限制 */
13
+ cycle_limit: number;
12
14
  /** 允许的最大参与次数 */
13
15
  limit: number;
14
16
  /** 玩法开始时间 */
@@ -1,6 +1,6 @@
1
1
  import { type InferType } from "@seayoo-web/utils";
2
2
  import { type EventFeatureBaseConfig } from "./feature.base";
3
- declare const rewardItemTypeValidator: import("@seayoo-web/utils").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/utils").StringValidator<"credit" | "activation_key" | "event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "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/utils";
2
- declare const rewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<"event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "activation_key" | "credit" | "external_gift_code" | "void_item", false, false>;
2
+ declare const rewardItemTypeValidator: import("@seayoo-web/utils").StringValidator<"credit" | "activation_key" | "event_item" | "game_item" | "physical_item" | "weixin_hongbao" | "external_gift_code" | "void_item", false, false>;
3
3
  export interface EventRewardItemConfig {
4
4
  /** 玩法奖励道具 id */
5
5
  reward_item_id: number;