@huyooo/ui 0.13.9 → 0.14.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.
@@ -873,7 +873,7 @@ export type Api = {
873
873
  post: {
874
874
  body: {
875
875
  userId?: string;
876
- type?: "earn" | "spend" | "reversal" | "clawback" | "adjust";
876
+ type?: "earn" | "consume" | "reversal" | "clawback" | "adjust";
877
877
  subType?: string;
878
878
  page?: number;
879
879
  pageSize?: number;
@@ -898,6 +898,8 @@ export type Api = {
898
898
  body: {
899
899
  userId?: string;
900
900
  period?: "day" | "week" | "month" | "year";
901
+ startTime?: string;
902
+ endTime?: string;
901
903
  };
902
904
  return: any;
903
905
  };
@@ -925,11 +927,22 @@ export type Api = {
925
927
  return: any;
926
928
  };
927
929
  };
930
+ businessLineConsumptionChart: {
931
+ /** 按服务计费引擎业务线聚合积分消费 */
932
+ post: {
933
+ body: {
934
+ userId?: string;
935
+ startTime?: string;
936
+ endTime?: string;
937
+ };
938
+ return: any;
939
+ };
940
+ };
928
941
  rankingChart: {
929
942
  /** 获取用户积分排行榜 */
930
943
  post: {
931
944
  body: {
932
- type?: "earn" | "spend" | "reversal" | "clawback" | "adjust";
945
+ type?: "earn" | "consume" | "reversal" | "clawback" | "adjust";
933
946
  startTime?: string;
934
947
  endTime?: string;
935
948
  limit?: number;
@@ -1536,7 +1549,7 @@ export type Api = {
1536
1549
  };
1537
1550
  };
1538
1551
  statistics: {
1539
- /** 获取用户积分充值订单统计 */
1552
+ /** 获取当前 app 积分充值订单统计 */
1540
1553
  post: {
1541
1554
  body: {
1542
1555
  startTime?: string;
@@ -1545,6 +1558,24 @@ export type Api = {
1545
1558
  return: any;
1546
1559
  };
1547
1560
  };
1561
+ accountSummary: {
1562
+ /** 汇总当前 app 下所有用户积分账户余额 */
1563
+ post: {
1564
+ body: Record<string, unknown>;
1565
+ return: any;
1566
+ };
1567
+ };
1568
+ trend: {
1569
+ /** 按日聚合当前 app 已支付充值订单 */
1570
+ post: {
1571
+ body: {
1572
+ startTime: string;
1573
+ endTime: string;
1574
+ limit?: number;
1575
+ };
1576
+ return: any;
1577
+ };
1578
+ };
1548
1579
  statusOptions: {
1549
1580
  /** 获取积分充值订单状态下拉选项与展示文案 */
1550
1581
  post: {
@@ -1853,6 +1884,7 @@ export type Api = {
1853
1884
  pricingType?: "flat" | "tiered" | "meters";
1854
1885
  keyword?: string;
1855
1886
  enabled?: boolean;
1887
+ accessScope?: "private" | "all_apps";
1856
1888
  };
1857
1889
  page?: number;
1858
1890
  pageSize?: number;
@@ -1877,6 +1909,7 @@ export type Api = {
1877
1909
  serviceKey?: string;
1878
1910
  pricingType?: "flat" | "tiered" | "meters";
1879
1911
  enabled?: boolean;
1912
+ accessScope?: "private" | "all_apps";
1880
1913
  };
1881
1914
  return: any;
1882
1915
  };
@@ -1947,6 +1980,7 @@ export type Api = {
1947
1980
  }[];
1948
1981
  }[];
1949
1982
  };
1983
+ accessScope?: "private" | "all_apps";
1950
1984
  };
1951
1985
  return: any;
1952
1986
  };
@@ -2001,6 +2035,7 @@ export type Api = {
2001
2035
  }[];
2002
2036
  }[];
2003
2037
  };
2038
+ accessScope?: "private" | "all_apps";
2004
2039
  };
2005
2040
  return: any;
2006
2041
  };
