@shuffl/cli 0.7.32 → 0.7.33
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.
- package/dist/commands.generated.js +271 -1
- package/package.json +3 -3
|
@@ -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',
|
|
@@ -18299,6 +18335,163 @@ export const commands = [
|
|
|
18299
18335
|
scope: 'runs:write',
|
|
18300
18336
|
summary: 'Queue introductions using a preview and idempotent request key',
|
|
18301
18337
|
},
|
|
18338
|
+
{
|
|
18339
|
+
access: 'read',
|
|
18340
|
+
command: ['spend', 'cards', 'changes'],
|
|
18341
|
+
input: {
|
|
18342
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18343
|
+
additionalProperties: false,
|
|
18344
|
+
properties: {},
|
|
18345
|
+
type: 'object',
|
|
18346
|
+
},
|
|
18347
|
+
path: ['spend', 'cards', 'changes'],
|
|
18348
|
+
permission: 'spend.cards.changes',
|
|
18349
|
+
scope: 'integrations:read',
|
|
18350
|
+
summary: 'List card changes waiting for HR after someone moved in People',
|
|
18351
|
+
},
|
|
18352
|
+
{
|
|
18353
|
+
access: 'write',
|
|
18354
|
+
command: ['spend', 'cards', 'dismiss-change'],
|
|
18355
|
+
input: {
|
|
18356
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18357
|
+
additionalProperties: false,
|
|
18358
|
+
properties: {
|
|
18359
|
+
actionId: {
|
|
18360
|
+
type: 'string',
|
|
18361
|
+
},
|
|
18362
|
+
confirm: {
|
|
18363
|
+
const: 'spend.cards.dismissChange',
|
|
18364
|
+
type: 'string',
|
|
18365
|
+
},
|
|
18366
|
+
requestKey: {
|
|
18367
|
+
maxLength: 128,
|
|
18368
|
+
minLength: 1,
|
|
18369
|
+
type: 'string',
|
|
18370
|
+
},
|
|
18371
|
+
},
|
|
18372
|
+
required: ['actionId', 'confirm', 'requestKey'],
|
|
18373
|
+
type: 'object',
|
|
18374
|
+
},
|
|
18375
|
+
path: ['spend', 'cards', 'dismissChange'],
|
|
18376
|
+
permission: 'spend.cards.dismissChange',
|
|
18377
|
+
scope: 'integrations:write',
|
|
18378
|
+
summary: 'Dismiss a card change waiting after a move; nothing changes in the spend platform',
|
|
18379
|
+
},
|
|
18380
|
+
{
|
|
18381
|
+
access: 'read',
|
|
18382
|
+
command: ['spend', 'cards', 'for-person'],
|
|
18383
|
+
input: {
|
|
18384
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18385
|
+
additionalProperties: false,
|
|
18386
|
+
properties: {
|
|
18387
|
+
personId: {
|
|
18388
|
+
type: 'string',
|
|
18389
|
+
},
|
|
18390
|
+
},
|
|
18391
|
+
required: ['personId'],
|
|
18392
|
+
type: 'object',
|
|
18393
|
+
},
|
|
18394
|
+
path: ['spend', 'cards', 'forPerson'],
|
|
18395
|
+
permission: 'spend.cards.forPerson',
|
|
18396
|
+
scope: 'integrations:read',
|
|
18397
|
+
summary: 'Read one person’s company cards, the limit their groups map to and what Shuffl changed',
|
|
18398
|
+
},
|
|
18399
|
+
{
|
|
18400
|
+
access: 'write',
|
|
18401
|
+
command: ['spend', 'cards', 'issue'],
|
|
18402
|
+
input: {
|
|
18403
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18404
|
+
additionalProperties: false,
|
|
18405
|
+
properties: {
|
|
18406
|
+
cardLimit: {
|
|
18407
|
+
type: 'number',
|
|
18408
|
+
},
|
|
18409
|
+
confirm: {
|
|
18410
|
+
const: 'spend.cards.issue',
|
|
18411
|
+
type: 'string',
|
|
18412
|
+
},
|
|
18413
|
+
personId: {
|
|
18414
|
+
type: 'string',
|
|
18415
|
+
},
|
|
18416
|
+
requestKey: {
|
|
18417
|
+
maxLength: 128,
|
|
18418
|
+
minLength: 1,
|
|
18419
|
+
type: 'string',
|
|
18420
|
+
},
|
|
18421
|
+
},
|
|
18422
|
+
required: ['personId', 'requestKey', 'confirm'],
|
|
18423
|
+
type: 'object',
|
|
18424
|
+
},
|
|
18425
|
+
path: ['spend', 'cards', 'issue'],
|
|
18426
|
+
permission: 'spend.cards.issue',
|
|
18427
|
+
scope: 'integrations:write',
|
|
18428
|
+
summary: 'Issue someone a virtual company card with the limit their groups map to',
|
|
18429
|
+
},
|
|
18430
|
+
{
|
|
18431
|
+
access: 'write',
|
|
18432
|
+
command: ['spend', 'cards', 'lock'],
|
|
18433
|
+
input: {
|
|
18434
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18435
|
+
additionalProperties: false,
|
|
18436
|
+
properties: {
|
|
18437
|
+
confirm: {
|
|
18438
|
+
const: 'spend.cards.lock',
|
|
18439
|
+
type: 'string',
|
|
18440
|
+
},
|
|
18441
|
+
personId: {
|
|
18442
|
+
type: 'string',
|
|
18443
|
+
},
|
|
18444
|
+
requestKey: {
|
|
18445
|
+
maxLength: 128,
|
|
18446
|
+
minLength: 1,
|
|
18447
|
+
type: 'string',
|
|
18448
|
+
},
|
|
18449
|
+
},
|
|
18450
|
+
required: ['personId', 'requestKey', 'confirm'],
|
|
18451
|
+
type: 'object',
|
|
18452
|
+
},
|
|
18453
|
+
path: ['spend', 'cards', 'lock'],
|
|
18454
|
+
permission: 'spend.cards.lock',
|
|
18455
|
+
scope: 'integrations:write',
|
|
18456
|
+
summary: 'Lock every company card a person holds and read each one back',
|
|
18457
|
+
},
|
|
18458
|
+
{
|
|
18459
|
+
access: 'write',
|
|
18460
|
+
command: ['spend', 'cards', 'update-limit'],
|
|
18461
|
+
input: {
|
|
18462
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18463
|
+
additionalProperties: false,
|
|
18464
|
+
properties: {
|
|
18465
|
+
actionId: {
|
|
18466
|
+
type: 'string',
|
|
18467
|
+
},
|
|
18468
|
+
cardId: {
|
|
18469
|
+
type: 'string',
|
|
18470
|
+
},
|
|
18471
|
+
cardLimit: {
|
|
18472
|
+
type: 'number',
|
|
18473
|
+
},
|
|
18474
|
+
confirm: {
|
|
18475
|
+
const: 'spend.cards.updateLimit',
|
|
18476
|
+
type: 'string',
|
|
18477
|
+
},
|
|
18478
|
+
personId: {
|
|
18479
|
+
type: 'string',
|
|
18480
|
+
},
|
|
18481
|
+
requestKey: {
|
|
18482
|
+
maxLength: 128,
|
|
18483
|
+
minLength: 1,
|
|
18484
|
+
type: 'string',
|
|
18485
|
+
},
|
|
18486
|
+
},
|
|
18487
|
+
required: ['personId', 'requestKey', 'confirm'],
|
|
18488
|
+
type: 'object',
|
|
18489
|
+
},
|
|
18490
|
+
path: ['spend', 'cards', 'updateLimit'],
|
|
18491
|
+
permission: 'spend.cards.updateLimit',
|
|
18492
|
+
scope: 'integrations:write',
|
|
18493
|
+
summary: 'Change a company card’s limit and make the person’s manager its approver',
|
|
18494
|
+
},
|
|
18302
18495
|
{
|
|
18303
18496
|
access: 'read',
|
|
18304
18497
|
command: ['spend', 'current'],
|
|
@@ -18402,6 +18595,83 @@ export const commands = [
|
|
|
18402
18595
|
scope: 'integrations:read',
|
|
18403
18596
|
summary: 'Read the spend programs as the spend platform holds them now',
|
|
18404
18597
|
},
|
|
18598
|
+
{
|
|
18599
|
+
access: 'write',
|
|
18600
|
+
command: ['spend', 'set-card-limits'],
|
|
18601
|
+
input: {
|
|
18602
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18603
|
+
additionalProperties: false,
|
|
18604
|
+
properties: {
|
|
18605
|
+
confirm: {
|
|
18606
|
+
const: 'spend.setCardLimits',
|
|
18607
|
+
type: 'string',
|
|
18608
|
+
},
|
|
18609
|
+
connectionId: {
|
|
18610
|
+
type: 'string',
|
|
18611
|
+
},
|
|
18612
|
+
limits: {
|
|
18613
|
+
additionalProperties: false,
|
|
18614
|
+
properties: {
|
|
18615
|
+
currency: {
|
|
18616
|
+
type: 'string',
|
|
18617
|
+
},
|
|
18618
|
+
defaultCardLimit: {
|
|
18619
|
+
type: ['null', 'number'],
|
|
18620
|
+
},
|
|
18621
|
+
groups: {
|
|
18622
|
+
items: {
|
|
18623
|
+
additionalProperties: false,
|
|
18624
|
+
properties: {
|
|
18625
|
+
cardLimit: {
|
|
18626
|
+
type: 'number',
|
|
18627
|
+
},
|
|
18628
|
+
groupId: {
|
|
18629
|
+
type: 'string',
|
|
18630
|
+
},
|
|
18631
|
+
},
|
|
18632
|
+
required: ['cardLimit', 'groupId'],
|
|
18633
|
+
type: 'object',
|
|
18634
|
+
},
|
|
18635
|
+
type: 'array',
|
|
18636
|
+
},
|
|
18637
|
+
interval: {
|
|
18638
|
+
anyOf: [
|
|
18639
|
+
{
|
|
18640
|
+
const: 'monthly',
|
|
18641
|
+
type: 'string',
|
|
18642
|
+
},
|
|
18643
|
+
{
|
|
18644
|
+
const: 'quarterly',
|
|
18645
|
+
type: 'string',
|
|
18646
|
+
},
|
|
18647
|
+
{
|
|
18648
|
+
const: 'total',
|
|
18649
|
+
type: 'string',
|
|
18650
|
+
},
|
|
18651
|
+
{
|
|
18652
|
+
const: 'yearly',
|
|
18653
|
+
type: 'string',
|
|
18654
|
+
},
|
|
18655
|
+
],
|
|
18656
|
+
},
|
|
18657
|
+
},
|
|
18658
|
+
required: ['defaultCardLimit', 'groups'],
|
|
18659
|
+
type: 'object',
|
|
18660
|
+
},
|
|
18661
|
+
requestKey: {
|
|
18662
|
+
maxLength: 128,
|
|
18663
|
+
minLength: 1,
|
|
18664
|
+
type: 'string',
|
|
18665
|
+
},
|
|
18666
|
+
},
|
|
18667
|
+
required: ['connectionId', 'limits', 'confirm', 'requestKey'],
|
|
18668
|
+
type: 'object',
|
|
18669
|
+
},
|
|
18670
|
+
path: ['spend', 'setCardLimits'],
|
|
18671
|
+
permission: 'spend.setCardLimits',
|
|
18672
|
+
scope: 'integrations:write',
|
|
18673
|
+
summary: 'Set the limit new company cards get for each group, and the default',
|
|
18674
|
+
},
|
|
18405
18675
|
{
|
|
18406
18676
|
access: 'write',
|
|
18407
18677
|
command: ['spend', 'set-writes'],
|
|
@@ -18431,7 +18701,7 @@ export const commands = [
|
|
|
18431
18701
|
path: ['spend', 'setWrites'],
|
|
18432
18702
|
permission: 'spend.setWrites',
|
|
18433
18703
|
scope: 'integrations:write',
|
|
18434
|
-
summary: 'Let
|
|
18704
|
+
summary: 'Let Shuffl file reimbursements and change company cards in the spend platform, or stop it',
|
|
18435
18705
|
},
|
|
18436
18706
|
{
|
|
18437
18707
|
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.
|
|
5
|
-
"@shuffl/sdk": "0.7.
|
|
4
|
+
"@shuffl/api-contracts": "0.7.33",
|
|
5
|
+
"@shuffl/sdk": "0.7.33"
|
|
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.
|
|
36
|
+
"version": "0.7.33",
|
|
37
37
|
"bin": {
|
|
38
38
|
"shuffl": "./dist/bin.js"
|
|
39
39
|
}
|