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/esm/api/Crm.d.ts
CHANGED
|
@@ -109,6 +109,10 @@ 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
|
+
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
114
|
+
*/
|
|
115
|
+
static getCampaignDeliveryStatus<T>(): AxiosPromise<Response<T>>;
|
|
112
116
|
/**
|
|
113
117
|
* Materialize and queue a CRM campaign, optionally with a limit or dispatch=false.
|
|
114
118
|
*/
|
|
@@ -121,9 +125,13 @@ declare class Crm {
|
|
|
121
125
|
* List campaign recipient audit rows with optional status or variant filters.
|
|
122
126
|
*/
|
|
123
127
|
static listCampaignRecipients<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
128
|
+
/**
|
|
129
|
+
* Validate external prospect rows and preview field mapping/dedupe outcomes.
|
|
130
|
+
*/
|
|
131
|
+
static previewCampaignProspectImport<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
124
132
|
/**
|
|
125
133
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
126
134
|
*/
|
|
127
|
-
static importCampaignProspects<T>(prospects: object[]): AxiosPromise<Response<T>>;
|
|
135
|
+
static importCampaignProspects<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
128
136
|
}
|
|
129
137
|
export default Crm;
|
package/dist/esm/index.js
CHANGED
|
@@ -18468,9 +18468,11 @@ 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
|
+
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
18471
18472
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
18472
18473
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
18473
18474
|
listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
|
|
18475
|
+
previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
|
|
18474
18476
|
importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
|
|
18475
18477
|
// Automation Triggers
|
|
18476
18478
|
triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
|
|
@@ -18648,6 +18650,12 @@ var Crm = /** @class */ (function () {
|
|
|
18648
18650
|
Crm.previewCampaignAudience = function (data) {
|
|
18649
18651
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
18650
18652
|
};
|
|
18653
|
+
/**
|
|
18654
|
+
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
18655
|
+
*/
|
|
18656
|
+
Crm.getCampaignDeliveryStatus = function () {
|
|
18657
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignDeliveryStatus);
|
|
18658
|
+
};
|
|
18651
18659
|
/**
|
|
18652
18660
|
* Materialize and queue a CRM campaign, optionally with a limit or dispatch=false.
|
|
18653
18661
|
*/
|
|
@@ -18667,11 +18675,19 @@ var Crm = /** @class */ (function () {
|
|
|
18667
18675
|
Crm.listCampaignRecipients = function (campaign_id, params) {
|
|
18668
18676
|
return Requests.processRoute(CrmRoute.routes.listCampaignRecipients, {}, { campaign_id: campaign_id }, params);
|
|
18669
18677
|
};
|
|
18678
|
+
/**
|
|
18679
|
+
* Validate external prospect rows and preview field mapping/dedupe outcomes.
|
|
18680
|
+
*/
|
|
18681
|
+
Crm.previewCampaignProspectImport = function (prospects, options) {
|
|
18682
|
+
if (options === void 0) { options = {}; }
|
|
18683
|
+
return Requests.processRoute(CrmRoute.routes.previewCampaignProspectImport, __assign({ prospects: prospects }, options));
|
|
18684
|
+
};
|
|
18670
18685
|
/**
|
|
18671
18686
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
18672
18687
|
*/
|
|
18673
|
-
Crm.importCampaignProspects = function (prospects) {
|
|
18674
|
-
|
|
18688
|
+
Crm.importCampaignProspects = function (prospects, options) {
|
|
18689
|
+
if (options === void 0) { options = {}; }
|
|
18690
|
+
return Requests.processRoute(CrmRoute.routes.importCampaignProspects, __assign({ prospects: prospects }, options));
|
|
18675
18691
|
};
|
|
18676
18692
|
return Crm;
|
|
18677
18693
|
}());
|