From 2515472311897707fdadab1479ee151d722daa59 Mon Sep 17 00:00:00 2001 From: fangyunzhong Date: Mon, 23 Jun 2025 14:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=9F=BA=E5=88=86=E6=94=AFinterface?= =?UTF-8?q?=E4=B8=8E=E6=9E=B6=E6=9E=84=E5=B9=B3=E5=8F=B0=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic15102ace513732ed4b2936dee23abc0cd984702 Signed-off-by: fangyunzhong --- api/@ohos.enterprise.accountManager.d.ts | 22 +++++++++++----------- api/@ohos.enterprise.adminManager.d.ts | 12 +++++------- api/@ohos.enterprise.bundleManager.d.ts | 2 +- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/api/@ohos.enterprise.accountManager.d.ts b/api/@ohos.enterprise.accountManager.d.ts index bea9d35c1a..42e6e5e99a 100644 --- a/api/@ohos.enterprise.accountManager.d.ts +++ b/api/@ohos.enterprise.accountManager.d.ts @@ -35,7 +35,8 @@ declare namespace accountManager { * * @interface DomainAccountPolicy * @syscap SystemCapability.Customization.EnterpriseDeviceManager - * @since 18 + * @stagemodelonly + * @since 19 */ interface DomainAccountPolicy { /** @@ -43,7 +44,8 @@ declare namespace accountManager { * * @type { ?number } * @syscap SystemCapability.Customization.EnterpriseDeviceManager - * @since 18 + * @stagemodelonly + * @since 19 */ authenticationValidityPeriod?: number; @@ -52,7 +54,8 @@ declare namespace accountManager { * * @type { ?number } * @syscap SystemCapability.Customization.EnterpriseDeviceManager - * @since 18 + * @stagemodelonly + * @since 19 */ passwordValidityPeriod?: number; @@ -61,7 +64,8 @@ declare namespace accountManager { * * @type { ?number } * @syscap SystemCapability.Customization.EnterpriseDeviceManager - * @since 18 + * @stagemodelonly + * @since 19 */ passwordExpirationNotification?: number; } @@ -252,11 +256,9 @@ declare namespace accountManager { * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @stagemodelonly - * @since 18 + * @since 19 */ function setDomainAccountPolicy(admin: Want, domainAccountInfo: osAccount.DomainAccountInfo, policy: DomainAccountPolicy): void; @@ -268,15 +270,13 @@ declare namespace accountManager { * @param { Want } admin - admin indicates the enterprise admin extension ability information. * The admin must have the corresponding permission. * @param { osAccount.DomainAccountInfo } domainAccountInfo - the infomation of domain account. - * @returns { DomainAccountPolicy } policy - policy indicates the domain account policy. + * @returns { DomainAccountPolicy } the domain account policy. * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @stagemodelonly - * @since 18 + * @since 19 */ function getDomainAccountPolicy(admin: Want, domainAccountInfo: osAccount.DomainAccountInfo): DomainAccountPolicy; } diff --git a/api/@ohos.enterprise.adminManager.d.ts b/api/@ohos.enterprise.adminManager.d.ts index 08db013788..d8cfd1144a 100644 --- a/api/@ohos.enterprise.adminManager.d.ts +++ b/api/@ohos.enterprise.adminManager.d.ts @@ -177,7 +177,7 @@ declare namespace adminManager { * * @enum { number } * @syscap SystemCapability.Customization.EnterpriseDeviceManager - * @since 18 + * @since 19 */ export enum RunningMode { /** @@ -185,7 +185,7 @@ declare namespace adminManager { * * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @systemapi - * @since 18 + * @since 19 */ DEFAULT = 0, @@ -194,7 +194,7 @@ declare namespace adminManager { * * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @systemapi - * @since 18 + * @since 19 */ MULTI_USER = 1, } @@ -506,7 +506,7 @@ declare namespace adminManager { * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @systemapi * @stagemodelonly - * @since 18 + * @since 19 */ function setAdminRunningMode(admin: Want, mode: RunningMode): void; @@ -800,13 +800,11 @@ declare namespace adminManager { * @param { Want } oldAdmin - oldAdmin indicates the old administrator ability information. * @param { Want } newAdmin - newAdmin indicates the new administrator ability information. * @param { boolean } isKeepPolicy - true indicates whether keep admin policy. - * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.= + * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200003 - The administrator ability component is invalid. * @throws { BusinessError } 9200011 - Failed to replace the administrator application of the device. * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @systemapi * @stagemodelonly diff --git a/api/@ohos.enterprise.bundleManager.d.ts b/api/@ohos.enterprise.bundleManager.d.ts index 1eba12dce1..f53d8ccee1 100644 --- a/api/@ohos.enterprise.bundleManager.d.ts +++ b/api/@ohos.enterprise.bundleManager.d.ts @@ -64,7 +64,7 @@ declare namespace bundleManager { * @type { ?Record } * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @stagemodelonly - * @since 18 + * @since 19 */ parameters?: Record; } -- Gitee