glitch-javascript-sdk 3.2.20 → 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.
package/dist/cjs/index.js CHANGED
@@ -30466,14 +30466,21 @@ var CrmRoute = /** @class */ (function () {
30466
30466
  updateCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
30467
30467
  deleteCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
30468
30468
  previewCampaignAudience: { url: '/admin/crm/campaigns/preview', method: HTTP_METHODS.POST },
30469
+ getCampaignFilterOptions: { url: '/admin/crm/campaigns/filter-options', method: HTTP_METHODS.GET },
30469
30470
  getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
30470
30471
  renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
30472
+ sendCampaignTestEmail: { url: '/admin/crm/campaigns/test-email', method: HTTP_METHODS.POST },
30471
30473
  getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
30472
30474
  sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
30473
30475
  getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
30474
30476
  listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
30475
30477
  previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
30476
30478
  importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
30479
+ listEmailProviderAddresses: { url: '/admin/crm/email-provider-addresses', method: HTTP_METHODS.GET },
30480
+ getEmailProviderAddressOptions: { url: '/admin/crm/email-provider-addresses/options', method: HTTP_METHODS.GET },
30481
+ createEmailProviderAddress: { url: '/admin/crm/email-provider-addresses', method: HTTP_METHODS.POST },
30482
+ updateEmailProviderAddress: { url: '/admin/crm/email-provider-addresses/{address_id}', method: HTTP_METHODS.PUT },
30483
+ deactivateEmailProviderAddress: { url: '/admin/crm/email-provider-addresses/{address_id}', method: HTTP_METHODS.DELETE },
30477
30484
  // Automation Triggers
30478
30485
  triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
30479
30486
  triggerSync: { url: '/admin/crm/automation/sync', method: HTTP_METHODS.POST },
@@ -30650,6 +30657,12 @@ var Crm = /** @class */ (function () {
30650
30657
  Crm.previewCampaignAudience = function (data) {
30651
30658
  return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
30652
30659
  };
30660
+ /**
30661
+ * List human-readable filter options for the CRM campaign composer.
30662
+ */
30663
+ Crm.getCampaignFilterOptions = function () {
30664
+ return Requests.processRoute(CrmRoute.routes.getCampaignFilterOptions);
30665
+ };
30653
30666
  /**
30654
30667
  * List the backend-supported CRM campaign merge fields for the composer.
30655
30668
  */
@@ -30662,6 +30675,12 @@ var Crm = /** @class */ (function () {
30662
30675
  Crm.renderCampaignTemplatePreview = function (data) {
30663
30676
  return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
30664
30677
  };
30678
+ /**
30679
+ * Send a non-tracked CRM campaign test email with rendered merge fields.
30680
+ */
30681
+ Crm.sendCampaignTestEmail = function (data) {
30682
+ return Requests.processRoute(CrmRoute.routes.sendCampaignTestEmail, data);
30683
+ };
30665
30684
  /**
30666
30685
  * Read CRM campaign queue depth and Azure/system email rate-limit windows.
30667
30686
  */
@@ -30701,6 +30720,36 @@ var Crm = /** @class */ (function () {
30701
30720
  if (options === void 0) { options = {}; }
30702
30721
  return Requests.processRoute(CrmRoute.routes.importCampaignProspects, __assign({ prospects: prospects }, options));
30703
30722
  };
30723
+ /**
30724
+ * List provider-managed sender and reply-to addresses for CRM campaigns.
30725
+ */
30726
+ Crm.listEmailProviderAddresses = function (params) {
30727
+ return Requests.processRoute(CrmRoute.routes.listEmailProviderAddresses, undefined, undefined, params);
30728
+ };
30729
+ /**
30730
+ * List sender/reply-to dropdown options and defaults for the campaign composer.
30731
+ */
30732
+ Crm.getEmailProviderAddressOptions = function () {
30733
+ return Requests.processRoute(CrmRoute.routes.getEmailProviderAddressOptions);
30734
+ };
30735
+ /**
30736
+ * Add a provider-managed sender or reply-to address.
30737
+ */
30738
+ Crm.createEmailProviderAddress = function (data) {
30739
+ return Requests.processRoute(CrmRoute.routes.createEmailProviderAddress, data);
30740
+ };
30741
+ /**
30742
+ * Update provider verification, sendability, capabilities, defaults, or notes.
30743
+ */
30744
+ Crm.updateEmailProviderAddress = function (address_id, data) {
30745
+ return Requests.processRoute(CrmRoute.routes.updateEmailProviderAddress, data, { address_id: address_id });
30746
+ };
30747
+ /**
30748
+ * Deactivate a provider address while keeping the audit record.
30749
+ */
30750
+ Crm.deactivateEmailProviderAddress = function (address_id) {
30751
+ return Requests.processRoute(CrmRoute.routes.deactivateEmailProviderAddress, {}, { address_id: address_id });
30752
+ };
30704
30753
  return Crm;
30705
30754
  }());
30706
30755