stepzen 0.9.39-beta.1 → 0.10.0-beta.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/README.md CHANGED
@@ -29,7 +29,7 @@ $ npm install -g stepzen
29
29
  $ stepzen COMMAND
30
30
  running command...
31
31
  $ stepzen (-v|--version|version)
32
- stepzen/0.9.39-beta.1 darwin-x64 node-v14.18.3
32
+ stepzen/0.10.0-beta.4 darwin-x64 node-v14.18.3
33
33
  $ stepzen --help [COMMAND]
34
34
  USAGE
35
35
  $ stepzen COMMAND
@@ -91,11 +91,18 @@ USAGE
91
91
  $ stepzen import SCHEMAS
92
92
 
93
93
  OPTIONS
94
- -h, --help show CLI help
95
- --dir=dir working directory
94
+ -h, --help show CLI help
95
+ --dir=dir working directory
96
+
97
+ --name=name subfolder inside the workspace folder to save the imported schema files, defaults to the
98
+ imported schema name
99
+
100
+ --prefix=prefix [curl] prefix to add every type in the generated schema.
101
+
102
+ --query-name=query-name [curl] property name to add to the Query type as a way to access the imported cURL endpoint.
96
103
 
97
- --name=name subfolder inside the schema folder to save the imported schema files, defaults to the imported schema
98
- name
104
+ --query-type=query-type [curl] name for the type returned by the cURL endpoint in the generated schema. The name
105
+ specified by --query-type is not prefixed by --prefix if both flags are present.
99
106
  ```
100
107
 
101
108
  ## `stepzen list TYPE`
@@ -46,7 +46,7 @@ class Import extends command_1.Command {
46
46
  }
47
47
  this.log(chalk.yellow(`NOTE: ${chalk.bold('stepzen import curl')} is currently in ${chalk.bold('beta')}`));
48
48
  this.log(chalk.yellow('If you encounter any issues with it please make sure are using the ' +
49
- 'latest version of stepzen CLI before reporting them to StepZen.'));
49
+ 'latest version of StepZen CLI before reporting them to StepZen.'));
50
50
  // LATER: introduce a generic graphqlize() API taking in schema as the first arg
51
51
  argv.shift(); // remove 'curl' and pass everything else further
52
52
  cli_ux_1.cli.action.start('Starting');
@@ -54,6 +54,9 @@ class Import extends command_1.Command {
54
54
  argv,
55
55
  name: flags.name,
56
56
  source: workspace.schema,
57
+ queryName: flags['query-name'],
58
+ rootType: flags['query-type'],
59
+ typePrefix: flags.prefix,
57
60
  });
58
61
  cli_ux_1.cli.action.stop();
59
62
  if ('error' in resultOrError) {
@@ -65,6 +68,12 @@ class Import extends command_1.Command {
65
68
  result = resultOrError.outPath;
66
69
  }
67
70
  else {
71
+ ;
72
+ ['prefix', 'query-type', 'query-name'].forEach(flag => {
73
+ if (flag in flags) {
74
+ this.log(chalk.gray(`The ${chalk.bold(`--${flag}`)} flag only applies when importing ${chalk.bold('curl')}. It will be ignored now.`));
75
+ }
76
+ });
68
77
  // Make sure the user has latest Generator Schema
69
78
  await deploy_1.default.run([
70
79
  constants_1.STEPZEN_GENERATOR_ENGINES_ENDPOINT,
@@ -94,9 +103,20 @@ Import.flags = {
94
103
  help: command_1.flags.help({ char: 'h' }),
95
104
  silent: command_1.flags.boolean({ hidden: true }),
96
105
  name: command_1.flags.string({
97
- description: 'subfolder inside the schema folder to save the imported' +
106
+ description: 'subfolder inside the workspace folder to save the imported' +
98
107
  ' schema files, defaults to the imported schema name',
99
108
  }),
109
+ prefix: command_1.flags.string({
110
+ description: '[curl] prefix to add every type in the generated schema.',
111
+ }),
112
+ 'query-name': command_1.flags.string({
113
+ description: '[curl] property name to add to the Query type as a way to' +
114
+ ' access the imported cURL endpoint.',
115
+ }),
116
+ 'query-type': command_1.flags.string({
117
+ description: '[curl] name for the type returned by the cURL endpoint in the ' +
118
+ `generated schema. The name specified by ${chalk.bold('--query-type')} is not prefixed by ${chalk.bold('--prefix')} if both flags are present.`,
119
+ }),
100
120
  };
101
121
  Import.args = [
102
122
  {
@@ -1,8 +1,16 @@
1
- export declare const curl2sdl: ({ argv, name, source, }: {
1
+ export declare type Curl2SdlOptions = {
2
2
  argv: readonly string[];
3
3
  name: string;
4
4
  source: string;
5
- }) => Promise<{
5
+ queryName?: string;
6
+ rootType?: string;
7
+ typePrefix?: string;
8
+ };
9
+ export declare type HeaderInput = {
10
+ name: string;
11
+ value: string;
12
+ };
13
+ export declare const curl2sdl: ({ argv, name, source, queryName, rootType, typePrefix, }: Curl2SdlOptions) => Promise<{
6
14
  error: string;
7
15
  } | {
8
16
  outPath: string;
@@ -2,31 +2,49 @@
2
2
  // Copyright (c) 2020,2021,2022, StepZen, Inc.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.curl2sdl = void 0;
5
+ const errors_1 = require("@oclif/errors");
5
6
  const fs = require("fs-extra");
6
7
  const os = require("os");
7
8
  const path = require("path");
8
9
  const node_fetch_1 = require("node-fetch");
9
10
  const debug = require("debug");
10
11
  const prettier = require("prettier");
11
- const errors_1 = require("@oclif/errors");
12
+ const transpiler_1 = require("@stepzen/transpiler");
13
+ const curl_parser_1 = require("../shared/curl-parser");
12
14
  const constants_1 = require("../shared/constants");
13
15
  const errors_2 = require("../shared/errors");
14
- const transpiler_1 = require("@stepzen/transpiler");
15
- exports.curl2sdl = async ({ argv, name, source, }) => {
16
+ exports.curl2sdl = async ({ argv, name, source, queryName, rootType, typePrefix, }) => {
16
17
  let json;
18
+ const curlArgs = curl_parser_1.parseCurlArgv(argv);
19
+ if ('error' in curlArgs) {
20
+ throw new errors_1.CLIError(curlArgs.error);
21
+ }
17
22
  try {
18
23
  const url = `${constants_1.STEPZEN_JSON2SDL_SERVER_URL}/api/graphql`;
19
- const headers = {
20
- 'Content-Type': 'application/json',
21
- };
22
- const query = `query ($command: String!) {
23
- getSDLFromCurl(command: $command, rootType: "Root") {
24
+ const query = `query (
25
+ $command: String!
26
+ $queryName: String
27
+ $rootType: String
28
+ $typePrefix: String
29
+ $headers: [HeaderInput!]
30
+ ) {
31
+ getSDLFromCurl(
32
+ command: $command
33
+ queryName: $queryName
34
+ rootType: $rootType
35
+ typePrefix: $typePrefix
36
+ headers: $headers
37
+ ) {
24
38
  sdl
25
39
  config
26
40
  }
27
41
  }`;
28
42
  const variables = {
29
- command: argv.join(' '),
43
+ command: curlArgs.url,
44
+ queryName: queryName || null,
45
+ rootType: rootType || null,
46
+ typePrefix: typePrefix || null,
47
+ headers: curlArgs.headers.length > 0 ? curlArgs.headers : null,
30
48
  };
31
49
  debug('stepzen:curl2sdl')(url);
32
50
  debug('stepzen:curl2sdl')(query);
@@ -38,7 +56,7 @@ exports.curl2sdl = async ({ argv, name, source, }) => {
38
56
  debug('stepzen:curl2sdl')(payload);
39
57
  const response = await node_fetch_1.default(url, {
40
58
  method: 'POST',
41
- headers,
59
+ headers: { 'Content-Type': 'application/json' },
42
60
  body: JSON.stringify({
43
61
  query,
44
62
  variables,
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Parse a header string according to https://curl.se/docs/manpage.html#-H
3
+ * and https://datatracker.ietf.org/doc/html/rfc2616#section-4.2
4
+ *
5
+ * @param {*} header a curl header string, e.g. `"api-key: asfdasdfad"`
6
+ * @returns {*} a name/value record or
7
+ * `null` for the `Header:` notation that means "remove this header" in
8
+ * the cURL spec or a error object if cannot parse the string.
9
+ */
10
+ export declare const parseCurlHeaderString: (header: string) => {
11
+ name: string;
12
+ value: string;
13
+ } | null | {
14
+ error: string;
15
+ };
16
+ export interface CurlArguments {
17
+ url: string;
18
+ headers: Array<{
19
+ name: string;
20
+ value: string;
21
+ }>;
22
+ }
23
+ export interface ParseError {
24
+ error: string;
25
+ }
26
+ /**
27
+ * Parse a curl command line arguments array to a JSON structure consumable by
28
+ * the StepZen introspection service backend.
29
+ *
30
+ * @param {*} argv an array of curl arguments `[
31
+ * '-H',
32
+ * 'api-key: my-secret-key',
33
+ * '--header',
34
+ * 'x-custom-options: my-custom-option-2',
35
+ * 'https://test.stepzen.net/version',
36
+ * '--dir',
37
+ * '/my-app'
38
+ * ]`
39
+ * @returns {*} a structured object with the curl arguments
40
+ */
41
+ export declare const parseCurlArgv: (argv: readonly string[]) => CurlArguments | ParseError;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ // Copyright (c) 2020,2021,2022, StepZen, Inc.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.parseCurlArgv = exports.parseCurlHeaderString = void 0;
5
+ // Based on the existing curl flags at https://curl.se/docs/manpage.html
6
+ const curlFlagRegex = /^(-[a-zA-Z0-9.:#])|(--[a-zA-Z0-9.-]+)$/;
7
+ // Based on the definition of a `token` at
8
+ // https://datatracker.ietf.org/doc/html/rfc2616#page-17
9
+ const httpHeaderRegex = /^(?<name>[a-zA-Z0-9!#$%&'*+,-.^_`|~]+)\s*:(?<value>.*)$/;
10
+ /**
11
+ * Parse a header string according to https://curl.se/docs/manpage.html#-H
12
+ * and https://datatracker.ietf.org/doc/html/rfc2616#section-4.2
13
+ *
14
+ * @param {*} header a curl header string, e.g. `"api-key: asfdasdfad"`
15
+ * @returns {*} a name/value record or
16
+ * `null` for the `Header:` notation that means "remove this header" in
17
+ * the cURL spec or a error object if cannot parse the string.
18
+ */
19
+ exports.parseCurlHeaderString = (header) => {
20
+ const trimmed = header.trim();
21
+ // Check if it's a `Header:` case
22
+ if (trimmed.indexOf(':') === trimmed.length - 1) {
23
+ // the user intent was to _remove_ this header
24
+ return null;
25
+ }
26
+ // Check if it's a `Header;` case
27
+ if (trimmed.indexOf(';') === trimmed.length - 1) {
28
+ return {
29
+ name: trimmed.substring(0, trimmed.length - 1).trim(),
30
+ value: '',
31
+ };
32
+ }
33
+ const match = trimmed.match(httpHeaderRegex);
34
+ if (!match || !match.groups || !match.groups.name || !match.groups.value) {
35
+ return {
36
+ error: `Unexpected header syntax in "${header}". ` +
37
+ `Expected "[name]: [value]", "[name];" or "[name]:"`,
38
+ };
39
+ }
40
+ return {
41
+ name: match.groups.name,
42
+ value: match.groups.value.trim(),
43
+ };
44
+ };
45
+ const isAFlagArg = (arg) => curlFlagRegex.test(arg);
46
+ const isAHeaderFlag = (flag) => ['-H', '--header'].includes(flag);
47
+ /**
48
+ * Parse a curl command line arguments array to a JSON structure consumable by
49
+ * the StepZen introspection service backend.
50
+ *
51
+ * @param {*} argv an array of curl arguments `[
52
+ * '-H',
53
+ * 'api-key: my-secret-key',
54
+ * '--header',
55
+ * 'x-custom-options: my-custom-option-2',
56
+ * 'https://test.stepzen.net/version',
57
+ * '--dir',
58
+ * '/my-app'
59
+ * ]`
60
+ * @returns {*} a structured object with the curl arguments
61
+ */
62
+ exports.parseCurlArgv = (argv) => {
63
+ const result = {
64
+ url: '',
65
+ headers: [],
66
+ };
67
+ for (let i = 0; i < argv.length; i++) {
68
+ if (isAFlagArg(argv[i])) {
69
+ if (isAHeaderFlag(argv[i])) {
70
+ if (i + 1 === argv.length) {
71
+ return {
72
+ error: `The '${argv[i]}' curl flag requires a value`,
73
+ };
74
+ }
75
+ const headerOrError = exports.parseCurlHeaderString(argv[i + 1]);
76
+ if (headerOrError && 'error' in headerOrError) {
77
+ return headerOrError; // error
78
+ }
79
+ // A `null` from parseCurlHeaderString() means a header should NOT be
80
+ // sent. This is not supported by zenserv / the introspection service
81
+ // so the CLI simply omits such headers
82
+ if (headerOrError) {
83
+ result.headers.push(headerOrError); // header
84
+ }
85
+ i += 1; // skip over the flag value
86
+ }
87
+ else {
88
+ return {
89
+ error: `The '${argv[i]}' curl flag is not currently supported by StepZen CLI`,
90
+ };
91
+ }
92
+ }
93
+ else if (result.url) {
94
+ return {
95
+ error: `Multiple URLs are not currently supported by StepZen CLI (${argv[i]})`,
96
+ };
97
+ }
98
+ else {
99
+ result.url = argv[i];
100
+ }
101
+ }
102
+ if (!result.url) {
103
+ return {
104
+ error: 'curl: a URL is required',
105
+ };
106
+ }
107
+ return result;
108
+ };
@@ -1 +1 @@
1
- {"version":"0.9.39-beta.1","commands":{"deploy":{"id":"deploy","description":"deploy to stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"configurationsets":{"name":"configurationsets","type":"option","description":"Configurationsets to use","default":""},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"schema":{"name":"schema","type":"option","description":"Schema to use","required":true},"silent":{"name":"silent","type":"boolean","allowNo":false}},"args":[{"name":"destination","description":"destination","required":true}]},"import":{"id":"import","description":"import schemas from stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"working directory"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"silent":{"name":"silent","type":"boolean","hidden":true,"allowNo":false},"name":{"name":"name","type":"option","description":"subfolder inside the schema folder to save the imported schema files, defaults to the imported schema name"}},"args":[{"name":"schemas","required":true}]},"init":{"id":"init","description":"stepzen init","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"endpoint":{"name":"endpoint","type":"option","hidden":true},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"yes":{"name":"yes","type":"boolean","hidden":true,"allowNo":false}},"args":[{"name":"directory","hidden":true}]},"lint":{"id":"lint","description":"stepzen lint","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"dir":{"name":"dir","type":"option","hidden":true},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"list":{"id":"list","description":"list your items","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"type","description":"type","required":true,"options":["configurationsets","schemas"]}]},"login":{"id":"login","description":"log in to stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"account":{"name":"account","type":"option","char":"a","hidden":true},"adminkey":{"name":"adminkey","type":"option","char":"k","hidden":true},"config":{"name":"config","type":"option","hidden":true},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"logout":{"id":"logout","description":"log out of stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"start":{"id":"start","description":"upload and deploy your schema","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"working directory"},"endpoint":{"name":"endpoint","type":"option","description":"Override workspace endpoint"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"no-console":{"name":"no-console","type":"boolean","hidden":true,"allowNo":false},"no-dashboard":{"name":"no-dashboard","type":"boolean","hidden":true,"allowNo":false},"no-init":{"name":"no-init","type":"boolean","hidden":true,"allowNo":false},"no-server":{"name":"no-server","type":"boolean","hidden":true,"allowNo":false},"no-validate":{"name":"no-validate","type":"boolean","hidden":true,"allowNo":false},"no-watcher":{"name":"no-watcher","type":"boolean","hidden":true,"allowNo":false},"port":{"name":"port","type":"option","default":5001}},"args":[]},"transpile":{"id":"transpile","description":"transpile a graphql schema","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"config":{"name":"config","type":"option","hidden":true},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"hide-output":{"name":"hide-output","type":"boolean","hidden":true,"allowNo":false},"inspect":{"name":"inspect","type":"boolean","char":"i","hidden":true,"allowNo":false},"inspect-after":{"name":"inspect-after","type":"boolean","hidden":true,"allowNo":false},"output-configuration":{"name":"output-configuration","type":"boolean","allowNo":false},"silent":{"name":"silent","type":"boolean","allowNo":false}},"args":[{"name":"folder","required":true}]},"upload":{"id":"upload","description":"upload to stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"A directory to upload"},"file":{"name":"file","type":"option","description":"A file to upload"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"silent":{"name":"silent","type":"boolean","allowNo":false}},"args":[{"name":"type","description":"type","required":true,"options":["configurationset","schema"]},{"name":"destination","description":"destination","required":true}]},"validate":{"id":"validate","description":"validate a graphql schema","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"folder","required":true}]},"whoami":{"id":"whoami","description":"stepzen whoami","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"showkeys":{"name":"showkeys","type":"boolean","allowNo":false},"apikey":{"name":"apikey","type":"boolean","allowNo":false},"adminkey":{"name":"adminkey","type":"boolean","allowNo":false}},"args":[]}}}
1
+ {"version":"0.10.0-beta.4","commands":{"deploy":{"id":"deploy","description":"deploy to stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"configurationsets":{"name":"configurationsets","type":"option","description":"Configurationsets to use","default":""},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"schema":{"name":"schema","type":"option","description":"Schema to use","required":true},"silent":{"name":"silent","type":"boolean","allowNo":false}},"args":[{"name":"destination","description":"destination","required":true}]},"import":{"id":"import","description":"import schemas from stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"working directory"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"silent":{"name":"silent","type":"boolean","hidden":true,"allowNo":false},"name":{"name":"name","type":"option","description":"subfolder inside the workspace folder to save the imported schema files, defaults to the imported schema name"},"prefix":{"name":"prefix","type":"option","description":"[curl] prefix to add every type in the generated schema."},"query-name":{"name":"query-name","type":"option","description":"[curl] property name to add to the Query type as a way to access the imported cURL endpoint."},"query-type":{"name":"query-type","type":"option","description":"[curl] name for the type returned by the cURL endpoint in the generated schema. The name specified by --query-type is not prefixed by --prefix if both flags are present."}},"args":[{"name":"schemas","required":true}]},"init":{"id":"init","description":"stepzen init","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"endpoint":{"name":"endpoint","type":"option","hidden":true},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"yes":{"name":"yes","type":"boolean","hidden":true,"allowNo":false}},"args":[{"name":"directory","hidden":true}]},"lint":{"id":"lint","description":"stepzen lint","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"dir":{"name":"dir","type":"option","hidden":true},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"list":{"id":"list","description":"list your items","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"type","description":"type","required":true,"options":["configurationsets","schemas"]}]},"login":{"id":"login","description":"log in to stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"account":{"name":"account","type":"option","char":"a","hidden":true},"adminkey":{"name":"adminkey","type":"option","char":"k","hidden":true},"config":{"name":"config","type":"option","hidden":true},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"logout":{"id":"logout","description":"log out of stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"start":{"id":"start","description":"upload and deploy your schema","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"working directory"},"endpoint":{"name":"endpoint","type":"option","description":"Override workspace endpoint"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"no-console":{"name":"no-console","type":"boolean","hidden":true,"allowNo":false},"no-dashboard":{"name":"no-dashboard","type":"boolean","hidden":true,"allowNo":false},"no-init":{"name":"no-init","type":"boolean","hidden":true,"allowNo":false},"no-server":{"name":"no-server","type":"boolean","hidden":true,"allowNo":false},"no-validate":{"name":"no-validate","type":"boolean","hidden":true,"allowNo":false},"no-watcher":{"name":"no-watcher","type":"boolean","hidden":true,"allowNo":false},"port":{"name":"port","type":"option","default":5001}},"args":[]},"transpile":{"id":"transpile","description":"transpile a graphql schema","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"config":{"name":"config","type":"option","hidden":true},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"hide-output":{"name":"hide-output","type":"boolean","hidden":true,"allowNo":false},"inspect":{"name":"inspect","type":"boolean","char":"i","hidden":true,"allowNo":false},"inspect-after":{"name":"inspect-after","type":"boolean","hidden":true,"allowNo":false},"output-configuration":{"name":"output-configuration","type":"boolean","allowNo":false},"silent":{"name":"silent","type":"boolean","allowNo":false}},"args":[{"name":"folder","required":true}]},"upload":{"id":"upload","description":"upload to stepzen","pluginName":"stepzen","pluginType":"core","aliases":[],"flags":{"dir":{"name":"dir","type":"option","description":"A directory to upload"},"file":{"name":"file","type":"option","description":"A file to upload"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"silent":{"name":"silent","type":"boolean","allowNo":false}},"args":[{"name":"type","description":"type","required":true,"options":["configurationset","schema"]},{"name":"destination","description":"destination","required":true}]},"validate":{"id":"validate","description":"validate a graphql schema","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"folder","required":true}]},"whoami":{"id":"whoami","description":"stepzen whoami","pluginName":"stepzen","pluginType":"core","hidden":true,"aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"showkeys":{"name":"showkeys","type":"boolean","allowNo":false},"apikey":{"name":"apikey","type":"boolean","allowNo":false},"adminkey":{"name":"adminkey","type":"boolean","allowNo":false}},"args":[]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stepzen",
3
3
  "description": "The StepZen CLI",
4
- "version": "0.9.39-beta.1",
4
+ "version": "0.10.0-beta.4",
5
5
  "license": "MIT",
6
6
  "author": "Darren Waddell <darren@stepzen.com>",
7
7
  "contributors": [
@@ -30,9 +30,9 @@
30
30
  "@oclif/config": "^1.18.3",
31
31
  "@oclif/errors": "1.3.5",
32
32
  "@oclif/plugin-help": "^5.1.11",
33
- "@stepzen/dashboard": "0.1.36",
34
- "@stepzen/sdk": "0.9.44",
35
- "@stepzen/transpiler": "0.0.36",
33
+ "@stepzen/dashboard": "0.1.37",
34
+ "@stepzen/sdk": "0.9.46",
35
+ "@stepzen/transpiler": "0.0.38",
36
36
  "chalk": "^4.1.1",
37
37
  "chokidar": "^3.5.2",
38
38
  "cli-ux": "^6.0.9",