shcp-api-lib 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +49 -2
- package/dist/index.esm.js +156 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +162 -0
- package/dist/index.js.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -4544,6 +4544,43 @@ interface ComponentItem {
|
|
4544
4544
|
lengthNum: number;
|
4545
4545
|
}
|
4546
4546
|
|
4547
|
+
declare const ArticleLibType: {
|
4548
|
+
Public: string;
|
4549
|
+
Private: string;
|
4550
|
+
Draft: string;
|
4551
|
+
Other: string;
|
4552
|
+
};
|
4553
|
+
declare const FormLibType: {
|
4554
|
+
Public: string;
|
4555
|
+
Private: string;
|
4556
|
+
Draft: string;
|
4557
|
+
Other: string;
|
4558
|
+
};
|
4559
|
+
declare const LabelLibType: {
|
4560
|
+
Public: string;
|
4561
|
+
Private: string;
|
4562
|
+
};
|
4563
|
+
/************************************************ */
|
4564
|
+
type KMLibraryType = FormLibraryType;
|
4565
|
+
type LibraryTypeOption = {
|
4566
|
+
label: string;
|
4567
|
+
value: KMLibraryType;
|
4568
|
+
};
|
4569
|
+
declare enum FormType {
|
4570
|
+
Form = 1,
|
4571
|
+
Tree = 2
|
4572
|
+
}
|
4573
|
+
declare enum QuestionItemType {
|
4574
|
+
FirstTitle = 1,
|
4575
|
+
SecondTitle = 2,
|
4576
|
+
ThirdTitle = 3,
|
4577
|
+
FormItem = 4
|
4578
|
+
}
|
4579
|
+
type FormObjectType = {
|
4580
|
+
label: string;
|
4581
|
+
value: FormType;
|
4582
|
+
};
|
4583
|
+
declare const FormTypeOptions: FormObjectType[];
|
4547
4584
|
declare enum FormRuleType {
|
4548
4585
|
/** 表单内置评估规则 */
|
4549
4586
|
BuiltInRules = 1,
|
@@ -4554,6 +4591,16 @@ declare enum FormRuleType {
|
|
4554
4591
|
/** 未知 */
|
4555
4592
|
Unknown = 99
|
4556
4593
|
}
|
4594
|
+
declare enum FormLibraryType {
|
4595
|
+
Public = 1,
|
4596
|
+
Private = 2,
|
4597
|
+
Draft = 3,
|
4598
|
+
Other = 4,
|
4599
|
+
Custom = 1000
|
4600
|
+
}
|
4601
|
+
declare const FormLibraryTypeOptions: LibraryTypeOption[];
|
4602
|
+
declare function processFormQueryParams(params: KMForm.FormQuery, type: FormLibraryType, userInfo: UserInfo): void;
|
4603
|
+
declare function isFormEqual(left: any, right: any): boolean;
|
4557
4604
|
|
4558
4605
|
interface FormRuleRelationDTO {
|
4559
4606
|
/** id */
|
@@ -6204,5 +6251,5 @@ declare class UserGroupApi {
|
|
6204
6251
|
static delete(data: UserGroupDeleteRequest): any;
|
6205
6252
|
}
|
6206
6253
|
|
6207
|
-
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, FileApi, FileType, FileTypeOptions, Gender, GenderOptions, GroupJoinType, GroupJoinTypeOptions, HealthCommonApi, HealthMetricApi, HealthProfileApi, HealthRecordType, HealthRecordTypeOptions, HealthSelfAssessApi, HealthServiceType, HealthServiceTypeOptions, HealthStudyPlanExecMethodOptions, HealthStudyServiceFlowStatusOptions, HealthToolApi, HelpCenterApi, HuaWeiWatchMetricCategory, ImUserApi, InterviewServiceTaskStatusOptions, KMForm, 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, ServiceFlowRequests, ServiceFlowStatus, ServiceTaskCategory, ServiceTaskRequests, 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 };
|
6208
|
-
export type { AdviceConfigDTO, Aggregation, AppClientCopyRequest, AppClientCopyResponse, AppClientDTO, AppClientLoginRequest, AppClientPageConfigCopyUpdateRequest, AppClientPageConfigDTO, AppClientPageConfigQuery, AppClientQuery, AppClientSettingDTO, AppClientSettingQuery, ArticleCategory, ArticleCategoryDTO, ArticleCategoryTreeRequest, ArticleDTO, ArticleItem, ArticleQuery, ArticleTagDTO, ArticleTagQuery, AssessConfigDTO, AssessTaskDTO, AssessmentConfig, AssessmentResultDTO, AssessmentTaskDTO, BaseProfileTaskDTO, BindUserRequest, BloodOxygenExceptionInfo, BloodOxygenLevelRange, BloodOxygenMetricInfo, BloodPressureExceptionInfo, BloodPressureLevelRange, BloodPressureMetricInfo, CAppCardDTO, CareConfig, CommonRes, ComponentConfig, ComponentInfo, ComponentItem, ConsumerBindActiveRequest, ConsumerBindCreateRequest, ConsumerBindDTO, ConsumerBindDeleteRequest, ConsumerBindQuery, ConsumerBindSendSmsCodeRequest, ConsumerBindUpdateRequest, ConsumerContact, ConsumerCreateRequest, ConsumerDTO, ConsumerDetail, ConsumerDeviceCreateRequest, ConsumerDeviceDTO, ConsumerDeviceQuery, ConsumerDeviceUpdateRequest, ConsumerFavoriteCreateRequest, ConsumerFavoriteDTO, ConsumerFavoriteDeleteRequest, ConsumerFavoriteQuery, ConsumerGroupDTO, ConsumerGroupDeleteRequest, ConsumerGroupMemberCreateRequest, ConsumerGroupMemberDTO, ConsumerGroupMemberQuery, ConsumerGroupMemberUpdateRequest, ConsumerGroupQuery, ConsumerGroupUpdateRequest, ConsumerLabel, ConsumerMark, ConsumerQuery, ConsumerRightCreateRequest, ConsumerRightDTO, ConsumerRightDeleteRequest, ConsumerRightDoctorDTO, ConsumerRightDoctorQuery, ConsumerRightQuery, ConsumerUpdateRequest, CreateRequest, Detail, DeviceCopyRequest, DeviceCopyResponse, DeviceCreateRequest, DeviceDTO, DeviceDeleteRequest, DeviceQuery, DeviceUpdateRequest, DeviceUserCreateRequest, DeviceUserDTO, DeviceUserInfo, DeviceUserLoginRequest, DeviceUserQuery, DeviceUserUpdateRequest, DiaryTaskDTO, DiaryTaskFetch, DiaryTaskSubmit, DictBiz, DictBizVO, DiseaseCareConfigDTO, DiseaseCareFlowExtension, EducationConfigDTO, ExecTimeConfig, FastAgent, FileObject, FollowUpConfigDTO, FollowUpPlan, FollowUpPoint, FollowUpTaskDTO, FormRuleRelationDTO, FormRuleRelationQuery, Group, GroupingConfig, GroupingConfigDTO, GuideArticle, HealthCareOpApi, HealthConsultConfigDTO, HealthMetric, HealthMetricDTO, HealthMetricLogDTO, HealthMetricQuery, HealthMetricTrendDTO, HealthMetricTrendQuery, HealthProfileConfigDTO, HealthRecord, HealthSelfAssessmentConfigDTO, HealthStudyConfigDTO, HealthStudyFlowExtension, HealthToolConfigDTO, HealthToolTaskDTO, HealthToolTaskFetch, HealthToolTaskStart, HealthToolTaskStartDTO, HeartRateExceptionInfo, HeartRateLevelRange, HeartRateMetricInfo, HuaWeiWatch, HuaWeiWatchConfig, HuaWeiWatchMetric, IMUserDTO, IMUserQuery, IMUserRequest, Log, MarketingContentCreateRequest, MarketingContentDTO, MarketingContentUpdateRequest, MarketingCreateRequest, MarketingDTO, MarketingDeleteRequest, MarketingQuery, MarketingTaskDTO, MarketingTaskLogCreateRequest, MarketingTaskLogDTO, MarketingTaskLogQuery, MarketingTaskQuery, MarketingUpdateRequest, MessageRecordDTO, MessageRecordQuery, MessageRecordUpdateRequest, MessageTemplateDTO, MessageTemplateQuery, Metric, MetricExceptionDTO, MetricExceptionInfo, MetricExceptionQuery, MetricExceptionUpdateRequests, MetricExceptionUserCountDTO, MetricExceptionUserDTO, MetricMonitorConfigDTO, MetricMonitorPlan, MetricRecordInfo, MetricTrendInfo, NewsArticleTag, Operator, PageRequest, PagedList, PotentialCustomerCreateRequest, PotentialCustomerDTO, QueryTreeRequest, ReportTaskDTO, ReportTaskFetch, ReportTaskSubmit, ReturnVisitConfigDTO, RightCopyRequest, RightCopyResponse, RightDTO, RightQrCodeCreateRequest, RightQrCodeDTO, RightQrCodeRequest, RightQrCodeUpdateRequest, RightQuery, RightRequest, RightServiceConfigCopyUpdateRequest, RightServiceConfigDTO, RightServiceConfigQuery, SaleDTO, ServiceFlowConfigDTO, ServiceFlowConfigQuery, ServiceFlowDTO, ServiceFlowQuery, ServiceFlowStatisticsDTO, ServiceFlowStatisticsQuery, ServiceStartDTO, ServiceStartRequest, ServiceTaskDTO, ServiceTaskDeleteRequest, ServiceTaskQuery, ServiceTaskRightQuery, ServiceTaskStatisticsDTO, ServiceTaskStatisticsQuery, ServiceTaskUserCountDTO, ServiceTaskUserDTO, SmsDTO, StepsMetricInfo, TabOption, TaskDTO, Tenant, TenantUserDetail, TrendMetric, TrendMetricTag, UnbindUserRequest, UploadResponse, UserDTO, UserGroupDeleteRequest, UserGroupInfo, UserGroupMemberRequest, UserGroupUpdateRequest, UserInfo, WrapperMessageRecordDTO, marketingSendContentRequest, uplooadReportQuery };
|
6254
|
+
export { AggregateType, AppCategory, AppCategoryOptions, AppClientApi, AppClientPageConfigApi, AppClientSettingApi, AppPlatformType, ArticleLibType, CommonDictApi, CommonRightApi, ConsumerApi, ConsumerBindApi, ConsumerDeviceApi, ConsumerDeviceStatus, ConsumerDeviceStatusOptions, ConsumerFavoriteApi, ConsumerMarkType, ConsumerMarkTypeOptions, ConsumerRightStatus, ConsumerRightStatusOptions, DeliveryMethod, DeliveryMethodOptions, DeviceApi, DeviceStatus, DeviceStatusOptions, DeviceType, DeviceTypeOptions, DeviceUserApi, DiseaseCareServiceFlowStatusOptions, ErrCode, FileApi, FileType, FileTypeOptions, FormLibType, FormLibraryType, FormLibraryTypeOptions, FormRuleType, FormType, FormTypeOptions, Gender, GenderOptions, GroupJoinType, GroupJoinTypeOptions, HealthCommonApi, HealthMetricApi, HealthProfileApi, HealthRecordType, HealthRecordTypeOptions, HealthSelfAssessApi, HealthServiceType, HealthServiceTypeOptions, HealthStudyPlanExecMethodOptions, HealthStudyServiceFlowStatusOptions, HealthToolApi, HelpCenterApi, HuaWeiWatchMetricCategory, ImUserApi, InterviewServiceTaskStatusOptions, KMForm, KmArticleApi, KmFormApi, KmFormRuleRelationApi, LabelLibType, 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, QuestionItemType, Resource, RightQrcodeApi, RightServiceConfigApi, RightType, ServiceFlowRequests, ServiceFlowStatus, ServiceTaskCategory, ServiceTaskRequests, 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, isFormEqual, processFormQueryParams };
|
6255
|
+
export type { AdviceConfigDTO, Aggregation, AppClientCopyRequest, AppClientCopyResponse, AppClientDTO, AppClientLoginRequest, AppClientPageConfigCopyUpdateRequest, AppClientPageConfigDTO, AppClientPageConfigQuery, AppClientQuery, AppClientSettingDTO, AppClientSettingQuery, ArticleCategory, ArticleCategoryDTO, ArticleCategoryTreeRequest, ArticleDTO, ArticleItem, ArticleQuery, ArticleTagDTO, ArticleTagQuery, AssessConfigDTO, AssessTaskDTO, AssessmentConfig, AssessmentResultDTO, AssessmentTaskDTO, BaseProfileTaskDTO, BindUserRequest, BloodOxygenExceptionInfo, BloodOxygenLevelRange, BloodOxygenMetricInfo, BloodPressureExceptionInfo, BloodPressureLevelRange, BloodPressureMetricInfo, CAppCardDTO, CareConfig, CommonRes, ComponentConfig, ComponentInfo, ComponentItem, ConsumerBindActiveRequest, ConsumerBindCreateRequest, ConsumerBindDTO, ConsumerBindDeleteRequest, ConsumerBindQuery, ConsumerBindSendSmsCodeRequest, ConsumerBindUpdateRequest, ConsumerContact, ConsumerCreateRequest, ConsumerDTO, ConsumerDetail, ConsumerDeviceCreateRequest, ConsumerDeviceDTO, ConsumerDeviceQuery, ConsumerDeviceUpdateRequest, ConsumerFavoriteCreateRequest, ConsumerFavoriteDTO, ConsumerFavoriteDeleteRequest, ConsumerFavoriteQuery, ConsumerGroupDTO, ConsumerGroupDeleteRequest, ConsumerGroupMemberCreateRequest, ConsumerGroupMemberDTO, ConsumerGroupMemberQuery, ConsumerGroupMemberUpdateRequest, ConsumerGroupQuery, ConsumerGroupUpdateRequest, ConsumerLabel, ConsumerMark, ConsumerQuery, ConsumerRightCreateRequest, ConsumerRightDTO, ConsumerRightDeleteRequest, ConsumerRightDoctorDTO, ConsumerRightDoctorQuery, ConsumerRightQuery, ConsumerUpdateRequest, CreateRequest, Detail, DeviceCopyRequest, DeviceCopyResponse, DeviceCreateRequest, DeviceDTO, DeviceDeleteRequest, DeviceQuery, DeviceUpdateRequest, DeviceUserCreateRequest, DeviceUserDTO, DeviceUserInfo, DeviceUserLoginRequest, DeviceUserQuery, DeviceUserUpdateRequest, DiaryTaskDTO, DiaryTaskFetch, DiaryTaskSubmit, DictBiz, DictBizVO, DiseaseCareConfigDTO, DiseaseCareFlowExtension, EducationConfigDTO, ExecTimeConfig, FastAgent, FileObject, FollowUpConfigDTO, FollowUpPlan, FollowUpPoint, FollowUpTaskDTO, FormObjectType, FormRuleRelationDTO, FormRuleRelationQuery, Group, GroupingConfig, GroupingConfigDTO, GuideArticle, HealthCareOpApi, HealthConsultConfigDTO, HealthMetric, HealthMetricDTO, HealthMetricLogDTO, HealthMetricQuery, HealthMetricTrendDTO, HealthMetricTrendQuery, HealthProfileConfigDTO, HealthRecord, HealthSelfAssessmentConfigDTO, HealthStudyConfigDTO, HealthStudyFlowExtension, HealthToolConfigDTO, HealthToolTaskDTO, HealthToolTaskFetch, HealthToolTaskStart, HealthToolTaskStartDTO, HeartRateExceptionInfo, HeartRateLevelRange, HeartRateMetricInfo, HuaWeiWatch, HuaWeiWatchConfig, HuaWeiWatchMetric, IMUserDTO, IMUserQuery, IMUserRequest, KMLibraryType, LibraryTypeOption, Log, MarketingContentCreateRequest, MarketingContentDTO, MarketingContentUpdateRequest, MarketingCreateRequest, MarketingDTO, MarketingDeleteRequest, MarketingQuery, MarketingTaskDTO, MarketingTaskLogCreateRequest, MarketingTaskLogDTO, MarketingTaskLogQuery, MarketingTaskQuery, MarketingUpdateRequest, MessageRecordDTO, MessageRecordQuery, MessageRecordUpdateRequest, MessageTemplateDTO, MessageTemplateQuery, Metric, MetricExceptionDTO, MetricExceptionInfo, MetricExceptionQuery, MetricExceptionUpdateRequests, MetricExceptionUserCountDTO, MetricExceptionUserDTO, MetricMonitorConfigDTO, MetricMonitorPlan, MetricRecordInfo, MetricTrendInfo, NewsArticleTag, Operator, PageRequest, PagedList, PotentialCustomerCreateRequest, PotentialCustomerDTO, QueryTreeRequest, ReportTaskDTO, ReportTaskFetch, ReportTaskSubmit, ReturnVisitConfigDTO, RightCopyRequest, RightCopyResponse, RightDTO, RightQrCodeCreateRequest, RightQrCodeDTO, RightQrCodeRequest, RightQrCodeUpdateRequest, RightQuery, RightRequest, RightServiceConfigCopyUpdateRequest, RightServiceConfigDTO, RightServiceConfigQuery, SaleDTO, ServiceFlowConfigDTO, ServiceFlowConfigQuery, ServiceFlowDTO, ServiceFlowQuery, ServiceFlowStatisticsDTO, ServiceFlowStatisticsQuery, ServiceStartDTO, ServiceStartRequest, ServiceTaskDTO, ServiceTaskDeleteRequest, ServiceTaskQuery, ServiceTaskRightQuery, ServiceTaskStatisticsDTO, ServiceTaskStatisticsQuery, ServiceTaskUserCountDTO, ServiceTaskUserDTO, SmsDTO, StepsMetricInfo, TabOption, TaskDTO, Tenant, TenantUserDetail, TrendMetric, TrendMetricTag, UnbindUserRequest, UploadResponse, UserDTO, UserGroupDeleteRequest, UserGroupInfo, UserGroupMemberRequest, UserGroupUpdateRequest, UserInfo, WrapperMessageRecordDTO, marketingSendContentRequest, uplooadReportQuery };
|
package/dist/index.esm.js
CHANGED
@@ -835,6 +835,161 @@ var StudyType;
|
|
835
835
|
StudyType[StudyType["Unknown"] = 99] = "Unknown";
|
836
836
|
})(StudyType || (StudyType = {}));
|
837
837
|
|
838
|
+
//todo 以下js定义,后续要慢慢移除
|
839
|
+
const ArticleLibType = {
|
840
|
+
Public: '公开库',
|
841
|
+
Private: '私有库',
|
842
|
+
Draft: '草稿库',
|
843
|
+
Other: '其他租户私有库',
|
844
|
+
};
|
845
|
+
const FormLibType = {
|
846
|
+
Public: '公开库',
|
847
|
+
Private: '私有库',
|
848
|
+
Draft: '草稿库',
|
849
|
+
Other: '其他租户私有库',
|
850
|
+
};
|
851
|
+
const LabelLibType = {
|
852
|
+
Public: '公开库',
|
853
|
+
Private: '私有库',
|
854
|
+
};
|
855
|
+
var FormType;
|
856
|
+
(function (FormType) {
|
857
|
+
FormType[FormType["Form"] = 1] = "Form";
|
858
|
+
FormType[FormType["Tree"] = 2] = "Tree";
|
859
|
+
})(FormType || (FormType = {}));
|
860
|
+
var QuestionItemType;
|
861
|
+
(function (QuestionItemType) {
|
862
|
+
QuestionItemType[QuestionItemType["FirstTitle"] = 1] = "FirstTitle";
|
863
|
+
QuestionItemType[QuestionItemType["SecondTitle"] = 2] = "SecondTitle";
|
864
|
+
QuestionItemType[QuestionItemType["ThirdTitle"] = 3] = "ThirdTitle";
|
865
|
+
QuestionItemType[QuestionItemType["FormItem"] = 4] = "FormItem";
|
866
|
+
})(QuestionItemType || (QuestionItemType = {}));
|
867
|
+
const FormTypeOptions = [
|
868
|
+
{
|
869
|
+
label: '表单',
|
870
|
+
value: FormType.Form,
|
871
|
+
},
|
872
|
+
{
|
873
|
+
label: '表单树',
|
874
|
+
value: FormType.Tree,
|
875
|
+
},
|
876
|
+
];
|
877
|
+
var FormRuleType;
|
878
|
+
(function (FormRuleType) {
|
879
|
+
/** 表单内置评估规则 */
|
880
|
+
FormRuleType[FormRuleType["BuiltInRules"] = 1] = "BuiltInRules";
|
881
|
+
/** 联动计算规则 */
|
882
|
+
FormRuleType[FormRuleType["InlineCalculation"] = 2] = "InlineCalculation";
|
883
|
+
/** 数值检验规则 */
|
884
|
+
FormRuleType[FormRuleType["Validation"] = 3] = "Validation";
|
885
|
+
/** 未知 */
|
886
|
+
FormRuleType[FormRuleType["Unknown"] = 99] = "Unknown";
|
887
|
+
})(FormRuleType || (FormRuleType = {}));
|
888
|
+
var FormLibraryType;
|
889
|
+
(function (FormLibraryType) {
|
890
|
+
FormLibraryType[FormLibraryType["Public"] = 1] = "Public";
|
891
|
+
FormLibraryType[FormLibraryType["Private"] = 2] = "Private";
|
892
|
+
FormLibraryType[FormLibraryType["Draft"] = 3] = "Draft";
|
893
|
+
FormLibraryType[FormLibraryType["Other"] = 4] = "Other";
|
894
|
+
FormLibraryType[FormLibraryType["Custom"] = 1000] = "Custom";
|
895
|
+
})(FormLibraryType || (FormLibraryType = {}));
|
896
|
+
const FormLibraryTypeOptions = [
|
897
|
+
{
|
898
|
+
value: FormLibraryType.Public,
|
899
|
+
label: '公开库',
|
900
|
+
},
|
901
|
+
{
|
902
|
+
value: FormLibraryType.Private,
|
903
|
+
label: '私有库',
|
904
|
+
},
|
905
|
+
{
|
906
|
+
value: FormLibraryType.Draft,
|
907
|
+
label: '草稿库',
|
908
|
+
},
|
909
|
+
{
|
910
|
+
value: FormLibraryType.Other,
|
911
|
+
label: '其他租户私有库',
|
912
|
+
},
|
913
|
+
{
|
914
|
+
value: FormLibraryType.Custom,
|
915
|
+
label: '',
|
916
|
+
},
|
917
|
+
];
|
918
|
+
function processFormQueryParams(params, type, userInfo) {
|
919
|
+
switch (type) {
|
920
|
+
case FormLibraryType.Public: {
|
921
|
+
params.visibility = '*';
|
922
|
+
params.statusList = ['3'];
|
923
|
+
break;
|
924
|
+
}
|
925
|
+
case FormLibraryType.Private: {
|
926
|
+
params.visibility = userInfo.tenantId;
|
927
|
+
if (params.status) {
|
928
|
+
params.statusList = [params.status];
|
929
|
+
}
|
930
|
+
else {
|
931
|
+
params.statusList = ['2', '4'];
|
932
|
+
}
|
933
|
+
break;
|
934
|
+
}
|
935
|
+
case FormLibraryType.Draft: {
|
936
|
+
params.visibility = userInfo.tenantId;
|
937
|
+
params.isDraft = 1;
|
938
|
+
params.statusList = ['1', '2'];
|
939
|
+
break;
|
940
|
+
}
|
941
|
+
case FormLibraryType.Other: {
|
942
|
+
params.statusList = ['2', '4'];
|
943
|
+
break;
|
944
|
+
}
|
945
|
+
}
|
946
|
+
}
|
947
|
+
//对比两个表单是否一致
|
948
|
+
function isFormEqual(left, right) {
|
949
|
+
if (left === right) {
|
950
|
+
return true;
|
951
|
+
}
|
952
|
+
if (left.id !== right.id) {
|
953
|
+
return false;
|
954
|
+
}
|
955
|
+
if ((left.value || '') != (right.value || '')) {
|
956
|
+
return false;
|
957
|
+
}
|
958
|
+
if (left.group) {
|
959
|
+
if (left.group.length != right.group.length) {
|
960
|
+
return false;
|
961
|
+
}
|
962
|
+
for (let i = 0; i < left.group.length; i++) {
|
963
|
+
if (!isFormEqual(left.group[i], right.group[i])) {
|
964
|
+
return false;
|
965
|
+
}
|
966
|
+
}
|
967
|
+
}
|
968
|
+
// 如果有子项,递归查找
|
969
|
+
if ('column' in left && left.column?.length) {
|
970
|
+
if (left.column.length != right.column.length) {
|
971
|
+
return false;
|
972
|
+
}
|
973
|
+
for (let i = 0; i < left.column.length; i++) {
|
974
|
+
if (!isFormEqual(left.column[i], right.column[i])) {
|
975
|
+
return false;
|
976
|
+
}
|
977
|
+
}
|
978
|
+
}
|
979
|
+
// 如果是动态类型且有子项,递归查找
|
980
|
+
if ('children' in left && left.children?.column?.length) {
|
981
|
+
if (left.children.column.length != right.children.column.length) {
|
982
|
+
return false;
|
983
|
+
}
|
984
|
+
for (let i = 0; i < left.children.column.length; i++) {
|
985
|
+
if (!isFormEqual(left.children.column[i], right.children.column[i])) {
|
986
|
+
return false;
|
987
|
+
}
|
988
|
+
}
|
989
|
+
}
|
990
|
+
return true;
|
991
|
+
}
|
992
|
+
|
838
993
|
class _ShcpApiSdk {
|
839
994
|
init(config) {
|
840
995
|
this.config = config;
|
@@ -3451,5 +3606,5 @@ class UserGroupApi {
|
|
3451
3606
|
}
|
3452
3607
|
}
|
3453
3608
|
|
3454
|
-
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, FileApi, 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 };
|
3609
|
+
export { AggregateType, AppCategory, AppCategoryOptions, AppClientApi, AppClientPageConfigApi, AppClientSettingApi, AppPlatformType, ArticleLibType, CommonDictApi, CommonRightApi, ConsumerApi, ConsumerBindApi, ConsumerDeviceApi, ConsumerDeviceStatus, ConsumerDeviceStatusOptions, ConsumerFavoriteApi, ConsumerMarkType, ConsumerMarkTypeOptions, ConsumerRightStatus, ConsumerRightStatusOptions, DeliveryMethod, DeliveryMethodOptions, DeviceApi, DeviceStatus, DeviceStatusOptions, DeviceType, DeviceTypeOptions, DeviceUserApi, DiseaseCareServiceFlowStatusOptions, ErrCode, FileApi, FileType, FileTypeOptions, FormLibType, FormLibraryType, FormLibraryTypeOptions, FormRuleType, FormType, FormTypeOptions, Gender, GenderOptions, GroupJoinType, GroupJoinTypeOptions, HealthCommonApi, HealthMetricApi, HealthProfileApi, HealthRecordType, HealthRecordTypeOptions, HealthSelfAssessApi, HealthServiceType, HealthServiceTypeOptions, HealthStudyPlanExecMethodOptions, HealthStudyServiceFlowStatusOptions, HealthToolApi, HelpCenterApi, HuaWeiWatchMetricCategory, ImUserApi, InterviewServiceTaskStatusOptions, KmArticleApi, KmFormApi, KmFormRuleRelationApi, LabelLibType, 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, QuestionItemType, 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, isFormEqual, processFormQueryParams };
|
3455
3610
|
//# sourceMappingURL=index.esm.js.map
|