diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 62329adba223e160e2f2282abf114cc9b4a775cf..d0af29e65a6d799577ced740deafa7bce9a6b84f 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -40,6 +40,7 @@ import * as _Skill from './bundleManager/Skill'; import { ApplicationInfo as _ApplicationInfo, ModuleMetadata as _ModuleMetadata, PreinstalledApplicationInfo as _PreinstalledApplicationInfo } from './bundleManager/ApplicationInfo'; import { AbilityInfo as _AbilityInfo, WindowSize as _WindowSize } from './bundleManager/AbilityInfo'; +import { AppProvisionInfo as _AppProvisionInfo, Validity as _Validity } from './bundleManager/AppProvisionInfo'; import { BundleInfo as _BundleInfo, UsedScene as _UsedScene, ReqPermissionDetail as _ReqPermissionDetail, SignatureInfo as _SignatureInfo, AppCloneIdentity as _AppCloneIdentity } from './bundleManager/BundleInfo'; import { HapModuleInfo as _HapModuleInfo, PreloadItem as _PreloadItem, Dependency as _Dependency, @@ -3210,7 +3211,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700001 - The specified bundleName is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAppProvisionInfo(bundleName: string, callback: AsyncCallback): void; @@ -3229,7 +3231,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAppProvisionInfo(bundleName: string, userId: number, callback: AsyncCallback): void; @@ -3248,7 +3251,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAppProvisionInfo(bundleName: string, userId?: number): Promise; @@ -3267,7 +3271,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAppProvisionInfoSync(bundleName: string, userId?: number): AppProvisionInfo; @@ -3561,7 +3566,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700056 - The scheme of the specified link is not in the querySchemes. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function canOpenLink(link: string): boolean; @@ -3574,7 +3580,8 @@ declare namespace bundleManager { * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAllPreinstalledApplicationInfo(): Promise>; @@ -3591,7 +3598,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700059 - The specified developerId is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAllBundleInfoByDeveloperId(developerId: string): Array; @@ -3623,7 +3631,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function switchUninstallState(bundleName: string, state: boolean): void; @@ -3636,7 +3645,8 @@ declare namespace bundleManager { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 17700021 - The uid is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function getSignatureInfo(uid: number): SignatureInfo; @@ -3679,7 +3689,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700026 - The specified bundle and clone apps are all disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAllAppCloneBundleInfo(bundleName: string, bundleFlags: number, userId?: number): Promise>; @@ -4181,6 +4192,17 @@ declare namespace bundleManager { */ export type AppProvisionInfo = _AppProvisionInfo.AppProvisionInfo; + /** + * Obtains profile file information about a bundle. + * + * @typedef { _AppProvisionInfo } + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + export type AppProvisionInfo = _AppProvisionInfo; + /** * Obtains profile file validity about a bundle. * @@ -4191,6 +4213,17 @@ declare namespace bundleManager { */ export type Validity = _AppProvisionInfo.Validity; + /** + * Obtains profile file validity about a bundle. + * + * @typedef { _Validity } + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + export type Validity = _Validity; + /** * Obtains information about a recoverable preinstalled application. * diff --git a/api/bundleManager/AppProvisionInfo.d.ts b/api/bundleManager/AppProvisionInfo.d.ts index 43351d69711788ef08b3eed30200afc995544215..98ed464fce7ebae2432c06aa1c0a48abd219d560 100644 --- a/api/bundleManager/AppProvisionInfo.d.ts +++ b/api/bundleManager/AppProvisionInfo.d.ts @@ -24,7 +24,8 @@ * @typedef AppProvisionInfo * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface AppProvisionInfo { /** @@ -34,7 +35,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly versionCode: number; @@ -45,7 +47,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly versionName: string; @@ -56,7 +59,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly uuid: string; @@ -67,7 +71,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly type: string; @@ -78,7 +83,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly appDistributionType: string; @@ -89,7 +95,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly validity: Validity; @@ -100,7 +107,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly developerId: string; @@ -111,7 +119,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly certificate: string; @@ -122,7 +131,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly apl: string; @@ -133,7 +143,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly issuer: string; @@ -146,7 +157,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly appIdentifier: string; @@ -157,7 +169,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly organization: string; } @@ -168,7 +181,8 @@ export interface AppProvisionInfo { * @typedef Validity * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface Validity { /** @@ -178,7 +192,8 @@ export interface Validity { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly notBefore: number; @@ -189,7 +204,8 @@ export interface Validity { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly notAfter: number; }