@proveanything/smartlinks 1.1.15 → 1.1.16
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/API_SUMMARY.md +20 -51
- package/dist/types/contact.d.ts +15 -36
- package/package.json +1 -1
package/API_SUMMARY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smartlinks API Summary
|
|
2
2
|
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.16 | Generated: 2026-01-03T21:01:22.707Z
|
|
4
4
|
|
|
5
5
|
This is a concise summary of all available API functions and types.
|
|
6
6
|
|
|
@@ -683,11 +683,12 @@ interface AppendBulkResult {
|
|
|
683
683
|
|
|
684
684
|
### contact
|
|
685
685
|
|
|
686
|
-
**
|
|
686
|
+
**Contact** (interface)
|
|
687
687
|
```typescript
|
|
688
|
-
interface
|
|
688
|
+
interface Contact {
|
|
689
689
|
contactId: string
|
|
690
690
|
orgId: string
|
|
691
|
+
userId: string | null
|
|
691
692
|
firstName: string | null
|
|
692
693
|
lastName: string | null
|
|
693
694
|
displayName: string | null
|
|
@@ -696,6 +697,13 @@ interface ContactResponse {
|
|
|
696
697
|
phone: string | null
|
|
697
698
|
emails?: string[]
|
|
698
699
|
phones?: string[]
|
|
700
|
+
tags?: string[]
|
|
701
|
+
source?: string | null
|
|
702
|
+
notes?: string | null
|
|
703
|
+
avatarUrl?: string | null
|
|
704
|
+
locale?: string | null
|
|
705
|
+
timezone?: string | null
|
|
706
|
+
externalIds?: Record<string, any>
|
|
699
707
|
customFields: ContactCustomFields
|
|
700
708
|
createdAt: string
|
|
701
709
|
updatedAt: string
|
|
@@ -704,62 +712,15 @@ interface ContactResponse {
|
|
|
704
712
|
}
|
|
705
713
|
```
|
|
706
714
|
|
|
707
|
-
**ContactCreateRequest** (interface)
|
|
708
|
-
```typescript
|
|
709
|
-
interface ContactCreateRequest {
|
|
710
|
-
firstName?: string | null
|
|
711
|
-
lastName?: string | null
|
|
712
|
-
displayName?: string | null
|
|
713
|
-
company?: string | null
|
|
714
|
-
email?: string | null
|
|
715
|
-
phone?: string | null
|
|
716
|
-
customFields?: ContactCustomFields
|
|
717
|
-
}
|
|
718
|
-
```
|
|
719
|
-
|
|
720
|
-
**ContactUpdateRequest** (interface)
|
|
721
|
-
```typescript
|
|
722
|
-
interface ContactUpdateRequest {
|
|
723
|
-
firstName?: string | null
|
|
724
|
-
lastName?: string | null
|
|
725
|
-
displayName?: string | null
|
|
726
|
-
company?: string | null
|
|
727
|
-
email?: string | null
|
|
728
|
-
phone?: string | null
|
|
729
|
-
customFields?: ContactCustomFields
|
|
730
|
-
}
|
|
731
|
-
```
|
|
732
|
-
|
|
733
715
|
**ContactListResponse** (interface)
|
|
734
716
|
```typescript
|
|
735
717
|
interface ContactListResponse {
|
|
736
|
-
items:
|
|
718
|
+
items: Contact[]
|
|
737
719
|
limit: number
|
|
738
720
|
offset: number
|
|
739
721
|
}
|
|
740
722
|
```
|
|
741
723
|
|
|
742
|
-
**PublicContactUpsertRequest** (interface)
|
|
743
|
-
```typescript
|
|
744
|
-
interface PublicContactUpsertRequest {
|
|
745
|
-
email?: string
|
|
746
|
-
phone?: string
|
|
747
|
-
userId?: string
|
|
748
|
-
firstName?: string
|
|
749
|
-
lastName?: string
|
|
750
|
-
displayName?: string
|
|
751
|
-
company?: string
|
|
752
|
-
tags?: string[]
|
|
753
|
-
source?: string
|
|
754
|
-
notes?: string
|
|
755
|
-
avatarUrl?: string
|
|
756
|
-
locale?: string
|
|
757
|
-
timezone?: string
|
|
758
|
-
externalIds?: Record<string, any>
|
|
759
|
-
customFields?: ContactCustomFields
|
|
760
|
-
}
|
|
761
|
-
```
|
|
762
|
-
|
|
763
724
|
**PublicContactUpsertResponse** (interface)
|
|
764
725
|
```typescript
|
|
765
726
|
interface PublicContactUpsertResponse {
|
|
@@ -785,6 +746,14 @@ interface UserSearchResponse {
|
|
|
785
746
|
|
|
786
747
|
**ContactCustomFields** = `Record<string, any>`
|
|
787
748
|
|
|
749
|
+
**ContactResponse** = `Contact`
|
|
750
|
+
|
|
751
|
+
**ContactCreateRequest** = `Omit<`
|
|
752
|
+
|
|
753
|
+
**ContactUpdateRequest** = `Partial<ContactCreateRequest>`
|
|
754
|
+
|
|
755
|
+
**PublicContactUpsertRequest** = `Partial<`
|
|
756
|
+
|
|
788
757
|
### error
|
|
789
758
|
|
|
790
759
|
**ErrorResponse** (interface)
|
package/dist/types/contact.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type ContactCustomFields = Record<string, any>;
|
|
2
|
-
export interface
|
|
2
|
+
export interface Contact {
|
|
3
3
|
contactId: string;
|
|
4
4
|
orgId: string;
|
|
5
|
+
userId: string | null;
|
|
5
6
|
firstName: string | null;
|
|
6
7
|
lastName: string | null;
|
|
7
8
|
displayName: string | null;
|
|
@@ -10,52 +11,30 @@ export interface ContactResponse {
|
|
|
10
11
|
phone: string | null;
|
|
11
12
|
emails?: string[];
|
|
12
13
|
phones?: string[];
|
|
14
|
+
tags?: string[];
|
|
15
|
+
source?: string | null;
|
|
16
|
+
notes?: string | null;
|
|
17
|
+
avatarUrl?: string | null;
|
|
18
|
+
locale?: string | null;
|
|
19
|
+
timezone?: string | null;
|
|
20
|
+
externalIds?: Record<string, any>;
|
|
13
21
|
customFields: ContactCustomFields;
|
|
14
22
|
createdAt: string;
|
|
15
23
|
updatedAt: string;
|
|
16
24
|
deletedAt: string | null;
|
|
17
25
|
erasedAt: string | null;
|
|
18
26
|
}
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
displayName?: string | null;
|
|
23
|
-
company?: string | null;
|
|
24
|
-
email?: string | null;
|
|
25
|
-
phone?: string | null;
|
|
26
|
-
customFields?: ContactCustomFields;
|
|
27
|
-
}
|
|
28
|
-
export interface ContactUpdateRequest {
|
|
29
|
-
firstName?: string | null;
|
|
30
|
-
lastName?: string | null;
|
|
31
|
-
displayName?: string | null;
|
|
32
|
-
company?: string | null;
|
|
33
|
-
email?: string | null;
|
|
34
|
-
phone?: string | null;
|
|
35
|
-
customFields?: ContactCustomFields;
|
|
36
|
-
}
|
|
27
|
+
export type ContactResponse = Contact;
|
|
28
|
+
export type ContactCreateRequest = Omit<Contact, "contactId" | "orgId" | "createdAt" | "updatedAt" | "deletedAt" | "erasedAt">;
|
|
29
|
+
export type ContactUpdateRequest = Partial<ContactCreateRequest>;
|
|
37
30
|
export interface ContactListResponse {
|
|
38
|
-
items:
|
|
31
|
+
items: Contact[];
|
|
39
32
|
limit: number;
|
|
40
33
|
offset: number;
|
|
41
34
|
}
|
|
42
|
-
export
|
|
43
|
-
email?: string;
|
|
44
|
-
phone?: string;
|
|
45
|
-
userId?: string;
|
|
46
|
-
firstName?: string;
|
|
47
|
-
lastName?: string;
|
|
48
|
-
displayName?: string;
|
|
49
|
-
company?: string;
|
|
50
|
-
tags?: string[];
|
|
51
|
-
source?: string;
|
|
52
|
-
notes?: string;
|
|
53
|
-
avatarUrl?: string;
|
|
54
|
-
locale?: string;
|
|
55
|
-
timezone?: string;
|
|
56
|
-
externalIds?: Record<string, any>;
|
|
35
|
+
export type PublicContactUpsertRequest = Partial<Pick<Contact, "email" | "phone" | "userId" | "firstName" | "lastName" | "displayName" | "company" | "tags" | "source" | "notes" | "avatarUrl" | "locale" | "timezone" | "externalIds">> & {
|
|
57
36
|
customFields?: ContactCustomFields;
|
|
58
|
-
}
|
|
37
|
+
};
|
|
59
38
|
export interface PublicContactUpsertResponse {
|
|
60
39
|
ok: boolean;
|
|
61
40
|
contactId: string;
|