@shuffl/cli 0.7.13 → 0.7.14

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.
@@ -3509,6 +3509,22 @@ export const commands = [
3509
3509
  const: 'hr.get',
3510
3510
  type: 'string',
3511
3511
  },
3512
+ {
3513
+ const: 'hr.helpdesks.connect',
3514
+ type: 'string',
3515
+ },
3516
+ {
3517
+ const: 'hr.helpdesks.disconnect',
3518
+ type: 'string',
3519
+ },
3520
+ {
3521
+ const: 'hr.helpdesks.list',
3522
+ type: 'string',
3523
+ },
3524
+ {
3525
+ const: 'hr.helpdesks.queues',
3526
+ type: 'string',
3527
+ },
3512
3528
  {
3513
3529
  const: 'hr.list',
3514
3530
  type: 'string',
@@ -3533,6 +3549,10 @@ export const commands = [
3533
3549
  const: 'hr.retryDelivery',
3534
3550
  type: 'string',
3535
3551
  },
3552
+ {
3553
+ const: 'hr.route',
3554
+ type: 'string',
3555
+ },
3536
3556
  {
3537
3557
  const: 'hr.saveCategories',
3538
3558
  type: 'string',
@@ -6782,6 +6802,125 @@ export const commands = [
6782
6802
  scope: 'hr:read',
6783
6803
  summary: 'Read one HR request and its messages',
6784
6804
  },
6805
+ {
6806
+ access: 'write',
6807
+ command: ['hr', 'helpdesks', 'connect'],
6808
+ input: {
6809
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
6810
+ additionalProperties: false,
6811
+ properties: {
6812
+ confirm: {
6813
+ const: 'hr.helpdesks.connect',
6814
+ type: 'string',
6815
+ },
6816
+ fields: {
6817
+ additionalProperties: {
6818
+ type: 'string',
6819
+ },
6820
+ propertyNames: {
6821
+ type: 'string',
6822
+ },
6823
+ type: 'object',
6824
+ },
6825
+ provider: {
6826
+ anyOf: [
6827
+ {
6828
+ const: 'fixture_helpdesk',
6829
+ type: 'string',
6830
+ },
6831
+ {
6832
+ const: 'freshservice',
6833
+ type: 'string',
6834
+ },
6835
+ {
6836
+ const: 'jira_service_management',
6837
+ type: 'string',
6838
+ },
6839
+ {
6840
+ const: 'linear',
6841
+ type: 'string',
6842
+ },
6843
+ {
6844
+ const: 'zendesk',
6845
+ type: 'string',
6846
+ },
6847
+ ],
6848
+ },
6849
+ requestKey: {
6850
+ maxLength: 128,
6851
+ minLength: 1,
6852
+ type: 'string',
6853
+ },
6854
+ },
6855
+ required: ['fields', 'provider', 'confirm', 'requestKey'],
6856
+ type: 'object',
6857
+ },
6858
+ path: ['hr', 'helpdesks', 'connect'],
6859
+ permission: 'hr.helpdesks.connect',
6860
+ scope: 'hr:write',
6861
+ summary: 'Connect a helpdesk for HR requests with its token',
6862
+ },
6863
+ {
6864
+ access: 'write',
6865
+ command: ['hr', 'helpdesks', 'disconnect'],
6866
+ input: {
6867
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
6868
+ additionalProperties: false,
6869
+ properties: {
6870
+ confirm: {
6871
+ const: 'hr.helpdesks.disconnect',
6872
+ type: 'string',
6873
+ },
6874
+ connectionId: {
6875
+ type: 'string',
6876
+ },
6877
+ requestKey: {
6878
+ maxLength: 128,
6879
+ minLength: 1,
6880
+ type: 'string',
6881
+ },
6882
+ },
6883
+ required: ['connectionId', 'confirm', 'requestKey'],
6884
+ type: 'object',
6885
+ },
6886
+ path: ['hr', 'helpdesks', 'disconnect'],
6887
+ permission: 'hr.helpdesks.disconnect',
6888
+ scope: 'hr:write',
6889
+ summary: 'Disconnect a helpdesk; its categories go back to the Shuffl inbox',
6890
+ },
6891
+ {
6892
+ access: 'read',
6893
+ command: ['hr', 'helpdesks', 'list'],
6894
+ input: {
6895
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
6896
+ additionalProperties: false,
6897
+ properties: {},
6898
+ type: 'object',
6899
+ },
6900
+ path: ['hr', 'helpdesks', 'list'],
6901
+ permission: 'hr.helpdesks.list',
6902
+ scope: 'hr:read',
6903
+ summary: 'List the connected helpdesks and where each request category goes',
6904
+ },
6905
+ {
6906
+ access: 'read',
6907
+ command: ['hr', 'helpdesks', 'queues'],
6908
+ input: {
6909
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
6910
+ additionalProperties: false,
6911
+ properties: {
6912
+ connectionId: {
6913
+ type: 'string',
6914
+ },
6915
+ },
6916
+ required: ['connectionId'],
6917
+ type: 'object',
6918
+ },
6919
+ path: ['hr', 'helpdesks', 'queues'],
6920
+ permission: 'hr.helpdesks.queues',
6921
+ scope: 'hr:read',
6922
+ summary: 'List the queues a connected helpdesk can take HR requests into',
6923
+ },
6785
6924
  {
6786
6925
  access: 'read',
6787
6926
  command: ['hr', 'list'],
@@ -6901,6 +7040,52 @@ export const commands = [
6901
7040
  scope: 'hr:write',
6902
7041
  summary: 'Retry HR request delivery',
6903
7042
  },
7043
+ {
7044
+ access: 'write',
7045
+ command: ['hr', 'route'],
7046
+ input: {
7047
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
7048
+ additionalProperties: false,
7049
+ properties: {
7050
+ categoryId: {
7051
+ type: 'string',
7052
+ },
7053
+ confirm: {
7054
+ const: 'hr.route',
7055
+ type: 'string',
7056
+ },
7057
+ connectionId: {
7058
+ type: ['null', 'string'],
7059
+ },
7060
+ destinationId: {
7061
+ type: 'string',
7062
+ },
7063
+ requestKey: {
7064
+ maxLength: 128,
7065
+ minLength: 1,
7066
+ type: 'string',
7067
+ },
7068
+ sensitiveOptIn: {
7069
+ anyOf: [
7070
+ {
7071
+ const: false,
7072
+ type: 'boolean',
7073
+ },
7074
+ {
7075
+ const: true,
7076
+ type: 'boolean',
7077
+ },
7078
+ ],
7079
+ },
7080
+ },
7081
+ required: ['categoryId', 'connectionId', 'confirm', 'requestKey'],
7082
+ type: 'object',
7083
+ },
7084
+ path: ['hr', 'route'],
7085
+ permission: 'hr.route',
7086
+ scope: 'hr:write',
7087
+ summary: 'Send a request category to a helpdesk queue or back to the Shuffl inbox',
7088
+ },
6904
7089
  {
6905
7090
  access: 'write',
6906
7091
  command: ['hr', 'save-categories'],
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.13",
5
- "@shuffl/sdk": "0.7.13"
4
+ "@shuffl/api-contracts": "0.7.14",
5
+ "@shuffl/sdk": "0.7.14"
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.13",
36
+ "version": "0.7.14",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }