databi
This commit is contained in:
parent
e5261ffbea
commit
f6a647e0ff
@ -4447,7 +4447,7 @@
|
|||||||
"name": "section",
|
"name": "section",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["new_users", "revenue", "retention", "active", "gift", "game"]
|
"enum": ["new_users", "revenue", "retention", "active", "gift", "game", "lucky_gift_v3"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -11868,7 +11868,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"key": {
|
"key": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["new_users", "revenue", "retention", "active", "gift", "game"]
|
"enum": ["new_users", "revenue", "retention", "active", "gift", "game", "lucky_gift_v3"]
|
||||||
},
|
},
|
||||||
"label": { "type": "string" },
|
"label": { "type": "string" },
|
||||||
"filters": {
|
"filters": {
|
||||||
|
|||||||
@ -768,6 +768,7 @@ test("renders social BI data requirements table with section filters and CSV exp
|
|||||||
"日活",
|
"日活",
|
||||||
"礼物",
|
"礼物",
|
||||||
"游戏",
|
"游戏",
|
||||||
|
"幸运礼物V3",
|
||||||
"留存"
|
"留存"
|
||||||
]);
|
]);
|
||||||
expect(screen.getByRole("tab", { name: "充值" })).toHaveAttribute("aria-selected", "true");
|
expect(screen.getByRole("tab", { name: "充值" })).toHaveAttribute("aria-selected", "true");
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { lastDaysRange, thisMonthRange, todayRange } from "../utils/time.js";
|
|||||||
export const ALL = "all";
|
export const ALL = "all";
|
||||||
|
|
||||||
const TABLE_MODES = new Set(["wide", "requirements"]);
|
const TABLE_MODES = new Set(["wide", "requirements"]);
|
||||||
const REQUIREMENT_SECTIONS = new Set(["revenue", "new_users", "active", "gift", "game", "retention"]);
|
const REQUIREMENT_SECTIONS = new Set(["revenue", "new_users", "active", "gift", "game", "lucky_gift_v3", "retention"]);
|
||||||
|
|
||||||
export function createDefaultTableState() {
|
export function createDefaultTableState() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -115,6 +115,19 @@ const REQUIREMENT_SECTIONS = [
|
|||||||
newUserFilter: true,
|
newUserFilter: true,
|
||||||
roleFilter: true
|
roleFilter: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
csvName: "p6-lucky-gift-v3",
|
||||||
|
fallbackColumns: [
|
||||||
|
{ key: "draw_count", label: "抽奖次数", type: "count" },
|
||||||
|
{ key: "turnover_coin", label: "投入金币", type: "coin" },
|
||||||
|
{ key: "payout_coin", label: "返奖金币", type: "coin" },
|
||||||
|
{ key: "profit_coin", label: "利润金币", type: "coin" },
|
||||||
|
{ key: "payout_rate", label: "返奖率", type: "ratio" },
|
||||||
|
{ key: "profit_rate", label: "利润率", type: "ratio" }
|
||||||
|
],
|
||||||
|
key: "lucky_gift_v3",
|
||||||
|
label: "幸运礼物V3"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
csvName: "p2-retention",
|
csvName: "p2-retention",
|
||||||
fallbackColumns: [
|
fallbackColumns: [
|
||||||
|
|||||||
4
src/shared/api/generated/schema.d.ts
vendored
4
src/shared/api/generated/schema.d.ts
vendored
@ -5855,7 +5855,7 @@ export interface components {
|
|||||||
};
|
};
|
||||||
SocialBiRequirementsSection: {
|
SocialBiRequirementsSection: {
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
key: "new_users" | "revenue" | "retention" | "active" | "gift" | "game";
|
key: "new_users" | "revenue" | "retention" | "active" | "gift" | "game" | "lucky_gift_v3";
|
||||||
label?: string;
|
label?: string;
|
||||||
filters?: components["schemas"]["SocialBiRequirementsFilters"];
|
filters?: components["schemas"]["SocialBiRequirementsFilters"];
|
||||||
columns: components["schemas"]["SocialBiRequirementsColumn"][];
|
columns: components["schemas"]["SocialBiRequirementsColumn"][];
|
||||||
@ -11364,7 +11364,7 @@ export interface operations {
|
|||||||
region_id?: number;
|
region_id?: number;
|
||||||
/** @description 逗号分隔的大区 ID;用于 Social BI 顶栏多选区域。 */
|
/** @description 逗号分隔的大区 ID;用于 Social BI 顶栏多选区域。 */
|
||||||
region_ids?: string;
|
region_ids?: string;
|
||||||
section?: "new_users" | "revenue" | "retention" | "active" | "gift" | "game";
|
section?: "new_users" | "revenue" | "retention" | "active" | "gift" | "game" | "lucky_gift_v3";
|
||||||
user_role?: "all" | "host" | "user";
|
user_role?: "all" | "host" | "user";
|
||||||
payer_type?: "all" | "paid" | "unpaid";
|
payer_type?: "all" | "paid" | "unpaid";
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user