shcp-api-lib 1.0.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.
Files changed (78) hide show
  1. package/README.md +74 -0
  2. package/dist/index.d.ts +5660 -0
  3. package/dist/index.esm.js +2954 -0
  4. package/dist/index.esm.js.map +1 -0
  5. package/dist/index.js +3038 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/types/src/api/app-client-api.d.ts +12 -0
  8. package/dist/types/src/api/app-client-page-config-api.d.ts +5 -0
  9. package/dist/types/src/api/app-client-setting-api.d.ts +5 -0
  10. package/dist/types/src/api/common-dict-api.d.ts +40 -0
  11. package/dist/types/src/api/common-file-api.d.ts +5 -0
  12. package/dist/types/src/api/common-right-api.d.ts +60 -0
  13. package/dist/types/src/api/consumer-api.d.ts +39 -0
  14. package/dist/types/src/api/consumer-bind-api.d.ts +15 -0
  15. package/dist/types/src/api/consumer-device-api.d.ts +24 -0
  16. package/dist/types/src/api/consumer-favorite-api.d.ts +8 -0
  17. package/dist/types/src/api/device-api.d.ts +19 -0
  18. package/dist/types/src/api/device-user-api.d.ts +29 -0
  19. package/dist/types/src/api/disease-care-right-api.d.ts +22 -0
  20. package/dist/types/src/api/health-common-api.d.ts +15 -0
  21. package/dist/types/src/api/health-metric-api.d.ts +9 -0
  22. package/dist/types/src/api/health-profile-api.d.ts +8 -0
  23. package/dist/types/src/api/health-self-assess-api.d.ts +8 -0
  24. package/dist/types/src/api/health-study-right-api.d.ts +23 -0
  25. package/dist/types/src/api/health-tool-api.d.ts +14 -0
  26. package/dist/types/src/api/help-center.d.ts +4 -0
  27. package/dist/types/src/api/im-user-api.d.ts +7 -0
  28. package/dist/types/src/api/index.d.ts +32 -0
  29. package/dist/types/src/api/km-article-api.d.ts +9 -0
  30. package/dist/types/src/api/km-form-api.d.ts +10 -0
  31. package/dist/types/src/api/km-form-rule-relation-api.d.ts +6 -0
  32. package/dist/types/src/api/login-api.d.ts +18 -0
  33. package/dist/types/src/api/marketing-api.d.ts +16 -0
  34. package/dist/types/src/api/message-record-api.d.ts +7 -0
  35. package/dist/types/src/api/mine-api.d.ts +8 -0
  36. package/dist/types/src/api/right-qrcode-api.d.ts +9 -0
  37. package/dist/types/src/api/right-service-config-api.d.ts +18 -0
  38. package/dist/types/src/api/system-right-api.d.ts +17 -0
  39. package/dist/types/src/api/user-group-api.d.ts +11 -0
  40. package/dist/types/src/constants/km-const.d.ts +59 -0
  41. package/dist/types/src/constants/metric.d.ts +17 -0
  42. package/dist/types/src/constants/qiniuUploader.d.ts +49 -0
  43. package/dist/types/src/constants/shcp-common.d.ts +428 -0
  44. package/dist/types/src/index.d.ts +4 -0
  45. package/dist/types/src/shcp-api-sdk.d.ts +26 -0
  46. package/dist/types/src/type/model/app-client-model.d.ts +138 -0
  47. package/dist/types/src/type/model/app-client-setting-model.d.ts +46 -0
  48. package/dist/types/src/type/model/blade-system-model.d.ts +34 -0
  49. package/dist/types/src/type/model/common-dict-model.d.ts +100 -0
  50. package/dist/types/src/type/model/common-file-model.d.ts +10 -0
  51. package/dist/types/src/type/model/common-model.d.ts +9 -0
  52. package/dist/types/src/type/model/common-right-model.d.ts +929 -0
  53. package/dist/types/src/type/model/consumer-bind-model.d.ts +175 -0
  54. package/dist/types/src/type/model/consumer-device-model.d.ts +114 -0
  55. package/dist/types/src/type/model/consumer-favorite-model.d.ts +105 -0
  56. package/dist/types/src/type/model/consumer-model.d.ts +214 -0
  57. package/dist/types/src/type/model/device-model.d.ts +295 -0
  58. package/dist/types/src/type/model/device-user-model.d.ts +53 -0
  59. package/dist/types/src/type/model/health-care-config-model.d.ts +301 -0
  60. package/dist/types/src/type/model/health-metric-model.d.ts +181 -0
  61. package/dist/types/src/type/model/health-profile-model.d.ts +83 -0
  62. package/dist/types/src/type/model/health-self-assess-model.d.ts +35 -0
  63. package/dist/types/src/type/model/health-tool-model.d.ts +105 -0
  64. package/dist/types/src/type/model/im-user-model.d.ts +44 -0
  65. package/dist/types/src/type/model/index.d.ts +30 -0
  66. package/dist/types/src/type/model/km-article-model.d.ts +275 -0
  67. package/dist/types/src/type/model/km-form-model.d.ts +745 -0
  68. package/dist/types/src/type/model/km-form-rule-relation-model.d.ts +31 -0
  69. package/dist/types/src/type/model/login-model.d.ts +90 -0
  70. package/dist/types/src/type/model/marketing-model.d.ts +142 -0
  71. package/dist/types/src/type/model/message-record-model.d.ts +59 -0
  72. package/dist/types/src/type/model/mine-model.d.ts +100 -0
  73. package/dist/types/src/type/model/right-qrcode-model.d.ts +143 -0
  74. package/dist/types/src/type/model/right-service-config-model.d.ts +2 -0
  75. package/dist/types/src/type/model/system-right-model.d.ts +134 -0
  76. package/dist/types/src/type/model/user-group-model.d.ts +45 -0
  77. package/dist/types/src/type/net-types.d.ts +37 -0
  78. package/package.json +47 -0