@@ -2056,6 +2091,7 @@ export type Api = {
2056
2091
  where?: {
2057
2092
  keyword?: string;
2058
2093
  enabled?: boolean;
2094
+ accessScope?: "private" | "all_apps";
2059
2095
  };
2060
2096
  withStats?: boolean;
2061
2097
  page?: number;
@@ -2077,6 +2113,7 @@ export type Api = {
2077
2113
  post: {
2078
2114
  body: {
2079
2115
  enabled?: boolean;
2116
+ accessScope?: "private" | "all_apps";
2080
2117
  };
2081
2118
  return: any;
2082
2119
  };
@@ -2086,6 +2123,7 @@ export type Api = {
2086
2123
  body: {
2087
2124
  businessLineKey: string;
2088
2125
  label: string;
2126
+ accessScope?: "private" | "all_apps";
2089
2127
  };
2090
2128
  return: any;
2091
2129
  };
@@ -2096,6 +2134,7 @@ export type Api = {
2096
2134
  businessLineKey: string;
2097
2135
  label?: string;
2098
2136
  enabled?: boolean;
2137
+ accessScope?: "private" | "all_apps";
2099
2138
  };
2100
2139
  return: any;
2101
2140
  };
@@ -2117,6 +2156,7 @@ export type Api = {
2117
2156
  businessLineKey?: string;
2118
2157
  keyword?: string;
2119
2158
  enabled?: boolean;
2159
+ accessScope?: "private" | "all_apps";
2120
2160
  };
2121
2161
  withStats?: boolean;
2122
2162
  page?: number;
@@ -2139,6 +2179,7 @@ export type Api = {
2139
2179
  body: {
2140
2180
  businessLineKey?: string;
2141
2181
  enabled?: boolean;
2182
+ accessScope?: "private" | "all_apps";
2142
2183
  };
2143
2184
  return: any;
2144
2185
  };
@@ -2149,6 +2190,7 @@ export type Api = {
2149
2190
  businessLineKey: string;
2150
2191
  productLineKey: string;
2151
2192
  label: string;
2193
+ accessScope?: "private" | "all_apps";
2152
2194
  };
2153
2195
  return: any;
2154
2196
  };
@@ -2159,6 +2201,7 @@ export type Api = {
2159
2201
  productLineId: string;
2160
2202
  label?: string;
2161
2203
  enabled?: boolean;
2204
+ accessScope?: "private" | "all_apps";
2162
2205
  };
2163
2206
  return: any;
2164
2207
  };
@@ -2185,6 +2228,7 @@ export type Api = {
2185
2228
  serviceKey?: string;
2186
2229
  keyword?: string;
2187
2230
  enabled?: boolean;
2231
+ accessScope?: "private" | "all_apps";
2188
2232
  };
2189
2233
  page?: number;
2190
2234
  pageSize?: number;
@@ -2199,6 +2243,7 @@ export type Api = {
2199
2243
  businessLineKey?: string;
2200
2244
  billingProductLineKey?: string;
2201
2245
  enabled?: boolean;
2246
+ accessScope?: "private" | "all_apps";
2202
2247
  };
2203
2248
  return: any;
2204
2249
  };
@@ -2218,6 +2263,7 @@ export type Api = {
2218
2263
  meterKeys?: string[];
2219
2264
  required?: boolean;
2220
2265
  }[];
2266
+ accessScope?: "private" | "all_apps";
2221
2267
  };
2222
2268
  return: any;
2223
2269
  };
@@ -2238,6 +2284,7 @@ export type Api = {
2238
2284
  required?: boolean;
2239
2285
  }[];
2240
2286
  enabled?: boolean;
2287
+ accessScope?: "private" | "all_apps";
2241
2288
  };
2242
2289
  return: any;
2243
2290
  };
@@ -2273,6 +2320,7 @@ export type Api = {
2273
2320
  source?: "builtin" | "custom";
2274
2321
  keyword?: string;
2275
2322
  enabled?: boolean;
2323
+ accessScope?: "private" | "all_apps";
2276
2324
  };
2277
2325
  page?: number;
2278
2326
  pageSize?: number;
@@ -2287,6 +2335,7 @@ export type Api = {
2287
2335
  billingProductLineKey?: string;
2288
2336
  serviceKey?: string;
2289
2337
  enabled?: boolean;
2338
+ accessScope?: "private" | "all_apps";
2290
2339
  };
2291
2340
  return: any;
2292
2341
  };
@@ -2323,6 +2372,7 @@ export type Api = {
2323
2372
  }[];
2324
2373
  };
2325
2374
  enabled?: boolean;
2375
+ accessScope?: "private" | "all_apps";
2326
2376
  };
2327
2377
  return: any;
2328
2378
  };
@@ -2360,6 +2410,7 @@ export type Api = {
2360
2410
  }[];
2361
2411
  };
2362
2412
  enabled?: boolean;
2413
+ accessScope?: "private" | "all_apps";
2363
2414
  };
2364
2415
  return: any;
2365
2416
  };
@@ -2807,6 +2858,17 @@ export type Api = {
2807
2858
  return: any;
2808
2859
  };
2809
2860
  };
