@wats/types 0.3.30 → 0.5.0-beta

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.
Files changed (2) hide show
  1. package/dist/contacts.d.ts +6 -14
  2. package/package.json +2 -1
@@ -1,23 +1,15 @@
1
1
  export interface WhatsAppContactName {
2
- formatted?: string;
3
- first_name?: string;
4
- last_name?: string;
5
- middle_name?: string;
6
- suffix?: string;
7
- prefix?: string;
8
- /**
9
- * Legacy camelCase fields retained from B1. Either casing style may be
10
- * populated depending on who authored the payload.
11
- * TODO(F-8): collapse to camelCase-only once the normalizer lands.
12
- */
13
2
  formattedName?: string;
14
3
  firstName?: string;
15
4
  lastName?: string;
5
+ middleName?: string;
6
+ suffix?: string;
7
+ prefix?: string;
16
8
  }
17
9
  export interface ContactPhone {
18
10
  phone?: string;
19
11
  type?: string;
20
- wa_id?: string;
12
+ waId?: string;
21
13
  }
22
14
  export interface ContactEmail {
23
15
  email?: string;
@@ -29,7 +21,7 @@ export interface ContactAddress {
29
21
  state?: string;
30
22
  zip?: string;
31
23
  country?: string;
32
- country_code?: string;
24
+ countryCode?: string;
33
25
  type?: string;
34
26
  }
35
27
  export interface ContactOrg {
@@ -42,7 +34,7 @@ export interface ContactUrl {
42
34
  type?: string;
43
35
  }
44
36
  export interface WhatsAppContact {
45
- wa_id?: string;
37
+ waId?: string;
46
38
  profile?: {
47
39
  name?: string;
48
40
  };
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@wats/types",
3
- "version": "0.3.30",
3
+ "description": "Shared WhatsApp domain types.",
4
+ "version": "0.5.0-beta",
4
5
  "private": false,
5
6
  "license": "MIT",
6
7
  "type": "module",