@elevasis/sdk 0.8.3 → 0.8.4
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/cli.cjs +5 -5
- package/dist/templates.js +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -43883,7 +43883,7 @@ function wrapAction(commandName, fn) {
|
|
|
43883
43883
|
// package.json
|
|
43884
43884
|
var package_default = {
|
|
43885
43885
|
name: "@elevasis/sdk",
|
|
43886
|
-
version: "0.8.
|
|
43886
|
+
version: "0.8.4",
|
|
43887
43887
|
description: "SDK for building Elevasis organization resources",
|
|
43888
43888
|
type: "module",
|
|
43889
43889
|
bin: {
|
|
@@ -45633,7 +45633,7 @@ Use \`pnpm exec elevasis-sdk\` for runtime commands (resolves the locally instal
|
|
|
45633
45633
|
- \`pnpm exec elevasis-sdk exec <resource-id> --input '{...}'\` -- run a resource synchronously
|
|
45634
45634
|
- \`pnpm exec elevasis-sdk exec <resource-id> --input '{...}' --async\` -- run async, returns execution ID
|
|
45635
45635
|
- \`pnpm exec elevasis-sdk execution <resource-id> <execution-id>\` -- inspect execution detail
|
|
45636
|
-
- \`pnpm exec elevasis-sdk rename <old-id> --to <new-id> [--execute]\` -- rename a resource ID across platform tables (dry run by default)
|
|
45636
|
+
- \`pnpm exec elevasis-sdk rename <old-id> --to <new-id> [--execute] [--prod]\` -- rename a resource ID across platform tables (dry run by default)
|
|
45637
45637
|
|
|
45638
45638
|
Organization is derived from your API key -- no org prefix needed in the resource ID.
|
|
45639
45639
|
For full CLI reference: \`reference/cli.mdx\`
|
|
@@ -48441,9 +48441,9 @@ function registerCredsCommand(program3) {
|
|
|
48441
48441
|
|
|
48442
48442
|
// src/cli/commands/rename.ts
|
|
48443
48443
|
function registerRenameCommand(program3) {
|
|
48444
|
-
program3.command("rename <oldResourceId>").description("Rename a resource ID across all platform tables (dry run by default)").requiredOption("--to <newResourceId>", "New resource ID").option("--execute", "Apply the rename (default: dry run preview only)").option("--api-url <url>", "API URL").action(
|
|
48444
|
+
program3.command("rename <oldResourceId>").description("Rename a resource ID across all platform tables (dry run by default)").requiredOption("--to <newResourceId>", "New resource ID").option("--execute", "Apply the rename (default: dry run preview only)").option("--prod", "Target production (overrides NODE_ENV=development)").option("--api-url <url>", "API URL").action(
|
|
48445
48445
|
wrapAction("rename", async (oldResourceId, options2) => {
|
|
48446
|
-
const apiUrl = resolveApiUrl(options2.apiUrl);
|
|
48446
|
+
const apiUrl = resolveApiUrl(options2.apiUrl, options2.prod);
|
|
48447
48447
|
const dryRun = !options2.execute;
|
|
48448
48448
|
const spinner = ora(dryRun ? "Checking affected rows..." : "Renaming resource...").start();
|
|
48449
48449
|
const data = await apiPost(
|
|
@@ -48492,7 +48492,7 @@ Commands:
|
|
|
48492
48492
|
elevasis-sdk executions <resourceId> List execution history
|
|
48493
48493
|
elevasis-sdk execution <resourceId> <id> Get execution details
|
|
48494
48494
|
elevasis-sdk deployments List deployments
|
|
48495
|
-
elevasis-sdk rename <id> --to <newId>
|
|
48495
|
+
elevasis-sdk rename <id> --to <newId> [--prod] Rename resource across platform tables
|
|
48496
48496
|
elevasis-sdk update Update workspace scaffold to latest template
|
|
48497
48497
|
elevasis-sdk init [directory] Scaffold a new workspace
|
|
48498
48498
|
|
package/dist/templates.js
CHANGED
|
@@ -274,7 +274,7 @@ Use \`pnpm exec elevasis-sdk\` for runtime commands (resolves the locally instal
|
|
|
274
274
|
- \`pnpm exec elevasis-sdk exec <resource-id> --input '{...}'\` -- run a resource synchronously
|
|
275
275
|
- \`pnpm exec elevasis-sdk exec <resource-id> --input '{...}' --async\` -- run async, returns execution ID
|
|
276
276
|
- \`pnpm exec elevasis-sdk execution <resource-id> <execution-id>\` -- inspect execution detail
|
|
277
|
-
- \`pnpm exec elevasis-sdk rename <old-id> --to <new-id> [--execute]\` -- rename a resource ID across platform tables (dry run by default)
|
|
277
|
+
- \`pnpm exec elevasis-sdk rename <old-id> --to <new-id> [--execute] [--prod]\` -- rename a resource ID across platform tables (dry run by default)
|
|
278
278
|
|
|
279
279
|
Organization is derived from your API key -- no org prefix needed in the resource ID.
|
|
280
280
|
For full CLI reference: \`reference/cli.mdx\`
|