@shuffl/cli 0.11.2 → 0.11.4

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.
@@ -5154,10 +5154,18 @@ export const commands = [
5154
5154
  const: 'requests.get',
5155
5155
  type: 'string',
5156
5156
  },
5157
+ {
5158
+ const: 'requests.letterTemplate',
5159
+ type: 'string',
5160
+ },
5157
5161
  {
5158
5162
  const: 'requests.mine',
5159
5163
  type: 'string',
5160
5164
  },
5165
+ {
5166
+ const: 'requests.saveLetterTemplate',
5167
+ type: 'string',
5168
+ },
5161
5169
  {
5162
5170
  const: 'requests.saveType',
5163
5171
  type: 'string',
@@ -18370,6 +18378,20 @@ export const commands = [
18370
18378
  scope: 'self:read',
18371
18379
  summary: 'Read one request you asked for, approve or carry out, with its history',
18372
18380
  },
18381
+ {
18382
+ access: 'read',
18383
+ command: ['requests', 'letter-template'],
18384
+ input: {
18385
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18386
+ additionalProperties: false,
18387
+ properties: {},
18388
+ type: 'object',
18389
+ },
18390
+ path: ['requests', 'letterTemplate'],
18391
+ permission: 'requests.letterTemplate',
18392
+ scope: 'hr:read',
18393
+ summary: 'Read the letter template: company, address, signatory and whether salary may be asked for',
18394
+ },
18373
18395
  {
18374
18396
  access: 'read',
18375
18397
  command: ['requests', 'mine'],
@@ -18388,6 +18410,58 @@ export const commands = [
18388
18410
  scope: 'self:read',
18389
18411
  summary: 'List your own requests of every kind and where each stands',
18390
18412
  },
18413
+ {
18414
+ access: 'write',
18415
+ command: ['requests', 'save-letter-template'],
18416
+ input: {
18417
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18418
+ additionalProperties: false,
18419
+ properties: {
18420
+ address: {
18421
+ type: 'string',
18422
+ },
18423
+ clause: {
18424
+ type: 'string',
18425
+ },
18426
+ companyName: {
18427
+ type: 'string',
18428
+ },
18429
+ confirm: {
18430
+ const: 'requests.saveLetterTemplate',
18431
+ type: 'string',
18432
+ },
18433
+ expectedRevision: {
18434
+ type: 'number',
18435
+ },
18436
+ requestKey: {
18437
+ maxLength: 128,
18438
+ minLength: 1,
18439
+ type: 'string',
18440
+ },
18441
+ salaryWithApproval: {
18442
+ anyOf: [
18443
+ {
18444
+ const: false,
18445
+ type: 'boolean',
18446
+ },
18447
+ {
18448
+ const: true,
18449
+ type: 'boolean',
18450
+ },
18451
+ ],
18452
+ },
18453
+ signatoryPersonId: {
18454
+ type: ['null', 'string'],
18455
+ },
18456
+ },
18457
+ required: ['confirm', 'requestKey'],
18458
+ type: 'object',
18459
+ },
18460
+ path: ['requests', 'saveLetterTemplate'],
18461
+ permission: 'requests.saveLetterTemplate',
18462
+ scope: 'hr:write',
18463
+ summary: 'Change the letter template: company, address, who signs, an extra paragraph and salary letters',
18464
+ },
18391
18465
  {
18392
18466
  access: 'write',
18393
18467
  command: ['requests', 'save-type'],
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.11.2",
5
- "@shuffl/sdk": "0.11.2"
4
+ "@shuffl/api-contracts": "0.11.4",
5
+ "@shuffl/sdk": "0.11.4"
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.11.2",
36
+ "version": "0.11.4",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }