@huyooo/ui 0.14.5 → 0.14.8

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.
@@ -0,0 +1 @@
1
+ export * from '@huyooo/analytics';
@@ -0,0 +1 @@
1
+ export * from "@huyooo/analytics";
package/dist/head.d.ts CHANGED
@@ -1,7 +1,4 @@
1
+ import { Plugin } from 'vue';
1
2
  import { CreateClientHeadOptions } from '@unhead/vue/client';
2
- /** Vue Plugin 结构兼容(含 install),供 app.use(head) 或 head.install(app) 使用 */
3
- export interface VueHeadPlugin {
4
- install: (app: unknown, ...options: unknown[]) => unknown;
5
- }
6
- export declare function createHead(options?: CreateClientHeadOptions): VueHeadPlugin;
3
+ export declare function createHead(options?: CreateClientHeadOptions): Plugin;
7
4
  export type { CreateClientHeadOptions };
package/dist/main.d.ts CHANGED
@@ -11,6 +11,6 @@ export * from './upload';
11
11
  export * from './user';
12
12
  export * from './download';
13
13
  export * from './privateCom';
14
- export { createHead, type CreateClientHeadOptions, type VueHeadPlugin, } from './head';
14
+ export { createHead, type CreateClientHeadOptions, } from './head';
15
15
  export { auth, billing, ones, log, ai, webhook } from './utils/apiClients';
16
16
  export { api, type LegacyApiRequestConfig, type LegacyApiResponse } from './utils/legacyApi';
@@ -334,6 +334,43 @@ export type Api = {
334
334
  };
335
335
  };
336
336
  };
337
+ system: {
338
+ dataRetentionPolicy: {
339
+ /** 获取 log-server 数据保留策略配置 */
340
+ post: {
341
+ return: any;
342
+ };
343
+ };
344
+ };
345
+ 'apps-statistics': {
346
+ batch: {
347
+ /** 批量获取多个应用的统计数据 */
348
+ post: {
349
+ body: {
350
+ appIds: string[];
351
+ };
352
+ return: any;
353
+ };
354
+ };
355
+ single: {
356
+ /** 获取单个应用的详细统计数据 */
357
+ post: {
358
+ body: {
359
+ appId: string;
360
+ };
361
+ return: any;
362
+ };
363
+ };
364
+ 'organization-overview': {
365
+ /** 获取组织下所有应用的概览统计 */
366
+ post: {
367
+ body: {
368
+ organizationId: string;
369
+ };
370
+ return: any;
371
+ };
372
+ };
373
+ };
337
374
  analytics: {
338
375
  find: {
339
376
  /** 分页查询分析数据列表 */
@@ -824,6 +861,32 @@ export interface ApiClient {
824
861
  }, config?: RequestConfig) => Promise<ApiResponse<any>>;
825
862
  };
826
863
  };
864
+ system: {
865
+ dataRetentionPolicy: {
866
+ /** 获取 log-server 数据保留策略配置 */
867
+ post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
868
+ };
869
+ };
870
+ 'apps-statistics': {
871
+ batch: {
872
+ /** 批量获取多个应用的统计数据 */
873
+ post: (body: {
874
+ appIds: string[];
875
+ }, config?: RequestConfig) => Promise<ApiResponse<any>>;
876
+ };
877
+ single: {
878
+ /** 获取单个应用的详细统计数据 */
879
+ post: (body: {
880
+ appId: string;
881
+ }, config?: RequestConfig) => Promise<ApiResponse<any>>;
882
+ };
883
+ 'organization-overview': {
884
+ /** 获取组织下所有应用的概览统计 */
885
+ post: (body: {
886
+ organizationId: string;
887
+ }, config?: RequestConfig) => Promise<ApiResponse<any>>;
888
+ };
889
+ };
827
890
  analytics: {
828
891
  find: {
829
892
  /** 分页查询分析数据列表 */
@@ -1209,43 +1209,6 @@ export type Api = {
1209
1209
  };
1210
1210
  };
1211
1211
  };
