@shuffl/cli 0.7.28 → 0.7.30

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.
@@ -902,6 +902,119 @@ export const commands = [
902
902
  scope: 'assistant:write',
903
903
  summary: 'Stop an answer Mello is still writing',
904
904
  },
905
+ {
906
+ access: 'read',
907
+ command: ['availability', 'free-time'],
908
+ input: {
909
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
910
+ additionalProperties: false,
911
+ properties: {
912
+ days: {
913
+ type: 'number',
914
+ },
915
+ personId: {
916
+ type: 'string',
917
+ },
918
+ },
919
+ required: ['personId'],
920
+ type: 'object',
921
+ },
922
+ path: ['availability', 'freeTime'],
923
+ permission: 'availability.freeTime',
924
+ scope: 'users:read',
925
+ summary: 'Read when a coworker is free in their working hours, from their shared calendar',
926
+ },
927
+ {
928
+ access: 'write',
929
+ command: ['availability', 'save-settings'],
930
+ input: {
931
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
932
+ additionalProperties: false,
933
+ properties: {
934
+ confirm: {
935
+ const: 'availability.saveSettings',
936
+ type: 'string',
937
+ },
938
+ enabled: {
939
+ type: 'boolean',
940
+ },
941
+ requestKey: {
942
+ maxLength: 128,
943
+ minLength: 1,
944
+ type: 'string',
945
+ },
946
+ },
947
+ required: ['enabled', 'confirm', 'requestKey'],
948
+ type: 'object',
949
+ },
950
+ path: ['availability', 'saveSettings'],
951
+ permission: 'availability.saveSettings',
952
+ scope: 'team:write',
953
+ summary: 'Turn Who’s out on or off for the workspace',
954
+ },
955
+ {
956
+ access: 'read',
957
+ command: ['availability', 'settings'],
958
+ input: {
959
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
960
+ additionalProperties: false,
961
+ properties: {},
962
+ type: 'object',
963
+ },
964
+ path: ['availability', 'settings'],
965
+ permission: 'availability.settings',
966
+ scope: 'team:read',
967
+ summary: 'Read whether Who’s out is on for the workspace',
968
+ },
969
+ {
970
+ access: 'write',
971
+ command: ['availability', 'share'],
972
+ input: {
973
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
974
+ additionalProperties: false,
975
+ properties: {
976
+ confirm: {
977
+ const: 'availability.share',
978
+ type: 'string',
979
+ },
980
+ requestKey: {
981
+ maxLength: 128,
982
+ minLength: 1,
983
+ type: 'string',
984
+ },
985
+ share: {
986
+ type: 'boolean',
987
+ },
988
+ },
989
+ required: ['share', 'confirm', 'requestKey'],
990
+ type: 'object',
991
+ },
992
+ path: ['availability', 'share'],
993
+ permission: 'availability.share',
994
+ scope: 'self:write',
995
+ summary: 'Choose whether coworkers see when you’re out and free',
996
+ },
997
+ {
998
+ access: 'read',
999
+ command: ['availability', 'whos-out'],
1000
+ input: {
1001
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
1002
+ additionalProperties: false,
1003
+ properties: {
1004
+ days: {
1005
+ type: 'number',
1006
+ },
1007
+ from: {
1008
+ type: 'string',
1009
+ },
1010
+ },
1011
+ type: 'object',
1012
+ },
1013
+ path: ['availability', 'whosOut'],
1014
+ permission: 'availability.whosOut',
1015
+ scope: 'users:read',
1016
+ summary: 'Read who is out in the coming days, from shared calendars and the HR system',
1017
+ },
905
1018
  {
906
1019
  access: 'write',
907
1020
  command: ['badges', 'award'],
@@ -1440,6 +1553,10 @@ export const commands = [
1440
1553
  const: 'badges',
1441
1554
  type: 'string',
1442
1555
  },
1556
+ {
1557
+ const: 'calendar_sharing',
1558
+ type: 'string',
1559
+ },
1443
1560
  {
1444
1561
  const: 'celebrations',
1445
1562
  type: 'string',
@@ -1464,6 +1581,10 @@ export const commands = [
1464
1581
  const: 'connections_program',
1465
1582
  type: 'string',
1466
1583
  },
1584
+ {
1585
+ const: 'free_time',
1586
+ type: 'string',
1587
+ },
1467
1588
  {
1468
1589
  const: 'groups',
1469
1590
  type: 'string',
@@ -1576,6 +1697,10 @@ export const commands = [
1576
1697
  const: 'spend_policy',
1577
1698
  type: 'string',
1578
1699
  },
1700
+ {
1701
+ const: 'spend_reimbursements',
1702
+ type: 'string',
1703
+ },
1579
1704
  {
1580
1705
  const: 'time_off_balance',
1581
1706
  type: 'string',
@@ -1592,6 +1717,10 @@ export const commands = [
1592
1717
  const: 'who_knows',
1593
1718
  type: 'string',
1594
1719
  },
1720
+ {
1721
+ const: 'whos_out',
1722
+ type: 'string',
1723
+ },
1595
1724
  {
1596
1725
  const: 'workspace',
1597
1726
  type: 'string',
@@ -1641,6 +1770,10 @@ export const commands = [
1641
1770
  const: 'badges',
1642
1771
  type: 'string',
1643
1772
  },
1773
+ {
1774
+ const: 'calendar_sharing',
1775
+ type: 'string',
1776
+ },
1644
1777
  {
1645
1778
  const: 'celebrations',
1646
1779
  type: 'string',
@@ -1665,6 +1798,10 @@ export const commands = [
1665
1798
  const: 'connections_program',
1666
1799
  type: 'string',
1667
1800
  },
1801
+ {
1802
+ const: 'free_time',
1803
+ type: 'string',
1804
+ },
1668
1805
  {
1669
1806
  const: 'groups',
1670
1807
  type: 'string',
@@ -1777,6 +1914,10 @@ export const commands = [
1777
1914
  const: 'spend_policy',
1778
1915
  type: 'string',
1779
1916
  },
1917
+ {
1918
+ const: 'spend_reimbursements',
1919
+ type: 'string',
1920
+ },
1780
1921
  {
1781
1922
  const: 'time_off_balance',
1782
1923
  type: 'string',
@@ -1793,6 +1934,10 @@ export const commands = [
1793
1934
  const: 'who_knows',
1794
1935
  type: 'string',
1795
1936
  },
1937
+ {
1938
+ const: 'whos_out',
1939
+ type: 'string',
1940
+ },
1796
1941
  {
1797
1942
  const: 'workspace',
1798
1943
  type: 'string',
@@ -3343,6 +3488,26 @@ export const commands = [
3343
3488
  const: 'assistant.stop',
3344
3489
  type: 'string',
3345
3490
  },
3491
+ {
3492
+ const: 'availability.freeTime',
3493
+ type: 'string',
3494
+ },
3495
+ {
3496
+ const: 'availability.saveSettings',
3497
+ type: 'string',
3498
+ },
3499
+ {
3500
+ const: 'availability.settings',
3501
+ type: 'string',
3502
+ },
3503
+ {
3504
+ const: 'availability.share',
3505
+ type: 'string',
3506
+ },
3507
+ {
3508
+ const: 'availability.whosOut',
3509
+ type: 'string',
3510
+ },
3346
3511
  {
3347
3512
  const: 'badges.award',
3348
3513
  type: 'string',
@@ -3631,6 +3796,22 @@ export const commands = [
3631
3796
  const: 'digest.settings',
3632
3797
  type: 'string',
3633
3798
  },
3799
+ {
3800
+ const: 'expenses.mine',
3801
+ type: 'string',
3802
+ },
3803
+ {
3804
+ const: 'expenses.stageReceipt',
3805
+ type: 'string',
3806
+ },
3807
+ {
3808
+ const: 'expenses.submitMileage',
3809
+ type: 'string',
3810
+ },
3811
+ {
3812
+ const: 'expenses.submitReceipt',
3813
+ type: 'string',
3814
+ },
3634
3815
  {
3635
3816
  const: 'exports.team',
3636
3817
  type: 'string',
@@ -4815,6 +4996,10 @@ export const commands = [
4815
4996
  const: 'spend.programs',
4816
4997
  type: 'string',
4817
4998
  },
4999
+ {
5000
+ const: 'spend.setWrites',
5001
+ type: 'string',
5002
+ },
4818
5003
  {
4819
5004
  const: 'support.assign',
4820
5005
  type: 'string',
@@ -5442,6 +5627,122 @@ export const commands = [
5442
5627
  scope: 'team:read',
5443
5628
  summary: 'Read the HR digest schedule',
5444
5629
  },
5630
+ {
5631
+ access: 'read',
5632
+ command: ['expenses', 'mine'],
5633
+ input: {
5634
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5635
+ additionalProperties: false,
5636
+ properties: {},
5637
+ type: 'object',
5638
+ },
5639
+ path: ['expenses', 'mine'],
5640
+ permission: 'expenses.mine',
5641
+ scope: 'self:read',
5642
+ summary: 'Read your own reimbursements Mello filed and where each one stands',
5643
+ },
5644
+ {
5645
+ access: 'write',
5646
+ command: ['expenses', 'stage-receipt'],
5647
+ input: {
5648
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5649
+ additionalProperties: false,
5650
+ properties: {
5651
+ confirm: {
5652
+ const: 'expenses.stageReceipt',
5653
+ type: 'string',
5654
+ },
5655
+ fileName: {
5656
+ type: 'string',
5657
+ },
5658
+ receipt: {
5659
+ type: 'string',
5660
+ },
5661
+ requestKey: {
5662
+ maxLength: 128,
5663
+ minLength: 1,
5664
+ type: 'string',
5665
+ },
5666
+ },
5667
+ required: ['fileName', 'receipt', 'confirm', 'requestKey'],
5668
+ type: 'object',
5669
+ },
5670
+ path: ['expenses', 'stageReceipt'],
5671
+ permission: 'expenses.stageReceipt',
5672
+ scope: 'self:write',
5673
+ summary: 'Hand over a receipt photo or PDF for a reimbursement; it is kept for a day until filed',
5674
+ },
5675
+ {
5676
+ access: 'write',
5677
+ command: ['expenses', 'submit-mileage'],
5678
+ input: {
5679
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5680
+ additionalProperties: false,
5681
+ properties: {
5682
+ confirm: {
5683
+ const: 'expenses.submitMileage',
5684
+ type: 'string',
5685
+ },
5686
+ from: {
5687
+ type: ['null', 'string'],
5688
+ },
5689
+ memo: {
5690
+ type: 'string',
5691
+ },
5692
+ miles: {
5693
+ type: 'number',
5694
+ },
5695
+ requestKey: {
5696
+ maxLength: 128,
5697
+ minLength: 1,
5698
+ type: 'string',
5699
+ },
5700
+ to: {
5701
+ type: ['null', 'string'],
5702
+ },
5703
+ tripDate: {
5704
+ type: 'string',
5705
+ },
5706
+ },
5707
+ required: ['memo', 'miles', 'requestKey', 'tripDate', 'confirm'],
5708
+ type: 'object',
5709
+ },
5710
+ path: ['expenses', 'submitMileage'],
5711
+ permission: 'expenses.submitMileage',
5712
+ scope: 'self:write',
5713
+ summary: 'File a mileage reimbursement for a work trip; the spend platform applies the rate',
5714
+ },
5715
+ {
5716
+ access: 'write',
5717
+ command: ['expenses', 'submit-receipt'],
5718
+ input: {
5719
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5720
+ additionalProperties: false,
5721
+ properties: {
5722
+ confirm: {
5723
+ const: 'expenses.submitReceipt',
5724
+ type: 'string',
5725
+ },
5726
+ memo: {
5727
+ type: 'string',
5728
+ },
5729
+ receiptId: {
5730
+ type: 'string',
5731
+ },
5732
+ requestKey: {
5733
+ maxLength: 128,
5734
+ minLength: 1,
5735
+ type: 'string',
5736
+ },
5737
+ },
5738
+ required: ['memo', 'receiptId', 'requestKey', 'confirm'],
5739
+ type: 'object',
5740
+ },
5741
+ path: ['expenses', 'submitReceipt'],
5742
+ permission: 'expenses.submitReceipt',
5743
+ scope: 'self:write',
5744
+ summary: 'File a reimbursement from a receipt you handed over; the spend platform drafts it from the receipt',
5745
+ },
5445
5746
  {
5446
5747
  access: 'read',
5447
5748
  command: ['exports', 'team'],
@@ -17259,6 +17560,37 @@ export const commands = [
17259
17560
  scope: 'integrations:read',
17260
17561
  summary: 'Read the spend programs as the spend platform holds them now',
17261
17562
  },
17563
+ {
17564
+ access: 'write',
17565
+ command: ['spend', 'set-writes'],
17566
+ input: {
17567
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
17568
+ additionalProperties: false,
17569
+ properties: {
17570
+ confirm: {
17571
+ const: 'spend.setWrites',
17572
+ type: 'string',
17573
+ },
17574
+ connectionId: {
17575
+ type: 'string',
17576
+ },
17577
+ enabled: {
17578
+ type: 'boolean',
17579
+ },
17580
+ requestKey: {
17581
+ maxLength: 128,
17582
+ minLength: 1,
17583
+ type: 'string',
17584
+ },
17585
+ },
17586
+ required: ['connectionId', 'enabled', 'confirm', 'requestKey'],
17587
+ type: 'object',
17588
+ },
17589
+ path: ['spend', 'setWrites'],
17590
+ permission: 'spend.setWrites',
17591
+ scope: 'integrations:write',
17592
+ summary: 'Let Mello file reimbursements in the spend platform, or stop it',
17593
+ },
17262
17594
  {
17263
17595
  access: 'write',
17264
17596
  command: ['support', 'assign'],
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.7.28",
5
- "@shuffl/sdk": "0.7.28"
4
+ "@shuffl/api-contracts": "0.7.30",
5
+ "@shuffl/sdk": "0.7.30"
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.7.28",
36
+ "version": "0.7.30",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }