1/* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { paramMock } from "../../utils" 17 18export const PackageConfig = { 19 deviceType: [paramMock.paramStringMock], 20 name: "[PC preview] unknown name", 21 moduleType: "[PC preview] unknown moduleType", 22 deliveryWithInstall: "[PC preview] unknown deliveryWithInstall", 23} 24 25export const ModuleDistroInfo = { 26 mainAbility: "[PC preview] unknown mainAbility", 27 deliveryWithInstall: "[PC preview] unknown deliveryWithInstall", 28 installationFree: "[PC preview] unknown installationFree", 29 moduleName: "[PC preview] unknown moduleName", 30 moduleType: "[PC preview] unknown moduleType", 31} 32 33export const AbilityFormInfo = { 34 name: "[PC preview] unknown name", 35 type: "[PC preview] unknown type", 36 updateEnabled: "[PC preview] unknown updateEnabled", 37 scheduledUpdateTime: "[PC preview] unknown scheduledUpdateTime", 38 updateDuration: "[PC preview] unknown updateDuration", 39 supportDimensions: [paramMock.paramNumberMock], 40 defaultDimension: "[PC preview] unknown defaultDimension", 41} 42 43export const ApiVersion = { 44 releaseType: "[PC preview] unknown releaseType", 45 compatible: "[PC preview] unknown compatible", 46 target: "[PC preview] unknown target", 47} 48 49export const Version = { 50 minCompatibleVersionCode: "[PC preview] unknown minCompatibleVersionCode", 51 name: "[PC preview] unknown name", 52 code: "[PC preview] unknown code", 53} 54 55export const ModuleAbilityInfo = { 56 name: "[PC preview] unknown name", 57 label: "[PC preview] unknown label", 58 visible: "[PC preview] unknown visible", 59 forms: [AbilityFormInfo], 60} 61 62export const ExtensionAbilities = { 63 name: "[PC preview] unknown name", 64 forms: [AbilityFormInfo], 65} 66 67export const ModuleConfigInfo = { 68 apiVersion: ApiVersion, 69 deviceType: [paramMock.paramStringMock], 70 distro: [paramMock.paramStringMock], 71 abilities: [ModuleAbilityInfo], 72 extensionAbilities: [ExtensionAbilities], 73} 74 75export const BundleConfigInfo = { 76 bundleName: "[PC preview] unknown bundleName", 77 version: Version, 78} 79 80export const PackageSummary = { 81 app: BundleConfigInfo, 82 modules: [ModuleConfigInfo] 83} 84 85export const BundlePackFlag = { 86 GET_PACK_INFO_ALL: 0x00000000, 87 GET_PACKAGES: 0x00000001, 88 GET_BUNDLE_SUMMARY: 0x00000002, 89 GET_MODULE_SUMMARY: 0x00000004, 90} 91 92export const BundlePackInfo = { 93 packages: [PackageConfig], 94 summary: PackageSummary 95}