@roarkanalytics/cli 0.1.0 → 0.2.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 +4 -4
- package/commands.js +24 -4
- package/completions.js +4 -4
- package/man/roark-config-apply.1 +23 -34
- package/man/roark-config-diff.1 +21 -38
- package/man/roark-metric-definition-create.1 +3 -3
- package/man/roark-simulation-persona-create.1 +3 -0
- package/man/roark-simulation-persona-update.1 +3 -0
- package/man/roark.1 +2 -2
- package/npm-shrinkwrap.json +54 -0
- package/package.json +4 -3
- package/runtime/commands/config-as-code.d.ts +20 -0
- package/runtime/commands/config-as-code.js +131 -0
- package/runtime/config-bundle.d.ts +21 -0
- package/runtime/config-bundle.js +95 -0
- package/runtime/program.js +9 -1
- package/version.d.ts +1 -1
- package/version.js +8 -5
package/README.md
CHANGED
|
@@ -132,10 +132,10 @@ roark completion fish | source
|
|
|
132
132
|
|
|
133
133
|
### config
|
|
134
134
|
|
|
135
|
-
| Command
|
|
136
|
-
|
|
|
137
|
-
| `roark config apply
|
|
138
|
-
| `roark config diff
|
|
135
|
+
| Command | Description |
|
|
136
|
+
| -------------------------- | ------------------------------------------------------------------------------------- |
|
|
137
|
+
| `roark config apply [dir]` | Reconcile the project to a config directory (or bundle). Previews and confirms first. |
|
|
138
|
+
| `roark config diff [dir]` | Preview the changes a config directory (or bundle) would make. No writes. |
|
|
139
139
|
|
|
140
140
|
### customer-flow
|
|
141
141
|
|
package/commands.js
CHANGED
|
@@ -851,7 +851,7 @@ exports.COMMANDS = [
|
|
|
851
851
|
httpMethod: 'post',
|
|
852
852
|
httpPath: '/v1/config/diff',
|
|
853
853
|
summary: 'Diff a config bundle',
|
|
854
|
-
description: 'Dry run
|
|
854
|
+
description: 'Dry run for a config-as-code apply: returns the projected changes (create / update / delete) for the submitted bundle without writing anything. Submit the full desired set of resources; identity is by name — no ids in the bundle. Run this before apply to preview what would change.',
|
|
855
855
|
positionals: [],
|
|
856
856
|
flags: [
|
|
857
857
|
{
|
|
@@ -1756,15 +1756,15 @@ exports.COMMANDS = [
|
|
|
1756
1756
|
bodyVariants: [
|
|
1757
1757
|
{
|
|
1758
1758
|
name: 'PromptMetricInput',
|
|
1759
|
-
required: ['calculationType', 'name', 'outputType'
|
|
1759
|
+
required: ['calculationType', 'name', 'outputType'],
|
|
1760
1760
|
},
|
|
1761
1761
|
{
|
|
1762
1762
|
name: 'FormulaMetricInput',
|
|
1763
|
-
required: ['calculationType', 'name', 'outputType', 'formula', 'sources'
|
|
1763
|
+
required: ['calculationType', 'name', 'outputType', 'formula', 'sources'],
|
|
1764
1764
|
},
|
|
1765
1765
|
{
|
|
1766
1766
|
name: 'PatternMetricInput',
|
|
1767
|
-
required: ['calculationType', 'name', 'operation', 'outcome'
|
|
1767
|
+
required: ['calculationType', 'name', 'operation', 'outcome'],
|
|
1768
1768
|
},
|
|
1769
1769
|
],
|
|
1770
1770
|
acceptsBody: true,
|
|
@@ -2250,6 +2250,16 @@ exports.COMMANDS = [
|
|
|
2250
2250
|
],
|
|
2251
2251
|
repeatable: false,
|
|
2252
2252
|
},
|
|
2253
|
+
{
|
|
2254
|
+
name: 'age',
|
|
2255
|
+
path: ['age'],
|
|
2256
|
+
location: 'body',
|
|
2257
|
+
required: false,
|
|
2258
|
+
description: "How old the caller sounds and behaves. Only ages the persona's accent has a voice for are accepted; defaults to ADULT, which every accent supports.",
|
|
2259
|
+
valueKind: 'string',
|
|
2260
|
+
enumValues: ['CHILD', 'TEENAGER', 'ADULT', 'ELDERLY'],
|
|
2261
|
+
repeatable: false,
|
|
2262
|
+
},
|
|
2253
2263
|
{
|
|
2254
2264
|
name: 'gender',
|
|
2255
2265
|
path: ['gender'],
|
|
@@ -2621,6 +2631,16 @@ exports.COMMANDS = [
|
|
|
2621
2631
|
],
|
|
2622
2632
|
repeatable: false,
|
|
2623
2633
|
},
|
|
2634
|
+
{
|
|
2635
|
+
name: 'age',
|
|
2636
|
+
path: ['age'],
|
|
2637
|
+
location: 'body',
|
|
2638
|
+
required: false,
|
|
2639
|
+
description: "How old the caller sounds and behaves. Only ages the persona's accent has a voice for are accepted; defaults to ADULT, which every accent supports.",
|
|
2640
|
+
valueKind: 'string',
|
|
2641
|
+
enumValues: ['CHILD', 'TEENAGER', 'ADULT', 'ELDERLY'],
|
|
2642
|
+
repeatable: false,
|
|
2643
|
+
},
|
|
2624
2644
|
{
|
|
2625
2645
|
name: 'gender',
|
|
2626
2646
|
path: ['gender'],
|