@probo/n8n-nodes-probo 0.240.0 → 0.242.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.
Files changed (111) hide show
  1. package/README.md +1 -1
  2. package/dist/nodes/Probo/Probo.node.js +1 -1
  3. package/dist/nodes/Probo/Probo.node.js.map +1 -1
  4. package/dist/nodes/Probo/actions/control/index.d.ts +3 -3
  5. package/dist/nodes/Probo/actions/control/index.js +15 -15
  6. package/dist/nodes/Probo/actions/control/index.js.map +1 -1
  7. package/dist/nodes/Probo/actions/control/{linkMeasure.operation.js → linkInternalControl.operation.js} +11 -11
  8. package/dist/nodes/Probo/actions/control/linkInternalControl.operation.js.map +1 -0
  9. package/dist/nodes/Probo/actions/control/{unlinkMeasure.operation.js → unlinkInternalControl.operation.js} +11 -11
  10. package/dist/nodes/Probo/actions/control/unlinkInternalControl.operation.js.map +1 -0
  11. package/dist/nodes/Probo/actions/cookieBanner/activate.operation.js +1 -1
  12. package/dist/nodes/Probo/actions/cookieBanner/create.operation.js +1 -1
  13. package/dist/nodes/Probo/actions/cookieBanner/deactivate.operation.js +1 -1
  14. package/dist/nodes/Probo/actions/cookieBanner/get.operation.js +1 -1
  15. package/dist/nodes/Probo/actions/cookieBanner/getAll.operation.js +1 -1
  16. package/dist/nodes/Probo/actions/cookieBanner/update.operation.js +1 -1
  17. package/dist/nodes/Probo/actions/cookieConsentRecord/get.operation.js +1 -0
  18. package/dist/nodes/Probo/actions/cookieConsentRecord/get.operation.js.map +1 -1
  19. package/dist/nodes/Probo/actions/cookieConsentRecord/getAll.operation.js +1 -0
  20. package/dist/nodes/Probo/actions/cookieConsentRecord/getAll.operation.js.map +1 -1
  21. package/dist/nodes/Probo/actions/evidence/getAll.operation.js +8 -8
  22. package/dist/nodes/Probo/actions/evidence/getAll.operation.js.map +1 -1
  23. package/dist/nodes/Probo/actions/evidence/index.js +2 -2
  24. package/dist/nodes/Probo/actions/evidence/index.js.map +1 -1
  25. package/dist/nodes/Probo/actions/evidence/upload.operation.js +7 -7
  26. package/dist/nodes/Probo/actions/evidence/upload.operation.js.map +1 -1
  27. package/dist/nodes/Probo/actions/index.js +2 -2
  28. package/dist/nodes/Probo/actions/index.js.map +1 -1
  29. package/dist/nodes/Probo/actions/{measure → internalControl}/create.operation.js +10 -10
  30. package/dist/nodes/Probo/actions/internalControl/create.operation.js.map +1 -0
  31. package/dist/nodes/Probo/actions/{measure → internalControl}/delete.operation.js +9 -9
  32. package/dist/nodes/Probo/actions/internalControl/delete.operation.js.map +1 -0
  33. package/dist/nodes/Probo/actions/{measure → internalControl}/get.operation.js +9 -9
  34. package/dist/nodes/Probo/actions/internalControl/get.operation.js.map +1 -0
  35. package/dist/nodes/Probo/actions/{measure → internalControl}/getAll.operation.js +8 -8
  36. package/dist/nodes/Probo/actions/internalControl/getAll.operation.js.map +1 -0
  37. package/dist/nodes/Probo/actions/{measure → internalControl}/index.js +23 -23
  38. package/dist/nodes/Probo/actions/internalControl/index.js.map +1 -0
  39. package/dist/nodes/Probo/actions/{measure → internalControl}/internalControlFields.js +3 -3
  40. package/dist/nodes/Probo/actions/internalControl/internalControlFields.js.map +1 -0
  41. package/dist/nodes/Probo/actions/{measure → internalControl}/linkDocument.operation.js +10 -10
  42. package/dist/nodes/Probo/actions/internalControl/linkDocument.operation.js.map +1 -0
  43. package/dist/nodes/Probo/actions/{measure → internalControl}/linkThirdParty.operation.js +10 -10
  44. package/dist/nodes/Probo/actions/internalControl/linkThirdParty.operation.js.map +1 -0
  45. package/dist/nodes/Probo/actions/{measure → internalControl}/linkTreatmentPlan.operation.js +10 -10
  46. package/dist/nodes/Probo/actions/internalControl/linkTreatmentPlan.operation.js.map +1 -0
  47. package/dist/nodes/Probo/actions/{measure → internalControl}/unlinkDocument.operation.js +10 -10
  48. package/dist/nodes/Probo/actions/internalControl/unlinkDocument.operation.js.map +1 -0
  49. package/dist/nodes/Probo/actions/{measure → internalControl}/unlinkThirdParty.operation.js +10 -10
  50. package/dist/nodes/Probo/actions/internalControl/unlinkThirdParty.operation.js.map +1 -0
  51. package/dist/nodes/Probo/actions/{measure → internalControl}/unlinkTreatmentPlan.operation.js +10 -10
  52. package/dist/nodes/Probo/actions/internalControl/unlinkTreatmentPlan.operation.js.map +1 -0
  53. package/dist/nodes/Probo/actions/{measure → internalControl}/update.operation.js +14 -14
  54. package/dist/nodes/Probo/actions/internalControl/update.operation.js.map +1 -0
  55. package/dist/nodes/Probo/actions/organization/create.operation.js +20 -4
  56. package/dist/nodes/Probo/actions/organization/create.operation.js.map +1 -1
  57. package/dist/nodes/Probo/actions/organization/get.operation.js +1 -0
  58. package/dist/nodes/Probo/actions/organization/get.operation.js.map +1 -1
  59. package/dist/nodes/Probo/actions/organization/getAll.operation.js +1 -0
  60. package/dist/nodes/Probo/actions/organization/getAll.operation.js.map +1 -1
  61. package/dist/nodes/Probo/actions/organization/update.operation.js +39 -1
  62. package/dist/nodes/Probo/actions/organization/update.operation.js.map +1 -1
  63. package/dist/nodes/Probo/actions/risk/index.d.ts +3 -3
  64. package/dist/nodes/Probo/actions/risk/index.js +15 -15
  65. package/dist/nodes/Probo/actions/risk/index.js.map +1 -1
  66. package/dist/nodes/Probo/actions/risk/{linkMeasure.operation.js → linkInternalControl.operation.js} +11 -11
  67. package/dist/nodes/Probo/actions/risk/linkInternalControl.operation.js.map +1 -0
  68. package/dist/nodes/Probo/actions/risk/{unlinkMeasure.operation.js → unlinkInternalControl.operation.js} +11 -11
  69. package/dist/nodes/Probo/actions/risk/unlinkInternalControl.operation.js.map +1 -0
  70. package/dist/nodes/Probo/actions/task/create.operation.js +6 -6
  71. package/dist/nodes/Probo/actions/task/create.operation.js.map +1 -1
  72. package/dist/nodes/Probo/actions/task/update.operation.js +7 -26
  73. package/dist/nodes/Probo/actions/task/update.operation.js.map +1 -1
  74. package/dist/nodes/Probo/actions/treatmentPlan/get.operation.js +4 -4
  75. package/dist/package.json +1 -1
  76. package/dist/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +1 -1
  78. package/dist/nodes/Probo/actions/control/linkMeasure.operation.js.map +0 -1
  79. package/dist/nodes/Probo/actions/control/unlinkMeasure.operation.js.map +0 -1
  80. package/dist/nodes/Probo/actions/measure/create.operation.js.map +0 -1
  81. package/dist/nodes/Probo/actions/measure/delete.operation.js.map +0 -1
  82. package/dist/nodes/Probo/actions/measure/get.operation.js.map +0 -1
  83. package/dist/nodes/Probo/actions/measure/getAll.operation.js.map +0 -1
  84. package/dist/nodes/Probo/actions/measure/index.js.map +0 -1
  85. package/dist/nodes/Probo/actions/measure/internalControlFields.js.map +0 -1
  86. package/dist/nodes/Probo/actions/measure/linkDocument.operation.js.map +0 -1
  87. package/dist/nodes/Probo/actions/measure/linkThirdParty.operation.js.map +0 -1
  88. package/dist/nodes/Probo/actions/measure/linkTreatmentPlan.operation.js.map +0 -1
  89. package/dist/nodes/Probo/actions/measure/unlinkDocument.operation.js.map +0 -1
  90. package/dist/nodes/Probo/actions/measure/unlinkThirdParty.operation.js.map +0 -1
  91. package/dist/nodes/Probo/actions/measure/unlinkTreatmentPlan.operation.js.map +0 -1
  92. package/dist/nodes/Probo/actions/measure/update.operation.js.map +0 -1
  93. package/dist/nodes/Probo/actions/risk/linkMeasure.operation.js.map +0 -1
  94. package/dist/nodes/Probo/actions/risk/unlinkMeasure.operation.js.map +0 -1
  95. /package/dist/nodes/Probo/actions/control/{linkMeasure.operation.d.ts → linkInternalControl.operation.d.ts} +0 -0
  96. /package/dist/nodes/Probo/actions/control/{unlinkMeasure.operation.d.ts → unlinkInternalControl.operation.d.ts} +0 -0
  97. /package/dist/nodes/Probo/actions/{measure → internalControl}/create.operation.d.ts +0 -0
  98. /package/dist/nodes/Probo/actions/{measure → internalControl}/delete.operation.d.ts +0 -0
  99. /package/dist/nodes/Probo/actions/{measure → internalControl}/get.operation.d.ts +0 -0
  100. /package/dist/nodes/Probo/actions/{measure → internalControl}/getAll.operation.d.ts +0 -0
  101. /package/dist/nodes/Probo/actions/{measure → internalControl}/index.d.ts +0 -0
  102. /package/dist/nodes/Probo/actions/{measure → internalControl}/internalControlFields.d.ts +0 -0
  103. /package/dist/nodes/Probo/actions/{measure → internalControl}/linkDocument.operation.d.ts +0 -0
  104. /package/dist/nodes/Probo/actions/{measure → internalControl}/linkThirdParty.operation.d.ts +0 -0
  105. /package/dist/nodes/Probo/actions/{measure → internalControl}/linkTreatmentPlan.operation.d.ts +0 -0
  106. /package/dist/nodes/Probo/actions/{measure → internalControl}/unlinkDocument.operation.d.ts +0 -0
  107. /package/dist/nodes/Probo/actions/{measure → internalControl}/unlinkThirdParty.operation.d.ts +0 -0
  108. /package/dist/nodes/Probo/actions/{measure → internalControl}/unlinkTreatmentPlan.operation.d.ts +0 -0
  109. /package/dist/nodes/Probo/actions/{measure → internalControl}/update.operation.d.ts +0 -0
  110. /package/dist/nodes/Probo/actions/risk/{linkMeasure.operation.d.ts → linkInternalControl.operation.d.ts} +0 -0
  111. /package/dist/nodes/Probo/actions/risk/{unlinkMeasure.operation.d.ts → unlinkInternalControl.operation.d.ts} +0 -0
