diff --git a/runtime/main/extend/systemplugin/napi/notification/notificationRequest.js b/runtime/main/extend/systemplugin/napi/notification/notificationRequest.js index 4507b3d6..ccb0bb7b 100644 --- a/runtime/main/extend/systemplugin/napi/notification/notificationRequest.js +++ b/runtime/main/extend/systemplugin/napi/notification/notificationRequest.js @@ -50,7 +50,7 @@ export const NotificationRequest = { creatorUserId: '[PC preview] unknow creatorUserId', classification: '[PC preview] unknow classification', hashCode: '[PC preview] unknow hashCode', - isRemveAllowd: '[PC preview] unknow isRemveAllowd', + isRemoveAllowed: '[PC preview] unknow isRemveAllowd', source: '[PC preview] unknow source', template: NotificationTemplate, distributedOption: DistributedOptions, diff --git a/runtime/main/extend/systemplugin/napi/ohos_commonEvent.js b/runtime/main/extend/systemplugin/napi/ohos_commonEvent.js index 0c08af9b..9dbe65dd 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_commonEvent.js +++ b/runtime/main/extend/systemplugin/napi/ohos_commonEvent.js @@ -44,6 +44,7 @@ export const Support = { COMMON_EVENT_PACKAGE_CHANGED: "usual.event.PACKAGE_CHANGED", COMMON_EVENT_PACKAGE_RESTARTED: "usual.event.PACKAGE_RESTARTED", COMMON_EVENT_PACKAGE_DATA_CLEARED: "usual.event.PACKAGE_DATA_CLEARED", + COMMON_EVENT_PACKAGE_CACHE_CLEARED: "usual.event.PACKAGE_CACHE_CLEARED", COMMON_EVENT_PACKAGES_SUSPENDED: "usual.event.PACKAGES_SUSPENDED", COMMON_EVENT_PACKAGES_UNSUSPENDED: "usual.event.PACKAGES_UNSUSPENDED", COMMON_EVENT_MY_PACKAGE_SUSPENDED: "usual.event.MY_PACKAGE_SUSPENDED", diff --git a/runtime/main/extend/systemplugin/napi/wantAgent/triggerInfo.js b/runtime/main/extend/systemplugin/napi/wantAgent/triggerInfo.js new file mode 100644 index 00000000..d3acf68f --- /dev/null +++ b/runtime/main/extend/systemplugin/napi/wantAgent/triggerInfo.js @@ -0,0 +1,21 @@ +/* + * 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. + */ +import { WantClass } from "../ohos_application_Want" +export const TriggerInfo = { + code: '[PC preview] unknow code', + want: new WantClass(), + permission: '[PC preview] unknow permission', + extraInfo: {}, +}; \ No newline at end of file diff --git a/runtime/main/extend/systemplugin/napi/wantAgent/wantAgentInfo.js b/runtime/main/extend/systemplugin/napi/wantAgent/wantAgentInfo.js new file mode 100644 index 00000000..c0e91b07 --- /dev/null +++ b/runtime/main/extend/systemplugin/napi/wantAgent/wantAgentInfo.js @@ -0,0 +1,24 @@ +/* + * 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. + */ +import { WantClass } from "../ohos_application_Want" +import { OperationType, WantAgentFlags } from "../ohos_wantAgent" + +export const WantAgentInfo = { + wants: [new WantClass()], + operationType: OperationType, + requestCode: '[PC preview] unknow requestCode', + wantAgentFlags: [WantAgentFlags], + extraInfo: {}, +}; \ No newline at end of file