@pnt-team/pnt-component-frontend 0.0.138 → 0.0.139

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.
Files changed (68) hide show
  1. package/lib/cjs/api/cos.d.ts +103 -0
  2. package/lib/cjs/api/cos.js +146 -0
  3. package/lib/cjs/api/index.d.ts +23 -0
  4. package/lib/cjs/api/index.js +38 -0
  5. package/lib/cjs/api/types/index.d.ts +117 -0
  6. package/lib/cjs/api/types/index.js +17 -0
  7. package/lib/cjs/assets/css/tdesign-theme.css +584 -0
  8. package/lib/cjs/assets/images/uploadImg.png +0 -0
  9. package/lib/cjs/assets/svg/inputSearch.svg +4 -0
  10. package/lib/cjs/assets/svg/inputTip.svg +5 -0
  11. package/lib/cjs/components/PntRegionSelect/index.scss +1 -1
  12. package/lib/esm/api/cos.d.ts +103 -0
  13. package/lib/esm/api/cos.js +189 -0
  14. package/lib/esm/api/index.d.ts +23 -0
  15. package/lib/esm/api/index.js +23 -0
  16. package/lib/esm/api/types/index.d.ts +117 -0
  17. package/lib/esm/api/types/index.js +1 -0
  18. package/lib/esm/assets/css/tdesign-theme.css +584 -0
  19. package/lib/esm/assets/images/uploadImg.png +0 -0
  20. package/lib/esm/assets/svg/inputSearch.svg +4 -0
  21. package/lib/esm/assets/svg/inputTip.svg +5 -0
  22. package/lib/esm/assets/svg/inputWarnTip.svg +5 -0
  23. package/lib/esm/components/PntBusinessSelect/index.d.ts +192 -0
  24. package/lib/esm/components/PntBusinessSelect/index.js +513 -0
  25. package/lib/esm/components/PntBusinessSelect/index.scss +27 -0
  26. package/lib/esm/components/PntCosUploader/index.d.ts +134 -0
  27. package/lib/esm/components/PntCosUploader/index.js +300 -0
  28. package/lib/esm/components/PntGeneralLayout/index.d.ts +114 -0
  29. package/lib/esm/components/PntGeneralLayout/index.js +103 -0
  30. package/lib/esm/components/PntGeneralLayout/index.scss +121 -0
  31. package/lib/esm/components/PntImage/index.d.ts +93 -0
  32. package/lib/esm/components/PntImage/index.js +200 -0
  33. package/lib/esm/components/PntImage/index.scss +61 -0
  34. package/lib/esm/components/PntRegionSelect/ImportDialog.d.ts +29 -0
  35. package/lib/esm/components/PntRegionSelect/ImportDialog.js +244 -0
  36. package/lib/esm/components/PntRegionSelect/index.d.ts +39 -0
  37. package/lib/esm/components/PntRegionSelect/index.js +471 -0
  38. package/lib/esm/components/PntRegionSelect/index.scss +174 -0
  39. package/lib/esm/components/PntRegionSelect/types.d.ts +181 -0
  40. package/lib/esm/components/PntRegionSelect/types.js +77 -0
  41. package/lib/esm/components/PntSecureBox/index.d.ts +122 -0
  42. package/lib/esm/components/PntSecureBox/index.js +166 -0
  43. package/lib/esm/components/PntSecureBox/index.scss +23 -0
  44. package/lib/esm/components/PntTable/index.d.ts +14 -0
  45. package/lib/esm/components/PntTable/index.js +404 -0
  46. package/lib/esm/components/PntTable/index.scss +290 -0
  47. package/lib/esm/components/PntTable/types.d.ts +250 -0
  48. package/lib/esm/components/PntTable/types.js +81 -0
  49. package/lib/esm/components/PntTable/useTableCore.d.ts +38 -0
  50. package/lib/esm/components/PntTable/useTableCore.js +499 -0
  51. package/lib/esm/components/PntUpload/index.d.ts +149 -0
  52. package/lib/esm/components/PntUpload/index.js +276 -0
  53. package/lib/esm/components/PntUpload/index.scss +101 -0
  54. package/lib/esm/config.d.ts +97 -0
  55. package/lib/esm/config.js +60 -0
  56. package/lib/esm/global.css +2 -0
  57. package/lib/esm/global.d.ts +39 -0
  58. package/lib/esm/hooks/useHighSecurity.d.ts +88 -0
  59. package/lib/esm/hooks/useHighSecurity.js +250 -0
  60. package/lib/esm/index.d.ts +16 -0
  61. package/lib/esm/index.js +33 -0
  62. package/lib/esm/utils/const.d.ts +13 -0
  63. package/lib/esm/utils/const.js +23 -0
  64. package/lib/esm/utils/index.d.ts +6 -0
  65. package/lib/esm/utils/index.js +22 -0
  66. package/lib/umd/pnt-component-frontend.min.css +1 -0
  67. package/lib/umd/pnt-component-frontend.min.js +1 -0
  68. package/package.json +1 -1
