-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(js): Com 82 implement filters on sdk (#6060)
Co-authored-by: Paweł <[email protected]>
- Loading branch information
1 parent
c58f063
commit 41f40a5
Showing
16 changed files
with
672 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
index.directcss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
export enum ActorTypeEnum { | ||
NONE = 'none', | ||
USER = 'user', | ||
SYSTEM_ICON = 'system_icon', | ||
SYSTEM_CUSTOM = 'system_custom', | ||
} | ||
|
||
export enum ButtonTypeEnum { | ||
PRIMARY = 'primary', | ||
SECONDARY = 'secondary', | ||
} | ||
|
||
export enum ChannelTypeEnum { | ||
IN_APP = 'in_app', | ||
EMAIL = 'email', | ||
SMS = 'sms', | ||
CHAT = 'chat', | ||
PUSH = 'push', | ||
} | ||
|
||
type Avatar = { | ||
type: ActorTypeEnum; | ||
data: string | null; | ||
}; | ||
|
||
export type Subscriber = { | ||
id: string; | ||
firstName?: string; | ||
lastName?: string; | ||
avatar?: string; | ||
subscriberId: string; | ||
}; | ||
|
||
type Action = { | ||
type: ButtonTypeEnum; | ||
label: string; | ||
url?: string; | ||
isCompleted: boolean; | ||
}; | ||
|
||
export type InboxNotification = { | ||
id: string; | ||
subject?: string; | ||
body: string; | ||
to: Subscriber; | ||
read?: boolean; | ||
archived?: boolean; | ||
createdAt: string; | ||
readAt?: string | null; | ||
archivedAt?: string | null; | ||
actor?: Subscriber; | ||
avatar?: Avatar; | ||
primaryAction?: Action; | ||
secondaryAction?: Action; | ||
channelType: ChannelTypeEnum; | ||
tags?: string[]; | ||
}; | ||
|
||
export type NotificationFilter = { | ||
tags?: string[]; | ||
read?: boolean; | ||
archived?: boolean; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.