@proveanything/smartlinks 1.1.14 → 1.1.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/API_SUMMARY.md +17 -2
- package/dist/api/contact.d.ts +2 -2
- package/dist/types/contact.d.ts +11 -0
- 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.15 | Generated: 2026-01-03T20:22:14.481Z
|
|
4
4
|
|
|
5
5
|
This is a concise summary of all available API functions and types.
|
|
6
6
|
|
|
@@ -768,6 +768,21 @@ interface PublicContactUpsertResponse {
|
|
|
768
768
|
}
|
|
769
769
|
```
|
|
770
770
|
|
|
771
|
+
**UserSearchResponse** (interface)
|
|
772
|
+
```typescript
|
|
773
|
+
interface UserSearchResponse {
|
|
774
|
+
user: {
|
|
775
|
+
uid: string,
|
|
776
|
+
displayName: string | null,
|
|
777
|
+
email: string | null,
|
|
778
|
+
phoneNumber: string | null,
|
|
779
|
+
photoURL: string | null
|
|
780
|
+
},
|
|
781
|
+
contact: ContactResponse | null
|
|
782
|
+
existsAsContact: boolean
|
|
783
|
+
}
|
|
784
|
+
```
|
|
785
|
+
|
|
771
786
|
**ContactCustomFields** = `Record<string, any>`
|
|
772
787
|
|
|
773
788
|
### error
|
|
@@ -1963,7 +1978,7 @@ Logging: Append many communication events for a list of IDs. POST /admin/collect
|
|
|
1963
1978
|
**erase**(collectionId: string, contactId: string, body?: any) → `Promise<ContactResponse>`
|
|
1964
1979
|
|
|
1965
1980
|
**getUser**(collectionId: string,
|
|
1966
|
-
userId: string,) → `Promise<
|
|
1981
|
+
userId: string,) → `Promise<UserSearchResponse>`
|
|
1967
1982
|
|
|
1968
1983
|
### crate
|
|
1969
1984
|
|
package/dist/api/contact.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContactResponse, ContactCreateRequest, ContactUpdateRequest, ContactListResponse, PublicContactUpsertRequest, PublicContactUpsertResponse } from "../types";
|
|
1
|
+
import { ContactResponse, ContactCreateRequest, ContactUpdateRequest, ContactListResponse, PublicContactUpsertRequest, PublicContactUpsertResponse, UserSearchResponse } from "../types";
|
|
2
2
|
export declare namespace contact {
|
|
3
3
|
function create(collectionId: string, data: ContactCreateRequest): Promise<ContactResponse>;
|
|
4
4
|
function list(collectionId: string, params?: {
|
|
@@ -18,5 +18,5 @@ export declare namespace contact {
|
|
|
18
18
|
function upsert(collectionId: string, data: ContactCreateRequest): Promise<ContactResponse>;
|
|
19
19
|
function publicUpsert(collectionId: string, data: PublicContactUpsertRequest): Promise<PublicContactUpsertResponse>;
|
|
20
20
|
function erase(collectionId: string, contactId: string, body?: any): Promise<ContactResponse>;
|
|
21
|
-
function getUser(collectionId: string, userId: string): Promise<
|
|
21
|
+
function getUser(collectionId: string, userId: string): Promise<UserSearchResponse>;
|
|
22
22
|
}
|
package/dist/types/contact.d.ts
CHANGED
|
@@ -60,3 +60,14 @@ export interface PublicContactUpsertResponse {
|
|
|
60
60
|
ok: boolean;
|
|
61
61
|
contactId: string;
|
|
62
62
|
}
|
|
63
|
+
export interface UserSearchResponse {
|
|
64
|
+
user: {
|
|
65
|
+
uid: string;
|
|
66
|
+
displayName: string | null;
|
|
67
|
+
email: string | null;
|
|
68
|
+
phoneNumber: string | null;
|
|
69
|
+
photoURL: string | null;
|
|
70
|
+
};
|
|
71
|
+
contact: ContactResponse | null;
|
|
72
|
+
existsAsContact: boolean;
|
|
73
|
+
}
|