@seayoo-web/gamer-api 2.5.9 → 2.6.0
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.
|
|
4
|
+
"version": "2.6.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "^2.5.4",
|
|
34
|
-
"@seayoo-web/request": "^3.3.
|
|
35
|
-
"@seayoo-web/
|
|
34
|
+
"@seayoo-web/request": "^3.3.2",
|
|
35
|
+
"@seayoo-web/scripts": "^2.8.2",
|
|
36
36
|
"@seayoo-web/tsconfig": "^1.0.5",
|
|
37
|
-
"@seayoo-web/
|
|
37
|
+
"@seayoo-web/utils": "^3.7.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@seayoo-web/combo-webview": "^2.5.4",
|
|
41
|
-
"@seayoo-web/utils": "^3.
|
|
41
|
+
"@seayoo-web/utils": "^3.7.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"prebuild": "pnpm -F request build && pnpm -F combo-webview build",
|
|
@@ -321,7 +321,7 @@ export interface NotificationReply extends NotificationBase, NotificationPayload
|
|
|
321
321
|
}
|
|
322
322
|
export declare const NotificationReplyValidator: import("@seayoo-web/utils").ObjectValidator<NotificationReply, false, false>;
|
|
323
323
|
/** 社区通知 */
|
|
324
|
-
export type
|
|
324
|
+
export type NotificationAll = NotificationSystem | NotificationPost | NotificationPostComment | NotificationCommentReply | NotificationComment | NotificationReplyReplied | NotificationReply;
|
|
325
325
|
export declare const NotificationValidator: import("@seayoo-web/utils").UnionValidator<[import("@seayoo-web/utils").ObjectValidator<NotificationSystem, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationPost, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationPostComment, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationCommentReply, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationComment, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationReplyReplied, false, false>, import("@seayoo-web/utils").ObjectValidator<NotificationReply, false, false>], false, false> & {
|
|
326
326
|
optional: never;
|
|
327
327
|
maybeNull: never;
|
|
@@ -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<"
|
|
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>;
|
|
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<"
|
|
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>;
|
|
3
3
|
export interface EventRewardItemConfig {
|
|
4
4
|
/** 玩法奖励道具 id */
|
|
5
5
|
reward_item_id: number;
|
package/types/src/event.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export declare class EventApi {
|
|
|
131
131
|
role_name?: string;
|
|
132
132
|
}, requestOptions?: IRequestOptions): Promise<import("./event.define").EngageResponse | {
|
|
133
133
|
message: string;
|
|
134
|
-
error: RequestInternalError | "event_not_found" | "feature_not_found" | "invalid_weixin_appid" | "invalid_weixin_openid" | "event_not_started" | "event_already_ended" | "engage_feature_reached_limit" | "comment_too_frequently" | "lottery_reward_is_empty" | "invalid_merchant_parameter" | "budget_not_enough" | "combo_id_not_found" | "query_user_order_total_amount_err" | "unique_gift_code_is_empty" | "player_created_at_out_of_range" | "user_had_joined_a_team" | "team_is_full" | "disband_team_not_allowed" | "change_team_visibility_not_allowed" | "team_not_found" | "join_team_conflict" | "team_has_been_disbanded" | "exceeded_assembled_team_limit" | "invalid_engage_lottery_draw_ticket" | "lottery_ticket_not_found" | "draw_lottery_ticket_not_start" | "draw_lottery_ticket_is_ended" | "activation_group_not_found" | "activation_group_expired" | "no_claim_activation_key_eligibility" | "no_activation_key_available" | "activation_key_all_claimed";
|
|
134
|
+
error: RequestInternalError | "event_not_found" | "visit_record_not_found" | "feature_not_found" | "invalid_weixin_appid" | "invalid_weixin_openid" | "event_not_started" | "event_already_ended" | "engage_feature_reached_limit" | "comment_too_frequently" | "lottery_reward_is_empty" | "invalid_merchant_parameter" | "budget_not_enough" | "combo_id_not_found" | "query_user_order_total_amount_err" | "unique_gift_code_is_empty" | "player_created_at_out_of_range" | "user_had_joined_a_team" | "team_is_full" | "disband_team_not_allowed" | "change_team_visibility_not_allowed" | "team_not_found" | "join_team_conflict" | "team_has_been_disbanded" | "exceeded_assembled_team_limit" | "invalid_engage_lottery_draw_ticket" | "lottery_ticket_not_found" | "draw_lottery_ticket_not_start" | "draw_lottery_ticket_is_ended" | "activation_group_not_found" | "activation_group_expired" | "no_claim_activation_key_eligibility" | "no_activation_key_available" | "activation_key_all_claimed";
|
|
135
135
|
}>;
|
|
136
136
|
/**
|
|
137
137
|
* 用户领取除红包和实物奖励以外的所有奖励
|
|
@@ -2,7 +2,7 @@ import { type InferType } from "@seayoo-web/utils";
|
|
|
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/utils").StringValidator<"
|
|
5
|
+
declare const noRewardStatus: import("@seayoo-web/utils").StringValidator<"pending" | "unknown", false, false>;
|
|
6
6
|
export type LotteryDrawTicket = {
|
|
7
7
|
/** 抽奖券 */
|
|
8
8
|
ticket: string;
|