@shuffl/cli 0.7.29 → 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.
@@ -1697,6 +1697,10 @@ export const commands = [
1697
1697
  const: 'spend_policy',
1698
1698
  type: 'string',
1699
1699
  },
1700
+ {
1701
+ const: 'spend_reimbursements',
1702
+ type: 'string',
1703
+ },
1700
1704
  {
1701
1705
  const: 'time_off_balance',
1702
1706
  type: 'string',
@@ -1910,6 +1914,10 @@ export const commands = [
1910
1914
  const: 'spend_policy',
1911
1915
  type: 'string',
1912
1916
  },
1917
+ {
1918
+ const: 'spend_reimbursements',
1919
+ type: 'string',
1920
+ },
1913
1921
  {
1914
1922
  const: 'time_off_balance',
1915
1923
  type: 'string',
@@ -3788,6 +3796,22 @@ export const commands = [
3788
3796
  const: 'digest.settings',
3789
3797
  type: 'string',
3790
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
+ },
3791
3815
  {
3792
3816
  const: 'exports.team',
3793
3817
  type: 'string',
@@ -4972,6 +4996,10 @@ export const commands = [
4972
4996
  const: 'spend.programs',
4973
4997
  type: 'string',
4974
4998
  },
4999
+ {
5000
+ const: 'spend.setWrites',
5001
+ type: 'string',
5002
+ },
4975
5003
  {
4976
5004
  const: 'support.assign',
4977
5005
  type: 'string',
@@ -5599,6 +5627,122 @@ export const commands = [
5599
5627
  scope: 'team:read',
5600
5628
  summary: 'Read the HR digest schedule',
5601
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
+ },
5602
5746
  {
5603
5747
  access: 'read',
5604
5748
  command: ['exports', 'team'],
@@ -17416,6 +17560,37 @@ export const commands = [
17416
17560
  scope: 'integrations:read',
17417
17561
  summary: 'Read the spend programs as the spend platform holds them now',
17418
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
+ },
17419
17594
  {
17420
17595
  access: 'write',
17421
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.29",
5
- "@shuffl/sdk": "0.7.29"
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.29",
36
+ "version": "0.7.30",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }