@ixblix/sdk-js 0.3.0 → 0.3.1
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 +1 -1
- package/dist/types.d.ts +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ const { conversation, deeplink } = await ixblix.createConversation({
|
|
|
57
57
|
contact: {
|
|
58
58
|
externalId: "whatsapp_5511999999999",
|
|
59
59
|
name: "John Doe",
|
|
60
|
-
phone: "+55 11 99999-9999",
|
|
60
|
+
metadata: { phone: "+55 11 99999-9999" },
|
|
61
61
|
},
|
|
62
62
|
channel: "whatsapp",
|
|
63
63
|
// Optionally attach the operator's identity so the customer's client can
|
package/dist/types.d.ts
CHANGED
|
@@ -18,17 +18,15 @@ export interface Contact {
|
|
|
18
18
|
id: string;
|
|
19
19
|
externalId: string;
|
|
20
20
|
name?: string;
|
|
21
|
-
|
|
22
|
-
email?: string;
|
|
21
|
+
metadata?: Record<string, unknown>;
|
|
23
22
|
consentStatus: ConsentStatus;
|
|
23
|
+
consentedAt?: string;
|
|
24
24
|
}
|
|
25
25
|
/** Payload used to create a conversation for a contact. */
|
|
26
26
|
export interface ContactInput {
|
|
27
27
|
/** Unique identifier of the contact in the original channel. */
|
|
28
28
|
externalId: string;
|
|
29
29
|
name?: string;
|
|
30
|
-
phone?: string;
|
|
31
|
-
email?: string;
|
|
32
30
|
/** Free-form metadata from the CRM. */
|
|
33
31
|
metadata?: Record<string, unknown>;
|
|
34
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixblix/sdk-js",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Official ixblix SDK for desk/CRM integrations. Create overflow conversations, exchange end-to-end encrypted messages and media, and manage company onboarding.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|