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/index.d.ts
CHANGED
|
@@ -8406,6 +8406,14 @@ declare class Crm {
|
|
|
8406
8406
|
* Preview campaign audience filters and exclusions without creating recipients.
|
|
8407
8407
|
*/
|
|
8408
8408
|
static previewCampaignAudience<T>(data: object): AxiosPromise<Response<T>>;
|
|
8409
|
+
/**
|
|
8410
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
8411
|
+
*/
|
|
8412
|
+
static getCampaignMergeFields<T>(): AxiosPromise<Response<T>>;
|
|
8413
|
+
/**
|
|
8414
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
8415
|
+
*/
|
|
8416
|
+
static renderCampaignTemplatePreview<T>(data: object): AxiosPromise<Response<T>>;
|
|
8409
8417
|
/**
|
|
8410
8418
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
8411
8419
|
*/
|
package/package.json
CHANGED
package/src/api/Crm.ts
CHANGED
|
@@ -193,6 +193,20 @@ class Crm {
|
|
|
193
193
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
/**
|
|
197
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
198
|
+
*/
|
|
199
|
+
public static getCampaignMergeFields<T>(): AxiosPromise<Response<T>> {
|
|
200
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignMergeFields);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
205
|
+
*/
|
|
206
|
+
public static renderCampaignTemplatePreview<T>(data: object): AxiosPromise<Response<T>> {
|
|
207
|
+
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
208
|
+
}
|
|
209
|
+
|
|
196
210
|
/**
|
|
197
211
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
198
212
|
*/
|
package/src/routes/CrmRoute.ts
CHANGED
|
@@ -31,6 +31,8 @@ class CrmRoute {
|
|
|
31
31
|
updateCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
|
|
32
32
|
deleteCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
|
|
33
33
|
previewCampaignAudience: { url: '/admin/crm/campaigns/preview', method: HTTP_METHODS.POST },
|
|
34
|
+
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
35
|
+
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
34
36
|
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
35
37
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
36
38
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|