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 +28 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Crm.d.ts +16 -0
- package/dist/esm/index.js +28 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
- package/src/api/Crm.ts +28 -0
- package/src/routes/CrmRoute.ts +4 -0
package/dist/index.d.ts
CHANGED
|
@@ -8406,6 +8406,22 @@ 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>>;
|
|
8413
|
+
/**
|
|
8414
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
8415
|
+
*/
|
|
8416
|
+
static getCampaignMergeFields<T>(): AxiosPromise<Response<T>>;
|
|
8417
|
+
/**
|
|
8418
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
8419
|
+
*/
|
|
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>>;
|
|
8409
8425
|
/**
|
|
8410
8426
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
8411
8427
|
*/
|
package/package.json
CHANGED
package/src/api/Crm.ts
CHANGED
|
@@ -193,6 +193,34 @@ 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
|
+
|
|
203
|
+
/**
|
|
204
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
205
|
+
*/
|
|
206
|
+
public static getCampaignMergeFields<T>(): AxiosPromise<Response<T>> {
|
|
207
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignMergeFields);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
212
|
+
*/
|
|
213
|
+
public static renderCampaignTemplatePreview<T>(data: object): AxiosPromise<Response<T>> {
|
|
214
|
+
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
215
|
+
}
|
|
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
|
+
|
|
196
224
|
/**
|
|
197
225
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
198
226
|
*/
|
package/src/routes/CrmRoute.ts
CHANGED
|
@@ -31,6 +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 },
|
|
35
|
+
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
36
|
+
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
37
|
+
sendCampaignTestEmail: { url: '/admin/crm/campaigns/test-email', method: HTTP_METHODS.POST },
|
|
34
38
|
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
35
39
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
36
40
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|