Skip to content

Commit ba8b5bc

Browse files
claude[bot]github-actions[bot]claude
authored
chore: Sync CLI with list quotes endpoint removal (#323)
## Summary - Removed `quotes list` CLI command since `GET /quotes` endpoint was removed in #321 - Cleaned up unused `PaginatedResponse` import in quotes.ts ## Additional updates needed The following files in `.claude/skills/` also reference the removed endpoint but require manual updates due to permission restrictions: 1. **`.claude/skills/grid-api/references/endpoints.md`** (line 77) - Remove: `| GET | `/quotes` | List quotes (paginated) |` 2. **`.claude/skills/grid-api/SKILL.md`** (lines 327-329) - Remove the "List quotes" curl example ## Test plan - [x] CLI compiles (note: pre-existing TypeScript config issues exist) - [x] Verified removed command aligned with OpenAPI spec changes in #321 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d8ff2df commit ba8b5bc

1 file changed

Lines changed: 1 addition & 35 deletions

File tree

cli/src/commands/quotes.ts

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Command } from "commander";
2-
import { GridClient, PaginatedResponse } from "../client";
2+
import { GridClient } from "../client";
33
import { outputResponse, formatError, output } from "../output";
44
import { GlobalOptions } from "../index";
55
import {
@@ -49,40 +49,6 @@ export function registerQuotesCommand(
4949
.command("quotes")
5050
.description("Quote management commands");
5151

52-
quotesCmd
53-
.command("list")
54-
.description("List transfer quotes")
55-
.option("-l, --limit <number>", "Maximum results (default 20, max 100)", "20")
56-
.option("--cursor <cursor>", "Pagination cursor")
57-
.option("--customer-id <id>", "Filter by sending customer ID")
58-
.option("--sending-account <id>", "Filter by sending account ID")
59-
.option("--receiving-account <id>", "Filter by receiving account ID")
60-
.option("--sending-uma <address>", "Filter by sending UMA address")
61-
.option("--receiving-uma <address>", "Filter by receiving UMA address")
62-
.option("--status <status>", "Filter by status (PENDING, PROCESSING, COMPLETED, FAILED, EXPIRED)")
63-
.action(async (options) => {
64-
const opts = program.opts<GlobalOptions>();
65-
const client = getClient(opts);
66-
if (!client) return;
67-
68-
const params: Record<string, string | number | undefined> = {
69-
limit: parseInt(options.limit, 10),
70-
cursor: options.cursor,
71-
customerId: options.customerId,
72-
sendingAccountId: options.sendingAccount,
73-
receivingAccountId: options.receivingAccount,
74-
sendingUmaAddress: options.sendingUma,
75-
receivingUmaAddress: options.receivingUma,
76-
status: options.status,
77-
};
78-
79-
const response = await client.get<PaginatedResponse<Quote>>(
80-
"/quotes",
81-
params
82-
);
83-
outputResponse(response);
84-
});
85-
8652
quotesCmd
8753
.command("get <quoteId>")
8854
.description("Get quote details")

0 commit comments

Comments
 (0)