1212
- system: {
1213
- dataRetentionPolicy: {
1214
- /** 获取系统数据保留策略配置 */
1215
- post: {
1216
- return: any;
1217
- };
1218
- };
1219
- };
1220
- 'apps-statistics': {
1221
- batch: {
1222
- /** 批量获取多个应用的统计数据 */
1223
- post: {
1224
- body: {
1225
- appIds: string[];
1226
- };
1227
- return: any;
1228
- };
1229
- };
1230
- single: {
1231
- /** 获取单个应用的详细统计数据 */
1232
- post: {
1233
- body: {
1234
- appId: string;
1235
- };
1236
- return: any;
1237
- };
1238
- };
1239
- 'organization-overview': {
1240
- /** 获取组织下所有应用的概览统计 */
1241
- post: {
1242
- body: {
1243
- organizationId: string;
1244
- };
1245
- return: any;
1246
- };
1247
- };
1248
- };
1249
1212
  };
1250
1213
  /** API 客户端类型(提供完整的 IDE 智能提示) */
1251
1214
  export interface ApiClient {
@@ -2150,32 +2113,6 @@ export interface ApiClient {
2150
2113
  }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2151
2114
  };
2152
2115
  };
2153
- system: {
2154
- dataRetentionPolicy: {
2155
- /** 获取系统数据保留策略配置 */
2156
- post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
2157
- };
2158
- };
2159
- 'apps-statistics': {
2160
- batch: {
2161
- /** 批量获取多个应用的统计数据 */
2162
- post: (body: {
2163
- appIds: string[];
2164
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2165
- };
2166
- single: {
2167
- /** 获取单个应用的详细统计数据 */
2168
- post: (body: {
2169
- appId: string;
2170
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2171
- };
2172
- 'organization-overview': {
2173
- /** 获取组织下所有应用的概览统计 */
2174
- post: (body: {
2175
- organizationId: string;
2176
- }, config?: RequestConfig) => Promise<ApiResponse<any>>;
2177
- };
2178
- };
2179
2116
  }
2180
2117
  /** API 客户端类型别名(基于 EdenClient 推断,提供完整类型检查) */
2181
2118
  export type ApiClientType = EdenClient<Api>;
@@ -168,6 +168,14 @@ export type Api = {
168
168
  };
169
169
  };
170
170
  };
171
+ system: {
172
+ dataRetentionPolicy: {
173
+ /** 获取 webhook-server 数据保留策略配置 */
174
+ post: {
175
+ return: any;
176
+ };
177
+ };
178
+ };
171
179
  };
172
180
  /** API 客户端类型(提供完整的 IDE 智能提示) */
173
181
  export interface ApiClient {
@@ -298,6 +306,12 @@ export interface ApiClient {
298
306
  }, config?: RequestConfig) => Promise<ApiResponse<any>>;
299
307
  };
300
308
  };
309
+ system: {
310
+ dataRetentionPolicy: {
311
+ /** 获取 webhook-server 数据保留策略配置 */
312
+ post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
313
+ };
314
+ };
301
315
  }
302
316
  /** API 客户端类型别名(基于 EdenClient 推断,提供完整类型检查) */
303
317
  export type ApiClientType = EdenClient<Api>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.14.5",
3
+ "version": "0.14.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -62,6 +62,10 @@
62
62
  "import": "./dist/privateCom.js",
63
63
  "types": "./dist/privateCom.d.ts"
64
64
  },
65
+ "./analytics": {
66
+ "import": "./dist/analytics.js",
67
+ "types": "./dist/analytics.d.ts"
68
+ },
65
69
  "./style.css": "./dist/style.css",
66
70
  "./dist/*": "./dist/*"
67
71
  },
@@ -97,6 +101,7 @@
97
101
  "vue-router": ">=4.0.0"
98
102
  },
99
103
  "dependencies": {
104
+ "@huyooo/analytics": "^0.2.0",
100
105
  "@vafast/api-client": "^0.3.6",
101
106
  "cos-js-sdk-v5": "^1.10.1",
102
107
  "json-bigint": "^1.0.0",
@@ -117,6 +122,7 @@
117
122
  "typescript": "^5.5.3",
118
123
  "vite": "^5.4.1",
119
124
  "vite-plugin-dts": "^4.0.3",
125
+ "vue-router": "^4.4.3",
120
126
  "vue-tsc": "^2.0.29"
121
127
  },
122
128
  "gitHead": "3b89c5f3e764bd2502a11e40fdb1a574d9ee508d"