glitch-javascript-sdk 3.2.20 → 3.2.22
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 +49 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Crm.d.ts +28 -0
- package/dist/esm/index.js +49 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +28 -0
- package/package.json +1 -1
- package/src/api/Crm.ts +49 -0
- package/src/routes/CrmRoute.ts +7 -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
|
+
* List human-readable filter options for the CRM campaign composer.
|
|
114
|
+
*/
|
|
115
|
+
static getCampaignFilterOptions<T>(): AxiosPromise<Response<T>>;
|
|
112
116
|
/**
|
|
113
117
|
* List the backend-supported CRM campaign merge fields for the composer.
|
|
114
118
|
*/
|
|
@@ -117,6 +121,10 @@ declare class Crm {
|
|
|
117
121
|
* Render CRM campaign content with the same merge-field engine used at send time.
|
|
118
122
|
*/
|
|
119
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>>;
|
|
120
128
|
/**
|
|
121
129
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
122
130
|
*/
|
|
@@ -141,5 +149,25 @@ declare class Crm {
|
|
|
141
149
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
142
150
|
*/
|
|
143
151
|
static importCampaignProspects<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
152
|
+
/**
|
|
153
|
+
* List provider-managed sender and reply-to addresses for CRM campaigns.
|
|
154
|
+
*/
|
|
155
|
+
static listEmailProviderAddresses<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
156
|
+
/**
|
|
157
|
+
* List sender/reply-to dropdown options and defaults for the campaign composer.
|
|
158
|
+
*/
|
|
159
|
+
static getEmailProviderAddressOptions<T>(): AxiosPromise<Response<T>>;
|
|
160
|
+
/**
|
|
161
|
+
* Add a provider-managed sender or reply-to address.
|
|
162
|
+
*/
|
|
163
|
+
static createEmailProviderAddress<T>(data: object): AxiosPromise<Response<T>>;
|
|
164
|
+
/**
|
|
165
|
+
* Update provider verification, sendability, capabilities, defaults, or notes.
|
|
166
|
+
*/
|
|
167
|
+
static updateEmailProviderAddress<T>(address_id: string, data: object): AxiosPromise<Response<T>>;
|
|
168
|
+
/**
|
|
169
|
+
* Deactivate a provider address while keeping the audit record.
|
|
170
|
+
*/
|
|
171
|
+
static deactivateEmailProviderAddress<T>(address_id: string): AxiosPromise<Response<T>>;
|
|
144
172
|
}
|
|
145
173
|
export default Crm;
|
package/dist/esm/index.js
CHANGED
|
@@ -18468,14 +18468,21 @@ 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 },
|
|
18471
18472
|
getCampaignMergeFields: { url: '/admin/crm/campaigns/merge-fields', method: HTTP_METHODS.GET },
|
|
18472
18473
|
renderCampaignTemplatePreview: { url: '/admin/crm/campaigns/render-preview', method: HTTP_METHODS.POST },
|
|
18474
|
+
sendCampaignTestEmail: { url: '/admin/crm/campaigns/test-email', method: HTTP_METHODS.POST },
|
|
18473
18475
|
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
18474
18476
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
18475
18477
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
18476
18478
|
listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
|
|
18477
18479
|
previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
|
|
18478
18480
|
importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
|
|
18481
|
+
listEmailProviderAddresses: { url: '/admin/crm/email-provider-addresses', method: HTTP_METHODS.GET },
|
|
18482
|
+
getEmailProviderAddressOptions: { url: '/admin/crm/email-provider-addresses/options', method: HTTP_METHODS.GET },
|
|
18483
|
+
createEmailProviderAddress: { url: '/admin/crm/email-provider-addresses', method: HTTP_METHODS.POST },
|
|
18484
|
+
updateEmailProviderAddress: { url: '/admin/crm/email-provider-addresses/{address_id}', method: HTTP_METHODS.PUT },
|
|
18485
|
+
deactivateEmailProviderAddress: { url: '/admin/crm/email-provider-addresses/{address_id}', method: HTTP_METHODS.DELETE },
|
|
18479
18486
|
// Automation Triggers
|
|
18480
18487
|
triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
|
|
18481
18488
|
triggerSync: { url: '/admin/crm/automation/sync', method: HTTP_METHODS.POST },
|
|
@@ -18652,6 +18659,12 @@ var Crm = /** @class */ (function () {
|
|
|
18652
18659
|
Crm.previewCampaignAudience = function (data) {
|
|
18653
18660
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
18654
18661
|
};
|
|
18662
|
+
/**
|
|
18663
|
+
* List human-readable filter options for the CRM campaign composer.
|
|
18664
|
+
*/
|
|
18665
|
+
Crm.getCampaignFilterOptions = function () {
|
|
18666
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignFilterOptions);
|
|
18667
|
+
};
|
|
18655
18668
|
/**
|
|
18656
18669
|
* List the backend-supported CRM campaign merge fields for the composer.
|
|
18657
18670
|
*/
|
|
@@ -18664,6 +18677,12 @@ var Crm = /** @class */ (function () {
|
|
|
18664
18677
|
Crm.renderCampaignTemplatePreview = function (data) {
|
|
18665
18678
|
return Requests.processRoute(CrmRoute.routes.renderCampaignTemplatePreview, data);
|
|
18666
18679
|
};
|
|
18680
|
+
/**
|
|
18681
|
+
* Send a non-tracked CRM campaign test email with rendered merge fields.
|
|
18682
|
+
*/
|
|
18683
|
+
Crm.sendCampaignTestEmail = function (data) {
|
|
18684
|
+
return Requests.processRoute(CrmRoute.routes.sendCampaignTestEmail, data);
|
|
18685
|
+
};
|
|
18667
18686
|
/**
|
|
18668
18687
|
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
18669
18688
|
*/
|
|
@@ -18703,6 +18722,36 @@ var Crm = /** @class */ (function () {
|
|
|
18703
18722
|
if (options === void 0) { options = {}; }
|
|
18704
18723
|
return Requests.processRoute(CrmRoute.routes.importCampaignProspects, __assign({ prospects: prospects }, options));
|
|
18705
18724
|
};
|
|
18725
|
+
/**
|
|
18726
|
+
* List provider-managed sender and reply-to addresses for CRM campaigns.
|
|
18727
|
+
*/
|
|
18728
|
+
Crm.listEmailProviderAddresses = function (params) {
|
|
18729
|
+
return Requests.processRoute(CrmRoute.routes.listEmailProviderAddresses, undefined, undefined, params);
|
|
18730
|
+
};
|
|
18731
|
+
/**
|
|
18732
|
+
* List sender/reply-to dropdown options and defaults for the campaign composer.
|
|
18733
|
+
*/
|
|
18734
|
+
Crm.getEmailProviderAddressOptions = function () {
|
|
18735
|
+
return Requests.processRoute(CrmRoute.routes.getEmailProviderAddressOptions);
|
|
18736
|
+
};
|
|
18737
|
+
/**
|
|
18738
|
+
* Add a provider-managed sender or reply-to address.
|
|
18739
|
+
*/
|
|
18740
|
+
Crm.createEmailProviderAddress = function (data) {
|
|
18741
|
+
return Requests.processRoute(CrmRoute.routes.createEmailProviderAddress, data);
|
|
18742
|
+
};
|
|
18743
|
+
/**
|
|
18744
|
+
* Update provider verification, sendability, capabilities, defaults, or notes.
|
|
18745
|
+
*/
|
|
18746
|
+
Crm.updateEmailProviderAddress = function (address_id, data) {
|
|
18747
|
+
return Requests.processRoute(CrmRoute.routes.updateEmailProviderAddress, data, { address_id: address_id });
|
|
18748
|
+
};
|
|
18749
|
+
/**
|
|
18750
|
+
* Deactivate a provider address while keeping the audit record.
|
|
18751
|
+
*/
|
|
18752
|
+
Crm.deactivateEmailProviderAddress = function (address_id) {
|
|
18753
|
+
return Requests.processRoute(CrmRoute.routes.deactivateEmailProviderAddress, {}, { address_id: address_id });
|
|
18754
|
+
};
|
|
18706
18755
|
return Crm;
|
|
18707
18756
|
}());
|
|
18708
18757
|
|