@shuffl/cli 0.2.1 → 0.3.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.
@@ -1092,9 +1092,6 @@ export const commands = [
1092
1092
  expectedRevision: {
1093
1093
  type: 'number',
1094
1094
  },
1095
- previewFingerprint: {
1096
- type: ['null', 'string'],
1097
- },
1098
1095
  requestKey: {
1099
1096
  maxLength: 128,
1100
1097
  minLength: 1,
@@ -1130,6 +1127,51 @@ export const commands = [
1130
1127
  scope: 'celebrations:write',
1131
1128
  summary: 'Save celebration settings; enabling them schedules messages',
1132
1129
  },
1130
+ {
1131
+ access: 'write',
1132
+ command: ['celebrations', 'save-anniversary-date'],
1133
+ input: {
1134
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
1135
+ additionalProperties: false,
1136
+ properties: {
1137
+ anniversaryDate: {
1138
+ anyOf: [
1139
+ {
1140
+ const: 'latest_hire',
1141
+ type: 'string',
1142
+ },
1143
+ {
1144
+ const: 'original_hire',
1145
+ type: 'string',
1146
+ },
1147
+ ],
1148
+ },
1149
+ confirm: {
1150
+ const: 'celebrations.saveAnniversaryDate',
1151
+ type: 'string',
1152
+ },
1153
+ expectedRevision: {
1154
+ type: 'number',
1155
+ },
1156
+ requestKey: {
1157
+ maxLength: 128,
1158
+ minLength: 1,
1159
+ type: 'string',
1160
+ },
1161
+ },
1162
+ required: [
1163
+ 'anniversaryDate',
1164
+ 'expectedRevision',
1165
+ 'confirm',
1166
+ 'requestKey',
1167
+ ],
1168
+ type: 'object',
1169
+ },
1170
+ path: ['celebrations', 'saveAnniversaryDate'],
1171
+ permission: 'celebrations.saveAnniversaryDate',
1172
+ scope: 'celebrations:write',
1173
+ summary: 'Choose which start date work anniversaries count from; reschedules them',
1174
+ },
1133
1175
  {
1134
1176
  access: 'write',
1135
1177
  command: ['celebrations', 'save-preferences'],
@@ -1241,6 +1283,20 @@ export const commands = [
1241
1283
  scope: 'self:write',
1242
1284
  summary: 'Sign this celebration card with your note',
1243
1285
  },
1286
+ {
1287
+ access: 'read',
1288
+ command: ['celebrations', 'start-dates'],
1289
+ input: {
1290
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
1291
+ additionalProperties: false,
1292
+ properties: {},
1293
+ type: 'object',
1294
+ },
1295
+ path: ['celebrations', 'startDates'],
1296
+ permission: 'celebrations.startDates',
1297
+ scope: 'celebrations:read',
1298
+ summary: 'Read which start date anniversaries count from and the start dates that look wrong',
1299
+ },
1244
1300
  {
1245
1301
  access: 'write',
1246
1302
  command: ['communities', 'archive'],
@@ -2063,6 +2119,10 @@ export const commands = [
2063
2119
  const: 'celebrations.save',
2064
2120
  type: 'string',
2065
2121
  },
2122
+ {
2123
+ const: 'celebrations.saveAnniversaryDate',
2124
+ type: 'string',
2125
+ },
2066
2126
  {
2067
2127
  const: 'celebrations.savePreferences',
2068
2128
  type: 'string',
@@ -2071,6 +2131,10 @@ export const commands = [
2071
2131
  const: 'celebrations.signCard',
2072
2132
  type: 'string',
2073
2133
  },
2134
+ {
2135
+ const: 'celebrations.startDates',
2136
+ type: 'string',
2137
+ },
2074
2138
  {
2075
2139
  const: 'channels.list',
2076
2140
  type: 'string',
@@ -2227,6 +2291,10 @@ export const commands = [
2227
2291
  const: 'home.feed',
2228
2292
  type: 'string',
2229
2293
  },
2294
+ {
2295
+ const: 'home.places',
2296
+ type: 'string',
2297
+ },
2230
2298
  {
2231
2299
  const: 'home.preferences',
2232
2300
  type: 'string',
@@ -2263,6 +2331,10 @@ export const commands = [
2263
2331
  const: 'hr.list',
2264
2332
  type: 'string',
2265
2333
  },
2334
+ {
2335
+ const: 'hr.mine',
2336
+ type: 'string',
2337
+ },
2266
2338
  {
2267
2339
  const: 'hr.readiness',
2268
2340
  type: 'string',
@@ -2539,6 +2611,10 @@ export const commands = [
2539
2611
  const: 'onboarding.firstDaysResults',
2540
2612
  type: 'string',
2541
2613
  },
2614
+ {
2615
+ const: 'onboarding.journey',
2616
+ type: 'string',
2617
+ },
2542
2618
  {
2543
2619
  const: 'onboarding.mine',
2544
2620
  type: 'string',
@@ -3027,6 +3103,10 @@ export const commands = [
3027
3103
  const: 'teams.slackChannels',
3028
3104
  type: 'string',
3029
3105
  },
3106
+ {
3107
+ const: 'teams.slackConnection',
3108
+ type: 'string',
3109
+ },
3030
3110
  {
3031
3111
  const: 'teams.slackJoinAccess',
3032
3112
  type: 'string',
@@ -3091,6 +3171,10 @@ export const commands = [
3091
3171
  const: 'users.get',
3092
3172
  type: 'string',
3093
3173
  },
3174
+ {
3175
+ const: 'users.glance',
3176
+ type: 'string',
3177
+ },
3094
3178
  {
3095
3179
  const: 'users.list',
3096
3180
  type: 'string',
@@ -3697,6 +3781,20 @@ export const commands = [
3697
3781
  scope: 'self:read',
3698
3782
  summary: 'What happened to people you know, and who Mello thinks you should meet',
3699
3783
  },
3784
+ {
3785
+ access: 'read',
3786
+ command: ['home', 'places'],
3787
+ input: {
3788
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
3789
+ additionalProperties: false,
3790
+ properties: {},
3791
+ type: 'object',
3792
+ },
3793
+ path: ['home', 'places'],
3794
+ permission: 'home.places',
3795
+ scope: 'self:read',
3796
+ summary: 'The areas turned on for you, what is waiting for you, and your onboarding progress',
3797
+ },
3700
3798
  {
3701
3799
  access: 'write',
3702
3800
  command: ['home', 'preferences'],
@@ -4086,6 +4184,20 @@ export const commands = [
4086
4184
  scope: 'hr:read',
4087
4185
  summary: 'List the HR requests you asked or can answer',
4088
4186
  },
4187
+ {
4188
+ access: 'read',
4189
+ command: ['hr', 'mine'],
4190
+ input: {
4191
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
4192
+ additionalProperties: false,
4193
+ properties: {},
4194
+ type: 'object',
4195
+ },
4196
+ path: ['hr', 'mine'],
4197
+ permission: 'hr.mine',
4198
+ scope: 'hr:read',
4199
+ summary: 'List the HR requests you asked, with HR’s latest reply',
4200
+ },
4089
4201
  {
4090
4202
  access: 'read',
4091
4203
  command: ['hr', 'readiness'],
@@ -5945,10 +6057,18 @@ export const commands = [
5945
6057
  const: 'celebration',
5946
6058
  type: 'string',
5947
6059
  },
6060
+ {
6061
+ const: 'check_in',
6062
+ type: 'string',
6063
+ },
5948
6064
  {
5949
6065
  const: 'connections_intro',
5950
6066
  type: 'string',
5951
6067
  },
6068
+ {
6069
+ const: 'getting_started',
6070
+ type: 'string',
6071
+ },
5952
6072
  {
5953
6073
  const: 'hr_digest',
5954
6074
  type: 'string',
@@ -6421,6 +6541,20 @@ export const commands = [
6421
6541
  scope: 'onboarding:read',
6422
6542
  summary: 'What new hires said in their first 90 days check-ins, combined',
6423
6543
  },
6544
+ {
6545
+ access: 'read',
6546
+ command: ['onboarding', 'journey'],
6547
+ input: {
6548
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
6549
+ additionalProperties: false,
6550
+ properties: {},
6551
+ type: 'object',
6552
+ },
6553
+ path: ['onboarding', 'journey'],
6554
+ permission: 'onboarding.journey',
6555
+ scope: 'self:read',
6556
+ summary: 'Your onboarding timeline: start date, buddy, manager and upcoming check-ins',
6557
+ },
6424
6558
  {
6425
6559
  access: 'read',
6426
6560
  command: ['onboarding', 'mine'],
@@ -7137,6 +7271,14 @@ export const commands = [
7137
7271
  const: 'profile',
7138
7272
  type: 'string',
7139
7273
  },
7274
+ {
7275
+ const: 'slack_reminder',
7276
+ type: 'string',
7277
+ },
7278
+ {
7279
+ const: 'slack_thank_back',
7280
+ type: 'string',
7281
+ },
7140
7282
  {
7141
7283
  const: 'suggestion',
7142
7284
  type: 'string',
@@ -7731,6 +7873,18 @@ export const commands = [
7731
7873
  $schema: 'https://json-schema.org/draft/2020-12/schema',
7732
7874
  additionalProperties: false,
7733
7875
  properties: {
7876
+ from: {
7877
+ anyOf: [
7878
+ {
7879
+ const: 'command_palette',
7880
+ type: 'string',
7881
+ },
7882
+ {
7883
+ const: 'people_page',
7884
+ type: 'string',
7885
+ },
7886
+ ],
7887
+ },
7734
7888
  limit: {
7735
7889
  type: 'number',
7736
7890
  },
@@ -8239,6 +8393,12 @@ export const commands = [
8239
8393
  anchor: {
8240
8394
  type: 'string',
8241
8395
  },
8396
+ days: {
8397
+ items: {
8398
+ type: 'number',
8399
+ },
8400
+ type: 'array',
8401
+ },
8242
8402
  frequency: {
8243
8403
  anyOf: [
8244
8404
  {
@@ -8486,6 +8646,16 @@ export const commands = [
8486
8646
  maxLength: 100,
8487
8647
  type: 'string',
8488
8648
  },
8649
+ days: {
8650
+ items: {
8651
+ maximum: 7,
8652
+ minimum: 1,
8653
+ type: 'integer',
8654
+ },
8655
+ maxItems: 7,
8656
+ minItems: 1,
8657
+ type: 'array',
8658
+ },
8489
8659
  frequency: {
8490
8660
  enum: [
8491
8661
  'minutes',
@@ -9893,12 +10063,61 @@ export const commands = [
9893
10063
  },
9894
10064
  type: 'array',
9895
10065
  },
10066
+ sendEvery: {
10067
+ type: 'number',
10068
+ },
9896
10069
  sendHour: {
9897
10070
  type: 'number',
9898
10071
  },
9899
10072
  sendMinute: {
9900
10073
  type: 'number',
9901
10074
  },
10075
+ sendMonthWeek: {
10076
+ anyOf: [
10077
+ {
10078
+ type: 'null',
10079
+ },
10080
+ {
10081
+ const: 1,
10082
+ type: 'number',
10083
+ },
10084
+ {
10085
+ const: 2,
10086
+ type: 'number',
10087
+ },
10088
+ {
10089
+ const: 3,
10090
+ type: 'number',
10091
+ },
10092
+ {
10093
+ const: 4,
10094
+ type: 'number',
10095
+ },
10096
+ {
10097
+ const: 5,
10098
+ type: 'number',
10099
+ },
10100
+ ],
10101
+ },
10102
+ sendStart: {
10103
+ type: ['null', 'string'],
10104
+ },
10105
+ sendUnit: {
10106
+ anyOf: [
10107
+ {
10108
+ const: 'day',
10109
+ type: 'string',
10110
+ },
10111
+ {
10112
+ const: 'month',
10113
+ type: 'string',
10114
+ },
10115
+ {
10116
+ const: 'week',
10117
+ type: 'string',
10118
+ },
10119
+ ],
10120
+ },
9902
10121
  status: {
9903
10122
  anyOf: [
9904
10123
  {
@@ -10249,6 +10468,12 @@ export const commands = [
10249
10468
  const: 'reminders.saveSetting',
10250
10469
  type: 'string',
10251
10470
  },
10471
+ days: {
10472
+ items: {
10473
+ type: 'number',
10474
+ },
10475
+ type: 'array',
10476
+ },
10252
10477
  kind: {
10253
10478
  anyOf: [
10254
10479
  {
@@ -10909,6 +11134,30 @@ export const commands = [
10909
11134
  body: {
10910
11135
  type: 'string',
10911
11136
  },
11137
+ guides: {
11138
+ anyOf: [
11139
+ {
11140
+ const: 'abstain',
11141
+ type: 'string',
11142
+ },
11143
+ {
11144
+ const: 'answer',
11145
+ type: 'string',
11146
+ },
11147
+ {
11148
+ const: 'empty',
11149
+ type: 'string',
11150
+ },
11151
+ {
11152
+ const: 'not_checked',
11153
+ type: 'string',
11154
+ },
11155
+ {
11156
+ const: 'unavailable',
11157
+ type: 'string',
11158
+ },
11159
+ ],
11160
+ },
10912
11161
  requestKey: {
10913
11162
  maxLength: 128,
10914
11163
  minLength: 1,
@@ -11598,6 +11847,20 @@ export const commands = [
11598
11847
  scope: 'integrations:read',
11599
11848
  summary: 'List community channels in the connected Slack and what each would become',
11600
11849
  },
11850
+ {
11851
+ access: 'read',
11852
+ command: ['teams', 'slack-connection'],
11853
+ input: {
11854
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
11855
+ additionalProperties: false,
11856
+ properties: {},
11857
+ type: 'object',
11858
+ },
11859
+ path: ['teams', 'slackConnection'],
11860
+ permission: 'teams.slackConnection',
11861
+ scope: 'integrations:read',
11862
+ summary: "Read whether the workspace's Slack is connected, and why not",
11863
+ },
11601
11864
  {
11602
11865
  access: 'read',
11603
11866
  command: ['teams', 'slack-join-access'],
@@ -11971,6 +12234,20 @@ export const commands = [
11971
12234
  scope: 'users:read',
11972
12235
  summary: 'List the teams, departments, managers and locations People can filter by',
11973
12236
  },
12237
+ {
12238
+ access: 'read',
12239
+ command: ['users', 'glance'],
12240
+ input: {
12241
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
12242
+ additionalProperties: false,
12243
+ properties: {},
12244
+ type: 'object',
12245
+ },
12246
+ path: ['users', 'glance'],
12247
+ permission: 'users.glance',
12248
+ scope: 'users:read',
12249
+ summary: 'Headcount, growth, departments, tenure and time zones, and where you fit',
12250
+ },
11974
12251
  {
11975
12252
  access: 'read',
11976
12253
  command: ['users', 'manager-history'],
@@ -12417,6 +12694,9 @@ export const commands = [
12417
12694
  name: {
12418
12695
  type: 'string',
12419
12696
  },
12697
+ originalStartDate: {
12698
+ type: ['null', 'string'],
12699
+ },
12420
12700
  requestKey: {
12421
12701
  maxLength: 128,
12422
12702
  minLength: 1,
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.2.1",
5
- "@shuffl/sdk": "0.2.1"
4
+ "@shuffl/api-contracts": "0.3.0",
5
+ "@shuffl/sdk": "0.3.0"
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.2.1",
36
+ "version": "0.3.0",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }