@shuffl/cli 0.8.0 → 0.9.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.
- package/dist/commands.generated.js +269 -7
- package/package.json +3 -3
|
@@ -343,31 +343,31 @@ export const commands = [
|
|
|
343
343
|
type: 'string',
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
|
-
const: '
|
|
346
|
+
const: 'cancelled',
|
|
347
347
|
type: 'string',
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
|
-
const: '
|
|
350
|
+
const: 'declined',
|
|
351
351
|
type: 'string',
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
|
-
const: '
|
|
354
|
+
const: 'done',
|
|
355
355
|
type: 'string',
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
const: '
|
|
358
|
+
const: 'expired',
|
|
359
359
|
type: 'string',
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
|
-
const: '
|
|
362
|
+
const: 'failed',
|
|
363
363
|
type: 'string',
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
const: '
|
|
366
|
+
const: 'in_progress',
|
|
367
367
|
type: 'string',
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
|
-
const: '
|
|
370
|
+
const: 'pending_approval',
|
|
371
371
|
type: 'string',
|
|
372
372
|
},
|
|
373
373
|
{
|
|
@@ -1549,6 +1549,10 @@ export const commands = [
|
|
|
1549
1549
|
const: 'app_catalog',
|
|
1550
1550
|
type: 'string',
|
|
1551
1551
|
},
|
|
1552
|
+
{
|
|
1553
|
+
const: 'approvals_waiting',
|
|
1554
|
+
type: 'string',
|
|
1555
|
+
},
|
|
1552
1556
|
{
|
|
1553
1557
|
const: 'badges',
|
|
1554
1558
|
type: 'string',
|
|
@@ -1701,6 +1705,10 @@ export const commands = [
|
|
|
1701
1705
|
const: 'pulse_mine',
|
|
1702
1706
|
type: 'string',
|
|
1703
1707
|
},
|
|
1708
|
+
{
|
|
1709
|
+
const: 'requests',
|
|
1710
|
+
type: 'string',
|
|
1711
|
+
},
|
|
1704
1712
|
{
|
|
1705
1713
|
const: 'spend_cards',
|
|
1706
1714
|
type: 'string',
|
|
@@ -1782,6 +1790,10 @@ export const commands = [
|
|
|
1782
1790
|
const: 'app_catalog',
|
|
1783
1791
|
type: 'string',
|
|
1784
1792
|
},
|
|
1793
|
+
{
|
|
1794
|
+
const: 'approvals_waiting',
|
|
1795
|
+
type: 'string',
|
|
1796
|
+
},
|
|
1785
1797
|
{
|
|
1786
1798
|
const: 'badges',
|
|
1787
1799
|
type: 'string',
|
|
@@ -1934,6 +1946,10 @@ export const commands = [
|
|
|
1934
1946
|
const: 'pulse_mine',
|
|
1935
1947
|
type: 'string',
|
|
1936
1948
|
},
|
|
1949
|
+
{
|
|
1950
|
+
const: 'requests',
|
|
1951
|
+
type: 'string',
|
|
1952
|
+
},
|
|
1937
1953
|
{
|
|
1938
1954
|
const: 'spend_cards',
|
|
1939
1955
|
type: 'string',
|
|
@@ -5044,6 +5060,34 @@ export const commands = [
|
|
|
5044
5060
|
const: 'reports.playbooks',
|
|
5045
5061
|
type: 'string',
|
|
5046
5062
|
},
|
|
5063
|
+
{
|
|
5064
|
+
const: 'requests.answer',
|
|
5065
|
+
type: 'string',
|
|
5066
|
+
},
|
|
5067
|
+
{
|
|
5068
|
+
const: 'requests.cancel',
|
|
5069
|
+
type: 'string',
|
|
5070
|
+
},
|
|
5071
|
+
{
|
|
5072
|
+
const: 'requests.complete',
|
|
5073
|
+
type: 'string',
|
|
5074
|
+
},
|
|
5075
|
+
{
|
|
5076
|
+
const: 'requests.file',
|
|
5077
|
+
type: 'string',
|
|
5078
|
+
},
|
|
5079
|
+
{
|
|
5080
|
+
const: 'requests.get',
|
|
5081
|
+
type: 'string',
|
|
5082
|
+
},
|
|
5083
|
+
{
|
|
5084
|
+
const: 'requests.mine',
|
|
5085
|
+
type: 'string',
|
|
5086
|
+
},
|
|
5087
|
+
{
|
|
5088
|
+
const: 'requests.waiting',
|
|
5089
|
+
type: 'string',
|
|
5090
|
+
},
|
|
5047
5091
|
{
|
|
5048
5092
|
const: 'runs.details',
|
|
5049
5093
|
type: 'string',
|
|
@@ -18006,6 +18050,224 @@ export const commands = [
|
|
|
18006
18050
|
scope: 'reports:read',
|
|
18007
18051
|
summary: 'Read Onboarding insights',
|
|
18008
18052
|
},
|
|
18053
|
+
{
|
|
18054
|
+
access: 'write',
|
|
18055
|
+
command: ['requests', 'answer'],
|
|
18056
|
+
input: {
|
|
18057
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18058
|
+
additionalProperties: false,
|
|
18059
|
+
properties: {
|
|
18060
|
+
answer: {
|
|
18061
|
+
type: 'string',
|
|
18062
|
+
},
|
|
18063
|
+
confirm: {
|
|
18064
|
+
const: 'requests.answer',
|
|
18065
|
+
type: 'string',
|
|
18066
|
+
},
|
|
18067
|
+
requestId: {
|
|
18068
|
+
type: 'string',
|
|
18069
|
+
},
|
|
18070
|
+
requestKey: {
|
|
18071
|
+
maxLength: 128,
|
|
18072
|
+
minLength: 1,
|
|
18073
|
+
type: 'string',
|
|
18074
|
+
},
|
|
18075
|
+
},
|
|
18076
|
+
required: ['answer', 'requestId', 'confirm', 'requestKey'],
|
|
18077
|
+
type: 'object',
|
|
18078
|
+
},
|
|
18079
|
+
path: ['requests', 'answer'],
|
|
18080
|
+
permission: 'requests.answer',
|
|
18081
|
+
scope: 'self:write',
|
|
18082
|
+
summary: 'Answer an approver’s question on your request',
|
|
18083
|
+
},
|
|
18084
|
+
{
|
|
18085
|
+
access: 'write',
|
|
18086
|
+
command: ['requests', 'cancel'],
|
|
18087
|
+
input: {
|
|
18088
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18089
|
+
additionalProperties: false,
|
|
18090
|
+
properties: {
|
|
18091
|
+
confirm: {
|
|
18092
|
+
const: 'requests.cancel',
|
|
18093
|
+
type: 'string',
|
|
18094
|
+
},
|
|
18095
|
+
note: {
|
|
18096
|
+
type: 'string',
|
|
18097
|
+
},
|
|
18098
|
+
requestId: {
|
|
18099
|
+
type: 'string',
|
|
18100
|
+
},
|
|
18101
|
+
requestKey: {
|
|
18102
|
+
maxLength: 128,
|
|
18103
|
+
minLength: 1,
|
|
18104
|
+
type: 'string',
|
|
18105
|
+
},
|
|
18106
|
+
},
|
|
18107
|
+
required: ['requestId', 'confirm', 'requestKey'],
|
|
18108
|
+
type: 'object',
|
|
18109
|
+
},
|
|
18110
|
+
path: ['requests', 'cancel'],
|
|
18111
|
+
permission: 'requests.cancel',
|
|
18112
|
+
scope: 'self:write',
|
|
18113
|
+
summary: 'Cancel a request you made while it waits or before it is carried out',
|
|
18114
|
+
},
|
|
18115
|
+
{
|
|
18116
|
+
access: 'write',
|
|
18117
|
+
command: ['requests', 'complete'],
|
|
18118
|
+
input: {
|
|
18119
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18120
|
+
additionalProperties: false,
|
|
18121
|
+
properties: {
|
|
18122
|
+
confirm: {
|
|
18123
|
+
const: 'requests.complete',
|
|
18124
|
+
type: 'string',
|
|
18125
|
+
},
|
|
18126
|
+
note: {
|
|
18127
|
+
type: 'string',
|
|
18128
|
+
},
|
|
18129
|
+
requestId: {
|
|
18130
|
+
type: 'string',
|
|
18131
|
+
},
|
|
18132
|
+
requestKey: {
|
|
18133
|
+
maxLength: 128,
|
|
18134
|
+
minLength: 1,
|
|
18135
|
+
type: 'string',
|
|
18136
|
+
},
|
|
18137
|
+
},
|
|
18138
|
+
required: ['requestId', 'confirm', 'requestKey'],
|
|
18139
|
+
type: 'object',
|
|
18140
|
+
},
|
|
18141
|
+
path: ['requests', 'complete'],
|
|
18142
|
+
permission: 'requests.complete',
|
|
18143
|
+
scope: 'self:write',
|
|
18144
|
+
summary: 'Mark an approved request you carry out as done, so the person is told',
|
|
18145
|
+
},
|
|
18146
|
+
{
|
|
18147
|
+
access: 'write',
|
|
18148
|
+
command: ['requests', 'file'],
|
|
18149
|
+
input: {
|
|
18150
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18151
|
+
additionalProperties: false,
|
|
18152
|
+
properties: {
|
|
18153
|
+
approverPersonIds: {
|
|
18154
|
+
items: {
|
|
18155
|
+
type: 'string',
|
|
18156
|
+
},
|
|
18157
|
+
type: 'array',
|
|
18158
|
+
},
|
|
18159
|
+
confirm: {
|
|
18160
|
+
const: 'requests.file',
|
|
18161
|
+
type: 'string',
|
|
18162
|
+
},
|
|
18163
|
+
forPersonId: {
|
|
18164
|
+
type: 'string',
|
|
18165
|
+
},
|
|
18166
|
+
kind: {
|
|
18167
|
+
anyOf: [
|
|
18168
|
+
{
|
|
18169
|
+
const: 'custom',
|
|
18170
|
+
type: 'string',
|
|
18171
|
+
},
|
|
18172
|
+
{
|
|
18173
|
+
const: 'equipment',
|
|
18174
|
+
type: 'string',
|
|
18175
|
+
},
|
|
18176
|
+
{
|
|
18177
|
+
const: 'finance',
|
|
18178
|
+
type: 'string',
|
|
18179
|
+
},
|
|
18180
|
+
{
|
|
18181
|
+
const: 'hr',
|
|
18182
|
+
type: 'string',
|
|
18183
|
+
},
|
|
18184
|
+
{
|
|
18185
|
+
const: 'letter',
|
|
18186
|
+
type: 'string',
|
|
18187
|
+
},
|
|
18188
|
+
{
|
|
18189
|
+
const: 'slack',
|
|
18190
|
+
type: 'string',
|
|
18191
|
+
},
|
|
18192
|
+
],
|
|
18193
|
+
},
|
|
18194
|
+
note: {
|
|
18195
|
+
type: 'string',
|
|
18196
|
+
},
|
|
18197
|
+
ownerPersonIds: {
|
|
18198
|
+
items: {
|
|
18199
|
+
type: 'string',
|
|
18200
|
+
},
|
|
18201
|
+
type: 'array',
|
|
18202
|
+
},
|
|
18203
|
+
requestKey: {
|
|
18204
|
+
maxLength: 128,
|
|
18205
|
+
minLength: 1,
|
|
18206
|
+
type: 'string',
|
|
18207
|
+
},
|
|
18208
|
+
title: {
|
|
18209
|
+
type: 'string',
|
|
18210
|
+
},
|
|
18211
|
+
},
|
|
18212
|
+
required: ['requestKey', 'title', 'confirm'],
|
|
18213
|
+
type: 'object',
|
|
18214
|
+
},
|
|
18215
|
+
path: ['requests', 'file'],
|
|
18216
|
+
permission: 'requests.file',
|
|
18217
|
+
scope: 'self:write',
|
|
18218
|
+
summary: 'Ask for something that needs approval: what you need, why, and who should approve it',
|
|
18219
|
+
},
|
|
18220
|
+
{
|
|
18221
|
+
access: 'read',
|
|
18222
|
+
command: ['requests', 'get'],
|
|
18223
|
+
input: {
|
|
18224
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18225
|
+
additionalProperties: false,
|
|
18226
|
+
properties: {
|
|
18227
|
+
requestId: {
|
|
18228
|
+
type: 'string',
|
|
18229
|
+
},
|
|
18230
|
+
},
|
|
18231
|
+
required: ['requestId'],
|
|
18232
|
+
type: 'object',
|
|
18233
|
+
},
|
|
18234
|
+
path: ['requests', 'get'],
|
|
18235
|
+
permission: 'requests.get',
|
|
18236
|
+
scope: 'self:read',
|
|
18237
|
+
summary: 'Read one request you asked for, approve or carry out, with its history',
|
|
18238
|
+
},
|
|
18239
|
+
{
|
|
18240
|
+
access: 'read',
|
|
18241
|
+
command: ['requests', 'mine'],
|
|
18242
|
+
input: {
|
|
18243
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18244
|
+
additionalProperties: false,
|
|
18245
|
+
properties: {
|
|
18246
|
+
limit: {
|
|
18247
|
+
type: 'number',
|
|
18248
|
+
},
|
|
18249
|
+
},
|
|
18250
|
+
type: 'object',
|
|
18251
|
+
},
|
|
18252
|
+
path: ['requests', 'mine'],
|
|
18253
|
+
permission: 'requests.mine',
|
|
18254
|
+
scope: 'self:read',
|
|
18255
|
+
summary: 'List your own requests of every kind and where each stands',
|
|
18256
|
+
},
|
|
18257
|
+
{
|
|
18258
|
+
access: 'read',
|
|
18259
|
+
command: ['requests', 'waiting'],
|
|
18260
|
+
input: {
|
|
18261
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
18262
|
+
additionalProperties: false,
|
|
18263
|
+
properties: {},
|
|
18264
|
+
type: 'object',
|
|
18265
|
+
},
|
|
18266
|
+
path: ['requests', 'waiting'],
|
|
18267
|
+
permission: 'requests.waiting',
|
|
18268
|
+
scope: 'self:read',
|
|
18269
|
+
summary: 'List the requests waiting on you to decide or carry out',
|
|
18270
|
+
},
|
|
18009
18271
|
{
|
|
18010
18272
|
access: 'read',
|
|
18011
18273
|
command: ['runs', 'details'],
|
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.
|
|
5
|
-
"@shuffl/sdk": "0.
|
|
4
|
+
"@shuffl/api-contracts": "0.9.0",
|
|
5
|
+
"@shuffl/sdk": "0.9.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.
|
|
36
|
+
"version": "0.9.0",
|
|
37
37
|
"bin": {
|
|
38
38
|
"shuffl": "./dist/bin.js"
|
|
39
39
|
}
|