@probo/n8n-nodes-probo 0.221.0 → 0.222.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/Probo.node.js +5 -0
- package/dist/nodes/Probo/Probo.node.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/get.operation.js +6 -0
- package/dist/nodes/Probo/actions/riskAnalysis/get.operation.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/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/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,206 @@
|
|
|
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,EAAE,QAAQ;QACd,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,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACr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ports, "__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"}
|
|
@@ -0,0 +1,255 @@
|
|
|
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
|
+
const treatmentPlanNodeFields = `
|
|
7
|
+
id
|
|
8
|
+
treatment
|
|
9
|
+
inherentLikelihood
|
|
10
|
+
inherentImpact
|
|
11
|
+
inherentRiskScore
|
|
12
|
+
residualLikelihood
|
|
13
|
+
residualImpact
|
|
14
|
+
residualRiskScore
|
|
15
|
+
netLikelihood
|
|
16
|
+
netImpact
|
|
17
|
+
netRiskScore
|
|
18
|
+
risk {
|
|
19
|
+
id
|
|
20
|
+
name
|
|
21
|
+
category
|
|
22
|
+
}
|
|
23
|
+
riskAnalysis {
|
|
24
|
+
id
|
|
25
|
+
name
|
|
26
|
+
}
|
|
27
|
+
owner {
|
|
28
|
+
id
|
|
29
|
+
fullName
|
|
30
|
+
}
|
|
31
|
+
createdAt
|
|
32
|
+
updatedAt
|
|
33
|
+
`;
|
|
34
|
+
function treatmentPlansQuery(parentType) {
|
|
35
|
+
return `
|
|
36
|
+
query GetTreatmentPlans($id: ID!, $first: Int, $after: CursorKey, $orderBy: TreatmentPlanOrder, $filter: TreatmentPlanFilter) {
|
|
37
|
+
node(id: $id) {
|
|
38
|
+
... on ${parentType} {
|
|
39
|
+
treatmentPlans(first: $first, after: $after, orderBy: $orderBy, filter: $filter) {
|
|
40
|
+
edges {
|
|
41
|
+
node {
|
|
42
|
+
${treatmentPlanNodeFields}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
pageInfo {
|
|
46
|
+
hasNextPage
|
|
47
|
+
endCursor
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
exports.description = [
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Organization ID',
|
|
58
|
+
name: 'organizationId',
|
|
59
|
+
type: 'string',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['treatmentPlan'],
|
|
63
|
+
operation: ['getAll'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
default: '',
|
|
67
|
+
description: 'The ID of the organization. Ignored when Risk ID or Risk Analysis ID is set.',
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Risk ID',
|
|
72
|
+
name: 'riskId',
|
|
73
|
+
type: 'string',
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
resource: ['treatmentPlan'],
|
|
77
|
+
operation: ['getAll'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
default: '',
|
|
81
|
+
description: 'List treatment plans for this risk. Cannot be set together with Risk Analysis ID.',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Risk Analysis ID',
|
|
85
|
+
name: 'riskAnalysisId',
|
|
86
|
+
type: 'string',
|
|
87
|
+
displayOptions: {
|
|
88
|
+
show: {
|
|
89
|
+
resource: ['treatmentPlan'],
|
|
90
|
+
operation: ['getAll'],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
default: '',
|
|
94
|
+
description: 'List treatment plans for this risk analysis. Cannot be set together with Risk ID.',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
displayName: 'Return All',
|
|
98
|
+
name: 'returnAll',
|
|
99
|
+
type: 'boolean',
|
|
100
|
+
displayOptions: {
|
|
101
|
+
show: {
|
|
102
|
+
resource: ['treatmentPlan'],
|
|
103
|
+
operation: ['getAll'],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
default: false,
|
|
107
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Limit',
|
|
111
|
+
name: 'limit',
|
|
112
|
+
type: 'number',
|
|
113
|
+
displayOptions: {
|
|
114
|
+
show: {
|
|
115
|
+
resource: ['treatmentPlan'],
|
|
116
|
+
operation: ['getAll'],
|
|
117
|
+
returnAll: [false],
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
typeOptions: {
|
|
121
|
+
minValue: 1,
|
|
122
|
+
},
|
|
123
|
+
default: 50,
|
|
124
|
+
description: 'Max number of results to return',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
displayName: 'Order By',
|
|
128
|
+
name: 'orderBy',
|
|
129
|
+
type: 'options',
|
|
130
|
+
displayOptions: {
|
|
131
|
+
show: {
|
|
132
|
+
resource: ['treatmentPlan'],
|
|
133
|
+
operation: ['getAll'],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
options: [
|
|
137
|
+
{ name: 'Category', value: 'CATEGORY' },
|
|
138
|
+
{ name: 'Created At', value: 'CREATED_AT' },
|
|
139
|
+
{ name: 'Inherent Risk Score', value: 'INHERENT_RISK_SCORE' },
|
|
140
|
+
{ name: 'None', value: '' },
|
|
141
|
+
{ name: 'Residual Risk Score', value: 'RESIDUAL_RISK_SCORE' },
|
|
142
|
+
{ name: 'Treatment', value: 'TREATMENT' },
|
|
143
|
+
],
|
|
144
|
+
default: '',
|
|
145
|
+
description: 'Field to order treatment plans by',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Order Direction',
|
|
149
|
+
name: 'orderDirection',
|
|
150
|
+
type: 'options',
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
resource: ['treatmentPlan'],
|
|
154
|
+
operation: ['getAll'],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
options: [
|
|
158
|
+
{ name: 'Ascending', value: 'ASC' },
|
|
159
|
+
{ name: 'Descending', value: 'DESC' },
|
|
160
|
+
],
|
|
161
|
+
default: 'DESC',
|
|
162
|
+
description: 'Sort direction. Used when Order By is set.',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
displayName: 'Score Type',
|
|
166
|
+
name: 'scoreType',
|
|
167
|
+
type: 'options',
|
|
168
|
+
displayOptions: {
|
|
169
|
+
show: {
|
|
170
|
+
resource: ['treatmentPlan'],
|
|
171
|
+
operation: ['getAll'],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
options: [
|
|
175
|
+
{ name: 'Inherent', value: 'INHERENT' },
|
|
176
|
+
{ name: 'Net', value: 'NET' },
|
|
177
|
+
{ name: 'None', value: '' },
|
|
178
|
+
{ name: 'Residual', value: 'RESIDUAL' },
|
|
179
|
+
],
|
|
180
|
+
default: '',
|
|
181
|
+
description: 'Filter by matrix score type. Requires Likelihood and Impact.',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
displayName: 'Likelihood',
|
|
185
|
+
name: 'likelihood',
|
|
186
|
+
type: 'number',
|
|
187
|
+
displayOptions: {
|
|
188
|
+
show: {
|
|
189
|
+
resource: ['treatmentPlan'],
|
|
190
|
+
operation: ['getAll'],
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
default: 0,
|
|
194
|
+
description: 'Filter by likelihood. Requires Score Type and Impact.',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
displayName: 'Impact',
|
|
198
|
+
name: 'impact',
|
|
199
|
+
type: 'number',
|
|
200
|
+
displayOptions: {
|
|
201
|
+
show: {
|
|
202
|
+
resource: ['treatmentPlan'],
|
|
203
|
+
operation: ['getAll'],
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
default: 0,
|
|
207
|
+
description: 'Filter by impact. Requires Score Type and Likelihood.',
|
|
208
|
+
},
|
|
209
|
+
];
|
|
210
|
+
async function execute(itemIndex) {
|
|
211
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
212
|
+
const riskId = this.getNodeParameter('riskId', itemIndex, '');
|
|
213
|
+
const riskAnalysisId = this.getNodeParameter('riskAnalysisId', itemIndex, '');
|
|
214
|
+
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
215
|
+
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
216
|
+
const orderBy = this.getNodeParameter('orderBy', itemIndex, '');
|
|
217
|
+
const orderDirection = this.getNodeParameter('orderDirection', itemIndex, 'DESC');
|
|
218
|
+
const scoreType = this.getNodeParameter('scoreType', itemIndex, '');
|
|
219
|
+
const likelihood = this.getNodeParameter('likelihood', itemIndex, 0);
|
|
220
|
+
const impact = this.getNodeParameter('impact', itemIndex, 0);
|
|
221
|
+
if (riskId !== '' && riskAnalysisId !== '') {
|
|
222
|
+
throw new Error('Risk ID and Risk Analysis ID cannot be set together');
|
|
223
|
+
}
|
|
224
|
+
const hasCell = scoreType !== '' || likelihood > 0 || impact > 0;
|
|
225
|
+
if (hasCell && (scoreType === '' || likelihood <= 0 || impact <= 0)) {
|
|
226
|
+
throw new Error('Score Type, Likelihood, and Impact must be set together');
|
|
227
|
+
}
|
|
228
|
+
let parentType = 'Organization';
|
|
229
|
+
let id = organizationId;
|
|
230
|
+
if (riskId !== '') {
|
|
231
|
+
parentType = 'Risk';
|
|
232
|
+
id = riskId;
|
|
233
|
+
}
|
|
234
|
+
else if (riskAnalysisId !== '') {
|
|
235
|
+
parentType = 'RiskAnalysis';
|
|
236
|
+
id = riskAnalysisId;
|
|
237
|
+
}
|
|
238
|
+
const variables = { id };
|
|
239
|
+
if (orderBy !== '') {
|
|
240
|
+
variables.orderBy = { field: orderBy, direction: orderDirection };
|
|
241
|
+
}
|
|
242
|
+
if (hasCell) {
|
|
243
|
+
variables.filter = { scoreType, likelihood, impact };
|
|
244
|
+
}
|
|
245
|
+
const treatmentPlans = await GenericFunctions_1.proboApiRequestAllItems.call(this, treatmentPlansQuery(parentType), variables, (response) => {
|
|
246
|
+
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
247
|
+
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
248
|
+
return node === null || node === void 0 ? void 0 : node.treatmentPlans;
|
|
249
|
+
}, returnAll, limit);
|
|
250
|
+
return {
|
|
251
|
+
json: { treatmentPlans },
|
|
252
|
+
pairedItem: { item: itemIndex },
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
//# sourceMappingURL=getAll.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/treatmentPlan/getAll.operation.ts"],"names":[],"mappings":";;;AAsOA,0BA2DC;AA5QD,6DAAiE;AAEjE,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B/B,CAAC;AAEF,SAAS,mBAAmB,CAAC,UAAoD;IAChF,OAAO;;;aAGK,UAAU;;;;UAIb,uB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AAC;IAC1E,IAAI,EAAE,GAAG,cAAc,CAAC;IACxB,IAAI,MAAM,KAAK,EAAE,EAAE,CAAC;QACnB,UAAU,GAAG,MAAM,CAAC;QACpB,EAAE,GAAG,MAAM,CAAC;IACb,CAAC;SAAM,IAAI,cAAc,KAAK,EAAE,EAAE,CAAC;QAClC,UAAU,GAAG,cAAc,CAAC;QAC5B,EAAE,GAAG,cAAc,CAAC;IACrB,CAAC;IAED,MAAM,SAAS,GAAgB,EAAE,EAAE,EAAE,CAAC;IACtC,IAAI,OAAO,KAAK,EAAE,EAAE,CAAC;QACpB,SAAS,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;IACnE,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACb,SAAS,CAAC,MAAM,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IACtD,CAAC;IAED,MAAM,cAAc,GAAG,MAAM,0CAAuB,CAAC,IAAI,CACxD,IAAI,EACJ,mBAAmB,CAAC,UAAU,CAAC,EAC/B,SAAS,EACT,CAAC,QAAQ,EAAE,EAAE;QACZ,MAAM,IAAI,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAA+B,CAAC;QACvD,MAAM,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAA+B,CAAC;QACnD,OAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAyC,CAAC;IACxD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,cAAc,EAAE;QACxB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import * as createOp from './create.operation';
|
|
3
|
+
import * as deleteOp from './delete.operation';
|
|
4
|
+
import * as getOp from './get.operation';
|
|
5
|
+
import * as getAllOp from './getAll.operation';
|
|
6
|
+
import * as updateOp from './update.operation';
|
|
7
|
+
export declare const description: INodeProperties[];
|
|
8
|
+
export { createOp as create, deleteOp as delete, getOp as get, getAllOp as getAll, updateOp as update, };
|