@invinite-org/invinite-data-cli 0.9.1 → 0.11.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.
@@ -1,6 +1,11 @@
1
1
  /** A parameter's flag: `company_name` → `company-name` (shown as `--company-name`). */
2
2
  export declare function flagName(parameterName: string): string;
3
- /** Long flags `invd` owns itself: the program's globals, commander's own, and the body flags of a write. */
3
+ /** Long flags `invd` owns itself on every command: the program's globals and commander's own. */
4
4
  export declare const RESERVED_FLAGS: readonly string[];
5
+ /**
6
+ * The JSON-body flags `defineOperationCommand` adds to an operation WITH a request body only: a body-less read may
7
+ * name a parameter `body` (`GET /v1/news/{id}?body=html` → `invd news get --body html`).
8
+ */
9
+ export declare const BODY_FLAGS: readonly string[];
5
10
  /** Short flags commander owns (`-V`, `-h`). */
6
11
  export declare const RESERVED_ALIASES: readonly string[];
@@ -2,8 +2,13 @@
2
2
  export function flagName(parameterName) {
3
3
  return parameterName.replace(/_/g, '-');
4
4
  }
5
- /** Long flags `invd` owns itself: the program's globals, commander's own, and the body flags of a write. */
6
- export const RESERVED_FLAGS = ['json', 'all', 'show-cost', 'version', 'help', 'body', 'body-file'];
5
+ /** Long flags `invd` owns itself on every command: the program's globals and commander's own. */
6
+ export const RESERVED_FLAGS = ['json', 'all', 'show-cost', 'version', 'help'];
7
+ /**
8
+ * The JSON-body flags `defineOperationCommand` adds to an operation WITH a request body only: a body-less read may
9
+ * name a parameter `body` (`GET /v1/news/{id}?body=html` → `invd news get --body html`).
10
+ */
11
+ export const BODY_FLAGS = ['body', 'body-file'];
7
12
  /** Short flags commander owns (`-V`, `-h`). */
8
13
  export const RESERVED_ALIASES = ['V', 'h'];
9
14
  //# sourceMappingURL=spec-flags.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spec-flags.js","sourceRoot":"","sources":["../../src/spec-flags.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,UAAU,QAAQ,CAAC,aAAqB;IAC5C,OAAO,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC1C,CAAC;AAED,4GAA4G;AAC5G,MAAM,CAAC,MAAM,cAAc,GAAsB,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;AAEtH,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"spec-flags.js","sourceRoot":"","sources":["../../src/spec-flags.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,UAAU,QAAQ,CAAC,aAAqB;IAC5C,OAAO,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC1C,CAAC;AAED,iGAAiG;AACjG,MAAM,CAAC,MAAM,cAAc,GAAsB,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AAEjG;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAEnE,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invinite-org/invinite-data-cli",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "description": "CLI for the Invinite Data API",
6
6
  "publishConfig": {