@shuffl/cli 0.7.10 → 0.7.11

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.
@@ -3976,6 +3976,14 @@ export const commands = [
3976
3976
  const: 'timeOff.balances',
3977
3977
  type: 'string',
3978
3978
  },
3979
+ {
3980
+ const: 'timeOff.cancel',
3981
+ type: 'string',
3982
+ },
3983
+ {
3984
+ const: 'timeOff.request',
3985
+ type: 'string',
3986
+ },
3979
3987
  {
3980
3988
  const: 'units.list',
3981
3989
  type: 'string',
@@ -16458,6 +16466,92 @@ export const commands = [
16458
16466
  scope: 'self:read',
16459
16467
  summary: 'Read your own time-off balances from the connected HR system',
16460
16468
  },
16469
+ {
16470
+ access: 'write',
16471
+ command: ['time-off', 'cancel'],
16472
+ input: {
16473
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
16474
+ additionalProperties: false,
16475
+ properties: {
16476
+ confirm: {
16477
+ const: 'timeOff.cancel',
16478
+ type: 'string',
16479
+ },
16480
+ id: {
16481
+ type: 'string',
16482
+ },
16483
+ requestKey: {
16484
+ maxLength: 128,
16485
+ minLength: 1,
16486
+ type: 'string',
16487
+ },
16488
+ },
16489
+ required: ['id', 'requestKey', 'confirm'],
16490
+ type: 'object',
16491
+ },
16492
+ path: ['timeOff', 'cancel'],
16493
+ permission: 'timeOff.cancel',
16494
+ scope: 'self:write',
16495
+ summary: 'Cancel a pending time-off request Mello filed',
16496
+ },
16497
+ {
16498
+ access: 'write',
16499
+ command: ['time-off', 'request'],
16500
+ input: {
16501
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
16502
+ additionalProperties: false,
16503
+ properties: {
16504
+ confirm: {
16505
+ const: 'timeOff.request',
16506
+ type: 'string',
16507
+ },
16508
+ endDate: {
16509
+ type: 'string',
16510
+ },
16511
+ endHalfDay: {
16512
+ anyOf: [
16513
+ {
16514
+ const: false,
16515
+ type: 'boolean',
16516
+ },
16517
+ {
16518
+ const: true,
16519
+ type: 'boolean',
16520
+ },
16521
+ ],
16522
+ },
16523
+ policy: {
16524
+ type: 'string',
16525
+ },
16526
+ requestKey: {
16527
+ maxLength: 128,
16528
+ minLength: 1,
16529
+ type: 'string',
16530
+ },
16531
+ startDate: {
16532
+ type: 'string',
16533
+ },
16534
+ startHalfDay: {
16535
+ anyOf: [
16536
+ {
16537
+ const: false,
16538
+ type: 'boolean',
16539
+ },
16540
+ {
16541
+ const: true,
16542
+ type: 'boolean',
16543
+ },
16544
+ ],
16545
+ },
16546
+ },
16547
+ required: ['endDate', 'policy', 'requestKey', 'startDate', 'confirm'],
16548
+ type: 'object',
16549
+ },
16550
+ path: ['timeOff', 'request'],
16551
+ permission: 'timeOff.request',
16552
+ scope: 'self:write',
16553
+ summary: 'Request time off in your HR system; it waits for approval there',
16554
+ },
16461
16555
  {
16462
16556
  access: 'read',
16463
16557
  command: ['units', 'list'],
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.10",
5
- "@shuffl/sdk": "0.7.10"
4
+ "@shuffl/api-contracts": "0.7.11",
5
+ "@shuffl/sdk": "0.7.11"
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.10",
36
+ "version": "0.7.11",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }