@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
package/dist/lib.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
startAccountPhoneVerify,
|
|
34
34
|
stderr,
|
|
35
35
|
unwrapItems
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-UHBWPJJT.js";
|
|
37
37
|
import {
|
|
38
38
|
AGUIClient,
|
|
39
39
|
formatTimestamp,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
isRecord,
|
|
43
43
|
performOAuthFlow,
|
|
44
44
|
selectFromList
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-HR255AEX.js";
|
|
46
46
|
import {
|
|
47
47
|
AuthRequiredError,
|
|
48
48
|
CLIError,
|
|
@@ -19855,6 +19855,60 @@ var hubspotDomain = {
|
|
|
19855
19855
|
name: "hubspot",
|
|
19856
19856
|
description: "HubSpot CRM integration",
|
|
19857
19857
|
commands: [
|
|
19858
|
+
{
|
|
19859
|
+
path: ["hubspot", "booking-deals", "receipt"],
|
|
19860
|
+
description: "Inspect a booking receipt before operator recovery",
|
|
19861
|
+
requiresWorkspace: true,
|
|
19862
|
+
args: [{ name: "meeting-id", description: "HubSpot meeting ID", required: true }],
|
|
19863
|
+
handler: async ({ ctx, workspace, args }) => {
|
|
19864
|
+
outputSingle(
|
|
19865
|
+
await requireAuth(ctx).apiClient.getHubspotBookingReceipt(
|
|
19866
|
+
workspace,
|
|
19867
|
+
requireString(args, "meeting-id")
|
|
19868
|
+
),
|
|
19869
|
+
ctx
|
|
19870
|
+
);
|
|
19871
|
+
}
|
|
19872
|
+
},
|
|
19873
|
+
{
|
|
19874
|
+
path: ["hubspot", "booking-deals", "release"],
|
|
19875
|
+
description: "Release an uncertain attempt after checking HubSpot and stopping any running attempt. Does not create a deal; replay the booking record afterward.",
|
|
19876
|
+
requiresWorkspace: true,
|
|
19877
|
+
mutates: true,
|
|
19878
|
+
args: [
|
|
19879
|
+
{ name: "meeting-id", description: "HubSpot meeting ID", required: true },
|
|
19880
|
+
{ name: "portal-id", description: "Inspected receipt portal ID", required: true },
|
|
19881
|
+
{ name: "attempt-id", description: "Inspected receipt attempt UUID", required: true },
|
|
19882
|
+
{
|
|
19883
|
+
name: "confirm-no-deal-and-no-running-attempt",
|
|
19884
|
+
description: "Enter yes after verifying both conditions in HubSpot and Gravity Rail",
|
|
19885
|
+
required: true
|
|
19886
|
+
}
|
|
19887
|
+
],
|
|
19888
|
+
handler: async ({ ctx, workspace, args }) => {
|
|
19889
|
+
if (args["confirm-no-deal-and-no-running-attempt"] !== "yes") {
|
|
19890
|
+
throw new CLIError(
|
|
19891
|
+
"Confirm no existing deal and no running attempt with --confirm-no-deal-and-no-running-attempt yes"
|
|
19892
|
+
);
|
|
19893
|
+
}
|
|
19894
|
+
await requireAuth(ctx).apiClient.releaseHubspotBookingAttempt(
|
|
19895
|
+
workspace,
|
|
19896
|
+
requireString(args, "meeting-id"),
|
|
19897
|
+
{
|
|
19898
|
+
portalId: requireString(args, "portal-id"),
|
|
19899
|
+
attemptId: requireString(args, "attempt-id"),
|
|
19900
|
+
confirmedNoDealAndNoRunningAttempt: true
|
|
19901
|
+
}
|
|
19902
|
+
);
|
|
19903
|
+
outputSingle(
|
|
19904
|
+
{
|
|
19905
|
+
status: "released",
|
|
19906
|
+
nextStep: "Replay the booking record through its record-updated Action"
|
|
19907
|
+
},
|
|
19908
|
+
ctx
|
|
19909
|
+
);
|
|
19910
|
+
}
|
|
19911
|
+
},
|
|
19858
19912
|
{
|
|
19859
19913
|
path: ["hubspot", "install"],
|
|
19860
19914
|
description: "Install HubSpot (setup step 1): create the connection and get its OAuth callback URL",
|
|
@@ -25629,7 +25683,7 @@ var topLevelCommands = [
|
|
|
25629
25683
|
mutates: true,
|
|
25630
25684
|
args: [{ name: "phone", description: "E.164 phone number (optional; prompts if omitted)" }],
|
|
25631
25685
|
handler: async (hctx) => {
|
|
25632
|
-
const { accountVerifyPhoneCommand } = await import("./account-verify-phone-
|
|
25686
|
+
const { accountVerifyPhoneCommand } = await import("./account-verify-phone-YIIEU6X2.js");
|
|
25633
25687
|
await accountVerifyPhoneCommand(hctx);
|
|
25634
25688
|
}
|
|
25635
25689
|
},
|