From 5f4e83d7e59263efde5ddc099fd7ba58db429a62 Mon Sep 17 00:00:00 2001 From: zhaogan Date: Tue, 15 Nov 2022 16:17:14 +0800 Subject: [PATCH] Issue: #I619ZB Description: monthly: fix alarms of d.ts files Sig: SIG_ApplicaitonFramework Feature or Bugfix: Feature Binary Source: No Signed-off-by: zhaogan --- api/@ohos.bundle.appControl.d.ts | 12 ++--- api/@ohos.bundle.bundleManager.d.ts | 38 +++++++-------- api/@ohos.bundle.d.ts | 19 -------- api/@ohos.bundle.defaultAppManager.d.ts | 52 ++++++++++----------- api/@ohos.bundle.distributedBundle.d.ts | 16 +++---- api/@ohos.bundle.freeInstall.d.ts | 8 ++-- api/@ohos.bundle.innerBundleManager.d.ts | 5 +- api/@ohos.bundle.installer.d.ts | 28 +++++------ api/@ohos.bundle.launcherBundleManager.d.ts | 8 ++-- api/@ohos.distributedBundle.d.ts | 1 - api/@ohos.zlib.d.ts | 10 ---- api/@system.package.d.ts | 5 +- api/bundle/PermissionDef.d.ts | 1 - api/bundle/abilityInfo.d.ts | 1 - api/bundle/applicationInfo.d.ts | 7 +-- api/bundle/bundleInfo.d.ts | 3 -- api/bundle/bundleInstaller.d.ts | 3 -- api/bundle/customizeData.d.ts | 1 - api/bundle/elementName.d.ts | 2 - api/bundle/hapModuleInfo.d.ts | 1 - api/bundle/launcherAbilityInfo.d.ts | 14 ------ api/bundle/moduleInfo.d.ts | 1 - api/bundle/remoteAbilityInfo.d.ts | 6 +-- api/bundle/shortcutInfo.d.ts | 23 ++------- 24 files changed, 96 insertions(+), 169 deletions(-) diff --git a/api/@ohos.bundle.appControl.d.ts b/api/@ohos.bundle.appControl.d.ts index 519affca68..d780a5e477 100644 --- a/api/@ohos.bundle.appControl.d.ts +++ b/api/@ohos.bundle.appControl.d.ts @@ -33,7 +33,7 @@ declare namespace appControl { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700005 - The specified appId was not found. + * @throws { BusinessError } 17700005 - The specified app ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 9 @@ -49,7 +49,7 @@ declare namespace appControl { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700005 - The specified appId was not found. + * @throws { BusinessError } 17700005 - The specified app ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 9 @@ -64,7 +64,7 @@ declare namespace appControl { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700005 - The specified appId was not found. + * @throws { BusinessError } 17700005 - The specified app ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 9 @@ -79,7 +79,7 @@ declare namespace appControl { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700005 - The specified appId was not found. + * @throws { BusinessError } 17700005 - The specified app ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 9 @@ -94,7 +94,7 @@ declare namespace appControl { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700005 - The specified appId was not found. + * @throws { BusinessError } 17700005 - The specified app ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 9 @@ -109,7 +109,7 @@ declare namespace appControl { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700005 - The specified appId was not found. + * @throws { BusinessError } 17700005 - The specified app ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 9 diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 49c47e6b98..4899df4c73 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -575,7 +575,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -594,7 +594,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -612,7 +612,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -631,7 +631,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -647,7 +647,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @param { AsyncCallback } callback - The callback of getting a list of BundleInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -663,7 +663,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @returns { Promise> } Returns a list of BundleInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -678,7 +678,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @param { AsyncCallback } callback - The callback of getting a list of ApplicationInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -694,7 +694,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @returns { Promise> } Returns a list of ApplicationInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -849,7 +849,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700030 - The specified bundleName does not support cleaning cache files. + * @throws { BusinessError } 17700030 - The specified bundle does not support clearing of cache files. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -864,7 +864,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700030 - The specified bundleName does not support cleaning cache files. + * @throws { BusinessError } 17700030 - The specified bundle does not support clearing of cache files. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -994,7 +994,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -1012,7 +1012,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -1031,7 +1031,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -1048,7 +1048,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700002 - The specified moduleName is not existed. * @throws { BusinessError } 17700003 - The specified abilityName is not existed. - * @throws { BusinessError } 17700024 - The specified metadataName is not existed or the profile is not json-format. + * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @throws { BusinessError } 17700029 - The specified ability is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -1065,7 +1065,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700002 - The specified moduleName is not existed. * @throws { BusinessError } 17700003 - The specified abilityName is not existed. - * @throws { BusinessError } 17700024 - The specified metadataName is not existed or the profile is not json-format. + * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @throws { BusinessError } 17700029 - The specified ability is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -1082,7 +1082,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700002 - The specified moduleName is not existed. * @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed. - * @throws { BusinessError } 17700024 - The specified metadataName is not existed or the profile is not json-format. + * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 @@ -1098,7 +1098,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700002 - The specified moduleName is not existed. * @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed. - * @throws { BusinessError } 17700024 - The specified metadataName is not existed or the profile is not json-format. + * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 @@ -1227,7 +1227,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -1246,7 +1246,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 7279d03950..7f0fba3c7d 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -27,7 +27,6 @@ import { BundleInstaller } from './bundle/bundleInstaller'; * @name bundle * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager */ @@ -37,8 +36,6 @@ declare namespace bundle { * @name BundleFlag * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.BundleFlag, ohos.bundle.bundleManager.ApplicationFlag or * ohos.bundle.bundleManager.AbilityFlag @@ -77,8 +74,6 @@ declare namespace bundle { * @name ColorMode * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 */ export enum ColorMode { @@ -91,8 +86,6 @@ declare namespace bundle { * @name GrantStatus * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.PermissionGrantState */ @@ -105,8 +98,6 @@ declare namespace bundle { * @name AbilityType * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.AbilityType */ @@ -144,8 +135,6 @@ declare namespace bundle { * @name AbilitySubType * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 */ export enum AbilitySubType { @@ -157,8 +146,6 @@ declare namespace bundle { * @name DisplayOrientation * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.DisplayOrientation */ @@ -196,8 +183,6 @@ declare namespace bundle { * @name LaunchMode * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.LaunchType */ @@ -221,8 +206,6 @@ declare namespace bundle { * @name BundleOptions * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 */ export interface BundleOptions { @@ -238,8 +221,6 @@ declare namespace bundle { * @name InstallErrorCode * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA * @deprecated since 9 */ export enum InstallErrorCode{ diff --git a/api/@ohos.bundle.defaultAppManager.d.ts b/api/@ohos.bundle.defaultAppManager.d.ts index 65a065a00c..28b075eab9 100644 --- a/api/@ohos.bundle.defaultAppManager.d.ts +++ b/api/@ohos.bundle.defaultAppManager.d.ts @@ -20,62 +20,62 @@ import { ElementName } from './bundleManager/elementName'; /** * Default application manager. * @namespace defaultAppManager - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ declare namespace defaultAppManager { /** * The constant for application type. * @enum {number} - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ export enum ApplicationType { /** * Default browser identifier. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ BROWSER = "Web Browser", /** * Default image identifier. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ IMAGE = "Image Gallery", /** * Default audio identifier. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ AUDIO = "Audio Player", /** * Default video identifier. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ VIDEO = "Video Player", /** * Default PDF identifier. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ PDF = "PDF Viewer", /** * Default word identifier. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ WORD = "Word Viewer", /** * Default excel identifier. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ EXCEL = "Excel Viewer", /** * Default PPT identifier. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ PPT = "PPT Viewer", @@ -87,7 +87,7 @@ declare namespace defaultAppManager { * @param { AsyncCallback } callback - The callback of querying default application result. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ function isDefaultApplication(type: string, callback: AsyncCallback) : void; @@ -98,7 +98,7 @@ declare namespace defaultAppManager { * @returns { Promise } Return true if caller is default application; return false otherwise. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since 9 */ function isDefaultApplication(type: string) : Promise; @@ -112,10 +112,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700004 - The specified user id is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700023 - The specified default app does not exist. * @throws { BusinessError } 17700025 - The specified type is invalid. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi * @since 9 */ @@ -131,10 +131,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700004 - The specified user id is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700023 - The specified default app does not exist. * @throws { BusinessError } 17700025 - The specified type is invalid. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi * @since 9 */ @@ -150,10 +150,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700004 - The specified user id is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700025 - The specified type is invalid. - * @throws { BusinessError } 17700028 - The specified ability and type does not match. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @throws { BusinessError } 17700028 - The ability does not match the type. + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi * @since 9 */ @@ -170,10 +170,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700004 - The specified user id is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700025 - The specified type is invalid. - * @throws { BusinessError } 17700028 - The specified ability and type does not match. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @throws { BusinessError } 17700028 - The ability does not match the type. + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi * @since 9 */ @@ -188,9 +188,9 @@ declare namespace defaultAppManager { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700004 - The specified user id is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700025 - The specified type is invalid. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi * @since 9 */ @@ -206,9 +206,9 @@ declare namespace defaultAppManager { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 17700004 - The specified user id is not found. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700025 - The specified type is invalid. - * @syscap SystemCapability.BundleManager.BundleFramework.DefaultAppManager + * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi * @since 9 */ diff --git a/api/@ohos.bundle.distributedBundle.d.ts b/api/@ohos.bundle.distributedBundle.d.ts index 76c67d47bd..a5b16cec77 100644 --- a/api/@ohos.bundle.distributedBundle.d.ts +++ b/api/@ohos.bundle.distributedBundle.d.ts @@ -35,7 +35,7 @@ declare namespace distributedBundle { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 17700001 - The specified bundle name is not found. * @throws { BusinessError } 17700003 - The specified ability name is not found. - * @throws { BusinessError } 17700007 - The specified device id is not found. + * @throws { BusinessError } 17700007 - The specified device ID is not found. * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi @@ -53,7 +53,7 @@ declare namespace distributedBundle { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 17700001 - The specified bundle name is not found. * @throws { BusinessError } 17700003 - The specified ability name is not found. - * @throws { BusinessError } 17700007 - The specified device id is not found. + * @throws { BusinessError } 17700007 - The specified device ID is not found. * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi @@ -71,7 +71,7 @@ declare namespace distributedBundle { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 17700001 - The specified bundle name is not found. * @throws { BusinessError } 17700003 - The specified ability name is not found. - * @throws { BusinessError } 17700007 - The specified device id is not found. + * @throws { BusinessError } 17700007 - The specified device ID is not found. * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi @@ -89,7 +89,7 @@ declare namespace distributedBundle { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 17700001 - The specified bundle name is not found. * @throws { BusinessError } 17700003 - The specified ability name is not found. - * @throws { BusinessError } 17700007 - The specified device id is not found. + * @throws { BusinessError } 17700007 - The specified device ID is not found. * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi @@ -108,7 +108,7 @@ declare namespace distributedBundle { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 17700001 - The specified bundle name is not found. * @throws { BusinessError } 17700003 - The specified ability name is not found. - * @throws { BusinessError } 17700007 - The specified device id is not found. + * @throws { BusinessError } 17700007 - The specified device ID is not found. * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi @@ -127,7 +127,7 @@ declare namespace distributedBundle { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 17700001 - The specified bundle name is not found. * @throws { BusinessError } 17700003 - The specified ability name is not found. - * @throws { BusinessError } 17700007 - The specified device id is not found. + * @throws { BusinessError } 17700007 - The specified device ID is not found. * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi @@ -146,7 +146,7 @@ declare namespace distributedBundle { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 17700001 - The specified bundle name is not found. * @throws { BusinessError } 17700003 - The specified ability name is not found. - * @throws { BusinessError } 17700007 - The specified device id is not found. + * @throws { BusinessError } 17700007 - The specified device ID is not found. * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi @@ -165,7 +165,7 @@ declare namespace distributedBundle { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 17700001 - The specified bundle name is not found. * @throws { BusinessError } 17700003 - The specified ability name is not found. - * @throws { BusinessError } 17700007 - The specified device id is not found. + * @throws { BusinessError } 17700007 - The specified device ID is not found. * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi diff --git a/api/@ohos.bundle.freeInstall.d.ts b/api/@ohos.bundle.freeInstall.d.ts index 1d42117b9b..331dbced29 100644 --- a/api/@ohos.bundle.freeInstall.d.ts +++ b/api/@ohos.bundle.freeInstall.d.ts @@ -88,7 +88,7 @@ declare namespace freeInstall { } /** - * Sets wether to upgrade the module. + * Sets whether to upgrade the module. * @permission ohos.permission.INSTALL_BUNDLE * @param { string } bundleName - Indicates the bundle name of the application. * @param { string } moduleName - Indicates the module name of the application. @@ -106,7 +106,7 @@ declare namespace freeInstall { function setHapModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: UpgradeFlag, callback: AsyncCallback) : void; /** - * Sets wether to upgrade the module. + * Sets whether to upgrade the module. * @permission ohos.permission.INSTALL_BUNDLE * @param { string } bundleName - Indicates the bundle name of the application. * @param { string } moduleName - Indicates the module name of the application. @@ -158,7 +158,7 @@ declare namespace freeInstall { function isHapModuleRemovable(bundleName: string, moduleName: string): Promise; /** - * Obtains bundlePackInfo based on bundleName and bundleFlags. + * Obtains bundlePackInfo based on bundleName and bundlePackFlags. * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. * @param { BundlePackFlag } bundlePackFlag - Indicates the application bundle pack flag to be queried. @@ -174,7 +174,7 @@ declare namespace freeInstall { function getBundlePackInfo(bundleName: string, bundlePackFlag : BundlePackFlag, callback: AsyncCallback): void; /** - * Obtains bundlePackInfo based on bundleName and bundleFlags. + * Obtains bundlePackInfo based on bundleName and bundlePackFlags. * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. * @param { BundlePackFlag } bundlePackFlag - Indicates the application bundle pack flag to be queried. diff --git a/api/@ohos.bundle.innerBundleManager.d.ts b/api/@ohos.bundle.innerBundleManager.d.ts index f9d0bb358e..526e4bee19 100644 --- a/api/@ohos.bundle.innerBundleManager.d.ts +++ b/api/@ohos.bundle.innerBundleManager.d.ts @@ -23,7 +23,6 @@ import { ShortcutInfo } from './bundle/shortcutInfo'; * @name innerBundleManager * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @systemapi Hide this for inner system use * @deprecated since 9 * @useinstead ohos.bundle.launcherBundleManager @@ -53,7 +52,7 @@ declare namespace innerBundleManager { * @syscap SystemCapability.BundleManager.BundleFramework * @param type Indicates the command should be implement. * @param LauncherStatusCallback Indicates the callback to be register. - * @return Returns the result or error maeeage. + * @return { string | Promise } Returns the result of register. * @permission ohos.permission.LISTEN_BUNDLE_CHANGE * @systemapi Hide this for inner system use * @deprecated since 9 @@ -68,7 +67,7 @@ declare namespace innerBundleManager { * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework * @param type Indicates the command should be implement. - * @return Returns the result or error maeeage. + * @return { string | Promise } Returns the result of unregister. * @permission ohos.permission.LISTEN_BUNDLE_CHANGE * @systemapi Hide this for inner system use * @deprecated since 9 diff --git a/api/@ohos.bundle.installer.d.ts b/api/@ohos.bundle.installer.d.ts index 854e0b7d31..40ffa7185a 100644 --- a/api/@ohos.bundle.installer.d.ts +++ b/api/@ohos.bundle.installer.d.ts @@ -60,13 +60,13 @@ declare namespace installer { * @param { AsyncCallback } callback - The callback of installing haps result. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'. * @throws { BusinessError } 401 - Input parameters check failed. - * @throws { BusinessError } 17700004 - The specified userId is not existed. - * @throws { BusinessError } 17700010 - To parse file of config.json or module.json failed. - * @throws { BusinessError } 17700011 - To verify signature failed. - * @throws { BusinessError } 17700012 - Invalid hap file path or too large file size. - * @throws { BusinessError } 17700015 - Multiple haps have inconsistent configured information. - * @throws { BusinessError } 17700016 - No disk space left for installation. - * @throws { BusinessError } 17700017 - Downgrade installation is prohibited. + * @throws { BusinessError } 17700004 - The specified user ID is not found. + * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed. + * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified. + * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large. + * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information. + * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space. + * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early. * @throws { BusinessError } 17700101 - The system service is excepted. * @throws { BusinessError } 17700103 - I/O operation is failed. * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -79,11 +79,11 @@ declare namespace installer { * Uninstall an application. * @permission ohos.permission.INSTALL_BUNDLE * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled. - * @param { InstallParam } installParam - Indicates other parameters required for the uninstallation. + * @param { InstallParam } installParam - Indicates other parameters required for the uninstall. * @param { AsyncCallback } callback - The callback of uninstalling application result. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'. * @throws { BusinessError } 401 - Input parameters check failed. - * @throws { BusinessError } 17700004 - The specified userId is not existed. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled. * @throws { BusinessError } 17700101 - The system service is excepted. * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -91,16 +91,16 @@ declare namespace installer { * @since 9 */ uninstall(bundleName: string, installParam: InstallParam, callback : AsyncCallback) : void; - + /** * recover an application. * @permission ohos.permission.INSTALL_BUNDLE * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled. - * @param { InstallParam } installParam - Indicates other parameters required for the uninstallation. - * @param { AsyncCallback } callback - The callback of recoverring application result. + * @param { InstallParam } installParam - Indicates other parameters required for the uninstall. + * @param { AsyncCallback } callback - The callback of recovering application result. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'. * @throws { BusinessError } 401 - Input parameters check failed. - * @throws { BusinessError } 17700004 - The specified userId is not existed. + * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -122,7 +122,7 @@ declare namespace installer { * @since 9 */ moduleName: string; - + /** * Indicates the hash value * @syscap SystemCapability.BundleManager.BundleFramework.Core diff --git a/api/@ohos.bundle.launcherBundleManager.d.ts b/api/@ohos.bundle.launcherBundleManager.d.ts index 11759af3a6..1553297a6e 100644 --- a/api/@ohos.bundle.launcherBundleManager.d.ts +++ b/api/@ohos.bundle.launcherBundleManager.d.ts @@ -36,7 +36,7 @@ declare namespace launcherBundleManager { * @throws {BusinessError} 401 - The parameter check failed. * @throws {BusinessError} 801 - Capability not support. * @throws {BusinessError} 17700001 - The specified bundle name is not found. - * @throws {BusinessError} 17700004 - The specified user id is not found. + * @throws {BusinessError} 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @systemapi * @since 9 @@ -53,7 +53,7 @@ declare namespace launcherBundleManager { * @throws {BusinessError} 401 - The parameter check failed. * @throws {BusinessError} 801 - Capability not support. * @throws {BusinessError} 17700001 - The specified bundle name is not found. - * @throws {BusinessError} 17700004 - The specified user id is not found. + * @throws {BusinessError} 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @systemapi * @since 9 @@ -68,7 +68,7 @@ declare namespace launcherBundleManager { * @throws {BusinessError} 201 - Verify permission denied. * @throws {BusinessError} 401 - The parameter check failed. * @throws {BusinessError} 801 - Capability not support. - * @throws {BusinessError} 17700004 - The specified user id is not found. + * @throws {BusinessError} 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @systemapi * @since 9 @@ -83,7 +83,7 @@ declare namespace launcherBundleManager { * @throws {BusinessError} 201 - Verify permission denied. * @throws {BusinessError} 401 - The parameter check failed. * @throws {BusinessError} 801 - Capability not support. - * @throws {BusinessError} 17700004 - The specified user id is not found. + * @throws {BusinessError} 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @systemapi * @since 9 diff --git a/api/@ohos.distributedBundle.d.ts b/api/@ohos.distributedBundle.d.ts index a00959bcb3..0edb99e97f 100644 --- a/api/@ohos.distributedBundle.d.ts +++ b/api/@ohos.distributedBundle.d.ts @@ -22,7 +22,6 @@ import { RemoteAbilityInfo } from './bundle/remoteAbilityInfo'; * @name distributedBundle * @since 8 * @syscap SystemCapability.BundleManager.DistributedBundleFramework - * @permission NA * @systemapi Hide this for inner system use * @deprecated since 9 * @useinstead ohos.bundle.distributeBundle diff --git a/api/@ohos.zlib.d.ts b/api/@ohos.zlib.d.ts index 6aca560c79..9230b0f9c4 100644 --- a/api/@ohos.zlib.d.ts +++ b/api/@ohos.zlib.d.ts @@ -20,8 +20,6 @@ declare namespace zlib { * @name ErrorCode * @since 7 * @syscap SystemCapability.BundleManager.Zlib - * @import NA - * @permission NA * @deprecated since 9 */ export enum ErrorCode { @@ -33,8 +31,6 @@ declare namespace zlib { * @name CompressLevel * @since 7 * @syscap SystemCapability.BundleManager.Zlib - * @import NA - * @permission NA */ export enum CompressLevel { COMPRESS_LEVEL_NO_COMPRESSION = 0, @@ -47,8 +43,6 @@ declare namespace zlib { * @name CompressStrategy * @since 7 * @syscap SystemCapability.BundleManager.Zlib - * @import NA - * @permission NA */ export enum CompressStrategy { COMPRESS_STRATEGY_DEFAULT_STRATEGY = 0, @@ -62,8 +56,6 @@ declare namespace zlib { * @name MemLevel * @since 7 * @syscap SystemCapability.BundleManager.Zlib - * @import NA - * @permission NA */ export enum MemLevel { MEM_LEVEL_MIN = 1, @@ -75,8 +67,6 @@ declare namespace zlib { * @name Options * @since 7 * @syscap SystemCapability.BundleManager.Zlib - * @import NA - * @permission NA */ interface Options { level?: CompressLevel; diff --git a/api/@system.package.d.ts b/api/@system.package.d.ts index 548e4ec621..130b0a3979 100644 --- a/api/@system.package.d.ts +++ b/api/@system.package.d.ts @@ -55,7 +55,7 @@ export interface CheckPackageHasInstalledOptions { fail?: (data: any, code: number) => void; /** - * Called when the excution is completed. + * Called when the execution is completed. * @syscap SystemCapability.BundleManager.BundleFramework * @since 3 */ @@ -65,12 +65,11 @@ export interface CheckPackageHasInstalledOptions { /** * @syscap SystemCapability.BundleManager.BundleFramework * @since 3 - * @import package from '@system.package'; * @deprecated since 9 */ export default class Package { /** - * Checks whethers an application exists, or whether a native application has been installed. + * Checks whether an application exists, or whether a native application has been installed. * @param options Options * @syscap SystemCapability.BundleManager.BundleFramework * @deprecated since 9 diff --git a/api/bundle/PermissionDef.d.ts b/api/bundle/PermissionDef.d.ts index 0f5f91ba38..fcb7d7a70d 100644 --- a/api/bundle/PermissionDef.d.ts +++ b/api/bundle/PermissionDef.d.ts @@ -17,7 +17,6 @@ * @name Indicates the defined permission details in file config.json * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @systemapi * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.PermissionDef diff --git a/api/bundle/abilityInfo.d.ts b/api/bundle/abilityInfo.d.ts index 582105fe21..a37c9d8b43 100644 --- a/api/bundle/abilityInfo.d.ts +++ b/api/bundle/abilityInfo.d.ts @@ -21,7 +21,6 @@ import bundle from './../@ohos.bundle'; * @name Obtains configuration information about an ability * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.AbilityInfo */ diff --git a/api/bundle/applicationInfo.d.ts b/api/bundle/applicationInfo.d.ts index 6b24191948..8f9f27ded1 100644 --- a/api/bundle/applicationInfo.d.ts +++ b/api/bundle/applicationInfo.d.ts @@ -20,7 +20,6 @@ import { CustomizeData } from './customizeData'; * @name Obtains configuration information about an application * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.ApplicationInfo */ @@ -71,7 +70,8 @@ export interface ApplicationInfo { * @default Indicates the label id of the application * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @deprecated since 9, use labelIndex + * @deprecated since 9 + * @useinstead ohos.bundle.bundleManager.ApplicationInfo.labelIndex */ readonly labelId: string; @@ -86,7 +86,8 @@ export interface ApplicationInfo { * @default Indicates the icon id of the application * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @deprecated since 9, use iconIndex + * @deprecated since 9 + * @useinstead ohos.bundle.bundleManager.ApplicationInfo.iconIndex */ readonly iconId: string; diff --git a/api/bundle/bundleInfo.d.ts b/api/bundle/bundleInfo.d.ts index fe6cf36753..de3c304a3f 100644 --- a/api/bundle/bundleInfo.d.ts +++ b/api/bundle/bundleInfo.d.ts @@ -21,7 +21,6 @@ import { HapModuleInfo } from './hapModuleInfo'; * @name The scene which is used * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.UsedScene * @@ -46,7 +45,6 @@ export interface UsedScene { * @name Indicates the required permissions details defined in file config.json * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.ReqPermissionDetail */ @@ -77,7 +75,6 @@ export interface ReqPermissionDetail { * @name Obtains configuration information about a bundle * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.BundleInfo */ diff --git a/api/bundle/bundleInstaller.d.ts b/api/bundle/bundleInstaller.d.ts index 337ad6bd27..95997273a7 100644 --- a/api/bundle/bundleInstaller.d.ts +++ b/api/bundle/bundleInstaller.d.ts @@ -20,7 +20,6 @@ import bundle from './../@ohos.bundle'; * @name Provides parameters required for installing or uninstalling an application. * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @systemapi Hide this for inner system use * @deprecated since 9 * @useinstead ohos.bundle.installer#InstallParam @@ -58,7 +57,6 @@ export interface InstallParam { * @name Indicates the install or uninstall status * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @systemapi Hide this for inner system use * @deprecated since 9 */ @@ -85,7 +83,6 @@ export interface InstallStatus { * @name Offers install, upgrade, and remove bundles on the devices. * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @systemapi Hide this for inner system use * @deprecated since 9 * @useinstead ohos.bundle.installer#BundleInstaller diff --git a/api/bundle/customizeData.d.ts b/api/bundle/customizeData.d.ts index 762a082e1e..8eb7c2f5fa 100644 --- a/api/bundle/customizeData.d.ts +++ b/api/bundle/customizeData.d.ts @@ -17,7 +17,6 @@ * @name Indicates the custom metadata * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.Metadata * diff --git a/api/bundle/elementName.d.ts b/api/bundle/elementName.d.ts index 605f8e19ef..662559af6f 100644 --- a/api/bundle/elementName.d.ts +++ b/api/bundle/elementName.d.ts @@ -20,8 +20,6 @@ * @name Contains basic Ability information, which uniquely identifies an ability * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * - * @permission N/A * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.ElementName */ diff --git a/api/bundle/hapModuleInfo.d.ts b/api/bundle/hapModuleInfo.d.ts index cf1c3282e5..c544a57d25 100644 --- a/api/bundle/hapModuleInfo.d.ts +++ b/api/bundle/hapModuleInfo.d.ts @@ -19,7 +19,6 @@ import { AbilityInfo } from "./abilityInfo"; * @name Obtains configuration information about an module. * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.HapModuleInfo */ diff --git a/api/bundle/launcherAbilityInfo.d.ts b/api/bundle/launcherAbilityInfo.d.ts index 31438d20dd..62bfc257a5 100644 --- a/api/bundle/launcherAbilityInfo.d.ts +++ b/api/bundle/launcherAbilityInfo.d.ts @@ -23,8 +23,6 @@ import { ElementName } from './elementName' * @name Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * - * @permission N/A * @systemapi Hide this for inner system use * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.LauncherAbilityInfo @@ -34,8 +32,6 @@ export interface LauncherAbilityInfo { * @name Obtains application info information about an launcher ability. * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * */ readonly applicationInfo: ApplicationInfo; @@ -43,8 +39,6 @@ export interface LauncherAbilityInfo { * @name Obtains element name about an launcher ability. * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * */ readonly elementName : ElementName; @@ -52,8 +46,6 @@ export interface LauncherAbilityInfo { * @name Obtains labelId about an launcher ability. * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * */ readonly labelId: number; @@ -61,8 +53,6 @@ export interface LauncherAbilityInfo { * @name Obtains iconId about an launcher ability. * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * */ readonly iconId: number; @@ -70,8 +60,6 @@ export interface LauncherAbilityInfo { * @name Obtains userId about an launcher ability. * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * */ readonly userId: number; @@ -79,8 +67,6 @@ export interface LauncherAbilityInfo { * @name Obtains installTime about an launcher ability. * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * */ readonly installTime : number; } diff --git a/api/bundle/moduleInfo.d.ts b/api/bundle/moduleInfo.d.ts index 2f23150f40..0f504cb0bb 100644 --- a/api/bundle/moduleInfo.d.ts +++ b/api/bundle/moduleInfo.d.ts @@ -17,7 +17,6 @@ * @name Stores module information about an application. * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.bundleManager.HapModuleInfo */ diff --git a/api/bundle/remoteAbilityInfo.d.ts b/api/bundle/remoteAbilityInfo.d.ts index 176c28d969..59e0630bd0 100644 --- a/api/bundle/remoteAbilityInfo.d.ts +++ b/api/bundle/remoteAbilityInfo.d.ts @@ -20,8 +20,6 @@ import { ElementName } from './elementName'; * @since 8 * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * - * @permission N/A * @deprecated since 9 * @useinstead ohos.bundle.distributedBundle.RemoteAbilityInfo */ @@ -32,14 +30,14 @@ export interface RemoteAbilityInfo { * @syscap SystemCapability.BundleManager.DistributedBundleFramework */ readonly elementName: ElementName; - + /** * @default Indicates the label of the ability * @since 8 * @syscap SystemCapability.BundleManager.DistributedBundleFramework */ readonly label: string; - + /** * @default Indicates the icon of the ability * @since 8 diff --git a/api/bundle/shortcutInfo.d.ts b/api/bundle/shortcutInfo.d.ts index cc3bf43326..747cebec72 100644 --- a/api/bundle/shortcutInfo.d.ts +++ b/api/bundle/shortcutInfo.d.ts @@ -18,104 +18,91 @@ * bundle name, target module name and ability class name. * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @systemapi Hide this for inner system use * @deprecated since 9 * @useinstead ohos.bundle.launcherBundleManager.ShortcutWant */ export interface ShortcutWant{ /** - * @default Indicates the target bundle of the shortcut want * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly targetBundle: string; /** - * @default Indicates the target class of the shortcut want * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly targetClass: string; } - + /** * @name Provides information about a shortcut, including the shortcut ID and label. * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA * @deprecated since 9 * @useinstead ohos.bundle.launcherBundleManager.ShortcutInfo */ export interface ShortcutInfo { /** - * @default Indicates the ID of the application to which this shortcut belongs * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * + * */ readonly id: string; /** - * @default Indicates the name of the bundle containing the shortcut * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly bundleName: string; /** - * @default Indicates the host ability of the shortcut * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly hostAbility: string; /** - * @default Indicates the icon of the shortcut * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly icon: string; /** - * @default Indicates the icon id of the shortcut * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly iconId: number; /** - * @default Indicates the label of the shortcut * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly label: string; /** - * @default Indicates the label id of the shortcut * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly labelId: number; /** - * @default Indicates the disableMessage of the shortcut * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly disableMessage: string; /** - * @default Indicates the wants of the shortcut * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly wants: Array; /** - * @default Indicates whether the shortcut is static + * @default false * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isStatic?: boolean /** - * @default Indicates whether the shortcut is homeshortcut + * @default false * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isHomeShortcut?: boolean; /** - * @default Indicates whether the shortcut is enabled + * @default false * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework */ -- Gitee