From ecabaeba9d83ff9b40c1e40aa4135c2da897bbff Mon Sep 17 00:00:00 2001 From: wanghang Date: Wed, 9 Nov 2022 07:33:07 +0000 Subject: [PATCH] IssueNo:#I60AMD Description:add errCode Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wanghang Change-Id: I985243c7585bf018e968e197038142f2ef6eb07f --- api/@ohos.bundle.bundleManager.d.ts | 6 ++++-- api/@ohos.bundle.bundleMonitor.d.ts | 4 ++-- api/bundleManager/permissionDef.d.ts | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 531c720dc2..49c47e6b98 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -1047,7 +1047,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @param { AsyncCallback> } callback - The callback of returning string in json-format of the corresponding config file. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700003 - The specified anilityName 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 } 17700026 - The specified bundle is disabled. * @throws { BusinessError } 17700029 - The specified ability is disabled. @@ -1064,7 +1064,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @returns { Promise> } Returns string in json-format of the corresponding config file. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700003 - The specified anilityName 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 } 17700026 - The specified bundle is disabled. * @throws { BusinessError } 17700029 - The specified ability is disabled. @@ -1228,6 +1228,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @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 } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -1246,6 +1247,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @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 } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 diff --git a/api/@ohos.bundle.bundleMonitor.d.ts b/api/@ohos.bundle.bundleMonitor.d.ts index 7067c2299c..b56af8dda5 100644 --- a/api/@ohos.bundle.bundleMonitor.d.ts +++ b/api/@ohos.bundle.bundleMonitor.d.ts @@ -37,14 +37,14 @@ declare namespace bundleMonitor { * @systemapi * @since 9 */ - bundleName: string; + readonly bundleName: string; /** * The user id * @type {number} * @systemapi * @since 9 */ - userId: number; + readonly userId: number; } /** diff --git a/api/bundleManager/permissionDef.d.ts b/api/bundleManager/permissionDef.d.ts index 2d2cc327a2..56aa968b62 100644 --- a/api/bundleManager/permissionDef.d.ts +++ b/api/bundleManager/permissionDef.d.ts @@ -27,7 +27,7 @@ * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 */ - permissionName: string; + readonly permissionName: string; /** * Indicates the grant mode of this permission @@ -35,7 +35,7 @@ * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 */ - grantMode: number; + readonly grantMode: number; /** * Indicates the labelId of this permission @@ -43,7 +43,7 @@ * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 */ - labelId: number; + readonly labelId: number; /** * Indicates the descriptionId of this permission @@ -51,5 +51,5 @@ * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 */ - descriptionId: number; + readonly descriptionId: number; } \ No newline at end of file -- Gitee