• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 RUNTIME_OS_OH: string = 'OpenHarmony';
27export const FORM_TAG_CHECK_NAME: string = 'form';
28export const FORM_TAG_CHECK_ERROR: string = "'{0}' can't support form application.";
29export const CROSSPLATFORM_TAG_CHECK_NAME: string = 'crossplatform';
30export const CROSSPLATFORM_TAG_CHECK_ERROER: string = "'{0}' can't support crossplatform application.";
31export const DEPRECATED_TAG_CHECK_NAME: string = 'deprecated';
32export const DEPRECATED_TAG_CHECK_WARNING: string = "'{0}' has been deprecated.";
33export const FA_TAG_CHECK_NAME: string = 'famodelonly';
34export const FA_TAG_HUMP_CHECK_NAME: string = 'FAModelOnly';
35export const FA_TAG_CHECK_ERROR: string = 'This API is used only in FA Mode, but the current Mode is Stage.';
36export const STAGE_TAG_CHECK_NAME: string = 'stagemodelonly';
37export const STAGE_TAG_HUMP_CHECK_NAME: string = 'StageModelOnly';
38export const STAGE_TAG_CHECK_ERROR: string = 'This API is used only in Stage Mode, but the current Mode is FA.';
39export const STAGE_COMPILE_MODE: string = 'moduleJson';
40export const ATOMICSERVICE_BUNDLE_TYPE: string = 'atomicService';
41export const ATOMICSERVICE_TAG_CHECK_NAME: string = 'atomicservice';
42export const ATOMICSERVICE_TAG_CHECK_ERROER: string = "'{0}' can't support atomicservice application.";
43export const SINCE_TAG_NAME: string = 'since';
44export const ATOMICSERVICE_TAG_CHECK_VERSION: number = 11;
45export const FIND_MODULE_WARNING: string = "Cannot find name '{0}'.";
46
47export const CONSTANT_STEP_0: number = 0;
48export const CONSTANT_STEP_1: number = 1;
49export const CONSTANT_STEP_2: number = 2;
50export const CONSTANT_STEP_3: number = 3;
51
52export const GLOBAL_DECLARE_WHITE_LIST: Set<string> = new Set(['Context', 'PointerStyle', 'PixelMap', 'UnifiedData',
53  'Summary', 'UniformDataType', 'IntentionCode', 'NavDestinationInfo', 'UIContext', 'Resource', 'WebviewController']);
54