@probo/n8n-nodes-probo 0.221.0 → 0.223.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.
- package/dist/nodes/Probo/GenericFunctions.d.ts +4 -0
- package/dist/nodes/Probo/GenericFunctions.js +14 -0
- package/dist/nodes/Probo/GenericFunctions.js.map +1 -1
- package/dist/nodes/Probo/Probo.node.js +5 -0
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/create.operation.js +16 -14
- package/dist/nodes/Probo/actions/audit/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/deleteReport.operation.js +8 -4
- package/dist/nodes/Probo/actions/audit/deleteReport.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/get.operation.js +8 -4
- package/dist/nodes/Probo/actions/audit/get.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/getAll.operation.js +8 -4
- package/dist/nodes/Probo/actions/audit/getAll.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/update.operation.js +16 -14
- package/dist/nodes/Probo/actions/audit/update.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/uploadReport.operation.js +8 -4
- package/dist/nodes/Probo/actions/audit/uploadReport.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/compliancePortal/updateAuditVisibility.operation.js +4 -2
- package/dist/nodes/Probo/actions/compliancePortal/updateAuditVisibility.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/index.js +2 -0
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- package/dist/nodes/Probo/actions/measure/index.d.ts +3 -1
- package/dist/nodes/Probo/actions/measure/index.js +20 -2
- package/dist/nodes/Probo/actions/measure/index.js.map +1 -1
- package/dist/nodes/Probo/actions/measure/linkTreatmentPlan.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/measure/linkTreatmentPlan.operation.js +62 -0
- package/dist/nodes/Probo/actions/measure/linkTreatmentPlan.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/measure/unlinkTreatmentPlan.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/measure/unlinkTreatmentPlan.operation.js +53 -0
- package/dist/nodes/Probo/actions/measure/unlinkTreatmentPlan.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/getAll.operation.js +104 -21
- package/dist/nodes/Probo/actions/risk/getAll.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/riskAnalysis/create.operation.js +1 -1
- package/dist/nodes/Probo/actions/riskAnalysis/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/riskAnalysis/fork.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/riskAnalysis/fork.operation.js +117 -0
- package/dist/nodes/Probo/actions/riskAnalysis/fork.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/riskAnalysis/get.operation.js +6 -0
- package/dist/nodes/Probo/actions/riskAnalysis/get.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/riskAnalysis/index.d.ts +2 -1
- package/dist/nodes/Probo/actions/riskAnalysis/index.js +10 -1
- package/dist/nodes/Probo/actions/riskAnalysis/index.js.map +1 -1
- package/dist/nodes/Probo/actions/riskAnalysis/update.operation.js +0 -16
- package/dist/nodes/Probo/actions/riskAnalysis/update.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/task/create.operation.js +2 -3
- package/dist/nodes/Probo/actions/task/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/thirdParty/getBusinessAssociateAgreement.operation.js +4 -2
- package/dist/nodes/Probo/actions/thirdParty/getBusinessAssociateAgreement.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/thirdParty/getDataPrivacyAgreement.operation.js +4 -2
- package/dist/nodes/Probo/actions/thirdParty/getDataPrivacyAgreement.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/thirdParty/updateBusinessAssociateAgreement.operation.js +7 -6
- package/dist/nodes/Probo/actions/thirdParty/updateBusinessAssociateAgreement.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/thirdParty/updateDataPrivacyAgreement.operation.js +7 -6
- package/dist/nodes/Probo/actions/thirdParty/updateDataPrivacyAgreement.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/treatmentPlan/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/treatmentPlan/create.operation.js +206 -0
- package/dist/nodes/Probo/actions/treatmentPlan/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/treatmentPlan/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/treatmentPlan/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/treatmentPlan/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/treatmentPlan/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/treatmentPlan/get.operation.js +75 -0
- package/dist/nodes/Probo/actions/treatmentPlan/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/treatmentPlan/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/treatmentPlan/getAll.operation.js +255 -0
- package/dist/nodes/Probo/actions/treatmentPlan/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/treatmentPlan/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/treatmentPlan/index.js +98 -0
- package/dist/nodes/Probo/actions/treatmentPlan/index.js.map +1 -0
- package/dist/nodes/Probo/actions/treatmentPlan/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/treatmentPlan/update.operation.js +164 -0
- package/dist/nodes/Probo/actions/treatmentPlan/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/user/createUser.operation.js +7 -7
- package/dist/nodes/Probo/actions/user/createUser.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/user/getUser.operation.js +4 -2
- package/dist/nodes/Probo/actions/user/getUser.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/user/listUsers.operation.js +4 -2
- package/dist/nodes/Probo/actions/user/listUsers.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/user/updateUser.operation.js +7 -7
- package/dist/nodes/Probo/actions/user/updateUser.operation.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDataPrivacyAgreement.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/getDataPrivacyAgreement.operation.ts"],"names":[],"mappings":";;;AAwCA,
|
|
1
|
+
{"version":3,"file":"getDataPrivacyAgreement.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/getDataPrivacyAgreement.operation.ts"],"names":[],"mappings":";;;AAwCA,0BAiCC;AApDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,yBAAyB,CAAC;aACtC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,SAAS,CAAW,CAAC;IAEhF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;EAmBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC;IAE/E,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -54,17 +54,18 @@ async function execute(itemIndex) {
|
|
|
54
54
|
updateThirdPartyBusinessAssociateAgreement(input: $input) {
|
|
55
55
|
thirdPartyBusinessAssociateAgreement {
|
|
56
56
|
id
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
validity {
|
|
58
|
+
start
|
|
59
|
+
end
|
|
60
|
+
}
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
`;
|
|
63
65
|
const input = { thirdPartyId };
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
input.validUntil = validUntil;
|
|
66
|
+
const validity = (0, GenericFunctions_1.toPeriod)(validFrom, validUntil);
|
|
67
|
+
if (validity)
|
|
68
|
+
input.validity = validity;
|
|
68
69
|
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
69
70
|
return {
|
|
70
71
|
json: responseData,
|
package/dist/nodes/Probo/actions/thirdParty/updateBusinessAssociateAgreement.operation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateBusinessAssociateAgreement.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/updateBusinessAssociateAgreement.operation.ts"],"names":[],"mappings":";;;AAkEA,
|
|
1
|
+
{"version":3,"file":"updateBusinessAssociateAgreement.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/updateBusinessAssociateAgreement.operation.ts"],"names":[],"mappings":";;;AAkEA,0BAgCC;AA7ED,6DAAmE;AAEtD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,kCAAkC,CAAC;aAC/C;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;Q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function execute(itemIndex) {
|
|
|
54
54
|
updateThirdPartyDataPrivacyAgreement(input: $input) {
|
|
55
55
|
thirdPartyDataPrivacyAgreement {
|
|
56
56
|
id
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
validity {
|
|
58
|
+
start
|
|
59
|
+
end
|
|
60
|
+
}
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
`;
|
|
63
65
|
const input = { thirdPartyId };
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
input.validUntil = validUntil;
|
|
66
|
+
const validity = (0, GenericFunctions_1.toPeriod)(validFrom, validUntil);
|
|
67
|
+
if (validity)
|
|
68
|
+
input.validity = validity;
|
|
68
69
|
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
69
70
|
return {
|
|
70
71
|
json: responseData,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateDataPrivacyAgreement.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/updateDataPrivacyAgreement.operation.ts"],"names":[],"mappings":";;;AAkEA,
|
|
1
|
+
{"version":3,"file":"updateDataPrivacyAgreement.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/updateDataPrivacyAgreement.operation.ts"],"names":[],"mappings":";;;AAkEA,0BAgCC;AA7ED,6DAAmE;AAEtD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,4BAA4B,CAAC;aACzC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAA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
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Risk ID',
|
|
9
|
+
name: 'riskId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['treatmentPlan'],
|
|
14
|
+
operation: ['create'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the risk',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Risk Analysis ID',
|
|
23
|
+
name: 'riskAnalysisId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['treatmentPlan'],
|
|
28
|
+
operation: ['create'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The ID of the risk analysis',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Treatment',
|
|
37
|
+
name: 'treatment',
|
|
38
|
+
type: 'options',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['treatmentPlan'],
|
|
42
|
+
operation: ['create'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
options: [
|
|
46
|
+
{
|
|
47
|
+
name: 'Mitigated',
|
|
48
|
+
value: 'MITIGATED',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Accepted',
|
|
52
|
+
value: 'ACCEPTED',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Avoided',
|
|
56
|
+
value: 'AVOIDED',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Transferred',
|
|
60
|
+
value: 'TRANSFERRED',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
default: 'MITIGATED',
|
|
64
|
+
description: 'The treatment strategy',
|
|
65
|
+
required: true,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Inherent Likelihood',
|
|
69
|
+
name: 'inherentLikelihood',
|
|
70
|
+
type: 'number',
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: {
|
|
73
|
+
resource: ['treatmentPlan'],
|
|
74
|
+
operation: ['create'],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
typeOptions: {
|
|
78
|
+
minValue: 1,
|
|
79
|
+
maxValue: 5,
|
|
80
|
+
},
|
|
81
|
+
default: 1,
|
|
82
|
+
description: 'The inherent likelihood (1-5)',
|
|
83
|
+
required: true,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'Inherent Impact',
|
|
87
|
+
name: 'inherentImpact',
|
|
88
|
+
type: 'number',
|
|
89
|
+
displayOptions: {
|
|
90
|
+
show: {
|
|
91
|
+
resource: ['treatmentPlan'],
|
|
92
|
+
operation: ['create'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
typeOptions: {
|
|
96
|
+
minValue: 1,
|
|
97
|
+
maxValue: 5,
|
|
98
|
+
},
|
|
99
|
+
default: 1,
|
|
100
|
+
description: 'The inherent impact (1-5)',
|
|
101
|
+
required: true,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
displayName: 'Owner ID',
|
|
105
|
+
name: 'ownerId',
|
|
106
|
+
type: 'string',
|
|
107
|
+
displayOptions: {
|
|
108
|
+
show: {
|
|
109
|
+
resource: ['treatmentPlan'],
|
|
110
|
+
operation: ['create'],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
default: '',
|
|
114
|
+
description: 'The ID of the person who owns this treatment plan',
|
|
115
|
+
required: true,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Additional Fields',
|
|
119
|
+
name: 'additionalFields',
|
|
120
|
+
type: 'collection',
|
|
121
|
+
placeholder: 'Add Field',
|
|
122
|
+
default: {},
|
|
123
|
+
displayOptions: {
|
|
124
|
+
show: {
|
|
125
|
+
resource: ['treatmentPlan'],
|
|
126
|
+
operation: ['create'],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
options: [
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Residual Impact',
|
|
132
|
+
name: 'residualImpact',
|
|
133
|
+
type: 'number',
|
|
134
|
+
typeOptions: {
|
|
135
|
+
minValue: 1,
|
|
136
|
+
maxValue: 5,
|
|
137
|
+
},
|
|
138
|
+
default: 1,
|
|
139
|
+
description: 'The residual impact (1-5)',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
displayName: 'Residual Likelihood',
|
|
143
|
+
name: 'residualLikelihood',
|
|
144
|
+
type: 'number',
|
|
145
|
+
typeOptions: {
|
|
146
|
+
minValue: 1,
|
|
147
|
+
maxValue: 5,
|
|
148
|
+
},
|
|
149
|
+
default: 1,
|
|
150
|
+
description: 'The residual likelihood (1-5)',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
async function execute(itemIndex) {
|
|
156
|
+
var _a, _b;
|
|
157
|
+
const riskId = this.getNodeParameter('riskId', itemIndex);
|
|
158
|
+
const riskAnalysisId = this.getNodeParameter('riskAnalysisId', itemIndex);
|
|
159
|
+
const treatment = this.getNodeParameter('treatment', itemIndex);
|
|
160
|
+
const inherentLikelihood = this.getNodeParameter('inherentLikelihood', itemIndex);
|
|
161
|
+
const inherentImpact = this.getNodeParameter('inherentImpact', itemIndex);
|
|
162
|
+
const ownerId = this.getNodeParameter('ownerId', itemIndex);
|
|
163
|
+
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {});
|
|
164
|
+
const query = `
|
|
165
|
+
mutation CreateTreatmentPlan($input: CreateTreatmentPlanInput!) {
|
|
166
|
+
createTreatmentPlan(input: $input) {
|
|
167
|
+
treatmentPlanEdge {
|
|
168
|
+
node {
|
|
169
|
+
id
|
|
170
|
+
treatment
|
|
171
|
+
inherentLikelihood
|
|
172
|
+
inherentImpact
|
|
173
|
+
inherentRiskScore
|
|
174
|
+
residualLikelihood
|
|
175
|
+
residualImpact
|
|
176
|
+
residualRiskScore
|
|
177
|
+
netLikelihood
|
|
178
|
+
netImpact
|
|
179
|
+
netRiskScore
|
|
180
|
+
createdAt
|
|
181
|
+
updatedAt
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
`;
|
|
187
|
+
const input = {
|
|
188
|
+
riskId,
|
|
189
|
+
riskAnalysisId,
|
|
190
|
+
treatment,
|
|
191
|
+
ownerId,
|
|
192
|
+
inherentLikelihood,
|
|
193
|
+
inherentImpact,
|
|
194
|
+
};
|
|
195
|
+
if (additionalFields.residualLikelihood !== undefined
|
|
196
|
+
|| additionalFields.residualImpact !== undefined) {
|
|
197
|
+
input.residualLikelihood = (_a = additionalFields.residualLikelihood) !== null && _a !== void 0 ? _a : inherentLikelihood;
|
|
198
|
+
input.residualImpact = (_b = additionalFields.residualImpact) !== null && _b !== void 0 ? _b : inherentImpact;
|
|
199
|
+
}
|
|
200
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
201
|
+
return {
|
|
202
|
+
json: responseData,
|
|
203
|
+
pairedItem: { item: itemIndex },
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/treatmentPlan/create.operation.ts"],"names":[],"mappings":";;;AA6KA,0BA6DC;AArND,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAA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AG,MAAA,gBAAgB,CAAC,kBAAkB,mCAAI,kBAAkB,CAAC;QACrF,KAAK,CAAC,cAAc,GAAG,MAAA,gBAAgB,CAAC,cAAc,mCAAI,cAAc,CAAC;IAC1E,CAAC;IAED,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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Treatment Plan ID',
|
|
9
|
+
name: 'treatmentPlanId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['treatmentPlan'],
|
|
14
|
+
operation: ['delete'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the treatment plan to delete',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const treatmentPlanId = this.getNodeParameter('treatmentPlanId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
mutation DeleteTreatmentPlan($input: DeleteTreatmentPlanInput!) {
|
|
26
|
+
deleteTreatmentPlan(input: $input) {
|
|
27
|
+
deletedTreatmentPlanId
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { treatmentPlanId } });
|
|
32
|
+
return {
|
|
33
|
+
json: responseData,
|
|
34
|
+
pairedItem: { item: itemIndex },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=delete.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/treatmentPlan/delete.operation.ts"],"names":[],"mappings":";;;AAwCA,0BAoBC;AAvCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,SAAS,CAAW,CAAC;IAEtF,MAAM,KAAK,GAAG;;;;;;EAMb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,CAAC,CAAC;IAE7F,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Treatment Plan ID',
|
|
9
|
+
name: 'treatmentPlanId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['treatmentPlan'],
|
|
14
|
+
operation: ['get'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the treatment plan',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const treatmentPlanId = this.getNodeParameter('treatmentPlanId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
query GetTreatmentPlan($treatmentPlanId: ID!) {
|
|
26
|
+
node(id: $treatmentPlanId) {
|
|
27
|
+
... on TreatmentPlan {
|
|
28
|
+
id
|
|
29
|
+
treatment
|
|
30
|
+
inherentLikelihood
|
|
31
|
+
inherentImpact
|
|
32
|
+
inherentRiskScore
|
|
33
|
+
residualLikelihood
|
|
34
|
+
residualImpact
|
|
35
|
+
residualRiskScore
|
|
36
|
+
netLikelihood
|
|
37
|
+
netImpact
|
|
38
|
+
netRiskScore
|
|
39
|
+
risk {
|
|
40
|
+
id
|
|
41
|
+
name
|
|
42
|
+
}
|
|
43
|
+
riskAnalysis {
|
|
44
|
+
id
|
|
45
|
+
name
|
|
46
|
+
}
|
|
47
|
+
owner {
|
|
48
|
+
id
|
|
49
|
+
fullName
|
|
50
|
+
}
|
|
51
|
+
measures(first: 0) {
|
|
52
|
+
totalCount
|
|
53
|
+
}
|
|
54
|
+
implementedMeasures: measures(first: 0, filter: { state: IMPLEMENTED }) {
|
|
55
|
+
totalCount
|
|
56
|
+
}
|
|
57
|
+
inProgressMeasures: measures(first: 0, filter: { state: IN_PROGRESS }) {
|
|
58
|
+
totalCount
|
|
59
|
+
}
|
|
60
|
+
notImplementedMeasures: measures(first: 0, filter: { state: NOT_IMPLEMENTED }) {
|
|
61
|
+
totalCount
|
|
62
|
+
}
|
|
63
|
+
createdAt
|
|
64
|
+
updatedAt
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { treatmentPlanId });
|
|
70
|
+
return {
|
|
71
|
+
json: responseData,
|
|
72
|
+
pairedItem: { item: itemIndex },
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/treatmentPlan/get.operation.ts"],"names":[],"mappings":";;;AAwCA,0BA0DC;AA7ED,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,SAAS,CAAW,CAAC;IAEtF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4Cb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;IAElF,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|