@gravity-rail/sdk 11.0.0 → 12.0.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 './client-7gZX_34u.cjs';
2
+ export { C as ChatInteractionController } from './client-Bhqh4jc_.cjs';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.cjs';
4
- export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-CVeZLZGP.cjs';
4
+ export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-LgqWctZq.cjs';
5
5
  import './account-D4dzqsFS.cjs';
6
6
  import 'zod';
7
7
 
package/dist/helpers.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { GravityRailClient } from './index.js';
2
- export { C as ChatInteractionController } from './client-Bkn4Vb3I.js';
2
+ export { C as ChatInteractionController } from './client-5uu0OE60.js';
3
3
  import { WorkspaceMemberResponse, DataRecordResponse } from './index.js';
4
- export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-B-ym1Ks1.js';
4
+ export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-BqEl0RkU.js';
5
5
  import './account-D4dzqsFS.js';
6
6
  import 'zod';
7
7
 
package/dist/index.cjs CHANGED
@@ -2361,7 +2361,7 @@ var CalendarsApi = class extends BaseApiClient {
2361
2361
  body: JSON.stringify({ cancellationReason: reason })
2362
2362
  });
2363
2363
  }
2364
- /** Delete the local event. Native Google bookings return PENDING or FAILED
2364
+ /** Delete the local event. Native provider bookings return PENDING or FAILED
2365
2365
  * until provider removal is confirmed. Null is not a provider-removal receipt.
2366
2366
  */
2367
2367
  async deleteCalendarEvent(wid, eventId) {
@@ -2455,6 +2455,26 @@ var CalendarsApi = class extends BaseApiClient {
2455
2455
  method: "DELETE"
2456
2456
  });
2457
2457
  }
2458
+ async listOutlookCalendars(wid) {
2459
+ return this.fetch(`w/${wid}/calendars/outlook/list`);
2460
+ }
2461
+ async getOutlookCalendarStatus(wid) {
2462
+ return this.fetch(`w/${wid}/calendars/outlook/status`);
2463
+ }
2464
+ async linkCalendarToOutlook(wid, calendarId, request) {
2465
+ return this.fetch(
2466
+ `w/${wid}/calendars/${calendarId}/outlook/link`,
2467
+ {
2468
+ method: "POST",
2469
+ body: JSON.stringify(request)
2470
+ }
2471
+ );
2472
+ }
2473
+ async unlinkCalendarFromOutlook(wid, calendarId) {
2474
+ return this.fetch(`w/${wid}/calendars/${calendarId}/outlook/link`, {
2475
+ method: "DELETE"
2476
+ });
2477
+ }
2458
2478
  /** Trigger a manual sync between a calendar and its linked Google Calendar. */
