@shuffl/cli 0.8.1 → 0.10.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.
@@ -343,31 +343,31 @@ export const commands = [
343
343
  type: 'string',
344
344
  },
345
345
  {
346
- const: 'declined',
346
+ const: 'cancelled',
347
347
  type: 'string',
348
348
  },
349
349
  {
350
- const: 'expired',
350
+ const: 'declined',
351
351
  type: 'string',
352
352
  },
353
353
  {
354
- const: 'failed',
354
+ const: 'done',
355
355
  type: 'string',
356
356
  },
357
357
  {
358
- const: 'granted',
358
+ const: 'expired',
359
359
  type: 'string',
360
360
  },
361
361
  {
362
- const: 'granting',
362
+ const: 'failed',
363
363
  type: 'string',
364
364
  },
365
365
  {
366
- const: 'pending_approval',
366
+ const: 'in_progress',
367
367
  type: 'string',
368
368
  },
369
369
  {
370
- const: 'requested',
370
+ const: 'pending_approval',
371
371
  type: 'string',
372
372
  },
373
373
  {
@@ -1549,6 +1549,10 @@ export const commands = [
1549
1549
  const: 'app_catalog',
1550
1550
  type: 'string',
1551
1551
  },
1552
+ {
1553
+ const: 'approvals_waiting',
1554
+ type: 'string',
1555
+ },
1552
1556
  {
1553
1557
  const: 'badges',
1554
1558
  type: 'string',
@@ -1701,6 +1705,14 @@ export const commands = [
1701
1705
  const: 'pulse_mine',
1702
1706
  type: 'string',
1703
1707
  },
1708
+ {
1709
+ const: 'request_catalog',
1710
+ type: 'string',
1711
+ },
1712
+ {
1713
+ const: 'requests',
1714
+ type: 'string',
1715
+ },
1704
1716
  {
1705
1717
  const: 'spend_cards',
1706
1718
  type: 'string',
@@ -1782,6 +1794,10 @@ export const commands = [
1782
1794
  const: 'app_catalog',
1783
1795
  type: 'string',
1784
1796
  },
1797
+ {
1798
+ const: 'approvals_waiting',
1799
+ type: 'string',
1800
+ },
1785
1801
  {
1786
1802
  const: 'badges',
1787
1803
  type: 'string',
@@ -1934,6 +1950,14 @@ export const commands = [
1934
1950
  const: 'pulse_mine',
1935
1951
  type: 'string',
1936
1952
  },
1953
+ {
1954
+ const: 'request_catalog',
1955
+ type: 'string',
1956
+ },
1957
+ {
1958
+ const: 'requests',
1959
+ type: 'string',
1960
+ },
1937
1961
  {
1938
1962
  const: 'spend_cards',
1939
1963
  type: 'string',
@@ -5044,6 +5068,46 @@ export const commands = [
5044
5068
  const: 'reports.playbooks',
5045
5069
  type: 'string',
5046
5070
  },
5071
+ {
5072
+ const: 'requests.answer',
5073
+ type: 'string',
5074
+ },
5075
+ {
5076
+ const: 'requests.archiveType',
5077
+ type: 'string',
5078
+ },
5079
+ {
5080
+ const: 'requests.cancel',
5081
+ type: 'string',
5082
+ },
5083
+ {
5084
+ const: 'requests.complete',
5085
+ type: 'string',
5086
+ },
5087
+ {
5088
+ const: 'requests.file',
5089
+ type: 'string',
5090
+ },
5091
+ {
5092
+ const: 'requests.get',
5093
+ type: 'string',
5094
+ },
5095
+ {
5096
+ const: 'requests.mine',
5097
+ type: 'string',
5098
+ },
5099
+ {
5100
+ const: 'requests.saveType',
5101
+ type: 'string',
5102
+ },
5103
+ {
5104
+ const: 'requests.types',
5105
+ type: 'string',
5106
+ },
5107
+ {
5108
+ const: 'requests.waiting',
5109
+ type: 'string',
5110
+ },
5047
5111
  {
5048
5112
  const: 'runs.details',
5049
5113
  type: 'string',
@@ -18006,6 +18070,556 @@ export const commands = [
18006
18070
  scope: 'reports:read',
18007
18071
  summary: 'Read Onboarding insights',
18008
18072
  },
18073
+ {
18074
+ access: 'write',
18075
+ command: ['requests', 'answer'],
18076
+ input: {
18077
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18078
+ additionalProperties: false,
18079
+ properties: {
18080
+ answer: {
18081
+ type: 'string',
18082
+ },
18083
+ confirm: {
18084
+ const: 'requests.answer',
18085
+ type: 'string',
18086
+ },
18087
+ requestId: {
18088
+ type: 'string',
18089
+ },
18090
+ requestKey: {
18091
+ maxLength: 128,
18092
+ minLength: 1,
18093
+ type: 'string',
18094
+ },
18095
+ },
18096
+ required: ['answer', 'requestId', 'confirm', 'requestKey'],
18097
+ type: 'object',
18098
+ },
18099
+ path: ['requests', 'answer'],
18100
+ permission: 'requests.answer',
18101
+ scope: 'self:write',
18102
+ summary: 'Answer an approver’s question on your request',
18103
+ },
18104
+ {
18105
+ access: 'write',
18106
+ command: ['requests', 'archive-type'],
18107
+ input: {
18108
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18109
+ additionalProperties: false,
18110
+ properties: {
18111
+ archived: {
18112
+ anyOf: [
18113
+ {
18114
+ const: false,
18115
+ type: 'boolean',
18116
+ },
18117
+ {
18118
+ const: true,
18119
+ type: 'boolean',
18120
+ },
18121
+ ],
18122
+ },
18123
+ confirm: {
18124
+ const: 'requests.archiveType',
18125
+ type: 'string',
18126
+ },
18127
+ requestKey: {
18128
+ maxLength: 128,
18129
+ minLength: 1,
18130
+ type: 'string',
18131
+ },
18132
+ typeId: {
18133
+ type: 'string',
18134
+ },
18135
+ },
18136
+ required: ['typeId', 'confirm', 'requestKey'],
18137
+ type: 'object',
18138
+ },
18139
+ path: ['requests', 'archiveType'],
18140
+ permission: 'requests.archiveType',
18141
+ scope: 'hr:write',
18142
+ summary: 'Take a request type out of the catalog, or put it back',
18143
+ },
18144
+ {
18145
+ access: 'write',
18146
+ command: ['requests', 'cancel'],
18147
+ input: {
18148
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18149
+ additionalProperties: false,
18150
+ properties: {
18151
+ confirm: {
18152
+ const: 'requests.cancel',
18153
+ type: 'string',
18154
+ },
18155
+ note: {
18156
+ type: 'string',
18157
+ },
18158
+ requestId: {
18159
+ type: 'string',
18160
+ },
18161
+ requestKey: {
18162
+ maxLength: 128,
18163
+ minLength: 1,
18164
+ type: 'string',
18165
+ },
18166
+ },
18167
+ required: ['requestId', 'confirm', 'requestKey'],
18168
+ type: 'object',
18169
+ },
18170
+ path: ['requests', 'cancel'],
18171
+ permission: 'requests.cancel',
18172
+ scope: 'self:write',
18173
+ summary: 'Cancel a request you made while it waits or before it is carried out',
18174
+ },
18175
+ {
18176
+ access: 'write',
18177
+ command: ['requests', 'complete'],
18178
+ input: {
18179
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18180
+ additionalProperties: false,
18181
+ properties: {
18182
+ confirm: {
18183
+ const: 'requests.complete',
18184
+ type: 'string',
18185
+ },
18186
+ note: {
18187
+ type: 'string',
18188
+ },
18189
+ requestId: {
18190
+ type: 'string',
18191
+ },
18192
+ requestKey: {
18193
+ maxLength: 128,
18194
+ minLength: 1,
18195
+ type: 'string',
18196
+ },
18197
+ },
18198
+ required: ['requestId', 'confirm', 'requestKey'],
18199
+ type: 'object',
18200
+ },
18201
+ path: ['requests', 'complete'],
18202
+ permission: 'requests.complete',
18203
+ scope: 'self:write',
18204
+ summary: 'Mark an approved request you carry out as done, so the person is told',
18205
+ },
18206
+ {
18207
+ access: 'write',
18208
+ command: ['requests', 'file'],
18209
+ input: {
18210
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18211
+ additionalProperties: false,
18212
+ properties: {
18213
+ approverPersonIds: {
18214
+ items: {
18215
+ type: 'string',
18216
+ },
18217
+ type: 'array',
18218
+ },
18219
+ confirm: {
18220
+ const: 'requests.file',
18221
+ type: 'string',
18222
+ },
18223
+ fields: {
18224
+ additionalProperties: {
18225
+ type: ['string', 'number'],
18226
+ },
18227
+ propertyNames: {
18228
+ type: 'string',
18229
+ },
18230
+ type: 'object',
18231
+ },
18232
+ forPersonId: {
18233
+ type: 'string',
18234
+ },
18235
+ kind: {
18236
+ anyOf: [
18237
+ {
18238
+ const: 'custom',
18239
+ type: 'string',
18240
+ },
18241
+ {
18242
+ const: 'equipment',
18243
+ type: 'string',
18244
+ },
18245
+ {
18246
+ const: 'finance',
18247
+ type: 'string',
18248
+ },
18249
+ {
18250
+ const: 'hr',
18251
+ type: 'string',
18252
+ },
18253
+ {
18254
+ const: 'letter',
18255
+ type: 'string',
18256
+ },
18257
+ {
18258
+ const: 'slack',
18259
+ type: 'string',
18260
+ },
18261
+ ],
18262
+ },
18263
+ note: {
18264
+ type: 'string',
18265
+ },
18266
+ ownerPersonIds: {
18267
+ items: {
18268
+ type: 'string',
18269
+ },
18270
+ type: 'array',
18271
+ },
18272
+ requestKey: {
18273
+ maxLength: 128,
18274
+ minLength: 1,
18275
+ type: 'string',
18276
+ },
18277
+ title: {
18278
+ type: 'string',
18279
+ },
18280
+ typeId: {
18281
+ type: 'string',
18282
+ },
18283
+ },
18284
+ required: ['requestKey', 'confirm'],
18285
+ type: 'object',
18286
+ },
18287
+ path: ['requests', 'file'],
18288
+ permission: 'requests.file',
18289
+ scope: 'self:write',
18290
+ summary: 'Ask for something that needs approval: what you need, why, and who should approve it',
18291
+ },
18292
+ {
18293
+ access: 'read',
18294
+ command: ['requests', 'get'],
18295
+ input: {
18296
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18297
+ additionalProperties: false,
18298
+ properties: {
18299
+ requestId: {
18300
+ type: 'string',
18301
+ },
18302
+ },
18303
+ required: ['requestId'],
18304
+ type: 'object',
18305
+ },
18306
+ path: ['requests', 'get'],
18307
+ permission: 'requests.get',
18308
+ scope: 'self:read',
18309
+ summary: 'Read one request you asked for, approve or carry out, with its history',
18310
+ },
18311
+ {
18312
+ access: 'read',
18313
+ command: ['requests', 'mine'],
18314
+ input: {
18315
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18316
+ additionalProperties: false,
18317
+ properties: {
18318
+ limit: {
18319
+ type: 'number',
18320
+ },
18321
+ },
18322
+ type: 'object',
18323
+ },
18324
+ path: ['requests', 'mine'],
18325
+ permission: 'requests.mine',
18326
+ scope: 'self:read',
18327
+ summary: 'List your own requests of every kind and where each stands',
18328
+ },
18329
+ {
18330
+ access: 'write',
18331
+ command: ['requests', 'save-type'],
18332
+ input: {
18333
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18334
+ additionalProperties: false,
18335
+ properties: {
18336
+ approvers: {
18337
+ items: {
18338
+ anyOf: [
18339
+ {
18340
+ additionalProperties: false,
18341
+ properties: {
18342
+ kind: {
18343
+ const: 'manager',
18344
+ type: 'string',
18345
+ },
18346
+ },
18347
+ required: ['kind'],
18348
+ type: 'object',
18349
+ },
18350
+ {
18351
+ additionalProperties: false,
18352
+ properties: {
18353
+ kind: {
18354
+ const: 'owners',
18355
+ type: 'string',
18356
+ },
18357
+ },
18358
+ required: ['kind'],
18359
+ type: 'object',
18360
+ },
18361
+ {
18362
+ additionalProperties: false,
18363
+ properties: {
18364
+ kind: {
18365
+ const: 'person',
18366
+ type: 'string',
18367
+ },
18368
+ personIds: {
18369
+ items: {
18370
+ type: 'string',
18371
+ },
18372
+ type: 'array',
18373
+ },
18374
+ },
18375
+ required: ['kind', 'personIds'],
18376
+ type: 'object',
18377
+ },
18378
+ {
18379
+ additionalProperties: false,
18380
+ properties: {
18381
+ groupIds: {
18382
+ items: {
18383
+ type: 'string',
18384
+ },
18385
+ type: 'array',
18386
+ },
18387
+ kind: {
18388
+ const: 'group',
18389
+ type: 'string',
18390
+ },
18391
+ quorum: {
18392
+ anyOf: [
18393
+ {
18394
+ const: 'all',
18395
+ type: 'string',
18396
+ },
18397
+ {
18398
+ const: 'one',
18399
+ type: 'string',
18400
+ },
18401
+ ],
18402
+ },
18403
+ },
18404
+ required: ['groupIds', 'kind'],
18405
+ type: 'object',
18406
+ },
18407
+ ],
18408
+ },
18409
+ type: 'array',
18410
+ },
18411
+ authoredBy: {
18412
+ anyOf: [
18413
+ {
18414
+ const: 'form',
18415
+ type: 'string',
18416
+ },
18417
+ {
18418
+ const: 'text',
18419
+ type: 'string',
18420
+ },
18421
+ ],
18422
+ },
18423
+ confirm: {
18424
+ const: 'requests.saveType',
18425
+ type: 'string',
18426
+ },
18427
+ description: {
18428
+ type: 'string',
18429
+ },
18430
+ expectedRevision: {
18431
+ type: 'number',
18432
+ },
18433
+ fields: {
18434
+ items: {
18435
+ additionalProperties: false,
18436
+ properties: {
18437
+ id: {
18438
+ type: 'string',
18439
+ },
18440
+ label: {
18441
+ type: 'string',
18442
+ },
18443
+ options: {
18444
+ items: {
18445
+ type: 'string',
18446
+ },
18447
+ type: 'array',
18448
+ },
18449
+ required: {
18450
+ anyOf: [
18451
+ {
18452
+ const: false,
18453
+ type: 'boolean',
18454
+ },
18455
+ {
18456
+ const: true,
18457
+ type: 'boolean',
18458
+ },
18459
+ ],
18460
+ },
18461
+ type: {
18462
+ anyOf: [
18463
+ {
18464
+ const: 'choice',
18465
+ type: 'string',
18466
+ },
18467
+ {
18468
+ const: 'date',
18469
+ type: 'string',
18470
+ },
18471
+ {
18472
+ const: 'long_text',
18473
+ type: 'string',
18474
+ },
18475
+ {
18476
+ const: 'money',
18477
+ type: 'string',
18478
+ },
18479
+ {
18480
+ const: 'person',
18481
+ type: 'string',
18482
+ },
18483
+ {
18484
+ const: 'short_text',
18485
+ type: 'string',
18486
+ },
18487
+ ],
18488
+ },
18489
+ },
18490
+ required: ['id', 'label', 'type'],
18491
+ type: 'object',
18492
+ },
18493
+ type: 'array',
18494
+ },
18495
+ keywords: {
18496
+ items: {
18497
+ type: 'string',
18498
+ },
18499
+ type: 'array',
18500
+ },
18501
+ kind: {
18502
+ anyOf: [
18503
+ {
18504
+ const: 'custom',
18505
+ type: 'string',
18506
+ },
18507
+ {
18508
+ const: 'equipment',
18509
+ type: 'string',
18510
+ },
18511
+ {
18512
+ const: 'finance',
18513
+ type: 'string',
18514
+ },
18515
+ {
18516
+ const: 'hr',
18517
+ type: 'string',
18518
+ },
18519
+ {
18520
+ const: 'letter',
18521
+ type: 'string',
18522
+ },
18523
+ {
18524
+ const: 'slack',
18525
+ type: 'string',
18526
+ },
18527
+ ],
18528
+ },
18529
+ name: {
18530
+ type: 'string',
18531
+ },
18532
+ onApproval: {
18533
+ anyOf: [
18534
+ {
18535
+ const: 'assign_task_to_owner',
18536
+ type: 'string',
18537
+ },
18538
+ {
18539
+ const: 'none',
18540
+ type: 'string',
18541
+ },
18542
+ ],
18543
+ },
18544
+ ownerPersonIds: {
18545
+ items: {
18546
+ type: 'string',
18547
+ },
18548
+ type: 'array',
18549
+ },
18550
+ requestKey: {
18551
+ maxLength: 128,
18552
+ minLength: 1,
18553
+ type: 'string',
18554
+ },
18555
+ responseDays: {
18556
+ type: 'number',
18557
+ },
18558
+ sensitive: {
18559
+ anyOf: [
18560
+ {
18561
+ const: false,
18562
+ type: 'boolean',
18563
+ },
18564
+ {
18565
+ const: true,
18566
+ type: 'boolean',
18567
+ },
18568
+ ],
18569
+ },
18570
+ typeId: {
18571
+ type: 'string',
18572
+ },
18573
+ },
18574
+ required: ['name', 'confirm', 'requestKey'],
18575
+ type: 'object',
18576
+ },
18577
+ path: ['requests', 'saveType'],
18578
+ permission: 'requests.saveType',
18579
+ scope: 'hr:write',
18580
+ summary: 'Add or change a request type: its fields, approvers, owners and response target',
18581
+ },
18582
+ {
18583
+ access: 'read',
18584
+ command: ['requests', 'types'],
18585
+ input: {
18586
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18587
+ additionalProperties: false,
18588
+ properties: {
18589
+ includeArchived: {
18590
+ anyOf: [
18591
+ {
18592
+ const: false,
18593
+ type: 'boolean',
18594
+ },
18595
+ {
18596
+ const: true,
18597
+ type: 'boolean',
18598
+ },
18599
+ ],
18600
+ },
18601
+ },
18602
+ type: 'object',
18603
+ },
18604
+ path: ['requests', 'types'],
18605
+ permission: 'requests.types',
18606
+ scope: 'self:read',
18607
+ summary: 'List the kinds of request people can make here and what each asks for',
18608
+ },
18609
+ {
18610
+ access: 'read',
18611
+ command: ['requests', 'waiting'],
18612
+ input: {
18613
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18614
+ additionalProperties: false,
18615
+ properties: {},
18616
+ type: 'object',
18617
+ },
18618
+ path: ['requests', 'waiting'],
18619
+ permission: 'requests.waiting',
18620
+ scope: 'self:read',
18621
+ summary: 'List the requests waiting on you to decide or carry out',
18622
+ },
18009
18623
  {
18010
18624
  access: 'read',
18011
18625
  command: ['runs', 'details'],
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.8.1",
5
- "@shuffl/sdk": "0.8.1"
4
+ "@shuffl/api-contracts": "0.10.0",
5
+ "@shuffl/sdk": "0.10.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.8.1",
36
+ "version": "0.10.0",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }