bmc-common-resource 1.1.89 → 1.1.91

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.
@@ -47,10 +47,10 @@ export declare function getAllClassifyRoomsAndGroups(excludeClassifyCodes: strin
47
47
  * 根据产品分类获取对应的分组类型
48
48
  * @param productCategory 产品分类代码(如HALL_CABINET)
49
49
  * @param mainCategoryCode 主分类code (如CABINET_PANEL)
50
- * @param classifyType 品项类型(可选),如果提供则在该品项下查找
50
+ * @param classifyType 品项类型,如果提供则在该品项下查找
51
51
  * @param classifyRoomGroupMap 品项房间分组映射对象(JSON格式)
52
52
  * @param groupCategoryMap 分组分类映射对象(JSON格式)
53
53
  * @returns 匹配的分组类型代码(如CABINET_TYPE),未找到返回null
54
54
  */
55
- export declare function getGroupTypeByProductCategory(productCategory: string, mainCategoryCode?: string, classifyType?: string, classifyRoomGroupMap?: any, groupCategoryMap?: any): string | null;
55
+ export declare function getGroupTypeByProductCategory(productCategory: string, mainCategoryCode: string, classifyType: string, classifyRoomGroupMap: any, groupCategoryMap: any): string | null;
56
56
  export default CLASSIFY_ROOM_GROUP_MAP;
@@ -8,22 +8,22 @@ export declare const CLASSIFY_GROUP_TYPES: Record<string, Record<string, GroupTy
8
8
  export declare const GROUP_TYPES: Record<string, GroupType>;
9
9
  /**
10
10
  * 获取排序后的分组类型数组
11
- * @param groupCategoryMap 分组、产品分类映射
11
+ * @param groupCategoryMap 分组、产品分类映射(JSON格式)
12
12
  * @returns 按order排序的分组类型数组
13
13
  */
14
- export declare function getSortedGroupTypes(groupCategoryMap: Record<string, GroupType>): GroupType[];
14
+ export declare function getSortedGroupTypes(groupCategoryMap: any): any[];
15
15
  /**
16
16
  * 根据分组类型键获取分组信息
17
17
  * @param groupTypeKey 分组类型键
18
- * @param groupCategoryMap 分组、产品分类映射
18
+ * @param groupCategoryMap 分组、产品分类映射(JSON格式)
19
19
  * @returns 分组类型信息
20
20
  */
21
- export declare function getGroupTypeByKey(groupTypeKey: string, groupCategoryMap: Record<string, GroupType>): GroupType | null;
21
+ export declare function getGroupTypeByKey(groupTypeKey: string, groupCategoryMap: any): any | null;
22
22
  /**
23
23
  * 获取分组可用的产品分类
24
24
  * @param groupTypeKey 分组类型键
25
- * @param groupCategoryMap 分组、产品分类映射
25
+ * @param groupCategoryMap 分组、产品分类映射(JSON格式)
26
26
  * @returns 格式化的产品分类对象数组
27
27
  */
28
- export declare function getProductCategoriesByGroupType(groupTypeKey: string, groupCategoryMap: Record<string, GroupType>): ProductCategoryData[];
28
+ export declare function getProductCategoriesByGroupType(groupTypeKey: string, groupCategoryMap: any): ProductCategoryData[];
29
29
  export default BASE_GROUP_TYPES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmc-common-resource",
3
- "version": "1.1.89",
3
+ "version": "1.1.91",
4
4
  "description": "通用枚举、常量和资源的npm包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",