glitch-javascript-sdk 2.7.2 → 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 +21 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Crm.d.ts +12 -0
- package/dist/esm/index.js +21 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/Crm.ts +22 -0
- package/src/routes/CrmRoute.ts +4 -0
package/dist/cjs/index.js
CHANGED
|
@@ -30317,12 +30317,15 @@ 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 },
|
|
30323
30325
|
// Analytics
|
|
30324
30326
|
funnelStats: { url: '/admin/crm/analytics/funnel', method: HTTP_METHODS.GET },
|
|
30325
30327
|
performanceStats: { url: '/admin/crm/analytics/performance', method: HTTP_METHODS.GET },
|
|
30328
|
+
getInterestStats: { url: '/admin/crm/analytics/interests', method: HTTP_METHODS.GET },
|
|
30326
30329
|
};
|
|
30327
30330
|
return CrmRoute;
|
|
30328
30331
|
}());
|
|
@@ -30438,6 +30441,24 @@ var Crm = /** @class */ (function () {
|
|
|
30438
30441
|
Crm.getPerformanceStats = function () {
|
|
30439
30442
|
return Requests.processRoute(CrmRoute.routes.performanceStats);
|
|
30440
30443
|
};
|
|
30444
|
+
/**
|
|
30445
|
+
* Get the analytics on what users indcated they were interested in.
|
|
30446
|
+
*/
|
|
30447
|
+
Crm.getInterestStats = function () {
|
|
30448
|
+
return Requests.processRoute(CrmRoute.routes.getInterestStats);
|
|
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
|
+
};
|
|
30441
30462
|
return Crm;
|
|
30442
30463
|
}());
|
|
30443
30464
|
|