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/esm/api/Crm.d.ts
CHANGED
|
@@ -109,6 +109,22 @@ 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>>;
|
|
116
|
+
/**
|
|
117
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
118
|
+
*/
|
|
119
|
+
static getCampaignMergeFields<T>(): AxiosPromise<Response<T>>;
|
|
120
|
+
/**
|
|
121
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
122
|
+
*/
|
|
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>>;
|
|
112
128
|
/**
|
|
113
129
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
114
130
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -18468,6 +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 },
|
|
18472
|
+
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
18473
|
+
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
18474
|
+
sendCampaignTestEmail: { url: '/admin/crm/campaigns/test-email', method: HTTP_METHODS.POST },
|
|
18471
18475
|
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
18472
18476
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
18473
18477
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
@@ -18650,6 +18654,30 @@ var Crm = /** @class */ (function () {
|
|
|
18650
18654
|
Crm.previewCampaignAudience = function (data) {
|
|
18651
18655
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
18652
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
|
+
};
|
|
18663
|
+
/**
|
|
18664
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
18665
|
+
*/
|
|
18666
|
+
Crm.getCampaignMergeFields = function () {
|
|
18667
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignMergeFields);
|
|
18668
|
+
};
|
|
18669
|
+
/**
|
|
18670
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
18671
|
+
*/
|
|
18672
|
+
Crm.renderCampaignTemplatePreview = function (data) {
|
|
18673
|
+
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
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
|
+
};
|
|
18653
18681
|
/**
|
|
18654
18682
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
18655
18683
|
*/
|