@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.
@@ -8056,6 +8056,20 @@ var ConnectionSyncApi = class extends BaseApiClient {
8056
8056
 
8057
8057
  // src/api/hubspot.ts
8058
8058
  var HubspotApi = class extends BaseApiClient {
8059
+ async getHubspotBookingReceipt(wid, meetingId) {
8060
+ return this.fetch(
8061
+ `w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/receipt`
8062
+ );
8063
+ }
8064
+ async releaseHubspotBookingAttempt(wid, meetingId, data) {
8065
+ return this.fetch(
8066
+ `w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/release`,
8067
+ {
8068
+ method: "POST",
8069
+ body: JSON.stringify(data)
8070
+ }
8071
+ );
8072
+ }
8059
8073
  /**
8060
8074
  * Create the HubSpot connection shell (no credentials yet).
8061
8075
  *
@@ -9555,7 +9569,7 @@ var WorkflowsApi = class extends BaseApiClient {
9555
9569
  body.append("relativePath", relativePath);
9556
9570
  return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
9557
9571
  }
9558
- /** List all workflows in a workspace, optionally including archived ones. */
9572
+ /** List workflows by archived status; `archived: true` returns only archived Workflows. */
9559
9573
  async getWorkflows(wid, options = {}) {
9560
9574
  const params = new URLSearchParams();
9561
9575
  if (options.archived) params.set("archived", "true");
@@ -10307,6 +10321,7 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
10307
10321
  EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
10308
10322
  EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
10309
10323
  EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
10324
+ EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
10310
10325
  EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
10311
10326
  EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
10312
10327
  EventRuleActionType2["SMS_SEND"] = "sms:send";
@@ -11150,6 +11165,12 @@ var WorkspacesApi = class extends BaseApiClient {
11150
11165
  async getWorkspaces(options) {
11151
11166
  return this.fetch(`w/?${workspaceDirectoryParams(options)}`);
11152
11167
  }
11168
+ /** One organization page reached through organization or workspace membership. */
11169
+ async getWorkspaceOrganizationDirectory(options) {
11170
+ return this.fetch(
11171
+ `w/organizations?${workspaceDirectoryParams(options)}`
11172
+ );
11173
+ }
11153
11174
  /**
11154
11175
  * Page 1 of each organization's workspace directory, in one request.
11155
11176
  * Later pages stay on ``getWorkspaces({ organizationUuid, page })``.
@@ -11251,6 +11272,18 @@ var WorkspacesApi = class extends BaseApiClient {
11251
11272
  const url = `w/${wid}/notifications${queryString ? `?${queryString}` : ""}`;
11252
11273
  return this.fetch(url);
11253
11274
  }
11275
+ async getNotificationSubscriptions(wid) {
11276
+ return this.fetch(`w/${wid}/notifications/subscriptions`);
11277
+ }
11278
+ async updateNotificationSubscription(wid, id, enabled) {
11279
+ return this.fetch(`w/${wid}/notifications/subscriptions/${id}`, {
11280
+ method: "PATCH",
11281
+ body: JSON.stringify({ enabled })
11282
+ });
11283
+ }
11284
+ async getNotificationAudience(wid, id) {
11285
+ return this.fetch(`w/${wid}/notifications/audiences/${id}`);
11286
+ }
11254
11287
  /** Get a single notification by ID. */
11255
11288
  async getNotification(wid, id) {
11256
11289
  return this.fetch(`w/${wid}/notifications/${id}`);
@@ -13313,6 +13346,8 @@ var WORKSPACE_METHOD_NAMES = [
13313
13346
  "getHubspotObjectProperties",
13314
13347
  "getHubspotReconciliationMatches",
13315
13348
  "getHubspotStatus",
13349
+ "getHubspotBookingReceipt",
13350
+ "releaseHubspotBookingAttempt",
13316
13351
  "getHubspotSyncLogs",
13317
13352
  "getHubspotTransformPresets",
13318
13353
  "getICalFeedUrl",
@@ -14123,6 +14158,7 @@ function bindMembersMethods(target, members) {
14123
14158
  // src/client/bindings/workspaces.ts
14124
14159
  function bindWorkspacesMethods(target, workspaces, signupRequests) {
14125
14160
  target.getWorkspaces = workspaces.getWorkspaces.bind(workspaces);
14161
+ target.getWorkspaceOrganizationDirectory = workspaces.getWorkspaceOrganizationDirectory.bind(workspaces);
14126
14162
  target.getOrganizationWorkspacePages = workspaces.getOrganizationWorkspacePages.bind(workspaces);
14127
14163
  target.getDeviceAdmissibleWorkspaces = workspaces.getDeviceAdmissibleWorkspaces.bind(workspaces);
14128
14164
  target.getPublicWorkspaces = workspaces.getPublicWorkspaces.bind(workspaces);
@@ -14139,6 +14175,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
14139
14175
  target.getBusinessHoursStatus = workspaces.getBusinessHoursStatus.bind(workspaces);
14140
14176
  target.getAvailableWorkspaceFeatures = workspaces.getAvailableWorkspaceFeatures.bind(workspaces);
14141
14177
  target.getWorkspaceNotices = workspaces.getWorkspaceNotices.bind(workspaces);
14178
+ target.getNotificationSubscriptions = workspaces.getNotificationSubscriptions.bind(workspaces);
14179
+ target.updateNotificationSubscription = workspaces.updateNotificationSubscription.bind(workspaces);
14180
+ target.getNotificationAudience = workspaces.getNotificationAudience.bind(workspaces);
14142
14181
  target.getNotifications = workspaces.getNotifications.bind(workspaces);
14143
14182
  target.getNotification = workspaces.getNotification.bind(workspaces);
14144
14183
  target.getUnreadNotificationCount = workspaces.getUnreadNotificationCount.bind(workspaces);
@@ -14826,6 +14865,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14826
14865
  target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
14827
14866
  target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
14828
14867
  target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
14868
+ target.getHubspotBookingReceipt = hubspot.getHubspotBookingReceipt.bind(hubspot);
14869
+ target.releaseHubspotBookingAttempt = hubspot.releaseHubspotBookingAttempt.bind(hubspot);
14829
14870
  target.installHubspot = hubspot.installHubspot.bind(hubspot);
14830
14871
  target.configureHubspot = hubspot.configureHubspot.bind(hubspot);
14831
14872
  target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
@@ -15651,6 +15692,7 @@ var GravityRailClient = class {
15651
15692
  inspectPrompt;
15652
15693
  // Workspaces API
15653
15694
  getWorkspaces;
15695
+ getWorkspaceOrganizationDirectory;
15654
15696
  getOrganizationWorkspacePages;
15655
15697
  getDeviceAdmissibleWorkspaces;
15656
15698
  getPublicWorkspaces;
@@ -15667,6 +15709,9 @@ var GravityRailClient = class {
15667
15709
  getBusinessHoursStatus;
15668
15710
  getAvailableWorkspaceFeatures;
15669
15711
  getWorkspaceNotices;
15712
+ getNotificationSubscriptions;
15713
+ updateNotificationSubscription;
15714
+ getNotificationAudience;
15670
15715
  getNotifications;
15671
15716
  getNotification;
15672
15717
  getUnreadNotificationCount;
@@ -16379,6 +16424,8 @@ var GravityRailClient = class {
16379
16424
  searchSalesforceRecords;
16380
16425
  importSalesforceMembers;
16381
16426
  // HubSpot API
16427
+ getHubspotBookingReceipt;
16428
+ releaseHubspotBookingAttempt;
16382
16429
  installHubspot;
16383
16430
  configureHubspot;
16384
16431
  startHubspotOAuth;
@@ -18508,4 +18555,4 @@ export {
18508
18555
  pathDraftFromStorage,
18509
18556
  pathDraftToStorage
18510
18557
  };
18511
- //# sourceMappingURL=chunk-LWRMGN4Z.js.map
18558
+ //# sourceMappingURL=chunk-MAPAZORN.js.map