@shuffl/cli 0.7.30 → 0.7.31
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 +403 -0
- package/package.json +3 -3
|
@@ -1585,6 +1585,10 @@ export const commands = [
|
|
|
1585
1585
|
const: 'free_time',
|
|
1586
1586
|
type: 'string',
|
|
1587
1587
|
},
|
|
1588
|
+
{
|
|
1589
|
+
const: 'gifts',
|
|
1590
|
+
type: 'string',
|
|
1591
|
+
},
|
|
1588
1592
|
{
|
|
1589
1593
|
const: 'groups',
|
|
1590
1594
|
type: 'string',
|
|
@@ -1802,6 +1806,10 @@ export const commands = [
|
|
|
1802
1806
|
const: 'free_time',
|
|
1803
1807
|
type: 'string',
|
|
1804
1808
|
},
|
|
1809
|
+
{
|
|
1810
|
+
const: 'gifts',
|
|
1811
|
+
type: 'string',
|
|
1812
|
+
},
|
|
1805
1813
|
{
|
|
1806
1814
|
const: 'groups',
|
|
1807
1815
|
type: 'string',
|
|
@@ -3844,6 +3852,42 @@ export const commands = [
|
|
|
3844
3852
|
const: 'getStarted.wizard',
|
|
3845
3853
|
type: 'string',
|
|
3846
3854
|
},
|
|
3855
|
+
{
|
|
3856
|
+
const: 'gifts.approve',
|
|
3857
|
+
type: 'string',
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
const: 'gifts.approveMany',
|
|
3861
|
+
type: 'string',
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
const: 'gifts.current',
|
|
3865
|
+
type: 'string',
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
const: 'gifts.disconnect',
|
|
3869
|
+
type: 'string',
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
const: 'gifts.draft',
|
|
3873
|
+
type: 'string',
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
const: 'gifts.draftUpcoming',
|
|
3877
|
+
type: 'string',
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
const: 'gifts.options',
|
|
3881
|
+
type: 'string',
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
const: 'gifts.save',
|
|
3885
|
+
type: 'string',
|
|
3886
|
+
},
|
|
3887
|
+
{
|
|
3888
|
+
const: 'gifts.skip',
|
|
3889
|
+
type: 'string',
|
|
3890
|
+
},
|
|
3847
3891
|
{
|
|
3848
3892
|
const: 'groups.allAutomations',
|
|
3849
3893
|
type: 'string',
|
|
@@ -5982,6 +6026,365 @@ export const commands = [
|
|
|
5982
6026
|
scope: 'profile:write',
|
|
5983
6027
|
summary: 'Record that you opened, finished or skipped the welcome',
|
|
5984
6028
|
},
|
|
6029
|
+
{
|
|
6030
|
+
access: 'write',
|
|
6031
|
+
command: ['gifts', 'approve'],
|
|
6032
|
+
input: {
|
|
6033
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6034
|
+
additionalProperties: false,
|
|
6035
|
+
properties: {
|
|
6036
|
+
confirm: {
|
|
6037
|
+
const: 'gifts.approve',
|
|
6038
|
+
type: 'string',
|
|
6039
|
+
},
|
|
6040
|
+
giftId: {
|
|
6041
|
+
type: 'string',
|
|
6042
|
+
},
|
|
6043
|
+
requestKey: {
|
|
6044
|
+
maxLength: 128,
|
|
6045
|
+
minLength: 1,
|
|
6046
|
+
type: 'string',
|
|
6047
|
+
},
|
|
6048
|
+
},
|
|
6049
|
+
required: ['giftId', 'confirm', 'requestKey'],
|
|
6050
|
+
type: 'object',
|
|
6051
|
+
},
|
|
6052
|
+
path: ['gifts', 'approve'],
|
|
6053
|
+
permission: 'gifts.approve',
|
|
6054
|
+
scope: 'celebrations:write',
|
|
6055
|
+
summary: 'Approve and send this gift',
|
|
6056
|
+
},
|
|
6057
|
+
{
|
|
6058
|
+
access: 'write',
|
|
6059
|
+
command: ['gifts', 'approve-many'],
|
|
6060
|
+
input: {
|
|
6061
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6062
|
+
additionalProperties: false,
|
|
6063
|
+
properties: {
|
|
6064
|
+
confirm: {
|
|
6065
|
+
const: 'gifts.approveMany',
|
|
6066
|
+
type: 'string',
|
|
6067
|
+
},
|
|
6068
|
+
giftIds: {
|
|
6069
|
+
items: {
|
|
6070
|
+
type: 'string',
|
|
6071
|
+
},
|
|
6072
|
+
type: 'array',
|
|
6073
|
+
},
|
|
6074
|
+
requestKey: {
|
|
6075
|
+
maxLength: 128,
|
|
6076
|
+
minLength: 1,
|
|
6077
|
+
type: 'string',
|
|
6078
|
+
},
|
|
6079
|
+
},
|
|
6080
|
+
required: ['giftIds', 'confirm', 'requestKey'],
|
|
6081
|
+
type: 'object',
|
|
6082
|
+
},
|
|
6083
|
+
path: ['gifts', 'approveMany'],
|
|
6084
|
+
permission: 'gifts.approveMany',
|
|
6085
|
+
scope: 'celebrations:write',
|
|
6086
|
+
summary: 'Approve and send these gifts',
|
|
6087
|
+
},
|
|
6088
|
+
{
|
|
6089
|
+
access: 'read',
|
|
6090
|
+
command: ['gifts', 'current'],
|
|
6091
|
+
input: {
|
|
6092
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6093
|
+
additionalProperties: false,
|
|
6094
|
+
properties: {},
|
|
6095
|
+
type: 'object',
|
|
6096
|
+
},
|
|
6097
|
+
path: ['gifts', 'current'],
|
|
6098
|
+
permission: 'gifts.current',
|
|
6099
|
+
scope: 'celebrations:read',
|
|
6100
|
+
summary: 'Read gift budgets, this month’s spend against the cap, gifts waiting for approval and recent gifts',
|
|
6101
|
+
},
|
|
6102
|
+
{
|
|
6103
|
+
access: 'write',
|
|
6104
|
+
command: ['gifts', 'disconnect'],
|
|
6105
|
+
input: {
|
|
6106
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6107
|
+
additionalProperties: false,
|
|
6108
|
+
properties: {
|
|
6109
|
+
confirm: {
|
|
6110
|
+
const: 'gifts.disconnect',
|
|
6111
|
+
type: 'string',
|
|
6112
|
+
},
|
|
6113
|
+
connectionId: {
|
|
6114
|
+
type: 'string',
|
|
6115
|
+
},
|
|
6116
|
+
requestKey: {
|
|
6117
|
+
maxLength: 128,
|
|
6118
|
+
minLength: 1,
|
|
6119
|
+
type: 'string',
|
|
6120
|
+
},
|
|
6121
|
+
},
|
|
6122
|
+
required: ['connectionId', 'confirm', 'requestKey'],
|
|
6123
|
+
type: 'object',
|
|
6124
|
+
},
|
|
6125
|
+
path: ['gifts', 'disconnect'],
|
|
6126
|
+
permission: 'gifts.disconnect',
|
|
6127
|
+
scope: 'celebrations:write',
|
|
6128
|
+
summary: 'Disconnect Tremendous; no more gifts are sent',
|
|
6129
|
+
},
|
|
6130
|
+
{
|
|
6131
|
+
access: 'write',
|
|
6132
|
+
command: ['gifts', 'draft'],
|
|
6133
|
+
input: {
|
|
6134
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6135
|
+
additionalProperties: false,
|
|
6136
|
+
properties: {
|
|
6137
|
+
amount: {
|
|
6138
|
+
type: 'number',
|
|
6139
|
+
},
|
|
6140
|
+
confirm: {
|
|
6141
|
+
const: 'gifts.draft',
|
|
6142
|
+
type: 'string',
|
|
6143
|
+
},
|
|
6144
|
+
message: {
|
|
6145
|
+
type: 'string',
|
|
6146
|
+
},
|
|
6147
|
+
occasion: {
|
|
6148
|
+
anyOf: [
|
|
6149
|
+
{
|
|
6150
|
+
const: 'anniversary',
|
|
6151
|
+
type: 'string',
|
|
6152
|
+
},
|
|
6153
|
+
{
|
|
6154
|
+
const: 'birthday',
|
|
6155
|
+
type: 'string',
|
|
6156
|
+
},
|
|
6157
|
+
{
|
|
6158
|
+
const: 'praise',
|
|
6159
|
+
type: 'string',
|
|
6160
|
+
},
|
|
6161
|
+
{
|
|
6162
|
+
const: 'welcome',
|
|
6163
|
+
type: 'string',
|
|
6164
|
+
},
|
|
6165
|
+
],
|
|
6166
|
+
},
|
|
6167
|
+
occasionDate: {
|
|
6168
|
+
type: 'string',
|
|
6169
|
+
},
|
|
6170
|
+
personId: {
|
|
6171
|
+
type: 'string',
|
|
6172
|
+
},
|
|
6173
|
+
praiseId: {
|
|
6174
|
+
type: 'string',
|
|
6175
|
+
},
|
|
6176
|
+
requestKey: {
|
|
6177
|
+
maxLength: 128,
|
|
6178
|
+
minLength: 1,
|
|
6179
|
+
type: 'string',
|
|
6180
|
+
},
|
|
6181
|
+
},
|
|
6182
|
+
required: ['occasion', 'personId', 'confirm', 'requestKey'],
|
|
6183
|
+
type: 'object',
|
|
6184
|
+
},
|
|
6185
|
+
path: ['gifts', 'draft'],
|
|
6186
|
+
permission: 'gifts.draft',
|
|
6187
|
+
scope: 'celebrations:write',
|
|
6188
|
+
summary: 'Draft a gift for someone, such as a reward for their praise',
|
|
6189
|
+
},
|
|
6190
|
+
{
|
|
6191
|
+
access: 'write',
|
|
6192
|
+
command: ['gifts', 'draft-upcoming'],
|
|
6193
|
+
input: {
|
|
6194
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6195
|
+
additionalProperties: false,
|
|
6196
|
+
properties: {
|
|
6197
|
+
confirm: {
|
|
6198
|
+
const: 'gifts.draftUpcoming',
|
|
6199
|
+
type: 'string',
|
|
6200
|
+
},
|
|
6201
|
+
requestKey: {
|
|
6202
|
+
maxLength: 128,
|
|
6203
|
+
minLength: 1,
|
|
6204
|
+
type: 'string',
|
|
6205
|
+
},
|
|
6206
|
+
},
|
|
6207
|
+
required: ['confirm', 'requestKey'],
|
|
6208
|
+
type: 'object',
|
|
6209
|
+
},
|
|
6210
|
+
path: ['gifts', 'draftUpcoming'],
|
|
6211
|
+
permission: 'gifts.draftUpcoming',
|
|
6212
|
+
scope: 'celebrations:write',
|
|
6213
|
+
summary: 'Draft the gifts for the next two weeks of occasions now',
|
|
6214
|
+
},
|
|
6215
|
+
{
|
|
6216
|
+
access: 'read',
|
|
6217
|
+
command: ['gifts', 'options'],
|
|
6218
|
+
input: {
|
|
6219
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6220
|
+
additionalProperties: false,
|
|
6221
|
+
properties: {},
|
|
6222
|
+
type: 'object',
|
|
6223
|
+
},
|
|
6224
|
+
path: ['gifts', 'options'],
|
|
6225
|
+
permission: 'gifts.options',
|
|
6226
|
+
scope: 'celebrations:read',
|
|
6227
|
+
summary: 'List the Tremendous funding sources and campaigns gifts can use',
|
|
6228
|
+
},
|
|
6229
|
+
{
|
|
6230
|
+
access: 'write',
|
|
6231
|
+
command: ['gifts', 'save'],
|
|
6232
|
+
input: {
|
|
6233
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6234
|
+
additionalProperties: false,
|
|
6235
|
+
properties: {
|
|
6236
|
+
budgets: {
|
|
6237
|
+
additionalProperties: false,
|
|
6238
|
+
properties: {
|
|
6239
|
+
anniversary: {
|
|
6240
|
+
additionalProperties: false,
|
|
6241
|
+
properties: {
|
|
6242
|
+
amount: {
|
|
6243
|
+
type: 'number',
|
|
6244
|
+
},
|
|
6245
|
+
enabled: {
|
|
6246
|
+
type: 'boolean',
|
|
6247
|
+
},
|
|
6248
|
+
},
|
|
6249
|
+
required: ['amount', 'enabled'],
|
|
6250
|
+
type: 'object',
|
|
6251
|
+
},
|
|
6252
|
+
birthday: {
|
|
6253
|
+
additionalProperties: false,
|
|
6254
|
+
properties: {
|
|
6255
|
+
amount: {
|
|
6256
|
+
type: 'number',
|
|
6257
|
+
},
|
|
6258
|
+
enabled: {
|
|
6259
|
+
type: 'boolean',
|
|
6260
|
+
},
|
|
6261
|
+
},
|
|
6262
|
+
required: ['amount', 'enabled'],
|
|
6263
|
+
type: 'object',
|
|
6264
|
+
},
|
|
6265
|
+
praise: {
|
|
6266
|
+
additionalProperties: false,
|
|
6267
|
+
properties: {
|
|
6268
|
+
amount: {
|
|
6269
|
+
type: 'number',
|
|
6270
|
+
},
|
|
6271
|
+
enabled: {
|
|
6272
|
+
type: 'boolean',
|
|
6273
|
+
},
|
|
6274
|
+
},
|
|
6275
|
+
required: ['amount', 'enabled'],
|
|
6276
|
+
type: 'object',
|
|
6277
|
+
},
|
|
6278
|
+
welcome: {
|
|
6279
|
+
additionalProperties: false,
|
|
6280
|
+
properties: {
|
|
6281
|
+
amount: {
|
|
6282
|
+
type: 'number',
|
|
6283
|
+
},
|
|
6284
|
+
enabled: {
|
|
6285
|
+
type: 'boolean',
|
|
6286
|
+
},
|
|
6287
|
+
},
|
|
6288
|
+
required: ['amount', 'enabled'],
|
|
6289
|
+
type: 'object',
|
|
6290
|
+
},
|
|
6291
|
+
},
|
|
6292
|
+
type: 'object',
|
|
6293
|
+
},
|
|
6294
|
+
campaignId: {
|
|
6295
|
+
type: 'string',
|
|
6296
|
+
},
|
|
6297
|
+
confirm: {
|
|
6298
|
+
const: 'gifts.save',
|
|
6299
|
+
type: 'string',
|
|
6300
|
+
},
|
|
6301
|
+
currency: {
|
|
6302
|
+
anyOf: [
|
|
6303
|
+
{
|
|
6304
|
+
const: 'AUD',
|
|
6305
|
+
type: 'string',
|
|
6306
|
+
},
|
|
6307
|
+
{
|
|
6308
|
+
const: 'CAD',
|
|
6309
|
+
type: 'string',
|
|
6310
|
+
},
|
|
6311
|
+
{
|
|
6312
|
+
const: 'EUR',
|
|
6313
|
+
type: 'string',
|
|
6314
|
+
},
|
|
6315
|
+
{
|
|
6316
|
+
const: 'GBP',
|
|
6317
|
+
type: 'string',
|
|
6318
|
+
},
|
|
6319
|
+
{
|
|
6320
|
+
const: 'USD',
|
|
6321
|
+
type: 'string',
|
|
6322
|
+
},
|
|
6323
|
+
],
|
|
6324
|
+
},
|
|
6325
|
+
fundingSourceId: {
|
|
6326
|
+
type: 'string',
|
|
6327
|
+
},
|
|
6328
|
+
message: {
|
|
6329
|
+
type: ['null', 'string'],
|
|
6330
|
+
},
|
|
6331
|
+
monthlyCap: {
|
|
6332
|
+
type: ['null', 'number'],
|
|
6333
|
+
},
|
|
6334
|
+
ordering: {
|
|
6335
|
+
anyOf: [
|
|
6336
|
+
{
|
|
6337
|
+
const: false,
|
|
6338
|
+
type: 'boolean',
|
|
6339
|
+
},
|
|
6340
|
+
{
|
|
6341
|
+
const: true,
|
|
6342
|
+
type: 'boolean',
|
|
6343
|
+
},
|
|
6344
|
+
],
|
|
6345
|
+
},
|
|
6346
|
+
requestKey: {
|
|
6347
|
+
maxLength: 128,
|
|
6348
|
+
minLength: 1,
|
|
6349
|
+
type: 'string',
|
|
6350
|
+
},
|
|
6351
|
+
},
|
|
6352
|
+
required: ['confirm', 'requestKey'],
|
|
6353
|
+
type: 'object',
|
|
6354
|
+
},
|
|
6355
|
+
path: ['gifts', 'save'],
|
|
6356
|
+
permission: 'gifts.save',
|
|
6357
|
+
scope: 'celebrations:write',
|
|
6358
|
+
summary: 'Save gift budgets, the monthly cap and where gifts are paid from',
|
|
6359
|
+
},
|
|
6360
|
+
{
|
|
6361
|
+
access: 'write',
|
|
6362
|
+
command: ['gifts', 'skip'],
|
|
6363
|
+
input: {
|
|
6364
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
6365
|
+
additionalProperties: false,
|
|
6366
|
+
properties: {
|
|
6367
|
+
confirm: {
|
|
6368
|
+
const: 'gifts.skip',
|
|
6369
|
+
type: 'string',
|
|
6370
|
+
},
|
|
6371
|
+
giftId: {
|
|
6372
|
+
type: 'string',
|
|
6373
|
+
},
|
|
6374
|
+
requestKey: {
|
|
6375
|
+
maxLength: 128,
|
|
6376
|
+
minLength: 1,
|
|
6377
|
+
type: 'string',
|
|
6378
|
+
},
|
|
6379
|
+
},
|
|
6380
|
+
required: ['giftId', 'confirm', 'requestKey'],
|
|
6381
|
+
type: 'object',
|
|
6382
|
+
},
|
|
6383
|
+
path: ['gifts', 'skip'],
|
|
6384
|
+
permission: 'gifts.skip',
|
|
6385
|
+
scope: 'celebrations:write',
|
|
6386
|
+
summary: 'Skip this gift; nothing is sent',
|
|
6387
|
+
},
|
|
5985
6388
|
{
|
|
5986
6389
|
access: 'read',
|
|
5987
6390
|
command: ['groups', 'all-automations'],
|
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.31",
|
|
5
|
+
"@shuffl/sdk": "0.7.31"
|
|
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.31",
|
|
37
37
|
"bin": {
|
|
38
38
|
"shuffl": "./dist/bin.js"
|
|
39
39
|
}
|