@shuffl/cli 0.9.0 → 0.11.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.
@@ -1705,6 +1705,10 @@ export const commands = [
1705
1705
  const: 'pulse_mine',
1706
1706
  type: 'string',
1707
1707
  },
1708
+ {
1709
+ const: 'request_catalog',
1710
+ type: 'string',
1711
+ },
1708
1712
  {
1709
1713
  const: 'requests',
1710
1714
  type: 'string',
@@ -1946,6 +1950,10 @@ export const commands = [
1946
1950
  const: 'pulse_mine',
1947
1951
  type: 'string',
1948
1952
  },
1953
+ {
1954
+ const: 'request_catalog',
1955
+ type: 'string',
1956
+ },
1949
1957
  {
1950
1958
  const: 'requests',
1951
1959
  type: 'string',
@@ -5064,6 +5072,10 @@ export const commands = [
5064
5072
  const: 'requests.answer',
5065
5073
  type: 'string',
5066
5074
  },
5075
+ {
5076
+ const: 'requests.archiveType',
5077
+ type: 'string',
5078
+ },
5067
5079
  {
5068
5080
  const: 'requests.cancel',
5069
5081
  type: 'string',
@@ -5084,6 +5096,14 @@ export const commands = [
5084
5096
  const: 'requests.mine',
5085
5097
  type: 'string',
5086
5098
  },
5099
+ {
5100
+ const: 'requests.saveType',
5101
+ type: 'string',
5102
+ },
5103
+ {
5104
+ const: 'requests.types',
5105
+ type: 'string',
5106
+ },
5087
5107
  {
5088
5108
  const: 'requests.waiting',
5089
5109
  type: 'string',
@@ -18081,6 +18101,46 @@ export const commands = [
18081
18101
  scope: 'self:write',
18082
18102
  summary: 'Answer an approver’s question on your request',
18083
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
+ },
18084
18144
  {
18085
18145
  access: 'write',
18086
18146
  command: ['requests', 'cancel'],
@@ -18160,6 +18220,15 @@ export const commands = [
18160
18220
  const: 'requests.file',
18161
18221
  type: 'string',
18162
18222
  },
18223
+ fields: {
18224
+ additionalProperties: {
18225
+ type: ['string', 'number'],
18226
+ },
18227
+ propertyNames: {
18228
+ type: 'string',
18229
+ },
18230
+ type: 'object',
18231
+ },
18163
18232
  forPersonId: {
18164
18233
  type: 'string',
18165
18234
  },
@@ -18208,8 +18277,11 @@ export const commands = [
18208
18277
  title: {
18209
18278
  type: 'string',
18210
18279
  },
18280
+ typeId: {
18281
+ type: 'string',
18282
+ },
18211
18283
  },
18212
- required: ['requestKey', 'title', 'confirm'],
18284
+ required: ['requestKey', 'confirm'],
18213
18285
  type: 'object',
18214
18286
  },
18215
18287
  path: ['requests', 'file'],
@@ -18254,6 +18326,341 @@ export const commands = [
18254
18326
  scope: 'self:read',
18255
18327
  summary: 'List your own requests of every kind and where each stands',
18256
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
+ action: {
18337
+ anyOf: [
18338
+ {
18339
+ type: 'null',
18340
+ },
18341
+ {
18342
+ const: 'slack_channel_create',
18343
+ type: 'string',
18344
+ },
18345
+ {
18346
+ const: 'slack_channel_invite',
18347
+ type: 'string',
18348
+ },
18349
+ {
18350
+ const: 'slack_guest_invite',
18351
+ type: 'string',
18352
+ },
18353
+ {
18354
+ const: 'slack_usergroup_add',
18355
+ type: 'string',
18356
+ },
18357
+ ],
18358
+ },
18359
+ actionTarget: {
18360
+ anyOf: [
18361
+ {
18362
+ type: 'null',
18363
+ },
18364
+ {
18365
+ additionalProperties: false,
18366
+ properties: {
18367
+ id: {
18368
+ type: 'string',
18369
+ },
18370
+ name: {
18371
+ type: 'string',
18372
+ },
18373
+ },
18374
+ required: ['id', 'name'],
18375
+ type: 'object',
18376
+ },
18377
+ ],
18378
+ },
18379
+ approvalNeeded: {
18380
+ anyOf: [
18381
+ {
18382
+ const: false,
18383
+ type: 'boolean',
18384
+ },
18385
+ {
18386
+ const: true,
18387
+ type: 'boolean',
18388
+ },
18389
+ ],
18390
+ },
18391
+ approvers: {
18392
+ items: {
18393
+ anyOf: [
18394
+ {
18395
+ additionalProperties: false,
18396
+ properties: {
18397
+ kind: {
18398
+ const: 'manager',
18399
+ type: 'string',
18400
+ },
18401
+ },
18402
+ required: ['kind'],
18403
+ type: 'object',
18404
+ },
18405
+ {
18406
+ additionalProperties: false,
18407
+ properties: {
18408
+ kind: {
18409
+ const: 'owners',
18410
+ type: 'string',
18411
+ },
18412
+ },
18413
+ required: ['kind'],
18414
+ type: 'object',
18415
+ },
18416
+ {
18417
+ additionalProperties: false,
18418
+ properties: {
18419
+ kind: {
18420
+ const: 'person',
18421
+ type: 'string',
18422
+ },
18423
+ personIds: {
18424
+ items: {
18425
+ type: 'string',
18426
+ },
18427
+ type: 'array',
18428
+ },
18429
+ },
18430
+ required: ['kind', 'personIds'],
18431
+ type: 'object',
18432
+ },
18433
+ {
18434
+ additionalProperties: false,
18435
+ properties: {
18436
+ groupIds: {
18437
+ items: {
18438
+ type: 'string',
18439
+ },
18440
+ type: 'array',
18441
+ },
18442
+ kind: {
18443
+ const: 'group',
18444
+ type: 'string',
18445
+ },
18446
+ quorum: {
18447
+ anyOf: [
18448
+ {
18449
+ const: 'all',
18450
+ type: 'string',
18451
+ },
18452
+ {
18453
+ const: 'one',
18454
+ type: 'string',
18455
+ },
18456
+ ],
18457
+ },
18458
+ },
18459
+ required: ['groupIds', 'kind'],
18460
+ type: 'object',
18461
+ },
18462
+ ],
18463
+ },
18464
+ type: 'array',
18465
+ },
18466
+ authoredBy: {
18467
+ anyOf: [
18468
+ {
18469
+ const: 'form',
18470
+ type: 'string',
18471
+ },
18472
+ {
18473
+ const: 'text',
18474
+ type: 'string',
18475
+ },
18476
+ ],
18477
+ },
18478
+ confirm: {
18479
+ const: 'requests.saveType',
18480
+ type: 'string',
18481
+ },
18482
+ description: {
18483
+ type: 'string',
18484
+ },
18485
+ expectedRevision: {
18486
+ type: 'number',
18487
+ },
18488
+ fields: {
18489
+ items: {
18490
+ additionalProperties: false,
18491
+ properties: {
18492
+ id: {
18493
+ type: 'string',
18494
+ },
18495
+ label: {
18496
+ type: 'string',
18497
+ },
18498
+ options: {
18499
+ items: {
18500
+ type: 'string',
18501
+ },
18502
+ type: 'array',
18503
+ },
18504
+ required: {
18505
+ anyOf: [
18506
+ {
18507
+ const: false,
18508
+ type: 'boolean',
18509
+ },
18510
+ {
18511
+ const: true,
18512
+ type: 'boolean',
18513
+ },
18514
+ ],
18515
+ },
18516
+ type: {
18517
+ anyOf: [
18518
+ {
18519
+ const: 'choice',
18520
+ type: 'string',
18521
+ },
18522
+ {
18523
+ const: 'date',
18524
+ type: 'string',
18525
+ },
18526
+ {
18527
+ const: 'long_text',
18528
+ type: 'string',
18529
+ },
18530
+ {
18531
+ const: 'money',
18532
+ type: 'string',
18533
+ },
18534
+ {
18535
+ const: 'person',
18536
+ type: 'string',
18537
+ },
18538
+ {
18539
+ const: 'short_text',
18540
+ type: 'string',
18541
+ },
18542
+ ],
18543
+ },
18544
+ },
18545
+ required: ['id', 'label', 'type'],
18546
+ type: 'object',
18547
+ },
18548
+ type: 'array',
18549
+ },
18550
+ keywords: {
18551
+ items: {
18552
+ type: 'string',
18553
+ },
18554
+ type: 'array',
18555
+ },
18556
+ kind: {
18557
+ anyOf: [
18558
+ {
18559
+ const: 'custom',
18560
+ type: 'string',
18561
+ },
18562
+ {
18563
+ const: 'equipment',
18564
+ type: 'string',
18565
+ },
18566
+ {
18567
+ const: 'finance',
18568
+ type: 'string',
18569
+ },
18570
+ {
18571
+ const: 'hr',
18572
+ type: 'string',
18573
+ },
18574
+ {
18575
+ const: 'letter',
18576
+ type: 'string',
18577
+ },
18578
+ {
18579
+ const: 'slack',
18580
+ type: 'string',
18581
+ },
18582
+ ],
18583
+ },
18584
+ name: {
18585
+ type: 'string',
18586
+ },
18587
+ onApproval: {
18588
+ anyOf: [
18589
+ {
18590
+ const: 'assign_task_to_owner',
18591
+ type: 'string',
18592
+ },
18593
+ {
18594
+ const: 'none',
18595
+ type: 'string',
18596
+ },
18597
+ ],
18598
+ },
18599
+ ownerPersonIds: {
18600
+ items: {
18601
+ type: 'string',
18602
+ },
18603
+ type: 'array',
18604
+ },
18605
+ requestKey: {
18606
+ maxLength: 128,
18607
+ minLength: 1,
18608
+ type: 'string',
18609
+ },
18610
+ responseDays: {
18611
+ type: 'number',
18612
+ },
18613
+ sensitive: {
18614
+ anyOf: [
18615
+ {
18616
+ const: false,
18617
+ type: 'boolean',
18618
+ },
18619
+ {
18620
+ const: true,
18621
+ type: 'boolean',
18622
+ },
18623
+ ],
18624
+ },
18625
+ typeId: {
18626
+ type: 'string',
18627
+ },
18628
+ },
18629
+ required: ['name', 'confirm', 'requestKey'],
18630
+ type: 'object',
18631
+ },
18632
+ path: ['requests', 'saveType'],
18633
+ permission: 'requests.saveType',
18634
+ scope: 'hr:write',
18635
+ summary: 'Add or change a request type: its fields, approvers, owners and response target',
18636
+ },
18637
+ {
18638
+ access: 'read',
18639
+ command: ['requests', 'types'],
18640
+ input: {
18641
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18642
+ additionalProperties: false,
18643
+ properties: {
18644
+ includeArchived: {
18645
+ anyOf: [
18646
+ {
18647
+ const: false,
18648
+ type: 'boolean',
18649
+ },
18650
+ {
18651
+ const: true,
18652
+ type: 'boolean',
18653
+ },
18654
+ ],
18655
+ },
18656
+ },
18657
+ type: 'object',
18658
+ },
18659
+ path: ['requests', 'types'],
18660
+ permission: 'requests.types',
18661
+ scope: 'self:read',
18662
+ summary: 'List the kinds of request people can make here and what each asks for',
18663
+ },
18257
18664
  {
18258
18665
  access: 'read',
18259
18666
  command: ['requests', 'waiting'],
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.9.0",
5
- "@shuffl/sdk": "0.9.0"
4
+ "@shuffl/api-contracts": "0.11.0",
5
+ "@shuffl/sdk": "0.11.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.9.0",
36
+ "version": "0.11.0",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }