1# JS API Changes of the Bundle Management Framework 2 3The table below lists the APIs changes of the bundle management framework in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release. 4 5## API Changes 6 7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| bundleInfo | BundleInfo | readonly extensionAbilityInfo: Array\<ExtensionAbilityInfo>; | Added| 10| bundleInfo | ReqPermissionDetail | reasonId: number; | Added| 11| hapModuleInfo | HapModuleInfo | readonly metadata: Array\<Metadata>; | Added| 12| hapModuleInfo | HapModuleInfo | readonly extensionAbilityInfo: Array\<ExtensionAbilityInfo>; | Added| 13| hapModuleInfo | HapModuleInfo | readonly mainElementName: string; | Added| 14| metadata | Metadata | resource: string; | Added| 15| metadata | Metadata | value: string; | Added| 16| metadata | Metadata | name: string; | Added| 17| ohos.bundle | bundle | isModuleRemovable(bundleName: string, moduleName: string, callback: AsyncCallback\<boolean>): void;<br>isModuleRemovable(bundleName: string, moduleName: string): Promise\<boolean>; | Added| 18| ohos.bundle | bundle | setModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: UpgradeFlag, callback: AsyncCallback\<void>):void;<br>setModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: UpgradeFlag): Promise\<void>; | Added| 19| ohos.bundle | bundle | queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, userId: number, callback: AsyncCallback\<Array\<ExtensionAbilityInfo>>): void;<br>queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, callback: AsyncCallback\<Array\<ExtensionAbilityInfo>>): void;<br>queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, userId?: number): Promise\<Array\<ExtensionAbilityInfo>>; | Added| 20| ohos.bundle | UpgradeFlag | RELATION_UPGRADE = 2 | Added| 21| ohos.bundle | UpgradeFlag | SINGLE_UPGRADE = 1 | Added| 22| ohos.bundle | UpgradeFlag | NOT_UPGRADE = 0 | Added| 23| ohos.bundle | ExtensionAbilityType | UNSPECIFIED = 20 | Added| 24| ohos.bundle | ExtensionAbilityType | WINDOW = 10 | Added| 25| ohos.bundle | ExtensionAbilityType | BACKUP = 9 | Added| 26| ohos.bundle | ExtensionAbilityType | WALLPAPER = 8 | Added| 27| ohos.bundle | ExtensionAbilityType | STATIC_SUBSCRIBER = 7 | Added| 28| ohos.bundle | ExtensionAbilityType | FILE_SHARE = 6 | Added| 29| ohos.bundle | ExtensionAbilityType | DATA_SHARE = 5 | Added| 30| ohos.bundle | ExtensionAbilityType | ACCESSIBILITY = 4 | Added| 31| ohos.bundle | ExtensionAbilityType | SERVICE = 3 | Added| 32| ohos.bundle | ExtensionAbilityType | INPUT_METHOD = 2 | Added| 33| ohos.bundle | ExtensionAbilityType | WORK_SCHEDULER = 1 | Added| 34| ohos.bundle | ExtensionAbilityType | FORM = 0 | Added| 35| ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_METADATA = 0x00000020 | Added| 36| ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_APPLICATION = 0x00000004 | Added| 37| ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_PERMISSION = 0x00000002 | Added| 38| ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_DEFAULT = 0x00000000 | Added| 39| ohos.bundle | BundleFlag | GET_BUNDLE_WITH_EXTENSION_ABILITY = 0x00000020 | Added| 40