glitch-javascript-sdk 2.7.3 → 2.7.5

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.
@@ -35,5 +35,12 @@ declare class AccessKeys {
35
35
  * @returns promise
36
36
  */
37
37
  static delete<T>(key_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
38
+ /**
39
+ * Emails the assigned key to the influencer.
40
+ *
41
+ * @param key_id The UUID of the access key.
42
+ * @returns promise
43
+ */
44
+ static sendEmail<T>(key_id: string): AxiosPromise<Response<T>>;
38
45
  }
39
46
  export default AccessKeys;
@@ -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
@@ -5933,6 +5933,7 @@ var AccessKeysRoute = /** @class */ (function () {
5933
5933
  list: { url: '/titles/{title_id}/keys', method: HTTP_METHODS.GET },
5934
5934
  store: { url: '/titles/{title_id}/keys', method: HTTP_METHODS.POST },
5935
5935
  delete: { url: '/keys/{key_id}', method: HTTP_METHODS.DELETE },
5936
+ sendEmail: { url: '/keys/{key_id}/send-email', method: HTTP_METHODS.POST },
5936
5937
  };
5937
5938
  return AccessKeysRoute;
5938
5939
  }());
@@ -5977,6 +5978,15 @@ var AccessKeys = /** @class */ (function () {
5977
5978
  AccessKeys.delete = function (key_id, params) {
5978
5979
  return Requests.processRoute(AccessKeysRoute.routes.delete, {}, { key_id: key_id }, params);
5979
5980
  };
5981
+ /**
5982
+ * Emails the assigned key to the influencer.
5983
+ *
5984
+ * @param key_id The UUID of the access key.
5985
+ * @returns promise
5986
+ */
5987
+ AccessKeys.sendEmail = function (key_id) {
5988
+ return Requests.processRoute(AccessKeysRoute.routes.sendEmail, {}, { key_id: key_id });
5989
+ };
5980
5990
  return AccessKeys;
5981
5991
  }());
5982
5992
 
@@ -17133,6 +17143,8 @@ var CrmRoute = /** @class */ (function () {
17133
17143
  markAsLost: { url: '/admin/crm/leads/{lead_id}/lost', method: HTTP_METHODS.POST },
17134
17144
  recordStaffReply: { url: '/admin/crm/leads/{lead_id}/replied', method: HTTP_METHODS.POST },
17135
17145
  bulkApprove: { url: '/admin/crm/contacts/bulk-approve', method: HTTP_METHODS.POST },
17146
+ updateContact: { url: '/admin/crm/contacts/{contact_id}', method: HTTP_METHODS.PUT },
17147
+ deleteContact: { url: '/admin/crm/contacts/{contact_id}', method: HTTP_METHODS.DELETE },
17136
17148
  // Automation Triggers
17137
17149
  triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
17138
17150
  triggerSync: { url: '/admin/crm/automation/sync', method: HTTP_METHODS.POST },
@@ -17261,6 +17273,18 @@ var Crm = /** @class */ (function () {
17261
17273
  Crm.getInterestStats = function () {
17262
17274
  return Requests.processRoute(CrmRoute.routes.getInterestStats);
17263
17275
  };
17276
+ /**
17277
+ * Update an existing contact's information.
17278
+ */
17279
+ Crm.updateContact = function (contact_id, data) {
17280
+ return Requests.processRoute(CrmRoute.routes.updateContact, data, { contact_id: contact_id });
17281
+ };
17282
+ /**
17283
+ * Remove a contact from a lead.
17284
+ */
17285
+ Crm.deleteContact = function (contact_id) {
17286
+ return Requests.processRoute(CrmRoute.routes.deleteContact, {}, { contact_id: contact_id });
17287
+ };
17264
17288
  return Crm;
17265
17289
  }());
17266
17290