Skip to content

Commit

Permalink
fix: update list message types
Browse files Browse the repository at this point in the history
  • Loading branch information
connorlindsey committed Nov 18, 2024
1 parent 849c93a commit 5f048ca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knocklabs/node",
"version": "0.6.14",
"version": "0.6.15",
"description": "Library for interacting with the Knock API",
"homepage": "https://github.com/knocklabs/knock-node",
"author": "@knocklabs",
Expand Down
16 changes: 15 additions & 1 deletion src/resources/messages/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ export interface ListMessagesOptions extends PaginationOptions {
source?: string;
tenant?: string;
status?: MessageStatus[];
engagement_status?: MessageEngagementStatusFilter[];
channel_id?: string;
message_ids?: string[];
trigger_data?: Record<string, any>;
workflow_categories?: String[];
"inserted_at.gt"?: string;
"inserted_at.gte"?: string;
"inserted_at.lt"?: string;
"inserted_at.lte"?: string;
}

export interface ListMessageActivitiesOptions extends PaginationOptions {
Expand All @@ -60,11 +66,19 @@ type MessageStatus =
| "sent"
| "delivered"
| "undelivered"
| "not_sent";
| "not_sent"
| "delivery_attempted"
| "bounced";

export type MessageEngagementStatus =
| "seen"
| "read"
| "archived"
| "interacted"
| "link_clicked";

type MessageEngagementStatusFilter =
| MessageEngagementStatus
| "unseen"
| "unread"
| "unarchived";

0 comments on commit 5f048ca

Please sign in to comment.