2861
+ 'last-charged-period-ends': {
2862
+ /** 按 resourceId 批量查询已成功结算的最大 periodEnd */
2863
+ post: {
2864
+ body: {
2865
+ appId: string;
2866
+ serviceKey: string;
2867
+ resourceIds: string[];
2868
+ };
2869
+ return: any;
2870
+ };
2871
+ };
2810
2872
  reversal: {
2811
2873
  /** 供内部服务冲正已上报的服务用量并退还积分 */
2812
2874
  post: {
@@ -2915,6 +2977,20 @@ export type Api = {
2915
2977
  };
2916
2978
  };
2917
2979
  };
2980
+ billing: {
2981
+ 'settlement-config': {
2982
+ /** 按 app + service 返回 meter 结算周期与价目表 */
2983
+ post: {
2984
+ body: {
2985
+ appId: string;
2986
+ businessLineKey: string;
2987
+ serviceKey: string;
2988
+ priceListId?: string;
2989
+ };
2990
+ return: any;
2991
+ };
2992
+ };
2993
+ };
2918
2994
  pricing: {
2919
2995
  'resolve-model': {
2920
2996
  /** 供 ai-server 运行时读取模型定价 */
@@ -2968,6 +3044,7 @@ export type Api = {
2968
3044
  post: {
2969
3045
  body: {
2970
3046
  appId: string;
3047
+ subjectKeys?: string[];
2971
3048
  };
2972
3049
  return: any;
2973
3050
  };
@@ -3674,7 +3751,7 @@ export interface ApiClient {
3674
3751
  /** 分页查询积分变动历史 */
3675
3752
  post: (body: {
3676
3753
  userId?: string;
3677
- type?: "earn" | "spend" | "reversal" | "clawback" | "adjust";
3754
+ type?: "earn" | "consume" | "reversal" | "clawback" | "adjust";
3678
3755
  subType?: string;
3679
3756
  page?: number;
3680
3757
  pageSize?: number;
@@ -3693,6 +3770,8 @@ export interface ApiClient {
3693
3770
  post: (body: {
3694
3771
  userId?: string;
3695
3772
  period?: "day" | "week" | "month" | "year";
3773
+ startTime?: string;
3774
+ endTime?: string;
3696
3775
  }, config?: RequestConfig) => RequestBuilder<any>;
3697
3776
  };
3698
3777
  trendChart: {
@@ -3712,10 +3791,18 @@ export interface ApiClient {
3712
3791
  endTime?: string;
3713
3792
  }, config?: RequestConfig) => RequestBuilder<any>;
3714
3793
  };
3794
+ businessLineConsumptionChart: {
3795
+ /** 按服务计费引擎业务线聚合积分消费 */
3796
+ post: (body: {
3797
+ userId?: string;
3798
+ startTime?: string;
3799
+ endTime?: string;
3800
+ }, config?: RequestConfig) => RequestBuilder<any>;
3801
+ };
3715
3802
  rankingChart: {
3716
3803
  /** 获取用户积分排行榜 */
3717
3804
  post: (body: {
3718
- type?: "earn" | "spend" | "reversal" | "clawback" | "adjust";
3805
+ type?: "earn" | "consume" | "reversal" | "clawback" | "adjust";
3719
3806
  startTime?: string;
3720
3807
  endTime?: string;
3721
3808
  limit?: number;
@@ -4183,12 +4270,24 @@ export interface ApiClient {
4183
4270
  }, config?: RequestConfig) => RequestBuilder<any>;
4184
4271
  };
4185
4272
  statistics: {
4186
- /** 获取用户积分充值订单统计 */
4273
+ /** 获取当前 app 积分充值订单统计 */
4187
4274
  post: (body: {
4188
4275
  startTime?: string;
4189
4276
  endTime?: string;
4190
4277
  }, config?: RequestConfig) => RequestBuilder<any>;
4191
4278
  };
4279
+ accountSummary: {
4280
+ /** 汇总当前 app 下所有用户积分账户余额 */
4281
+ post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
4282
+ };
4283
+ trend: {
4284
+ /** 按日聚合当前 app 已支付充值订单 */
4285
+ post: (body: {
4286
+ startTime: string;
4287
+ endTime: string;
4288
+ limit?: number;
4289
+ }, config?: RequestConfig) => RequestBuilder<any>;
4290
+ };
4192
4291
  statusOptions: {
4193
4292
  /** 获取积分充值订单状态下拉选项与展示文案 */
4194
4293
  post: (config?: RequestConfig) => RequestBuilder<any>;
@@ -4420,6 +4519,7 @@ export interface ApiClient {
4420
4519
  pricingType?: "flat" | "tiered" | "meters";
4421
4520
  keyword?: string;
4422
4521
  enabled?: boolean;
4522
+ accessScope?: "private" | "all_apps";
4423
4523
  };
4424
4524
  page?: number;
4425
4525
  pageSize?: number;
@@ -4438,6 +4538,7 @@ export interface ApiClient {
4438
4538
  serviceKey?: string;
4439
4539
  pricingType?: "flat" | "tiered" | "meters";
4440
4540
  enabled?: boolean;
4541
+ accessScope?: "private" | "all_apps";
4441
4542
  }, config?: RequestConfig) => RequestBuilder<any>;
4442
4543
  };
4443
4544
  previewSchema: {
@@ -4502,6 +4603,7 @@ export interface ApiClient {
4502
4603
  }[];
4503
4604
  }[];
4504
4605
  };
4606
+ accessScope?: "private" | "all_apps";
4505
4607
  }, config?: RequestConfig) => RequestBuilder<any>;
4506
4608
  };
4507
4609
  update: {
@@ -4553,6 +4655,7 @@ export interface ApiClient {
4553
4655
  }[];
4554
4656
  }[];
4555
4657
  };
