@shuffl/cli 0.5.1 → 0.5.2

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.
@@ -2449,6 +2449,10 @@ export const commands = [
2449
2449
  const: 'groups.setAutomationState',
2450
2450
  type: 'string',
2451
2451
  },
2452
+ {
2453
+ const: 'groups.setPlaybookAutoStart',
2454
+ type: 'string',
2455
+ },
2452
2456
  {
2453
2457
  const: 'groups.suggestions',
2454
2458
  type: 'string',
@@ -4111,7 +4115,7 @@ export const commands = [
4111
4115
  path: ['groups', 'allAutomations'],
4112
4116
  permission: 'groups.allAutomations',
4113
4117
  scope: 'users:read',
4114
- summary: 'Every group automation in the workspace with its group and last runs, or only those that start one playbook, program or community',
4118
+ summary: 'Every join and leave rule in the workspace: group automations with their group and last runs, playbooks that start on each start date and Connections programs whose people are a group; or only those that start one playbook, program or community',
4115
4119
  },
4116
4120
  {
4117
4121
  access: 'read',
@@ -5019,6 +5023,53 @@ export const commands = [
5019
5023
  scope: 'users:write',
5020
5024
  summary: 'Pause or resume an automation on a group',
5021
5025
  },
5026
+ {
5027
+ access: 'write',
5028
+ command: ['groups', 'set-playbook-auto-start'],
5029
+ input: {
5030
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5031
+ additionalProperties: false,
5032
+ properties: {
5033
+ confirm: {
5034
+ const: 'groups.setPlaybookAutoStart',
5035
+ type: 'string',
5036
+ },
5037
+ groupId: {
5038
+ type: ['null', 'string'],
5039
+ },
5040
+ programId: {
5041
+ type: 'string',
5042
+ },
5043
+ requestKey: {
5044
+ maxLength: 128,
5045
+ minLength: 1,
5046
+ type: 'string',
5047
+ },
5048
+ state: {
5049
+ anyOf: [
5050
+ {
5051
+ const: 'active',
5052
+ type: 'string',
5053
+ },
5054
+ {
5055
+ const: 'off',
5056
+ type: 'string',
5057
+ },
5058
+ {
5059
+ const: 'paused',
5060
+ type: 'string',
5061
+ },
5062
+ ],
5063
+ },
5064
+ },
5065
+ required: ['programId', 'state', 'confirm', 'requestKey'],
5066
+ type: 'object',
5067
+ },
5068
+ path: ['groups', 'setPlaybookAutoStart'],
5069
+ permission: 'groups.setPlaybookAutoStart',
5070
+ scope: 'users:write',
5071
+ summary: 'Turn on, pause or remove a playbook’s rule that starts it on each new hire’s start date, for everyone or one group',
5072
+ },
5022
5073
  {
5023
5074
  access: 'read',
5024
5075
  command: ['groups', 'suggestions'],
@@ -8795,6 +8846,18 @@ export const commands = [
8795
8846
  autoStartGroupId: {
8796
8847
  type: ['null', 'string'],
8797
8848
  },
8849
+ autoStartPaused: {
8850
+ anyOf: [
8851
+ {
8852
+ const: false,
8853
+ type: 'boolean',
8854
+ },
8855
+ {
8856
+ const: true,
8857
+ type: 'boolean',
8858
+ },
8859
+ ],
8860
+ },
8798
8861
  buddy: {
8799
8862
  anyOf: [
8800
8863
  {
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.5.1",
5
- "@shuffl/sdk": "0.5.1"
4
+ "@shuffl/api-contracts": "0.5.2",
5
+ "@shuffl/sdk": "0.5.2"
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.5.1",
36
+ "version": "0.5.2",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }