mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
delete redundant 401 error code from account sdk
Signed-off-by: bigtea <tianqushen@huawei.com>
This commit is contained in:
parent
45467649d4
commit
9d0c8d5383
2
api/@ohos.account.appAccount.d.ts
vendored
2
api/@ohos.account.appAccount.d.ts
vendored
@ -811,8 +811,6 @@ declare namespace appAccount {
|
||||
* <br> have gained the ohos.permission.GET_ALL_APP_ACCOUNTS permission.
|
||||
*
|
||||
* @returns { Promise<Array<AppAccountInfo>> } Returns a list of application accounts.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.AppAccount
|
||||
* @since 9
|
||||
|
2
api/@ohos.account.distributedAccount.d.ts
vendored
2
api/@ohos.account.distributedAccount.d.ts
vendored
@ -89,8 +89,6 @@ declare namespace distributedAccount {
|
||||
* @permission ohos.permission.MANAGE_DISTRIBUTED_ACCOUNTS or ohos.permission.GET_DISTRIBUTED_ACCOUNTS or ohos.permission.DISTRIBUTED_DATASYNC
|
||||
* @returns { Promise<DistributedInfo> } The distributed information of the current OS account.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 9
|
||||
|
46
api/@ohos.account.osAccount.d.ts
vendored
46
api/@ohos.account.osAccount.d.ts
vendored
@ -203,8 +203,6 @@ declare namespace osAccount {
|
||||
* Checks whether the function of supporting multiple OS accounts is enabled.
|
||||
*
|
||||
* @returns { Promise<boolean> } Returns {@code true} if this function is enabled; returns {@code false} otherwise.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 9
|
||||
@ -458,8 +456,6 @@ declare namespace osAccount {
|
||||
* Checks whether current OS account is testable.
|
||||
*
|
||||
* @returns { Promise<boolean> } Returns {@code true} if this account is testable; returns {@code false} otherwise.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 9
|
||||
@ -791,8 +787,6 @@ declare namespace osAccount {
|
||||
* @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS
|
||||
* @returns { Promise<number> } Returns the number of created OS accounts.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* This API can be called only by system applications.
|
||||
@ -838,8 +832,6 @@ declare namespace osAccount {
|
||||
* Get the local ID of the current OS account.
|
||||
*
|
||||
* @returns { Promise<number> } Returns the local ID of the current account.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 9
|
||||
@ -991,8 +983,6 @@ declare namespace osAccount {
|
||||
*
|
||||
* @returns { Promise<number> } Returns the maximum number of OS accounts that can be created.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @systemapi Hide this for inner system use.
|
||||
@ -1115,8 +1105,6 @@ declare namespace osAccount {
|
||||
* @returns { Promise<Array<OsAccountInfo>> } Returns a list of OS accounts.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @systemapi Hide this for inner system use.
|
||||
@ -1162,8 +1150,6 @@ declare namespace osAccount {
|
||||
* Gets the local IDs of all activated OS accounts.
|
||||
*
|
||||
* @returns { Promise<Array<number>> } Returns all activated accounts.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 9
|
||||
@ -1306,7 +1292,8 @@ declare namespace osAccount {
|
||||
* @param { AsyncCallback<OsAccountInfo> } callback - Returns information about the created OS account; returns {@code null} if the creation fails.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameters error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @throws { BusinessError } 12300002 - Invalid type or domainInfo.
|
||||
@ -1357,7 +1344,8 @@ declare namespace osAccount {
|
||||
* @returns { Promise<OsAccountInfo> } Returns information about the created OS account; returns {@code null} if the creation fails.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameters error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @throws { BusinessError } 12300002 - Invalid type, domainInfo or options.
|
||||
@ -1430,8 +1418,6 @@ declare namespace osAccount {
|
||||
* @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS
|
||||
* @returns { Promise<OsAccountInfo> } Returns information about the current OS account; returns {@code null} if the query fails.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 9
|
||||
@ -1443,8 +1429,6 @@ declare namespace osAccount {
|
||||
* @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.GET_LOCAL_ACCOUNTS
|
||||
* @returns { Promise<OsAccountInfo> } Returns information about the current OS account; returns {@code null} if the query fails.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 10
|
||||
@ -1546,8 +1530,6 @@ declare namespace osAccount {
|
||||
*
|
||||
* @returns { Promise<OsAccountType> } Returns the OS account type. The value can be {@link OsAccountType#ADMIN},
|
||||
* {@link OsAccountType#NORMAL}, and {@link OsAccountType#GUEST}.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 9
|
||||
@ -1640,8 +1622,6 @@ declare namespace osAccount {
|
||||
* @permission ohos.permission.DISTRIBUTED_DATASYNC or ohos.permission.MANAGE_LOCAL_ACCOUNTS
|
||||
* @returns { Promise<string> } Returns the DVID if obtained; returns an empty string if no OHOS account has logged in.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @since 9
|
||||
@ -2023,8 +2003,6 @@ declare namespace osAccount {
|
||||
* returns {@code false} otherwise.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @systemapi Hide this for inner system use.
|
||||
@ -3654,8 +3632,7 @@ declare namespace osAccount {
|
||||
* @returns { Promise<Uint8Array> } Returns a challenge value.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @syscap SystemCapability.Account.OsAccount
|
||||
* @systemapi Hide this for inner system use.
|
||||
@ -3765,7 +3742,8 @@ declare namespace osAccount {
|
||||
* @param { IIdmCallback } callback - Indicates the callback to get results and acquireInfo.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameters error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @throws { BusinessError } 12300002 - Invalid credentialInfo, i.e. authType or authSubType.
|
||||
* @throws { BusinessError } 12300003 - Account not found.
|
||||
@ -3802,7 +3780,7 @@ declare namespace osAccount {
|
||||
* @param { number } [accountId] - Indicates the local ID of the OS account.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameters error. Possible causes: Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @throws { BusinessError } 12300003 - Account not found.
|
||||
* @throws { BusinessError } 12300008 - Restricted account.
|
||||
@ -3915,8 +3893,7 @@ declare namespace osAccount {
|
||||
* the specified type for the current user.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @throws { BusinessError } 12300002 - Invalid authType.
|
||||
* @throws { BusinessError } 12300102 - Credential not enrolled.
|
||||
@ -3935,7 +3912,7 @@ declare namespace osAccount {
|
||||
* according to the options.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameters error. Possible causes: Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @throws { BusinessError } 12300002 - Invalid options.
|
||||
* @throws { BusinessError } 12300003 - Account not found.
|
||||
@ -3954,7 +3931,8 @@ declare namespace osAccount {
|
||||
* @returns { Promise<Uint8Array> } Returns the enrolled identifier.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameters error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 12300001 - System service exception.
|
||||
* @throws { BusinessError } 12300002 - Invalid authType.
|
||||
* @throws { BusinessError } 12300003 - Account not found.
|
||||
|
Loading…
Reference in New Issue
Block a user