glitch-javascript-sdk 2.7.3 → 2.7.4
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/cjs/index.js +14 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Crm.d.ts +8 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Crm.ts +15 -0
- package/src/routes/CrmRoute.ts +3 -0
package/dist/cjs/index.js
CHANGED
|
@@ -30317,6 +30317,8 @@ var CrmRoute = /** @class */ (function () {
|
|
|
30317
30317
|
markAsLost: { url: '/admin/crm/leads/{lead_id}/lost', method: HTTP_METHODS.POST },
|
|
30318
30318
|
recordStaffReply: { url: '/admin/crm/leads/{lead_id}/replied', method: HTTP_METHODS.POST },
|
|
30319
30319
|
bulkApprove: { url: '/admin/crm/contacts/bulk-approve', method: HTTP_METHODS.POST },
|
|
30320
|
+
updateContact: { url: '/admin/crm/contacts/{contact_id}', method: HTTP_METHODS.PUT },
|
|
30321
|
+
deleteContact: { url: '/admin/crm/contacts/{contact_id}', method: HTTP_METHODS.DELETE },
|
|
30320
30322
|
// Automation Triggers
|
|
30321
30323
|
triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
|
|
30322
30324
|
triggerSync: { url: '/admin/crm/automation/sync', method: HTTP_METHODS.POST },
|
|
@@ -30445,6 +30447,18 @@ var Crm = /** @class */ (function () {
|
|
|
30445
30447
|
Crm.getInterestStats = function () {
|
|
30446
30448
|
return Requests.processRoute(CrmRoute.routes.getInterestStats);
|
|
30447
30449
|
};
|
|
30450
|
+
/**
|
|
30451
|
+
* Update an existing contact's information.
|
|
30452
|
+
*/
|
|
30453
|
+
Crm.updateContact = function (contact_id, data) {
|
|
30454
|
+
return Requests.processRoute(CrmRoute.routes.updateContact, data, { contact_id: contact_id });
|
|
30455
|
+
};
|
|
30456
|
+
/**
|
|
30457
|
+
* Remove a contact from a lead.
|
|
30458
|
+
*/
|
|
30459
|
+
Crm.deleteContact = function (contact_id) {
|
|
30460
|
+
return Requests.processRoute(CrmRoute.routes.deleteContact, {}, { contact_id: contact_id });
|
|
30461
|
+
};
|
|
30448
30462
|
return Crm;
|
|
30449
30463
|
}());
|
|
30450
30464
|
|