Skip to content

Commit

Permalink
Add sleepAfter/sleepBefore
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Dec 28, 2024
1 parent e359a04 commit 09e646e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ReactNativeDeviceActivity.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,24 @@ export type Action =
type: "blockSelection";
familyActivitySelectionId: string;
shieldId?: string;
sleepBefore?: number;
sleepAfter?: number;
}
| {
type: "unblockAllApps";
sleepBefore?: number;
sleepAfter?: number;
}
| {
type: "resetUnblockedSelection";
sleepBefore?: number;
sleepAfter?: number;
}
| {
type: "blockAllApps";
shieldId?: string;
sleepBefore?: number;
sleepAfter?: number;
}
| {
type: "sendNotification";
Expand All @@ -180,9 +188,13 @@ export type Action =
threadIdentifier?: string;
subtitle?: string;
};
sleepBefore?: number;
sleepAfter?: number;
}
| {
type: "openApp";
sleepBefore?: number;
sleepAfter?: number;
}
| {
type: "sendHttpRequest";
Expand All @@ -192,6 +204,8 @@ export type Action =
body?: Record<string, any>;
headers?: Record<string, string>;
};
sleepBefore?: number;
sleepAfter?: number;
};

export type DeviceActivityEventRaw = Omit<
Expand Down

0 comments on commit 09e646e

Please sign in to comment.