@nubea-ecomm/wapo-sdk 0.4.0 → 0.6.0
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/dist/types.d.ts +19 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -94,6 +94,22 @@ export interface Message {
|
|
|
94
94
|
timestamp: string;
|
|
95
95
|
payload: Record<string, unknown>;
|
|
96
96
|
display_text?: string;
|
|
97
|
+
reactions?: MessageReaction[];
|
|
98
|
+
reply_to?: MessageReference;
|
|
99
|
+
}
|
|
100
|
+
export interface MessageReaction {
|
|
101
|
+
emoji: string;
|
|
102
|
+
actor: string;
|
|
103
|
+
direction: 'inbound' | 'outbound';
|
|
104
|
+
message_id: string;
|
|
105
|
+
status: string;
|
|
106
|
+
}
|
|
107
|
+
export interface MessageReference {
|
|
108
|
+
message_id: string;
|
|
109
|
+
direction?: 'inbound' | 'outbound';
|
|
110
|
+
payload?: Record<string, unknown>;
|
|
111
|
+
display_text?: string;
|
|
112
|
+
unavailable: boolean;
|
|
97
113
|
}
|
|
98
114
|
export interface Conversation {
|
|
99
115
|
id: string;
|
|
@@ -108,6 +124,8 @@ export interface Conversation {
|
|
|
108
124
|
updated_at: string;
|
|
109
125
|
service_window_open?: boolean;
|
|
110
126
|
service_window_expires_at?: string;
|
|
127
|
+
has_unread?: boolean;
|
|
128
|
+
last_inbound_message_id?: string;
|
|
111
129
|
}
|
|
112
130
|
export interface Webhook {
|
|
113
131
|
id: string;
|
|
@@ -190,6 +208,7 @@ export interface ConsoleUser {
|
|
|
190
208
|
export interface WhatsAppSettings {
|
|
191
209
|
onboarding_ready: boolean;
|
|
192
210
|
public_url: string;
|
|
211
|
+
callback_url?: string;
|
|
193
212
|
graph_version: string;
|
|
194
213
|
public_https: boolean;
|
|
195
214
|
credentials: Record<'META_APP_ID' | 'META_APP_SECRET' | 'META_EMBEDDED_SIGNUP_CONFIG_ID' | 'META_VERIFY_TOKEN', boolean>;
|