@shuffl/cli 0.6.1 → 0.6.3

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
@@ -71,3 +71,7 @@ shuffl logout --company
71
71
  Or set `SHUFFL_COMPANY_KEY` and `SHUFFL_BASE_URL`. The company key is saved in `company.json` next to `config.json`, and only `shuffl company` commands send it; `shuffl logout --company` removes it. Each command's `--help` names its company permission. See [company keys](https://shuffl-rebuild.vercel.app/docs/api-permissions#company-keys).
72
72
 
73
73
  Full guide: [Use the Shuffl CLI](https://shuffl-rebuild.vercel.app/docs/cli).
74
+
75
+ ## License
76
+
77
+ MIT © Shuffl LLC. See [LICENSE](./LICENSE).
@@ -2365,6 +2365,10 @@ export const commands = [
2365
2365
  const: 'groups.automationChoices',
2366
2366
  type: 'string',
2367
2367
  },
2368
+ {
2369
+ const: 'groups.automationInsights',
2370
+ type: 'string',
2371
+ },
2368
2372
  {
2369
2373
  const: 'groups.automationRuns',
2370
2374
  type: 'string',
@@ -4215,6 +4219,40 @@ export const commands = [
4215
4219
  scope: 'users:read',
4216
4220
  summary: 'The Pulse questions, badges and Shuffl lists a group automation can ask, give or add people to',
4217
4221
  },
4222
+ {
4223
+ access: 'read',
4224
+ command: ['groups', 'automation-insights'],
4225
+ input: {
4226
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
4227
+ additionalProperties: false,
4228
+ properties: {
4229
+ days: {
4230
+ anyOf: [
4231
+ {
4232
+ const: 30,
4233
+ type: 'number',
4234
+ },
4235
+ {
4236
+ const: 90,
4237
+ type: 'number',
4238
+ },
4239
+ {
4240
+ const: 180,
4241
+ type: 'number',
4242
+ },
4243
+ ],
4244
+ },
4245
+ groupId: {
4246
+ type: 'string',
4247
+ },
4248
+ },
4249
+ type: 'object',
4250
+ },
4251
+ path: ['groups', 'automationInsights'],
4252
+ permission: 'groups.automationInsights',
4253
+ scope: 'users:read',
4254
+ summary: 'Group automation runs over the last `days` (30, 90 or 180) against the period before: done, skipped and failed, people reached, by week and kind, the top reasons a run did nothing, runs still scheduled and automations on; `groupId` narrows it',
4255
+ },
4218
4256
  {
4219
4257
  access: 'read',
4220
4258
  command: ['groups', 'automation-runs'],
package/dist/index.js CHANGED
@@ -111,7 +111,7 @@ export async function runCli(args, io = {
111
111
  const configDirectory = io.env.SHUFFL_CONFIG_DIR ??
112
112
  join(io.env.XDG_CONFIG_HOME ?? join(homedir(), '.config'), 'shuffl');
113
113
  const configFile = join(configDirectory, 'config.json');
114
- // #1692: a company key is saved apart from the workspace key, and only
114
+ // A company key is saved apart from the workspace key, and only
115
115
  // `shuffl company` commands send it.
116
116
  const companyFile = join(configDirectory, 'company.json');
117
117
  if (flags.version && !positional.length) {
package/dist/types.d.ts CHANGED
@@ -13,6 +13,6 @@ export interface CommandDefinition {
13
13
  summary: string;
14
14
  scope: string | null;
15
15
  input: JsonSchema | null;
16
- /** company: a company key command, under `shuffl company` (#1692). */
16
+ /** company: a company key command, under `shuffl company`. */
17
17
  credential?: 'company';
18
18
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@orpc/client": "1.15.3",
4
- "@shuffl/api-contracts": "0.6.1",
5
- "@shuffl/sdk": "0.6.1"
4
+ "@shuffl/api-contracts": "0.6.3",
5
+ "@shuffl/sdk": "0.6.3"
6
6
  },
7
7
  "description": "Shuffl command line: every public API operation as a scriptable command with JSON output.",
8
8
  "engines": {
@@ -33,7 +33,7 @@
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
35
  "types": "./dist/index.d.ts",
36
- "version": "0.6.1",
36
+ "version": "0.6.3",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }