interface_sdk-js/api/bundleManager/AppProvisionInfo.d.ts
openharmony_ci d30b67b54c
!9667 in house
Merge pull request !9667 from 赵淦/master
2024-03-23 02:42:10 +00:00

184 lines
4.3 KiB
TypeScript

/*
* Copyright (c) 2023 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
*/
/**
* Indicates the profile file information of a bundle.
*
* @typedef AppProvisionInfo
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
export interface AppProvisionInfo {
/**
* Indicates the version code of the profile file.
*
* @type { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly versionCode: number;
/**
* Indicates the version name of the profile file.
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly versionName: string;
/**
* Indicates the uuid of the profile file.
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly uuid: string;
/**
* Indicates the type of the profile file.
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly type: string;
/**
* Indicates the app distribution type of the profile file.
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly appDistributionType: string;
/**
* Indicates the validity of the profile file.
*
* @type { Validity }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly validity: Validity;
/**
* Indicates the developer id of the profile file.
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly developerId: string;
/**
* Indicates the distribution or development certificate of the profile file.
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly certificate: string;
/**
* Indicates the apl of the profile file.
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly apl: string;
/**
* Indicates the issuer of the profile file.
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly issuer: string;
/**
* Globally unique identifier of an application, which is allocated by the cloud.
* AppIdentifier does not change along the application lifecycle, including version updates, certificate changes,
* public and private key changes, and application transfer.
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 11
*/
readonly appIdentifier: string;
/**
* Indicates the organization information of the profile file.
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 12
*/
readonly organization: string;
}
/**
* The validity of the profile file.
*
* @typedef Validity
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
export interface Validity {
/**
* Indicates the earliest validity of the profile file.
*
* @type { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly notBefore: number;
/**
* Indicates the latest validity of the profile file.
*
* @type { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
readonly notAfter: number;
}