glitch-javascript-sdk 3.2.18 → 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 +32 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Crm.d.ts +17 -1
- package/dist/esm/index.js +32 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +17 -1
- package/package.json +1 -1
- package/src/api/Crm.ts +30 -2
- package/src/routes/CrmRoute.ts +4 -0
package/dist/cjs/index.js
CHANGED
|
@@ -30466,9 +30466,13 @@ var CrmRoute = /** @class */ (function () {
|
|
|
30466
30466
|
updateCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
|
|
30467
30467
|
deleteCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
|
|
30468
30468
|
previewCampaignAudience: { url: '/admin/crm/campaigns/preview', method: HTTP_METHODS.POST },
|
|
30469
|
+
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
30470
|
+
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
30471
|
+
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
30469
30472
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
30470
30473
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
30471
30474
|
listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
|
|
30475
|
+
previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
|
|
30472
30476
|
importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
|
|
30473
30477
|
// Automation Triggers
|
|
30474
30478
|
triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
|
|
@@ -30646,6 +30650,24 @@ var Crm = /** @class */ (function () {
|
|
|
30646
30650
|
Crm.previewCampaignAudience = function (data) {
|
|
30647
30651
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
30648
30652
|
};
|
|
30653
|
+
/**
|
|
30654
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
30655
|
+
*/
|
|
30656
|
+
Crm.getCampaignMergeFields = function () {
|
|
30657
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignMergeFields);
|
|
30658
|
+
};
|
|
30659
|
+
/**
|
|
30660
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
30661
|
+
*/
|
|
30662
|
+
Crm.renderCampaignTemplatePreview = function (data) {
|
|
30663
|
+
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
30664
|
+
};
|
|
30665
|
+
/**
|
|
30666
|
+
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
30667
|
+
*/
|
|
30668
|
+
Crm.getCampaignDeliveryStatus = function () {
|
|
30669
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignDeliveryStatus);
|
|
30670
|
+
};
|
|
30649
30671
|
/**
|
|
30650
30672
|
* Materialize and queue a CRM campaign, optionally with a limit or dispatch=false.
|
|
30651
30673
|
*/
|
|
@@ -30665,11 +30687,19 @@ var Crm = /** @class */ (function () {
|
|
|
30665
30687
|
Crm.listCampaignRecipients = function (campaign_id, params) {
|
|
30666
30688
|
return Requests.processRoute(CrmRoute.routes.listCampaignRecipients, {}, { campaign_id: campaign_id }, params);
|
|
30667
30689
|
};
|
|
30690
|
+
/**
|
|
30691
|
+
* Validate external prospect rows and preview field mapping/dedupe outcomes.
|
|
30692
|
+
*/
|
|
30693
|
+
Crm.previewCampaignProspectImport = function (prospects, options) {
|
|
30694
|
+
if (options === void 0) { options = {}; }
|
|
30695
|
+
return Requests.processRoute(CrmRoute.routes.previewCampaignProspectImport, __assign({ prospects: prospects }, options));
|
|
30696
|
+
};
|
|
30668
30697
|
/**
|
|
30669
30698
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
30670
30699
|
*/
|
|
30671
|
-
Crm.importCampaignProspects = function (prospects) {
|
|
30672
|
-
|
|
30700
|
+
Crm.importCampaignProspects = function (prospects, options) {
|
|
30701
|
+
if (options === void 0) { options = {}; }
|
|
30702
|
+
return Requests.processRoute(CrmRoute.routes.importCampaignProspects, __assign({ prospects: prospects }, options));
|
|
30673
30703
|
};
|
|
30674
30704
|
return Crm;
|
|
30675
30705
|
}());
|