@gravity-rail/cli 3.0.1 → 3.1.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/{account-verify-phone-SH7TN3KG.js → account-verify-phone-YIIEU6X2.js} +3 -3
- package/dist/{chunk-RMZJJR2T.js → chunk-HR255AEX.js} +2 -2
- package/dist/{chunk-RMZJJR2T.js.map → chunk-HR255AEX.js.map} +1 -1
- package/dist/{chunk-GQB43YPD.js → chunk-UHBWPJJT.js} +2 -2
- package/dist/cli-utils.js +1 -1
- package/dist/gr.js +106 -5
- package/dist/gr.js.map +1 -1
- package/dist/lib.js +57 -3
- package/dist/lib.js.map +1 -1
- package/package.json +2 -2
- /package/dist/{account-verify-phone-SH7TN3KG.js.map → account-verify-phone-YIIEU6X2.js.map} +0 -0
- /package/dist/{chunk-GQB43YPD.js.map → chunk-UHBWPJJT.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getEnvironmentConfig,
|
|
4
4
|
printTable,
|
|
5
5
|
resolveNonInteractiveAuth
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HR255AEX.js";
|
|
7
7
|
import {
|
|
8
8
|
AuthRequiredError,
|
|
9
9
|
CLIError
|
|
@@ -817,4 +817,4 @@ export {
|
|
|
817
817
|
confirmAccountPhoneVerify,
|
|
818
818
|
getConciergeChatMessages
|
|
819
819
|
};
|
|
820
|
-
//# sourceMappingURL=chunk-
|
|
820
|
+
//# sourceMappingURL=chunk-UHBWPJJT.js.map
|
package/dist/cli-utils.js
CHANGED
package/dist/gr.js
CHANGED
|
@@ -3167,7 +3167,7 @@ var init_libphonenumber_js = __esm({
|
|
|
3167
3167
|
}
|
|
3168
3168
|
});
|
|
3169
3169
|
|
|
3170
|
-
// ../sdk/dist/chunk-
|
|
3170
|
+
// ../sdk/dist/chunk-ANVLMZLD.js
|
|
3171
3171
|
function resourceWorkflowsPath(wid, ...segments) {
|
|
3172
3172
|
const tail = segments.map((segment) => encodeURIComponent(String(segment))).join("/");
|
|
3173
3173
|
const base = `w/${encodeURIComponent(wid)}/resource-workflows`;
|
|
@@ -3773,6 +3773,7 @@ function bindMembersMethods(target, members) {
|
|
|
3773
3773
|
}
|
|
3774
3774
|
function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
3775
3775
|
target.getWorkspaces = workspaces.getWorkspaces.bind(workspaces);
|
|
3776
|
+
target.getWorkspaceOrganizationDirectory = workspaces.getWorkspaceOrganizationDirectory.bind(workspaces);
|
|
3776
3777
|
target.getOrganizationWorkspacePages = workspaces.getOrganizationWorkspacePages.bind(workspaces);
|
|
3777
3778
|
target.getDeviceAdmissibleWorkspaces = workspaces.getDeviceAdmissibleWorkspaces.bind(workspaces);
|
|
3778
3779
|
target.getPublicWorkspaces = workspaces.getPublicWorkspaces.bind(workspaces);
|
|
@@ -3789,6 +3790,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
3789
3790
|
target.getBusinessHoursStatus = workspaces.getBusinessHoursStatus.bind(workspaces);
|
|
3790
3791
|
target.getAvailableWorkspaceFeatures = workspaces.getAvailableWorkspaceFeatures.bind(workspaces);
|
|
3791
3792
|
target.getWorkspaceNotices = workspaces.getWorkspaceNotices.bind(workspaces);
|
|
3793
|
+
target.getNotificationSubscriptions = workspaces.getNotificationSubscriptions.bind(workspaces);
|
|
3794
|
+
target.updateNotificationSubscription = workspaces.updateNotificationSubscription.bind(workspaces);
|
|
3795
|
+
target.getNotificationAudience = workspaces.getNotificationAudience.bind(workspaces);
|
|
3792
3796
|
target.getNotifications = workspaces.getNotifications.bind(workspaces);
|
|
3793
3797
|
target.getNotification = workspaces.getNotification.bind(workspaces);
|
|
3794
3798
|
target.getUnreadNotificationCount = workspaces.getUnreadNotificationCount.bind(workspaces);
|
|
@@ -4450,6 +4454,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
4450
4454
|
target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
|
|
4451
4455
|
target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
|
|
4452
4456
|
target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
|
|
4457
|
+
target.getHubspotBookingReceipt = hubspot.getHubspotBookingReceipt.bind(hubspot);
|
|
4458
|
+
target.releaseHubspotBookingAttempt = hubspot.releaseHubspotBookingAttempt.bind(hubspot);
|
|
4453
4459
|
target.installHubspot = hubspot.installHubspot.bind(hubspot);
|
|
4454
4460
|
target.configureHubspot = hubspot.configureHubspot.bind(hubspot);
|
|
4455
4461
|
target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
|
|
@@ -4803,8 +4809,8 @@ function getRevisionState(workflow, revision) {
|
|
|
4803
4809
|
};
|
|
4804
4810
|
}
|
|
4805
4811
|
var AbilitiesApi, ResourceWorkflowsApi, BundlesApi, InstallationsApi, AccessGrantsApi, AgentTasksApi, AgentsApi, AIModelsApi, ApiKeysApi, AppsApi, AssignmentsApi, VoiceApi, AuthApi, BuildersApi, CalendarsApi, CallsApi, CELApi, ChatsApi, ConfluenceApi, CustomToolkitsApi, DataTypesApi, DiscordBotsApi, SlackAppsApi, EventsApi, FeaturesApi, FhirConnectionsApi, StediApi, InboundFaxStatus, DocumoFaxApi, HealthieApi, FilesApi, InboxesApi, InquiriesApi, AppConnectionsApi, McpServersApi, MemberImportValidationError, MembersApi, MondayIntegrationApi, NotificationRulesApi, OperatorApi, OrgApi, OAuthConnectionsApi, OAuthApi, PhoneNumbersApi, PronunciationsApi, PromptsApi, PersonasApi, QueriesApi, QualificationsApi, ReportsApi, RoutingRulesApi, SalesforceApi, ConnectionSyncApi, HubspotApi, SitesApi, SubscriptionsApi, SupportRequestsApi, CustomersApi, ResellersApi, SupervisorsApi, TasksApi, TemplatesApi, ToolkitsApi, JourneysApi, WorkflowsApi, WorkflowNotesApi, EventRuleObjectType, EventRuleEventType, EventRuleActionType, DriverMode, MEMBER_RELATIONSHIP_KINDS, WorkspaceInvitationsApi, WorkspacesApi, MedicalBillingApi, DashboardsApi, DevicesApi, TeamsAppsApi, ExperimentsApi, PatientSyncConnectionsApi, ClaimMdApi, ActivityApi, MotdApi, InterventionRequestsApi, MetricsApi, DataReportsApi, ProjectsApi, TrackedLinksApi, WORKSPACE_METHOD_NAMES, WORKSPACE_METHOD_NAME_SET, GravityRailClient, WIDGET_SLUGS, CHAT_TYPES, BUILTIN_ASSISTANT_CHAT_TYPES, MEMBER_AGENT_CHAT_TYPES, ActivityGrain, ActivityGroupBy, ActivityOpenItemOrder, ActivityWindowBasis;
|
|
4806
|
-
var
|
|
4807
|
-
"../sdk/dist/chunk-
|
|
4812
|
+
var init_chunk_ANVLMZLD = __esm({
|
|
4813
|
+
"../sdk/dist/chunk-ANVLMZLD.js"() {
|
|
4808
4814
|
init_chunk_RLFS7O2L();
|
|
4809
4815
|
init_libphonenumber_js();
|
|
4810
4816
|
AbilitiesApi = class extends BaseApiClient {
|
|
@@ -12575,6 +12581,20 @@ var init_chunk_LWRMGN4Z = __esm({
|
|
|
12575
12581
|
}
|
|
12576
12582
|
};
|
|
12577
12583
|
HubspotApi = class extends BaseApiClient {
|
|
12584
|
+
async getHubspotBookingReceipt(wid, meetingId) {
|
|
12585
|
+
return this.fetch(
|
|
12586
|
+
`w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/receipt`
|
|
12587
|
+
);
|
|
12588
|
+
}
|
|
12589
|
+
async releaseHubspotBookingAttempt(wid, meetingId, data) {
|
|
12590
|
+
return this.fetch(
|
|
12591
|
+
`w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/release`,
|
|
12592
|
+
{
|
|
12593
|
+
method: "POST",
|
|
12594
|
+
body: JSON.stringify(data)
|
|
12595
|
+
}
|
|
12596
|
+
);
|
|
12597
|
+
}
|
|
12578
12598
|
/**
|
|
12579
12599
|
* Create the HubSpot connection shell (no credentials yet).
|
|
12580
12600
|
*
|
|
@@ -14466,6 +14486,7 @@ var init_chunk_LWRMGN4Z = __esm({
|
|
|
14466
14486
|
EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
|
|
14467
14487
|
EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
|
|
14468
14488
|
EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
|
|
14489
|
+
EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
|
|
14469
14490
|
EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
|
|
14470
14491
|
EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
|
|
14471
14492
|
EventRuleActionType2["SMS_SEND"] = "sms:send";
|
|
@@ -14814,6 +14835,12 @@ var init_chunk_LWRMGN4Z = __esm({
|
|
|
14814
14835
|
async getWorkspaces(options) {
|
|
14815
14836
|
return this.fetch(`w/?${workspaceDirectoryParams(options)}`);
|
|
14816
14837
|
}
|
|
14838
|
+
/** One organization page reached through organization or workspace membership. */
|
|
14839
|
+
async getWorkspaceOrganizationDirectory(options) {
|
|
14840
|
+
return this.fetch(
|
|
14841
|
+
`w/organizations?${workspaceDirectoryParams(options)}`
|
|
14842
|
+
);
|
|
14843
|
+
}
|
|
14817
14844
|
/**
|
|
14818
14845
|
* Page 1 of each organization's workspace directory, in one request.
|
|
14819
14846
|
* Later pages stay on ``getWorkspaces({ organizationUuid, page })``.
|
|
@@ -14915,6 +14942,18 @@ var init_chunk_LWRMGN4Z = __esm({
|
|
|
14915
14942
|
const url = `w/${wid}/notifications${queryString ? `?${queryString}` : ""}`;
|
|
14916
14943
|
return this.fetch(url);
|
|
14917
14944
|
}
|
|
14945
|
+
async getNotificationSubscriptions(wid) {
|
|
14946
|
+
return this.fetch(`w/${wid}/notifications/subscriptions`);
|
|
14947
|
+
}
|
|
14948
|
+
async updateNotificationSubscription(wid, id, enabled) {
|
|
14949
|
+
return this.fetch(`w/${wid}/notifications/subscriptions/${id}`, {
|
|
14950
|
+
method: "PATCH",
|
|
14951
|
+
body: JSON.stringify({ enabled })
|
|
14952
|
+
});
|
|
14953
|
+
}
|
|
14954
|
+
async getNotificationAudience(wid, id) {
|
|
14955
|
+
return this.fetch(`w/${wid}/notifications/audiences/${id}`);
|
|
14956
|
+
}
|
|
14918
14957
|
/** Get a single notification by ID. */
|
|
14919
14958
|
async getNotification(wid, id) {
|
|
14920
14959
|
return this.fetch(`w/${wid}/notifications/${id}`);
|
|
@@ -16780,6 +16819,8 @@ var init_chunk_LWRMGN4Z = __esm({
|
|
|
16780
16819
|
"getHubspotObjectProperties",
|
|
16781
16820
|
"getHubspotReconciliationMatches",
|
|
16782
16821
|
"getHubspotStatus",
|
|
16822
|
+
"getHubspotBookingReceipt",
|
|
16823
|
+
"releaseHubspotBookingAttempt",
|
|
16783
16824
|
"getHubspotSyncLogs",
|
|
16784
16825
|
"getHubspotTransformPresets",
|
|
16785
16826
|
"getICalFeedUrl",
|
|
@@ -17711,6 +17752,7 @@ var init_chunk_LWRMGN4Z = __esm({
|
|
|
17711
17752
|
inspectPrompt;
|
|
17712
17753
|
// Workspaces API
|
|
17713
17754
|
getWorkspaces;
|
|
17755
|
+
getWorkspaceOrganizationDirectory;
|
|
17714
17756
|
getOrganizationWorkspacePages;
|
|
17715
17757
|
getDeviceAdmissibleWorkspaces;
|
|
17716
17758
|
getPublicWorkspaces;
|
|
@@ -17727,6 +17769,9 @@ var init_chunk_LWRMGN4Z = __esm({
|
|
|
17727
17769
|
getBusinessHoursStatus;
|
|
17728
17770
|
getAvailableWorkspaceFeatures;
|
|
17729
17771
|
getWorkspaceNotices;
|
|
17772
|
+
getNotificationSubscriptions;
|
|
17773
|
+
updateNotificationSubscription;
|
|
17774
|
+
getNotificationAudience;
|
|
17730
17775
|
getNotifications;
|
|
17731
17776
|
getNotification;
|
|
17732
17777
|
getUnreadNotificationCount;
|
|
@@ -18439,6 +18484,8 @@ var init_chunk_LWRMGN4Z = __esm({
|
|
|
18439
18484
|
searchSalesforceRecords;
|
|
18440
18485
|
importSalesforceMembers;
|
|
18441
18486
|
// HubSpot API
|
|
18487
|
+
getHubspotBookingReceipt;
|
|
18488
|
+
releaseHubspotBookingAttempt;
|
|
18442
18489
|
installHubspot;
|
|
18443
18490
|
configureHubspot;
|
|
18444
18491
|
startHubspotOAuth;
|
|
@@ -18846,7 +18893,7 @@ var init_chunk_6KPGCPGW = __esm({
|
|
|
18846
18893
|
var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
|
|
18847
18894
|
var init_dist = __esm({
|
|
18848
18895
|
"../sdk/dist/index.js"() {
|
|
18849
|
-
|
|
18896
|
+
init_chunk_ANVLMZLD();
|
|
18850
18897
|
init_chunk_D5VNVTUQ();
|
|
18851
18898
|
init_chunk_6KPGCPGW();
|
|
18852
18899
|
init_chunk_RLFS7O2L();
|
|
@@ -23273,7 +23320,7 @@ var init_package = __esm({
|
|
|
23273
23320
|
"package.json"() {
|
|
23274
23321
|
package_default = {
|
|
23275
23322
|
name: "@gravity-rail/cli",
|
|
23276
|
-
version: "3.0
|
|
23323
|
+
version: "3.1.0",
|
|
23277
23324
|
description: "Gravity Rail CLI \u2014 manage workspaces from the command line",
|
|
23278
23325
|
type: "module",
|
|
23279
23326
|
bin: {
|
|
@@ -47363,6 +47410,60 @@ var hubspotDomain = {
|
|
|
47363
47410
|
name: "hubspot",
|
|
47364
47411
|
description: "HubSpot CRM integration",
|
|
47365
47412
|
commands: [
|
|
47413
|
+
{
|
|
47414
|
+
path: ["hubspot", "booking-deals", "receipt"],
|
|
47415
|
+
description: "Inspect a booking receipt before operator recovery",
|
|
47416
|
+
requiresWorkspace: true,
|
|
47417
|
+
args: [{ name: "meeting-id", description: "HubSpot meeting ID", required: true }],
|
|
47418
|
+
handler: async ({ ctx, workspace, args }) => {
|
|
47419
|
+
outputSingle(
|
|
47420
|
+
await requireAuth(ctx).apiClient.getHubspotBookingReceipt(
|
|
47421
|
+
workspace,
|
|
47422
|
+
requireString(args, "meeting-id")
|
|
47423
|
+
),
|
|
47424
|
+
ctx
|
|
47425
|
+
);
|
|
47426
|
+
}
|
|
47427
|
+
},
|
|
47428
|
+
{
|
|
47429
|
+
path: ["hubspot", "booking-deals", "release"],
|
|
47430
|
+
description: "Release an uncertain attempt after checking HubSpot and stopping any running attempt. Does not create a deal; replay the booking record afterward.",
|
|
47431
|
+
requiresWorkspace: true,
|
|
47432
|
+
mutates: true,
|
|
47433
|
+
args: [
|
|
47434
|
+
{ name: "meeting-id", description: "HubSpot meeting ID", required: true },
|
|
47435
|
+
{ name: "portal-id", description: "Inspected receipt portal ID", required: true },
|
|
47436
|
+
{ name: "attempt-id", description: "Inspected receipt attempt UUID", required: true },
|
|
47437
|
+
{
|
|
47438
|
+
name: "confirm-no-deal-and-no-running-attempt",
|
|
47439
|
+
description: "Enter yes after verifying both conditions in HubSpot and Gravity Rail",
|
|
47440
|
+
required: true
|
|
47441
|
+
}
|
|
47442
|
+
],
|
|
47443
|
+
handler: async ({ ctx, workspace, args }) => {
|
|
47444
|
+
if (args["confirm-no-deal-and-no-running-attempt"] !== "yes") {
|
|
47445
|
+
throw new CLIError(
|
|
47446
|
+
"Confirm no existing deal and no running attempt with --confirm-no-deal-and-no-running-attempt yes"
|
|
47447
|
+
);
|
|
47448
|
+
}
|
|
47449
|
+
await requireAuth(ctx).apiClient.releaseHubspotBookingAttempt(
|
|
47450
|
+
workspace,
|
|
47451
|
+
requireString(args, "meeting-id"),
|
|
47452
|
+
{
|
|
47453
|
+
portalId: requireString(args, "portal-id"),
|
|
47454
|
+
attemptId: requireString(args, "attempt-id"),
|
|
47455
|
+
confirmedNoDealAndNoRunningAttempt: true
|
|
47456
|
+
}
|
|
47457
|
+
);
|
|
47458
|
+
outputSingle(
|
|
47459
|
+
{
|
|
47460
|
+
status: "released",
|
|
47461
|
+
nextStep: "Replay the booking record through its record-updated Action"
|
|
47462
|
+
},
|
|
47463
|
+
ctx
|
|
47464
|
+
);
|
|
47465
|
+
}
|
|
47466
|
+
},
|
|
47366
47467
|
{
|
|
47367
47468
|
path: ["hubspot", "install"],
|
|
47368
47469
|
description: "Install HubSpot (setup step 1): create the connection and get its OAuth callback URL",
|