40 Star 163 Fork 4.4K

OpenHarmony/interface_sdk-js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BundlePackInfo.d.ts 12.15 KB
一键复制 编辑 原始数据 按行查看 历史
赵淦 提交于 7个月前 . readonly
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit AbilityKit
*/
/**
* The bundle pack info class.
*
* @typedef BundlePackInfo
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface BundlePackInfo {
/**
* This contains package information in pack.info
*
* @type { Array<PackageConfig> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly packages: Array<PackageConfig>;
/**
* This contains bundle summary information in pack.info
*
* @type { PackageSummary }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly summary: PackageSummary;
}
/**
* PackageConfig: the package info class.
*
* @typedef PackageConfig
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface PackageConfig {
/**
* Indicates the device types of this package
*
* @type { Array<string> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly deviceTypes: Array<string>;
/**
* Indicates the name of this package
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly name: string;
/**
* Indicates the module type of this package
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly moduleType: string;
/**
* Indicates whether this package is delivery and install
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly deliveryWithInstall: boolean;
}
/**
* PackageSummary: the package summary class.
*
* @typedef PackageSummary
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface PackageSummary {
/**
* Indicates the bundle config info of this package
*
* @type { BundleConfigInfo }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly app: BundleConfigInfo;
/**
* Indicates the modules config info of this package
*
* @type { Array<ModuleConfigInfo> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly modules: Array<ModuleConfigInfo>;
}
/**
* BundleConfigInfo: the bundle summary class.
*
* @typedef BundleConfigInfo
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface BundleConfigInfo {
/**
* Indicates the name of this bundle
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly bundleName: string;
/**
* Indicates the bundle version
*
* @type { Version }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly version: Version;
}
/**
* ExtensionAbility: the extension ability forms class.
*
* @typedef ExtensionAbility
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface ExtensionAbility {
/**
* Indicates the name of this extension ability
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly name: string;
/**
* Indicates the ability forms info
*
* @type { Array<AbilityFormInfo> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly forms: Array<AbilityFormInfo>;
}
/**
* ModuleConfigInfo: the module summary of a bundle.
*
* @typedef ModuleConfigInfo
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface ModuleConfigInfo {
/**
* Indicates the name of main ability
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly mainAbility: string;
/**
* Indicates the api version
*
* @type { ApiVersion }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly apiVersion: ApiVersion;
/**
* Indicates the devices type
*
* @type { Array<string> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly deviceTypes: Array<string>;
/**
* Indicates the module distro info
*
* @type { ModuleDistroInfo }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly distro: ModuleDistroInfo;
/**
* Indicates the abilities info of this module
*
* @type { Array<ModuleAbilityInfo> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly abilities: Array<ModuleAbilityInfo>;
/**
* Indicates extension abilities info of this module
*
* @type { Array<ExtensionAbility> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly extensionAbilities: Array<ExtensionAbility>;
}
/**
* ModuleDistroInfo: the bundle info summary class.
*
* @typedef ModuleDistroInfo
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface ModuleDistroInfo {
/**
* Indicates whether this package is delivered with install
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly deliveryWithInstall: boolean;
/**
* Indicates whether this package is free install
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly installationFree: boolean;
/**
* Indicates the module name
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly moduleName: string;
/**
* Indicates the module type
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly moduleType: string;
}
/**
* ModuleAbilityInfo: the ability info of a module.
*
* @typedef ModuleAbilityInfo
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface ModuleAbilityInfo {
/**
* Indicates the name of this module ability
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly name: string;
/**
* Indicates the label of this module ability
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly label: string;
/**
* Indicates whether this ability can be called by other abilities
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly exported: boolean;
/**
* Indicates the ability forms info
*
* @type { Array<AbilityFormInfo> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly forms: Array<AbilityFormInfo>;
}
/**
* AbilityFormInfo: the form info of an ability.
*
* @typedef AbilityFormInfo
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface AbilityFormInfo {
/**
* Indicates the name of this ability
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly name: string;
/**
* Indicates the type of this ability
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly type: string;
/**
* Indicates whether this form is enabled update
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly updateEnabled: boolean;
/**
* Indicates the scheduled update time
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly scheduledUpdateTime: string;
/**
* Indicates the update duration
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly updateDuration: number;
/**
* Indicates the ability support dimensions
*
* @type { Array<string> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly supportDimensions: Array<string>;
/**
* Indicates the ability default dimension
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly defaultDimension: string;
}
/**
* Version: the bundle version class.
*
* @typedef Version
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface Version {
/**
* Indicates the min compatible code of this version
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly minCompatibleVersionCode: number;
/**
* Indicates the name of this version
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly name: string;
/**
* Indicates the code of this version
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly code: number;
}
/**
* ApiVersion: the bundle Api version class.
*
* @typedef ApiVersion
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
export interface ApiVersion {
/**
* Indicates the release type of the api
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly releaseType: string;
/**
* Indicates the compatible version code of the api
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly compatible: number;
/**
* Indicates the target version code of the api
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
* @systemapi
* @since 9
*/
readonly target: number;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/interface_sdk-js.git
git@gitee.com:openharmony/interface_sdk-js.git
openharmony
interface_sdk-js
interface_sdk-js
master

搜索帮助