glitch-javascript-sdk 3.2.19 → 3.2.21

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,6 +30466,10 @@ 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 },
30470
+ getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
30471
+ renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
30472
+ sendCampaignTestEmail: { url: '/admin/crm/campaigns/test-email', method: HTTP_METHODS.POST },
30469
30473
  getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
30470
30474
  sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
30471
30475
  getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
@@ -30648,6 +30652,30 @@ var Crm = /** @class */ (function () {
30648
30652
  Crm.previewCampaignAudience = function (data) {
30649
30653
  return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
30650
30654
  };
30655
+ /**
30656
+ * List human-readable filter options for the CRM campaign composer.
30657
+ */
30658
+ Crm.getCampaignFilterOptions = function () {
30659
+ return Requests.processRoute(CrmRoute.routes.getCampaignFilterOptions);
30660
+ };
30661
+ /**
30662
+ * List the backend-supported CRM campaign merge fields for the composer.
30663
+ */
30664
+ Crm.getCampaignMergeFields = function () {
30665
+ return Requests.processRoute(CrmRoute.routes.getCampaignMergeFields);
30666
+ };
30667
+ /**
30668
+ * Render CRM campaign content with the same merge-field engine used at send time.
30669
+ */
30670
+ Crm.renderCampaignTemplatePreview = function (data) {
30671
+ return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
30672
+ };
30673
+ /**
30674
+ * Send a non-tracked CRM campaign test email with rendered merge fields.
30675
+ */
30676
+ Crm.sendCampaignTestEmail = function (data) {
30677
+ return Requests.processRoute(CrmRoute.routes.sendCampaignTestEmail, data);
30678
+ };
30651
30679
  /**
30652
30680
  * Read CRM campaign queue depth and Azure/system email rate-limit windows.
30653
30681
  */