@proveanything/smartlinks 1.0.62 → 1.0.64

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.0.62 | Generated: 2025-12-17T18:11:04.911Z
3
+ Version: 1.0.64 | Generated: 2025-12-17T19:18:01.383Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -1,4 +1,4 @@
1
- import { ContactResponse, ContactCreateRequest, ContactUpdateRequest, ContactListResponse } from "../types/contact";
1
+ import { ContactResponse, ContactCreateRequest, ContactUpdateRequest, ContactListResponse } 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?: {
@@ -2,7 +2,7 @@ import { request, post, del, patch } from "../http";
2
2
  export var contact;
3
3
  (function (contact) {
4
4
  async function create(collectionId, data) {
5
- const path = `/admin/collection/${encodeURIComponent(collectionId)}/crm/contacts`;
5
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/contacts`;
6
6
  return post(path, data);
7
7
  }
8
8
  contact.create = create;
@@ -15,7 +15,7 @@ export var contact;
15
15
  if ((params === null || params === void 0 ? void 0 : params.includeDeleted) !== undefined)
16
16
  query.set("includeDeleted", String(params.includeDeleted));
17
17
  const qs = query.toString();
18
- const path = `/admin/collection/${encodeURIComponent(collectionId)}/crm/contacts${qs ? `?${qs}` : ""}`;
18
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/contacts${qs ? `?${qs}` : ""}`;
19
19
  return request(path);
20
20
  }
21
21
  contact.list = list;
@@ -24,17 +24,17 @@ export var contact;
24
24
  if ((params === null || params === void 0 ? void 0 : params.includeDeleted) !== undefined)
25
25
  query.set("includeDeleted", String(params.includeDeleted));
26
26
  const qs = query.toString();
27
- const path = `/admin/collection/${encodeURIComponent(collectionId)}/crm/contacts/${encodeURIComponent(contactId)}${qs ? `?${qs}` : ""}`;
27
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/contacts/${encodeURIComponent(contactId)}${qs ? `?${qs}` : ""}`;
28
28
  return request(path);
29
29
  }
30
30
  contact.get = get;
31
31
  async function update(collectionId, contactId, data) {
32
- const path = `/admin/collection/${encodeURIComponent(collectionId)}/crm/contacts/${encodeURIComponent(contactId)}`;
32
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/contacts/${encodeURIComponent(contactId)}`;
33
33
  return patch(path, data);
34
34
  }
35
35
  contact.update = update;
36
36
  async function remove(collectionId, contactId) {
37
- const path = `/admin/collection/${encodeURIComponent(collectionId)}/crm/contacts/${encodeURIComponent(contactId)}`;
37
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/contacts/${encodeURIComponent(contactId)}`;
38
38
  return del(path);
39
39
  }
40
40
  contact.remove = remove;
@@ -44,17 +44,17 @@ export var contact;
44
44
  query.set("email", params.email);
45
45
  if (params.phone)
46
46
  query.set("phone", params.phone);
47
- const path = `/admin/collection/${encodeURIComponent(collectionId)}/crm/contacts/lookup?${query.toString()}`;
47
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/contacts/lookup?${query.toString()}`;
48
48
  return request(path);
49
49
  }
50
50
  contact.lookup = lookup;
51
51
  async function upsert(collectionId, data) {
52
- const path = `/admin/collection/${encodeURIComponent(collectionId)}/crm/contacts:upsert`;
52
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/contacts:upsert`;
53
53
  return post(path, data);
54
54
  }
55
55
  contact.upsert = upsert;
56
56
  async function erase(collectionId, contactId, body) {
57
- const path = `/admin/collection/${encodeURIComponent(collectionId)}/crm/contacts/${encodeURIComponent(contactId)}/erase`;
57
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/contacts/${encodeURIComponent(contactId)}/erase`;
58
58
  return post(path, body || {});
59
59
  }
60
60
  contact.erase = erase;
@@ -15,4 +15,5 @@ export { variant } from "./variant";
15
15
  export { ai } from "./ai";
16
16
  export { comms } from "./comms";
17
17
  export { nfc } from "./nfc";
18
+ export { contact } from "./contact";
18
19
  export type { AIGenerateContentRequest, AIGenerateImageRequest, AISearchPhotosRequest, AISearchPhotosPhoto } from "./ai";
package/dist/api/index.js CHANGED
@@ -17,3 +17,4 @@ export { variant } from "./variant";
17
17
  export { ai } from "./ai";
18
18
  export { comms } from "./comms";
19
19
  export { nfc } from "./nfc";
20
+ export { contact } from "./contact";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",