@knocklabs/node 0.6.13 → 0.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Knock Node.js library
|
|
2
2
|
|
|
3
|
-
Knock API access for applications written in server-side Javascript. This package is compatible with the Vercel Edge runtime.
|
|
3
|
+
Knock API access for applications written in server-side Javascript. This package is compatible with the [Vercel Edge runtime](https://vercel.com/docs/functions/runtimes/edge-runtime) and with [Cloudflare Workers](https://developers.cloudflare.com/workers/).
|
|
4
4
|
|
|
5
5
|
## Documentation
|
|
6
6
|
|
package/dist/package.json
CHANGED
|
@@ -33,9 +33,15 @@ export interface ListMessagesOptions extends PaginationOptions {
|
|
|
33
33
|
source?: string;
|
|
34
34
|
tenant?: string;
|
|
35
35
|
status?: MessageStatus[];
|
|
36
|
+
engagement_status?: MessageEngagementStatusFilter[];
|
|
36
37
|
channel_id?: string;
|
|
38
|
+
message_ids?: string[];
|
|
37
39
|
trigger_data?: Record<string, any>;
|
|
38
40
|
workflow_categories?: String[];
|
|
41
|
+
"inserted_at.gt"?: string;
|
|
42
|
+
"inserted_at.gte"?: string;
|
|
43
|
+
"inserted_at.lt"?: string;
|
|
44
|
+
"inserted_at.lte"?: string;
|
|
39
45
|
}
|
|
40
46
|
export interface ListMessageActivitiesOptions extends PaginationOptions {
|
|
41
47
|
trigger_data?: Record<string, any>;
|
|
@@ -44,6 +50,7 @@ type WorkflowSource = {
|
|
|
44
50
|
version_id: string;
|
|
45
51
|
key: string;
|
|
46
52
|
};
|
|
47
|
-
type MessageStatus = "queued" | "sent" | "delivered" | "undelivered" | "not_sent";
|
|
53
|
+
type MessageStatus = "queued" | "sent" | "delivered" | "undelivered" | "not_sent" | "delivery_attempted" | "bounced";
|
|
48
54
|
export type MessageEngagementStatus = "seen" | "read" | "archived" | "interacted" | "link_clicked";
|
|
55
|
+
type MessageEngagementStatusFilter = MessageEngagementStatus | "unseen" | "unread" | "unarchived";
|
|
49
56
|
export {};
|
|
@@ -18,9 +18,9 @@ export interface SetPreferencesProperties {
|
|
|
18
18
|
}
|
|
19
19
|
export interface PreferenceSet {
|
|
20
20
|
id: string;
|
|
21
|
-
categories: WorkflowPreferences;
|
|
22
|
-
workflows: WorkflowPreferences;
|
|
23
|
-
channel_types: ChannelTypePreferences;
|
|
21
|
+
categories: WorkflowPreferences | null;
|
|
22
|
+
workflows: WorkflowPreferences | null;
|
|
23
|
+
channel_types: ChannelTypePreferences | null;
|
|
24
24
|
}
|
|
25
25
|
export interface PreferenceOptions {
|
|
26
26
|
preferenceSet?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knocklabs/node",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15",
|
|
4
4
|
"description": "Library for interacting with the Knock API",
|
|
5
5
|
"homepage": "https://github.com/knocklabs/knock-node",
|
|
6
6
|
"author": "@knocklabs",
|
|
@@ -45,4 +45,4 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=17.5.0"
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
}
|