glitch-javascript-sdk 3.2.20 → 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 +14 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Crm.d.ts +8 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Crm.ts +14 -0
- package/src/routes/CrmRoute.ts +2 -0
package/dist/esm/api/Crm.d.ts
CHANGED
|
@@ -109,6 +109,10 @@ declare class Crm {
|
|
|
109
109
|
* Preview campaign audience filters and exclusions without creating recipients.
|
|
110
110
|
*/
|
|
111
111
|
static previewCampaignAudience<T>(data: object): AxiosPromise<Response<T>>;
|
|
112
|
+
/**
|
|
113
|
+
* List human-readable filter options for the CRM campaign composer.
|
|
114
|
+
*/
|
|
115
|
+
static getCampaignFilterOptions<T>(): AxiosPromise<Response<T>>;
|
|
112
116
|
/**
|
|
113
117
|
* List the backend-supported CRM campaign merge fields for the composer.
|
|
114
118
|
*/
|
|
@@ -117,6 +121,10 @@ declare class Crm {
|
|
|
117
121
|
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
118
122
|
*/
|
|
119
123
|
static renderCampaignTemplatePreview<T>(data: object): AxiosPromise<Response<T>>;
|
|
124
|
+
/**
|
|
125
|
+
* Send a non-tracked CRM campaign test email with rendered merge fields.
|
|
126
|
+
*/
|
|
127
|
+
static sendCampaignTestEmail<T>(data: object): AxiosPromise<Response<T>>;
|
|
120
128
|
/**
|
|
121
129
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
122
130
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -18468,8 +18468,10 @@ var CrmRoute = /** @class */ (function () {
|
|
|
18468
18468
|
updateCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
|
|
18469
18469
|
deleteCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
|
|
18470
18470
|
previewCampaignAudience: { url: '/admin/crm/campaigns/preview', method: HTTP_METHODS.POST },
|
|
18471
|
+
getCampaignFilterOptions: { url: '/admin/crm/campaigns/filter-options', method: HTTP_METHODS.GET },
|
|
18471
18472
|
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
18472
18473
|
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
18474
|
+
sendCampaignTestEmail: { url: '/admin/crm/campaigns/test-email', method: HTTP_METHODS.POST },
|
|
18473
18475
|
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
18474
18476
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
18475
18477
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
@@ -18652,6 +18654,12 @@ var Crm = /** @class */ (function () {
|
|
|
18652
18654
|
Crm.previewCampaignAudience = function (data) {
|
|
18653
18655
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
18654
18656
|
};
|
|
18657
|
+
/**
|
|
18658
|
+
* List human-readable filter options for the CRM campaign composer.
|
|
18659
|
+
*/
|
|
18660
|
+
Crm.getCampaignFilterOptions = function () {
|
|
18661
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignFilterOptions);
|
|
18662
|
+
};
|
|
18655
18663
|
/**
|
|
18656
18664
|
* List the backend-supported CRM campaign merge fields for the composer.
|
|
18657
18665
|
*/
|
|
@@ -18664,6 +18672,12 @@ var Crm = /** @class */ (function () {
|
|
|
18664
18672
|
Crm.renderCampaignTemplatePreview = function (data) {
|
|
18665
18673
|
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
18666
18674
|
};
|
|
18675
|
+
/**
|
|
18676
|
+
* Send a non-tracked CRM campaign test email with rendered merge fields.
|
|
18677
|
+
*/
|
|
18678
|
+
Crm.sendCampaignTestEmail = function (data) {
|
|
18679
|
+
return Requests.processRoute(CrmRoute.routes.sendCampaignTestEmail, data);
|
|
18680
|
+
};
|
|
18667
18681
|
/**
|
|
18668
18682
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
18669
18683
|
*/
|