@velaro/cli 1.4.145 → 1.4.147

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/bin/velaro.js CHANGED
@@ -123,6 +123,7 @@ import { recycleBinCommand, aiUsageCommand, siteInfoCommand, billingReceiptsComm
123
123
  import { aiFollowupsCommand, businessActionCommand, callCommand, conversationCommand, conversionCommand, ivrCommand } from '../lib/commands/ops-groups.js';
124
124
  import { featureDiscoveryGroup } from '../lib/commands/feature-discovery.js';
125
125
  import { billingInsightsGroup } from '../lib/commands/billing-insights.js';
126
+ import { supportTicketsCommand } from '../lib/commands/support-tickets.js';
126
127
  import { startUpdateCheck } from '../lib/update-check.js';
127
128
  import { printBanner, printBannerIfFirstRun } from '../lib/banner.js';
128
129
  import { createRequire } from 'module';
@@ -265,6 +266,7 @@ await (registerStaffCommands ? registerStaffCommands(baseYargs) : baseYargs)
265
266
  .command(chatWindowCommand)
266
267
  .command(featureDiscoveryGroup)
267
268
  .command(billingInsightsGroup)
269
+ .command(supportTicketsCommand)
268
270
  .command(usageCommand)
269
271
  .command(campaignsCommand)
270
272
  .command(senderDomainHealthCommand)
@@ -0,0 +1,27 @@
1
+ // velaro support-tickets: the support tickets of your site ("My tickets").
2
+ // Site scoping is server-side (token); no siteId is ever passed.
3
+ import { request } from '../api.js';
4
+
5
+ async function list(args) {
6
+ const take = Number(args.take) > 0 ? `?take=${Math.min(500, Math.floor(Number(args.take)))}` : '';
7
+ const rows = await request('GET', `SupportTickets${take}`);
8
+ if (!Array.isArray(rows) || rows.length === 0) { console.log('\nNo support tickets for this site.'); return; }
9
+ console.log(`\nSupport tickets (${rows.length})\n${'-'.repeat(60)}`);
10
+ for (const t of rows) {
11
+ const stamp = t.verificationStamp ? ` [${t.verificationStamp}]` : '';
12
+ console.log(` ${t.ticketNumber} ${t.status.padEnd(9)} ${t.subject}${stamp}`);
13
+ }
14
+ console.log('');
15
+ }
16
+
17
+ export const supportTicketsCommand = {
18
+ command: 'support-tickets <subcommand>',
19
+ describe: 'See the support tickets of your site',
20
+ builder: (yargs) =>
21
+ yargs
22
+ .command('list', 'List your site\'s support tickets', {
23
+ take: { type: 'number', describe: 'Rows to return (default 200, max 500)' },
24
+ }, (args) => list(args))
25
+ .demandCommand(1, 'Specify a subcommand: list'),
26
+ handler: () => {},
27
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/cli",
3
- "version": "1.4.145",
3
+ "version": "1.4.147",
4
4
  "description": "Velaro Workspace v20 — command-line interface for managing bots, knowledge base ingestion, MCP API keys, search indexes, and ops health.",
5
5
  "type": "module",
6
6
  "bin": {