@jctrans-materials/shared 1.0.41-beta.8 → 1.0.41-beta.9
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/dist/index.cjs.js +0 -0
- package/dist/index.d.ts +182 -0
- package/dist/index.esm.js +0 -0
- package/package.json +2 -2
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;
|
|
@@ -1102,6 +1276,14 @@ declare interface ResetPasswordData {
|
|
|
1102
1276
|
[key: string]: any;
|
|
1103
1277
|
}
|
|
1104
1278
|
|
|
1279
|
+
export { SalesEventPerfResult }
|
|
1280
|
+
|
|
1281
|
+
export { SalesMemberPerfResult }
|
|
1282
|
+
|
|
1283
|
+
export { SalesServiceParams }
|
|
1284
|
+
|
|
1285
|
+
export { SalesTotalPerfResult }
|
|
1286
|
+
|
|
1105
1287
|
/**
|
|
1106
1288
|
* 保存 clientId 到 localStorage
|
|
1107
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.9",
|
|
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",
|