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/esm/api/Crm.d.ts
CHANGED
|
@@ -109,6 +109,18 @@ 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 the backend-supported CRM campaign merge fields for the composer.
|
|
114
|
+
*/
|
|
115
|
+
static getCampaignMergeFields<T>(): AxiosPromise<Response<T>>;
|
|
116
|
+
/**
|
|
117
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
118
|
+
*/
|
|
119
|
+
static renderCampaignTemplatePreview<T>(data: object): AxiosPromise<Response<T>>;
|
|
120
|
+
/**
|
|
121
|
+
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
122
|
+
*/
|
|
123
|
+
static getCampaignDeliveryStatus<T>(): AxiosPromise<Response<T>>;
|
|
112
124
|
/**
|
|
113
125
|
* Materialize and queue a CRM campaign, optionally with a limit or dispatch=false.
|
|
114
126
|
*/
|
|
@@ -121,9 +133,13 @@ declare class Crm {
|
|
|
121
133
|
* List campaign recipient audit rows with optional status or variant filters.
|
|
122
134
|
*/
|
|
123
135
|
static listCampaignRecipients<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
136
|
+
/**
|
|
137
|
+
* Validate external prospect rows and preview field mapping/dedupe outcomes.
|
|
138
|
+
*/
|
|
139
|
+
static previewCampaignProspectImport<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
124
140
|
/**
|
|
125
141
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
126
142
|
*/
|
|
127
|
-
static importCampaignProspects<T>(prospects: object[]): AxiosPromise<Response<T>>;
|
|
143
|
+
static importCampaignProspects<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
128
144
|
}
|
|
129
145
|
export default Crm;
|
package/dist/esm/index.js
CHANGED
|
@@ -18468,9 +18468,13 @@ 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
|
+
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
18472
|
+
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
18473
|
+
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
18471
18474
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
18472
18475
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
18473
18476
|
listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
|
|
18477
|
+
previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
|
|
18474
18478
|
importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
|
|
18475
18479
|
// Automation Triggers
|
|
18476
18480
|
triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
|
|
@@ -18648,6 +18652,24 @@ var Crm = /** @class */ (function () {
|
|
|
18648
18652
|
Crm.previewCampaignAudience = function (data) {
|
|
18649
18653
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
18650
18654
|
};
|
|
18655
|
+
/**
|
|
18656
|
+
* List the backend-supported CRM campaign merge fields for the composer.
|
|
18657
|
+
*/
|
|
18658
|
+
Crm.getCampaignMergeFields = function () {
|
|
18659
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignMergeFields);
|
|
18660
|
+
};
|
|
18661
|
+
/**
|
|
18662
|
+
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
18663
|
+
*/
|
|
18664
|
+
Crm.renderCampaignTemplatePreview = function (data) {
|
|
18665
|
+
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
18666
|
+
};
|
|
18667
|
+
/**
|
|
18668
|
+
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
18669
|
+
*/
|
|
18670
|
+
Crm.getCampaignDeliveryStatus = function () {
|
|
18671
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignDeliveryStatus);
|
|
18672
|
+
};
|
|
18651
18673
|
/**
|
|
18652
18674
|
* Materialize and queue a CRM campaign, optionally with a limit or dispatch=false.
|
|
18653
18675
|
*/
|
|
@@ -18667,11 +18689,19 @@ var Crm = /** @class */ (function () {
|
|
|
18667
18689
|
Crm.listCampaignRecipients = function (campaign_id, params) {
|
|
18668
18690
|
return Requests.processRoute(CrmRoute.routes.listCampaignRecipients, {}, { campaign_id: campaign_id }, params);
|
|
18669
18691
|
};
|
|
18692
|
+
/**
|
|
18693
|
+
* Validate external prospect rows and preview field mapping/dedupe outcomes.
|
|
18694
|
+
*/
|
|
18695
|
+
Crm.previewCampaignProspectImport = function (prospects, options) {
|
|
18696
|
+
if (options === void 0) { options = {}; }
|
|
18697
|
+
return Requests.processRoute(CrmRoute.routes.previewCampaignProspectImport, __assign({ prospects: prospects }, options));
|
|
18698
|
+
};
|
|
18670
18699
|
/**
|
|
18671
18700
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
18672
18701
|
*/
|
|
18673
|
-
Crm.importCampaignProspects = function (prospects) {
|
|
18674
|
-
|
|
18702
|
+
Crm.importCampaignProspects = function (prospects, options) {
|
|
18703
|
+
if (options === void 0) { options = {}; }
|
|
18704
|
+
return Requests.processRoute(CrmRoute.routes.importCampaignProspects, __assign({ prospects: prospects }, options));
|
|
18675
18705
|
};
|
|
18676
18706
|
return Crm;
|
|
18677
18707
|
}());
|