@proveanything/smartlinks 1.1.13 → 1.1.14
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 +4 -1
- package/dist/api/contact.d.ts +1 -0
- package/dist/api/contact.js +6 -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.14 | Generated: 2026-01-03T20:08:46.358Z
|
|
4
4
|
|
|
5
5
|
This is a concise summary of all available API functions and types.
|
|
6
6
|
|
|
@@ -1962,6 +1962,9 @@ Logging: Append many communication events for a list of IDs. POST /admin/collect
|
|
|
1962
1962
|
|
|
1963
1963
|
**erase**(collectionId: string, contactId: string, body?: any) → `Promise<ContactResponse>`
|
|
1964
1964
|
|
|
1965
|
+
**getUser**(collectionId: string,
|
|
1966
|
+
userId: string,) → `Promise<ContactResponse>`
|
|
1967
|
+
|
|
1965
1968
|
### crate
|
|
1966
1969
|
|
|
1967
1970
|
**get**(collectionId: string, crateId: string) → `Promise<any>`
|
package/dist/api/contact.d.ts
CHANGED
|
@@ -18,4 +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<ContactResponse>;
|
|
21
22
|
}
|
package/dist/api/contact.js
CHANGED
|
@@ -64,4 +64,10 @@ export var contact;
|
|
|
64
64
|
return post(path, body || {});
|
|
65
65
|
}
|
|
66
66
|
contact.erase = erase;
|
|
67
|
+
// get user
|
|
68
|
+
async function getUser(collectionId, userId) {
|
|
69
|
+
const path = `/admin/collection/${encodeURIComponent(collectionId)}/owner/${encodeURIComponent(userId)}`;
|
|
70
|
+
return request(path);
|
|
71
|
+
}
|
|
72
|
+
contact.getUser = getUser;
|
|
67
73
|
})(contact || (contact = {}));
|