@gravity-rail/sdk 3.0.1 → 3.2.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.
@@ -1,7 +1,7 @@
1
1
  import { GravityRailClient } from './index.cjs';
2
- export { C as ChatInteractionController } from './chat-interaction-BPqj_KMO.cjs';
2
+ export { C as ChatInteractionController } from './chat-interaction-CoHsIqyX.cjs';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.cjs';
4
- export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-DxBggQLc.cjs';
4
+ export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-9h52_4KO.cjs';
5
5
  import 'zod';
6
6
 
7
7
  interface OutboundPhoneNumberOption {
package/dist/helpers.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { GravityRailClient } from './index.js';
2
- export { C as ChatInteractionController } from './chat-interaction-CDlei6KK.js';
2
+ export { C as ChatInteractionController } from './chat-interaction-Cc9hQNyx.js';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.js';
4
- export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-BbWJzHSV.js';
4
+ export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-BWyl88Qx.js';
5
5
  import 'zod';
6
6
 
7
7
  interface OutboundPhoneNumberOption {
package/dist/index.cjs CHANGED
@@ -9466,6 +9466,20 @@ var ConnectionSyncApi = class extends BaseApiClient {
9466
9466
 
9467
9467
  // src/api/hubspot.ts
9468
9468
  var HubspotApi = class extends BaseApiClient {
9469
+ async getHubspotBookingReceipt(wid, meetingId) {
9470
+ return this.fetch(
9471
+ `w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/receipt`
9472
+ );
9473
+ }
9474
+ async releaseHubspotBookingAttempt(wid, meetingId, data) {
9475
+ return this.fetch(
9476
+ `w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/release`,
9477
+ {
9478
+ method: "POST",
9479
+ body: JSON.stringify(data)
9480
+ }
9481
+ );
9482
+ }
9469
9483
  /**
9470
9484
  * Create the HubSpot connection shell (no credentials yet).
9471
9485
  *
@@ -11050,7 +11064,7 @@ var WorkflowsApi = class extends BaseApiClient {
11050
11064
  body.append("relativePath", relativePath);
11051
11065
  return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
11052
11066
  }
11053
- /** List all workflows in a workspace, optionally including archived ones. */
11067
+ /** List workflows by archived status; `archived: true` returns only archived Workflows. */
11054
11068
  async getWorkflows(wid, options = {}) {
11055
11069
  const params = new URLSearchParams();
11056
11070
  if (options.archived) params.set("archived", "true");
@@ -11802,6 +11816,7 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
11802
11816
  EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
11803
11817
  EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
11804
11818
  EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
11819
+ EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
11805
11820
  EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
11806
11821
  EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
11807
11822
  EventRuleActionType2["SMS_SEND"] = "sms:send";
@@ -12708,6 +12723,12 @@ var WorkspacesApi = class extends BaseApiClient {
12708
12723
  async getWorkspaces(options) {
12709
12724
  return this.fetch(`w/?${workspaceDirectoryParams(options)}`);
12710
12725
  }
12726
+ /** One organization page reached through organization or workspace membership. */
12727
+ async getWorkspaceOrganizationDirectory(options) {
12728
+ return this.fetch(
12729
+ `w/organizations?${workspaceDirectoryParams(options)}`
12730
+ );
12731
+ }
12711
12732
  /**
12712
12733
  * Page 1 of each organization's workspace directory, in one request.
12713
12734
  * Later pages stay on ``getWorkspaces({ organizationUuid, page })``.
@@ -12809,6 +12830,18 @@ var WorkspacesApi = class extends BaseApiClient {
12809
12830
  const url = `w/${wid}/notifications${queryString ? `?${queryString}` : ""}`;
12810
12831
  return this.fetch(url);
12811
12832
  }
12833
+ async getNotificationSubscriptions(wid) {
12834
+ return this.fetch(`w/${wid}/notifications/subscriptions`);
12835
+ }
12836
+ async updateNotificationSubscription(wid, id, enabled) {
12837
+ return this.fetch(`w/${wid}/notifications/subscriptions/${id}`, {
12838
+ method: "PATCH",
12839
+ body: JSON.stringify({ enabled })
12840
+ });
12841
+ }
12842
+ async getNotificationAudience(wid, id) {
12843
+ return this.fetch(`w/${wid}/notifications/audiences/${id}`);
12844
+ }
12812
12845
  /** Get a single notification by ID. */
12813
12846
  async getNotification(wid, id) {
12814
12847
  return this.fetch(`w/${wid}/notifications/${id}`);
@@ -14080,6 +14113,8 @@ var WORKSPACE_METHOD_NAMES = [
14080
14113
  "getHubspotObjectProperties",
14081
14114
  "getHubspotReconciliationMatches",
14082
14115
  "getHubspotStatus",
14116
+ "getHubspotBookingReceipt",
14117
+ "releaseHubspotBookingAttempt",
14083
14118
  "getHubspotSyncLogs",
14084
14119
  "getHubspotTransformPresets",
14085
14120
  "getICalFeedUrl",
@@ -14890,6 +14925,7 @@ function bindMembersMethods(target, members) {
14890
14925
  // src/client/bindings/workspaces.ts
14891
14926
  function bindWorkspacesMethods(target, workspaces, signupRequests) {
14892
14927
  target.getWorkspaces = workspaces.getWorkspaces.bind(workspaces);
14928
+ target.getWorkspaceOrganizationDirectory = workspaces.getWorkspaceOrganizationDirectory.bind(workspaces);
14893
14929
  target.getOrganizationWorkspacePages = workspaces.getOrganizationWorkspacePages.bind(workspaces);
14894
14930
  target.getDeviceAdmissibleWorkspaces = workspaces.getDeviceAdmissibleWorkspaces.bind(workspaces);
14895
14931
  target.getPublicWorkspaces = workspaces.getPublicWorkspaces.bind(workspaces);
@@ -14906,6 +14942,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
14906
14942
  target.getBusinessHoursStatus = workspaces.getBusinessHoursStatus.bind(workspaces);
14907
14943
  target.getAvailableWorkspaceFeatures = workspaces.getAvailableWorkspaceFeatures.bind(workspaces);
14908
14944
  target.getWorkspaceNotices = workspaces.getWorkspaceNotices.bind(workspaces);
14945
+ target.getNotificationSubscriptions = workspaces.getNotificationSubscriptions.bind(workspaces);
14946
+ target.updateNotificationSubscription = workspaces.updateNotificationSubscription.bind(workspaces);
14947
+ target.getNotificationAudience = workspaces.getNotificationAudience.bind(workspaces);
14909
14948
  target.getNotifications = workspaces.getNotifications.bind(workspaces);
14910
14949
  target.getNotification = workspaces.getNotification.bind(workspaces);
14911
14950
  target.getUnreadNotificationCount = workspaces.getUnreadNotificationCount.bind(workspaces);
@@ -15593,6 +15632,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
15593
15632
  target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
15594
15633
  target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
15595
15634
  target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
15635
+ target.getHubspotBookingReceipt = hubspot.getHubspotBookingReceipt.bind(hubspot);
15636
+ target.releaseHubspotBookingAttempt = hubspot.releaseHubspotBookingAttempt.bind(hubspot);
15596
15637
  target.installHubspot = hubspot.installHubspot.bind(hubspot);
15597
15638
  target.configureHubspot = hubspot.configureHubspot.bind(hubspot);
15598
15639
  target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
@@ -16418,6 +16459,7 @@ var GravityRailClient = class {
16418
16459
  inspectPrompt;
16419
16460
  // Workspaces API
16420
16461
  getWorkspaces;
16462
+ getWorkspaceOrganizationDirectory;
16421
16463
  getOrganizationWorkspacePages;
16422
16464
  getDeviceAdmissibleWorkspaces;
16423
16465
  getPublicWorkspaces;
@@ -16434,6 +16476,9 @@ var GravityRailClient = class {
16434
16476
  getBusinessHoursStatus;
16435
16477
  getAvailableWorkspaceFeatures;
16436
16478
  getWorkspaceNotices;
16479
+ getNotificationSubscriptions;
16480
+ updateNotificationSubscription;
16481
+ getNotificationAudience;
16437
16482
  getNotifications;
16438
16483
  getNotification;
16439
16484
  getUnreadNotificationCount;
@@ -17146,6 +17191,8 @@ var GravityRailClient = class {
17146
17191
  searchSalesforceRecords;
17147
17192
  importSalesforceMembers;
17148
17193
  // HubSpot API
17194
+ getHubspotBookingReceipt;
17195
+ releaseHubspotBookingAttempt;
17149
17196
  installHubspot;
17150
17197
  configureHubspot;
17151
17198
  startHubspotOAuth;