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.
@@ -77,5 +77,13 @@ declare class Crm {
77
77
  * Get the analytics on what users indcated they were interested in.
78
78
  */
79
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>>;
80
88
  }
81
89
  export default Crm;
package/dist/esm/index.js CHANGED
@@ -17133,6 +17133,8 @@ 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 },
@@ -17261,6 +17263,18 @@ var Crm = /** @class */ (function () {
17261
17263
  Crm.getInterestStats = function () {
17262
17264
  return Requests.processRoute(CrmRoute.routes.getInterestStats);
17263
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
+ };
17264
17278
  return Crm;
17265
17279
  }());
17266
17280