Skip to content

Commit

Permalink
sdk: tag === collapse key
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jan 5, 2025
1 parent 0547ed9 commit 4c66efc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/sdk",
"version": "0.3.105",
"version": "0.3.106",
"description": "",
"main": "dist/src/index.js",
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions sdk/types/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/types",
"version": "0.3.97",
"version": "0.3.98",
"description": "",
"main": "dist/index.js",
"author": "",
Expand Down
5 changes: 2 additions & 3 deletions sdk/types/scrypted_python/scrypted_sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ class NotifierOptions(TypedDict):
badge: str
body: str
bodyWithSubtitle: str
collapseId: str
data: Any
dir: NotificationDirection
image: str
Expand All @@ -677,7 +676,7 @@ class NotifierOptions(TypedDict):
requireInteraction: bool
silent: bool
subtitle: str
tag: str
tag: str # Collapse key/id.
timestamp: float
vibrate: VibratePattern

Expand Down Expand Up @@ -952,7 +951,7 @@ class TamperState(TypedDict):
pass


TYPES_VERSION = "0.3.97"
TYPES_VERSION = "0.3.98"


class AirPurifier:
Expand Down
4 changes: 3 additions & 1 deletion sdk/types/src/types.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,13 @@ export interface NotifierOptions {
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
/**
* Collapse key/id.
*/
tag?: string;
timestamp?: number;
vibrate?: VibratePattern;
recordedEvent?: RecordedEvent & { id: string };
collapseId?: string;

// removed from typescript dom?
actions?: NotificationAction[];
Expand Down

0 comments on commit 4c66efc

Please sign in to comment.