@seayoo-web/gamer-api 4.1.0 → 4.1.2

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
@@ -550,7 +550,8 @@ var d = "gamer_token", ue = class {
550
550
  OrderAmountInApp: "order_in_app_total_amount",
551
551
  OrderAmountInPayCenter: "order_seayoo_web_total_amount",
552
552
  TeamSize: "team_size",
553
- UserGroup: "user_group"
553
+ UserGroup: "user_group",
554
+ engagementCount: "engagement_count"
554
555
  }, E = u.string().enum(Xe).lock(), Ze = {
555
556
  System: "system",
556
557
  UserSubmission: "user_submission",
@@ -958,6 +959,7 @@ var d = "gamer_token", ue = class {
958
959
  candidate_id: u.string(),
959
960
  total_votes: u.number().optional(),
960
961
  my_votes: u.number().optional(),
962
+ cycle_votes: u.number().optional(),
961
963
  votes: u.number().optional()
962
964
  }), Bn = u.object({
963
965
  rewards_type: dt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/gamer-api",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "agent for gamer api",
5
5
  "license": "MIT",
6
6
  "author": "web@seayoo.com",
@@ -27,16 +27,16 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.13.1",
30
- "@seayoo-web/combo-webview": "2.9.2",
30
+ "@seayoo-web/scripts": "4.3.3",
31
31
  "@seayoo-web/request": "4.1.0",
32
- "@seayoo-web/scripts": "4.0.2",
32
+ "@seayoo-web/combo-webview": "2.9.7",
33
33
  "@seayoo-web/tsconfig": "1.0.6",
34
- "@seayoo-web/utils": "4.4.1",
35
- "@seayoo-web/validator": "2.3.0"
34
+ "@seayoo-web/validator": "2.3.0",
35
+ "@seayoo-web/utils": "4.4.1"
36
36
  },
37
37
  "peerDependencies": {
38
- "@seayoo-web/combo-webview": "^2.9.2",
39
38
  "@seayoo-web/utils": "^4.4.1",
39
+ "@seayoo-web/combo-webview": "^2.9.7",
40
40
  "@seayoo-web/validator": "^2.3.0"
41
41
  },
42
42
  "engines": {
@@ -7,6 +7,8 @@ export interface Vote2EngagementData {
7
7
  total_votes?: number;
8
8
  /** 用户向候选者投入的总票数,当调用 engage api 时有效 */
9
9
  my_votes?: number;
10
+ /** 当前周期内此选项的投票数,当调用 engage api 时有效 */
11
+ cycle_votes?: number;
10
12
  /** 用户当次向投出的票数,当调用 getUserEngagements api 时有效 */
11
13
  votes?: number;
12
14
  }
@@ -200,6 +200,8 @@ export declare const QuestObjective: {
200
200
  readonly TeamSize: "team_size";
201
201
  /** 玩家分组 */
202
202
  readonly UserGroup: "user_group";
203
+ /** 玩法参与次数 */
204
+ readonly engagementCount: "engagement_count";
203
205
  };
204
206
  export type QuestObjective = ValueOf<typeof QuestObjective>;
205
207
  export declare const QuestObjectiveValidator: import("@seayoo-web/validator").StringValidator<QuestObjective, false, false> & {
@@ -1,3 +1,3 @@
1
- export declare const console: Pick<Console, "error" | "log" | "warn">;
1
+ export declare const console: Pick<Console, "log" | "error" | "warn">;
2
2
  export declare function isRootEndpoint(path: string): boolean;
3
3
  export declare function getWeixinLoginCode(): Promise<string>;