@hyext/types-ext-sdk-hy 4.1.2-beta.1 → 4.1.3-beta.2

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 (2) hide show
  1. package/index.d.ts +81 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1078,6 +1078,30 @@ namespace advance {
1078
1078
  * @returns 调用结果
1079
1079
  */
1080
1080
  function offUserCardPackageUpdate(): Promise<void>;
1081
+ /**
1082
+ * 设置通用配置是否显
1083
+ * @param params - 传入参数
1084
+ * @returns 调用结果
1085
+ */
1086
+ function setNativeConfigVisible(params: SetNativeConfigVisibleReq): Promise<void>;
1087
+ /**
1088
+ * 获取通用配置的值
1089
+ * @param params - 传入参数
1090
+ * @returns 调用结果
1091
+ */
1092
+ function getNativeConfigValue(params: GetNativeConfigValueReq): Promise<GetNativeConfigValueRsp>;
1093
+ /**
1094
+ * 监听通用配置的值变化
1095
+ * @param params - 传入参数
1096
+ * @returns 调用结果
1097
+ */
1098
+ function onNativeConfigValueChange(params: OnNativeConfigValueChangeReq): Promise<void>;
1099
+ /**
1100
+ * 取消监听通用配置的值变化
1101
+ * @param params - 传入参数
1102
+ * @returns 调用结果
1103
+ */
1104
+ function offNativeConfigValueChange(params: OffNativeConfigValueChangeReq): Promise<void>;
1081
1105
  }
1082
1106
 
1083
1107
  /**
@@ -1982,6 +2006,63 @@ type OnUserCardPackageUpdateReq = {
1982
2006
  callback: UserCardPackageUpdate;
1983
2007
  };
1984
2008
 
2009
+ /**
2010
+ * 设置通用配置是否显参数
2011
+ * @property key - 通用配置的key
2012
+ * @property visible - 是否显示
2013
+ */
2014
+ type SetNativeConfigVisibleReq = {
2015
+ key: string;
2016
+ visible: boolean;
2017
+ };
2018
+
2019
+ /**
2020
+ * 获取通用配置的值调用结果
2021
+ * @property value - 对应配置的初始值
2022
+ */
2023
+ type GetNativeConfigValueRsp = {
2024
+ value: string;
2025
+ };
2026
+
2027
+ /**
2028
+ * 获取通用配置的值参数
2029
+ * @property key - 通用配置的key
2030
+ */
2031
+ type GetNativeConfigValueReq = {
2032
+ key: string;
2033
+ };
2034
+
2035
+ /**
2036
+ * 通用配置的值变化回调数据
2037
+ * @property value - 最新的值
2038
+ */
2039
+ type NativeConfigValueChangeNotice = {
2040
+ value: string;
2041
+ };
2042
+
2043
+ /**
2044
+ * @param notices - 回调数据
2045
+ */
2046
+ type NativeConfigValueChange = (notices: NativeConfigValueChangeNotice) => void;
2047
+
2048
+ /**
2049
+ * 监听通用配置的值变化参数
2050
+ * @property key - 通用配置的key
2051
+ * @property callback - 通用配置的值变化回调
2052
+ */
2053
+ type OnNativeConfigValueChangeReq = {
2054
+ key: string;
2055
+ callback: NativeConfigValueChange;
2056
+ };
2057
+
2058
+ /**
2059
+ * 监听通用配置的值变化参数
2060
+ * @property key - 通用配置的key
2061
+ */
2062
+ type OffNativeConfigValueChangeReq = {
2063
+ key: string;
2064
+ };
2065
+
1985
2066
  /**
1986
2067
  * app模块
1987
2068
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "4.1.2-beta.1",
3
+ "version": "4.1.3-beta.2",
4
4
  "description": "TypeScript definitions for sdk",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",