diff --git a/interfaces/kits/js/@ohos.notification.d.ts b/interfaces/kits/js/@ohos.notification.d.ts index 79467c48a00df5005914bb2385e1b951118b6e48..d16156ee13adc98e7cbe3bc651fd14238bfa68ad 100644 --- a/interfaces/kits/js/@ohos.notification.d.ts +++ b/interfaces/kits/js/@ohos.notification.d.ts @@ -551,7 +551,7 @@ declare namespace notification { */ function isSupportTemplate(plateName: string, callback: AsyncCallback): void; function isSupportTemplate(plateName: string): Promise; - + /** * Describes a BundleOption. */ @@ -568,44 +568,13 @@ declare namespace notification { label?: string; } - /** - * DisturbMode - * - * @systemapi Hide this for inner system use. - */ - export enum DoNotDisturbMode { - ALLOW_UNKNOWN, - - /** - * Indicates that all notifications are allowed to interrupt the user in Do Not Disturb mode. - */ - ALLOW_ALL, - - /** - * Indicates that only notifications meeting the specified priority criteria are allowed to interrupt - * the user in Do Not Disturb mode. - */ - ALLOW_PRIORITY, - - /** - * Indicates that no notifications are allowed to interrupt the user in Do Not Disturb mode. - */ - ALLOW_NONE, - - /** - * Indicates that only notifications of the {@link NotificationRequest#CLASSIFICATION_ALARM} category - * are allowed to interrupt the user in Do Not Disturb mode. - */ - ALLOW_ALARMS - } - /** * The type of the Do Not Disturb. * * @since 8 * @systemapi Hide this for inner system use. */ - export enum DoNotDisturbType { + export enum DoNotDisturbType { /** * Non do not disturb type notification */ diff --git a/interfaces/kits/js/@ohos.wantAgent.d.ts b/interfaces/kits/js/@ohos.wantAgent.d.ts index 17dd1c8aa2d855ada9d3e36a8b994b45eb4ca9e5..e5de044ce78a3d2579ab81dbd9f5dbca33ee1dab 100644 --- a/interfaces/kits/js/@ohos.wantAgent.d.ts +++ b/interfaces/kits/js/@ohos.wantAgent.d.ts @@ -132,32 +132,7 @@ declare namespace wantAgent { /** * Indicates that the created WantAgent should be immutable. */ - CONSTANT_FLAG, - - /** - * Indicates that the current value of element can be replaced when the WantAgent is triggered. - */ - REPLACE_ELEMENT, - - /** - * Indicates that the current value of action can be replaced when the WantAgent is triggered. - */ - REPLACE_ACTION, - - /** - * Indicates that the current value of uri can be replaced when the WantAgent is triggered. - */ - REPLACE_URI, - - /** - * Indicates that the current value of entities can be replaced when the WantAgent is triggered. - */ - REPLACE_ENTITIES, - - /** - * Indicates that the current value of packageName can be replaced when the WantAgent is triggered. - */ - REPLACE_BUNDLE + CONSTANT_FLAG } /** diff --git a/interfaces/kits/js/notification/notificationSubscriber.d.ts b/interfaces/kits/js/notification/notificationSubscriber.d.ts index d8e2277bc72c82461cf7efc540cdf00be1cf9e19..3ae878775d5b2ad008e0fe566a4aee598f845a96 100644 --- a/interfaces/kits/js/notification/notificationSubscriber.d.ts +++ b/interfaces/kits/js/notification/notificationSubscriber.d.ts @@ -35,7 +35,6 @@ export interface NotificationSubscriber { onConnect?:() => void; onDisconnect?:() => void; onDestroy?:() => void; - onDisturbModeChange?:(mode: notification.DoNotDisturbMode) => void; /** * Callback when the Do Not Disturb setting changed.