@proteos/sdk 0.44.0 → 0.45.0

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/dist/index.cjs CHANGED
@@ -1437,6 +1437,9 @@ var ContactServiceImpl = class {
1437
1437
  `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`
1438
1438
  );
1439
1439
  }
1440
+ create(request) {
1441
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/contacts`, request);
1442
+ }
1440
1443
  update(id, request) {
1441
1444
  return this.client.request(
1442
1445
  "PATCH",
@@ -1457,6 +1460,28 @@ var ContactServiceImpl = class {
1457
1460
  `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/addresses/${encodeURIComponent(addressId)}`
1458
1461
  );
1459
1462
  }
1463
+ linkRecord(request) {
1464
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/contact-record-links`, request);
1465
+ }
1466
+ listRecordLinks(query = {}) {
1467
+ return this.client.requestWithQuery(
1468
+ "GET",
1469
+ `${CONVERSATION_BASE_PATH}/contact-record-links`,
1470
+ query
1471
+ );
1472
+ }
1473
+ getRecordLink(linkId) {
1474
+ return this.client.request(
1475
+ "GET",
1476
+ `${CONVERSATION_BASE_PATH}/contact-record-links/${encodeURIComponent(linkId)}`
1477
+ );
1478
+ }
1479
+ unlinkRecord(linkId) {
1480
+ return this.client.request(
1481
+ "DELETE",
1482
+ `${CONVERSATION_BASE_PATH}/contact-record-links/${encodeURIComponent(linkId)}`
1483
+ );
1484
+ }
1460
1485
  merge(contactId, request) {
1461
1486
  return this.client.request(
1462
1487
  "POST",