glitch-javascript-sdk 3.2.18 → 3.2.19
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 +18 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Crm.d.ts +9 -1
- package/dist/esm/index.js +18 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
- package/src/api/Crm.ts +16 -2
- package/src/routes/CrmRoute.ts +2 -0
package/dist/cjs/index.js
CHANGED
|
@@ -30466,9 +30466,11 @@ 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
|
+
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
30469
30470
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
30470
30471
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
30471
30472
|
listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
|
|
30473
|
+
previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
|
|
30472
30474
|
importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
|
|
30473
30475
|
// Automation Triggers
|
|
30474
30476
|
triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
|
|
@@ -30646,6 +30648,12 @@ var Crm = /** @class */ (function () {
|
|
|
30646
30648
|
Crm.previewCampaignAudience = function (data) {
|
|
30647
30649
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
30648
30650
|
};
|
|
30651
|
+
/**
|
|
30652
|
+
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
30653
|
+
*/
|
|
30654
|
+
Crm.getCampaignDeliveryStatus = function () {
|
|
30655
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignDeliveryStatus);
|
|
30656
|
+
};
|
|
30649
30657
|
/**
|
|
30650
30658
|
* Materialize and queue a CRM campaign, optionally with a limit or dispatch=false.
|
|
30651
30659
|
*/
|
|
@@ -30665,11 +30673,19 @@ var Crm = /** @class */ (function () {
|
|
|
30665
30673
|
Crm.listCampaignRecipients = function (campaign_id, params) {
|
|
30666
30674
|
return Requests.processRoute(CrmRoute.routes.listCampaignRecipients, {}, { campaign_id: campaign_id }, params);
|
|
30667
30675
|
};
|
|
30676
|
+
/**
|
|
30677
|
+
* Validate external prospect rows and preview field mapping/dedupe outcomes.
|
|
30678
|
+
*/
|
|
30679
|
+
Crm.previewCampaignProspectImport = function (prospects, options) {
|
|
30680
|
+
if (options === void 0) { options = {}; }
|
|
30681
|
+
return Requests.processRoute(CrmRoute.routes.previewCampaignProspectImport, __assign({ prospects: prospects }, options));
|
|
30682
|
+
};
|
|
30668
30683
|
/**
|
|
30669
30684
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
30670
30685
|
*/
|
|
30671
|
-
Crm.importCampaignProspects = function (prospects) {
|
|
30672
|
-
|
|
30686
|
+
Crm.importCampaignProspects = function (prospects, options) {
|
|
30687
|
+
if (options === void 0) { options = {}; }
|
|
30688
|
+
return Requests.processRoute(CrmRoute.routes.importCampaignProspects, __assign({ prospects: prospects }, options));
|
|
30673
30689
|
};
|
|
30674
30690
|
return Crm;
|
|
30675
30691
|
}());
|