@@ -0,0 +1,103 @@
1
+ import type { PntHttpLike } from "../config";
2
+ /**
3
+ * 归一化后的 COS 临时凭证
4
+ * @description 各后端接口字段命名不统一(snake/camel),组件库内部统一为 camelCase
5
+ */
6
+ export interface NormalizedCosCredential {
7
+ /** COS 存储桶 */
8
+ bucket: string;
9
+ /** COS 地域 */
10
+ region: string;
11
+ /** 临时密钥 ID */
12
+ secretId: string;
13
+ /** 临时密钥 Key */
14
+ secretKey: string;
15
+ /** 临时会话令牌 */
16
+ sessionToken: string;
17
+ /** 凭证生效时间(秒) */
18
+ startTime: number;
19
+ /** 凭证过期时间(秒) */
20
+ expiredTime: number;
21
+ /**
22
+ * 业务路径映射
23
+ * @description 后端按业务类型返回的可写路径 map;消费方按 pathKey 选取
24
+ */
25
+ path?: Record<string, string>;
26
+ /**
27
+ * 受控目录前缀(SDK 定制场景返回)
28
+ * @description 前端在该前缀下自行拼接文件名;可与 pathKey 继续拼接子目录
29
+ */
30
+ filePath?: string;
31
+ /**
32
+ * CDN 访问域名(不含尾斜杠)
33
+ * @description SDK 定制场景返回 cdn_url;通用场景无此字段时组件按 COS Location 拼接
34
+ */
35
+ cosHost?: string;
36
+ }
37
+ /**
38
+ * 通用 COS 凭证响应(snake_case,pnt-tools / account-business)
39
+ */
40
+ interface SnakeCosCredential {
41
+ bucket: string;
42
+ region: string;
43
+ secret_id: string;
44
+ secret_key: string;
45
+ token: string;
46
+ start_time: number;
47
+ expired_time: number;
48
+ path?: Record<string, string>;
49
+ }
50
+ /**
51
+ * 内置业务场景
52
+ * @description 决定走哪个后端凭证接口
53
+ * - default: 通用上传(GET /v2/business/operation/get-cos-temp-token)
54
+ * - default_download: 通用下载/上传(POST /v2/business/operation/get-download-cos-temp-token,snake_case)
55
+ * - sdk_customize: SDK 定制服务(POST /internal/sdk_customize/upload_token,含 cdn_url/file_path)
56
+ * - ai_translate: AI 翻译服务(POST /business/aiTranslate/import/cosToken,camelCase)
57
+ */
58
+ export type CosScene = 'default' | 'default_download' | 'sdk_customize' | 'ai_translate' | (string & Record<never, never>);
59
+ /**
60
+ * 凭证获取参数
61
+ */
62
+ export interface GetCosCredentialParams {
63
+ /** 业务场景 */
64
+ scene: CosScene;
65
+ /** 业务类型路径 key(透传到后端 path map 选取;sdk_customize 场景作为受控目录下的子目录) */
66
+ pathKey?: string;
67
+ /**
68
+ * 业务上下文参数(gameId/env/updType 等,按 scene 不同传递)
69
+ * @description default/default_download 场景下 gameId 会自动映射到请求头 x-service-type,
70
+ * 其余字段透传到 query/body;ai_translate 场景整体透传到 body
71
+ */
72
+ context?: Record<string, string | number>;
73
+ /** 文件大小(字节),后端用于校验配额 */
74
+ contentLength?: number;
75
+ /** 已上传文件 URL/Key(下载场景使用) */
76
+ fileUrl?: string;
77
+ /**
78
+ * 网关 audience
79
+ * @default '/player-network'
80
+ * @description 账号管理等子系统需覆盖为对应 audience(如 '/laas-pnt');
81
+ * 消费方注入的 http 实例若已统一追加 audience,URL 上存在该参数时拦截器不会重复追加
82
+ */
83
+ audience?: string;
84
+ }
85
+ /**
86
+ * 自定义原始响应归一化函数
87
+ * @description 后端返回字段不符合内置 scene 约定时使用;入参为后端响应的原始 data
88
+ */
89
+ export type NormalizeCredential = (raw: unknown) => NormalizedCosCredential;
90
+ /**
91
+ * snake_case 凭证归一化(导出供 getCredential 自定义逃生舱复用)
92
+ * @description 消费方自行请求凭证(如项目 http 实例为非标准签名)时,
93
+ * 可在 getCredential 内调用本函数把后端 data 转为组件库统一结构
94
+ */
95
+ export declare const normalizeSnakeCredential: (raw: SnakeCosCredential) => NormalizedCosCredential;
96
+ /**
97
+ * 获取 COS 临时凭证(按 scene 路由到不同后端接口,内部归一化字段命名)
98
+ * @param http 由 PntProvider 注入的 axios 实例
99
+ * @param params 凭证获取参数
100
+ * @param customNormalize 可选的原始响应自定义归一化
101
+ */
102
+ export declare const fetchCosCredential: (http: PntHttpLike, params: GetCosCredentialParams, customNormalize?: NormalizeCredential) => Promise<NormalizedCosCredential>;
103
+ export {};
@@ -0,0 +1,146 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/api/cos.ts
20
+ var cos_exports = {};
21
+ __export(cos_exports, {
22
+ fetchCosCredential: () => fetchCosCredential,
23
+ normalizeSnakeCredential: () => normalizeSnakeCredential
24
+ });
25
+ module.exports = __toCommonJS(cos_exports);
26
+ var normalizeSnake = (raw) => ({
27
+ bucket: raw.bucket,
28
+ region: raw.region,
29
+ secretId: raw.secret_id,
30
+ secretKey: raw.secret_key,
31
+ sessionToken: raw.token,
32
+ startTime: raw.start_time,
33
+ expiredTime: raw.expired_time,
34
+ path: raw.path
35
+ });
36
+ var normalizeSnakeCredential = (raw) => normalizeSnake(raw);
37
+ var normalizeAiTranslate = (raw) => {
38
+ var _a, _b;
39
+ return {
40
+ bucket: raw.bucket || "",
41
+ region: raw.region || "",
42
+ secretId: raw.secretId || "",
43
+ secretKey: raw.secretKey || "",
44
+ sessionToken: raw.token || "",
45
+ startTime: (_a = raw.startTime) != null ? _a : 0,
46
+ expiredTime: (_b = raw.expiredTime) != null ? _b : 0,
47
+ // aiTranslate path 类型为 Record<string, unknown>,这里收窄为 string
48
+ path: raw.path ? Object.fromEntries(
49
+ Object.entries(raw.path).filter(
50
+ (v) => typeof v[1] === "string"
51
+ )
52
+ ) : void 0
53
+ };
54
+ };
55
+ var normalizeSdkCustomize = (raw) => ({
56
+ bucket: raw.bucket,
57
+ region: raw.region,
58
+ secretId: raw.secret_id,
59
+ secretKey: raw.secret_key,
60
+ sessionToken: raw.token,
61
+ startTime: raw.start_time,
62
+ expiredTime: raw.expired_time,
63
+ filePath: raw.file_path,
64
+ cosHost: raw.cdn_url
65
+ });
66
+ var DEFAULT_AUDIENCE = "/player-network";
67
+ var resolveCredential = (res, normalize, customNormalize) => {
68
+ var _a, _b;
69
+ const success = res.code === 0 || res.ret === 0;
70
+ if (!success || res.data === null || typeof res.data === "undefined") {
71
+ throw new Error(
72
+ `[PntCosUploader] 获取 COS 凭证失败: code=${(_a = res.code) != null ? _a : "null"} ret=${(_b = res.ret) != null ? _b : "null"} ${res.msg || ""}`
73
+ );
74
+ }
75
+ return customNormalize ? customNormalize(res.data) : normalize(res.data);
76
+ };
77
+ var fetchCosCredential = async (http, params, customNormalize) => {
78
+ const {
79
+ scene,
80
+ context = {},
81
+ contentLength,
82
+ fileUrl,
83
+ audience = DEFAULT_AUDIENCE
84
+ } = params;
85
+ switch (scene) {
86
+ case "default": {
87
+ const { gameId, ...restContext } = context;
88
+ const res = await http.get(
89
+ `/v2/business/operation/get-cos-temp-token?audience=${audience}`,
90
+ {
91
+ params: {
92
+ content_length: contentLength,
93
+ ...restContext
94
+ },
95
+ headers: gameId !== void 0 ? { "x-service-type": String(gameId) } : void 0
96
+ }
97
+ );
98
+ return resolveCredential(res, normalizeSnake, customNormalize);
99
+ }
100
+ case "default_download": {
101
+ const { gameId, ...restContext } = context;
102
+ const res = await http.post(
103
+ `/v2/business/operation/get-download-cos-temp-token?audience=${audience}`,
104
+ {
105
+ file_url: fileUrl,
106
+ content_length: contentLength,
107
+ ...restContext
108
+ },
109
+ {
110
+ headers: gameId !== void 0 ? { "x-service-type": String(gameId) } : void 0
111
+ }
112
+ );
113
+ return resolveCredential(res, normalizeSnake, customNormalize);
114
+ }
115
+ case "sdk_customize": {
116
+ const res = await http.post(
117
+ "/internal/sdk_customize/upload_token",
118
+ {
119
+ content_length: contentLength,
120
+ ...context
121
+ }
122
+ );
123
+ return resolveCredential(res, normalizeSdkCustomize, customNormalize);
124
+ }
125
+ case "ai_translate": {
126
+ const res = await http.post(
127
+ "/business/aiTranslate/import/cosToken",
128
+ {
129
+ contentLength,
130
+ ...context
131
+ }
132
+ );
133
+ return resolveCredential(res, normalizeAiTranslate, customNormalize);
134
+ }
135
+ default: {
136
+ throw new Error(
137
+ `[PntCosUploader] 未支持的 scene: ${scene};请通过 getCredential 自定义`
138
+ );
139
+ }
140
+ }
141
+ };
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ fetchCosCredential,
145
+ normalizeSnakeCredential
146
+ });
@@ -0,0 +1,23 @@
1
+ import type { commonEesType, PntHttpLike } from "../config";
2
+ import { BusinessGameInfoHighSecurityDecryptBody, BusinessGameInfoHighSecurityDecryptResponse, BusinessRegionQueryBody, BusinessRegionQueryResponse, BusinessSelectListBody, BusinessSelectListResponse } from './types/index';
3
+ /**
4
+ * 业务下拉选择列表
5
+ * @param http 由 PntProvider 注入的 axios 实例
6
+ * @param data 请求参数
7
+ */
8
+ export declare const businessSelectList: (axios: PntHttpLike, data: BusinessSelectListBody) => Promise<commonEesType<BusinessSelectListResponse>>;
9
+ /**
10
+ * 高敏信息解锁
11
+ * @param http 由 PntProvider 注入的 axios 实例
12
+ * @param data 请求参数
13
+ * @param url 自定义接口 URL(可选,覆盖默认值)
14
+ */
15
+ export declare const businessGameInfoHighSecurityDecrypt: (axios: PntHttpLike, data: BusinessGameInfoHighSecurityDecryptBody, url?: string) => Promise<commonEesType<BusinessGameInfoHighSecurityDecryptResponse>>;
16
+ /**
17
+ * 业务区域查询
18
+ * @param axios 由 PntProvider 注入的 axios 实例
19
+ * @param data 请求参数;不传时不带任何参数,返回全部国家区域(251 个);
20
+ * 传 game_id 时返回该业务最终生效的区域
21
+ * @param url 自定义接口 URL(可选,覆盖默认值)
22
+ */
23
+ export declare const businessRegionQuery: (axios: PntHttpLike, data?: BusinessRegionQueryBody, url?: string) => Promise<commonEesType<BusinessRegionQueryResponse>>;
@@ -0,0 +1,38 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/api/index.ts
20
+ var api_exports = {};
21
+ __export(api_exports, {
22
+ businessGameInfoHighSecurityDecrypt: () => businessGameInfoHighSecurityDecrypt,
23
+ businessRegionQuery: () => businessRegionQuery,
24
+ businessSelectList: () => businessSelectList
25
+ });
26
+ module.exports = __toCommonJS(api_exports);
27
+ var businessSelectList = (axios, data) => axios.post("/business/select/list?audience=/player-network", data);
28
+ var businessGameInfoHighSecurityDecrypt = (axios, data, url) => axios.post(
29
+ url || "/v3/business/game_info/high-security-decrypt?audience=/laas-pnt",
30
+ data
31
+ );
32
+ var businessRegionQuery = (axios, data, url) => axios.post(url || "/v5/business/region/query?audience=/laas-pnt", data);
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ businessGameInfoHighSecurityDecrypt,
36
+ businessRegionQuery,
37
+ businessSelectList
38
+ });
@@ -0,0 +1,117 @@
1
+ /**
2
+ * 本文件由 yapi-gen 自动生成,请勿手动修改
3
+ * 生成时间: 2026/9/10 11:19:01
4
+ * 数据来源: https://api-pnt.intlgame.com
5
+ */
6
+ export interface BusinessSelectListBody {
7
+ /** 业务类型列表,仅 game_list、game_list_option 场景支持:1-正式业务,2-测试业务 */
8
+ business_types?: number[];
9
+ /** 云控类型列表,仅 game_list、game_list_option 场景支持:1-INTL Project,2-LI PASS Project */
10
+ cloudCtrlType?: number[];
11
+ /** 集群类型列表,仅 game_list、game_list_option 场景支持:1-公有,2-私有,3-未配置 */
12
+ clusterTypes?: number[];
13
+ /** 需要返回的字段;未传时使用场景默认字段,仅支持服务端白名单字段 */
14
+ fields?: string[];
15
+ /** 业务ID列表,仅 game_list、game_list_option 场景支持 */
16
+ game_ids?: string[];
17
+ /** 业务ID、中文名称或英文名称的模糊匹配关键字 */
18
+ keyword?: string;
19
+ /** 登录器类型列表,仅 game_list、game_list_option 场景支持 */
20
+ lander_type?: number[];
21
+ /** LI PASS 开关列表,仅 game_list、game_list_option 场景支持:1-开启,2-未开启 */
22
+ lipSwitches?: number[];
23
+ /** 当前页 */
24
+ pageNum?: number;
25
+ /** 每页条数 */
26
+ pageSize?: number;
27
+ /** 平台列表,仅 game_list、game_list_option 场景支持 */
28
+ platform?: string[];
29
+ /** 下拉场景:game_list-业务列表,game_list_option-业务选择,compliance_age-合规年龄,custom_region-自定义合规地域,sdk-SDK定制 */
30
+ scene?: string;
31
+ /** 业务状态列表,仅 game_list、game_list_option 场景支持:3-线上运营,4-接入中,5-中途结项,6-已下线 */
32
+ statuses?: number[];
33
+ /** 总条数 */
34
+ total?: number;
35
+ /** 总页数 */
36
+ totalPage?: number;
37
+ }
38
+ export interface BusinessSelectListResponseListItem {
39
+ /** 业务接入类型:1-纯SDK,2-LI PASS,3-工作室品牌账号 */
40
+ business_access_method?: number;
41
+ /** 业务类型:1-正式业务,2-测试业务 */
42
+ business_type?: number;
43
+ /** 当前场景是否可创建;仅 compliance_age、custom_region 场景有意义 */
44
+ creatable?: boolean;
45
+ /** 当前业务是否禁用合规年龄认证;仅 compliance_age 场景有意义 */
46
+ disabled?: boolean;
47
+ /** 业务ID */
48
+ game_id?: string;
49
+ /** 业务接口开发负责人;SDK场景可返回 */
50
+ interface_developer_name?: string;
51
+ /** 业务中文名称 */
52
+ name?: string;
53
+ /** 业务英文名称 */
54
+ name_en?: string;
55
+ /** SDK定制版本通知人;SDK场景可返回 */
56
+ sdk_customize_notifier?: string;
57
+ /** 业务状态:3-线上运营,4-接入中,5-中途结项,6-已下线 */
58
+ state?: number;
59
+ }
60
+ export interface BusinessSelectListResponsePagination {
61
+ /** 当前页 */
62
+ pageNum?: number;
63
+ /** 每页条数 */
64
+ pageSize?: number;
65
+ /** 总条数 */
66
+ total?: number;
67
+ /** 总页数 */
68
+ totalPage?: number;
69
+ }
70
+ export interface BusinessSelectListResponse {
71
+ /** 业务列表;字段由请求 Fields 或场景默认字段决定 */
72
+ list?: BusinessSelectListResponseListItem[];
73
+ /** 分页信息;未分页时统计字段均为零值 */
74
+ pagination?: BusinessSelectListResponsePagination;
75
+ }
76
+ export interface BusinessGameInfoHighSecurityDecryptBodyParamItem {
77
+ /** 参数字段 */
78
+ key: string;
79
+ /** 参数密文 */
80
+ value: string;
81
+ }
82
+ export interface BusinessGameInfoHighSecurityDecryptBody {
83
+ param: BusinessGameInfoHighSecurityDecryptBodyParamItem[];
84
+ /** 页面ID */
85
+ page_id: string;
86
+ /** 请求环境 */
87
+ env: number;
88
+ game_id: number;
89
+ }
90
+ export type BusinessGameInfoHighSecurityDecryptResponse = Record<string, unknown>[];
91
+ export interface BusinessRegionQueryBody {
92
+ /** GameID 目标业务 ID;取值 > 0 时返回该业务实际生效的国家区域;
93
+ 取值 <= 0 或未传时返回国家区域全量字典;与当前登录业务是否一致不做强校验(跨业务查询合法)。 */
94
+ game_id?: number;
95
+ }
96
+ export interface BusinessRegionQueryResponseRegionListItem {
97
+ /** ID 区域主键 ID。 */
98
+ id?: number;
99
+ /** IsEEARegion 是否 EEA 区域,取值:0=否,1=是。 */
100
+ is_eea_region?: number;
101
+ /** IsSecretRegion 是否特殊合规区域,取值:1=默认区域,2=特殊区域。 */
102
+ is_secret_region?: number;
103
+ /** RegionA2Code 二位字母码。 */
104
+ region_a2_code?: string;
105
+ /** RegionA3Code 三位字母码。 */
106
+ region_a3_code?: string;
107
+ /** RegionCH 中文名称。 */
108
+ region_ch?: string;
109
+ /** RegionCode 数字码,按数据库原始值返回,不做前导零转换。 */
110
+ region_code?: string;
111
+ /** RegionEN 英文名称。 */
112
+ region_en?: string;
113
+ }
114
+ export interface BusinessRegionQueryResponse {
115
+ /** RegionList 国家区域列表:未携带 game_id 时为全量字典,携带 game_id 时为该业务实际生效区域;均按 id 升序。 */
116
+ region_list?: BusinessRegionQueryResponseRegionListItem[];
117
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/api/types/index.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);