@freeticket/cli 0.15.0 → 0.16.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/README.md +5 -1
- package/dist/index.js +1622 -41
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -123,11 +123,13 @@ ft sales list --status CONFIRMED --json
|
|
|
123
123
|
| `ft content-videos list` · `content-posts list\|create` · `content-lives list\|get\|playback-token` | Organization content; `content-posts create --data` publishes a post or article | ADMIN |
|
|
124
124
|
| `ft waitlist list [--city <name>]` · `waitlist create --data` | Per-city waitlist of an enterprise landing (export with personal data); `create` needs an enterprise service key | ADMIN |
|
|
125
125
|
| `ft courtesy-requests create --data '{"fullName":"…","email":"…","companion":{"fullName":"…"}}'` | Courtesy invitation request from an enterprise landing (enterprise service key; one per email, a resubmit is 409). The list lives in the dashboard (`/dashboard/cortesias`) | service key |
|
|
126
|
+
| `ft raffles get <slug>` | Raffle or sign-up form definition of an enterprise landing: `kind` (`raffle` \| `form`), `status`, `fields` (choice fields carry `options`), `consents` (enterprise service key; Legend plan) | service key |
|
|
126
127
|
| `ft merch products list` | Merch store products of the workspace's organization, DRAFT and PUBLISHED, with variants (Legend plan) | ADMIN / MERCH_MANAGER |
|
|
127
128
|
| `ft merch products create` | Create product(s) as DRAFT: `--name` `--price <cop>` `--sizes XS,S,M` `--stock <n>` `--image <path>` (repeatable, uploaded through a signed URL) `--publish`; `--from-json <file>` for several (image paths relative to the file, no symlinks). The whole batch is validated first; `--json` prints `{ created, failed }` | ADMIN / MERCH_MANAGER |
|
|
128
129
|
| `ft merch products images <id> --image <path>…` | Replace a product's photos with local files (repairs a partial `create`) | ADMIN / MERCH_MANAGER |
|
|
129
130
|
| `ft merch products publish <id>` · `unpublish <id>` | Show / hide a product in the store (publishing needs the store setup done and an active variant) | ADMIN / MERCH_MANAGER |
|
|
130
131
|
| `ft api-keys create <name>` · `list` · `revoke <id>` | Self-service API keys (the secret is shown once, never stored) | ADMIN |
|
|
132
|
+
| `ft api <method> <path>` · `ft api --list [filter]` | Raw access to **any** operation of the B2B contract (`/api/v1`), including the ones without a command above. The route is checked against the committed contract before anything is sent; `-q name=value`, `-H 'Name: value'` (e.g. `Idempotency-Key`, `X-Customer-Session`), `-d <json\|@file>`, `--workspace`; every write asks for confirmation (`--yes` in scripts). Prints the JSON body | depends on the operation |
|
|
131
133
|
| `ft admin login` · `me` · `workspaces` · `users` · `plans` · `feature-flags` · `tokens` · `audit-log` | Superadmin, cross-tenant — needs a SUPER_ADMIN session, not an API key. Includes `admin workspaces plan <id>` (assisted plan assignment), `plan-show <id>` (current plan) and `delete <id>` (soft delete; suspend first) and `webTemplate` / `customDomain` on `update` | SUPER_ADMIN |
|
|
132
134
|
| `ft admin settlements list` · `get` · `upload` · `create` · `regenerate` · `attach` · `send` · `mark-paid` · `delete` | Organizer settlements across workspaces: create, send, mark as paid. See [`ft admin settlements`](#ft-admin-settlements) | SUPER_ADMIN |
|
|
133
135
|
| `ft admin crm campaigns` · `batches` · `events` · `options` · `quota` · `preview` · `launch` · `test-send` · `suppressions` · `organizations` · `people search` | Master CRM: email / WhatsApp campaigns to buyers across workspaces. See [`ft admin crm`](#ft-admin-crm) | SUPER_ADMIN |
|
|
@@ -368,7 +370,9 @@ FT_OPENAPI_URL=https://admin.appfreeticket.com/api/v1/openapi.json pnpm sync-ope
|
|
|
368
370
|
```
|
|
369
371
|
|
|
370
372
|
This downloads the spec, rewrites `openapi.json` (the diff becomes the explicit
|
|
371
|
-
contract between teams), and regenerates `src/client
|
|
373
|
+
contract between teams), and regenerates `src/client/` — including
|
|
374
|
+
`src/client/routes.gen.ts`, the operation table `ft api` validates against, so a
|
|
375
|
+
new endpoint is reachable through `ft api` the moment the contract is synced. If an `operationId`
|
|
372
376
|
disappears, TypeScript fails during compilation so the breaking change is visible
|
|
373
377
|
before merge.
|
|
374
378
|
|