glitch-javascript-sdk 3.2.21 → 3.2.22

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.
@@ -149,5 +149,25 @@ declare class Crm {
149
149
  * Import external prospects into CRM leads and contacts for future campaigns.
150
150
  */
151
151
  static importCampaignProspects<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
152
+ /**
153
+ * List provider-managed sender and reply-to addresses for CRM campaigns.
154
+ */
155
+ static listEmailProviderAddresses<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
156
+ /**
157
+ * List sender/reply-to dropdown options and defaults for the campaign composer.
158
+ */
159
+ static getEmailProviderAddressOptions<T>(): AxiosPromise<Response<T>>;
160
+ /**
161
+ * Add a provider-managed sender or reply-to address.
162
+ */
163
+ static createEmailProviderAddress<T>(data: object): AxiosPromise<Response<T>>;
164
+ /**
165
+ * Update provider verification, sendability, capabilities, defaults, or notes.
166
+ */
167
+ static updateEmailProviderAddress<T>(address_id: string, data: object): AxiosPromise<Response<T>>;
168
+ /**
169
+ * Deactivate a provider address while keeping the audit record.
170
+ */
171
+ static deactivateEmailProviderAddress<T>(address_id: string): AxiosPromise<Response<T>>;
152
172
  }
153
173
  export default Crm;
package/dist/esm/index.js CHANGED
@@ -18478,6 +18478,11 @@ var CrmRoute = /** @class */ (function () {
18478
18478
  listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
18479
18479
  previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
18480
18480
  importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
18481
+ listEmailProviderAddresses: { url: '/admin/crm/email-provider-addresses', method: HTTP_METHODS.GET },
18482
+ getEmailProviderAddressOptions: { url: '/admin/crm/email-provider-addresses/options', method: HTTP_METHODS.GET },
18483
+ createEmailProviderAddress: { url: '/admin/crm/email-provider-addresses', method: HTTP_METHODS.POST },
18484
+ updateEmailProviderAddress: { url: '/admin/crm/email-provider-addresses/{address_id}', method: HTTP_METHODS.PUT },
18485
+ deactivateEmailProviderAddress: { url: '/admin/crm/email-provider-addresses/{address_id}', method: HTTP_METHODS.DELETE },
18481
18486
  // Automation Triggers
18482
18487
  triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
18483
18488
  triggerSync: { url: '/admin/crm/automation/sync', method: HTTP_METHODS.POST },
@@ -18717,6 +18722,36 @@ var Crm = /** @class */ (function () {
18717
18722
  if (options === void 0) { options = {}; }
18718
18723
  return Requests.processRoute(CrmRoute.routes.importCampaignProspects, __assign({ prospects: prospects }, options));
18719
18724
  };
18725
+ /**
18726
+ * List provider-managed sender and reply-to addresses for CRM campaigns.
18727
+ */
18728
+ Crm.listEmailProviderAddresses = function (params) {
18729
+ return Requests.processRoute(CrmRoute.routes.listEmailProviderAddresses, undefined, undefined, params);
18730
+ };
18731
+ /**
18732
+ * List sender/reply-to dropdown options and defaults for the campaign composer.
18733
+ */
18734
+ Crm.getEmailProviderAddressOptions = function () {
18735
+ return Requests.processRoute(CrmRoute.routes.getEmailProviderAddressOptions);
18736
+ };
18737
+ /**
18738
+ * Add a provider-managed sender or reply-to address.
18739
+ */
18740
+ Crm.createEmailProviderAddress = function (data) {
18741
+ return Requests.processRoute(CrmRoute.routes.createEmailProviderAddress, data);
18742
+ };
18743
+ /**
18744
+ * Update provider verification, sendability, capabilities, defaults, or notes.
18745
+ */
18746
+ Crm.updateEmailProviderAddress = function (address_id, data) {
18747
+ return Requests.processRoute(CrmRoute.routes.updateEmailProviderAddress, data, { address_id: address_id });
18748
+ };
18749
+ /**
18750
+ * Deactivate a provider address while keeping the audit record.
18751
+ */
18752
+ Crm.deactivateEmailProviderAddress = function (address_id) {
18753
+ return Requests.processRoute(CrmRoute.routes.deactivateEmailProviderAddress, {}, { address_id: address_id });
18754
+ };
18720
18755
  return Crm;
18721
18756
  }());
18722
18757