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/index.d.ts
CHANGED
|
@@ -8406,6 +8406,10 @@ 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 human-readable filter options for the CRM campaign composer.
|
|
8411
|
+
*/
|
|
8412
|
+
static getCampaignFilterOptions<T>(): AxiosPromise<Response<T>>;
|
|
8409
8413
|
/**
|
|
8410
8414
|
* List the backend-supported CRM campaign merge fields for the composer.
|
|
8411
8415
|
*/
|
|
@@ -8414,6 +8418,10 @@ declare class Crm {
|
|
|
8414
8418
|
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
8415
8419
|
*/
|
|
8416
8420
|
static renderCampaignTemplatePreview<T>(data: object): AxiosPromise<Response<T>>;
|
|
8421
|
+
/**
|
|
8422
|
+
* Send a non-tracked CRM campaign test email with rendered merge fields.
|
|
8423
|
+
*/
|
|
8424
|
+
static sendCampaignTestEmail<T>(data: object): AxiosPromise<Response<T>>;
|
|
8417
8425
|
/**
|
|
8418
8426
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
8419
8427
|
*/
|
package/package.json
CHANGED
package/src/api/Crm.ts
CHANGED
|
@@ -193,6 +193,13 @@ class Crm {
|
|
|
193
193
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
/**
|
|
197
|
+
* List human-readable filter options for the CRM campaign composer.
|
|
198
|
+
*/
|
|
199
|
+
public static getCampaignFilterOptions<T>(): AxiosPromise<Response<T>> {
|
|
200
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignFilterOptions);
|
|
201
|
+
}
|
|
202
|
+
|
|
196
203
|
/**
|
|
197
204
|
* List the backend-supported CRM campaign merge fields for the composer.
|
|
198
205
|
*/
|
|
@@ -207,6 +214,13 @@ class Crm {
|
|
|
207
214
|
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
208
215
|
}
|
|
209
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Send a non-tracked CRM campaign test email with rendered merge fields.
|
|
219
|
+
*/
|
|
220
|
+
public static sendCampaignTestEmail<T>(data: object): AxiosPromise<Response<T>> {
|
|
221
|
+
return Requests.processRoute(CrmRoute.routes.sendCampaignTestEmail, data);
|
|
222
|
+
}
|
|
223
|
+
|
|
210
224
|
/**
|
|
211
225
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
212
226
|
*/
|
package/src/routes/CrmRoute.ts
CHANGED
|
@@ -31,8 +31,10 @@ 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
|
+
getCampaignFilterOptions: { url: '/admin/crm/campaigns/filter-options', method: HTTP_METHODS.GET },
|
|
34
35
|
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
35
36
|
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
37
|
+
sendCampaignTestEmail: { url: '/admin/crm/campaigns/test-email', method: HTTP_METHODS.POST },
|
|
36
38
|
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
37
39
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
38
40
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|