glitch-javascript-sdk 3.2.21 → 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 +35 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Crm.d.ts +20 -0
- package/dist/esm/index.js +35 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/package.json +1 -1
- package/src/api/Crm.ts +35 -0
- package/src/routes/CrmRoute.ts +5 -0
package/dist/index.d.ts
CHANGED
|
@@ -8446,6 +8446,26 @@ declare class Crm {
|
|
|
8446
8446
|
* Import external prospects into CRM leads and contacts for future campaigns.
|
|
8447
8447
|
*/
|
|
8448
8448
|
static importCampaignProspects<T>(prospects: object[], options?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
8449
|
+
/**
|
|
8450
|
+
* List provider-managed sender and reply-to addresses for CRM campaigns.
|
|
8451
|
+
*/
|
|
8452
|
+
static listEmailProviderAddresses<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
8453
|
+
/**
|
|
8454
|
+
* List sender/reply-to dropdown options and defaults for the campaign composer.
|
|
8455
|
+
*/
|
|
8456
|
+
static getEmailProviderAddressOptions<T>(): AxiosPromise<Response<T>>;
|
|
8457
|
+
/**
|
|
8458
|
+
* Add a provider-managed sender or reply-to address.
|
|
8459
|
+
*/
|
|
8460
|
+
static createEmailProviderAddress<T>(data: object): AxiosPromise<Response<T>>;
|
|
8461
|
+
/**
|
|
8462
|
+
* Update provider verification, sendability, capabilities, defaults, or notes.
|
|
8463
|
+
*/
|
|
8464
|
+
static updateEmailProviderAddress<T>(address_id: string, data: object): AxiosPromise<Response<T>>;
|
|
8465
|
+
/**
|
|
8466
|
+
* Deactivate a provider address while keeping the audit record.
|
|
8467
|
+
*/
|
|
8468
|
+
static deactivateEmailProviderAddress<T>(address_id: string): AxiosPromise<Response<T>>;
|
|
8449
8469
|
}
|
|
8450
8470
|
|
|
8451
8471
|
type MultiplayerLobbyType = 'public' | 'invisible' | 'friends_only' | 'private';
|
package/package.json
CHANGED
package/src/api/Crm.ts
CHANGED
|
@@ -263,6 +263,41 @@ class Crm {
|
|
|
263
263
|
return Requests.processRoute(CrmRoute.routes.importCampaignProspects, { prospects, ...options });
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
/**
|
|
267
|
+
* List provider-managed sender and reply-to addresses for CRM campaigns.
|
|
268
|
+
*/
|
|
269
|
+
public static listEmailProviderAddresses<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
270
|
+
return Requests.processRoute(CrmRoute.routes.listEmailProviderAddresses, undefined, undefined, params);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* List sender/reply-to dropdown options and defaults for the campaign composer.
|
|
275
|
+
*/
|
|
276
|
+
public static getEmailProviderAddressOptions<T>(): AxiosPromise<Response<T>> {
|
|
277
|
+
return Requests.processRoute(CrmRoute.routes.getEmailProviderAddressOptions);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Add a provider-managed sender or reply-to address.
|
|
282
|
+
*/
|
|
283
|
+
public static createEmailProviderAddress<T>(data: object): AxiosPromise<Response<T>> {
|
|
284
|
+
return Requests.processRoute(CrmRoute.routes.createEmailProviderAddress, data);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Update provider verification, sendability, capabilities, defaults, or notes.
|
|
289
|
+
*/
|
|
290
|
+
public static updateEmailProviderAddress<T>(address_id: string, data: object): AxiosPromise<Response<T>> {
|
|
291
|
+
return Requests.processRoute(CrmRoute.routes.updateEmailProviderAddress, data, { address_id });
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Deactivate a provider address while keeping the audit record.
|
|
296
|
+
*/
|
|
297
|
+
public static deactivateEmailProviderAddress<T>(address_id: string): AxiosPromise<Response<T>> {
|
|
298
|
+
return Requests.processRoute(CrmRoute.routes.deactivateEmailProviderAddress, {}, { address_id });
|
|
299
|
+
}
|
|
300
|
+
|
|
266
301
|
}
|
|
267
302
|
|
|
268
303
|
export default Crm;
|
package/src/routes/CrmRoute.ts
CHANGED
|
@@ -41,6 +41,11 @@ class CrmRoute {
|
|
|
41
41
|
listCampaignRecipients: { url: '/admin/crm/campaigns/{campaign_id}/recipients', method: HTTP_METHODS.GET },
|
|
42
42
|
previewCampaignProspectImport: { url: '/admin/crm/campaigns/import-prospects/preview', method: HTTP_METHODS.POST },
|
|
43
43
|
importCampaignProspects: { url: '/admin/crm/campaigns/import-prospects', method: HTTP_METHODS.POST },
|
|
44
|
+
listEmailProviderAddresses: { url: '/admin/crm/email-provider-addresses', method: HTTP_METHODS.GET },
|
|
45
|
+
getEmailProviderAddressOptions: { url: '/admin/crm/email-provider-addresses/options', method: HTTP_METHODS.GET },
|
|
46
|
+
createEmailProviderAddress: { url: '/admin/crm/email-provider-addresses', method: HTTP_METHODS.POST },
|
|
47
|
+
updateEmailProviderAddress: { url: '/admin/crm/email-provider-addresses/{address_id}', method: HTTP_METHODS.PUT },
|
|
48
|
+
deactivateEmailProviderAddress: { url: '/admin/crm/email-provider-addresses/{address_id}', method: HTTP_METHODS.DELETE },
|
|
44
49
|
|
|
45
50
|
// Automation Triggers
|
|
46
51
|
triggerSourcing: { url: '/admin/crm/automation/source', method: HTTP_METHODS.POST },
|