@jctrans-materials/shared 1.0.41-beta.1 → 1.0.41-beta.10
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/README.md +133 -1
- package/dist/index.cjs.js +0 -0
- package/dist/index.d.ts +185 -1
- package/dist/index.esm.js +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@ JCTrans 前端共享工具库,为 JCTrans 系列项目提供认证、请求、
|
|
|
12
12
|
| 统一类型 | `api/searchTypes` | 搜索模块共享类型定义 |
|
|
13
13
|
| 认证 API | `api/auth` | 登录、注册、第三方登录、密码找回、Session 管理 |
|
|
14
14
|
| 业务 API | `api/common` + `api/applyData` | 验证码、字典、IP 查询、数据上报 |
|
|
15
|
+
| 反查回显 | `api/reverseLookup` | 按英文展示名反查实体详情 |
|
|
16
|
+
| DW-SDK | `dw-sdk/` | 数据仓库 GraphQL SDK 统一入口 |
|
|
15
17
|
| 请求封装 | `utils/request` | Axios/Fetch 双适配器 + 拦截器 |
|
|
16
18
|
| Token 管理 | `utils/storage` | Cookie 凭证存取(Access Token / Refresh Token) |
|
|
17
19
|
| 加密 | `utils/crypto` | AES 加解密(ECB,与后端对齐) |
|
|
@@ -75,8 +77,55 @@ createRequest("axios");
|
|
|
75
77
|
|
|
76
78
|
// 切换为 Fetch(可传入自定义实现,如 Nuxt 的 $fetch)
|
|
77
79
|
createRequest("fetch", { fetch: $fetch });
|
|
80
|
+
|
|
81
|
+
// 切换为 Custom(小程序等非浏览器环境,完全透传)
|
|
82
|
+
createRequest("custom", {
|
|
83
|
+
baseURL: "https://cloudapi-sit2.jctrans.net.cn",
|
|
84
|
+
fetch: async ({ url, method, data, params, headers }) => {
|
|
85
|
+
// 用户自己的请求实现,header/token/返回值完全由你控制
|
|
86
|
+
return new Promise((resolve, reject) => {
|
|
87
|
+
wx.request({
|
|
88
|
+
url,
|
|
89
|
+
method: method as any,
|
|
90
|
+
data,
|
|
91
|
+
header: headers,
|
|
92
|
+
success: (res: any) => resolve(res.data),
|
|
93
|
+
fail: reject,
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
});
|
|
78
98
|
```
|
|
79
99
|
|
|
100
|
+
#### ClientId 插件
|
|
101
|
+
|
|
102
|
+
自动在所有请求 header 中注入客户端唯一标识(`client-uid`),用于无埋点追踪和用户行为分析。
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
import {
|
|
106
|
+
installClientIdPlugin,
|
|
107
|
+
installFetchClientIdPlugin,
|
|
108
|
+
getOrCreateClientId,
|
|
109
|
+
createRequest,
|
|
110
|
+
} from "@jctrans-materials/shared";
|
|
111
|
+
|
|
112
|
+
// Axios 环境:直接安装插件
|
|
113
|
+
installClientIdPlugin(axiosInstance, {
|
|
114
|
+
headerName: "client-uid", // 可选,默认 'client-uid'
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
// Fetch 环境:先创建请求实例再安装
|
|
118
|
+
const request = createRequest("fetch", { fetch: customFetch });
|
|
119
|
+
installFetchClientIdPlugin({
|
|
120
|
+
headerName: "client-uid", // 可选,默认 'client-uid'
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// 手动获取 clientId
|
|
124
|
+
const cid = getOrCreateClientId(); // 首次调用自动生成并持久化
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
> **原理**:使用 `nanoid` 生成,完全 SSR 兼容(无 `window`/`document` 依赖)。ClientId 存储在 `localStorage` 中,跨页面共享。
|
|
128
|
+
|
|
80
129
|
### 3. 地理位置搜索
|
|
81
130
|
|
|
82
131
|
#### V2 接口(推荐)
|
|
@@ -240,6 +289,14 @@ import { tracker, normalizeClickPageAttrs, GIO_EVENT_CLICK_PAGE } from "@jctrans
|
|
|
240
289
|
tracker.init("account-id", "datasource-id", {
|
|
241
290
|
debug: true,
|
|
242
291
|
trackPage: true,
|
|
292
|
+
// 性能采集(默认开启首屏加载监控和错误监控,默认关闭网络监控)
|
|
293
|
+
performance: {
|
|
294
|
+
monitor: true, // 首屏加载监控,默认 true
|
|
295
|
+
exception: true, // 错误监控,默认 true
|
|
296
|
+
network: { // 网络监控,不配置则默认关闭
|
|
297
|
+
exclude: /api\.example\.com/, // 排除指定域名的请求
|
|
298
|
+
},
|
|
299
|
+
},
|
|
243
300
|
});
|
|
244
301
|
|
|
245
302
|
// 设置用户 ID
|
|
@@ -304,6 +361,62 @@ await reportNewTypeDataApi({
|
|
|
304
361
|
});
|
|
305
362
|
```
|
|
306
363
|
|
|
364
|
+
### 10. 反查回显
|
|
365
|
+
|
|
366
|
+
通过英文展示名(nameEnShow)反查实体详情,用于从外部链接或 URL 参数回显数据。
|
|
367
|
+
|
|
368
|
+
```typescript
|
|
369
|
+
import {
|
|
370
|
+
getAirportByNameEnShow,
|
|
371
|
+
getCountryByNameEnShow,
|
|
372
|
+
getCityByNameEnShow,
|
|
373
|
+
getSeaportByNameEnShow,
|
|
374
|
+
} from "@jctrans-materials/shared";
|
|
375
|
+
|
|
376
|
+
// 按英文展示名查询机场详情
|
|
377
|
+
const airport = await getAirportByNameEnShow("Shanghai Pudong International Airport");
|
|
378
|
+
|
|
379
|
+
// 按英文展示名查询国家详情
|
|
380
|
+
const country = await getCountryByNameEnShow("China");
|
|
381
|
+
|
|
382
|
+
// 按英文展示名查询城市详情
|
|
383
|
+
const city = await getCityByNameEnShow("Shanghai");
|
|
384
|
+
|
|
385
|
+
// 按英文展示名查询港口详情
|
|
386
|
+
const seaport = await getSeaportByNameEnShow("Shanghai Port");
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
### 11. DW-SDK(数据仓库 GraphQL SDK)
|
|
390
|
+
|
|
391
|
+
对 `@jctrans/dw-sdk` 的零配置封装,自动注入 baseUrl 和 Authorization Token。
|
|
392
|
+
|
|
393
|
+
```typescript
|
|
394
|
+
import {
|
|
395
|
+
queryOpportunityBoard,
|
|
396
|
+
GraphQLClientError,
|
|
397
|
+
} from "@jctrans-materials/shared";
|
|
398
|
+
import type {
|
|
399
|
+
OpportunityBoardParams,
|
|
400
|
+
BoardQueryResult,
|
|
401
|
+
DateType,
|
|
402
|
+
} from "@jctrans-materials/shared";
|
|
403
|
+
|
|
404
|
+
// 查询商机有效看板数据
|
|
405
|
+
const result = await queryOpportunityBoard({
|
|
406
|
+
compId: 12345,
|
|
407
|
+
dateType: "QUARTER",
|
|
408
|
+
dateValue: "2026-Q2",
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
if (result.success) {
|
|
412
|
+
console.log(result.data.records);
|
|
413
|
+
} else {
|
|
414
|
+
console.error(result.error);
|
|
415
|
+
}
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
> **原理**:每次调用内部新建 `createDwSdk()` 实例,调用后即销毁,无状态污染。`baseUrl` 自动从 `initSharedConfig` 的 `prefixPath + '/data'` 拼接。
|
|
419
|
+
|
|
307
420
|
## 核心 API 参考
|
|
308
421
|
|
|
309
422
|
### 配置
|
|
@@ -363,6 +476,23 @@ await reportNewTypeDataApi({
|
|
|
363
476
|
| `setAuthSessionItems` / `getAuthSessionItems` / `resetAuthSessionItems` | Auth Session 管理 |
|
|
364
477
|
| `setGioSessionItems` / `getGioSessionItems` / `resetGioSessionItems` | GIO Session 管理 |
|
|
365
478
|
|
|
479
|
+
### 反查回显
|
|
480
|
+
|
|
481
|
+
| 方法 | 说明 |
|
|
482
|
+
|------|------|
|
|
483
|
+
| `getAirportByNameEnShow` | 按英文展示名查询机场 |
|
|
484
|
+
| `getCountryByNameEnShow` | 按英文展示名查询国家 |
|
|
485
|
+
| `getCityByNameEnShow` | 按英文展示名查询城市 |
|
|
486
|
+
| `getSeaportByNameEnShow` | 按英文展示名查询港口 |
|
|
487
|
+
|
|
488
|
+
### DW-SDK
|
|
489
|
+
|
|
490
|
+
| 方法 | 说明 |
|
|
491
|
+
|------|------|
|
|
492
|
+
| `queryOpportunityBoard` | 查询商机有效看板(分页) |
|
|
493
|
+
|
|
494
|
+
导出类型:`OpportunityBoardParams`, `BoardQueryResult`, `DateType`, `GraphQLClientError`。
|
|
495
|
+
|
|
366
496
|
### Token & Cookie
|
|
367
497
|
|
|
368
498
|
| 方法 | 说明 |
|
|
@@ -377,13 +507,15 @@ await reportNewTypeDataApi({
|
|
|
377
507
|
|
|
378
508
|
| 方法 | 说明 |
|
|
379
509
|
|------|------|
|
|
380
|
-
| `isEmpty` |
|
|
510
|
+
| `isEmpty` | 判断值是否为空(null/undefined/空字符串/空数组/空对象/空 Map/空 Set)。数字、布尔值等原始类型返回 `false` |
|
|
381
511
|
| `isIpAddress` / `getFirstDomain` | 域名工具 |
|
|
382
512
|
| `getAppId` / `getProjectId` | 跨环境 ID 获取 |
|
|
383
513
|
| `getLanguage` | 获取当前语言 |
|
|
384
514
|
| `getSessionHeaderValue` / `toSafeHeaderValue` | HTTP Header 安全工具 |
|
|
385
515
|
| `encrypt` / `decrypt` | AES 加解密 |
|
|
386
516
|
| `generateClientId` / `getOrCreateClientId` | 客户端唯一标识 |
|
|
517
|
+
| `installClientIdPlugin` | 为 Axios 实例注入 client-uid header |
|
|
518
|
+
| `installFetchClientIdPlugin` | 为 Fetch 请求注入 client-uid header |
|
|
387
519
|
|
|
388
520
|
## 类型定义
|
|
389
521
|
|
package/dist/index.cjs.js
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { BoardQueryResult } from '@jctrans/dw-sdk';
|
|
3
|
+
import { CrmDashboardParams } from '@jctrans/dw-sdk';
|
|
4
|
+
import { CrmNewSigningResult } from '@jctrans/dw-sdk';
|
|
5
|
+
import { CrmRenewalDetailResult } from '@jctrans/dw-sdk';
|
|
6
|
+
import { CrmRenewalResult } from '@jctrans/dw-sdk';
|
|
3
7
|
import { DateType } from '@jctrans/dw-sdk';
|
|
4
8
|
import { Emitter } from 'mitt';
|
|
5
9
|
import { GraphQLClientError } from '@jctrans/dw-sdk';
|
|
10
|
+
import { MemberQuarterlyVo } from '@jctrans/dw-sdk';
|
|
6
11
|
import { OpportunityBoardParams } from '@jctrans/dw-sdk';
|
|
12
|
+
import { PlatformQueryResult } from '@jctrans/dw-sdk';
|
|
13
|
+
import { PlatformServiceParams } from '@jctrans/dw-sdk';
|
|
14
|
+
import { RenewalDetailResult } from '@jctrans/dw-sdk';
|
|
15
|
+
import { SalesEventPerfResult } from '@jctrans/dw-sdk';
|
|
16
|
+
import { SalesMemberPerfResult } from '@jctrans/dw-sdk';
|
|
17
|
+
import { SalesServiceParams } from '@jctrans/dw-sdk';
|
|
18
|
+
import { SalesTotalPerfResult } from '@jctrans/dw-sdk';
|
|
7
19
|
|
|
8
20
|
declare type ActionKeys = (typeof MODAL_ACTION)[keyof typeof MODAL_ACTION];
|
|
9
21
|
|
|
@@ -144,6 +156,14 @@ export declare function createFetchWithClientId(options?: FetchClientIdOptions):
|
|
|
144
156
|
|
|
145
157
|
export declare function createRequest(driver: RequestDriver, options?: RequestOptions): RequestAdapter;
|
|
146
158
|
|
|
159
|
+
export { CrmDashboardParams }
|
|
160
|
+
|
|
161
|
+
export { CrmNewSigningResult }
|
|
162
|
+
|
|
163
|
+
export { CrmRenewalDetailResult }
|
|
164
|
+
|
|
165
|
+
export { CrmRenewalResult }
|
|
166
|
+
|
|
147
167
|
export declare const currentConfig: {
|
|
148
168
|
readonly basePath: string;
|
|
149
169
|
readonly carrierPath: string;
|
|
@@ -981,6 +1001,27 @@ export declare interface LoginResult {
|
|
|
981
1001
|
improveComp: boolean;
|
|
982
1002
|
}
|
|
983
1003
|
|
|
1004
|
+
/** 客户季度报告查询入参 */
|
|
1005
|
+
export declare interface MemberQuarterlyParams {
|
|
1006
|
+
/** 公司ID(必填) */
|
|
1007
|
+
companyId: number;
|
|
1008
|
+
/** 年份(必填) */
|
|
1009
|
+
year: number;
|
|
1010
|
+
/** 季度:1-4(必填) */
|
|
1011
|
+
quarter: number;
|
|
1012
|
+
/** 子类型:'interaction' | 'benchmark' | 'account'(可选) */
|
|
1013
|
+
subTypes?: string[];
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/** 客户季度报告查询结果 */
|
|
1017
|
+
export declare interface MemberQuarterlyResult {
|
|
1018
|
+
success: boolean;
|
|
1019
|
+
data: MemberQuarterlyVo | null;
|
|
1020
|
+
error: string | null;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export { MemberQuarterlyVo }
|
|
1024
|
+
|
|
984
1025
|
export declare const MODAL_ACTION: {
|
|
985
1026
|
readonly Open: "GLOBAL_MODAL_OPEN";
|
|
986
1027
|
readonly Close: "GLOBAL_MODAL_CLOSE";
|
|
@@ -1012,8 +1053,74 @@ export declare interface PageParams {
|
|
|
1012
1053
|
size?: number;
|
|
1013
1054
|
}
|
|
1014
1055
|
|
|
1056
|
+
export { PlatformQueryResult }
|
|
1057
|
+
|
|
1058
|
+
export { PlatformServiceParams }
|
|
1059
|
+
|
|
1015
1060
|
export declare const PrjId: string;
|
|
1016
1061
|
|
|
1062
|
+
/**
|
|
1063
|
+
* 查询 CRM 新签观测数据。
|
|
1064
|
+
*
|
|
1065
|
+
* @example
|
|
1066
|
+
* ```ts
|
|
1067
|
+
* const result = await queryCrmNewSigning({
|
|
1068
|
+
* deptId: 100,
|
|
1069
|
+
* statMonth: '2026-06',
|
|
1070
|
+
* })
|
|
1071
|
+
* ```
|
|
1072
|
+
*/
|
|
1073
|
+
export declare function queryCrmNewSigning(params: CrmDashboardParams): Promise<CrmNewSigningResult>;
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* 查询 CRM 续费观测数据。
|
|
1077
|
+
*
|
|
1078
|
+
* @example
|
|
1079
|
+
* ```ts
|
|
1080
|
+
* const result = await queryCrmRenewal({
|
|
1081
|
+
* deptId: 100,
|
|
1082
|
+
* statMonth: '2026-06',
|
|
1083
|
+
* })
|
|
1084
|
+
* ```
|
|
1085
|
+
*/
|
|
1086
|
+
export declare function queryCrmRenewal(params: CrmDashboardParams): Promise<CrmRenewalResult>;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* 查询 CRM 续费观测详情。
|
|
1090
|
+
*
|
|
1091
|
+
* @example
|
|
1092
|
+
* ```ts
|
|
1093
|
+
* const result = await queryCrmRenewalDetail({
|
|
1094
|
+
* deptId: 100,
|
|
1095
|
+
* statMonth: '2026-06',
|
|
1096
|
+
* })
|
|
1097
|
+
* ```
|
|
1098
|
+
*/
|
|
1099
|
+
export declare function queryCrmRenewalDetail(params: CrmDashboardParams): Promise<CrmRenewalDetailResult>;
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* 查询客户季度综合报告。
|
|
1103
|
+
*
|
|
1104
|
+
* 返回单个公司的全维度季度数据,包含互动排名、对标公司、账号使用等。
|
|
1105
|
+
* 默认查询全部字段。
|
|
1106
|
+
*
|
|
1107
|
+
* @example
|
|
1108
|
+
* ```ts
|
|
1109
|
+
* const result = await queryMemberQuarterly({
|
|
1110
|
+
* companyId: 12345,
|
|
1111
|
+
* year: 2026,
|
|
1112
|
+
* quarter: 2,
|
|
1113
|
+
* subTypes: ['interaction', 'benchmark'],
|
|
1114
|
+
* })
|
|
1115
|
+
*
|
|
1116
|
+
* if (result.success) {
|
|
1117
|
+
* console.log(result.data.companyNameCn)
|
|
1118
|
+
* console.log(result.data.interactionList)
|
|
1119
|
+
* }
|
|
1120
|
+
* ```
|
|
1121
|
+
*/
|
|
1122
|
+
export declare function queryMemberQuarterly(params: MemberQuarterlyParams): Promise<MemberQuarterlyResult>;
|
|
1123
|
+
|
|
1017
1124
|
/**
|
|
1018
1125
|
* 查询商机有效看板数据(分页)。
|
|
1019
1126
|
*
|
|
@@ -1036,6 +1143,71 @@ export declare const PrjId: string;
|
|
|
1036
1143
|
*/
|
|
1037
1144
|
export declare function queryOpportunityBoard(params: OpportunityBoardParams): Promise<BoardQueryResult>;
|
|
1038
1145
|
|
|
1146
|
+
/**
|
|
1147
|
+
* 查询业绩部门用户数据(分页)。
|
|
1148
|
+
*
|
|
1149
|
+
* @example
|
|
1150
|
+
* ```ts
|
|
1151
|
+
* import { queryPlatformDeptUser } from '@jctrans-materials/shared'
|
|
1152
|
+
*
|
|
1153
|
+
* const result = await queryPlatformDeptUser({
|
|
1154
|
+
* queryDim: 'dept',
|
|
1155
|
+
* deptId: 100,
|
|
1156
|
+
* })
|
|
1157
|
+
*
|
|
1158
|
+
* if (result.success) {
|
|
1159
|
+
* console.log(result.data.records)
|
|
1160
|
+
* }
|
|
1161
|
+
* ```
|
|
1162
|
+
*/
|
|
1163
|
+
export declare function queryPlatformDeptUser(params?: PlatformServiceParams): Promise<PlatformQueryResult>;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* 查询续费明细。
|
|
1167
|
+
*
|
|
1168
|
+
* @example
|
|
1169
|
+
* ```ts
|
|
1170
|
+
* const result = await queryRenewalDetail({ userId: 100 })
|
|
1171
|
+
* ```
|
|
1172
|
+
*/
|
|
1173
|
+
export declare function queryRenewalDetail(params: SalesServiceParams): Promise<RenewalDetailResult>;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* 查询会议业绩看板。
|
|
1177
|
+
*
|
|
1178
|
+
* @example
|
|
1179
|
+
* ```ts
|
|
1180
|
+
* const result = await querySalesEventPerf({
|
|
1181
|
+
* deptId: 100,
|
|
1182
|
+
* monthFilterMode: 'month',
|
|
1183
|
+
* })
|
|
1184
|
+
* ```
|
|
1185
|
+
*/
|
|
1186
|
+
export declare function querySalesEventPerf(params: SalesServiceParams): Promise<SalesEventPerfResult>;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* 查询会员业绩看板。
|
|
1190
|
+
*
|
|
1191
|
+
* @example
|
|
1192
|
+
* ```ts
|
|
1193
|
+
* const result = await querySalesMemberPerf({ deptId: 100 })
|
|
1194
|
+
* ```
|
|
1195
|
+
*/
|
|
1196
|
+
export declare function querySalesMemberPerf(params: SalesServiceParams): Promise<SalesMemberPerfResult>;
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* 查询总业绩看板。
|
|
1200
|
+
*
|
|
1201
|
+
* @example
|
|
1202
|
+
* ```ts
|
|
1203
|
+
* const result = await querySalesTotalPerf({
|
|
1204
|
+
* deptId: 100,
|
|
1205
|
+
* performanceMonth: '2026-06',
|
|
1206
|
+
* })
|
|
1207
|
+
* ```
|
|
1208
|
+
*/
|
|
1209
|
+
export declare function querySalesTotalPerf(params: SalesServiceParams): Promise<SalesTotalPerfResult>;
|
|
1210
|
+
|
|
1039
1211
|
export declare const RefreshExpiresInKey: string;
|
|
1040
1212
|
|
|
1041
1213
|
export declare const RefreshExpiresInTimeKey: string;
|
|
@@ -1058,6 +1230,8 @@ export declare const RememberMeAccountKey: string;
|
|
|
1058
1230
|
|
|
1059
1231
|
export declare const RememberMePasswordKey: string;
|
|
1060
1232
|
|
|
1233
|
+
export { RenewalDetailResult }
|
|
1234
|
+
|
|
1061
1235
|
export declare interface ReportNewTypeData {
|
|
1062
1236
|
reportData: string;
|
|
1063
1237
|
reportType: ReportType;
|
|
@@ -1071,6 +1245,8 @@ export declare type ReportType = "City" | "Seaport" | "Airport" | "Line" | "Carr
|
|
|
1071
1245
|
declare interface RequestAdapter {
|
|
1072
1246
|
get(url: string, config?: RequestConfig): Promise<any>;
|
|
1073
1247
|
post(url: string, data?: any, config?: RequestConfig): Promise<any>;
|
|
1248
|
+
patch(url: string, data?: any, config?: RequestConfig): Promise<any>;
|
|
1249
|
+
delete(url: string, config?: RequestConfig): Promise<any>;
|
|
1074
1250
|
}
|
|
1075
1251
|
|
|
1076
1252
|
declare interface RequestConfig {
|
|
@@ -1079,7 +1255,7 @@ declare interface RequestConfig {
|
|
|
1079
1255
|
isToken?: boolean;
|
|
1080
1256
|
}
|
|
1081
1257
|
|
|
1082
|
-
declare type RequestDriver = "axios" | "fetch";
|
|
1258
|
+
declare type RequestDriver = "axios" | "fetch" | "custom";
|
|
1083
1259
|
|
|
1084
1260
|
declare interface RequestOptions {
|
|
1085
1261
|
onUnauthorized?: () => void;
|
|
@@ -1100,6 +1276,14 @@ declare interface ResetPasswordData {
|
|
|
1100
1276
|
[key: string]: any;
|
|
1101
1277
|
}
|
|
1102
1278
|
|
|
1279
|
+
export { SalesEventPerfResult }
|
|
1280
|
+
|
|
1281
|
+
export { SalesMemberPerfResult }
|
|
1282
|
+
|
|
1283
|
+
export { SalesServiceParams }
|
|
1284
|
+
|
|
1285
|
+
export { SalesTotalPerfResult }
|
|
1286
|
+
|
|
1103
1287
|
/**
|
|
1104
1288
|
* 保存 clientId 到 localStorage
|
|
1105
1289
|
*/
|
package/dist/index.esm.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jctrans-materials/shared",
|
|
3
|
-
"version": "1.0.41-beta.
|
|
3
|
+
"version": "1.0.41-beta.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared utilities including auth, request, crypto, and GrowingIO analytics.",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"packageManager": "pnpm@10.12.4",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@jctrans/dw-sdk": "^1.
|
|
21
|
+
"@jctrans/dw-sdk": "^1.1.4",
|
|
22
22
|
"crypto-js": "^4.2.0",
|
|
23
23
|
"js-cookie": "^3.0.5",
|
|
24
24
|
"mitt": "^3.0.1",
|