@shuffl/cli 0.7.32 → 0.7.34

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.
@@ -1701,6 +1701,10 @@ export const commands = [
1701
1701
  const: 'pulse_mine',
1702
1702
  type: 'string',
1703
1703
  },
1704
+ {
1705
+ const: 'spend_cards',
1706
+ type: 'string',
1707
+ },
1704
1708
  {
1705
1709
  const: 'spend_limits',
1706
1710
  type: 'string',
@@ -1930,6 +1934,10 @@ export const commands = [
1930
1934
  const: 'pulse_mine',
1931
1935
  type: 'string',
1932
1936
  },
1937
+ {
1938
+ const: 'spend_cards',
1939
+ type: 'string',
1940
+ },
1933
1941
  {
1934
1942
  const: 'spend_limits',
1935
1943
  type: 'string',
@@ -5084,6 +5092,30 @@ export const commands = [
5084
5092
  const: 'runs.stopKnownFailures',
5085
5093
  type: 'string',
5086
5094
  },
5095
+ {
5096
+ const: 'spend.cards.changes',
5097
+ type: 'string',
5098
+ },
5099
+ {
5100
+ const: 'spend.cards.dismissChange',
5101
+ type: 'string',
5102
+ },
5103
+ {
5104
+ const: 'spend.cards.forPerson',
5105
+ type: 'string',
5106
+ },
5107
+ {
5108
+ const: 'spend.cards.issue',
5109
+ type: 'string',
5110
+ },
5111
+ {
5112
+ const: 'spend.cards.lock',
5113
+ type: 'string',
5114
+ },
5115
+ {
5116
+ const: 'spend.cards.updateLimit',
5117
+ type: 'string',
5118
+ },
5087
5119
  {
5088
5120
  const: 'spend.current',
5089
5121
  type: 'string',
@@ -5104,6 +5136,10 @@ export const commands = [
5104
5136
  const: 'spend.programs',
5105
5137
  type: 'string',
5106
5138
  },
5139
+ {
5140
+ const: 'spend.setCardLimits',
5141
+ type: 'string',
5142
+ },
5107
5143
  {
5108
5144
  const: 'spend.setWrites',
5109
5145
  type: 'string',
@@ -13424,6 +13460,25 @@ export const commands = [
13424
13460
  body: {
13425
13461
  type: 'string',
13426
13462
  },
13463
+ card: {
13464
+ additionalProperties: false,
13465
+ properties: {
13466
+ operation: {
13467
+ anyOf: [
13468
+ {
13469
+ const: 'issue',
13470
+ type: 'string',
13471
+ },
13472
+ {
13473
+ const: 'lock',
13474
+ type: 'string',
13475
+ },
13476
+ ],
13477
+ },
13478
+ },
13479
+ required: ['operation'],
13480
+ type: 'object',
13481
+ },
13427
13482
  checkpoint: {
13428
13483
  anyOf: [
13429
13484
  {
@@ -13513,6 +13568,10 @@ export const commands = [
13513
13568
  const: 'acknowledge',
13514
13569
  type: 'string',
13515
13570
  },
13571
+ {
13572
+ const: 'card',
13573
+ type: 'string',
13574
+ },
13516
13575
  {
13517
13576
  const: 'checkpoint',
13518
13577
  type: 'string',
@@ -18299,6 +18358,163 @@ export const commands = [
18299
18358
  scope: 'runs:write',
18300
18359
  summary: 'Queue introductions using a preview and idempotent request key',
18301
18360
  },
18361
+ {
18362
+ access: 'read',
18363
+ command: ['spend', 'cards', 'changes'],
18364
+ input: {
18365
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18366
+ additionalProperties: false,
18367
+ properties: {},
18368
+ type: 'object',
18369
+ },
18370
+ path: ['spend', 'cards', 'changes'],
18371
+ permission: 'spend.cards.changes',
18372
+ scope: 'integrations:read',
18373
+ summary: 'List card changes waiting for HR after someone moved in People',
18374
+ },
18375
+ {
18376
+ access: 'write',
18377
+ command: ['spend', 'cards', 'dismiss-change'],
18378
+ input: {
18379
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18380
+ additionalProperties: false,
18381
+ properties: {
18382
+ actionId: {
18383
+ type: 'string',
18384
+ },
18385
+ confirm: {
18386
+ const: 'spend.cards.dismissChange',
18387
+ type: 'string',
18388
+ },
18389
+ requestKey: {
18390
+ maxLength: 128,
18391
+ minLength: 1,
18392
+ type: 'string',
18393
+ },
18394
+ },
18395
+ required: ['actionId', 'confirm', 'requestKey'],
18396
+ type: 'object',
18397
+ },
18398
+ path: ['spend', 'cards', 'dismissChange'],
18399
+ permission: 'spend.cards.dismissChange',
18400
+ scope: 'integrations:write',
18401
+ summary: 'Dismiss a card change waiting after a move; nothing changes in the spend platform',
18402
+ },
18403
+ {
18404
+ access: 'read',
18405
+ command: ['spend', 'cards', 'for-person'],
18406
+ input: {
18407
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18408
+ additionalProperties: false,
18409
+ properties: {
18410
+ personId: {
18411
+ type: 'string',
18412
+ },
18413
+ },
18414
+ required: ['personId'],
18415
+ type: 'object',
18416
+ },
18417
+ path: ['spend', 'cards', 'forPerson'],
18418
+ permission: 'spend.cards.forPerson',
18419
+ scope: 'integrations:read',
18420
+ summary: 'Read one person’s company cards, the limit their groups map to and what Shuffl changed',
18421
+ },
18422
+ {
18423
+ access: 'write',
18424
+ command: ['spend', 'cards', 'issue'],
18425
+ input: {
18426
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18427
+ additionalProperties: false,
18428
+ properties: {
18429
+ cardLimit: {
18430
+ type: 'number',
18431
+ },
18432
+ confirm: {
18433
+ const: 'spend.cards.issue',
18434
+ type: 'string',
18435
+ },
18436
+ personId: {
18437
+ type: 'string',
18438
+ },
18439
+ requestKey: {
18440
+ maxLength: 128,
18441
+ minLength: 1,
18442
+ type: 'string',
18443
+ },
18444
+ },
18445
+ required: ['personId', 'requestKey', 'confirm'],
18446
+ type: 'object',
18447
+ },
18448
+ path: ['spend', 'cards', 'issue'],
18449
+ permission: 'spend.cards.issue',
18450
+ scope: 'integrations:write',
18451
+ summary: 'Issue someone a virtual company card with the limit their groups map to',
18452
+ },
18453
+ {
18454
+ access: 'write',
18455
+ command: ['spend', 'cards', 'lock'],
18456
+ input: {
18457
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18458
+ additionalProperties: false,
18459
+ properties: {
18460
+ confirm: {
18461
+ const: 'spend.cards.lock',
18462
+ type: 'string',
18463
+ },
18464
+ personId: {
18465
+ type: 'string',
18466
+ },
18467
+ requestKey: {
18468
+ maxLength: 128,
18469
+ minLength: 1,
18470
+ type: 'string',
18471
+ },
18472
+ },
18473
+ required: ['personId', 'requestKey', 'confirm'],
18474
+ type: 'object',
18475
+ },
18476
+ path: ['spend', 'cards', 'lock'],
18477
+ permission: 'spend.cards.lock',
18478
+ scope: 'integrations:write',
18479
+ summary: 'Lock every company card a person holds and read each one back',
18480
+ },
18481
+ {
18482
+ access: 'write',
18483
+ command: ['spend', 'cards', 'update-limit'],
18484
+ input: {
18485
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18486
+ additionalProperties: false,
18487
+ properties: {
18488
+ actionId: {
18489
+ type: 'string',
18490
+ },
18491
+ cardId: {
18492
+ type: 'string',
18493
+ },
18494
+ cardLimit: {
18495
+ type: 'number',
18496
+ },
18497
+ confirm: {
18498
+ const: 'spend.cards.updateLimit',
18499
+ type: 'string',
18500
+ },
18501
+ personId: {
18502
+ type: 'string',
18503
+ },
18504
+ requestKey: {
18505
+ maxLength: 128,
18506
+ minLength: 1,
18507
+ type: 'string',
18508
+ },
18509
+ },
18510
+ required: ['personId', 'requestKey', 'confirm'],
18511
+ type: 'object',
18512
+ },
18513
+ path: ['spend', 'cards', 'updateLimit'],
18514
+ permission: 'spend.cards.updateLimit',
18515
+ scope: 'integrations:write',
18516
+ summary: 'Change a company card’s limit and make the person’s manager its approver',
18517
+ },
18302
18518
  {
18303
18519
  access: 'read',
18304
18520
  command: ['spend', 'current'],
@@ -18402,6 +18618,83 @@ export const commands = [
18402
18618
  scope: 'integrations:read',
18403
18619
  summary: 'Read the spend programs as the spend platform holds them now',
18404
18620
  },
18621
+ {
18622
+ access: 'write',
18623
+ command: ['spend', 'set-card-limits'],
18624
+ input: {
18625
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18626
+ additionalProperties: false,
18627
+ properties: {
18628
+ confirm: {
18629
+ const: 'spend.setCardLimits',
18630
+ type: 'string',
18631
+ },
18632
+ connectionId: {
18633
+ type: 'string',
18634
+ },
18635
+ limits: {
18636
+ additionalProperties: false,
18637
+ properties: {
18638
+ currency: {
18639
+ type: 'string',
18640
+ },
18641
+ defaultCardLimit: {
18642
+ type: ['null', 'number'],
18643
+ },
18644
+ groups: {
18645
+ items: {
18646
+ additionalProperties: false,
18647
+ properties: {
18648
+ cardLimit: {
18649
+ type: 'number',
18650
+ },
18651
+ groupId: {
18652
+ type: 'string',
18653
+ },
18654
+ },
18655
+ required: ['cardLimit', 'groupId'],
18656
+ type: 'object',
18657
+ },
18658
+ type: 'array',
18659
+ },
18660
+ interval: {
18661
+ anyOf: [
18662
+ {
18663
+ const: 'monthly',
18664
+ type: 'string',
18665
+ },
18666
+ {
18667
+ const: 'quarterly',
18668
+ type: 'string',
18669
+ },
18670
+ {
18671
+ const: 'total',
18672
+ type: 'string',
18673
+ },
18674
+ {
18675
+ const: 'yearly',
18676
+ type: 'string',
18677
+ },
18678
+ ],
18679
+ },
18680
+ },
18681
+ required: ['defaultCardLimit', 'groups'],
18682
+ type: 'object',
18683
+ },
18684
+ requestKey: {
18685
+ maxLength: 128,
18686
+ minLength: 1,
18687
+ type: 'string',
18688
+ },
18689
+ },
18690
+ required: ['connectionId', 'limits', 'confirm', 'requestKey'],
18691
+ type: 'object',
18692
+ },
18693
+ path: ['spend', 'setCardLimits'],
18694
+ permission: 'spend.setCardLimits',
18695
+ scope: 'integrations:write',
18696
+ summary: 'Set the limit new company cards get for each group, and the default',
18697
+ },
18405
18698
  {
18406
18699
  access: 'write',
18407
18700
  command: ['spend', 'set-writes'],
@@ -18431,7 +18724,7 @@ export const commands = [
18431
18724
  path: ['spend', 'setWrites'],
18432
18725
  permission: 'spend.setWrites',
18433
18726
  scope: 'integrations:write',
18434
- summary: 'Let Mello file reimbursements in the spend platform, or stop it',
18727
+ summary: 'Let Shuffl file reimbursements and change company cards in the spend platform, or stop it',
18435
18728
  },
18436
18729
  {
18437
18730
  access: 'write',
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.32",
5
- "@shuffl/sdk": "0.7.32"
4
+ "@shuffl/api-contracts": "0.7.34",
5
+ "@shuffl/sdk": "0.7.34"
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.32",
36
+ "version": "0.7.34",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }