@hardfin/cli 0.1.1-dev.77 → 0.1.1-dev.79

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 CHANGED
@@ -165,6 +165,11 @@ A negative amount is refused before it is sent, and so is a currency code the do
165
165
  list. Inside an element, a field with a fixed set of values, such as `billingFrequency=`, is
166
166
  checked the same way, and `monthly` is sent as `MONTHLY`.
167
167
 
168
+ A positional argument with a fixed set of values names them in help, and any other value is
169
+ refused before it is sent. `hardfin inventory by-location list` takes `all`, `bulk-items`,
170
+ `assets` or `assemblies`. A query parameter the document requires is marked required in help,
171
+ as a body field is, so `hardfin inventory lots list` without `--item-key` fails locally.
172
+
168
173
  Inside a `key=value` flag, `=` gives a value as you typed it and `:=` gives it as JSON.
169
174
 
170
175
  | You type | Is sent as |
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="69a10817-e39f-57d1-8273-c76a835baa09")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="54e7650f-cd82-5933-87ef-1054e825f0a7")}catch(e){}}();
4
4
  import { createRequire } from "node:module";
5
5
  import { z } from "zod";
6
6
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
@@ -115,7 +115,7 @@ function toRelease(of) {
115
115
  //#endregion
116
116
  //#region src/command/api-version.generated.ts
117
117
  /** API_VERSION is the version of the API document the commands were generated from. */
118
- const API_VERSION = "2026-10-22";
118
+ const API_VERSION = "2026-10-24";
119
119
  //#endregion
120
120
  //#region src/config/settings.ts
121
121
  /** The file a local build reads its overrides from, in the working directory. */
@@ -498,5 +498,5 @@ function writeCache(cache) {
498
498
  //#endregion
499
499
  export { Interrupted as C, ExpectedFailure as S, TimedOut as T, ConfigFailure as _, isShipped as a, toTelemetry as b, toOutdatedTo as c, toJSON as d, toLastFailureCode as f, CONFIG_FILE as g, writeFailure as h, toUpdateCheckRefusal as i, toStateDirectory as l, writeData as m, isReminderDue as n, toPackageDirectory as o, toText as p, toCheck as r, noteNotices as s, PACKAGE as t, isJSONOutput as u, toSettings as v, LockHeld as w, version$1 as x, API_VERSION as y };
500
500
 
501
- //# sourceMappingURL=check-8Ta7vSnU.js.map
502
- //# debugId=69a10817-e39f-57d1-8273-c76a835baa09
501
+ //# sourceMappingURL=check-BchCSL3T.js.map
502
+ //# debugId=54e7650f-cd82-5933-87ef-1054e825f0a7
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b343e726-5fb7-5910-a08a-b9c77c5a7691")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="603e8fbb-917f-5ed7-b3c3-6a815578ba3a")}catch(e){}}();
4
4
  import module from "node:module";
5
5
  //#region src/cli.ts
6
6
  module.enableCompileCache?.();
@@ -14,8 +14,8 @@ process.on("unhandledRejection", (error) => void toCrash(error));
14
14
  try {
15
15
  const answer = await toQuickAnswer(process.argv.slice(2));
16
16
  if (answer === void 0) {
17
- const { toCli, toParseExitCode, wasReportAttempted } = await import("./program-CTAOEcIl.js");
18
- const { startUpdateCheck, writeUpdateNotice } = await import("./notice-DWvcEHhw.js");
17
+ const { toCli, toParseExitCode, wasReportAttempted } = await import("./program-DjJf3Meg.js");
18
+ const { startUpdateCheck, writeUpdateNotice } = await import("./notice-NFwdPDiu.js");
19
19
  const pending = startUpdateCheck(process.argv.slice(2));
20
20
  try {
21
21
  await toCli().parseAsync(process.argv);
@@ -36,7 +36,7 @@ async function toCrash(error) {
36
36
  isCrashing = true;
37
37
  const isJSON = process.argv.includes("--json") || !process.stdout.isTTY;
38
38
  try {
39
- const { toReported, writeCrash } = await import("./program-CTAOEcIl.js");
39
+ const { toReported, writeCrash } = await import("./program-DjJf3Meg.js");
40
40
  writeCrash(error, isJSON);
41
41
  await toReported(error, isJSON, void 0, "fatal");
42
42
  } catch {
@@ -57,4 +57,4 @@ async function toQuickAnswer(args) {
57
57
  export {};
58
58
 
59
59
  //# sourceMappingURL=cli.js.map
60
- //# debugId=b343e726-5fb7-5910-a08a-b9c77c5a7691
60
+ //# debugId=603e8fbb-917f-5ed7-b3c3-6a815578ba3a