@@ -5,17 +5,17 @@ exports.execute = execute;
5
5
  const GenericFunctions_1 = require("../../GenericFunctions");
6
6
  exports.description = [
7
7
  {
8
- displayName: 'Measure ID',
9
- name: 'measureId',
8
+ displayName: 'Internal Control ID',
9
+ name: 'internalControlId',
10
10
  type: 'string',
11
11
  displayOptions: {
12
12
  show: {
13
- resource: ['measure'],
13
+ resource: ['internalControl'],
14
14
  operation: ['unlinkThirdParty'],
15
15
  },
16
16
  },
17
17
  default: '',
18
- description: 'The ID of the measure',
18
+ description: 'The ID of the internal control',
19
19
  required: true,
20
20
  },
21
21
  {
@@ -24,7 +24,7 @@ exports.description = [
24
24
  type: 'string',
25
25
  displayOptions: {
26
26
  show: {
27
- resource: ['measure'],
27
+ resource: ['internalControl'],
28
28
  operation: ['unlinkThirdParty'],
29
29
  },
30
30
  },
@@ -34,17 +34,17 @@ exports.description = [
34
34
  },
35
35
  ];
36
36
  async function execute(itemIndex) {
37
- const measureId = this.getNodeParameter('measureId', itemIndex);
37
+ const internalControlId = this.getNodeParameter('internalControlId', itemIndex);
38
38
  const thirdPartyId = this.getNodeParameter('thirdPartyId', itemIndex);
39
39
  const query = `
40
- mutation DeleteMeasureThirdPartyMapping($input: DeleteMeasureThirdPartyMappingInput!) {
41
- deleteMeasureThirdPartyMapping(input: $input) {
42
- deletedMeasureId
40
+ mutation DeleteInternalControlThirdPartyMapping($input: DeleteInternalControlThirdPartyMappingInput!) {
41
+ deleteInternalControlThirdPartyMapping(input: $input) {
42
+ deletedInternalControlId
43
43
  deletedThirdPartyId
44
44
  }
45
45
  }
46
46
  `;
47
- const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { measureId, thirdPartyId } });
47
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { internalControlId, thirdPartyId } });
48
48
  return {
49
49
  json: responseData,
50
50
  pairedItem: { item: itemIndex },
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlinkThirdParty.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/internalControl/unlinkThirdParty.operation.ts"],"names":[],"mappings":";;;AAsDA,0BAsBC;AAvDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qCAAqC;QAClD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,SAAS,CAAW,CAAC;IAC1F,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,SAAS,CAAW,CAAC;IAEhF,MAAM,KAAK,GAAG;;;;;;;EAOb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;IAE7G,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -5,17 +5,17 @@ exports.execute = execute;
5
5
  const GenericFunctions_1 = require("../../GenericFunctions");
6
6
  exports.description = [
7
7
  {
8
- displayName: 'Measure ID',
9
- name: 'measureId',
8
+ displayName: 'Internal Control ID',
9
+ name: 'internalControlId',
10
10
  type: 'string',
11
11
  displayOptions: {
12
12
  show: {
13
- resource: ['measure'],
13
+ resource: ['internalControl'],
14
14
  operation: ['unlinkTreatmentPlan'],
15
15
  },
16
16
  },
17
17
  default: '',
18
- description: 'The ID of the measure',
18
+ description: 'The ID of the internal control',
19
19
  required: true,
20
20
  },
21
21
  {
@@ -24,7 +24,7 @@ exports.description = [
24
24
  type: 'string',
25
25
  displayOptions: {
26
26
  show: {
27
- resource: ['measure'],
27
+ resource: ['internalControl'],
28
28
  operation: ['unlinkTreatmentPlan'],
29
29
  },
30
30
  },
@@ -34,17 +34,17 @@ exports.description = [
34
34
  },
35
35
  ];
36
36
  async function execute(itemIndex) {
37
- const measureId = this.getNodeParameter('measureId', itemIndex);
37
+ const internalControlId = this.getNodeParameter('internalControlId', itemIndex);
38
38
  const treatmentPlanId = this.getNodeParameter('treatmentPlanId', itemIndex);
39
39
  const query = `
40
- mutation DeleteTreatmentPlanMeasureMapping($input: DeleteTreatmentPlanMeasureMappingInput!) {
41
- deleteTreatmentPlanMeasureMapping(input: $input) {
42
- deletedMeasureId
40
+ mutation DeleteTreatmentPlanInternalControlMapping($input: DeleteTreatmentPlanInternalControlMappingInput!) {
41
+ deleteTreatmentPlanInternalControlMapping(input: $input) {
42
+ deletedInternalControlId
43
43
  deletedTreatmentPlanId
44
44
  }
45
45
  }
46
46
  `;
47
- const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { measureId, treatmentPlanId } });
47
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { internalControlId, treatmentPlanId } });
48
48
  return {
49
49
  json: responseData,
50
50
  pairedItem: { item: itemIndex },
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlinkTreatmentPlan.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/internalControl/unlinkTreatmentPlan.operation.ts"],"names":[],"mappings":";;;AAsDA,0BAsBC;AAvDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,qBAAqB,CAAC;aAClC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,qBAAqB,CAAC;aAClC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,SAAS,CAAW,CAAC;IAC1F,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,SAAS,CAAW,CAAC;IAEtF,MAAM,KAAK,GAAG;;;;;;;EAOb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,eAAe,EAAE,EAAE,CAAC,CAAC;IAEhH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -6,17 +6,17 @@ const GenericFunctions_1 = require("../../GenericFunctions");
6
6
  const internalControlFields_1 = require("./internalControlFields");
7
7
  exports.description = [
8
8
  {
9
- displayName: 'Measure ID',
9
+ displayName: 'Internal Control ID',
10
10
  name: 'id',
11
11
  type: 'string',
12
12
  displayOptions: {
13
13
  show: {
14
- resource: ['measure'],
14
+ resource: ['internalControl'],
15
15
  operation: ['update'],
16
16
  },
17
17
  },
18
18
  default: '',
19
- description: 'The ID of the measure to update',
19
+ description: 'The ID of the internal control to update',
20
20
  required: true,
21
21
  },
22
22
  {
@@ -25,12 +25,12 @@ exports.description = [
25
25
  type: 'string',
26
26
  displayOptions: {
27
27
  show: {
28
- resource: ['measure'],
28
+ resource: ['internalControl'],
29
29
  operation: ['update'],
30
30
  },
31
31
  },
32
32
  default: '',
33
- description: 'The name of the measure',
33
+ description: 'The name of the internal control',
34
34
  },
35
35
  {
36
36
  displayName: 'Description',
@@ -38,12 +38,12 @@ exports.description = [
38
38
  type: 'string',
39
39
  displayOptions: {
40
40
  show: {
41
- resource: ['measure'],
41
+ resource: ['internalControl'],
42
42
  operation: ['update'],
43
43
  },
44
44
  },
45
45
  default: '',
46
- description: 'The description of the measure',
46
+ description: 'The description of the internal control',
47
47
  },
48
48
  {
49
49
  displayName: 'Category',
@@ -51,12 +51,12 @@ exports.description = [
51
51
  type: 'string',
52
52
  displayOptions: {
53
53
  show: {
54
- resource: ['measure'],
54
+ resource: ['internalControl'],
55
55
  operation: ['update'],
56
56
  },
57
57
  },
58
58
  default: '',
59
- description: 'The category of the measure',
59
+ description: 'The category of the internal control',
60
60
  },
61
61
  {
62
62
  displayName: 'State',
@@ -64,7 +64,7 @@ exports.description = [
64
64
  type: 'options',
65
65
  displayOptions: {
66
66
  show: {
67
- resource: ['measure'],
67
+ resource: ['internalControl'],
68
68
  operation: ['update'],
69
69
  },
70
70
  },
@@ -87,7 +87,7 @@ exports.description = [
87
87
  },
88
88
  ],
89
89
  default: 'NOT_STARTED',
90
- description: 'The state of the measure',
90
+ description: 'The state of the internal control',
91
91
  },
92
92
  ...(0, internalControlFields_1.internalControlFields)('update'),
93
93
  ];
@@ -98,9 +98,9 @@ async function execute(itemIndex) {
98
98
  const category = this.getNodeParameter('category', itemIndex, '');
99
99
  const state = this.getNodeParameter('state', itemIndex, '');
100
100
  const query = `
101
- mutation UpdateMeasure($input: UpdateMeasureInput!) {
102
- updateMeasure(input: $input) {
103
- measure {
101
+ mutation UpdateInternalControl($input: UpdateInternalControlInput!) {
102
+ updateInternalControl(input: $input) {
103
+ internalControl {
104
104
  id
105
105
  name
106
106
  description
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/internalControl/update.operation.ts"],"names":[],"mappings":";;;AAgHA,0BAgEC;AA3JD,6DAAyD;AACzD,mEAA2F;AAE9E,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,qB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AAW,CAAC;IACjD,IAAI,QAAQ;QAAE,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACxC,IAAI,KAAK;QAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IAE/B,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAExE,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -15,18 +15,33 @@ exports.description = [
15
15
  },
16
16
  },
17
17
  default: '',
18
- description: 'The name of the organization',
18
+ description: 'The operating name of the organization',
19
19
  required: true,
20
20
  },
21
+ {
22
+ displayName: 'Legal Name',
23
+ name: 'legalName',
24
+ type: 'string',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['organization'],
28
+ operation: ['create'],
29
+ },
30
+ },
31
+ default: '',
32
+ description: 'Registered legal name. Leave empty when it matches the operating name.',
33
+ },
21
34
  ];
22
35
  async function execute(itemIndex) {
23
36
  const name = this.getNodeParameter('name', itemIndex);
37
+ const legalName = this.getNodeParameter('legalName', itemIndex, '');
24
38
  const query = `
25
39
  mutation CreateOrganization($input: CreateOrganizationInput!) {
26
40
  createOrganization(input: $input) {
27
41
  organization {
28
42
  id
29
43
  name
44
+ legalName
30
45
  logo {
31
46
  id
32
47
  fileName
@@ -43,10 +58,11 @@ async function execute(itemIndex) {
43
58
  }
44
59
  }
45
60
  `;
61
+ const input = { name };
62
+ if (legalName)
63
+ input.legalName = legalName;
46
64
  const responseData = await GenericFunctions_1.proboConnectApiRequest.call(this, query, {
47
- input: {
48
- name,
49
- },
65
+ input,
50
66
  });
51
67
  return {
52
68
  json: responseData,
@@ -1 +1 @@
1
- {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/create.operation.ts"],"names":[],"mappings":";;;AAwCA,0BAuCC;AA1DD,6DAAgE;AAEnD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAW,CAAC;IAEhE,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;EAqBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,yCAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QACnE,KAAK,EAAE;YACN,IAAI;SACJ;KACD,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/create.operation.ts"],"names":[],"mappings":";;;AAqDA,0BA0CC;AA1ED,6DAAgE;AAEnD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,wEAAwE;KACrF;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAW,CAAC;IAChE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAE9E,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;EAsBb,CAAC;IAEF,MAAM,KAAK,GAA2B,EAAE,IAAI,EAAE,CAAC;IAC/C,IAAI,SAAS;QAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IAE3C,MAAM,YAAY,GAAG,MAAM,yCAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QACnE,KAAK;KACL,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -27,6 +27,7 @@ async function execute(itemIndex) {
27
27
  ... on Organization {
28
28
  id
29
29
  name
30
+ legalName
30
31
  logo {
31
32
  id
32
33
  fileName
@@ -1 +1 @@
1
- {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/get.operation.ts"],"names":[],"mappings":";;;AAwCA,0BAqCC;AAxDD,6DAAgE;AAEnD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IAEpF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;EAqBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,yCAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QACnE,cAAc;KACd,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/get.operation.ts"],"names":[],"mappings":";;;AAwCA,0BAsCC;AAzDD,6DAAgE;AAEnD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IAEpF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;EAsBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,yCAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QACnE,cAAc;KACd,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -47,6 +47,7 @@ async function execute(itemIndex) {
47
47
  organization {
48
48
  id
49
49
  name
50
+ legalName
50
51
  logo {
51
52
  id
52
53
  fileName
@@ -1 +1 @@
1
- {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/getAll.operation.ts"],"names":[],"mappings":";;;AAwDA,0BAkEC;AArGD,6DAAwE;AAE3D,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAY,CAAC;IAC3E,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAA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MAAM,CAAE,QAAmC,CAAC;IACpD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,GAAG,EAAuB,CAAC;IACvD,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACtC,MAAM,GAAG,GAAG,UAAU,CAAC,YAAuC,CAAC;QAC/D,IAAI,GAAG,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC;YACnB,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,EAAY,EAAE,GAAG,CAAC,CAAC;QAC5C,CAAC;IACF,CAAC;IACD,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC;IAE3D,OAAO;QACN,IAAI,EAAE,EAAE,aAAa,EAAE;QACvB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -29,18 +29,50 @@ exports.description = [
29
29
  },
30
30
  },
31
31
  default: '',
32
- description: 'The name of the organization',
32
+ description: 'The operating name of the organization. Leave empty to keep the current name.',
33
+ },
34
+ {
35
+ displayName: 'Clear Legal Name',
36
+ name: 'clearLegalName',
37
+ type: 'boolean',
38
+ displayOptions: {
39
+ show: {
40
+ resource: ['organization'],
41
+ operation: ['update'],
42
+ },
43
+ },
44
+ default: false,
45
+ description: 'Whether to remove the registered legal name',
46
+ },
47
+ {
48
+ displayName: 'Legal Name',
49
+ name: 'legalName',
50
+ type: 'string',
51
+ displayOptions: {
52
+ show: {
53
+ resource: ['organization'],
54
+ operation: ['update'],
55
+ clearLegalName: [false],
56
+ },
57
+ },
58
+ default: '',
59
+ description: 'Registered legal name. Leave empty to keep the current legal name.',
33
60
  },
34
61
  ];
35
62
  async function execute(itemIndex) {
36
63
  const organizationId = this.getNodeParameter('organizationId', itemIndex);
37
64
  const name = this.getNodeParameter('name', itemIndex, '');
65
+ const clearLegalName = this.getNodeParameter('clearLegalName', itemIndex, false);
66
+ const legalName = clearLegalName
67
+ ? ''
68
+ : this.getNodeParameter('legalName', itemIndex, '');
38
69
  const query = `
39
70
  mutation UpdateOrganization($input: UpdateOrganizationInput!) {
40
71
  updateOrganization(input: $input) {
41
72
  organization {
42
73
  id
43
74
  name
75
+ legalName
44
76
  logo {
45
77
  id
46
78
  fileName
@@ -60,6 +92,12 @@ async function execute(itemIndex) {
60
92
  const input = { organizationId };
61
93
  if (name)
62
94
  input.name = name;
95
+ if (clearLegalName) {
96
+ input.legalName = null;
97
+ }
98
+ else if (legalName) {
99
+ input.legalName = legalName;
100
+ }
63
101
  const responseData = await GenericFunctions_1.proboConnectApiRequest.call(this, query, { input });
64
102
  return {
65
103
  json: responseData,
@@ -1 +1 @@
1
- {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/update.operation.ts"],"names":[],"mappings":";;;AAqDA,0BAuCC;AAvED,6DAAgE;AAEnD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sCAAsC;QACnD,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;KAC3C;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IACpF,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAEpE,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;EAqBb,CAAC;IAEF,MAAM,KAAK,GAA2B,EAAE,cAAc,EAAE,CAAC;IACzD,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAE5B,MAAM,YAAY,GAAG,MAAM,yCAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAE/E,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/update.operation.ts"],"names":[],"mappings":";;;AAgFA,0BAiDC;AA5GD,6DAAgE;AAEnD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sCAAsC;QACnD,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+EAA+E;KAC5F;IACD;QACC,WAAW,EA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AI,CAAC;IACxB,CAAC;SAAM,IAAI,SAAS,EAAE,CAAC;QACtB,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,yCAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAE/E,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -4,12 +4,12 @@ import * as updateOp from './update.operation';
4
4
  import * as deleteOp from './delete.operation';
5
5
  import * as getOp from './get.operation';
6
6
  import * as getAllOp from './getAll.operation';
7
- import * as linkMeasureOp from './linkMeasure.operation';
8
- import * as unlinkMeasureOp from './unlinkMeasure.operation';
7
+ import * as linkInternalControlOp from './linkInternalControl.operation';
8
+ import * as unlinkInternalControlOp from './unlinkInternalControl.operation';
9
9
  import * as linkDocumentOp from './linkDocument.operation';
10
10
  import * as unlinkDocumentOp from './unlinkDocument.operation';
11
11
  import * as linkObligationOp from './linkObligation.operation';
12
12
  import * as unlinkObligationOp from './unlinkObligation.operation';
13
13
  import * as publishOp from './publish.operation';
14
14
  export declare const description: INodeProperties[];
15
- export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, linkMeasureOp as linkMeasure, unlinkMeasureOp as unlinkMeasure, linkDocumentOp as linkDocument, unlinkDocumentOp as unlinkDocument, linkObligationOp as linkObligation, unlinkObligationOp as unlinkObligation, publishOp as publish, };
15
+ export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, linkInternalControlOp as linkInternalControl, unlinkInternalControlOp as unlinkInternalControl, linkDocumentOp as linkDocument, unlinkDocumentOp as unlinkDocument, linkObligationOp as linkObligation, unlinkObligationOp as unlinkObligation, publishOp as publish, };
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.publish = exports.unlinkObligation = exports.linkObligation = exports.unlinkDocument = exports.linkDocument = exports.unlinkMeasure = exports.linkMeasure = exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
36
+ exports.publish = exports.unlinkObligation = exports.linkObligation = exports.unlinkDocument = exports.linkDocument = exports.unlinkInternalControl = exports.linkInternalControl = exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
37
37
  const createOp = __importStar(require("./create.operation"));
38
38
  exports.create = createOp;
39
39
  const updateOp = __importStar(require("./update.operation"));
@@ -44,10 +44,10 @@ const getOp = __importStar(require("./get.operation"));
44
44
  exports.get = getOp;
45
45
  const getAllOp = __importStar(require("./getAll.operation"));
46
46
  exports.getAll = getAllOp;
47
- const linkMeasureOp = __importStar(require("./linkMeasure.operation"));
48
- exports.linkMeasure = linkMeasureOp;
49
- const unlinkMeasureOp = __importStar(require("./unlinkMeasure.operation"));
50
- exports.unlinkMeasure = unlinkMeasureOp;
47
+ const linkInternalControlOp = __importStar(require("./linkInternalControl.operation"));
48
+ exports.linkInternalControl = linkInternalControlOp;
49
+ const unlinkInternalControlOp = __importStar(require("./unlinkInternalControl.operation"));
50
+ exports.unlinkInternalControl = unlinkInternalControlOp;
51
51
  const linkDocumentOp = __importStar(require("./linkDocument.operation"));
52
52
  exports.linkDocument = linkDocumentOp;
53
53
  const unlinkDocumentOp = __importStar(require("./unlinkDocument.operation"));
@@ -101,10 +101,10 @@ exports.description = [
101
101
  action: 'Link a document to a risk',
102
102
  },
103
103
  {
104
- name: 'Link Measure',
105
- value: 'linkMeasure',
106
- description: 'Link a measure to a risk',
107
- action: 'Link a measure to a risk',
104
+ name: 'Link Internal Control',
105
+ value: 'linkInternalControl',
106
+ description: 'Link an internal control to a risk',
107
+ action: 'Link an internal control to a risk',
108
108
  },
109
109
  {
110
110
  name: 'Link Obligation',
@@ -125,10 +125,10 @@ exports.description = [
125
125
  action: 'Unlink a document from a risk',
126
126
  },
127
127
  {
128
- name: 'Unlink Measure',
129
- value: 'unlinkMeasure',
130
- description: 'Unlink a measure from a risk',
131
- action: 'Unlink a measure from a risk',
128
+ name: 'Unlink Internal Control',
129
+ value: 'unlinkInternalControl',
130
+ description: 'Unlink an internal control from a risk',
131
+ action: 'Unlink an internal control from a risk',
132
132
  },
133
133
  {
134
134
  name: 'Unlink Obligation',
@@ -150,8 +150,8 @@ exports.description = [
150
150
  ...deleteOp.description,
151
151
  ...getOp.description,
152
152
  ...getAllOp.description,
153
- ...linkMeasureOp.description,
154
- ...unlinkMeasureOp.description,
153
+ ...linkInternalControlOp.description,
154
+ ...unlinkInternalControlOp.description,
155
155
  ...linkDocumentOp.description,
156
156
  ...unlinkDocumentOp.description,
157
157
  ...linkObligationOp.description,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,6DAA+C;AAmHlC,0BAAM;AAlHnB,6DAA+C;AAmHlC,0BAAM;AAlHnB,6DAA+C;AAmHlC,0BAAM;AAlHnB,uDAAyC;AAmH/B,oBAAG;AAlHb,6DAA+C;AAmHlC,0BAAM;AAlHnB,uEAAyD;AAmHvC,oCAAW;AAlH7B,2EAA6D;AAmHzC,wCAAa;AAlHjC,yEAA2D;AAmHxC,sCAAY;AAlH/B,6EAA+D;AAmH1C,0CAAc;AAlHnC,6EAA+D;AAmH1C,0CAAc;AAlHnC,iFAAmE;AAmH5C,8CAAgB;AAlHvC,+DAAiD;AAmHnC,4BAAO;AAjHR,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,O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9B,WAAW,EAAE,wCAAwC;gBACrD,MAAM,EAAE,wCAAwC;aAChD;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,kCAAkC;aAC1C;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,eAAe;aACvB;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,qBAAqB,CAAC,WAAW;IACpC,GAAG,uBAAuB,CAAC,WAAW;IACtC,GAAG,cAAc,CAAC,WAAW;IAC7B,GAAG,gBAAgB,CAAC,WAAW;IAC/B,GAAG,gBAAgB,CAAC,WAAW;IAC/B,GAAG,kBAAkB,CAAC,WAAW;IACjC,GAAG,SAAS,CAAC,WAAW;CACxB,CAAC"}
@@ -11,7 +11,7 @@ exports.description = [
11
11
  displayOptions: {
12
12
  show: {
13
13
  resource: ['risk'],
14
- operation: ['linkMeasure'],
14
+ operation: ['linkInternalControl'],
15
15
  },
16
16
  },
17
17
  default: '',
@@ -19,33 +19,33 @@ exports.description = [
19
19
  required: true,
20
20
  },
21
21
  {
22
- displayName: 'Measure ID',
23
- name: 'measureId',
22
+ displayName: 'Internal Control ID',
23
+ name: 'internalControlId',
24
24
  type: 'string',
25
25
  displayOptions: {
26
26
  show: {
27
27
  resource: ['risk'],
28
- operation: ['linkMeasure'],
28
+ operation: ['linkInternalControl'],
29
29
  },
30
30
  },
31
31
  default: '',
32
- description: 'The ID of the measure to link',
32
+ description: 'The ID of the internal control to link',
33
33
  required: true,
34
34
  },
35
35
  ];
36
36
  async function execute(itemIndex) {
37
37
  const riskId = this.getNodeParameter('riskId', itemIndex);
38
- const measureId = this.getNodeParameter('measureId', itemIndex);
38
+ const internalControlId = this.getNodeParameter('internalControlId', itemIndex);
39
39
  const query = `
40
- mutation CreateRiskMeasureMapping($input: CreateRiskMeasureMappingInput!) {
41
- createRiskMeasureMapping(input: $input) {
40
+ mutation CreateRiskInternalControlMapping($input: CreateRiskInternalControlMappingInput!) {
41
+ createRiskInternalControlMapping(input: $input) {
42
42
  riskEdge {
43
43
  node {
44
44
  id
45
45
  name
46
46
  }
47
47
  }
48
- measureEdge {
48
+ internalControlEdge {
49
49
  node {
50
50
  id
51
51
  name
@@ -54,10 +54,10 @@ async function execute(itemIndex) {
54
54
  }
55
55
  }
56
56
  `;
57
- const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, measureId } });
57
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, internalControlId } });
58
58
  return {
59
59
  json: responseData,
60
60
  pairedItem: { item: itemIndex },
61
61
  };
62
62
  }
63
- //# sourceMappingURL=linkMeasure.operation.js.map
63
+ //# sourceMappingURL=linkInternalControl.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkInternalControl.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/linkInternalControl.operation.ts"],"names":[],"mappings":";;;AAsDA,0BAgCC;AAjED,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,qBAAqB,CAAC;aAClC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,qBAAqB,CAAC;aAClC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAW,CAAC;IACpE,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,SAAS,CAAW,CAAC;IAE1F,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;EAiBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,CAAC,CAAC;IAEvG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -11,7 +11,7 @@ exports.description = [
11
11
  displayOptions: {
12
12
  show: {
13
13
  resource: ['risk'],
14
- operation: ['unlinkMeasure'],
14
+ operation: ['unlinkInternalControl'],
15
15
  },
16
16
  },
17
17
  default: '',
@@ -19,35 +19,35 @@ exports.description = [
19
19
  required: true,
20
20
  },
21
21
  {
22
- displayName: 'Measure ID',
23
- name: 'measureId',
22
+ displayName: 'Internal Control ID',
23
+ name: 'internalControlId',
24
24
  type: 'string',
25
25
  displayOptions: {
26
26
  show: {
27
27
  resource: ['risk'],
28
- operation: ['unlinkMeasure'],
28
+ operation: ['unlinkInternalControl'],
29
29
  },
30
30
  },
31
31
  default: '',
32
- description: 'The ID of the measure to unlink',
32
+ description: 'The ID of the internal control to unlink',
33
33
  required: true,
34
34
  },
35
35
  ];
36
36
  async function execute(itemIndex) {
37
37
  const riskId = this.getNodeParameter('riskId', itemIndex);
38
- const measureId = this.getNodeParameter('measureId', itemIndex);
38
+ const internalControlId = this.getNodeParameter('internalControlId', itemIndex);
39
39
  const query = `
40
- mutation DeleteRiskMeasureMapping($input: DeleteRiskMeasureMappingInput!) {
41
- deleteRiskMeasureMapping(input: $input) {
40
+ mutation DeleteRiskInternalControlMapping($input: DeleteRiskInternalControlMappingInput!) {
41
+ deleteRiskInternalControlMapping(input: $input) {
42
42
  deletedRiskId
43
- deletedMeasureId
43
+ deletedInternalControlId
44
44
  }
45
45
  }
46
46
  `;
47
- const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, measureId } });
47
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, internalControlId } });
48
48
  return {
49
49
  json: responseData,
50
50
  pairedItem: { item: itemIndex },
51
51
  };
52
52
  }
53
- //# sourceMappingURL=unlinkMeasure.operation.js.map
53
+ //# sourceMappingURL=unlinkInternalControl.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlinkInternalControl.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/unlinkInternalControl.operation.ts"],"names":[],"mappings":";;;AAsDA,0BAsBC;AAvDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,uBAAuB,CAAC;aACpC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,uBAAuB,CAAC;aACpC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0CAA0C;QACvD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAW,CAAC;IACpE,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,SAAS,CAAW,CAAC;IAE1F,MAAM,KAAK,GAAG;;;;;;;EAOb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,CAAC,CAAC;IAEvG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}