4658
+ accessScope?: "private" | "all_apps";
4556
4659
  }, config?: RequestConfig) => RequestBuilder<any>;
4557
4660
  };
4558
4661
  delete: {
@@ -4593,6 +4696,7 @@ export interface ApiClient {
4593
4696
  where?: {
4594
4697
  keyword?: string;
4595
4698
  enabled?: boolean;
4699
+ accessScope?: "private" | "all_apps";
4596
4700
  };
4597
4701
  withStats?: boolean;
4598
4702
  page?: number;
@@ -4608,12 +4712,14 @@ export interface ApiClient {
4608
4712
  /** 筛选项、表单 Select 用业务线下拉 */
4609
4713
  post: (body: {
4610
4714
  enabled?: boolean;
4715
+ accessScope?: "private" | "all_apps";
4611
4716
  }, config?: RequestConfig) => RequestBuilder<any>;
4612
4717
  };
4613
4718
  create: {
4614
4719
  post: (body: {
4615
4720
  businessLineKey: string;
4616
4721
  label: string;
4722
+ accessScope?: "private" | "all_apps";
4617
4723
  }, config?: RequestConfig) => RequestBuilder<any>;
4618
4724
  };
4619
4725
  update: {
@@ -4621,6 +4727,7 @@ export interface ApiClient {
4621
4727
  businessLineKey: string;
4622
4728
  label?: string;
4623
4729
  enabled?: boolean;
4730
+ accessScope?: "private" | "all_apps";
4624
4731
  }, config?: RequestConfig) => RequestBuilder<any>;
4625
4732
  };
4626
4733
  delete: {
@@ -4636,6 +4743,7 @@ export interface ApiClient {
4636
4743
  businessLineKey?: string;
4637
4744
  keyword?: string;
4638
4745
  enabled?: boolean;
4746
+ accessScope?: "private" | "all_apps";
4639
4747
  };
4640
4748
  withStats?: boolean;
4641
4749
  page?: number;
@@ -4652,6 +4760,7 @@ export interface ApiClient {
4652
4760
  post: (body: {
4653
4761
  businessLineKey?: string;
4654
4762
  enabled?: boolean;
4763
+ accessScope?: "private" | "all_apps";
4655
4764
  }, config?: RequestConfig) => RequestBuilder<any>;
4656
4765
  };
4657
4766
  create: {
@@ -4659,6 +4768,7 @@ export interface ApiClient {
4659
4768
  businessLineKey: string;
4660
4769
  productLineKey: string;
4661
4770
  label: string;
4771
+ accessScope?: "private" | "all_apps";
4662
4772
  }, config?: RequestConfig) => RequestBuilder<any>;
4663
4773
  };
4664
4774
  update: {
@@ -4666,6 +4776,7 @@ export interface ApiClient {
4666
4776
  productLineId: string;
4667
4777
  label?: string;
4668
4778
  enabled?: boolean;
4779
+ accessScope?: "private" | "all_apps";
4669
4780
  }, config?: RequestConfig) => RequestBuilder<any>;
4670
4781
  };
4671
4782
  delete: {
@@ -4686,6 +4797,7 @@ export interface ApiClient {
4686
4797
  serviceKey?: string;
4687
4798
  keyword?: string;
4688
4799
  enabled?: boolean;
4800
+ accessScope?: "private" | "all_apps";
4689
4801
  };
4690
4802
  page?: number;
4691
4803
  pageSize?: number;
@@ -4697,6 +4809,7 @@ export interface ApiClient {
4697
4809
  businessLineKey?: string;
4698
4810
  billingProductLineKey?: string;
4699
4811
  enabled?: boolean;
4812
+ accessScope?: "private" | "all_apps";
4700
4813
  }, config?: RequestConfig) => RequestBuilder<any>;