@@ -0,0 +1,2954 @@
1
+ /**
2
+ * 华为手表指标类别
3
+ */
4
+ var HuaWeiWatchMetricCategory;
5
+ (function (HuaWeiWatchMetricCategory) {
6
+ HuaWeiWatchMetricCategory["BloodPressure"] = "bp";
7
+ HuaWeiWatchMetricCategory["BloodFat"] = "bf";
8
+ HuaWeiWatchMetricCategory["BloodSugar"] = "bs";
9
+ HuaWeiWatchMetricCategory["Sleep"] = "sleep_standard";
10
+ HuaWeiWatchMetricCategory["SPO2"] = "spo2";
11
+ HuaWeiWatchMetricCategory["HeartRate"] = "heart_rate";
12
+ HuaWeiWatchMetricCategory["BodyTemperature"] = "tw";
13
+ HuaWeiWatchMetricCategory["SportSingle"] = "sport_single";
14
+ HuaWeiWatchMetricCategory["Sport"] = "sport";
15
+ HuaWeiWatchMetricCategory["Stress"] = "stress";
16
+ HuaWeiWatchMetricCategory["Unknown"] = "unknown";
17
+ })(HuaWeiWatchMetricCategory || (HuaWeiWatchMetricCategory = {}));
18
+
19
+ var AggregateType;
20
+ (function (AggregateType) {
21
+ AggregateType[AggregateType["BY_COUNT"] = 1] = "BY_COUNT";
22
+ AggregateType[AggregateType["BY_DAY"] = 2] = "BY_DAY";
23
+ AggregateType[AggregateType["BY_HOUR"] = 3] = "BY_HOUR";
24
+ AggregateType[AggregateType["Unknown"] = 99] = "Unknown";
25
+ })(AggregateType || (AggregateType = {}));
26
+
27
+ var ErrCode;
28
+ (function (ErrCode) {
29
+ ErrCode[ErrCode["ERR_OK"] = 200] = "ERR_OK";
30
+ ErrCode[ErrCode["ERR_NETWORK_TIMEOUT"] = 1] = "ERR_NETWORK_TIMEOUT";
31
+ ErrCode[ErrCode["ERR_MEANINGLESS"] = -1] = "ERR_MEANINGLESS";
32
+ })(ErrCode || (ErrCode = {}));
33
+ var Status;
34
+ (function (Status) {
35
+ Status[Status["SUCCESS"] = 0] = "SUCCESS";
36
+ Status[Status["ERROR"] = 1] = "ERROR";
37
+ Status[Status["LOADING"] = 2] = "LOADING";
38
+ })(Status || (Status = {}));
39
+ class Resource {
40
+ constructor(status, code, data, msg) {
41
+ this.status = status;
42
+ this.data = data;
43
+ this.code = code;
44
+ this.msg = msg;
45
+ }
46
+ static success(data, msg) {
47
+ return new Resource(Status.SUCCESS, Resource.getCode(data), data, msg || Resource.getMessage(msg));
48
+ }
49
+ static loading(data) {
50
+ return new Resource(Status.LOADING, 0, data);
51
+ }
52
+ static error(errCode, data, message) {
53
+ return new Resource(Status.ERROR, errCode, data, message || Resource.getMessage(data));
54
+ }
55
+ static getCode(data) {
56
+ let code = ErrCode.ERR_OK;
57
+ if (data && data instanceof Object && 'code' in data) {
58
+ const temp = Number(data.code);
59
+ code = temp || code;
60
+ }
61
+ return code;
62
+ }
63
+ static getMessage(data) {
64
+ let message = '';
65
+ if (data && data instanceof Object && 'msg' in data) {
66
+ message = data.msg ? data.msg : message;
67
+ }
68
+ return message;
69
+ }
70
+ }
71
+ function checkResponse(response) {
72
+ return response && (Number(response?.code) === 0 || Number(response?.code) === 200);
73
+ }
74
+ function commonProccessResponse(data) {
75
+ if (checkResponse(data)) {
76
+ return Resource.success(data?.data, data?.msg);
77
+ }
78
+ else {
79
+ return Resource.error(data?.code ? data?.code : ErrCode.ERR_MEANINGLESS, null, data?.msg);
80
+ }
81
+ }
82
+
83
+ var MetricScopeValueType;
84
+ (function (MetricScopeValueType) {
85
+ MetricScopeValueType[MetricScopeValueType["GreaterThan"] = 1] = "GreaterThan";
86
+ MetricScopeValueType[MetricScopeValueType["LessThan"] = 2] = "LessThan";
87
+ MetricScopeValueType[MetricScopeValueType["GreaterThanOrEqual"] = 3] = "GreaterThanOrEqual";
88
+ MetricScopeValueType[MetricScopeValueType["LessThanOrEqual"] = 4] = "LessThanOrEqual";
89
+ })(MetricScopeValueType || (MetricScopeValueType = {}));
90
+ [
91
+ { value: MetricScopeValueType.GreaterThan, label: '大于' },
92
+ { value: MetricScopeValueType.LessThan, label: '小于' },
93
+ { value: MetricScopeValueType.GreaterThanOrEqual, label: '大于等于' },
94
+ { value: MetricScopeValueType.LessThanOrEqual, label: '小于等于' },
95
+ ];
96
+ const REG = /^([\[\(])\s*(-?∞|-?\d+(\.\d+)?)\s*,\s*(-?∞|-?\d+(\.\d+)?)\s*([\]\)])$/;
97
+ function formatMathInterval(interval, placehold = '正常值', append = 'mmHg') {
98
+ // 移除空格
99
+ interval = interval.trim();
100
+ // 提取边界符和数值
101
+ const match = interval.match(REG);
102
+ if (!match) {
103
+ throw new Error('输入格式不正确');
104
+ }
105
+ const [, leftBracket, lower, _, upper, __, rightBracket] = match;
106
+ let lowerPart = '';
107
+ let upperPart = '';
108
+ // 根据左括号确定下界表达式
109
+ if (lower !== '-∞') {
110
+ lowerPart = lower + append + (leftBracket === '[' ? `≤${placehold}` : `<${placehold}`);
111
+ }
112
+ // 根据右括号确定上界表达式
113
+ if (upper !== '∞') {
114
+ upperPart = (rightBracket === ']' ? '≤' : '<') + upper + append;
115
+ }
116
+ // 如果有上下界,拼接完整表达式;否则只显示单边
117
+ if (lowerPart && upperPart) {
118
+ return `${lowerPart}${upperPart}`;
119
+ }
120
+ else if (lowerPart) {
121
+ return lowerPart;
122
+ }
123
+ else if (upperPart) {
124
+ return `${placehold}${upperPart}`;
125
+ }
126
+ throw new Error('无效区间');
127
+ }
128
+
129
+ var ShcpUserType;
130
+ (function (ShcpUserType) {
131
+ ShcpUserType[ShcpUserType["Consumer"] = 1] = "Consumer";
132
+ ShcpUserType[ShcpUserType["DeviceUser"] = 2] = "DeviceUser";
133
+ ShcpUserType[ShcpUserType["TenantUser"] = 3] = "TenantUser";
134
+ ShcpUserType[ShcpUserType["System"] = 4] = "System";
135
+ ShcpUserType[ShcpUserType["Unknown"] = 99] = "Unknown";
136
+ })(ShcpUserType || (ShcpUserType = {}));
137
+ var Gender;
138
+ (function (Gender) {
139
+ Gender[Gender["Male"] = 1] = "Male";
140
+ Gender[Gender["Female"] = 2] = "Female";
141
+ Gender[Gender["unknown"] = 99] = "unknown";
142
+ })(Gender || (Gender = {}));
143
+ const GenderOptions = [
144
+ { value: Gender.Male, label: '男' },
145
+ { value: Gender.Female, label: '女' },
146
+ { value: Gender.unknown, label: '未知' },
147
+ ];
148
+ var MemberListType;
149
+ (function (MemberListType) {
150
+ MemberListType[MemberListType["Doctor"] = 1] = "Doctor";
151
+ MemberListType[MemberListType["Patient"] = 2] = "Patient";
152
+ })(MemberListType || (MemberListType = {}));
153
+ const MemberListTypeMap = {
154
+ [MemberListType.Doctor]: { label: '医生管理组' },
155
+ [MemberListType.Patient]: { label: '用户群' },
156
+ };
157
+ var MetricValueType;
158
+ (function (MetricValueType) {
159
+ MetricValueType[MetricValueType["Exact"] = 1] = "Exact";
160
+ MetricValueType[MetricValueType["Scope"] = 2] = "Scope";
161
+ })(MetricValueType || (MetricValueType = {}));
162
+ const MetricValueTypeOptions = [
163
+ { value: MetricValueType.Exact, label: '值' },
164
+ { value: MetricValueType.Scope, label: '范围值' },
165
+ ];
166
+ function formatMetricData(metric) {
167
+ if (metric.expectScope) {
168
+ try {
169
+ return formatMathInterval(metric.expectScope, '正常值', metric.displayName);
170
+ }
171
+ catch (e) { }
172
+ }
173
+ if (metric.expectValue) {
174
+ return `正常值为${metric.expectValue}${metric.displayName}`;
175
+ }
176
+ }
177
+ /**
178
+ * 权益类型枚举
179
+ */
180
+ var RightType;
181
+ (function (RightType) {
182
+ RightType[RightType["Dynamic"] = 1] = "Dynamic";
183
+ RightType[RightType["Static"] = 2] = "Static";
184
+ RightType[RightType["Unknown"] = 99] = "Unknown";
185
+ })(RightType || (RightType = {}));
186
+ /**
187
+ * 健管服务类型枚举
188
+ */
189
+ var HealthServiceType;
190
+ (function (HealthServiceType) {
191
+ HealthServiceType[HealthServiceType["DiseaseCare"] = 1] = "DiseaseCare";
192
+ HealthServiceType[HealthServiceType["HealthStudy"] = 2] = "HealthStudy";
193
+ HealthServiceType[HealthServiceType["HealthProfile"] = 3] = "HealthProfile";
194
+ HealthServiceType[HealthServiceType["HealthAnalysis"] = 4] = "HealthAnalysis";
195
+ HealthServiceType[HealthServiceType["HealthJournal"] = 5] = "HealthJournal";
196
+ HealthServiceType[HealthServiceType["HealthConsult"] = 6] = "HealthConsult";
197
+ HealthServiceType[HealthServiceType["HealthScreening"] = 7] = "HealthScreening";
198
+ HealthServiceType[HealthServiceType["HealthSelfAssess"] = 8] = "HealthSelfAssess";
199
+ HealthServiceType[HealthServiceType["HealthTool"] = 9] = "HealthTool";
200
+ HealthServiceType[HealthServiceType["HealthGreenChannel"] = 10] = "HealthGreenChannel";
201
+ HealthServiceType[HealthServiceType["Health3rdParty"] = 11] = "Health3rdParty";
202
+ HealthServiceType[HealthServiceType["Unknown"] = 99] = "Unknown";
203
+ })(HealthServiceType || (HealthServiceType = {}));
204
+ const HealthServiceTypeOptions = [
205
+ { value: HealthServiceType.DiseaseCare, label: '疾病管理服务' },
206
+ { value: HealthServiceType.HealthStudy, label: '课题研究服务' },
207
+ { value: HealthServiceType.HealthProfile, label: '健康档案服务' },
208
+ { value: HealthServiceType.HealthAnalysis, label: '健康分析服务' },
209
+ { value: HealthServiceType.HealthJournal, label: '健康期刊服务' },
210
+ { value: HealthServiceType.HealthConsult, label: '健康咨询服务' },
211
+ { value: HealthServiceType.HealthScreening, label: '健康筛查服务' },
212
+ { value: HealthServiceType.HealthSelfAssess, label: '健康自测服务' },
213
+ { value: HealthServiceType.HealthTool, label: '健康工具服务' },
214
+ { value: HealthServiceType.HealthGreenChannel, label: '健康绿通服务' },
215
+ { value: HealthServiceType.Health3rdParty, label: '三方集成服务' },
216
+ { value: HealthServiceType.Unknown, label: '未知服务' },
217
+ ];
218
+ var AppPlatformType;
219
+ (function (AppPlatformType) {
220
+ AppPlatformType[AppPlatformType["Android"] = 1] = "Android";
221
+ AppPlatformType[AppPlatformType["IOS"] = 2] = "IOS";
222
+ AppPlatformType[AppPlatformType["Weixin"] = 3] = "Weixin";
223
+ AppPlatformType[AppPlatformType["Alipay"] = 4] = "Alipay";
224
+ AppPlatformType[AppPlatformType["H5"] = 5] = "H5";
225
+ AppPlatformType[AppPlatformType["Harmony"] = 6] = "Harmony";
226
+ AppPlatformType[AppPlatformType["Unknown"] = 9] = "Unknown";
227
+ })(AppPlatformType || (AppPlatformType = {}));
228
+ const ShcpUserTypeOptions = [
229
+ { value: ShcpUserType.Consumer, label: 'C端消费用户' },
230
+ { value: ShcpUserType.DeviceUser, label: 'C端设备用户' },
231
+ { value: ShcpUserType.TenantUser, label: '租户端用户' },
232
+ { value: ShcpUserType.System, label: '系统' },
233
+ { value: ShcpUserType.Unknown, label: '未知' },
234
+ ];
235
+ var ConsumerMarkType;
236
+ (function (ConsumerMarkType) {
237
+ ConsumerMarkType[ConsumerMarkType["Lost"] = 1] = "Lost";
238
+ ConsumerMarkType[ConsumerMarkType["Exit"] = 2] = "Exit";
239
+ ConsumerMarkType[ConsumerMarkType["Reject"] = 3] = "Reject";
240
+ ConsumerMarkType[ConsumerMarkType["Deceased"] = 4] = "Deceased";
241
+ ConsumerMarkType[ConsumerMarkType["Other"] = 5] = "Other";
242
+ ConsumerMarkType[ConsumerMarkType["Unknown"] = 99] = "Unknown";
243
+ })(ConsumerMarkType || (ConsumerMarkType = {}));
244
+ const ConsumerMarkTypeOptions = [
245
+ { value: ConsumerMarkType.Lost, label: '失去联系' },
246
+ { value: ConsumerMarkType.Exit, label: '退出管理' },
247
+ { value: ConsumerMarkType.Reject, label: '拒绝配合' },
248
+ { value: ConsumerMarkType.Deceased, label: '已死亡' },
249
+ { value: ConsumerMarkType.Other, label: '其他' },
250
+ { value: ConsumerMarkType.Unknown, label: '未知' },
251
+ ];
252
+ var MessageChannelType;
253
+ (function (MessageChannelType) {
254
+ MessageChannelType[MessageChannelType["SMS"] = 1] = "SMS";
255
+ MessageChannelType[MessageChannelType["CONSUMER_APP_CARD"] = 2] = "CONSUMER_APP_CARD";
256
+ MessageChannelType[MessageChannelType["TENANT_APP_CARD"] = 3] = "TENANT_APP_CARD";
257
+ MessageChannelType[MessageChannelType["CONSUMER_APP_NOTICE"] = 4] = "CONSUMER_APP_NOTICE";
258
+ MessageChannelType[MessageChannelType["TENANT_APP_NOTICE"] = 5] = "TENANT_APP_NOTICE";
259
+ MessageChannelType[MessageChannelType["TENANT_WEB_NOTICE"] = 6] = "TENANT_WEB_NOTICE";
260
+ MessageChannelType[MessageChannelType["WECHAT"] = 7] = "WECHAT";
261
+ MessageChannelType[MessageChannelType["DING_TALK"] = 8] = "DING_TALK";
262
+ MessageChannelType[MessageChannelType["EMAIL"] = 9] = "EMAIL";
263
+ MessageChannelType[MessageChannelType["Unknown"] = 99] = "Unknown";
264
+ })(MessageChannelType || (MessageChannelType = {}));
265
+ const MessageChannelTypeOptions = [
266
+ { value: MessageChannelType.SMS, label: '短信消息' },
267
+ { value: MessageChannelType.CONSUMER_APP_CARD, label: 'C端APP卡片消息' },
268
+ { value: MessageChannelType.TENANT_APP_CARD, label: '租户端APP卡片消息' },
269
+ { value: MessageChannelType.CONSUMER_APP_NOTICE, label: 'C端APP站内信' },
270
+ { value: MessageChannelType.TENANT_APP_NOTICE, label: '租户APP站内信' },
271
+ { value: MessageChannelType.TENANT_WEB_NOTICE, label: '租户Web端站内信' },
272
+ { value: MessageChannelType.WECHAT, label: '微信消息' },
273
+ { value: MessageChannelType.DING_TALK, label: '钉钉消息' },
274
+ { value: MessageChannelType.EMAIL, label: '邮件' },
275
+ { value: MessageChannelType.Unknown, label: '未知' },
276
+ ];
277
+ var ServiceFlowStatus;
278
+ (function (ServiceFlowStatus) {
279
+ ServiceFlowStatus[ServiceFlowStatus["New"] = 1] = "New";
280
+ ServiceFlowStatus[ServiceFlowStatus["Started"] = 2] = "Started";
281
+ ServiceFlowStatus[ServiceFlowStatus["Running"] = 4] = "Running";
282
+ ServiceFlowStatus[ServiceFlowStatus["Success"] = 10] = "Success";
283
+ ServiceFlowStatus[ServiceFlowStatus["Cancelled"] = 11] = "Cancelled";
284
+ ServiceFlowStatus[ServiceFlowStatus["Terminated"] = 12] = "Terminated";
285
+ ServiceFlowStatus[ServiceFlowStatus["Failed"] = 13] = "Failed";
286
+ ServiceFlowStatus[ServiceFlowStatus["Unknown"] = 99] = "Unknown";
287
+ })(ServiceFlowStatus || (ServiceFlowStatus = {}));
288
+ const DiseaseCareServiceFlowStatusOptions = [
289
+ {
290
+ value: ServiceFlowStatus.New,
291
+ label: '待推送',
292
+ },
293
+ {
294
+ value: ServiceFlowStatus.Started,
295
+ label: '疾病待评估',
296
+ },
297
+ {
298
+ value: ServiceFlowStatus.Running,
299
+ label: '方案执行中',
300
+ },
301
+ {
302
+ value: ServiceFlowStatus.Success,
303
+ label: '方案已完成',
304
+ },
305
+ // {
306
+ // value: ServiceFlowStatus.Cancelled,
307
+ // label: "已取消",
308
+ // },
309
+ {
310
+ value: ServiceFlowStatus.Terminated,
311
+ label: '方案已终止',
312
+ },
313
+ {
314
+ value: ServiceFlowStatus.Failed,
315
+ label: '执行失败',
316
+ },
317
+ {
318
+ value: ServiceFlowStatus.Unknown,
319
+ label: '未知',
320
+ },
321
+ ];
322
+ const HealthStudyServiceFlowStatusOptions = [
323
+ // {
324
+ // value: ServiceFlowStatus.New,
325
+ // label: "新建",
326
+ // },
327
+ {
328
+ value: ServiceFlowStatus.Started,
329
+ label: '待分组',
330
+ },
331
+ {
332
+ value: ServiceFlowStatus.Running,
333
+ label: '方案执行中',
334
+ },
335
+ {
336
+ value: ServiceFlowStatus.Success,
337
+ label: '课题已完成',
338
+ },
339
+ // {
340
+ // value: ServiceFlowStatus.Cancelled,
341
+ // label: "已取消",
342
+ // },
343
+ {
344
+ value: ServiceFlowStatus.Terminated,
345
+ label: '课题已终止',
346
+ },
347
+ {
348
+ value: ServiceFlowStatus.Failed,
349
+ label: '执行失败',
350
+ },
351
+ {
352
+ value: ServiceFlowStatus.Unknown,
353
+ label: '未知',
354
+ },
355
+ ];
356
+ /**
357
+ * DiseaseCare相关的任务种类
358
+ */
359
+ var ServiceTaskCategory;
360
+ (function (ServiceTaskCategory) {
361
+ // DiseaseCare相关的任务种类
362
+ ServiceTaskCategory["DiseaseCareAssessTask"] = "DiseaseCare.AssessTask";
363
+ ServiceTaskCategory["DiseaseCareGroupingTask"] = "DiseaseCare.GroupingTask";
364
+ ServiceTaskCategory["DiseaseCareFollowUpTask"] = "DiseaseCare.FollowUpTask";
365
+ ServiceTaskCategory["DiseaseCareFollowUpAdverseEventTask"] = "DiseaseCare.AdverseEventTask";
366
+ ServiceTaskCategory["DiseaseCareReturnVisitTask"] = "DiseaseCare.ReturnVisitTask";
367
+ ServiceTaskCategory["DiseaseCareEducationGuideTask"] = "DiseaseCare.EducationGuideTask";
368
+ ServiceTaskCategory["DiseaseCareEducationNewsTask"] = "DiseaseCare.EducationNewsTask";
369
+ ServiceTaskCategory["DiseaseCareMetricMonitorTask"] = "DiseaseCare.MetricMonitorTask";
370
+ // HealthStudy相关的任务种类
371
+ ServiceTaskCategory["HealthStudyGroupingTask"] = "HealthStudy.GroupingTask";
372
+ ServiceTaskCategory["HealthStudyFollowUpBaseTask"] = "HealthStudy.FollowUpBaseTask";
373
+ ServiceTaskCategory["HealthStudyFollowUpCRFTask"] = "HealthStudy.FollowUpCRFTask";
374
+ ServiceTaskCategory["HealthStudyReturnVisitTask"] = "HealthStudy.ReturnVisitTask";
375
+ ServiceTaskCategory["HealthStudyEducationGuideTask"] = "HealthStudy.EducationGuideTask";
376
+ ServiceTaskCategory["HealthStudyEducationNewsTask"] = "HealthStudy.EducationNewsTask";
377
+ ServiceTaskCategory["HealthStudyMetricMonitorTask"] = "HealthStudy.MetricMonitorTask";
378
+ ServiceTaskCategory["HealthStudyFollowUpAdverseEventTask"] = "HealthStudy.AdverseEventTask";
379
+ ServiceTaskCategory["HealthStudyFollowUpUnscheduledTask"] = "HealthStudy.UnscheduledTask";
380
+ ServiceTaskCategory["HealthStudyFollowUpEndOfStudyTask"] = "HealthStudy.EndOfStudyTask";
381
+ ServiceTaskCategory["HealthStudyFollowUpTerminationOutcomeTask"] = "HealthStudy.TerminationOutcomeTask";
382
+ // HealthSelfAssess相关的任务种类
383
+ ServiceTaskCategory["HealthSelfAssessmentTask"] = "HealthSelfAssessment.AssessmentTask";
384
+ // HealthTool 相关的任务种类
385
+ ServiceTaskCategory["HealthToolTask"] = "HealthTool.ToolTask";
386
+ // HealthProfile相关的任务种类
387
+ ServiceTaskCategory["HealthProfileDiaryTask"] = "HealthProfile.DiaryTask";
388
+ ServiceTaskCategory["HealthProfileBaseProfileTask"] = "HealthProfile.BaseProfileTask";
389
+ ServiceTaskCategory["HealthProfileReportPhysicalExamTask"] = "HealthProfile.ReportPhysicalExamTask";
390
+ ServiceTaskCategory["HealthProfileReportOutpatientTask"] = "HealthProfile.ReportOutpatientTask";
391
+ ServiceTaskCategory["HealthProfileReportInpatientTask"] = "HealthProfile.ReportInpatientTask";
392
+ ServiceTaskCategory["HealthProfileReportLabTask"] = "HealthProfile.ReportLabTask";
393
+ ServiceTaskCategory["DiseaseCareAdverseEventTask"] = "DiseaseCare.AdverseEventTask";
394
+ ServiceTaskCategory["HealthConsultChatTask"] = "HealthConsult.ChatTask";
395
+ // HealthDevice相关的任务种类
396
+ ServiceTaskCategory["HealthDeviceHuaWeiWatchDataQueryTask"] = "HealthDevice.HuaWeiWatchDataQueryTask";
397
+ // HealthProfile相关的任务种类
398
+ ServiceTaskCategory["Unknown"] = "UNKNOWN";
399
+ })(ServiceTaskCategory || (ServiceTaskCategory = {}));
400
+ var ServiceTaskStatus;
401
+ (function (ServiceTaskStatus) {
402
+ ServiceTaskStatus[ServiceTaskStatus["New"] = 1] = "New";
403
+ ServiceTaskStatus[ServiceTaskStatus["Pushed"] = 2] = "Pushed";
404
+ ServiceTaskStatus[ServiceTaskStatus["Expired"] = 3] = "Expired";
405
+ ServiceTaskStatus[ServiceTaskStatus["Success"] = 10] = "Success";
406
+ ServiceTaskStatus[ServiceTaskStatus["Cancelled"] = 11] = "Cancelled";
407
+ ServiceTaskStatus[ServiceTaskStatus["Terminated"] = 12] = "Terminated";
408
+ ServiceTaskStatus[ServiceTaskStatus["Failed"] = 13] = "Failed";
409
+ ServiceTaskStatus[ServiceTaskStatus["Unknown"] = 99] = "Unknown";
410
+ })(ServiceTaskStatus || (ServiceTaskStatus = {}));
411
+ const ServiceTaskStatusOptions = [
412
+ {
413
+ value: ServiceTaskStatus.New,
414
+ label: '待推送',
415
+ },
416
+ {
417
+ value: ServiceTaskStatus.Pushed,
418
+ label: '待执行',
419
+ },
420
+ {
421
+ value: ServiceTaskStatus.Expired,
422
+ label: '已过期',
423
+ },
424
+ {
425
+ value: ServiceTaskStatus.Success,
426
+ label: '已完成',
427
+ },
428
+ {
429
+ value: ServiceTaskStatus.Cancelled,
430
+ label: '已忽略',
431
+ },
432
+ {
433
+ value: ServiceTaskStatus.Terminated,
434
+ label: '已终止',
435
+ },
436
+ {
437
+ value: ServiceTaskStatus.Failed,
438
+ label: '已失败',
439
+ },
440
+ {
441
+ value: ServiceTaskStatus.Unknown,
442
+ label: '未知',
443
+ },
444
+ ];
445
+ const InterviewServiceTaskStatusOptions = [
446
+ {
447
+ value: ServiceTaskStatus.New,
448
+ label: '待推送',
449
+ },
450
+ {
451
+ value: ServiceTaskStatus.Pushed,
452
+ label: '待复诊',
453
+ },
454
+ {
455
+ value: ServiceTaskStatus.Expired,
456
+ label: '已过期',
457
+ },
458
+ {
459
+ value: ServiceTaskStatus.Success,
460
+ label: '已复诊',
461
+ },
462
+ {
463
+ value: ServiceTaskStatus.Cancelled,
464
+ label: '已忽略',
465
+ },
466
+ {
467
+ value: ServiceTaskStatus.Terminated,
468
+ label: '已终止',
469
+ },
470
+ {
471
+ value: ServiceTaskStatus.Failed,
472
+ label: '已失败',
473
+ },
474
+ {
475
+ value: ServiceTaskStatus.Unknown,
476
+ label: '未知',
477
+ },
478
+ ];
479
+ var MarketingTaskStatus;
480
+ (function (MarketingTaskStatus) {
481
+ MarketingTaskStatus[MarketingTaskStatus["Pending"] = 1] = "Pending";
482
+ MarketingTaskStatus[MarketingTaskStatus["Executing"] = 2] = "Executing";
483
+ MarketingTaskStatus[MarketingTaskStatus["Executed"] = 3] = "Executed";
484
+ MarketingTaskStatus[MarketingTaskStatus["Paused"] = 4] = "Paused";
485
+ MarketingTaskStatus[MarketingTaskStatus["Failed"] = 5] = "Failed";
486
+ MarketingTaskStatus[MarketingTaskStatus["Success"] = 6] = "Success";
487
+ MarketingTaskStatus[MarketingTaskStatus["Stopped"] = 7] = "Stopped";
488
+ MarketingTaskStatus[MarketingTaskStatus["Unknown"] = 99] = "Unknown";
489
+ })(MarketingTaskStatus || (MarketingTaskStatus = {}));
490
+ const MarketingTaskStatusOptions = [
491
+ { value: MarketingTaskStatus.Pending, label: '待审核' },
492
+ { value: MarketingTaskStatus.Executing, label: '待执行' },
493
+ { value: MarketingTaskStatus.Executed, label: '执行中' },
494
+ { value: MarketingTaskStatus.Paused, label: '暂停中' },
495
+ { value: MarketingTaskStatus.Failed, label: '执行失败' },
496
+ { value: MarketingTaskStatus.Success, label: '执行成功' },
497
+ { value: MarketingTaskStatus.Stopped, label: '手动终止' },
498
+ { value: MarketingTaskStatus.Unknown, label: '未知' },
499
+ ];
500
+ var MarketingTaskLogStatus;
501
+ (function (MarketingTaskLogStatus) {
502
+ MarketingTaskLogStatus[MarketingTaskLogStatus["Success"] = 1] = "Success";
503
+ MarketingTaskLogStatus[MarketingTaskLogStatus["Failed"] = 2] = "Failed";
504
+ MarketingTaskLogStatus[MarketingTaskLogStatus["Unknown"] = 3] = "Unknown";
505
+ })(MarketingTaskLogStatus || (MarketingTaskLogStatus = {}));
506
+ const MarketingTaskLogStatusOptions = [
507
+ { value: MarketingTaskLogStatus.Success, label: '成功' },
508
+ { value: MarketingTaskLogStatus.Failed, label: '失败' },
509
+ { value: MarketingTaskLogStatus.Unknown, label: '未知' },
510
+ ];
511
+ var MessageStyle;
512
+ (function (MessageStyle) {
513
+ MessageStyle[MessageStyle["SportYellow"] = 1] = "SportYellow";
514
+ MessageStyle[MessageStyle["DietBlue"] = 2] = "DietBlue";
515
+ MessageStyle[MessageStyle["FormPurple"] = 3] = "FormPurple";
516
+ MessageStyle[MessageStyle["NoticeBlue"] = 4] = "NoticeBlue";
517
+ MessageStyle[MessageStyle["WarnRed"] = 5] = "WarnRed";
518
+ MessageStyle[MessageStyle["MedicationGreen"] = 6] = "MedicationGreen";
519
+ MessageStyle[MessageStyle["ArticleBlue"] = 7] = "ArticleBlue";
520
+ MessageStyle[MessageStyle["Unknown"] = 99] = "Unknown";
521
+ })(MessageStyle || (MessageStyle = {}));
522
+ const MessageStyleOptions = [
523
+ { value: MessageStyle.SportYellow, label: '运动黄', icon: 'https://qiniu.gxxsh.cn/card-yd.png' },
524
+ { value: MessageStyle.DietBlue, label: '饮食蓝', icon: 'https://qiniu.gxxsh.cn/card-ys.png' },
525
+ { value: MessageStyle.FormPurple, label: '量表紫', icon: 'https://qiniu.gxxsh.cn/card-pg.png' },
526
+ { value: MessageStyle.NoticeBlue, label: '通知蓝', icon: 'https://qiniu.gxxsh.cn/card-tz.png' },
527
+ { value: MessageStyle.WarnRed, label: '预警红', icon: 'https://qiniu.gxxsh.cn/card-yj.png' },
528
+ {
529
+ value: MessageStyle.MedicationGreen,
530
+ label: '用药绿',
531
+ icon: 'https://qiniu.gxxsh.cn/card-yy.png',
532
+ },
533
+ { value: MessageStyle.ArticleBlue, label: '文章蓝' },
534
+ { value: MessageStyle.Unknown, label: '未知' },
535
+ ];
536
+ var MessageBizCategory;
537
+ (function (MessageBizCategory) {
538
+ MessageBizCategory[MessageBizCategory["HealthTask"] = 1] = "HealthTask";
539
+ MessageBizCategory[MessageBizCategory["HealthWarn"] = 2] = "HealthWarn";
540
+ MessageBizCategory[MessageBizCategory["HealthDailyLearning"] = 3] = "HealthDailyLearning";
541
+ MessageBizCategory[MessageBizCategory["HealthRecommend"] = 4] = "HealthRecommend";
542
+ MessageBizCategory[MessageBizCategory["HealthTaskExpire"] = 5] = "HealthTaskExpire";
543
+ MessageBizCategory[MessageBizCategory["SystemNotice"] = 6] = "SystemNotice";
544
+ MessageBizCategory[MessageBizCategory["TeamNotice"] = 7] = "TeamNotice";
545
+ MessageBizCategory[MessageBizCategory["Unknown"] = 99] = "Unknown";
546
+ })(MessageBizCategory || (MessageBizCategory = {}));
547
+ const MessageBizCategoryOptions = [
548
+ { value: MessageBizCategory.HealthTask, label: '健康闹钟' },
549
+ { value: MessageBizCategory.HealthWarn, label: '健康预警' },
550
+ { value: MessageBizCategory.HealthDailyLearning, label: '每天学健康' },
551
+ { value: MessageBizCategory.HealthRecommend, label: '健康优品推荐' },
552
+ { value: MessageBizCategory.HealthTaskExpire, label: '任务过期提醒' },
553
+ { value: MessageBizCategory.SystemNotice, label: '系统通知' },
554
+ { value: MessageBizCategory.TeamNotice, label: '团队通知' },
555
+ { value: MessageBizCategory.Unknown, label: '未知' },
556
+ ];
557
+ var MessageActionLabel;
558
+ (function (MessageActionLabel) {
559
+ MessageActionLabel[MessageActionLabel["FILL_IN"] = 1] = "FILL_IN";
560
+ MessageActionLabel[MessageActionLabel["CHECK_IN"] = 2] = "CHECK_IN";
561
+ MessageActionLabel[MessageActionLabel["CHECK_OUT"] = 3] = "CHECK_OUT";
562
+ MessageActionLabel[MessageActionLabel["CHECK_ASSESSMENT"] = 4] = "CHECK_ASSESSMENT";
563
+ MessageActionLabel[MessageActionLabel["Unknown"] = 99] = "Unknown";
564
+ })(MessageActionLabel || (MessageActionLabel = {}));
565
+ const MessageActionLabelOptions = [
566
+ { value: MessageActionLabel.FILL_IN, label: '去采集' },
567
+ { value: MessageActionLabel.CHECK_IN, label: '去打卡' },
568
+ { value: MessageActionLabel.CHECK_OUT, label: '去查看' },
569
+ { value: MessageActionLabel.CHECK_ASSESSMENT, label: '去评估' },
570
+ { value: MessageActionLabel.Unknown, label: '未知' },
571
+ ];
572
+ var ConsumerRightStatus;
573
+ (function (ConsumerRightStatus) {
574
+ ConsumerRightStatus[ConsumerRightStatus["Valid"] = 1] = "Valid";
575
+ ConsumerRightStatus[ConsumerRightStatus["Frozen"] = 2] = "Frozen";
576
+ ConsumerRightStatus[ConsumerRightStatus["Expired"] = 3] = "Expired";
577
+ ConsumerRightStatus[ConsumerRightStatus["Unknown"] = 99] = "Unknown";
578
+ })(ConsumerRightStatus || (ConsumerRightStatus = {}));
579
+ const ConsumerRightStatusOptions = [
580
+ { value: ConsumerRightStatus.Valid, label: '有效' },
581
+ { value: ConsumerRightStatus.Frozen, label: '冻结' },
582
+ { value: ConsumerRightStatus.Expired, label: '过期' },
583
+ { value: ConsumerRightStatus.Unknown, label: '未知' },
584
+ ];
585
+ /**
586
+ * 应用分类
587
+ */
588
+ var AppCategory;
589
+ (function (AppCategory) {
590
+ AppCategory[AppCategory["ActivityNotice"] = 1] = "ActivityNotice";
591
+ AppCategory[AppCategory["HealthScreening"] = 2] = "HealthScreening";
592
+ AppCategory[AppCategory["HealthJournal"] = 3] = "HealthJournal";
593
+ AppCategory[AppCategory["ServiceRecommend"] = 4] = "ServiceRecommend";
594
+ AppCategory[AppCategory["Unknown"] = 99] = "Unknown";
595
+ })(AppCategory || (AppCategory = {}));
596
+ const AppCategoryOptions = [
597
+ { value: AppCategory.ActivityNotice, label: '活动通知' },
598
+ { value: AppCategory.HealthScreening, label: '筛查' },
599
+ { value: AppCategory.HealthJournal, label: '期刊' },
600
+ { value: AppCategory.ServiceRecommend, label: '服务推荐' },
601
+ // { value: AppCategory.Unknown, label: "未知" },
602
+ ];
603
+ /**
604
+ * 发送方式
605
+ */
606
+ var DeliveryMethod;
607
+ (function (DeliveryMethod) {
608
+ DeliveryMethod[DeliveryMethod["SMS"] = 1] = "SMS";
609
+ DeliveryMethod[DeliveryMethod["MiniProgramCard"] = 2] = "MiniProgramCard";
610
+ DeliveryMethod[DeliveryMethod["Unknown"] = 99] = "Unknown";
611
+ })(DeliveryMethod || (DeliveryMethod = {}));
612
+ const DeliveryMethodOptions = [
613
+ { value: DeliveryMethod.SMS, label: '短信' },
614
+ { value: DeliveryMethod.MiniProgramCard, label: '小程序卡片' },
615
+ // { value: DeliveryMethod.Unknown, label: "未知" },
616
+ ];
617
+ var PlanExecMethod;
618
+ (function (PlanExecMethod) {
619
+ PlanExecMethod[PlanExecMethod["FaceToFace"] = 1] = "FaceToFace";
620
+ PlanExecMethod[PlanExecMethod["Phone"] = 2] = "Phone";
621
+ PlanExecMethod[PlanExecMethod["ConsumerClient"] = 3] = "ConsumerClient";
622
+ })(PlanExecMethod || (PlanExecMethod = {}));
623
+ const PlanExecMethodOptions = [
624
+ { value: PlanExecMethod.ConsumerClient, label: '随访卡片' },
625
+ { value: PlanExecMethod.FaceToFace, label: '面对面随访' },
626
+ { value: PlanExecMethod.Phone, label: '电话随访' },
627
+ ];
628
+ const HealthStudyPlanExecMethodOptions = [
629
+ { value: PlanExecMethod.ConsumerClient, label: '访视卡片' },
630
+ { value: PlanExecMethod.FaceToFace, label: '面对面访视' },
631
+ { value: PlanExecMethod.Phone, label: '电话访视' },
632
+ ];
633
+ var PlanExecType;
634
+ (function (PlanExecType) {
635
+ PlanExecType[PlanExecType["Periodic"] = 1] = "Periodic";
636
+ PlanExecType[PlanExecType["Times"] = 2] = "Times";
637
+ })(PlanExecType || (PlanExecType = {}));
638
+ const PlanExecTypeOptions = [
639
+ {
640
+ value: PlanExecType.Periodic,
641
+ label: '周期随访',
642
+ },
643
+ {
644
+ value: PlanExecType.Times,
645
+ label: '按次随访',
646
+ },
647
+ ];
648
+ function getPlanExecLabel(type) {
649
+ return PlanExecTypeOptions.find((it) => it.value === type)?.label;
650
+ }
651
+ var VisitType;
652
+ (function (VisitType) {
653
+ VisitType[VisitType["BASELINE"] = 1] = "BASELINE";
654
+ VisitType[VisitType["CRF"] = 2] = "CRF";
655
+ VisitType[VisitType["UNSCHEDULED"] = 3] = "UNSCHEDULED";
656
+ VisitType[VisitType["END_OF_STUDY"] = 4] = "END_OF_STUDY";
657
+ VisitType[VisitType["TERMINATION_OUTCOME"] = 5] = "TERMINATION_OUTCOME";
658
+ VisitType[VisitType["ADVERSE_EVENT"] = 6] = "ADVERSE_EVENT";
659
+ VisitType[VisitType["FOLLOW_UP"] = 7] = "FOLLOW_UP";
660
+ VisitType[VisitType["Unknown"] = 99] = "Unknown";
661
+ })(VisitType || (VisitType = {}));
662
+ const VisitTypeOptions = [
663
+ {
664
+ value: VisitType.BASELINE,
665
+ label: '基线访视',
666
+ },
667
+ {
668
+ value: VisitType.CRF,
669
+ label: '访视CRF',
670
+ },
671
+ {
672
+ value: VisitType.UNSCHEDULED,
673
+ label: '非计划访视',
674
+ },
675
+ {
676
+ value: VisitType.END_OF_STUDY,
677
+ label: '结局时间表',
678
+ },
679
+ {
680
+ value: VisitType.TERMINATION_OUTCOME,
681
+ label: '随访终止结果',
682
+ },
683
+ {
684
+ value: VisitType.ADVERSE_EVENT,
685
+ label: '不良事件',
686
+ },
687
+ {
688
+ value: VisitType.FOLLOW_UP,
689
+ label: '随访记录',
690
+ },
691
+ {
692
+ value: VisitType.Unknown,
693
+ label: '未知',
694
+ },
695
+ ];
696
+ var MetricExceptionStatus;
697
+ (function (MetricExceptionStatus) {
698
+ MetricExceptionStatus[MetricExceptionStatus["Untreated"] = 1] = "Untreated";
699
+ MetricExceptionStatus[MetricExceptionStatus["Processed"] = 2] = "Processed";
700
+ MetricExceptionStatus[MetricExceptionStatus["Ignored"] = 3] = "Ignored";
701
+ MetricExceptionStatus[MetricExceptionStatus["Expired"] = 4] = "Expired";
702
+ MetricExceptionStatus[MetricExceptionStatus["ExecutionFailed"] = 5] = "ExecutionFailed";
703
+ MetricExceptionStatus[MetricExceptionStatus["Unknown"] = 99] = "Unknown";
704
+ })(MetricExceptionStatus || (MetricExceptionStatus = {}));
705
+ const MetricExceptionStatusOptions = [
706
+ { value: MetricExceptionStatus.Untreated, label: '待处理' },
707
+ { value: MetricExceptionStatus.Processed, label: '已处理' },
708
+ { value: MetricExceptionStatus.Ignored, label: '已忽略' },
709
+ { value: MetricExceptionStatus.Expired, label: '已过期' },
710
+ { value: MetricExceptionStatus.ExecutionFailed, label: '执行失败' },
711
+ { value: MetricExceptionStatus.Unknown, label: '未知' },
712
+ ];
713
+ var MetricExceptionLevel;
714
+ (function (MetricExceptionLevel) {
715
+ MetricExceptionLevel[MetricExceptionLevel["High"] = 1] = "High";
716
+ MetricExceptionLevel[MetricExceptionLevel["Middle"] = 2] = "Middle";
717
+ MetricExceptionLevel[MetricExceptionLevel["Low"] = 3] = "Low";
718
+ MetricExceptionLevel[MetricExceptionLevel["Unknown"] = 99] = "Unknown";
719
+ })(MetricExceptionLevel || (MetricExceptionLevel = {}));
720
+ const MetricExceptionLevelOptions = [
721
+ { value: MetricExceptionLevel.High, label: '高' },
722
+ { value: MetricExceptionLevel.Middle, label: '中' },
723
+ { value: MetricExceptionLevel.Low, label: '低' },
724
+ { value: MetricExceptionLevel.Unknown, label: '未知' },
725
+ ];
726
+ var GroupJoinType;
727
+ (function (GroupJoinType) {
728
+ GroupJoinType[GroupJoinType["Random"] = 1] = "Random";
729
+ GroupJoinType[GroupJoinType["Manual"] = 3] = "Manual";
730
+ GroupJoinType[GroupJoinType["Unknown"] = 99] = "Unknown";
731
+ })(GroupJoinType || (GroupJoinType = {}));
732
+ const GroupJoinTypeOptions = [
733
+ { value: GroupJoinType.Random, label: '随机入组' },
734
+ { value: GroupJoinType.Manual, label: '手动指定入组' },
735
+ ];
736
+ var FileType;
737
+ (function (FileType) {
738
+ FileType[FileType["TEXT"] = 1] = "TEXT";
739
+ FileType[FileType["DOCUMENT"] = 2] = "DOCUMENT";
740
+ FileType[FileType["PDF"] = 3] = "PDF";
741
+ FileType[FileType["SPREADSHEET"] = 4] = "SPREADSHEET";
742
+ FileType[FileType["IMAGE"] = 5] = "IMAGE";
743
+ FileType[FileType["AUDIO"] = 6] = "AUDIO";
744
+ FileType[FileType["VIDEO"] = 7] = "VIDEO";
745
+ FileType[FileType["ARCHIVE"] = 8] = "ARCHIVE";
746
+ FileType[FileType["UNKNOWN"] = 99] = "UNKNOWN";
747
+ })(FileType || (FileType = {}));
748
+ const FileTypeOptions = [
749
+ { value: FileType.TEXT, label: '文本文件' },
750
+ { value: FileType.DOCUMENT, label: '文档' },
751
+ { value: FileType.PDF, label: '文档' },
752
+ { value: FileType.SPREADSHEET, label: '电子表格' },
753
+ { value: FileType.IMAGE, label: '图像文件' },
754
+ { value: FileType.AUDIO, label: '音频文件' },
755
+ { value: FileType.VIDEO, label: '视频文件' },
756
+ { value: FileType.ARCHIVE, label: '压缩文件' },
757
+ { value: FileType.UNKNOWN, label: '未知文件类型' },
758
+ ];
759
+ var HealthRecordType;
760
+ (function (HealthRecordType) {
761
+ HealthRecordType[HealthRecordType["PhysicalExamReport"] = 1] = "PhysicalExamReport";
762
+ HealthRecordType[HealthRecordType["OutpatientRecord"] = 2] = "OutpatientRecord";
763
+ HealthRecordType[HealthRecordType["InpatientRecord"] = 3] = "InpatientRecord";
764
+ HealthRecordType[HealthRecordType["LabReport"] = 4] = "LabReport";
765
+ HealthRecordType[HealthRecordType["Unknown"] = 99] = "Unknown";
766
+ })(HealthRecordType || (HealthRecordType = {}));
767
+ const HealthRecordTypeOptions = [
768
+ { value: HealthRecordType.PhysicalExamReport, label: '体检报告' },
769
+ { value: HealthRecordType.OutpatientRecord, label: '门诊病历' },
770
+ { value: HealthRecordType.InpatientRecord, label: '住院病历' },
771
+ { value: HealthRecordType.LabReport, label: '化验检验报告' },
772
+ { value: HealthRecordType.Unknown, label: '未知' },
773
+ ];
774
+ var MessageActionStatus;
775
+ (function (MessageActionStatus) {
776
+ MessageActionStatus[MessageActionStatus["Undone"] = 1] = "Undone";
777
+ MessageActionStatus[MessageActionStatus["Doing"] = 2] = "Doing";
778
+ MessageActionStatus[MessageActionStatus["Done"] = 3] = "Done";
779
+ MessageActionStatus[MessageActionStatus["Unknown"] = 99] = "Unknown";
780
+ })(MessageActionStatus || (MessageActionStatus = {}));
781
+ var MessageStatus;
782
+ (function (MessageStatus) {
783
+ MessageStatus[MessageStatus["Unsent"] = 1] = "Unsent";
784
+ MessageStatus[MessageStatus["Sending"] = 2] = "Sending";
785
+ MessageStatus[MessageStatus["Sent"] = 3] = "Sent";
786
+ MessageStatus[MessageStatus["Failed"] = 4] = "Failed";
787
+ MessageStatus[MessageStatus["Unread"] = 5] = "Unread";
788
+ MessageStatus[MessageStatus["Read"] = 6] = "Read";
789
+ MessageStatus[MessageStatus["Unknown"] = 99] = "Unknown";
790
+ })(MessageStatus || (MessageStatus = {}));
791
+ var DeviceType;
792
+ (function (DeviceType) {
793
+ DeviceType[DeviceType["HuaWeiWatch"] = 1] = "HuaWeiWatch";
794
+ DeviceType[DeviceType["PulseOximetry"] = 2] = "PulseOximetry";
795
+ DeviceType[DeviceType["Unknown"] = 99] = "Unknown";
796
+ })(DeviceType || (DeviceType = {}));
797
+ const DeviceTypeOptions = [
798
+ { value: DeviceType.HuaWeiWatch, label: '华为手表' },
799
+ { value: DeviceType.PulseOximetry, label: '指脉仪' },
800
+ { value: DeviceType.Unknown, label: '未知' },
801
+ ];
802
+ var DeviceStatus;
803
+ (function (DeviceStatus) {
804
+ DeviceStatus[DeviceStatus["Valid"] = 1] = "Valid";
805
+ DeviceStatus[DeviceStatus["Invalid"] = 2] = "Invalid";
806
+ DeviceStatus[DeviceStatus["Unknown"] = 99] = "Unknown";
807
+ })(DeviceStatus || (DeviceStatus = {}));
808
+ const DeviceStatusOptions = [
809
+ { value: DeviceStatus.Valid, label: '有效' },
810
+ { value: DeviceStatus.Invalid, label: '无效' },
811
+ { value: DeviceStatus.Unknown, label: '未知' },
812
+ ];
813
+ var ConsumerDeviceStatus;
814
+ (function (ConsumerDeviceStatus) {
815
+ ConsumerDeviceStatus[ConsumerDeviceStatus["Binding"] = 1] = "Binding";
816
+ ConsumerDeviceStatus[ConsumerDeviceStatus["Bound"] = 2] = "Bound";
817
+ ConsumerDeviceStatus[ConsumerDeviceStatus["Unbound"] = 3] = "Unbound";
818
+ ConsumerDeviceStatus[ConsumerDeviceStatus["BoundFailed"] = 4] = "BoundFailed";
819
+ ConsumerDeviceStatus[ConsumerDeviceStatus["Unknown"] = 99] = "Unknown";
820
+ })(ConsumerDeviceStatus || (ConsumerDeviceStatus = {}));
821
+ const ConsumerDeviceStatusOptions = [
822
+ { value: ConsumerDeviceStatus.Binding, label: '绑定中' },
823
+ { value: ConsumerDeviceStatus.Bound, label: '绑定成功' },
824
+ { value: ConsumerDeviceStatus.Unbound, label: '已解绑' },
825
+ { value: ConsumerDeviceStatus.BoundFailed, label: '绑定失败' },
826
+ { value: ConsumerDeviceStatus.Unknown, label: '未知' },
827
+ ];
828
+ /**
829
+ * 课题研究类型
830
+ */
831
+ var StudyType;
832
+ (function (StudyType) {
833
+ StudyType[StudyType["SingleMode"] = 1] = "SingleMode";
834
+ StudyType[StudyType["MultiMode"] = 2] = "MultiMode";
835
+ StudyType[StudyType["Unknown"] = 99] = "Unknown";
836
+ })(StudyType || (StudyType = {}));
837
+
838
+ class _ShcpApiSdk {
839
+ init(config) {
840
+ this.config = config;
841
+ }
842
+ request(options) {
843
+ if (!this.config) {
844
+ throw new Error('ShcpApiSdk not initialized');
845
+ }
846
+ const { request } = this.config;
847
+ return request(options);
848
+ }
849
+ getApiSuffix() {
850
+ if (!this.config) {
851
+ throw new Error('ShcpApiSdk not initialized');
852
+ }
853
+ const { apiSuffix } = this.config;
854
+ if (typeof apiSuffix === 'function') {
855
+ return apiSuffix();
856
+ }
857
+ return apiSuffix;
858
+ }
859
+ }
860
+ const ShcpApiSdk = new _ShcpApiSdk();
861
+
862
+ class AppClientApi {
863
+ // 查询单个(按ID)
864
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/detail
865
+ static getDetail(data) {
866
+ return ShcpApiSdk.request({
867
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/detail`,
868
+ method: 'post',
869
+ data,
870
+ });
871
+ }
872
+ // 查询单个(按条件)
873
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/get
874
+ static get(data) {
875
+ return ShcpApiSdk.request({
876
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/get`,
877
+ method: 'post',
878
+ data,
879
+ });
880
+ }
881
+ // 查询列表
882
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/list
883
+ static getList(data) {
884
+ return ShcpApiSdk.request({
885
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/list`,
886
+ method: 'post',
887
+ data,
888
+ });
889
+ }
890
+ // 查询列表(capp彩蛋使用)
891
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/specialList
892
+ static getSpecialList(data) {
893
+ return ShcpApiSdk.request({
894
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/specialList`,
895
+ method: 'post',
896
+ data,
897
+ });
898
+ }
899
+ // 复制
900
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/copy
901
+ static copy(data) {
902
+ return ShcpApiSdk.request({
903
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/copy`,
904
+ method: 'post',
905
+ data,
906
+ });
907
+ }
908
+ // 更新复制配置
909
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/updateCopyConfig
910
+ static updateCopyConfig(data) {
911
+ return ShcpApiSdk.request({
912
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/updateCopyConfig`,
913
+ method: 'post',
914
+ data,
915
+ });
916
+ }
917
+ }
918
+
919
+ class AppClientPageConfigApi {
920
+ // 查询列表
921
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/pageConfig/list
922
+ static getList(data) {
923
+ return ShcpApiSdk.request({
924
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/pageConfig/list`,
925
+ method: 'post',
926
+ data,
927
+ });
928
+ }
929
+ }
930
+
931
+ class AppClientSettingApi {
932
+ // 查询单个
933
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/setting/get
934
+ static get(data) {
935
+ return ShcpApiSdk.request({
936
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/setting/get`,
937
+ method: 'post',
938
+ data,
939
+ });
940
+ }
941
+ }
942
+
943
+ class CommonDictApi {
944
+ // 查询单个详情
945
+ // URL: /api/blade-system/dict/detail
946
+ static getDetail(data) {
947
+ return ShcpApiSdk.request({
948
+ url: '/api/blade-system/dict/detail',
949
+ method: 'get',
950
+ params: data,
951
+ });
952
+ }
953
+ /**
954
+ * 列表
955
+ * URL: /api/blade-system/dict/list
956
+ */
957
+ static getList(data) {
958
+ return ShcpApiSdk.request({
959
+ url: '/api/blade-system/dict/list',
960
+ method: 'get',
961
+ params: data,
962
+ });
963
+ }
964
+ /**
965
+ * 获取字典树形结构
966
+ * URL: /api/blade-system/dict/tree
967
+ */
968
+ static getTree() {
969
+ return ShcpApiSdk.request({
970
+ url: '/api/blade-system/dict/tree',
971
+ method: 'get',
972
+ });
973
+ }
974
+ /**
975
+ * 获取字典树形结构
976
+ * URL: /api/blade-system/dict/parent-tree
977
+ */
978
+ static getParentTree() {
979
+ return ShcpApiSdk.request({
980
+ url: '/api/blade-system/dict/parent-tree',
981
+ method: 'get',
982
+ });
983
+ }
984
+ /**
985
+ * 获取字典
986
+ * URL: /api/blade-system/dict/dictionary
987
+ */
988
+ static getDictionary(code) {
989
+ return ShcpApiSdk.request({
990
+ url: '/api/blade-system/dict/dictionary',
991
+ method: 'get',
992
+ params: { code },
993
+ });
994
+ }
995
+ /**
996
+ * 获取字典树
997
+ * URL: /api/blade-system/dict/dictionary-tree
998
+ */
999
+ static getDictionaryTree(code) {
1000
+ return ShcpApiSdk.request({
1001
+ url: '/api/blade-system/dict/dictionary-tree',
1002
+ method: 'get',
1003
+ params: { code },
1004
+ });
1005
+ }
1006
+ /**
1007
+ * 字典键值列表
1008
+ * URL: /api/blade-system/dict/select
1009
+ */
1010
+ static getSelect() {
1011
+ return ShcpApiSdk.request({
1012
+ url: '/api/blade-system/dict/select',
1013
+ method: 'get',
1014
+ });
1015
+ }
1016
+ /**
1017
+ * 字典全列表
1018
+ * URL: /api/blade-system/dict/select-all
1019
+ */
1020
+ static getSelectAll() {
1021
+ return ShcpApiSdk.request({
1022
+ url: '/api/blade-system/dict/select-all',
1023
+ method: 'get',
1024
+ });
1025
+ }
1026
+ }
1027
+
1028
+ class CommonRightApi {
1029
+ // 获取权益列表
1030
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/right/list
1031
+ static getRightList(data) {
1032
+ return ShcpApiSdk.request({
1033
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/right/list`,
1034
+ method: 'post',
1035
+ data,
1036
+ });
1037
+ }
1038
+ // 服务流程分页查询
1039
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/page
1040
+ static flowPage(data) {
1041
+ data.detailMode = true;
1042
+ return ShcpApiSdk.request({
1043
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/page`,
1044
+ method: 'post',
1045
+ data,
1046
+ params: {
1047
+ current: data.current,
1048
+ size: data.size,
1049
+ },
1050
+ });
1051
+ }
1052
+ // 服务任务分页查询
1053
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/page
1054
+ static taskPage(data) {
1055
+ data.detailMode = true;
1056
+ return ShcpApiSdk.request({
1057
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/page`,
1058
+ method: 'post',
1059
+ data,
1060
+ params: {
1061
+ current: data.current,
1062
+ size: data.size,
1063
+ },
1064
+ });
1065
+ }
1066
+ //服务流程.列表查询
1067
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/list
1068
+ static listServiceFlow(query) {
1069
+ return ShcpApiSdk.request({
1070
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/list`,
1071
+ method: 'post',
1072
+ data: query,
1073
+ });
1074
+ }
1075
+ // 服务流程配置详情
1076
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/config/detail
1077
+ static detailServiceFlowConfig(flowId) {
1078
+ return ShcpApiSdk.request({
1079
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/config/detail`,
1080
+ method: 'post',
1081
+ params: { flowId },
1082
+ });
1083
+ }
1084
+ // 服务任务用户分页查询
1085
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/user/page
1086
+ static pageServiceTaskUser(data) {
1087
+ return ShcpApiSdk.request({
1088
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/user/page`,
1089
+ method: 'post',
1090
+ data,
1091
+ params: {
1092
+ current: data.current,
1093
+ size: data.size,
1094
+ },
1095
+ });
1096
+ }
1097
+ /**
1098
+ * 任务维度
1099
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/page
1100
+ */
1101
+ static metricExceptionPage(data) {
1102
+ data.detailMode = true;
1103
+ return ShcpApiSdk.request({
1104
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/page`,
1105
+ method: 'post',
1106
+ data,
1107
+ params: {
1108
+ current: data.current,
1109
+ size: data.size,
1110
+ },
1111
+ });
1112
+ }
1113
+ /**
1114
+ * 用户维度
1115
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/user/page
1116
+ */
1117
+ static metricExceptionUserPage(data) {
1118
+ data.detailMode = true;
1119
+ return ShcpApiSdk.request({
1120
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/user/page`,
1121
+ method: 'post',
1122
+ data,
1123
+ params: {
1124
+ current: data.current,
1125
+ size: data.size,
1126
+ },
1127
+ });
1128
+ }
1129
+ /**
1130
+ * 任务维度
1131
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/update
1132
+ */
1133
+ static updateMetricException(data) {
1134
+ return ShcpApiSdk.request({
1135
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/update`,
1136
+ method: 'post',
1137
+ data,
1138
+ });
1139
+ }
1140
+ // 通用任务启动
1141
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/${serviceTypeEnName}/start
1142
+ static commonTaskStart(serviceTypeEnName, data) {
1143
+ return ShcpApiSdk.request({
1144
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/${serviceTypeEnName}/start`,
1145
+ method: 'post',
1146
+ data,
1147
+ });
1148
+ }
1149
+ /**
1150
+ * 服务流程.单个查询(按ID)
1151
+ * URL: /api/shcp-healthcare/serviceFlow/detail
1152
+ */
1153
+ static detailServiceFlow(id) {
1154
+ return ShcpApiSdk.request({
1155
+ url: '/api/shcp-healthcare/serviceFlow/detail',
1156
+ method: 'post',
1157
+ params: { id },
1158
+ });
1159
+ }
1160
+ /**
1161
+ * 服务流程配置.列表查询
1162
+ * URL: /api/shcp-healthcare/serviceFlow/config/list
1163
+ */
1164
+ static listServiceFlowConfig(data) {
1165
+ return ShcpApiSdk.request({
1166
+ url: '/api/shcp-healthcare/serviceFlow/config/list',
1167
+ method: 'post',
1168
+ data,
1169
+ });
1170
+ }
1171
+ /**
1172
+ * 服务任务.单个查询(按ID)
1173
+ * URL: /api/shcp-healthcare/serviceTask/detail
1174
+ */
1175
+ static detailServiceTask(id) {
1176
+ return ShcpApiSdk.request({
1177
+ url: '/api/shcp-healthcare/serviceTask/detail',
1178
+ method: 'post',
1179
+ params: { id },
1180
+ });
1181
+ }
1182
+ /**
1183
+ * 服务任务.单个查询(按条件)
1184
+ * URL: /api/shcp-healthcare/serviceTask/get
1185
+ */
1186
+ static getServiceTask(data) {
1187
+ return ShcpApiSdk.request({
1188
+ url: '/api/shcp-healthcare/serviceTask/get',
1189
+ method: 'post',
1190
+ data,
1191
+ });
1192
+ }
1193
+ /**
1194
+ * 服务任务.列表查询
1195
+ * URL: /api/shcp-healthcare/serviceTask/list
1196
+ */
1197
+ static listServiceTask(data) {
1198
+ return ShcpApiSdk.request({
1199
+ url: '/api/shcp-healthcare/serviceTask/list',
1200
+ method: 'post',
1201
+ data,
1202
+ });
1203
+ }
1204
+ /**
1205
+ * 服务任务.删除
1206
+ * URL: /api/shcp-healthcare/serviceTask/delete
1207
+ */
1208
+ static deleteServiceTask(data) {
1209
+ return ShcpApiSdk.request({
1210
+ url: '/api/shcp-healthcare/serviceTask/delete',
1211
+ method: 'post',
1212
+ data,
1213
+ });
1214
+ }
1215
+ }
1216
+
1217
+ class ConsumerApi {
1218
+ // 获取医生列表
1219
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/listDoctor
1220
+ static getDoctorList(data) {
1221
+ return ShcpApiSdk.request({
1222
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/listDoctor`,
1223
+ method: 'post',
1224
+ data,
1225
+ });
1226
+ }
1227
+ // 获取成员分页
1228
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/page
1229
+ static getMemberPage(data) {
1230
+ return ShcpApiSdk.request({
1231
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/page`,
1232
+ method: 'post',
1233
+ data,
1234
+ params: { current: data.current, size: data.size },
1235
+ });
1236
+ }
1237
+ // 批量新增
1238
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/create
1239
+ static batchCreateMember(data) {
1240
+ return ShcpApiSdk.request({
1241
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/create`,
1242
+ method: 'post',
1243
+ data,
1244
+ });
1245
+ }
1246
+ // 列表查询成员
1247
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/list
1248
+ static listMember(data) {
1249
+ return ShcpApiSdk.request({
1250
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/list`,
1251
+ method: 'post',
1252
+ data,
1253
+ });
1254
+ }
1255
+ // 更新成员
1256
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/update
1257
+ static updateMember(data) {
1258
+ return ShcpApiSdk.request({
1259
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/update`,
1260
+ method: 'post',
1261
+ data,
1262
+ });
1263
+ }
1264
+ // 获取组详情
1265
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/detail
1266
+ static getGroupDetail(id) {
1267
+ return ShcpApiSdk.request({
1268
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/detail`,
1269
+ method: 'post',
1270
+ data: { id },
1271
+ });
1272
+ }
1273
+ // 获取组分页
1274
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/page
1275
+ static getGroupPage(data) {
1276
+ return ShcpApiSdk.request({
1277
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/page`,
1278
+ method: 'post',
1279
+ data: data,
1280
+ params: { current: data.current, size: data.size },
1281
+ });
1282
+ }
1283
+ // 根据ID列表查询
1284
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/listByIds
1285
+ static getListByIds(data) {
1286
+ return ShcpApiSdk.request({
1287
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/listByIds`,
1288
+ method: 'post',
1289
+ data,
1290
+ });
1291
+ }
1292
+ // 获取树形结构
1293
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/tree
1294
+ static getTree(data) {
1295
+ return ShcpApiSdk.request({
1296
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/tree`,
1297
+ method: 'get',
1298
+ params: { id: data.rootId },
1299
+ });
1300
+ }
1301
+ // 更新组
1302
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/update
1303
+ static updateGroup(data) {
1304
+ return ShcpApiSdk.request({
1305
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/update`,
1306
+ method: 'post',
1307
+ data,
1308
+ });
1309
+ }
1310
+ // 创建组
1311
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/create
1312
+ static createGroup(data) {
1313
+ return ShcpApiSdk.request({
1314
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/create`,
1315
+ method: 'post',
1316
+ data,
1317
+ });
1318
+ }
1319
+ // 删除组
1320
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/delete
1321
+ static deleteGroup(data) {
1322
+ return ShcpApiSdk.request({
1323
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/delete`,
1324
+ method: 'post',
1325
+ data,
1326
+ });
1327
+ }
1328
+ // 更新消费者
1329
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/update
1330
+ static update(data) {
1331
+ return ShcpApiSdk.request({
1332
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/update`,
1333
+ method: 'post',
1334
+ data,
1335
+ });
1336
+ }
1337
+ // 创建消费者
1338
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/create
1339
+ static create(data) {
1340
+ return ShcpApiSdk.request({
1341
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/create`,
1342
+ method: 'post',
1343
+ data,
1344
+ custom: {
1345
+ verify: (data) => {
1346
+ return data.code === 200 || data.code === 201;
1347
+ },
1348
+ },
1349
+ });
1350
+ }
1351
+ // 查询消费者列表
1352
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/list
1353
+ static list(data) {
1354
+ return ShcpApiSdk.request({
1355
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/list`,
1356
+ method: 'post',
1357
+ data,
1358
+ });
1359
+ }
1360
+ // 查询单个消费者
1361
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/get
1362
+ static get(data) {
1363
+ return ShcpApiSdk.request({
1364
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/get`,
1365
+ method: 'post',
1366
+ data,
1367
+ });
1368
+ }
1369
+ // 查询消费用户权益
1370
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/detail
1371
+ static getRightDetail(id) {
1372
+ return ShcpApiSdk.request({
1373
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/detail`,
1374
+ method: 'post',
1375
+ params: { id },
1376
+ });
1377
+ }
1378
+ // 查询消费用户权益
1379
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/get
1380
+ static getRight(data) {
1381
+ return ShcpApiSdk.request({
1382
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/get`,
1383
+ method: 'post',
1384
+ data,
1385
+ });
1386
+ }
1387
+ // 查询消费用户权益
1388
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/list
1389
+ static getRightList(data) {
1390
+ return ShcpApiSdk.request({
1391
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/list`,
1392
+ method: 'post',
1393
+ data,
1394
+ });
1395
+ }
1396
+ // 查询消费用户权益
1397
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/page
1398
+ static getRightPage(data) {
1399
+ return ShcpApiSdk.request({
1400
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/page`,
1401
+ method: 'post',
1402
+ data,
1403
+ params: {
1404
+ current: data.current,
1405
+ size: data.size,
1406
+ },
1407
+ });
1408
+ }
1409
+ // 创建消费用户权益
1410
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/create
1411
+ static createRight(data) {
1412
+ return ShcpApiSdk.request({
1413
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/create`,
1414
+ method: 'post',
1415
+ data,
1416
+ });
1417
+ }
1418
+ // 批量创建消费用户权益
1419
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/batchCreate
1420
+ static batchCreateRight(data) {
1421
+ return ShcpApiSdk.request({
1422
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/batchCreate`,
1423
+ method: 'post',
1424
+ data,
1425
+ });
1426
+ }
1427
+ // 删除消费用户权益
1428
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/delete
1429
+ static deleteRight(data) {
1430
+ return ShcpApiSdk.request({
1431
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/delete`,
1432
+ method: 'post',
1433
+ data,
1434
+ });
1435
+ }
1436
+ }
1437
+ const crudConsumerGroupApi = {
1438
+ edit: ConsumerApi.updateGroup,
1439
+ add: ConsumerApi.createGroup,
1440
+ list: ConsumerApi.getTree,
1441
+ del: ConsumerApi.deleteGroup,
1442
+ };
1443
+ const crudConsumerApi = {
1444
+ edit: ConsumerApi.update,
1445
+ add: ConsumerApi.create,
1446
+ };
1447
+
1448
+ class ConsumerBindApi {
1449
+ // 更改
1450
+ // URL: /api/shcp-consumer/consumerBind/update
1451
+ static update(data) {
1452
+ return ShcpApiSdk.request({
1453
+ url: '/api/shcp-consumer/consumerBind/update',
1454
+ method: 'post',
1455
+ data,
1456
+ });
1457
+ }
1458
+ // 新增
1459
+ // URL: /api/shcp-consumer/consumerBind/bind
1460
+ static create(data) {
1461
+ return ShcpApiSdk.request({
1462
+ url: '/api/shcp-consumer/consumerBind/bind',
1463
+ method: 'post',
1464
+ data,
1465
+ });
1466
+ }
1467
+ // 删除
1468
+ // URL: /api/shcp-consumer/consumerBind/delete
1469
+ static delete(data) {
1470
+ return ShcpApiSdk.request({
1471
+ url: '/api/shcp-consumer/consumerBind/delete',
1472
+ method: 'post',
1473
+ data,
1474
+ });
1475
+ }
1476
+ // 设备用户绑定的消费用户列表
1477
+ // URL: /api/shcp-consumer/consumerBind/list
1478
+ static getList(params) {
1479
+ return ShcpApiSdk.request({
1480
+ url: '/api/shcp-consumer/consumerBind/list',
1481
+ method: 'get',
1482
+ params,
1483
+ });
1484
+ }
1485
+ // 发送绑定用户验证码
1486
+ // URL: /api/shcp-consumer/consumerBind/sendSMSCode
1487
+ static sendSMSCode(params) {
1488
+ return ShcpApiSdk.request({
1489
+ url: '/api/shcp-consumer/consumerBind/sendSMSCode',
1490
+ method: 'get',
1491
+ params,
1492
+ });
1493
+ }
1494
+ // 验证码校验
1495
+ // URL: /api/shcp-consumer/consumerBind/verifySMSCode
1496
+ static verifySMSCode(params) {
1497
+ return ShcpApiSdk.request({
1498
+ url: '/api/shcp-consumer/consumerBind/verifySMSCode',
1499
+ method: 'get',
1500
+ params,
1501
+ });
1502
+ }
1503
+ // 激活
1504
+ // URL: /api/shcp-consumer/consumerBind/active
1505
+ static active(data) {
1506
+ return ShcpApiSdk.request({
1507
+ url: '/api/shcp-consumer/consumerBind/active',
1508
+ method: 'post',
1509
+ data,
1510
+ });
1511
+ }
1512
+ // 单个查询
1513
+ // URL: /api/shcp-consumer/consumerBind/get
1514
+ static get(params) {
1515
+ return ShcpApiSdk.request({
1516
+ url: '/api/shcp-consumer/consumerBind/get',
1517
+ method: 'get',
1518
+ params,
1519
+ });
1520
+ }
1521
+ }
1522
+
1523
+ class ConsumerDeviceApi {
1524
+ /**
1525
+ * 消费用户与租户设备建立绑定关系
1526
+ * URL: /api/shcp-consumer/consumerDevice/bind
1527
+ */
1528
+ static bind(data) {
1529
+ return ShcpApiSdk.request({
1530
+ url: '/api/shcp-consumer/consumerDevice/bind',
1531
+ method: 'post',
1532
+ data,
1533
+ });
1534
+ }
1535
+ /**
1536
+ * 解除消费用户与租户设备绑定关系
1537
+ * URL: /api/shcp-consumer/consumerDevice/unbound
1538
+ */
1539
+ static unbound(data) {
1540
+ return ShcpApiSdk.request({
1541
+ url: '/api/shcp-consumer/consumerDevice/unbound',
1542
+ method: 'post',
1543
+ data,
1544
+ });
1545
+ }
1546
+ /**
1547
+ * 查询消费用户绑定的设备列表
1548
+ * URL: /api/shcp-consumer/consumerDevice/list
1549
+ */
1550
+ static list(data) {
1551
+ return ShcpApiSdk.request({
1552
+ url: '/api/shcp-consumer/consumerDevice/list',
1553
+ method: 'post',
1554
+ data,
1555
+ });
1556
+ }
1557
+ /**
1558
+ * 查询消费用户绑定的设备列表
1559
+ * URL: /api/shcp-consumer/consumerDevice/get
1560
+ */
1561
+ static get(data) {
1562
+ return ShcpApiSdk.request({
1563
+ url: '/api/shcp-consumer/consumerDevice/get',
1564
+ method: 'post',
1565
+ data,
1566
+ });
1567
+ }
1568
+ }
1569
+
1570
+ class ConsumerFavoriteApi {
1571
+ // 消费用户收藏列表
1572
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/page
1573
+ static getPage(data) {
1574
+ return ShcpApiSdk.request({
1575
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/page`,
1576
+ method: 'get',
1577
+ data,
1578
+ params: {
1579
+ current: data.current,
1580
+ size: data.size,
1581
+ },
1582
+ });
1583
+ }
1584
+ // 创建消费用户收藏
1585
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/create
1586
+ static create(data) {
1587
+ return ShcpApiSdk.request({
1588
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/create`,
1589
+ method: 'post',
1590
+ data,
1591
+ });
1592
+ }
1593
+ // 检查是否收藏
1594
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/checkFavorite
1595
+ static checkFavorite(params) {
1596
+ return ShcpApiSdk.request({
1597
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/checkFavorite`,
1598
+ method: 'get',
1599
+ params,
1600
+ });
1601
+ }
1602
+ // 取消收藏
1603
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/delete
1604
+ static delete(data) {
1605
+ return ShcpApiSdk.request({
1606
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/delete`,
1607
+ method: 'post',
1608
+ data,
1609
+ });
1610
+ }
1611
+ }
1612
+
1613
+ class DeviceApi {
1614
+ /**
1615
+ * 查询租户下所有设备
1616
+ * URL: /api/blade-system/device/list
1617
+ */
1618
+ static list(data) {
1619
+ return ShcpApiSdk.request({
1620
+ url: '/api/blade-system/device/list',
1621
+ method: 'post',
1622
+ data,
1623
+ });
1624
+ }
1625
+ /**
1626
+ * 查询租户下单个设备信息
1627
+ * URL: /api/blade-system/device/get
1628
+ */
1629
+ static get(data) {
1630
+ return ShcpApiSdk.request({
1631
+ url: '/api/blade-system/device/get',
1632
+ method: 'post',
1633
+ data,
1634
+ });
1635
+ }
1636
+ /**
1637
+ * 复制租户设备
1638
+ * URL: /api/blade-system/device/copy
1639
+ */
1640
+ static copy(data) {
1641
+ return ShcpApiSdk.request({
1642
+ url: '/api/blade-system/device/copy',
1643
+ method: 'post',
1644
+ data,
1645
+ });
1646
+ }
1647
+ }
1648
+
1649
+ class DeviceUserApi {
1650
+ /**
1651
+ * 查询设备用户详情
1652
+ * URL: /api/shcp-consumer/consumerDeviceUser/detail
1653
+ */
1654
+ static detail(data) {
1655
+ return ShcpApiSdk.request({
1656
+ url: '/api/shcp-consumer/consumerDeviceUser/detail',
1657
+ method: 'post',
1658
+ data,
1659
+ });
1660
+ }
1661
+ /**
1662
+ * 更改设备用户
1663
+ * URL: /api/shcp-consumer/consumerDeviceUser/update
1664
+ */
1665
+ static update(data) {
1666
+ return ShcpApiSdk.request({
1667
+ url: '/api/shcp-consumer/consumerDeviceUser/update',
1668
+ method: 'post',
1669
+ data,
1670
+ });
1671
+ }
1672
+ /**
1673
+ * 新增设备用户
1674
+ * URL: /api/shcp-consumer/consumerDeviceUser/create
1675
+ */
1676
+ static create(data) {
1677
+ return ShcpApiSdk.request({
1678
+ url: '/api/shcp-consumer/consumerDeviceUser/create',
1679
+ method: 'post',
1680
+ data,
1681
+ });
1682
+ }
1683
+ /**
1684
+ * 设备登录接口,微信小程序登录
1685
+ * URL: /api/shcp-consumer/consumerDeviceUser/appletLogin
1686
+ */
1687
+ static appletLogin(data) {
1688
+ return ShcpApiSdk.request({
1689
+ url: '/api/shcp-consumer/consumerDeviceUser/appletLogin',
1690
+ method: 'post',
1691
+ data,
1692
+ });
1693
+ }
1694
+ /**
1695
+ * 解密手机号
1696
+ * URL: /api/shcp-consumer/consumerDeviceUser/convertMobile
1697
+ */
1698
+ static convertMobile(data) {
1699
+ return ShcpApiSdk.request({
1700
+ url: '/api/shcp-consumer/consumerDeviceUser/convertMobile',
1701
+ method: 'post',
1702
+ data,
1703
+ });
1704
+ }
1705
+ }
1706
+
1707
+ // 服务流程.发起
1708
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/start
1709
+ function start$1(data) {
1710
+ return ShcpApiSdk.request({
1711
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/start`,
1712
+ method: 'post',
1713
+ data,
1714
+ });
1715
+ }
1716
+ // 服务流程.领取
1717
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/claim
1718
+ function claim$1(data) {
1719
+ return ShcpApiSdk.request({
1720
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/claim`,
1721
+ method: 'post',
1722
+ data,
1723
+ });
1724
+ }
1725
+ // 服务流程.终止
1726
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/terminate
1727
+ function terminate$1(data) {
1728
+ return ShcpApiSdk.request({
1729
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/terminate`,
1730
+ method: 'post',
1731
+ data,
1732
+ });
1733
+ }
1734
+ // 服务流程.标记用户
1735
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerMark
1736
+ function consumerMark$1(data) {
1737
+ return ShcpApiSdk.request({
1738
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerMark`,
1739
+ method: 'post',
1740
+ data,
1741
+ });
1742
+ }
1743
+ // 服务流程.取消标记用户
1744
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerUnmark
1745
+ function deleteConsumerMark(data) {
1746
+ return ShcpApiSdk.request({
1747
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerUnmark`,
1748
+ method: 'post',
1749
+ data,
1750
+ });
1751
+ }
1752
+ // 服务流程.联系用户
1753
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerContact
1754
+ function consumerContact$1(data) {
1755
+ return ShcpApiSdk.request({
1756
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerContact`,
1757
+ method: 'post',
1758
+ data,
1759
+ });
1760
+ }
1761
+ // 流程任务.获取
1762
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/fetch
1763
+ function taskFetch$1(data) {
1764
+ return ShcpApiSdk.request({
1765
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/fetch`,
1766
+ method: 'post',
1767
+ data,
1768
+ });
1769
+ }
1770
+ // 流程任务.提交
1771
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/submit
1772
+ function taskSubmit$1(data) {
1773
+ return ShcpApiSdk.request({
1774
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/submit`,
1775
+ method: 'post',
1776
+ data,
1777
+ });
1778
+ }
1779
+ // 流程任务.取消
1780
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/cancel
1781
+ function taskCancel$1(data) {
1782
+ return ShcpApiSdk.request({
1783
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/cancel`,
1784
+ method: 'post',
1785
+ data,
1786
+ });
1787
+ }
1788
+ // 流程任务.保存
1789
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/save
1790
+ function taskSave$1(data) {
1791
+ return ShcpApiSdk.request({
1792
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/save`,
1793
+ method: 'post',
1794
+ data,
1795
+ });
1796
+ }
1797
+ const crudDiseaseCareConsumerApi = {
1798
+ list: CommonRightApi.flowPage,
1799
+ };
1800
+ const crudDiseaseCareAssessTaskApi = {
1801
+ list: CommonRightApi.taskPage,
1802
+ };
1803
+ const crudDiseaseCareInterviewTaskApi = {
1804
+ list: CommonRightApi.taskPage,
1805
+ };
1806
+ const crudDiseaseCareFollowupTaskApi = {
1807
+ list: CommonRightApi.taskPage,
1808
+ };
1809
+ const crudDiseaseCareAbnormalTaskApi = {
1810
+ list: CommonRightApi.metricExceptionPage,
1811
+ };
1812
+ const crudDiseaseCareReferralApi = {
1813
+ list: CommonRightApi.taskPage,
1814
+ };
1815
+ const diseaseOpApi = {
1816
+ start: start$1,
1817
+ claim: claim$1,
1818
+ terminate: terminate$1,
1819
+ taskSave: taskSave$1,
1820
+ consumerMark: consumerMark$1,
1821
+ deleteConsumerMark,
1822
+ consumerContact: consumerContact$1,
1823
+ taskFetch: taskFetch$1,
1824
+ taskSubmit: taskSubmit$1,
1825
+ taskCancel: taskCancel$1,
1826
+ updateMember: ConsumerApi.updateMember,
1827
+ };
1828
+ const diseaseExceptionOpApi = {
1829
+ ...diseaseOpApi,
1830
+ taskCancel: (params) => {
1831
+ params.id = params.taskId;
1832
+ params.status = MetricExceptionStatus.Ignored;
1833
+ params.remark = null;
1834
+ return CommonRightApi.updateMetricException(params);
1835
+ },
1836
+ taskSubmit: (params) => {
1837
+ params.id = params.taskId;
1838
+ params.status = MetricExceptionStatus.Processed;
1839
+ return CommonRightApi.updateMetricException(params);
1840
+ },
1841
+ };
1842
+
1843
+ class HealthCommonApi {
1844
+ // 服务流程.分页查询
1845
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/page
1846
+ static pageServiceFlow(data) {
1847
+ return ShcpApiSdk.request({
1848
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/page`,
1849
+ method: 'post',
1850
+ data,
1851
+ params: {
1852
+ current: data.current,
1853
+ size: data.size,
1854
+ },
1855
+ });
1856
+ }
1857
+ // 服务流程.统计, 用户所参与流程统计
1858
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/statistics
1859
+ static statsServiceFlow(data) {
1860
+ return ShcpApiSdk.request({
1861
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/statistics`,
1862
+ method: 'post',
1863
+ data,
1864
+ });
1865
+ }
1866
+ // 服务任务的权益.列表查询, 列表查询
1867
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/right/list
1868
+ static listServiceTaskRight(data) {
1869
+ return ShcpApiSdk.request({
1870
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/right/list`,
1871
+ method: 'post',
1872
+ data,
1873
+ });
1874
+ }
1875
+ // 服务任务.分页查询
1876
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/page
1877
+ static pageServiceTask(data) {
1878
+ return ShcpApiSdk.request({
1879
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/page`,
1880
+ method: 'post',
1881
+ data,
1882
+ params: {
1883
+ current: data.current,
1884
+ size: data.size,
1885
+ },
1886
+ });
1887
+ }
1888
+ // 服务任务.单个查询(按ID)
1889
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/detail
1890
+ static detailServiceTask(id) {
1891
+ return ShcpApiSdk.request({
1892
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/detail`,
1893
+ method: 'post',
1894
+ params: { id },
1895
+ });
1896
+ }
1897
+ // 服务任务.单个查询(按条件)
1898
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/get
1899
+ static getServiceTask(data) {
1900
+ return ShcpApiSdk.request({
1901
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/get`,
1902
+ method: 'post',
1903
+ data,
1904
+ });
1905
+ }
1906
+ // 服务任务.统计, 用户所参与任务统计
1907
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/statistics
1908
+ static statsServiceTask(data) {
1909
+ return ShcpApiSdk.request({
1910
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/statistics`,
1911
+ method: 'post',
1912
+ data,
1913
+ });
1914
+ }
1915
+ // 健康指标趋势.列表查询
1916
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricTrend/list
1917
+ static listMetricTrend(data) {
1918
+ return ShcpApiSdk.request({
1919
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricTrend/list`,
1920
+ method: 'post',
1921
+ data,
1922
+ });
1923
+ }
1924
+ // 指标异常记录.分页查询, 任务维度
1925
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/page
1926
+ static metricExceptionPage(data) {
1927
+ return ShcpApiSdk.request({
1928
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/page`,
1929
+ method: 'post',
1930
+ data,
1931
+ params: {
1932
+ current: data.current,
1933
+ size: data.size,
1934
+ },
1935
+ });
1936
+ }
1937
+ // 指标异常记录.用户分页查询, 用户维度
1938
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/user/page
1939
+ static metricExceptionUserPage(data) {
1940
+ return ShcpApiSdk.request({
1941
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/user/page`,
1942
+ method: 'post',
1943
+ data,
1944
+ params: {
1945
+ current: data.current,
1946
+ size: data.size,
1947
+ },
1948
+ });
1949
+ }
1950
+ }
1951
+
1952
+ class HealthMetricApi {
1953
+ // 获取健康指标
1954
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/get
1955
+ static getMetric(data) {
1956
+ return ShcpApiSdk.request({
1957
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/get`,
1958
+ method: 'post',
1959
+ data,
1960
+ });
1961
+ }
1962
+ // 获取健康指标列表
1963
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/list
1964
+ static listMetric(data) {
1965
+ return ShcpApiSdk.request({
1966
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/list`,
1967
+ method: 'post',
1968
+ data,
1969
+ });
1970
+ }
1971
+ // 健康指标分页查询
1972
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/page
1973
+ static pageMetric(data) {
1974
+ return ShcpApiSdk.request({
1975
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/page`,
1976
+ method: 'post',
1977
+ data,
1978
+ params: {
1979
+ current: data.current,
1980
+ size: data.size,
1981
+ },
1982
+ });
1983
+ }
1984
+ // 健康指标趋势列表
1985
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricTrend/list
1986
+ static listTrend(data) {
1987
+ return ShcpApiSdk.request({
1988
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricTrend/list`,
1989
+ method: 'post',
1990
+ data,
1991
+ });
1992
+ }
1993
+ // 健康指标日志列表
1994
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricLog/list
1995
+ static listLog(data) {
1996
+ return ShcpApiSdk.request({
1997
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricLog/list`,
1998
+ method: 'post',
1999
+ data,
2000
+ });
2001
+ }
2002
+ }
2003
+
2004
+ class HealthProfileApi {
2005
+ // 获取日记任务
2006
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/diaryTask/fetch
2007
+ static fetchDiaryTask(data) {
2008
+ return ShcpApiSdk.request({
2009
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/diaryTask/fetch`,
2010
+ method: 'post',
2011
+ data,
2012
+ });
2013
+ }
2014
+ // 提交日记任务
2015
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/diaryTask/submit
2016
+ static submitDiaryTask(data) {
2017
+ return ShcpApiSdk.request({
2018
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/diaryTask/submit`,
2019
+ method: 'post',
2020
+ data,
2021
+ });
2022
+ }
2023
+ // 提交报告任务
2024
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/reportTask/submit
2025
+ static submitReportTask(data) {
2026
+ return ShcpApiSdk.request({
2027
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/reportTask/submit`,
2028
+ method: 'post',
2029
+ data,
2030
+ });
2031
+ }
2032
+ // 获取报告任务
2033
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/reportTask/fetch
2034
+ static fetchReportTask(data) {
2035
+ return ShcpApiSdk.request({
2036
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/reportTask/fetch`,
2037
+ method: 'post',
2038
+ data,
2039
+ });
2040
+ }
2041
+ }
2042
+
2043
+ class HealthSelfAssessApi {
2044
+ // 启动健康自评
2045
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/start
2046
+ static start(data) {
2047
+ return ShcpApiSdk.request({
2048
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/start`,
2049
+ method: 'post',
2050
+ data,
2051
+ });
2052
+ }
2053
+ // 提交评估任务
2054
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/task/submit
2055
+ static submitTask(data) {
2056
+ return ShcpApiSdk.request({
2057
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/task/submit`,
2058
+ method: 'post',
2059
+ data,
2060
+ });
2061
+ }
2062
+ // 获取评估任务
2063
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/task/fetch
2064
+ static fetchTask(data) {
2065
+ return ShcpApiSdk.request({
2066
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/task/fetch`,
2067
+ method: 'post',
2068
+ data,
2069
+ });
2070
+ }
2071
+ }
2072
+
2073
+ // 服务流程.发起
2074
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/start
2075
+ function start(data) {
2076
+ return ShcpApiSdk.request({
2077
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/start`,
2078
+ method: 'post',
2079
+ data,
2080
+ });
2081
+ }
2082
+ // 服务流程.领取
2083
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/claim
2084
+ function claim(data) {
2085
+ return ShcpApiSdk.request({
2086
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/claim`,
2087
+ method: 'post',
2088
+ data,
2089
+ });
2090
+ }
2091
+ // 服务流程.终止
2092
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/terminate
2093
+ function terminate(data) {
2094
+ return ShcpApiSdk.request({
2095
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/terminate`,
2096
+ method: 'post',
2097
+ data,
2098
+ });
2099
+ }
2100
+ // 服务流程.标记用户
2101
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/consumerMark
2102
+ function consumerMark(data) {
2103
+ return ShcpApiSdk.request({
2104
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/consumerMark`,
2105
+ method: 'post',
2106
+ data,
2107
+ });
2108
+ }
2109
+ // 服务流程.联系用户
2110
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/consumerContact
2111
+ function consumerContact(data) {
2112
+ return ShcpApiSdk.request({
2113
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/consumerContact`,
2114
+ method: 'post',
2115
+ data,
2116
+ });
2117
+ }
2118
+ // 流程任务.获取
2119
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/fetch
2120
+ function taskFetch(data) {
2121
+ return ShcpApiSdk.request({
2122
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/fetch`,
2123
+ method: 'post',
2124
+ data,
2125
+ });
2126
+ }
2127
+ // 流程任务.提交
2128
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/submit
2129
+ function taskSubmit(data) {
2130
+ return ShcpApiSdk.request({
2131
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/submit`,
2132
+ method: 'post',
2133
+ data,
2134
+ });
2135
+ }
2136
+ // 流程任务.取消
2137
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/cancel
2138
+ function taskCancel(data) {
2139
+ return ShcpApiSdk.request({
2140
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/cancel`,
2141
+ method: 'post',
2142
+ data,
2143
+ });
2144
+ }
2145
+ // 流程任务.保存
2146
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/save
2147
+ function taskSave(data) {
2148
+ return ShcpApiSdk.request({
2149
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/save`,
2150
+ method: 'post',
2151
+ data,
2152
+ });
2153
+ }
2154
+ const crudHealthStudyConsumerApi = {
2155
+ list: CommonRightApi.flowPage,
2156
+ add: () => { },
2157
+ };
2158
+ const crudHealthStudyAssessTaskApi = {
2159
+ list: CommonRightApi.taskPage,
2160
+ };
2161
+ const crudHealthStudyInterviewTaskApi = {
2162
+ list: CommonRightApi.taskPage,
2163
+ };
2164
+ const crudHealthStudyFollowupTaskApi = {
2165
+ list: CommonRightApi.taskPage,
2166
+ };
2167
+ const crudHealthStudyAbnormalTaskApi = {
2168
+ list: CommonRightApi.metricExceptionPage,
2169
+ };
2170
+ const crudHealthStudyReferralApi = {
2171
+ list: CommonRightApi.taskPage,
2172
+ };
2173
+ const healthStudyOpApi = {
2174
+ start,
2175
+ claim,
2176
+ terminate,
2177
+ consumerMark,
2178
+ consumerContact,
2179
+ taskFetch,
2180
+ taskSubmit,
2181
+ taskCancel,
2182
+ taskSave,
2183
+ updateMember: ConsumerApi.updateMember,
2184
+ };
2185
+ const healthStudyExceptionOpApi = {
2186
+ ...healthStudyOpApi,
2187
+ taskCancel: (params) => {
2188
+ params.id = params.taskId;
2189
+ params.status = MetricExceptionStatus.Ignored;
2190
+ params.remark = null;
2191
+ return CommonRightApi.updateMetricException(params);
2192
+ },
2193
+ taskSubmit: (params) => {
2194
+ params.id = params.taskId;
2195
+ params.status = MetricExceptionStatus.Processed;
2196
+ return CommonRightApi.updateMetricException(params);
2197
+ },
2198
+ };
2199
+
2200
+ class HealthToolApi {
2201
+ /**
2202
+ * 健康工具.任务发起
2203
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthTool/start
2204
+ */
2205
+ static start(data) {
2206
+ return ShcpApiSdk.request({
2207
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthTool/start`,
2208
+ method: 'post',
2209
+ data,
2210
+ });
2211
+ }
2212
+ /**
2213
+ * 健康工具.任务获取
2214
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthTool/task/fetch
2215
+ */
2216
+ static fetch(data) {
2217
+ return ShcpApiSdk.request({
2218
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthTool/task/fetch`,
2219
+ method: 'post',
2220
+ data,
2221
+ });
2222
+ }
2223
+ }
2224
+
2225
+ class HelpCenterApi {
2226
+ // 获取帮助中心配置
2227
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/helpCenter/get
2228
+ static getConfig(clientType) {
2229
+ const url = `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/helpCenter/get`;
2230
+ return ShcpApiSdk.request({
2231
+ url,
2232
+ method: 'post',
2233
+ data: {
2234
+ clientType,
2235
+ },
2236
+ });
2237
+ }
2238
+ }
2239
+
2240
+ class ImUserApi {
2241
+ // 用户登录
2242
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/login
2243
+ static login(data) {
2244
+ return ShcpApiSdk.request({
2245
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/login`,
2246
+ method: 'post',
2247
+ data,
2248
+ });
2249
+ }
2250
+ // 获取对话用户信息
2251
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/getUser
2252
+ static getUser(data) {
2253
+ return ShcpApiSdk.request({
2254
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/getUser`,
2255
+ method: 'post',
2256
+ data,
2257
+ });
2258
+ }
2259
+ // 获取对话用户信息
2260
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/getUserList
2261
+ static getUserList(data) {
2262
+ return ShcpApiSdk.request({
2263
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/getUserList`,
2264
+ method: 'post',
2265
+ data,
2266
+ });
2267
+ }
2268
+ }
2269
+
2270
+ class KmArticleApi {
2271
+ // 查询文章分类树
2272
+ static getCategoryTree(data) {
2273
+ return ShcpApiSdk.request({
2274
+ url: '/api/shcp-km/article/category/tree',
2275
+ method: 'post',
2276
+ data,
2277
+ });
2278
+ }
2279
+ // 查询文章分页列表
2280
+ static getPage(data) {
2281
+ return ShcpApiSdk.request({
2282
+ url: '/api/shcp-km/article/page',
2283
+ method: 'post',
2284
+ data,
2285
+ params: {
2286
+ current: data.current,
2287
+ size: data.size,
2288
+ },
2289
+ });
2290
+ }
2291
+ // 文章内容查询
2292
+ static getContent(id) {
2293
+ return ShcpApiSdk.request({
2294
+ url: '/api/shcp-km/article/content/query',
2295
+ method: 'get',
2296
+ params: { id },
2297
+ });
2298
+ }
2299
+ // 查询标签分类树
2300
+ static getTagCategoryTree(data) {
2301
+ return ShcpApiSdk.request({
2302
+ url: '/api/shcp-km/article/tag/category/tree',
2303
+ method: 'post',
2304
+ data,
2305
+ });
2306
+ }
2307
+ // 查询标签分页列表
2308
+ static getTagPage(data) {
2309
+ return ShcpApiSdk.request({
2310
+ url: '/api/shcp-km/article/tag/page',
2311
+ method: 'post',
2312
+ data,
2313
+ params: {
2314
+ current: data.current,
2315
+ size: data.size,
2316
+ },
2317
+ });
2318
+ }
2319
+ }
2320
+
2321
+ class KmFormApi {
2322
+ // 获取表单内容
2323
+ // URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/content/query
2324
+ static getContent(formId) {
2325
+ return ShcpApiSdk.request({
2326
+ url: `/api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/content/query`,
2327
+ method: 'get',
2328
+ params: { formId },
2329
+ });
2330
+ }
2331
+ /**
2332
+ * 根据用户传参进行智能辅助填充
2333
+ * URL: /api/blade-resource/ai/form/smart-filling
2334
+ */
2335
+ static smartFill(data) {
2336
+ return ShcpApiSdk.request({
2337
+ url: '/api/blade-resource/ai/form/smart-filling',
2338
+ method: 'post',
2339
+ data,
2340
+ timeout: 60000,
2341
+ });
2342
+ }
2343
+ }
2344
+
2345
+ class KmFormRuleRelationApi {
2346
+ // 单个查询
2347
+ // URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/rule/get
2348
+ static get(data) {
2349
+ return ShcpApiSdk.request({
2350
+ url: `/api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/rule/get`,
2351
+ method: 'post',
2352
+ data,
2353
+ });
2354
+ }
2355
+ // 列表查询
2356
+ // URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/rule/list
2357
+ static getList(data) {
2358
+ return ShcpApiSdk.request({
2359
+ url: `/api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/rule/list`,
2360
+ method: 'post',
2361
+ data,
2362
+ });
2363
+ }
2364
+ }
2365
+
2366
+ class LoginApi {
2367
+ // 新增
2368
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/potentialCustomer/create
2369
+ static createApplyAccount(data) {
2370
+ return ShcpApiSdk.request({
2371
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/potentialCustomer/create`,
2372
+ method: 'post',
2373
+ data,
2374
+ });
2375
+ }
2376
+ // 获取申请结果
2377
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/salesConfig/get
2378
+ static getApplyResult() {
2379
+ return ShcpApiSdk.request({
2380
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/salesConfig/get`,
2381
+ method: 'post',
2382
+ data: {},
2383
+ });
2384
+ }
2385
+ // 刷新token
2386
+ // URL: /api/blade-auth/oauth/token
2387
+ static refreshToken(data) {
2388
+ return ShcpApiSdk.request({
2389
+ url: '/api/blade-auth/oauth/token',
2390
+ method: 'post',
2391
+ header: {
2392
+ 'Tenant-Id': data.tenantId,
2393
+ },
2394
+ params: {
2395
+ ...data,
2396
+ grant_type: 'refresh_token',
2397
+ scope: 'all',
2398
+ },
2399
+ });
2400
+ }
2401
+ // 用户登录
2402
+ // URL: /api/blade-auth/oauth/token
2403
+ static toLogin(data) {
2404
+ return ShcpApiSdk.request({
2405
+ url: `/api/blade-auth/oauth/token`,
2406
+ method: 'post',
2407
+ header: {
2408
+ 'Tenant-Id': data.tenantId,
2409
+ },
2410
+ params: {
2411
+ ...data,
2412
+ grant_type: 'password',
2413
+ scope: 'all',
2414
+ type: 'account',
2415
+ },
2416
+ custom: {
2417
+ verify: (data) => {
2418
+ return !!data.access_token;
2419
+ },
2420
+ },
2421
+ });
2422
+ }
2423
+ // 应用客户端登录
2424
+ // URL: /api/blade-auth/appClient/login
2425
+ static appClientLogin(data) {
2426
+ return ShcpApiSdk.request({
2427
+ url: '/api/blade-auth/appClient/login',
2428
+ method: 'post',
2429
+ data,
2430
+ });
2431
+ }
2432
+ // 获取租户列表
2433
+ // URL: /api/blade-system/tenant/selectTenant
2434
+ static getTenantList() {
2435
+ return ShcpApiSdk.request({
2436
+ url: `/api/blade-system/tenant/selectTenant`,
2437
+ method: 'get',
2438
+ params: {
2439
+ domainUrl: '',
2440
+ },
2441
+ });
2442
+ }
2443
+ // 获取关联租户列表
2444
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/list
2445
+ static getRelatedTenantList(relateTenantId) {
2446
+ return ShcpApiSdk.request({
2447
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/list`,
2448
+ method: 'post',
2449
+ data: {
2450
+ relateTenantId,
2451
+ },
2452
+ });
2453
+ }
2454
+ }
2455
+
2456
+ class MarketingApi {
2457
+ // 保存营销内容
2458
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/content/save
2459
+ static saveContent(data) {
2460
+ return ShcpApiSdk.request({
2461
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/content/save`,
2462
+ method: 'post',
2463
+ data,
2464
+ });
2465
+ }
2466
+ // 创建营销活动
2467
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/create
2468
+ static create(data) {
2469
+ return ShcpApiSdk.request({
2470
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/create`,
2471
+ method: 'post',
2472
+ data,
2473
+ });
2474
+ }
2475
+ // 更新营销活动
2476
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/update
2477
+ static update(data) {
2478
+ return ShcpApiSdk.request({
2479
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/update`,
2480
+ method: 'post',
2481
+ data,
2482
+ });
2483
+ }
2484
+ // 获取营销活动分页
2485
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/page
2486
+ static getPage(data) {
2487
+ return ShcpApiSdk.request({
2488
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/page`,
2489
+ method: 'post',
2490
+ data,
2491
+ params: {
2492
+ current: data.current,
2493
+ size: data.size,
2494
+ },
2495
+ });
2496
+ }
2497
+ // 删除营销活动
2498
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/delete
2499
+ static delete(data) {
2500
+ return ShcpApiSdk.request({
2501
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/delete`,
2502
+ method: 'post',
2503
+ data,
2504
+ });
2505
+ }
2506
+ // 获取营销活动详情
2507
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/detail
2508
+ static getDetail(id) {
2509
+ return ShcpApiSdk.request({
2510
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/detail?id=${id}`,
2511
+ method: 'get',
2512
+ });
2513
+ }
2514
+ // 获取营销任务分页
2515
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/page
2516
+ static getTaskPage(data) {
2517
+ return ShcpApiSdk.request({
2518
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/page`,
2519
+ method: 'post',
2520
+ data,
2521
+ params: {
2522
+ current: data.current,
2523
+ size: data.size,
2524
+ },
2525
+ });
2526
+ }
2527
+ // 获取营销任务日志分页
2528
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/log/page
2529
+ static getTaskLogPage(data) {
2530
+ return ShcpApiSdk.request({
2531
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/log/page`,
2532
+ method: 'post',
2533
+ data,
2534
+ });
2535
+ }
2536
+ // 创建营销任务日志
2537
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/log/create
2538
+ static createTaskLogs(data) {
2539
+ return ShcpApiSdk.request({
2540
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/log/create`,
2541
+ method: 'post',
2542
+ data,
2543
+ });
2544
+ }
2545
+ // 获取消息模板列表
2546
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/message/template/list
2547
+ static getMessageTemplateList(data) {
2548
+ return ShcpApiSdk.request({
2549
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/message/template/list`,
2550
+ method: 'post',
2551
+ data,
2552
+ });
2553
+ }
2554
+ // 获取消息模板详情
2555
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/message/template/detail
2556
+ static getMessageTemplateDetail(id) {
2557
+ return ShcpApiSdk.request({
2558
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/message/template/detail`,
2559
+ method: 'get',
2560
+ params: { id },
2561
+ });
2562
+ }
2563
+ // 获取模版列表数据
2564
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/content/list
2565
+ static getSendContent(data) {
2566
+ return ShcpApiSdk.request({
2567
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/content/list`,
2568
+ method: 'post',
2569
+ data,
2570
+ });
2571
+ }
2572
+ }
2573
+
2574
+ class MessageRecordApi {
2575
+ // 获取消息记录详情
2576
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/detail
2577
+ static getDetail(id) {
2578
+ return ShcpApiSdk.request({
2579
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/detail`,
2580
+ method: 'post',
2581
+ params: { id },
2582
+ });
2583
+ }
2584
+ // 按天分组获取消息记录分页
2585
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/pageGroupedByDay
2586
+ static getPageGroupedByDay(data) {
2587
+ return ShcpApiSdk.request({
2588
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/pageGroupedByDay`,
2589
+ method: 'post',
2590
+ data,
2591
+ params: {
2592
+ current: data.current,
2593
+ size: data.size,
2594
+ },
2595
+ });
2596
+ }
2597
+ // 更新消息记录
2598
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/update
2599
+ static update(data) {
2600
+ return ShcpApiSdk.request({
2601
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/update`,
2602
+ method: 'post',
2603
+ data,
2604
+ });
2605
+ }
2606
+ }
2607
+
2608
+ class MineApi {
2609
+ }
2610
+ // 获取用户信息
2611
+ // URL: /api/blade-system/user/info
2612
+ MineApi.getUserInfo = (id) => {
2613
+ return ShcpApiSdk.request({
2614
+ url: `/api/blade-system/user/info`,
2615
+ method: 'get',
2616
+ params: { id },
2617
+ });
2618
+ };
2619
+ // 更新用户信息
2620
+ // URL: /api/blade-system/user/update-info
2621
+ MineApi.updateInfo = (data) => {
2622
+ return ShcpApiSdk.request({
2623
+ url: `/api/blade-system/user/update-info`,
2624
+ method: 'post',
2625
+ data,
2626
+ });
2627
+ };
2628
+ // 获取我的页面配置
2629
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/pageConfig/get
2630
+ MineApi.getMyPageConfig = (data) => {
2631
+ return ShcpApiSdk.request({
2632
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/pageConfig/get`,
2633
+ method: 'post',
2634
+ data,
2635
+ custom: { showError: false },
2636
+ });
2637
+ };
2638
+ // 获取详情内容
2639
+ // URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/article/content/query
2640
+ MineApi.getArticleContent = (id) => {
2641
+ return ShcpApiSdk.request({
2642
+ url: `/api/shcp-km/${ShcpApiSdk.getApiSuffix()}/article/content/query`,
2643
+ method: 'get',
2644
+ params: { id },
2645
+ });
2646
+ };
2647
+
2648
+ class RightQrcodeApi {
2649
+ // 获取权益二维码分页
2650
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/page
2651
+ static getPage(data) {
2652
+ return ShcpApiSdk.request({
2653
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/page`,
2654
+ method: 'post',
2655
+ data,
2656
+ params: data,
2657
+ });
2658
+ }
2659
+ // 更新权益二维码
2660
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/update
2661
+ static update(data) {
2662
+ return ShcpApiSdk.request({
2663
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/update`,
2664
+ method: 'post',
2665
+ data,
2666
+ });
2667
+ }
2668
+ // 创建权益二维码
2669
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/create
2670
+ static create(data) {
2671
+ return ShcpApiSdk.request({
2672
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/create`,
2673
+ method: 'post',
2674
+ data,
2675
+ });
2676
+ }
2677
+ // 删除权益二维码
2678
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/delete
2679
+ static delete(ids) {
2680
+ return ShcpApiSdk.request({
2681
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/delete`,
2682
+ method: 'post',
2683
+ data: ids,
2684
+ });
2685
+ }
2686
+ // 获取权益二维码详情
2687
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/detail
2688
+ static getDetail(id) {
2689
+ return ShcpApiSdk.request({
2690
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/detail`,
2691
+ method: 'post',
2692
+ params: { id },
2693
+ });
2694
+ }
2695
+ }
2696
+
2697
+ class RightServiceConfigApi {
2698
+ // 通用.查询单个(按ID)
2699
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/detail
2700
+ static getDetail(id) {
2701
+ return ShcpApiSdk.request({
2702
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/detail`,
2703
+ method: 'post',
2704
+ params: { id },
2705
+ });
2706
+ }
2707
+ // 通用.查询单个(按条件)
2708
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/get
2709
+ static get(data) {
2710
+ return ShcpApiSdk.request({
2711
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/get`,
2712
+ method: 'post',
2713
+ data,
2714
+ });
2715
+ }
2716
+ // 通用.查询列表
2717
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/list
2718
+ static getList(data) {
2719
+ return ShcpApiSdk.request({
2720
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/list`,
2721
+ method: 'post',
2722
+ data,
2723
+ });
2724
+ }
2725
+ // 慢病管理.查询单个(按ID)
2726
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/detail
2727
+ static getDiseaseCareDetail(id) {
2728
+ return ShcpApiSdk.request({
2729
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/detail`,
2730
+ method: 'post',
2731
+ params: { id },
2732
+ });
2733
+ }
2734
+ // 慢病管理.查询单个(按条件)
2735
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/get
2736
+ static getDiseaseCareConfig(data) {
2737
+ return ShcpApiSdk.request({
2738
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/get`,
2739
+ method: 'post',
2740
+ data,
2741
+ });
2742
+ }
2743
+ // 课题研究.查询单个(按ID)
2744
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthStudy/detail
2745
+ static getHealthStudyDetail(id) {
2746
+ return ShcpApiSdk.request({
2747
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthStudy/detail`,
2748
+ method: 'post',
2749
+ params: { id },
2750
+ });
2751
+ }
2752
+ // 课题研究.查询单个(按条件)
2753
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthStudy/get
2754
+ static getHealthStudyConfig(data) {
2755
+ return ShcpApiSdk.request({
2756
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthStudy/get`,
2757
+ method: 'post',
2758
+ data,
2759
+ });
2760
+ }
2761
+ // 健康自测.查询单个(按条件)
2762
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthSelfAssessment/get
2763
+ static getHealthSelfAssessmentConfig(data) {
2764
+ return ShcpApiSdk.request({
2765
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthSelfAssessment/get`,
2766
+ method: 'post',
2767
+ data,
2768
+ });
2769
+ }
2770
+ // 健康档案.查询单个(按条件)
2771
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthProfile/get
2772
+ static getHealthProfileConfig(data) {
2773
+ return ShcpApiSdk.request({
2774
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthProfile/get`,
2775
+ method: 'post',
2776
+ data,
2777
+ });
2778
+ }
2779
+ // 健康工具.查询单个(按条件)
2780
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthTool/get
2781
+ static getHealthToolConfig(data) {
2782
+ return ShcpApiSdk.request({
2783
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthTool/get`,
2784
+ method: 'post',
2785
+ data,
2786
+ });
2787
+ }
2788
+ // 健康咨询.查询单个(按条件)
2789
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthConsult/get
2790
+ static getHealthConsultConfig(data) {
2791
+ return ShcpApiSdk.request({
2792
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthConsult/get`,
2793
+ method: 'post',
2794
+ data,
2795
+ });
2796
+ }
2797
+ }
2798
+
2799
+ class SystemRightApi {
2800
+ // 权益详情
2801
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/detail
2802
+ static getDetail(params) {
2803
+ return ShcpApiSdk.request({
2804
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/detail`,
2805
+ method: 'post',
2806
+ params,
2807
+ });
2808
+ }
2809
+ // 权益列表
2810
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/get
2811
+ static get(data) {
2812
+ return ShcpApiSdk.request({
2813
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/get`,
2814
+ method: 'post',
2815
+ data,
2816
+ });
2817
+ }
2818
+ // 权益列表
2819
+ // URL: /api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/listByIds
2820
+ static getListByIds(data) {
2821
+ return ShcpApiSdk.request({
2822
+ url: `/api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/listByIds`,
2823
+ method: 'post',
2824
+ data,
2825
+ });
2826
+ }
2827
+ // 权益列表
2828
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/list
2829
+ static getList(data) {
2830
+ return ShcpApiSdk.request({
2831
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/list`,
2832
+ method: 'post',
2833
+ data,
2834
+ });
2835
+ }
2836
+ // 权益列表
2837
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/page
2838
+ static getPage(data) {
2839
+ return ShcpApiSdk.request({
2840
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/page`,
2841
+ method: 'post',
2842
+ data,
2843
+ params: {
2844
+ current: data.current,
2845
+ size: data.size,
2846
+ },
2847
+ });
2848
+ }
2849
+ // 初始化权益
2850
+ // URL: /api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/initRight
2851
+ static init(params) {
2852
+ return ShcpApiSdk.request({
2853
+ url: `/api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/initRight`,
2854
+ method: 'post',
2855
+ params,
2856
+ });
2857
+ }
2858
+ // 复制
2859
+ // URL: /api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/copy
2860
+ static copy(data) {
2861
+ return ShcpApiSdk.request({
2862
+ url: `/api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/copy`,
2863
+ method: 'post',
2864
+ data,
2865
+ });
2866
+ }
2867
+ // 更新复制配置
2868
+ // URL: /api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/updateCopyConfig
2869
+ static updateCopyConfig(data) {
2870
+ return ShcpApiSdk.request({
2871
+ url: `/api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/updateCopyConfig`,
2872
+ method: 'post',
2873
+ data,
2874
+ });
2875
+ }
2876
+ }
2877
+
2878
+ class UserGroupApi {
2879
+ // 更新用户组
2880
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/update
2881
+ static update(data) {
2882
+ return ShcpApiSdk.request({
2883
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/update`,
2884
+ method: 'post',
2885
+ data,
2886
+ });
2887
+ }
2888
+ // 解绑用户
2889
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/unbindUser
2890
+ static unbindUser(data) {
2891
+ return ShcpApiSdk.request({
2892
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/unbindUser`,
2893
+ method: 'post',
2894
+ data,
2895
+ });
2896
+ }
2897
+ // 创建用户组
2898
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/create
2899
+ static create(data) {
2900
+ return ShcpApiSdk.request({
2901
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/create`,
2902
+ method: 'post',
2903
+ data,
2904
+ });
2905
+ }
2906
+ // 绑定用户
2907
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/bindUser
2908
+ static bindUser(data) {
2909
+ return ShcpApiSdk.request({
2910
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/bindUser`,
2911
+ method: 'post',
2912
+ data,
2913
+ });
2914
+ }
2915
+ // 获取用户组树
2916
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/tree
2917
+ static getTree(data) {
2918
+ return ShcpApiSdk.request({
2919
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/tree`,
2920
+ method: 'post',
2921
+ data,
2922
+ });
2923
+ }
2924
+ // 获取用户组详情
2925
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/detail
2926
+ static getDetail(id) {
2927
+ return ShcpApiSdk.request({
2928
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/detail`,
2929
+ method: 'get',
2930
+ params: { id },
2931
+ });
2932
+ }
2933
+ // 查询医生管理组用户
2934
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/bladeUserPage
2935
+ static getBladeUserPage(data) {
2936
+ return ShcpApiSdk.request({
2937
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/bladeUserPage`,
2938
+ method: 'post',
2939
+ data,
2940
+ });
2941
+ }
2942
+ // 删除用户组
2943
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/delete
2944
+ static delete(data) {
2945
+ return ShcpApiSdk.request({
2946
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/delete`,
2947
+ method: 'post',
2948
+ data,
2949
+ });
2950
+ }
2951
+ }
2952
+
2953
+ export { AggregateType, AppCategory, AppCategoryOptions, AppClientApi, AppClientPageConfigApi, AppClientSettingApi, AppPlatformType, CommonDictApi, CommonRightApi, ConsumerApi, ConsumerBindApi, ConsumerDeviceApi, ConsumerDeviceStatus, ConsumerDeviceStatusOptions, ConsumerFavoriteApi, ConsumerMarkType, ConsumerMarkTypeOptions, ConsumerRightStatus, ConsumerRightStatusOptions, DeliveryMethod, DeliveryMethodOptions, DeviceApi, DeviceStatus, DeviceStatusOptions, DeviceType, DeviceTypeOptions, DeviceUserApi, DiseaseCareServiceFlowStatusOptions, ErrCode, FileType, FileTypeOptions, Gender, GenderOptions, GroupJoinType, GroupJoinTypeOptions, HealthCommonApi, HealthMetricApi, HealthProfileApi, HealthRecordType, HealthRecordTypeOptions, HealthSelfAssessApi, HealthServiceType, HealthServiceTypeOptions, HealthStudyPlanExecMethodOptions, HealthStudyServiceFlowStatusOptions, HealthToolApi, HelpCenterApi, HuaWeiWatchMetricCategory, ImUserApi, InterviewServiceTaskStatusOptions, KmArticleApi, KmFormApi, KmFormRuleRelationApi, LoginApi, MarketingApi, MarketingTaskLogStatus, MarketingTaskLogStatusOptions, MarketingTaskStatus, MarketingTaskStatusOptions, MemberListType, MemberListTypeMap, MessageActionLabel, MessageActionLabelOptions, MessageActionStatus, MessageBizCategory, MessageBizCategoryOptions, MessageChannelType, MessageChannelTypeOptions, MessageRecordApi, MessageStatus, MessageStyle, MessageStyleOptions, MetricExceptionLevel, MetricExceptionLevelOptions, MetricExceptionStatus, MetricExceptionStatusOptions, MetricValueType, MetricValueTypeOptions, MineApi, PlanExecMethod, PlanExecMethodOptions, PlanExecType, PlanExecTypeOptions, Resource, RightQrcodeApi, RightServiceConfigApi, RightType, ServiceFlowStatus, ServiceTaskCategory, ServiceTaskStatus, ServiceTaskStatusOptions, ShcpUserType, ShcpUserTypeOptions, Status, StudyType, SystemRightApi, UserGroupApi, VisitType, VisitTypeOptions, checkResponse, commonProccessResponse, crudConsumerApi, crudConsumerGroupApi, crudDiseaseCareAbnormalTaskApi, crudDiseaseCareAssessTaskApi, crudDiseaseCareConsumerApi, crudDiseaseCareFollowupTaskApi, crudDiseaseCareInterviewTaskApi, crudDiseaseCareReferralApi, crudHealthStudyAbnormalTaskApi, crudHealthStudyAssessTaskApi, crudHealthStudyConsumerApi, crudHealthStudyFollowupTaskApi, crudHealthStudyInterviewTaskApi, crudHealthStudyReferralApi, diseaseExceptionOpApi, diseaseOpApi, formatMetricData, getPlanExecLabel, healthStudyExceptionOpApi, healthStudyOpApi };
2954
+ //# sourceMappingURL=index.esm.js.map