@gravity-rail/sdk 0.21.0 → 0.22.0
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/{chunk-24L4RD4Z.js → chunk-WMA6YCAS.js} +18 -3
- package/dist/chunk-WMA6YCAS.js.map +1 -0
- package/dist/{client-CFz-BGmY.d.ts → client-C10qSd6b.d.ts} +368 -5
- package/dist/{client-B0eh2BEY.d.cts → client-Ct0soeip.d.cts} +368 -5
- package/dist/helpers.d.cts +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/index.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +17 -2
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +3 -3
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +1 -1
- package/dist/{revision-state-KfOztBkY.d.ts → revision-state-C6aM-PHu.d.ts} +1 -1
- package/dist/{revision-state-fJ9PM15N.d.cts → revision-state-CCPTiW-i.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-24L4RD4Z.js.map +0 -1
package/dist/helpers.d.cts
CHANGED
package/dist/helpers.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -4351,10 +4351,18 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
4351
4351
|
});
|
|
4352
4352
|
}
|
|
4353
4353
|
/** Reply to an email from the inbox. */
|
|
4354
|
-
async replyToEmail(wid, inboxId, emailId, content) {
|
|
4354
|
+
async replyToEmail(wid, inboxId, emailId, content, htmlContent) {
|
|
4355
|
+
const body = { content, htmlContent };
|
|
4355
4356
|
return this.fetch(`w/${wid}/inboxes/${inboxId}/emails/${emailId}/reply`, {
|
|
4356
4357
|
method: "POST",
|
|
4357
|
-
body: JSON.stringify(
|
|
4358
|
+
body: JSON.stringify(body)
|
|
4359
|
+
});
|
|
4360
|
+
}
|
|
4361
|
+
/** Compose and send a new email from an inbox. */
|
|
4362
|
+
async sendInboxEmail(wid, inboxId, body) {
|
|
4363
|
+
return this.fetch(`w/${wid}/inboxes/${inboxId}/emails`, {
|
|
4364
|
+
method: "POST",
|
|
4365
|
+
body: JSON.stringify(body)
|
|
4358
4366
|
});
|
|
4359
4367
|
}
|
|
4360
4368
|
/**
|
|
@@ -11088,6 +11096,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
11088
11096
|
"selectCurrentAssignmentTask",
|
|
11089
11097
|
"sendAssistantMessage",
|
|
11090
11098
|
"sendChatMessage",
|
|
11099
|
+
"sendInboxEmail",
|
|
11091
11100
|
"sendOperatorMessage",
|
|
11092
11101
|
"siteGoogleOAuthInitiate",
|
|
11093
11102
|
"siteSendEmailCode",
|
|
@@ -11888,6 +11897,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
11888
11897
|
target.getThreadEmails = inboxes.getThreadEmails.bind(inboxes);
|
|
11889
11898
|
target.getChatEmails = inboxes.getChatEmails.bind(inboxes);
|
|
11890
11899
|
target.replyToEmail = inboxes.replyToEmail.bind(inboxes);
|
|
11900
|
+
target.sendInboxEmail = inboxes.sendInboxEmail.bind(inboxes);
|
|
11891
11901
|
target.getNotificationRules = notificationRules.getNotificationRules.bind(notificationRules);
|
|
11892
11902
|
target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
|
|
11893
11903
|
target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
|
|
@@ -12220,6 +12230,8 @@ function bindOrgMethods(target, org) {
|
|
|
12220
12230
|
target.syncVoiceTrustProducts = org.syncVoiceTrustProducts.bind(org);
|
|
12221
12231
|
target.createOrganizationWorkspace = org.createOrganizationWorkspace.bind(org);
|
|
12222
12232
|
target.getOrgBillingCustomer = org.getOrgBillingCustomer.bind(org);
|
|
12233
|
+
target.getA2PCampaignConfig = org.getA2PCampaignConfig.bind(org);
|
|
12234
|
+
target.updateA2PCampaignConfig = org.updateA2PCampaignConfig.bind(org);
|
|
12223
12235
|
target.getOrgWorkspaceUsage = org.getOrgWorkspaceUsage.bind(org);
|
|
12224
12236
|
}
|
|
12225
12237
|
|
|
@@ -12777,6 +12789,8 @@ var GravityRailClient = class {
|
|
|
12777
12789
|
syncVoiceTrustProducts;
|
|
12778
12790
|
createOrganizationWorkspace;
|
|
12779
12791
|
getOrgBillingCustomer;
|
|
12792
|
+
getA2PCampaignConfig;
|
|
12793
|
+
updateA2PCampaignConfig;
|
|
12780
12794
|
getOrgWorkspaceUsage;
|
|
12781
12795
|
getVapidPublicKey;
|
|
12782
12796
|
registerPushSubscription;
|
|
@@ -13079,6 +13093,7 @@ var GravityRailClient = class {
|
|
|
13079
13093
|
getThreadEmails;
|
|
13080
13094
|
getChatEmails;
|
|
13081
13095
|
replyToEmail;
|
|
13096
|
+
sendInboxEmail;
|
|
13082
13097
|
getNotificationRules;
|
|
13083
13098
|
createNotificationRule;
|
|
13084
13099
|
updateNotificationRule;
|