1/* 2 * Copyright (c) 2024 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 16export const PERMISSION_TAG_CHECK_NAME: string = 'permission'; 17export const PERMISSION_TAG_CHECK_ERROR: string = "To use this API, you need to apply for the permissions: $DT"; 18export const SYSTEM_API_TAG_CHECK_NAME: string = 'systemapi'; 19export const SYSTEM_API_TAG_CHECK_WARNING: string = "'{0}' is system api"; 20export const TEST_TAG_CHECK_NAME: string = 'test'; 21export const TEST_TAG_CHECK_ERROR: string = "'{0}' can only be used for testing directories "; 22export const SYSCAP_TAG_CHECK_NAME: string = 'syscap'; 23export const SYSCAP_TAG_CHECK_WARNING: string = "The system capacity of this api '{0}' is not supported on all devices"; 24export const SYSCAP_TAG_CONDITION_CHECK_WARNING: string = 'The API is not supported on all devices. Use the canIUse condition to determine whether the API is supported.'; 25export const CANIUSE_FUNCTION_NAME: string = 'canIUse'; 26export const VERSION_CHECK_FUNCTION_NAME: string = 'isApiVersionGreaterOrEqual'; 27export const RUNTIME_OS_OH: string = 'OpenHarmony'; 28export const FORM_TAG_CHECK_NAME: string = 'form'; 29export const FORM_TAG_CHECK_ERROR: string = "'{0}' can't support form application."; 30export const CROSSPLATFORM_TAG_CHECK_NAME: string = 'crossplatform'; 31export const CROSSPLATFORM_TAG_CHECK_ERROER: string = "'{0}' can't support crossplatform application."; 32export const DEPRECATED_TAG_CHECK_NAME: string = 'deprecated'; 33export const DEPRECATED_TAG_CHECK_WARNING: string = "'{0}' has been deprecated."; 34export const FA_TAG_CHECK_NAME: string = 'famodelonly'; 35export const FA_TAG_HUMP_CHECK_NAME: string = 'FAModelOnly'; 36export const FA_TAG_CHECK_ERROR: string = 'This API is used only in FA Mode, but the current Mode is Stage.'; 37export const STAGE_TAG_CHECK_NAME: string = 'stagemodelonly'; 38export const STAGE_TAG_HUMP_CHECK_NAME: string = 'StageModelOnly'; 39export const STAGE_TAG_CHECK_ERROR: string = 'This API is used only in Stage Mode, but the current Mode is FA.'; 40export const STAGE_COMPILE_MODE: string = 'moduleJson'; 41export const ATOMICSERVICE_BUNDLE_TYPE: string = 'atomicService'; 42export const ATOMICSERVICE_TAG_CHECK_NAME: string = 'atomicservice'; 43export const ATOMICSERVICE_TAG_CHECK_ERROER: string = "'{0}' can't support atomicservice application."; 44export const SINCE_TAG_NAME: string = 'since'; 45export const SINCE_TAG_CHECK_ERROER: string = "The '{0}' API is supported since SDK version $SINCE1. However, the current compatible SDK version is $SINCE2."; 46export const ATOMICSERVICE_TAG_CHECK_VERSION: number = 11; 47export const FIND_MODULE_WARNING: string = "Cannot find name '{0}'."; 48 49export const CONSTANT_STEP_0: number = 0; 50export const CONSTANT_STEP_1: number = 1; 51export const CONSTANT_STEP_2: number = 2; 52export const CONSTANT_STEP_3: number = 3; 53 54export const GLOBAL_DECLARE_WHITE_LIST: Set<string> = new Set(['Context', 'PointerStyle', 'PixelMap', 'UnifiedData', 55 'Summary', 'UniformDataType', 'IntentionCode', 'NavDestinationInfo', 'UIContext', 'Resource', 'WebviewController']); 56