2459
2479
  async syncCalendarWithGoogle(wid, calendarId) {
2460
2480
  return this.fetch(`w/${wid}/calendars/${calendarId}/google/sync`, {
@@ -13965,25 +13985,6 @@ var WorkspaceInvitationsApi = class extends BaseApiClient {
13965
13985
  const url = `w/${workspaceUuid}/invitations${queryString ? `?${queryString}` : ""}`;
13966
13986
  return this.fetch(url);
13967
13987
  }
13968
- /**
13969
- * Invite someone to a workspace (requires workspace admin permission).
13970
- * Uses the workspace-scoped route: POST /api/v2/w/{workspaceUuid}/invitations
13971
- */
13972
- async inviteToWorkspace(workspaceUuid, emailOrAccountId, message, name) {
13973
- const body = {
13974
- message,
13975
- name
13976
- };
13977
- if (typeof emailOrAccountId === "string") {
13978
- body.email = emailOrAccountId;
13979
- } else {
13980
- body.accountId = emailOrAccountId;
13981
- }
13982
- return this.fetch(`w/${workspaceUuid}/invitations`, {
13983
- method: "POST",
13984
- body: JSON.stringify(body)
13985
- });
13986
- }
13987
13988
  /**
13988
13989
  * Update an invitation status (requires workspace admin permission).
13989
13990
  * Uses the workspace-scoped route: PUT /api/v2/w/{workspaceUuid}/invitations/{id}
@@ -15522,6 +15523,7 @@ var WORKSPACE_METHOD_NAMES = [
15522
15523
  "getFolderSharing",
15523
15524
  "getFolders",
15524
15525
  "getGoogleCalendarStatus",
15526
+ "getOutlookCalendarStatus",
15525
15527
  "getGranteeGrants",
15526
15528
  "getHealthieAppointmentPatientMatches",
15527
15529
  "getHealthieAvailableSlots",
@@ -15763,9 +15765,9 @@ var WORKSPACE_METHOD_NAMES = [
15763
15765
  "installMondayConnection",
15764
15766
  "installSalesforce",
15765
15767
  "inviteMemberCredentialUpdate",
15766
- "inviteToWorkspace",
15767
15768
  "leaveWorkspace",
15768
15769
  "linkCalendarToGoogle",
15770
+ "linkCalendarToOutlook",
15769
15771
  "linkCalendarToHealthie",
15770
15772
  "linkMemberToHealthie",
15771
15773
  "linkMemberToHubspot",
@@ -15802,6 +15804,7 @@ var WORKSPACE_METHOD_NAMES = [
15802
15804
  "setDefaultGooglePlatformAccount",
15803
15805
  "listFileVersions",
15804
15806
  "listGoogleCalendars",
15807
+ "listOutlookCalendars",
15805
15808
  "listHealthieAppointmentTypes",
15806
15809
  "listHealthiePatients",
15807
15810
  "listHealthieProviders",
@@ -15932,6 +15935,7 @@ var WORKSPACE_METHOD_NAMES = [
15932
15935
  "unarchiveWorkflow",
15933
15936
  "unenrollMembers",
15934
15937
  "unlinkCalendarFromGoogle",
15938
+ "unlinkCalendarFromOutlook",
15935
15939
  "unlinkCalendarFromHealthie",
15936
15940
  "unlinkCredential",
15937
15941
  "unlinkMemberFromHealthie",
@@ -16457,7 +16461,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
16457
16461
  target.approveWorkspaceInvitation = signupRequests.approveWorkspaceInvitation.bind(signupRequests);
16458
16462
  target.denyWorkspaceInvitation = signupRequests.denyWorkspaceInvitation.bind(signupRequests);
16459
16463
  target.blockWorkspaceInvitation = signupRequests.blockWorkspaceInvitation.bind(signupRequests);
16460
- target.inviteToWorkspace = signupRequests.inviteToWorkspace.bind(signupRequests);
16461
16464
  target.acceptInvitation = signupRequests.acceptInvitation.bind(signupRequests);
16462
16465
  target.declineInvitation = signupRequests.declineInvitation.bind(signupRequests);
16463
16466
  }
@@ -16763,6 +16766,10 @@ function bindCalendarsMethods(target, calendars) {
16763
16766
  target.listGoogleCalendars = calendars.listGoogleCalendars.bind(calendars);
16764
16767
  target.linkCalendarToGoogle = calendars.linkCalendarToGoogle.bind(calendars);
16765
16768
  target.unlinkCalendarFromGoogle = calendars.unlinkCalendarFromGoogle.bind(calendars);
16769
+ target.getOutlookCalendarStatus = calendars.getOutlookCalendarStatus.bind(calendars);
16770
+ target.listOutlookCalendars = calendars.listOutlookCalendars.bind(calendars);
16771
+ target.linkCalendarToOutlook = calendars.linkCalendarToOutlook.bind(calendars);
16772
+ target.unlinkCalendarFromOutlook = calendars.unlinkCalendarFromOutlook.bind(calendars);
16766
16773
  target.syncCalendarWithGoogle = calendars.syncCalendarWithGoogle.bind(calendars);
16767
16774
  }
16768
16775
 
@@ -18143,7 +18150,6 @@ var GravityRailClient = class {
18143
18150
  approveWorkspaceInvitation;
18144
18151
  denyWorkspaceInvitation;
18145
18152
  blockWorkspaceInvitation;
18146
- inviteToWorkspace;
18147
18153
  acceptInvitation;
18148
18154
  declineInvitation;
18149
18155
  // Auth API
@@ -18411,6 +18417,10 @@ var GravityRailClient = class {
18411
18417
  listGoogleCalendars;
18412
18418
  linkCalendarToGoogle;
18413
18419
  unlinkCalendarFromGoogle;
18420
+ getOutlookCalendarStatus;
18421
+ listOutlookCalendars;
18422
+ linkCalendarToOutlook;
18423
+ unlinkCalendarFromOutlook;
18414
18424
  syncCalendarWithGoogle;
18415
18425
  // Communications API
18416
18426
  getPhoneNumbers;