4701
4814
  };
4702
4815
  create: {
@@ -4713,6 +4826,7 @@ export interface ApiClient {
4713
4826
  meterKeys?: string[];
4714
4827
  required?: boolean;
4715
4828
  }[];
4829
+ accessScope?: "private" | "all_apps";
4716
4830
  }, config?: RequestConfig) => RequestBuilder<any>;
4717
4831
  };
4718
4832
  update: {
@@ -4730,6 +4844,7 @@ export interface ApiClient {
4730
4844
  required?: boolean;
4731
4845
  }[];
4732
4846
  enabled?: boolean;
4847
+ accessScope?: "private" | "all_apps";
4733
4848
  }, config?: RequestConfig) => RequestBuilder<any>;
4734
4849
  };
4735
4850
  delete: {
@@ -4757,6 +4872,7 @@ export interface ApiClient {
4757
4872
  source?: "builtin" | "custom";
4758
4873
  keyword?: string;
4759
4874
  enabled?: boolean;
4875
+ accessScope?: "private" | "all_apps";
4760
4876
  };
4761
4877
  page?: number;
4762
4878
  pageSize?: number;
@@ -4768,6 +4884,7 @@ export interface ApiClient {
4768
4884
  billingProductLineKey?: string;
4769
4885
  serviceKey?: string;
4770
4886
  enabled?: boolean;
4887
+ accessScope?: "private" | "all_apps";
4771
4888
  }, config?: RequestConfig) => RequestBuilder<any>;
4772
4889
  };
4773
4890
  create: {
@@ -4801,6 +4918,7 @@ export interface ApiClient {
4801
4918
  }[];
4802
4919
  };
4803
4920
  enabled?: boolean;
4921
+ accessScope?: "private" | "all_apps";
4804
4922
  }, config?: RequestConfig) => RequestBuilder<any>;
4805
4923
  };
4806
4924
  update: {
@@ -4835,6 +4953,7 @@ export interface ApiClient {
4835
4953
  }[];
4836
4954
  };
4837
4955
  enabled?: boolean;
4956
+ accessScope?: "private" | "all_apps";
4838
4957
  }, config?: RequestConfig) => RequestBuilder<any>;
4839
4958
  };
4840
4959
  delete: {
@@ -5181,6 +5300,14 @@ export interface ApiClient {
5181
5300
  freeQuotaOverride?: number;
5182
5301
  }, config?: RequestConfig) => RequestBuilder<any>;
5183
5302
  };
5303
+ 'last-charged-period-ends': {
5304
+ /** 按 resourceId 批量查询已成功结算的最大 periodEnd */
5305
+ post: (body: {
5306
+ appId: string;
5307
+ serviceKey: string;
5308
+ resourceIds: string[];
5309
+ }, config?: RequestConfig) => RequestBuilder<any>;
5310
+ };
5184
5311
  reversal: {
5185
5312
  /** 供内部服务冲正已上报的服务用量并退还积分 */
5186
5313
  post: (body: {
@@ -5271,6 +5398,17 @@ export interface ApiClient {
5271
5398
  }, config?: RequestConfig) => RequestBuilder<any>;
5272
5399
  };
5273
5400
  };
5401
+ billing: {
5402
+ 'settlement-config': {
5403
+ /** 按 app + service 返回 meter 结算周期与价目表 */
5404
+ post: (body: {
5405
+ appId: string;
5406
+ businessLineKey: string;
5407
+ serviceKey: string;
5408
+ priceListId?: string;
5409
+ }, config?: RequestConfig) => RequestBuilder<any>;
5410
+ };
5411
+ };
5274
5412
  pricing: {
5275
5413
  'resolve-model': {
5276
5414
  /** 供 ai-server 运行时读取模型定价 */
@@ -5311,6 +5449,7 @@ export interface ApiClient {
5311
5449
  'list-model-pricing-map': {
5312
5450
  post: (body: {
5313
5451
  appId: string;
5452
+ subjectKeys?: string[];
5314
5453
  }, config?: RequestConfig) => RequestBuilder<any>;
5315
5454
  };
5316
5455
  };
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js";
1
+ import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DPQZCllL.js";
2
2
  export {
3
3
  a as UserAccountMenu,
4
4
  n as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.13.9",
3
+ "version": "0.14.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [