@gravity-rail/cli 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.
package/dist/lib.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  startAccountPhoneVerify,
34
34
  stderr,
35
35
  unwrapItems
36
- } from "./chunk-GQB43YPD.js";
36
+ } from "./chunk-WBFYLV7Q.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-RMZJJR2T.js";
45
+ } from "./chunk-INGVO35B.js";
46
46
  import {
47
47
  AuthRequiredError,
48
48
  CLIError,
@@ -3415,6 +3415,17 @@ var workflowsDomain = {
3415
3415
  archiveMethod: "archiveWorkflow",
3416
3416
  unarchiveMethod: "unarchiveWorkflow",
3417
3417
  columns: COLUMNS5,
3418
+ // The list hides archived Workflows by default. `--archived` uses the
3419
+ // API's existing `archived` filter so an operator can find a row that
3420
+ // still blocks a phone/inbox archive but no longer appears in the
3421
+ // default listing (#27586). Default listing behavior is unchanged.
3422
+ listArgs: [
3423
+ {
3424
+ name: "archived",
3425
+ description: "List archived workflows instead of active ones",
3426
+ isFlag: true
3427
+ }
3428
+ ],
3418
3429
  // `GET /workflows` is a `PaginatedResponse` (pageSize default 100, max
3419
3430
  // 500 — lib/routes/workspace/workflows/list.py). Without this opt-in the
3420
3431
  // command exposes no `--page` / `--all`, so a caller reading the list
@@ -19855,6 +19866,60 @@ var hubspotDomain = {
19855
19866
  name: "hubspot",
19856
19867
  description: "HubSpot CRM integration",
19857
19868
  commands: [
19869
+ {
19870
+ path: ["hubspot", "booking-deals", "receipt"],
19871
+ description: "Inspect a booking receipt before operator recovery",
19872
+ requiresWorkspace: true,
19873
+ args: [{ name: "meeting-id", description: "HubSpot meeting ID", required: true }],
19874
+ handler: async ({ ctx, workspace, args }) => {
19875
+ outputSingle(
19876
+ await requireAuth(ctx).apiClient.getHubspotBookingReceipt(
19877
+ workspace,
19878
+ requireString(args, "meeting-id")
19879
+ ),
19880
+ ctx
19881
+ );
19882
+ }
19883
+ },
19884
+ {
19885
+ path: ["hubspot", "booking-deals", "release"],
19886
+ description: "Release an uncertain attempt after checking HubSpot and stopping any running attempt. Does not create a deal; replay the booking record afterward.",
19887
+ requiresWorkspace: true,
19888
+ mutates: true,
19889
+ args: [
19890
+ { name: "meeting-id", description: "HubSpot meeting ID", required: true },
19891
+ { name: "portal-id", description: "Inspected receipt portal ID", required: true },
19892
+ { name: "attempt-id", description: "Inspected receipt attempt UUID", required: true },
19893
+ {
19894
+ name: "confirm-no-deal-and-no-running-attempt",
19895
+ description: "Enter yes after verifying both conditions in HubSpot and Gravity Rail",
19896
+ required: true
19897
+ }
19898
+ ],
19899
+ handler: async ({ ctx, workspace, args }) => {
19900
+ if (args["confirm-no-deal-and-no-running-attempt"] !== "yes") {
19901
+ throw new CLIError(
19902
+ "Confirm no existing deal and no running attempt with --confirm-no-deal-and-no-running-attempt yes"
19903
+ );
19904
+ }
19905
+ await requireAuth(ctx).apiClient.releaseHubspotBookingAttempt(
19906
+ workspace,
19907
+ requireString(args, "meeting-id"),
19908
+ {
19909
+ portalId: requireString(args, "portal-id"),
19910
+ attemptId: requireString(args, "attempt-id"),
19911
+ confirmedNoDealAndNoRunningAttempt: true
19912
+ }
19913
+ );
19914
+ outputSingle(
19915
+ {
19916
+ status: "released",
19917
+ nextStep: "Replay the booking record through its record-updated Action"
19918
+ },
19919
+ ctx
19920
+ );
19921
+ }
19922
+ },
19858
19923
  {
19859
19924
  path: ["hubspot", "install"],
19860
19925
  description: "Install HubSpot (setup step 1): create the connection and get its OAuth callback URL",
@@ -25629,7 +25694,7 @@ var topLevelCommands = [
25629
25694
  mutates: true,
25630
25695
  args: [{ name: "phone", description: "E.164 phone number (optional; prompts if omitted)" }],
25631
25696
  handler: async (hctx) => {
25632
- const { accountVerifyPhoneCommand } = await import("./account-verify-phone-SH7TN3KG.js");
25697
+ const { accountVerifyPhoneCommand } = await import("./account-verify-phone-KOK7STAQ.js");
25633
25698
  await accountVerifyPhoneCommand(hctx);
25634
25699
  }
25635
25700
  },