@shuffl/cli 0.5.7 → 0.5.9

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.
@@ -2873,6 +2873,10 @@ export const commands = [
2873
2873
  const: 'playbooks.answerFirstDaysCheckIn',
2874
2874
  type: 'string',
2875
2875
  },
2876
+ {
2877
+ const: 'playbooks.answerForm',
2878
+ type: 'string',
2879
+ },
2876
2880
  {
2877
2881
  const: 'playbooks.approve',
2878
2882
  type: 'string',
@@ -4991,6 +4995,9 @@ export const commands = [
4991
4995
  },
4992
4996
  ],
4993
4997
  },
4998
+ channelId: {
4999
+ type: 'string',
5000
+ },
4994
5001
  communityId: {
4995
5002
  type: 'string',
4996
5003
  },
@@ -5060,6 +5067,14 @@ export const commands = [
5060
5067
  const: 'send_message',
5061
5068
  type: 'string',
5062
5069
  },
5070
+ {
5071
+ const: 'slack_invite',
5072
+ type: 'string',
5073
+ },
5074
+ {
5075
+ const: 'slack_post',
5076
+ type: 'string',
5077
+ },
5063
5078
  {
5064
5079
  const: 'start_playbook',
5065
5080
  type: 'string',
@@ -5102,7 +5117,7 @@ export const commands = [
5102
5117
  path: ['groups', 'setAutomation'],
5103
5118
  permission: 'groups.setAutomation',
5104
5119
  scope: 'users:write',
5105
- summary: 'Add or change an automation on a group: send a message, ask a Pulse question, start a playbook, invite to a community, add to Connections, give a badge, add to or remove from another group, or tell HR, their manager or someone named, right away or days later; a new one starts paused',
5120
+ summary: 'Add or change an automation on a group: send a message, ask a Pulse question, start a playbook, invite to a community, add to Connections, give a badge, add to or remove from another group, add to or post in a Slack channel (`config.channelId`, read back from Slack), or tell HR, their manager or someone named, right away or days later; a new one starts paused',
5106
5121
  },
5107
5122
  {
5108
5123
  access: 'write',
@@ -8764,6 +8779,63 @@ export const commands = [
8764
8779
  scope: 'self:write',
8765
8780
  summary: 'Answer your new-hire check-in',
8766
8781
  },
8782
+ {
8783
+ access: 'write',
8784
+ command: ['playbooks', 'answer-form'],
8785
+ input: {
8786
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
8787
+ additionalProperties: false,
8788
+ properties: {
8789
+ bio: {
8790
+ type: 'string',
8791
+ },
8792
+ birthday: {
8793
+ anyOf: [
8794
+ {
8795
+ type: 'null',
8796
+ },
8797
+ {
8798
+ additionalProperties: false,
8799
+ properties: {
8800
+ day: {
8801
+ type: 'number',
8802
+ },
8803
+ month: {
8804
+ type: 'number',
8805
+ },
8806
+ },
8807
+ required: ['day', 'month'],
8808
+ type: 'object',
8809
+ },
8810
+ ],
8811
+ },
8812
+ confirm: {
8813
+ const: 'playbooks.answerForm',
8814
+ type: 'string',
8815
+ },
8816
+ preferredName: {
8817
+ type: 'string',
8818
+ },
8819
+ pronouns: {
8820
+ type: 'string',
8821
+ },
8822
+ requestKey: {
8823
+ maxLength: 128,
8824
+ minLength: 1,
8825
+ type: 'string',
8826
+ },
8827
+ stepId: {
8828
+ type: 'string',
8829
+ },
8830
+ },
8831
+ required: ['stepId', 'confirm', 'requestKey'],
8832
+ type: 'object',
8833
+ },
8834
+ path: ['playbooks', 'answerForm'],
8835
+ permission: 'playbooks.answerForm',
8836
+ scope: 'self:write',
8837
+ summary: 'Answer a playbook’s Tell us about you form; the answers fill in your profile',
8838
+ },
8767
8839
  {
8768
8840
  access: 'write',
8769
8841
  command: ['playbooks', 'approve'],
@@ -9686,6 +9758,33 @@ export const commands = [
9686
9758
  },
9687
9759
  ],
9688
9760
  },
9761
+ formFields: {
9762
+ items: {
9763
+ anyOf: [
9764
+ {
9765
+ const: 'bio',
9766
+ type: 'string',
9767
+ },
9768
+ {
9769
+ const: 'birthday',
9770
+ type: 'string',
9771
+ },
9772
+ {
9773
+ const: 'photo',
9774
+ type: 'string',
9775
+ },
9776
+ {
9777
+ const: 'preferredName',
9778
+ type: 'string',
9779
+ },
9780
+ {
9781
+ const: 'pronouns',
9782
+ type: 'string',
9783
+ },
9784
+ ],
9785
+ },
9786
+ type: 'array',
9787
+ },
9689
9788
  id: {
9690
9789
  type: 'string',
9691
9790
  },
@@ -9699,6 +9798,10 @@ export const commands = [
9699
9798
  const: 'checkpoint',
9700
9799
  type: 'string',
9701
9800
  },
9801
+ {
9802
+ const: 'form',
9803
+ type: 'string',
9804
+ },
9702
9805
  {
9703
9806
  const: 'meet',
9704
9807
  type: 'string',
@@ -10883,6 +10986,9 @@ export const commands = [
10883
10986
  phone: {
10884
10987
  type: 'string',
10885
10988
  },
10989
+ preferredName: {
10990
+ type: 'string',
10991
+ },
10886
10992
  pronouns: {
10887
10993
  type: 'string',
10888
10994
  },
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.7",
5
- "@shuffl/sdk": "0.5.7"
4
+ "@shuffl/api-contracts": "0.5.9",
5
+ "@shuffl/sdk": "0.5.9"
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.7",
36
+ "version": "0.5.9",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }