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/index.d.ts
CHANGED
|
@@ -8406,6 +8406,10 @@ declare class Crm {
|
|
|
8406
8406
|
* Preview campaign audience filters and exclusions without creating recipients.
|
|
8407
8407
|
*/
|
|
8408
8408
|
static previewCampaignAudience<T>(data: object): AxiosPromise<Response<T>>;
|
|
8409
|
+
/**
|
|
8410
|
+
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
8411
|
+
*/
|
|
8412
|
+
static getCampaignDeliveryStatus<T>(): AxiosPromise<Response<T>>;
|
|
8409
8413
|
/**
|
|
8410
8414
|
* Materialize and queue a CRM campaign, optionally with a limit or dispatch=false.
|
|
8411
8415
|
*/
|
|
@@ -8418,10 +8422,14 @@ declare class Crm {
|
|
|
8418
8422
|
* List campaign recipient audit rows with optional status or variant filters.
|
|
8419
8423
|
*/
|
|
8420
8424
|
static listCampaignRecipients<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
8425
|
+
/**
|
|
8426
|
+
* Validate external prospect rows and preview field mapping/dedupe outcomes.
|
|
8427
|
+
*/
|
|
8428
|
+
static previewCampaignProspectImport<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
8421
8429
|
/**
|
|
8422
8430
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
8423
8431
|
*/
|
|
8424
|
-
static importCampaignProspects<T>(prospects: object[]): AxiosPromise<Response<T>>;
|
|
8432
|
+
static importCampaignProspects<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
8425
8433
|
}
|
|
8426
8434
|
|
|
8427
8435
|
type MultiplayerLobbyType = 'public' | 'invisible' | 'friends_only' | 'private';
|
package/package.json
CHANGED
package/src/api/Crm.ts
CHANGED
|
@@ -193,6 +193,13 @@ class Crm {
|
|
|
193
193
|
return Requests.processRoute(CrmRoute.routes.previewCampaignAudience, data);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Read CRM campaign queue depth and Azure/system email rate-limit windows.
|
|
198
|
+
*/
|
|
199
|
+
public static getCampaignDeliveryStatus<T>(): AxiosPromise<Response<T>> {
|
|
200
|
+
return Requests.processRoute(CrmRoute.routes.getCampaignDeliveryStatus);
|
|
201
|
+
}
|
|
202
|
+
|
|
196
203
|
/**
|
|
197
204
|
* Materialize and queue a CRM campaign, optionally with a limit or dispatch=false.
|
|
198
205
|
*/
|
|
@@ -214,11 +221,18 @@ class Crm {
|
|
|
214
221
|
return Requests.processRoute(CrmRoute.routes.listCampaignRecipients, {}, { campaign_id }, params);
|
|
215
222
|
}
|
|
216
223
|
|
|
224
|
+
/**
|
|
225
|
+
* Validate external prospect rows and preview field mapping/dedupe outcomes.
|
|
226
|
+
*/
|
|
227
|
+
public static previewCampaignProspectImport<T>(prospects: object[], options: Record<string, any> = {}): AxiosPromise<Response<T>> {
|
|
228
|
+
return Requests.processRoute(CrmRoute.routes.previewCampaignProspectImport, { prospects, ...options });
|
|
229
|
+
}
|
|
230
|
+
|
|
217
231
|
/**
|
|
218
232
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
219
233
|
*/
|
|
220
|
-
public static importCampaignProspects<T>(prospects: object[]): AxiosPromise<Response<T>> {
|
|
221
|
-
return Requests.processRoute(CrmRoute.routes.importCampaignProspects, { prospects });
|
|
234
|
+
public static importCampaignProspects<T>(prospects: object[], options: Record<string, any> = {}): AxiosPromise<Response<T>> {
|
|
235
|
+
return Requests.processRoute(CrmRoute.routes.importCampaignProspects, { prospects, ...options });
|
|
222
236
|
}
|
|
223
237
|
|
|
224
238
|
}
|
package/src/routes/CrmRoute.ts
CHANGED
|
@@ -31,9 +31,11 @@ class CrmRoute {
|
|
|
31
31
|
updateCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
|
|
32
32
|
deleteCampaign: { url: '/admin/crm/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
|
|
33
33
|
previewCampaignAudience: { url: '/admin/crm/campaigns/preview', method: HTTP_METHODS.POST },
|
|
34
|
+
getCampaignDeliveryStatus: { url: '/admin/crm/campaigns/delivery-status', method: HTTP_METHODS.GET },
|
|
34
35
|
sendCampaign: { url: '/admin/crm/campaigns/{campaign_id}/send', method: HTTP_METHODS.POST },
|
|
35
36
|
getCampaignStats: { url: '/admin/crm/campaigns/{campaign_id}/stats', method: HTTP_METHODS.GET },
|
|
36
37
|
listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
|
|
38
|
+
previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
|
|
37
39
|
importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
|
|
38
40
|
|
|
39
41
|
// Automation Triggers
|