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.
@@ -73,5 +73,17 @@ declare class Crm {
73
73
  * Get win rates and response time analytics.
74
74
  */
75
75
  static getPerformanceStats<T>(): AxiosPromise<Response<T>>;
76
+ /**
77
+ * Get the analytics on what users indcated they were interested in.
78
+ */
79
+ static getInterestStats<T>(): AxiosPromise<Response<T>>;
80
+ /**
81
+ * Update an existing contact's information.
82
+ */
83
+ static updateContact<T>(contact_id: string, data: object): AxiosPromise<Response<T>>;
84
+ /**
85
+ * Remove a contact from a lead.
86
+ */
87
+ static deleteContact<T>(contact_id: string): AxiosPromise<Response<T>>;
76
88
  }
77
89
  export default Crm;
package/dist/esm/index.js CHANGED
@@ -17133,12 +17133,15 @@ var CrmRoute = /** @class */ (function () {
17133
17133
  markAsLost: { url: '/admin/crm/leads/{lead_id}/lost', method: HTTP_METHODS.POST },
17134
17134
  recordStaffReply: { url: '/admin/crm/leads/{lead_id}/replied', method: HTTP_METHODS.POST },
17135
17135
  bulkApprove: { url: '/admin/crm/contacts/bulk-approve', method: HTTP_METHODS.POST },
17136
+ updateContact: { url: '/admin/crm/contacts/{contact_id}', method: HTTP_METHODS.PUT },
17137
+ deleteContact: { url: '/admin/crm/contacts/{contact_id}', method: HTTP_METHODS.DELETE },
17136
17138
  // Automation Triggers
17137
17139
  triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
17138
17140
  triggerSync: { url: '/admin/crm/automation/sync', method: HTTP_METHODS.POST },
17139
17141
  // Analytics
17140
17142
  funnelStats: { url: '/admin/crm/analytics/funnel', method: HTTP_METHODS.GET },
17141
17143
  performanceStats: { url: '/admin/crm/analytics/performance', method: HTTP_METHODS.GET },
17144
+ getInterestStats: { url: '/admin/crm/analytics/interests', method: HTTP_METHODS.GET },
17142
17145
  };
17143
17146
  return CrmRoute;
17144
17147
  }());
@@ -17254,6 +17257,24 @@ var Crm = /** @class */ (function () {
17254
17257
  Crm.getPerformanceStats = function () {
17255
17258
  return Requests.processRoute(CrmRoute.routes.performanceStats);
17256
17259
  };
17260
+ /**
17261
+ * Get the analytics on what users indcated they were interested in.
17262
+ */
17263
+ Crm.getInterestStats = function () {
17264
+ return Requests.processRoute(CrmRoute.routes.getInterestStats);
17265
+ };
17266
+ /**
17267
+ * Update an existing contact's information.
17268
+ */
17269
+ Crm.updateContact = function (contact_id, data) {
17270
+ return Requests.processRoute(CrmRoute.routes.updateContact, data, { contact_id: contact_id });
17271
+ };
17272
+ /**
17273
+ * Remove a contact from a lead.
17274
+ */
17275
+ Crm.deleteContact = function (contact_id) {
17276
+ return Requests.processRoute(CrmRoute.routes.deleteContact, {}, { contact_id: contact_id });
17277
+ };
17257
17278
  return Crm;
17258
17279
  }());
17259
17280