glitch-javascript-sdk 3.2.19 → 3.2.20
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,14 @@ 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 the backend-supported CRM campaign merge fields for the composer.
|
|
114
|
+
*/
|
|
115
|
+
static getCampaignMergeFields<T>(): AxiosPromise<Response<T>>;
|
|
116
|
+
/**
|
|
117
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
118
|
+
*/
|
|
119
|
+
static renderCampaignTemplatePreview<T>(data: object): AxiosPromise<Response<T>>;
|
|
112
120
|
/**
|
|
113
121
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
114
122
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -18468,6 +18468,8 @@ 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
|
+
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
18472
|
+
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
18471
18473
|
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
18472
18474
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
18473
18475
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
@@ -18650,6 +18652,18 @@ var Crm = /** @class */ (function () {
|
|
|
18650
18652
|
Crm.previewCampaignAudience = function (data) {
|
|
18651
18653
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
18652
18654
|
};
|
|
18655
|
+
/**
|
|
18656
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
18657
|
+
*/
|
|
18658
|
+
Crm.getCampaignMergeFields = function () {
|
|
18659
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignMergeFields);
|
|
18660
|
+
};
|
|
18661
|
+
/**
|
|
18662
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
18663
|
+
*/
|
|
18664
|
+
Crm.renderCampaignTemplatePreview = function (data) {
|
|
18665
|
+
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
18666
|
+
};
|
|
18653
18667
|
/**
|
|
18654
18668
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
18655
18669
|
*/
|