@jctrans/dw-sdk 1.0.0 → 1.1.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.
- package/README.md +444 -2
- package/dist/core/BaseQuery.js +1 -1
- package/dist/core/GraphQLClient.js +1 -1
- package/dist/generated/member/MemberManager.d.ts +48 -0
- package/dist/generated/member/MemberManager.js +1 -0
- package/dist/generated/member/MemberQuarterlyQuery.d.ts +64 -0
- package/dist/generated/member/MemberQuarterlyQuery.js +1 -0
- package/dist/generated/member/types.d.ts +94 -0
- package/dist/generated/member/types.js +1 -0
- package/dist/generated/opportunity/OpportunityEffectiveBoardQuery.js +1 -1
- package/dist/generated/opportunity/OpportunityManager.js +1 -1
- package/dist/generated/opportunity/types.js +1 -1
- package/dist/generated/platform/PlatformManager.d.ts +64 -0
- package/dist/generated/platform/PlatformManager.js +1 -0
- package/dist/generated/platform/PlatformPerformanceDeptUserQuery.d.ts +80 -0
- package/dist/generated/platform/PlatformPerformanceDeptUserQuery.js +1 -0
- package/dist/generated/platform/types.d.ts +146 -0
- package/dist/generated/platform/types.js +1 -0
- package/dist/generated/sales/CrmNewSigningQuery.d.ts +33 -0
- package/dist/generated/sales/CrmNewSigningQuery.js +1 -0
- package/dist/generated/sales/CrmRenewalDetailQuery.d.ts +33 -0
- package/dist/generated/sales/CrmRenewalDetailQuery.js +1 -0
- package/dist/generated/sales/CrmRenewalQuery.d.ts +33 -0
- package/dist/generated/sales/CrmRenewalQuery.js +1 -0
- package/dist/generated/sales/RenewalDetailQuery.d.ts +43 -0
- package/dist/generated/sales/RenewalDetailQuery.js +1 -0
- package/dist/generated/sales/SalesEventPerfQuery.d.ts +21 -0
- package/dist/generated/sales/SalesEventPerfQuery.js +1 -0
- package/dist/generated/sales/SalesManager.d.ts +94 -0
- package/dist/generated/sales/SalesManager.js +1 -0
- package/dist/generated/sales/SalesMemberPerfQuery.d.ts +21 -0
- package/dist/generated/sales/SalesMemberPerfQuery.js +1 -0
- package/dist/generated/sales/SalesTotalPerfQuery.d.ts +25 -0
- package/dist/generated/sales/SalesTotalPerfQuery.js +1 -0
- package/dist/generated/sales/types.d.ts +224 -0
- package/dist/generated/sales/types.js +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1 -1
- package/dist/services/opportunity/BoardService.js +1 -1
- package/dist/services/opportunity/types.js +1 -1
- package/dist/services/opportunity/validator.js +1 -1
- package/dist/services/platform/PlatformService.d.ts +83 -0
- package/dist/services/platform/PlatformService.js +1 -0
- package/dist/services/sales/SalesService.d.ts +78 -0
- package/dist/services/sales/SalesService.js +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================
|
|
3
|
+
* generated/sales/types.ts
|
|
4
|
+
* ============================================================
|
|
5
|
+
*
|
|
6
|
+
* 【来源】
|
|
7
|
+
* 对齐 data/src/main/resources/graphql/sales.graphqls(v2 拆分版)。
|
|
8
|
+
*
|
|
9
|
+
* 【v2 变更】
|
|
10
|
+
* - salesPerf 拆为 3 个查询:salesTotalPerf / salesMemberPerf / salesEventPerf
|
|
11
|
+
* - 新增 BoardVo 类型:SalesTotalPerfBoardVo / SalesMemberPerfBoardVo / SalesEventPerfBoardVo
|
|
12
|
+
* - Input 新增字段:forecastEnabled, marketArea, monthFilterMode
|
|
13
|
+
* - 数字类型 BigDecimal → Float(TS 侧统一 number)
|
|
14
|
+
* - 时间类型 LocalDateTime → String
|
|
15
|
+
* - RenewalDetailVo 字段变更:receiptType → normalAmountRmb/overdraftAmountRmb/recoveredAmountRmb/receiptTotalAmountRmb
|
|
16
|
+
*/
|
|
17
|
+
/** 销售域 GraphQL 查询入参(salesTotalPerf / salesMemberPerf / salesEventPerf / renewalDetail 共用) */
|
|
18
|
+
export interface SalesInput {
|
|
19
|
+
/** 部门ID(可选) */
|
|
20
|
+
deptId?: number | null;
|
|
21
|
+
/** 用户ID(可选) */
|
|
22
|
+
userId?: number | null;
|
|
23
|
+
/** 业绩月份,格式 YYYY-MM(可选) */
|
|
24
|
+
performanceMonth?: string | null;
|
|
25
|
+
/** 是否启用预测(可选) */
|
|
26
|
+
forecastEnabled?: boolean | null;
|
|
27
|
+
/** 市场区域: "0"=国内, "1"=海外 */
|
|
28
|
+
marketArea?: string | null;
|
|
29
|
+
/** 月份筛选模式(可选,仅 salesEventPerf 使用) */
|
|
30
|
+
monthFilterMode?: string | null;
|
|
31
|
+
/** 查询维度(可选,仅 renewalDetail 使用) */
|
|
32
|
+
queryDim?: string | null;
|
|
33
|
+
}
|
|
34
|
+
export interface SalesTotalPerfVo {
|
|
35
|
+
queryDim?: string | null;
|
|
36
|
+
userId?: number | null;
|
|
37
|
+
userName?: string | null;
|
|
38
|
+
deptId?: number | null;
|
|
39
|
+
deptName?: string | null;
|
|
40
|
+
bigCategoryCode?: string | null;
|
|
41
|
+
salesAmount?: number | null;
|
|
42
|
+
completedAmount?: number | null;
|
|
43
|
+
targetAmount?: number | null;
|
|
44
|
+
opportunityAmount?: number | null;
|
|
45
|
+
completionRate?: number | null;
|
|
46
|
+
forecastCompletionRate?: number | null;
|
|
47
|
+
performanceMonth?: string | null;
|
|
48
|
+
createTime?: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface SalesUserPerfVo {
|
|
51
|
+
queryDim?: string | null;
|
|
52
|
+
userId?: number | null;
|
|
53
|
+
userName?: string | null;
|
|
54
|
+
deptId?: number | null;
|
|
55
|
+
deptName?: string | null;
|
|
56
|
+
salesAmount?: number | null;
|
|
57
|
+
completedAmount?: number | null;
|
|
58
|
+
receiptAmount?: number | null;
|
|
59
|
+
memberSalesAmount?: number | null;
|
|
60
|
+
memberCompletedAmount?: number | null;
|
|
61
|
+
performanceMonth?: string | null;
|
|
62
|
+
createTime?: string | null;
|
|
63
|
+
}
|
|
64
|
+
export interface SalesDeptPerfVo {
|
|
65
|
+
queryDim?: string | null;
|
|
66
|
+
performanceMonth?: string | null;
|
|
67
|
+
deptId?: number | null;
|
|
68
|
+
deptName?: string | null;
|
|
69
|
+
level1DeptId?: number | null;
|
|
70
|
+
level1DeptName?: string | null;
|
|
71
|
+
level2DeptId?: number | null;
|
|
72
|
+
level2DeptName?: string | null;
|
|
73
|
+
level3DeptId?: number | null;
|
|
74
|
+
level3DeptName?: string | null;
|
|
75
|
+
level4DeptId?: number | null;
|
|
76
|
+
level4DeptName?: string | null;
|
|
77
|
+
level5DeptId?: number | null;
|
|
78
|
+
level5DeptName?: string | null;
|
|
79
|
+
deptLevel?: number | null;
|
|
80
|
+
salesAmount?: number | null;
|
|
81
|
+
completedAmount?: number | null;
|
|
82
|
+
receiptAmount?: number | null;
|
|
83
|
+
opportunityAmount?: number | null;
|
|
84
|
+
targetAmount?: number | null;
|
|
85
|
+
completionRate?: number | null;
|
|
86
|
+
forecastCompletionRate?: number | null;
|
|
87
|
+
userCount?: number | null;
|
|
88
|
+
contractCount?: number | null;
|
|
89
|
+
productCount?: number | null;
|
|
90
|
+
createTime?: string | null;
|
|
91
|
+
}
|
|
92
|
+
export interface SalesPerfMemberDashboardVo {
|
|
93
|
+
queryDim?: string | null;
|
|
94
|
+
userId?: number | null;
|
|
95
|
+
userName?: string | null;
|
|
96
|
+
deptId?: number | null;
|
|
97
|
+
deptName?: string | null;
|
|
98
|
+
signingType?: string | null;
|
|
99
|
+
bigCategoryCode?: string | null;
|
|
100
|
+
categorySalesAmount?: number | null;
|
|
101
|
+
categoryCompletedAmount?: number | null;
|
|
102
|
+
categoryTargetAmount?: number | null;
|
|
103
|
+
categoryOpportunityAmount?: number | null;
|
|
104
|
+
categoryCompletionRate?: number | null;
|
|
105
|
+
categoryForecastCompletionRate?: number | null;
|
|
106
|
+
performanceMonth?: string | null;
|
|
107
|
+
createTime?: string | null;
|
|
108
|
+
}
|
|
109
|
+
export interface SalesPerfEventDashboardVo {
|
|
110
|
+
queryDim?: string | null;
|
|
111
|
+
userId?: number | null;
|
|
112
|
+
userName?: string | null;
|
|
113
|
+
deptId?: number | null;
|
|
114
|
+
deptName?: string | null;
|
|
115
|
+
eventSessionId?: string | null;
|
|
116
|
+
productCategoryCode?: string | null;
|
|
117
|
+
productCategoryName?: string | null;
|
|
118
|
+
eventSalesAmount?: number | null;
|
|
119
|
+
eventCompletedAmount?: number | null;
|
|
120
|
+
eventTargetAmount?: number | null;
|
|
121
|
+
eventOpportunityAmount?: number | null;
|
|
122
|
+
eventCompletionRate?: number | null;
|
|
123
|
+
performanceMonth?: string | null;
|
|
124
|
+
createTime?: string | null;
|
|
125
|
+
}
|
|
126
|
+
/** 总业绩看板 */
|
|
127
|
+
export interface SalesTotalPerfBoardVo {
|
|
128
|
+
totalPerf: SalesDeptPerfVo;
|
|
129
|
+
deptGroupList: SalesDeptPerfVo[];
|
|
130
|
+
userGroupList: SalesUserPerfVo[];
|
|
131
|
+
}
|
|
132
|
+
/** 会员业绩看板 */
|
|
133
|
+
export interface SalesMemberPerfBoardVo {
|
|
134
|
+
totalMemberPerf: SalesPerfMemberDashboardVo;
|
|
135
|
+
newSigningPerf: SalesPerfMemberDashboardVo;
|
|
136
|
+
reSigningPerf: SalesPerfMemberDashboardVo;
|
|
137
|
+
jcvfPerf: SalesPerfMemberDashboardVo;
|
|
138
|
+
groupList: SalesPerfMemberDashboardVo[];
|
|
139
|
+
}
|
|
140
|
+
/** 会议业绩看板 */
|
|
141
|
+
export interface SalesEventPerfBoardVo {
|
|
142
|
+
sessionPerfList: SalesPerfEventDashboardVo[];
|
|
143
|
+
productBarList: SalesPerfEventDashboardVo[];
|
|
144
|
+
groupList: SalesPerfEventDashboardVo[];
|
|
145
|
+
}
|
|
146
|
+
export interface RenewalDetailVo {
|
|
147
|
+
queryDim?: string | null;
|
|
148
|
+
userId?: number | null;
|
|
149
|
+
userName?: string | null;
|
|
150
|
+
deptId?: number | null;
|
|
151
|
+
deptName?: string | null;
|
|
152
|
+
normalAmountRmb?: number | null;
|
|
153
|
+
overdraftAmountRmb?: number | null;
|
|
154
|
+
recoveredAmountRmb?: number | null;
|
|
155
|
+
receiptTotalAmountRmb?: number | null;
|
|
156
|
+
targetAmount?: number | null;
|
|
157
|
+
completionRate?: number | null;
|
|
158
|
+
performanceMonth?: string | null;
|
|
159
|
+
createTime?: string | null;
|
|
160
|
+
}
|
|
161
|
+
/** CRM 新签观测 */
|
|
162
|
+
export interface CrmDashboardNewSigningVo {
|
|
163
|
+
queryDim?: string | null;
|
|
164
|
+
userId?: number | null;
|
|
165
|
+
userName?: string | null;
|
|
166
|
+
deptId?: number | null;
|
|
167
|
+
deptName?: string | null;
|
|
168
|
+
newSigningTarget?: number | null;
|
|
169
|
+
newSigningCount?: number | null;
|
|
170
|
+
firstSigningCount?: number | null;
|
|
171
|
+
addOnSigningCount?: number | null;
|
|
172
|
+
dropLineSigningCount?: number | null;
|
|
173
|
+
newReplyCustomerCount?: number | null;
|
|
174
|
+
statMonth?: string | null;
|
|
175
|
+
createTime?: string | null;
|
|
176
|
+
}
|
|
177
|
+
/** CRM 续费观测 */
|
|
178
|
+
export interface CrmDashboardRenewalVo {
|
|
179
|
+
queryDim?: string | null;
|
|
180
|
+
userId?: number | null;
|
|
181
|
+
userName?: string | null;
|
|
182
|
+
deptId?: number | null;
|
|
183
|
+
deptName?: string | null;
|
|
184
|
+
expireProductCount?: number | null;
|
|
185
|
+
renewedProductCount?: number | null;
|
|
186
|
+
unrenewedProductCount?: number | null;
|
|
187
|
+
renewalRate?: number | null;
|
|
188
|
+
dropLineVerifiedCount?: number | null;
|
|
189
|
+
renewalRateWithDrop?: number | null;
|
|
190
|
+
statMonth?: string | null;
|
|
191
|
+
createTime?: string | null;
|
|
192
|
+
}
|
|
193
|
+
/** CRM 续费观测详情 */
|
|
194
|
+
export interface CrmDashboardRenewalDetailVo {
|
|
195
|
+
statMonth?: string | null;
|
|
196
|
+
deptId?: number | null;
|
|
197
|
+
deptName?: string | null;
|
|
198
|
+
userId?: number | null;
|
|
199
|
+
userName?: string | null;
|
|
200
|
+
customerId?: number | null;
|
|
201
|
+
customerName?: string | null;
|
|
202
|
+
expireProductName?: string | null;
|
|
203
|
+
servicePeriodStartTime?: string | null;
|
|
204
|
+
servicePeriodEndTime?: string | null;
|
|
205
|
+
renewalStatus?: string | null;
|
|
206
|
+
tagLevel1?: string | null;
|
|
207
|
+
tagLevel2?: string | null;
|
|
208
|
+
createTime?: string | null;
|
|
209
|
+
}
|
|
210
|
+
export interface CrmDashboardNewSigningInput {
|
|
211
|
+
deptId?: number | null;
|
|
212
|
+
userId?: number | null;
|
|
213
|
+
statMonth?: string | null;
|
|
214
|
+
}
|
|
215
|
+
export interface CrmDashboardRenewalInput {
|
|
216
|
+
deptId?: number | null;
|
|
217
|
+
userId?: number | null;
|
|
218
|
+
statMonth?: string | null;
|
|
219
|
+
}
|
|
220
|
+
export interface CrmDashboardRenewalDetailInput {
|
|
221
|
+
deptId?: number | null;
|
|
222
|
+
userId?: number | null;
|
|
223
|
+
statMonth?: string | null;
|
|
224
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x5949dc,_0x5d0025){var _0x34d083=a19_0xc729,_0x57363a=_0x5949dc();while(!![]){try{var _0xe45f8f=parseInt(_0x34d083(0x19d))/0x1*(-parseInt(_0x34d083(0x19e))/0x2)+-parseInt(_0x34d083(0x199))/0x3*(parseInt(_0x34d083(0x1a4))/0x4)+parseInt(_0x34d083(0x198))/0x5*(parseInt(_0x34d083(0x195))/0x6)+-parseInt(_0x34d083(0x196))/0x7*(-parseInt(_0x34d083(0x19b))/0x8)+-parseInt(_0x34d083(0x1a3))/0x9+-parseInt(_0x34d083(0x1a0))/0xa*(parseInt(_0x34d083(0x1a2))/0xb)+parseInt(_0x34d083(0x197))/0xc*(parseInt(_0x34d083(0x19c))/0xd);if(_0xe45f8f===_0x5d0025)break;else _0x57363a['push'](_0x57363a['shift']());}catch(_0x477716){_0x57363a['push'](_0x57363a['shift']());}}}(a19_0x1728,0x51bfb));var a19_0x163a74=(function(){var _0x459969=!![];return function(_0x32fe9c,_0x4cd5ee){var _0xdc3628=_0x459969?function(){if(_0x4cd5ee){var _0x333ad4=_0x4cd5ee['apply'](_0x32fe9c,arguments);return _0x4cd5ee=null,_0x333ad4;}}:function(){};return _0x459969=![],_0xdc3628;};}()),a19_0x73d995=a19_0x163a74(this,function(){var _0x4ea2e0=a19_0xc729;return a19_0x73d995[_0x4ea2e0(0x1a1)]()['search'](_0x4ea2e0(0x19f))[_0x4ea2e0(0x1a1)]()[_0x4ea2e0(0x19a)](a19_0x73d995)[_0x4ea2e0(0x1a5)](_0x4ea2e0(0x19f));});function a19_0xc729(_0x20cbdb,_0x2e43de){_0x20cbdb=_0x20cbdb-0x195;var _0x2b95e7=a19_0x1728();var _0x73d995=_0x2b95e7[_0x20cbdb];if(a19_0xc729['yrmYuc']===undefined){var _0x163a74=function(_0x47af66){var _0x9033dc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xf73b53='',_0x1c8bc2='',_0x349528=_0xf73b53+_0x163a74,_0x56978f=(''+function(){return 0x0;})['indexOf']('\x0a')!==-0x1;for(var _0x2f33b5=0x0,_0x810bf1,_0x2431a5,_0x5f1032=0x0;_0x2431a5=_0x47af66['charAt'](_0x5f1032++);~_0x2431a5&&(_0x810bf1=_0x2f33b5%0x4?_0x810bf1*0x40+_0x2431a5:_0x2431a5,_0x2f33b5++%0x4)?_0xf73b53+=_0x56978f||_0x349528['charCodeAt'](_0x5f1032+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x810bf1>>(-0x2*_0x2f33b5&0x6)):_0x2f33b5:0x0){_0x2431a5=_0x9033dc['indexOf'](_0x2431a5);}for(var _0x133afd=0x0,_0x41b986=_0xf73b53['length'];_0x133afd<_0x41b986;_0x133afd++){_0x1c8bc2+='%'+('00'+_0xf73b53['charCodeAt'](_0x133afd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c8bc2);};a19_0xc729['xOJfvL']=_0x163a74,a19_0xc729['wlECdE']={},a19_0xc729['yrmYuc']=!![];}var _0x1728a9=_0x2b95e7[0x0],_0xc72921=_0x20cbdb+_0x1728a9,_0x3823ab=a19_0xc729['wlECdE'][_0xc72921];if(!_0x3823ab){var _0x3eb111=function(_0x3d2476){this['RiOpJB']=_0x3d2476,this['efTlSy']=[0x1,0x0,0x0],this['jbgyKx']=function(){return'newState';},this['Irumfq']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['hxITBq']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3eb111['prototype']['xbMRKD']=function(){var _0x1d5374=new RegExp(this['Irumfq']+this['hxITBq']),_0x52823d=_0x1d5374['test'](this['jbgyKx']['toString']())?--this['efTlSy'][0x1]:--this['efTlSy'][0x0];return this['FTrHgz'](_0x52823d);},_0x3eb111['prototype']['FTrHgz']=function(_0x174459){if(!Boolean(~_0x174459))return _0x174459;return this['sFFMSf'](this['RiOpJB']);},_0x3eb111['prototype']['sFFMSf']=function(_0x332e53){for(var _0x2c286a=0x0,_0x5223fc=this['efTlSy']['length'];_0x2c286a<_0x5223fc;_0x2c286a++){this['efTlSy']['push'](Math['round'](Math['random']())),_0x5223fc=this['efTlSy']['length'];}return _0x332e53(this['efTlSy'][0x0]);},(''+function(){return 0x0;})['indexOf']('\x0a')===-0x1&&new _0x3eb111(a19_0xc729)['xbMRKD'](),_0x73d995=a19_0xc729['xOJfvL'](_0x73d995),a19_0xc729['wlECdE'][_0xc72921]=_0x73d995;}else _0x73d995=_0x3823ab;return _0x73d995;}function a19_0x1728(){var _0x790624=['Dg9tDhjPBMC','mtfZEw1yEum','ntmZmJK1oxnzrfLVCq','mte3ntq4BvHgDfLP','C2vHCMnO','odaYog1OD0Lksa','mZvzzvzkrhO','mZyZndiXmNvUsgfKsq','otC1Dvr2zu5s','mtvfCLnXt1O','y29UC3rYDwn0B3i','nZC0mdu2DwLgC1nA','mZLWB3P2uw4','odzrtuzhDeu','nZm1nhDluNLrwa','kcGOlISPkYKRksSK','mJyYnJK3mgPHAfvvAq'];a19_0x1728=function(){return _0x790624;};return a19_0x1728();}a19_0x73d995();export{};
|
package/dist/index.d.ts
CHANGED
|
@@ -51,15 +51,23 @@
|
|
|
51
51
|
*/
|
|
52
52
|
import { type GraphQLClientConfig } from './core/GraphQLClient';
|
|
53
53
|
import { OpportunityManager } from './generated/opportunity/OpportunityManager';
|
|
54
|
+
import { PlatformManager } from './generated/platform/PlatformManager';
|
|
55
|
+
import { SalesManager } from './generated/sales/SalesManager';
|
|
56
|
+
import { MemberManager } from './generated/member/MemberManager';
|
|
54
57
|
export { GraphQLClient, GraphQLClientError } from './core/GraphQLClient';
|
|
55
58
|
export type { GraphQLClientConfig, GraphQLRequest, GraphQLResponse } from './core/GraphQLClient';
|
|
56
59
|
export { BaseQuery } from './core/BaseQuery';
|
|
57
60
|
export type { PageResult, Condition, ConditionOperator } from './core/BaseQuery';
|
|
58
61
|
export type { OpportunityEffectiveBoard, OpportunityEffectiveBoardInput, OpportunityEffectiveBoardPageResponse, OpportunityEffectiveBoardField, } from './generated/opportunity/types';
|
|
62
|
+
export type { PlatformPerformanceDeptUser, PlatformPerformanceDeptUserInput, PlatformPerformanceDeptUserPageResponse, PlatformPerformanceDeptUserField, } from './generated/platform/types';
|
|
63
|
+
export type { MemberQuarterlyVo, MemberQuarterlyInput, MemberQuarterlyField, MemberQuarterlyInteractionRankingVo, MemberQuarterlyAccountUsageVo, } from './generated/member/types';
|
|
59
64
|
export type { DateType, OpportunityBoardParams, BoardQueryResult, BoardPageData, } from './services/opportunity/types';
|
|
60
65
|
export { validateBoardParams } from './services/opportunity/validator';
|
|
61
66
|
export type { ValidationResult } from './services/opportunity/types';
|
|
62
67
|
export { BoardService } from './services/opportunity/BoardService';
|
|
68
|
+
export type { PlatformServiceParams, PlatformQueryResult, PlatformPageData, } from './services/platform/PlatformService';
|
|
69
|
+
export type { SalesInput, SalesTotalPerfBoardVo, SalesMemberPerfBoardVo, SalesEventPerfBoardVo, SalesTotalPerfVo, SalesUserPerfVo, SalesDeptPerfVo, SalesPerfMemberDashboardVo, SalesPerfEventDashboardVo, RenewalDetailVo, CrmDashboardNewSigningVo, CrmDashboardRenewalVo, CrmDashboardRenewalDetailVo, } from './generated/sales/types';
|
|
70
|
+
export type { SalesServiceParams, SalesTotalPerfResult, SalesMemberPerfResult, SalesEventPerfResult, RenewalDetailResult, } from './services/sales/SalesService';
|
|
63
71
|
/**
|
|
64
72
|
* 数据仓库前端 SDK 的顶层接口。
|
|
65
73
|
* 每新增一个主题域 Manager,在此处追加一个字段。
|
|
@@ -72,6 +80,12 @@ export { BoardService } from './services/opportunity/BoardService';
|
|
|
72
80
|
export interface DwSdk {
|
|
73
81
|
/** 商机主题域 */
|
|
74
82
|
opportunity: OpportunityManager;
|
|
83
|
+
/** 公共支撑域 */
|
|
84
|
+
platform: PlatformManager;
|
|
85
|
+
/** 销售主题域 */
|
|
86
|
+
sales: SalesManager;
|
|
87
|
+
/** 客户主题域 */
|
|
88
|
+
member: MemberManager;
|
|
75
89
|
}
|
|
76
90
|
/**
|
|
77
91
|
* 创建数据仓库前端 SDK 实例。
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x25e7b1,_0x3c9ca9){const _0x30594a=a20_0x218b,_0x28243e=_0x25e7b1();while(!![]){try{const _0x1793f2=parseInt(_0x30594a(0x1a4))/0x1*(-parseInt(_0x30594a(0x1a3))/0x2)+parseInt(_0x30594a(0x1ac))/0x3*(-parseInt(_0x30594a(0x1b0))/0x4)+parseInt(_0x30594a(0x1ad))/0x5*(parseInt(_0x30594a(0x1ae))/0x6)+parseInt(_0x30594a(0x1a8))/0x7*(-parseInt(_0x30594a(0x1a5))/0x8)+-parseInt(_0x30594a(0x1a2))/0x9+-parseInt(_0x30594a(0x1ab))/0xa+-parseInt(_0x30594a(0x1a1))/0xb*(-parseInt(_0x30594a(0x1a6))/0xc);if(_0x1793f2===_0x3c9ca9)break;else _0x28243e['push'](_0x28243e['shift']());}catch(_0x16095d){_0x28243e['push'](_0x28243e['shift']());}}}(a20_0x4b1d,0x34364));const a20_0x2e15e5=(function(){let _0x5af387=!![];return function(_0x1746b7,_0x54df65){const _0x36a6b8=_0x5af387?function(){const _0x1767cc=a20_0x218b;if(_0x54df65){const _0xaa3ab=_0x54df65[_0x1767cc(0x1b2)](_0x1746b7,arguments);return _0x54df65=null,_0xaa3ab;}}:function(){};return _0x5af387=![],_0x36a6b8;};}()),a20_0x5b68e9=a20_0x2e15e5(this,function(){const _0x53b443=a20_0x218b,_0x749709={'vyqZC':_0x53b443(0x1aa)};return a20_0x5b68e9[_0x53b443(0x1af)]()[_0x53b443(0x1a7)](_0x749709[_0x53b443(0x1b1)])['toString']()[_0x53b443(0x1a9)](a20_0x5b68e9)[_0x53b443(0x1a7)](_0x749709[_0x53b443(0x1b1)]);});a20_0x5b68e9();import{GraphQLClient}from'./core/GraphQLClient';import{OpportunityManager}from'./generated/opportunity/OpportunityManager';import{PlatformManager}from'./generated/platform/PlatformManager';import{SalesManager}from'./generated/sales/SalesManager';import{MemberManager}from'./generated/member/MemberManager';export{GraphQLClient,GraphQLClientError}from'./core/GraphQLClient';function a20_0x218b(_0x350ea9,_0x5b9a69){_0x350ea9=_0x350ea9-0x1a1;const _0x43451b=a20_0x4b1d();let _0x5b68e9=_0x43451b[_0x350ea9];if(a20_0x218b['mqmKGN']===undefined){var _0x2e15e5=function(_0x5c33e1){const _0x8bf42f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d5865='',_0x29e639='',_0x111b92=_0x2d5865+_0x2e15e5,_0xd968eb=(''+function(){return 0x0;})['indexOf']('\x0a')!==-0x1;for(let _0x26c811=0x0,_0x44837d,_0x40ab6a,_0x18d51a=0x0;_0x40ab6a=_0x5c33e1['charAt'](_0x18d51a++);~_0x40ab6a&&(_0x44837d=_0x26c811%0x4?_0x44837d*0x40+_0x40ab6a:_0x40ab6a,_0x26c811++%0x4)?_0x2d5865+=_0xd968eb||_0x111b92['charCodeAt'](_0x18d51a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x44837d>>(-0x2*_0x26c811&0x6)):_0x26c811:0x0){_0x40ab6a=_0x8bf42f['indexOf'](_0x40ab6a);}for(let _0x18c96c=0x0,_0x990937=_0x2d5865['length'];_0x18c96c<_0x990937;_0x18c96c++){_0x29e639+='%'+('00'+_0x2d5865['charCodeAt'](_0x18c96c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29e639);};a20_0x218b['jBYUtp']=_0x2e15e5,a20_0x218b['HWNfry']={},a20_0x218b['mqmKGN']=!![];}const _0x4b1d35=_0x43451b[0x0],_0x218b08=_0x350ea9+_0x4b1d35,_0x49d55f=a20_0x218b['HWNfry'][_0x218b08];if(!_0x49d55f){const _0x2c68f0=function(_0x300008){this['ULHLvN']=_0x300008,this['NIbJIx']=[0x1,0x0,0x0],this['chTjFJ']=function(){return'newState';},this['KPmOfH']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['xMyURY']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2c68f0['prototype']['LJIpeM']=function(){const _0x372f35=new RegExp(this['KPmOfH']+this['xMyURY']),_0x11da72=_0x372f35['test'](this['chTjFJ']['toString']())?--this['NIbJIx'][0x1]:--this['NIbJIx'][0x0];return this['OjqOaQ'](_0x11da72);},_0x2c68f0['prototype']['OjqOaQ']=function(_0xf91341){if(!Boolean(~_0xf91341))return _0xf91341;return this['vgBriT'](this['ULHLvN']);},_0x2c68f0['prototype']['vgBriT']=function(_0x32829e){for(let _0xd0bfda=0x0,_0x188bdb=this['NIbJIx']['length'];_0xd0bfda<_0x188bdb;_0xd0bfda++){this['NIbJIx']['push'](Math['round'](Math['random']())),_0x188bdb=this['NIbJIx']['length'];}return _0x32829e(this['NIbJIx'][0x0]);},(''+function(){return 0x0;})['indexOf']('\x0a')===-0x1&&new _0x2c68f0(a20_0x218b)['LJIpeM'](),_0x5b68e9=a20_0x218b['jBYUtp'](_0x5b68e9),a20_0x218b['HWNfry'][_0x218b08]=_0x5b68e9;}else _0x5b68e9=_0x49d55f;return _0x5b68e9;}export{BaseQuery}from'./core/BaseQuery';export{validateBoardParams}from'./services/opportunity/validator';export{BoardService}from'./services/opportunity/BoardService';export function createDwSdk(_0x5310a8){const _0x2dbe0a=new GraphQLClient(_0x5310a8);return{'opportunity':new OpportunityManager(_0x2dbe0a),'platform':new PlatformManager(_0x2dbe0a),'sales':new SalesManager(_0x2dbe0a),'member':new MemberManager(_0x2dbe0a)};}export default createDwSdk;function a20_0x4b1d(){const _0x14f5f1=['mtK4mdGZvunAvuTo','ogfKBu1Jsa','mteXnM5xqwfSCG','C2vHCMnO','mJqWodqYEvrHvuzf','y29UC3rYDwn0B3i','kcGOlISPkYKRksSK','mZC5mJq5mgP6sKnyDG','mZm5q0fkChb6','mtaWyu9ZyuH2','ota3ndr4r3HJD0y','Dg9tDhjPBMC','mtm1mKP1AfL4uq','DNLXwKm','yxbWBhK','odCYnJnxExjtsg8','mtu4odeXm1fHrxHyCq','mK1TtNzuva'];a20_0x4b1d=function(){return _0x14f5f1;};return a20_0x4b1d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x30d5f9=a21_0xa138;(function(_0x49dafd,_0x3d786a){const _0x2ae3a1=a21_0xa138,_0x14a831=_0x49dafd();while(!![]){try{const _0x47773a=-parseInt(_0x2ae3a1(0xf3))/0x1*(-parseInt(_0x2ae3a1(0x11f))/0x2)+parseInt(_0x2ae3a1(0x120))/0x3+parseInt(_0x2ae3a1(0x109))/0x4+-parseInt(_0x2ae3a1(0x11c))/0x5*(parseInt(_0x2ae3a1(0x10a))/0x6)+parseInt(_0x2ae3a1(0x12e))/0x7*(parseInt(_0x2ae3a1(0x10e))/0x8)+parseInt(_0x2ae3a1(0x11d))/0x9*(parseInt(_0x2ae3a1(0x12d))/0xa)+-parseInt(_0x2ae3a1(0xfe))/0xb;if(_0x47773a===_0x3d786a)break;else _0x14a831['push'](_0x14a831['shift']());}catch(_0x7a892b){_0x14a831['push'](_0x14a831['shift']());}}}(a21_0x3d9d,0x29dc9));const a21_0x1f647b=(function(){let _0x1e0de3=!![];return function(_0x1dc07f,_0x3e635b){const _0x55fcd9=_0x1e0de3?function(){if(_0x3e635b){const _0x36ef52=_0x3e635b['apply'](_0x1dc07f,arguments);return _0x3e635b=null,_0x36ef52;}}:function(){};return _0x1e0de3=![],_0x55fcd9;};}()),a21_0x561c70=a21_0x1f647b(this,function(){const _0x1ee4df=a21_0xa138;return a21_0x561c70['toString']()['search']('(((.+)+)+)+$')[_0x1ee4df(0x11e)]()[_0x1ee4df(0x12a)](a21_0x561c70)[_0x1ee4df(0x12f)](_0x1ee4df(0x130));});a21_0x561c70();import{OpportunityManager}from'../../generated/opportunity/OpportunityManager';function a21_0xa138(_0x250e43,_0x4b7a87){_0x250e43=_0x250e43-0xf3;const _0x3e5457=a21_0x3d9d();let _0x561c70=_0x3e5457[_0x250e43];if(a21_0xa138['thezGE']===undefined){var _0x1f647b=function(_0x4e6fdc){const _0x4fbf91='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c4500='',_0x2fd6c3='',_0x366d0a=_0x2c4500+_0x1f647b,_0x126d4d=(''+function(){return 0x0;})['indexOf']('\x0a')!==-0x1;for(let _0x517e16=0x0,_0x4f27ef,_0x4a0203,_0x4ea46e=0x0;_0x4a0203=_0x4e6fdc['charAt'](_0x4ea46e++);~_0x4a0203&&(_0x4f27ef=_0x517e16%0x4?_0x4f27ef*0x40+_0x4a0203:_0x4a0203,_0x517e16++%0x4)?_0x2c4500+=_0x126d4d||_0x366d0a['charCodeAt'](_0x4ea46e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4f27ef>>(-0x2*_0x517e16&0x6)):_0x517e16:0x0){_0x4a0203=_0x4fbf91['indexOf'](_0x4a0203);}for(let _0x1cdc15=0x0,_0x12cf3c=_0x2c4500['length'];_0x1cdc15<_0x12cf3c;_0x1cdc15++){_0x2fd6c3+='%'+('00'+_0x2c4500['charCodeAt'](_0x1cdc15)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2fd6c3);};a21_0xa138['XREyrt']=_0x1f647b,a21_0xa138['eioATG']={},a21_0xa138['thezGE']=!![];}const _0x3d9dab=_0x3e5457[0x0],_0xa13800=_0x250e43+_0x3d9dab,_0x98c78f=a21_0xa138['eioATG'][_0xa13800];if(!_0x98c78f){const _0x431625=function(_0x41c282){this['IjPxjv']=_0x41c282,this['gjhAjl']=[0x1,0x0,0x0],this['RLYKSv']=function(){return'newState';},this['qtJQEE']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KhLzgn']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x431625['prototype']['sxFief']=function(){const _0x53c3f2=new RegExp(this['qtJQEE']+this['KhLzgn']),_0x36f85b=_0x53c3f2['test'](this['RLYKSv']['toString']())?--this['gjhAjl'][0x1]:--this['gjhAjl'][0x0];return this['IYijtW'](_0x36f85b);},_0x431625['prototype']['IYijtW']=function(_0x46ff28){if(!Boolean(~_0x46ff28))return _0x46ff28;return this['CnwBWy'](this['IjPxjv']);},_0x431625['prototype']['CnwBWy']=function(_0x51fb87){for(let _0x5e4bab=0x0,_0x4273be=this['gjhAjl']['length'];_0x5e4bab<_0x4273be;_0x5e4bab++){this['gjhAjl']['push'](Math['round'](Math['random']())),_0x4273be=this['gjhAjl']['length'];}return _0x51fb87(this['gjhAjl'][0x0]);},(''+function(){return 0x0;})['indexOf']('\x0a')===-0x1&&new _0x431625(a21_0xa138)['sxFief'](),_0x561c70=a21_0xa138['XREyrt'](_0x561c70),a21_0xa138['eioATG'][_0xa13800]=_0x561c70;}else _0x561c70=_0x98c78f;return _0x561c70;}import{validateBoardParams}from'./validator';function a21_0x3d9d(){const _0x6073e8=['wwDiD3y','nJa3mdnlqMflCve','Cg90zw50AwfSq3vZDg9TzxjdB3vUDa','C3bSAxq','572r57UC6k+35Rgc5AsX6lsL77Ym6k+356In5zco6yEn6k+v','EwvHCG','EhP1su0','C2vSzwn0','CgvYAw9KvhLWzq','Dg90ywW','BwfUywDLCG','DMLLD1jLy29TBwvUzefNzw50q291BNq','mJu4odG4m1rwt0fqEG','yxjN','tu9oveG','zgf0zvzHBhvL','Aw5XDwLYEunVDw50','DMLZAxrVCK1HBMfNzunVBNrHy3rdB3vUDa','zxjYB3i','AhnKugq','zMLUzefNzw50q29UDgfJDenVDw50','C2L6zq','y29TCgfUEuLK','mtqZmdK2u3zHt0Lq','nJz0zwz3B3q','Aw1dB21TDw5Py2f0zunVDw50','zMLUzefNzw50rgvTyw5Kq291BNq','yNjVD3nLu3rVCMvdB3vUDa','mtzlt29nBxe','CgfNzq','ChvIBgLZAezPBMrbz2vUDerLBwfUzenVDw50','C3rVCMvdB250ywn0q291BNq','sMLZqwC','C2vZC2LVBKnVDw50','y29TCeLK','q0rOBvK','CxvLCNK','u2nAz2K','D1n2rK0','vw5hzfq','C3rHDe1VBNrO','DLbpDKu','nZyYnJvAwwn5rLO','oxb2sM5Muq','Dg9tDhjPBMC','mNDkDK55sa','mJmWmJqXyKDwuvzR','zgf0zvr5Cgu','C3rHDff1yxj0zxi','thDSsxm','CMvZCg9UC2vdB3vUDa','Bw9UDgG','C3bytwC','CxvHCNrLCG','DMLLD2vKuMvZCg9UC2vdB3vUDa','C3rHDfLLyxi','y29UC3rYDwn0B3i','DhfTzMO','DxrXvw0','mtqZnJK5men6txHdBa','otaXodCZrvPIuhPh','C2vHCMnO','kcGOlISPkYKRksSK','wuvbuG','B25Lt25pBMvnzwv0q291BNq','Aw1fzMzLy3rPDMvdB21TDw5Py2f0zunVDw50'];a21_0x3d9d=function(){return _0x6073e8;};return a21_0x3d9d();}function parseDateParams(_0x1b794c,_0x454694,_0x4eb3b7){const _0x4bbb68=a21_0xa138,_0x852cd9={'ScZgi':function(_0x4a67eb,_0x157b51,_0x596aa7){return _0x4a67eb(_0x157b51,_0x596aa7);},'xzuIM':function(_0x40425c,_0x4e8a8c,_0x44a2a3){return _0x40425c(_0x4e8a8c,_0x44a2a3);}},_0x58d0c3={'companyId':_0x1b794c,'statYear':0x0,'periodType':''};switch(_0x454694){case'QUARTER':{const _0x547c00=_0x4eb3b7[_0x4bbb68(0xf5)]('-Q');_0x58d0c3[_0x4bbb68(0x129)]=parseInt(_0x547c00[0x0],0xa),_0x58d0c3[_0x4bbb68(0xfa)]=_0x4bbb68(0x127),_0x58d0c3[_0x4bbb68(0x122)]=_0x852cd9[_0x4bbb68(0x117)](parseInt,_0x547c00[0x1],0xa);break;}case _0x4bbb68(0x131):{_0x58d0c3[_0x4bbb68(0x129)]=_0x852cd9[_0x4bbb68(0x117)](parseInt,_0x4eb3b7,0xa),_0x58d0c3['periodType']=_0x4bbb68(0xf7);break;}case _0x4bbb68(0x100):{const _0x1ed140=_0x4eb3b7['split']('-');_0x58d0c3['statYear']=_0x852cd9[_0x4bbb68(0xf8)](parseInt,_0x1ed140[0x0],0xa),_0x58d0c3['periodType']=_0x4bbb68(0x125),_0x58d0c3[_0x4bbb68(0x11a)]=_0x852cd9[_0x4bbb68(0xf8)](parseInt,_0x1ed140[0x1],0xa);break;}}return _0x58d0c3;}export class BoardService{constructor(_0x514a3e){const _0x4dbe9f=a21_0xa138;this[_0x4dbe9f(0xfc)]=new OpportunityManager(_0x514a3e);}async[a21_0x30d5f9(0x116)](_0x456e26){const _0x36d0e9=a21_0x30d5f9,_0x493973={'vPOvE':function(_0x23b428,_0x4c796c){return _0x23b428(_0x4c796c);},'hsdPd':function(_0x74af07,_0x43b2e2,_0x59381d,_0x14cb98){return _0x74af07(_0x43b2e2,_0x59381d,_0x14cb98);},'LwlIs':_0x36d0e9(0x124),'UnGdT':'receivedResponseCount','ybxKP':_0x36d0e9(0xf4),'wSvFM':_0x36d0e9(0x132),'tqmfj':_0x36d0e9(0x128),'JisAg':_0x36d0e9(0x10b),'lCDHp':_0x36d0e9(0x133),'mVPry':_0x36d0e9(0xfd),'spXMg':_0x36d0e9(0x10c),'CDhmY':_0x36d0e9(0x106),'hVpaK':_0x36d0e9(0x10d),'YgHwv':_0x36d0e9(0x111),'utqUm':_0x36d0e9(0x103),'LVWvu':_0x36d0e9(0xfa),'LVjCY':function(_0x1f6ac1,_0x66dee8){return _0x1f6ac1!==_0x66dee8;},'FQfvR':_0x36d0e9(0xf6)},_0x153e73=_0x493973[_0x36d0e9(0x11b)](validateBoardParams,_0x456e26);if(!_0x153e73['valid'])return{'success':![],'data':null,'error':_0x153e73[_0x36d0e9(0x104)]??'参数校验失败'};const _0x57b4ba=_0x493973[_0x36d0e9(0x105)](parseDateParams,_0x456e26[_0x36d0e9(0x114)],_0x456e26[_0x36d0e9(0x121)],_0x456e26[_0x36d0e9(0x101)]),_0x42fa60=this[_0x36d0e9(0xfc)]['opportunityEffectiveBoardPage']()[_0x36d0e9(0xf9)](_0x36d0e9(0x108),_0x36d0e9(0xfa),_0x36d0e9(0x129),_0x36d0e9(0x11a),_0x36d0e9(0x122),_0x36d0e9(0x102),_0x493973[_0x36d0e9(0x123)],_0x493973[_0x36d0e9(0x119)],_0x493973['ybxKP'],_0x493973[_0x36d0e9(0x118)],_0x36d0e9(0x113),_0x493973[_0x36d0e9(0x12b)],_0x493973[_0x36d0e9(0x112)],_0x493973['lCDHp'],_0x493973['mVPry'],_0x493973[_0x36d0e9(0x126)],_0x493973[_0x36d0e9(0x115)],_0x493973['hVpaK'],_0x493973[_0x36d0e9(0x134)],_0x493973[_0x36d0e9(0x12c)],_0x36d0e9(0x110))['arg'](_0x36d0e9(0x108),_0x57b4ba['companyId'])[_0x36d0e9(0xff)](_0x36d0e9(0x129),_0x57b4ba[_0x36d0e9(0x129)])[_0x36d0e9(0xff)](_0x493973['LVWvu'],_0x57b4ba[_0x36d0e9(0xfa)])[_0x36d0e9(0x10f)](0x1,0x14);_0x57b4ba[_0x36d0e9(0x11a)]!==undefined&&_0x42fa60[_0x36d0e9(0xff)](_0x36d0e9(0x11a),_0x57b4ba[_0x36d0e9(0x11a)]);_0x493973['LVjCY'](_0x57b4ba[_0x36d0e9(0x122)],undefined)&&_0x42fa60[_0x36d0e9(0xff)]('statQuarter',_0x57b4ba[_0x36d0e9(0x122)]);try{const _0x1e17ae=await _0x42fa60[_0x36d0e9(0x116)]();return{'success':!![],'data':{'total':_0x1e17ae[_0x36d0e9(0xfb)],'current':_0x1e17ae['current'],'size':_0x1e17ae[_0x36d0e9(0x107)],'pages':_0x1e17ae['pages'],'records':_0x1e17ae['records']},'error':null};}catch(_0x256464){const _0x147c8e=_0x256464 instanceof Error?_0x256464['message']:_0x493973['FQfvR'];return{'success':![],'data':null,'error':'查询失败:'+_0x147c8e};}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a22_0x3fce(){var _0x4a1bf2=['mZqXmtu5mKnLweTvvW','kcGOlISPkYKRksSK','nZC1ow91ueTwDq','mti0mtaYogLfwNbJwa','mZi4BuTiwxDP','y29UC3rYDwn0B3i','m3HnCu1jsa','mtmXmtftBfnKzKq','oduZndy4meHMrfvqyG','Dg9tDhjPBMC','yxbWBhK','odCWmtm1mgDXBvzyBW','mZaWndGWodbHBgPAAuG','mZqXnhjZuwnwAG'];a22_0x3fce=function(){return _0x4a1bf2;};return a22_0x3fce();}(function(_0x5a6258,_0x598b6c){var _0x158707=a22_0x435e,_0x47acc2=_0x5a6258();while(!![]){try{var _0x1acc08=parseInt(_0x158707(0xa5))/0x1*(parseInt(_0x158707(0xa7))/0x2)+-parseInt(_0x158707(0xa9))/0x3*(-parseInt(_0x158707(0xa3))/0x4)+parseInt(_0x158707(0xa0))/0x5+-parseInt(_0x158707(0xa2))/0x6*(parseInt(_0x158707(0x9c))/0x7)+parseInt(_0x158707(0x9d))/0x8+parseInt(_0x158707(0xa6))/0x9+-parseInt(_0x158707(0xa1))/0xa;if(_0x1acc08===_0x598b6c)break;else _0x47acc2['push'](_0x47acc2['shift']());}catch(_0x488e1a){_0x47acc2['push'](_0x47acc2['shift']());}}}(a22_0x3fce,0xf4192));var a22_0x458596=(function(){var _0x39de17=!![];return function(_0x1e414f,_0x314ecf){var _0x652f6b=_0x39de17?function(){var _0x249856=a22_0x435e;if(_0x314ecf){var _0x33f940=_0x314ecf[_0x249856(0x9f)](_0x1e414f,arguments);return _0x314ecf=null,_0x33f940;}}:function(){};return _0x39de17=![],_0x652f6b;};}()),a22_0x4f3e10=a22_0x458596(this,function(){var _0x192cf8=a22_0x435e,_0x568d31={'QNDJU':_0x192cf8(0xa4)};return a22_0x4f3e10['toString']()['search'](_0x568d31['QNDJU'])[_0x192cf8(0x9e)]()[_0x192cf8(0xa8)](a22_0x4f3e10)['search'](_0x192cf8(0xa4));});function a22_0x435e(_0x462760,_0x5a14aa){_0x462760=_0x462760-0x9c;var _0x34edde=a22_0x3fce();var _0x4f3e10=_0x34edde[_0x462760];if(a22_0x435e['KgRupi']===undefined){var _0x458596=function(_0x1fe749){var _0x3571ac='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x26bd23='',_0x34ae26='',_0x5d1931=_0x26bd23+_0x458596,_0x5eba1b=(''+function(){return 0x0;})['indexOf']('\x0a')!==-0x1;for(var _0x33fef9=0x0,_0x3e40b1,_0x5f2daa,_0x8e170e=0x0;_0x5f2daa=_0x1fe749['charAt'](_0x8e170e++);~_0x5f2daa&&(_0x3e40b1=_0x33fef9%0x4?_0x3e40b1*0x40+_0x5f2daa:_0x5f2daa,_0x33fef9++%0x4)?_0x26bd23+=_0x5eba1b||_0x5d1931['charCodeAt'](_0x8e170e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3e40b1>>(-0x2*_0x33fef9&0x6)):_0x33fef9:0x0){_0x5f2daa=_0x3571ac['indexOf'](_0x5f2daa);}for(var _0x18aebf=0x0,_0x370071=_0x26bd23['length'];_0x18aebf<_0x370071;_0x18aebf++){_0x34ae26+='%'+('00'+_0x26bd23['charCodeAt'](_0x18aebf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34ae26);};a22_0x435e['RjfetT']=_0x458596,a22_0x435e['lDFJtP']={},a22_0x435e['KgRupi']=!![];}var _0x3fce87=_0x34edde[0x0],_0x435e43=_0x462760+_0x3fce87,_0x13e169=a22_0x435e['lDFJtP'][_0x435e43];if(!_0x13e169){var _0x31c773=function(_0x5d0e26){this['aDXZRQ']=_0x5d0e26,this['YytmIN']=[0x1,0x0,0x0],this['zZrNba']=function(){return'newState';},this['qbaQmd']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['gGmskJ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x31c773['prototype']['cIqPoB']=function(){var _0x5dc401=new RegExp(this['qbaQmd']+this['gGmskJ']),_0x58f660=_0x5dc401['test'](this['zZrNba']['toString']())?--this['YytmIN'][0x1]:--this['YytmIN'][0x0];return this['OcCPcn'](_0x58f660);},_0x31c773['prototype']['OcCPcn']=function(_0xa19eb7){if(!Boolean(~_0xa19eb7))return _0xa19eb7;return this['OGvXzN'](this['aDXZRQ']);},_0x31c773['prototype']['OGvXzN']=function(_0x3f9938){for(var _0x546ac7=0x0,_0xa131bf=this['YytmIN']['length'];_0x546ac7<_0xa131bf;_0x546ac7++){this['YytmIN']['push'](Math['round'](Math['random']())),_0xa131bf=this['YytmIN']['length'];}return _0x3f9938(this['YytmIN'][0x0]);},(''+function(){return 0x0;})['indexOf']('\x0a')===-0x1&&new _0x31c773(a22_0x435e)['cIqPoB'](),_0x4f3e10=a22_0x435e['RjfetT'](_0x4f3e10),a22_0x435e['lDFJtP'][_0x435e43]=_0x4f3e10;}else _0x4f3e10=_0x13e169;return _0x4f3e10;}a22_0x4f3e10();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x233808,_0x4b92ca){const _0x4cfb37=a23_0x2659,_0x2c2565=_0x233808();while(!![]){try{const _0x114d93=parseInt(_0x4cfb37(0x75))/0x1+parseInt(_0x4cfb37(0x86))/0x2+parseInt(_0x4cfb37(0x89))/0x3*(parseInt(_0x4cfb37(0x6b))/0x4)+-parseInt(_0x4cfb37(0x7f))/0x5+parseInt(_0x4cfb37(0x8c))/0x6+parseInt(_0x4cfb37(0x83))/0x7*(-parseInt(_0x4cfb37(0x7e))/0x8)+-parseInt(_0x4cfb37(0x70))/0x9;if(_0x114d93===_0x4b92ca)break;else _0x2c2565['push'](_0x2c2565['shift']());}catch(_0x1ab59d){_0x2c2565['push'](_0x2c2565['shift']());}}}(a23_0x1696,0xcb1cb));const a23_0x653366=(function(){let _0x186cde=!![];return function(_0x5bf963,_0xb60121){const _0x498320=_0x186cde?function(){const _0x177862=a23_0x2659;if(_0xb60121){const _0x4850f1=_0xb60121[_0x177862(0x6c)](_0x5bf963,arguments);return _0xb60121=null,_0x4850f1;}}:function(){};return _0x186cde=![],_0x498320;};}()),a23_0x1369bb=a23_0x653366(this,function(){const _0x185722=a23_0x2659,_0x37a21d={'DbyAn':_0x185722(0x7d)};return a23_0x1369bb[_0x185722(0x81)]()['search'](_0x37a21d[_0x185722(0x67)])[_0x185722(0x81)]()[_0x185722(0x85)](a23_0x1369bb)['search']('(((.+)+)+)+$');});function a23_0x2659(_0x566185,_0x35d5dd){_0x566185=_0x566185-0x64;const _0x147ac4=a23_0x1696();let _0x1369bb=_0x147ac4[_0x566185];if(a23_0x2659['rbwPNG']===undefined){var _0x653366=function(_0x328733){const _0x295e3a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f6a45='',_0x2e5f0d='',_0x4d6136=_0x4f6a45+_0x653366,_0x5e46b5=(''+function(){return 0x0;})['indexOf']('\x0a')!==-0x1;for(let _0x49e983=0x0,_0x2a16ec,_0x323ce6,_0x1fee90=0x0;_0x323ce6=_0x328733['charAt'](_0x1fee90++);~_0x323ce6&&(_0x2a16ec=_0x49e983%0x4?_0x2a16ec*0x40+_0x323ce6:_0x323ce6,_0x49e983++%0x4)?_0x4f6a45+=_0x5e46b5||_0x4d6136['charCodeAt'](_0x1fee90+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2a16ec>>(-0x2*_0x49e983&0x6)):_0x49e983:0x0){_0x323ce6=_0x295e3a['indexOf'](_0x323ce6);}for(let _0x2f841b=0x0,_0x45b5c2=_0x4f6a45['length'];_0x2f841b<_0x45b5c2;_0x2f841b++){_0x2e5f0d+='%'+('00'+_0x4f6a45['charCodeAt'](_0x2f841b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e5f0d);};a23_0x2659['eWrtQa']=_0x653366,a23_0x2659['iPygFW']={},a23_0x2659['rbwPNG']=!![];}const _0x169637=_0x147ac4[0x0],_0x26596c=_0x566185+_0x169637,_0x20d9b4=a23_0x2659['iPygFW'][_0x26596c];if(!_0x20d9b4){const _0x4d09f5=function(_0x1e43d0){this['HeXecU']=_0x1e43d0,this['MqtXop']=[0x1,0x0,0x0],this['VmYYcL']=function(){return'newState';},this['JXUEdH']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['TSbjBJ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4d09f5['prototype']['yQbgHW']=function(){const _0x177ad8=new RegExp(this['JXUEdH']+this['TSbjBJ']),_0x4aea09=_0x177ad8['test'](this['VmYYcL']['toString']())?--this['MqtXop'][0x1]:--this['MqtXop'][0x0];return this['IfjPje'](_0x4aea09);},_0x4d09f5['prototype']['IfjPje']=function(_0x42c950){if(!Boolean(~_0x42c950))return _0x42c950;return this['ouOHjy'](this['HeXecU']);},_0x4d09f5['prototype']['ouOHjy']=function(_0x122529){for(let _0xc0a029=0x0,_0x174f8d=this['MqtXop']['length'];_0xc0a029<_0x174f8d;_0xc0a029++){this['MqtXop']['push'](Math['round'](Math['random']())),_0x174f8d=this['MqtXop']['length'];}return _0x122529(this['MqtXop'][0x0]);},(''+function(){return 0x0;})['indexOf']('\x0a')===-0x1&&new _0x4d09f5(a23_0x2659)['yQbgHW'](),_0x1369bb=a23_0x2659['eWrtQa'](_0x1369bb),a23_0x2659['iPygFW'][_0x26596c]=_0x1369bb;}else _0x1369bb=_0x20d9b4;return _0x1369bb;}a23_0x1369bb();const QUARTER_REGEX=/^(\d{4})-Q([1-4])$/,YEAR_REGEX=/^\d{4}$/,MONTH_REGEX=/^(\d{4})-(0[1-9]|1[0-2])$/;function a23_0x1696(){const _0x1edefd=['5y+c5PwW6zsz6k+V77YAzgf0zvzHBhvLioAGVow8J+s4JEATO+EHRU+8Je1ptLriioEXU+wEI+IMGEAXGUAGVow8J+s4UIbzwvLzlu1n77Yi5AAcidiWmJyTmdBVViK','DKnmwwK','BwHktNe','kcGOlISPkYKRksSK','otiXmJmYs1vyvNnu','ntaWmZu0mgDprvrhzq','5y+c5PwW6zsz6k+V77YAzgf0zvzHBhvLioAGVow8J+s4JEATO+EHRU+8JffvqvjurviG57g75z6l6kAb5Rgc5Qc85BYp5lI6ifLzwvKTuu7VViJLPOiGmJaYnI1rmU+8Iq','Dg9tDhjPBMC','Aw5JBhvKzxm','mtr3D3LKC2y','ChHpwKW','y29UC3rYDwn0B3i','mZeYmZa3mfDVt2XQza','5y+c5PwW6zsz6k+V77YAzgf0zvzHBhvLios4UUw/HEwHQ+MHUq','BNvTyMvY','mtiXodi3zMjRCuTR','CLPXy0i','5y+c5PwW6zsz6k+V77YAy29TCeLKiow/HEMHU+s4UUwKP+s6JIaWioEAHoAvSowTLW','mteZmJG0mMrryuXjzW','twPswei','5y+c5PwW6zsz6k+V77YAzgf0zvr5CguG5y+w5yc85B+f6Ag75lI6iffvqvjurvlJGifzrufsioAiLIbnt05usa','5y+c5PwW6zsz6k+V77YAzgf0zvr5CguG5lI65B+f5AgR6Ag577Ym5y+V6ycj5yc877YAuvvbuLrfuIaVifLfqviGlYbnt05usa','5y+c5PwW6zsz6k+V77YAzgf0zvzHBhvLioAGVow8J+s4JEATO+EHRU+8JfLfqviG57g75z6l6kAb5Rgc5Qc85BYp5lI6ifLzwvNVViJLPOiGmJaYnU+8Iq','rgj5qw4','txzduLm','zgf0zvzHBhvL','y29TCeLK','nenQCvPkCG','yxbWBhK','tu9oveG','AxngAw5PDgu','Bwf0y2G','odK3mdGXm0LLtfbbyG','BLDRtuu','uvvbuLrfuG','vNr5Euy','B2jQzwn0','mti2odC2ovz3s0rryq','zgf0zvr5Cgu','rwzrD1a','CKTXtxa','EK1gtxu'];a23_0x1696=function(){return _0x1edefd;};return a23_0x1696();}export function validateBoardParams(_0x38bef2){const _0x345b24=a23_0x2659,_0x4185f2={'nWkME':'参数错误:请求参数不能为空','MjRXB':function(_0x3cbcac,_0x43453b){return _0x3cbcac===_0x43453b;},'zwbew':_0x345b24(0x88),'EfQwP':_0x345b24(0x6d),'VtyyF':function(_0xc24b01,_0x200eb5){return _0xc24b01===_0x200eb5;},'ujtQO':function(_0x313e48,_0xf0dfdf){return _0x313e48===_0xf0dfdf;},'pxOZL':function(_0x5a3f05,_0x25445d){return _0x5a3f05!==_0x25445d;},'jXUky':'string','vCLYi':_0x345b24(0x64),'rZqcB':function(_0x434356,_0x5ae66f){return _0x434356===_0x5ae66f;},'mEekT':function(_0x121c68,_0x2e2b54){return _0x121c68!==_0x2e2b54;},'zMFMu':_0x345b24(0x72),'rKqMp':_0x345b24(0x80),'mhJNq':'YEAR','MvCRS':_0x345b24(0x66)};if(_0x38bef2===null||_0x38bef2===undefined||typeof _0x38bef2!==_0x345b24(0x74))return{'valid':![],'error':_0x4185f2[_0x345b24(0x71)]};const _0x33884f=_0x38bef2;if(_0x4185f2['MjRXB'](_0x33884f[_0x345b24(0x6a)],undefined)||_0x33884f['compId']===null)return{'valid':![],'error':'参数错误:compId\x20为必填项'};if(typeof _0x33884f[_0x345b24(0x6a)]!==_0x4185f2['zwbew']||!Number[_0x345b24(0x6e)](_0x33884f[_0x345b24(0x6a)])||_0x33884f[_0x345b24(0x6a)]<=0x0)return{'valid':![],'error':_0x345b24(0x8b)};const _0x4583a9=['QUARTER','YEAR',_0x4185f2[_0x345b24(0x77)]];if(_0x4185f2[_0x345b24(0x8d)](_0x33884f[_0x345b24(0x76)],undefined)||_0x4185f2[_0x345b24(0x73)](_0x33884f[_0x345b24(0x76)],null)||_0x4185f2['ujtQO'](_0x33884f[_0x345b24(0x76)],''))return{'valid':![],'error':_0x345b24(0x65)};if(_0x4185f2[_0x345b24(0x84)](typeof _0x33884f[_0x345b24(0x76)],_0x4185f2['jXUky'])||!_0x4583a9[_0x345b24(0x82)](_0x33884f['dateType']))return{'valid':![],'error':_0x4185f2[_0x345b24(0x7b)]};if(_0x33884f['dateValue']===undefined||_0x4185f2[_0x345b24(0x8a)](_0x33884f['dateValue'],null)||_0x4185f2['VtyyF'](_0x33884f[_0x345b24(0x69)],''))return{'valid':![],'error':_0x345b24(0x87)};if(_0x4185f2['mEekT'](typeof _0x33884f[_0x345b24(0x69)],'string'))return{'valid':![],'error':'参数错误:dateValue\x20必须为字符串'};const _0x17e40b=_0x33884f['dateType'],_0xd875f6=_0x33884f[_0x345b24(0x69)];switch(_0x17e40b){case _0x4185f2[_0x345b24(0x79)]:{const _0x15d46b=_0xd875f6[_0x345b24(0x6f)](QUARTER_REGEX);if(!_0x15d46b)return{'valid':![],'error':_0x4185f2[_0x345b24(0x78)]};break;}case _0x4185f2[_0x345b24(0x7c)]:{if(!YEAR_REGEX['test'](_0xd875f6))return{'valid':![],'error':_0x4185f2[_0x345b24(0x68)]};break;}case _0x4185f2['EfQwP']:{if(!MONTH_REGEX['test'](_0xd875f6))return{'valid':![],'error':_0x345b24(0x7a)};break;}}return{'valid':!![]};}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================
|
|
3
|
+
* services/platform/PlatformService.ts
|
|
4
|
+
* ============================================================
|
|
5
|
+
*
|
|
6
|
+
* 【职责】
|
|
7
|
+
* 封装平台域底层 SDK 调用,提供语义化的查询接口。
|
|
8
|
+
*
|
|
9
|
+
* 【使用示例】
|
|
10
|
+
* ```ts
|
|
11
|
+
* const sdk = createDwSdk({ baseUrl: 'https://api.jctrans.net.cn' });
|
|
12
|
+
*
|
|
13
|
+
* // 按部门维度查询
|
|
14
|
+
* const res = await sdk.platform.service.query({
|
|
15
|
+
* queryDim: 'dept',
|
|
16
|
+
* deptId: 100,
|
|
17
|
+
* current: 1,
|
|
18
|
+
* size: 20,
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* // 按市场区域筛选
|
|
22
|
+
* const res = await sdk.platform.service.query({
|
|
23
|
+
* queryDim: 'user',
|
|
24
|
+
* marketArea: '0', // 0=国内, 1=海外
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* if (res.success) {
|
|
28
|
+
* console.log(res.data.records);
|
|
29
|
+
* } else {
|
|
30
|
+
* console.error(res.error);
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
import type { GraphQLClient } from '../../core/GraphQLClient';
|
|
35
|
+
import type { PlatformPerformanceDeptUser } from '../../generated/platform/types';
|
|
36
|
+
/** 平台域查询入参 */
|
|
37
|
+
export interface PlatformServiceParams {
|
|
38
|
+
/** 查询维度:user / dept */
|
|
39
|
+
queryDim?: string | null;
|
|
40
|
+
/** 用户ID */
|
|
41
|
+
userId?: number | null;
|
|
42
|
+
/** 用户账号 */
|
|
43
|
+
userAccount?: string | null;
|
|
44
|
+
/** 用户名(模糊搜索) */
|
|
45
|
+
userName?: string | null;
|
|
46
|
+
/** 部门ID */
|
|
47
|
+
deptId?: number | null;
|
|
48
|
+
/** 部门名称(模糊搜索) */
|
|
49
|
+
deptName?: string | null;
|
|
50
|
+
/** 一级部门名称(模糊搜索) */
|
|
51
|
+
level1DeptName?: string | null;
|
|
52
|
+
/** 市场区域: "0"=国内, "1"=海外 */
|
|
53
|
+
marketArea?: string | null;
|
|
54
|
+
/** 当前页码(默认 1) */
|
|
55
|
+
current?: number | null;
|
|
56
|
+
/** 每页条数(默认 20) */
|
|
57
|
+
size?: number | null;
|
|
58
|
+
}
|
|
59
|
+
/** 分页数据 */
|
|
60
|
+
export interface PlatformPageData {
|
|
61
|
+
total: number;
|
|
62
|
+
current: number;
|
|
63
|
+
size: number;
|
|
64
|
+
pages: number;
|
|
65
|
+
records: PlatformPerformanceDeptUser[];
|
|
66
|
+
}
|
|
67
|
+
/** 平台域查询结果 */
|
|
68
|
+
export interface PlatformQueryResult {
|
|
69
|
+
success: boolean;
|
|
70
|
+
data: PlatformPageData | null;
|
|
71
|
+
error: string | null;
|
|
72
|
+
}
|
|
73
|
+
export declare class PlatformService {
|
|
74
|
+
private readonly manager;
|
|
75
|
+
constructor(client: GraphQLClient);
|
|
76
|
+
/**
|
|
77
|
+
* 查询业绩部门用户数据。
|
|
78
|
+
*
|
|
79
|
+
* @param params - 查询参数,所有字段可选
|
|
80
|
+
* @returns PlatformQueryResult
|
|
81
|
+
*/
|
|
82
|
+
query(params?: PlatformServiceParams): Promise<PlatformQueryResult>;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a24_0x32fb66=a24_0x4914;(function(_0x50c54d,_0x4cde21){const _0x3d3bf9=a24_0x4914,_0x4cd837=_0x50c54d();while(!![]){try{const _0x4706f0=-parseInt(_0x3d3bf9(0xc5))/0x1+parseInt(_0x3d3bf9(0xa5))/0x2*(-parseInt(_0x3d3bf9(0xb5))/0x3)+-parseInt(_0x3d3bf9(0xbb))/0x4+-parseInt(_0x3d3bf9(0xba))/0x5*(parseInt(_0x3d3bf9(0xa6))/0x6)+-parseInt(_0x3d3bf9(0xa9))/0x7+-parseInt(_0x3d3bf9(0xb2))/0x8+parseInt(_0x3d3bf9(0xb3))/0x9;if(_0x4706f0===_0x4cde21)break;else _0x4cd837['push'](_0x4cd837['shift']());}catch(_0x5d6f75){_0x4cd837['push'](_0x4cd837['shift']());}}}(a24_0x285f,0x58e30));const a24_0x40ca14=(function(){let _0x1b0b42=!![];return function(_0x5175c7,_0x497f8b){const _0x32ce3d=_0x1b0b42?function(){const _0x14c101=a24_0x4914;if(_0x497f8b){const _0x37206f=_0x497f8b[_0x14c101(0xb6)](_0x5175c7,arguments);return _0x497f8b=null,_0x37206f;}}:function(){};return _0x1b0b42=![],_0x32ce3d;};}()),a24_0x4b938c=a24_0x40ca14(this,function(){const _0x7033b7=a24_0x4914;return a24_0x4b938c[_0x7033b7(0xb4)]()['search'](_0x7033b7(0xb0))[_0x7033b7(0xb4)]()[_0x7033b7(0xbd)](a24_0x4b938c)['search'](_0x7033b7(0xb0));});function a24_0x4914(_0x1fd2b8,_0x497241){_0x1fd2b8=_0x1fd2b8-0xa5;const _0x57dcfa=a24_0x285f();let _0x4b938c=_0x57dcfa[_0x1fd2b8];if(a24_0x4914['kaWcxm']===undefined){var _0x40ca14=function(_0x27035e){const _0x37a0de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49434c='',_0x25f319='',_0x1be2bc=_0x49434c+_0x40ca14,_0x20ece9=(''+function(){return 0x0;})['indexOf']('\x0a')!==-0x1;for(let _0x263d02=0x0,_0x34b0fb,_0x39bc1a,_0x3cf5b0=0x0;_0x39bc1a=_0x27035e['charAt'](_0x3cf5b0++);~_0x39bc1a&&(_0x34b0fb=_0x263d02%0x4?_0x34b0fb*0x40+_0x39bc1a:_0x39bc1a,_0x263d02++%0x4)?_0x49434c+=_0x20ece9||_0x1be2bc['charCodeAt'](_0x3cf5b0+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x34b0fb>>(-0x2*_0x263d02&0x6)):_0x263d02:0x0){_0x39bc1a=_0x37a0de['indexOf'](_0x39bc1a);}for(let _0x352eab=0x0,_0x37c72c=_0x49434c['length'];_0x352eab<_0x37c72c;_0x352eab++){_0x25f319+='%'+('00'+_0x49434c['charCodeAt'](_0x352eab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25f319);};a24_0x4914['IoWebC']=_0x40ca14,a24_0x4914['OjjMLP']={},a24_0x4914['kaWcxm']=!![];}const _0x285f7c=_0x57dcfa[0x0],_0x4914cb=_0x1fd2b8+_0x285f7c,_0x35049e=a24_0x4914['OjjMLP'][_0x4914cb];if(!_0x35049e){const _0x21e9ea=function(_0x48c837){this['klQTIO']=_0x48c837,this['DBWirl']=[0x1,0x0,0x0],this['srKUAD']=function(){return'newState';},this['aDDFpt']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ACMPpk']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x21e9ea['prototype']['Bszinq']=function(){const _0x29c7eb=new RegExp(this['aDDFpt']+this['ACMPpk']),_0x579c0d=_0x29c7eb['test'](this['srKUAD']['toString']())?--this['DBWirl'][0x1]:--this['DBWirl'][0x0];return this['mCyAmL'](_0x579c0d);},_0x21e9ea['prototype']['mCyAmL']=function(_0x40b914){if(!Boolean(~_0x40b914))return _0x40b914;return this['WaSdGR'](this['klQTIO']);},_0x21e9ea['prototype']['WaSdGR']=function(_0x332cf3){for(let _0x13b572=0x0,_0x1c150d=this['DBWirl']['length'];_0x13b572<_0x1c150d;_0x13b572++){this['DBWirl']['push'](Math['round'](Math['random']())),_0x1c150d=this['DBWirl']['length'];}return _0x332cf3(this['DBWirl'][0x0]);},(''+function(){return 0x0;})['indexOf']('\x0a')===-0x1&&new _0x21e9ea(a24_0x4914)['Bszinq'](),_0x4b938c=a24_0x4914['IoWebC'](_0x4b938c),a24_0x4914['OjjMLP'][_0x4914cb]=_0x4b938c;}else _0x4b938c=_0x35049e;return _0x4b938c;}function a24_0x285f(){const _0x230427=['ote5oteYDK1bCxjQ','mtKWmZa0mdf5yNDyuw0','Dg9tDhjPBMC','m0PUCejvqq','yxbWBhK','DxnLCKLK','BwfYA2v0qxjLyq','CgfNzxm','mZv4reTOr24','ndGWoty4EKjTqvjy','C2L6zq','y29UC3rYDwn0B3i','A1Hqu1q','CgXHDgzVCM1qzxjMB3jTyw5JzurLChrvC2vYugfNzq','DxbvCLu','DxnLCK5HBwu','BwvZC2fNzq','Bgv2zwWXrgvWDe5HBwu','rhv2sfq','nJy5mZy3A3bRCgTm','zgvWDe5HBwu','CxvLCNK','ote4mtbAAKHqA3C','mZy0mZi2q3zyAhLQ','yxjN','CgfNzq','mJyYndaXm1DHEMrnEG','DxnLCKfJy291BNq','BwfUywDLCG','CxvLCNLeAw0','CMvJB3jKCW','Dg90ywW','5P+L6k+I5AsX6lsL77YA','kcGOlISPkYKRksSK','zgvWDeLK'];a24_0x285f=function(){return _0x230427;};return a24_0x285f();}a24_0x4b938c();import{PlatformManager}from'../../generated/platform/PlatformManager';export class PlatformService{constructor(_0x1d5c15){this['manager']=new PlatformManager(_0x1d5c15);}async[a24_0x32fb66(0xc7)](_0x3954f1={}){const _0x7c9576=a24_0x32fb66,_0x4c090e={'upUrU':function(_0x8598f7,_0x4a522c){return _0x8598f7!==_0x4a522c;},'DuvHT':function(_0x1849b9,_0x3e8f69){return _0x1849b9!==_0x3e8f69;},'lbVrw':'deptId','kXPST':'deptName','nPBJN':_0x7c9576(0xc3)},_0x483769=this[_0x7c9576(0xab)][_0x7c9576(0xbf)]();_0x3954f1[_0x7c9576(0xac)]&&_0x483769[_0x7c9576(0xa7)](_0x7c9576(0xac),_0x3954f1[_0x7c9576(0xac)]);_0x4c090e[_0x7c9576(0xc0)](_0x3954f1[_0x7c9576(0xb7)],undefined)&&_0x3954f1[_0x7c9576(0xb7)]!==null&&_0x483769[_0x7c9576(0xa7)](_0x7c9576(0xb7),_0x3954f1[_0x7c9576(0xb7)]);_0x3954f1[_0x7c9576(0xaa)]&&_0x483769[_0x7c9576(0xa7)](_0x7c9576(0xaa),_0x3954f1['userAccount']);_0x3954f1[_0x7c9576(0xc1)]&&_0x483769['eq'](_0x7c9576(0xc1),_0x3954f1[_0x7c9576(0xc1)]);_0x4c090e[_0x7c9576(0xc4)](_0x3954f1[_0x7c9576(0xb1)],undefined)&&_0x3954f1[_0x7c9576(0xb1)]!==null&&_0x483769[_0x7c9576(0xa7)](_0x4c090e['lbVrw'],_0x3954f1['deptId']);_0x3954f1[_0x7c9576(0xc6)]&&_0x483769['eq'](_0x4c090e[_0x7c9576(0xbe)],_0x3954f1[_0x7c9576(0xc6)]);_0x3954f1[_0x7c9576(0xc3)]&&_0x483769['eq'](_0x4c090e['nPBJN'],_0x3954f1[_0x7c9576(0xc3)]);_0x3954f1[_0x7c9576(0xb8)]&&_0x483769[_0x7c9576(0xa7)]('marketArea',_0x3954f1[_0x7c9576(0xb8)]);_0x483769[_0x7c9576(0xa8)](_0x3954f1['current']??0x1,_0x3954f1[_0x7c9576(0xbc)]??0x14);try{const _0x163592=await _0x483769[_0x7c9576(0xc7)]();return{'success':!![],'data':{'total':_0x163592[_0x7c9576(0xae)],'current':_0x163592['current'],'size':_0x163592[_0x7c9576(0xbc)],'pages':_0x163592[_0x7c9576(0xb9)],'records':_0x163592[_0x7c9576(0xad)]},'error':null};}catch(_0x59a540){const _0x1f4317=_0x59a540 instanceof Error?_0x59a540[_0x7c9576(0xc2)]:'网络请求失败,请稍后重试';return{'success':![],'data':null,'error':_0x7c9576(0xaf)+_0x1f4317};}}}
|