@probo/n8n-nodes-probo 0.101.1 → 0.104.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/risk/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/create.operation.js +232 -0
- package/dist/nodes/Probo/actions/risk/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/risk/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/get.operation.js +55 -0
- package/dist/nodes/Probo/actions/risk/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/getAll.operation.js +98 -0
- package/dist/nodes/Probo/actions/risk/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/index.d.ts +14 -0
- package/dist/nodes/Probo/actions/risk/index.js +152 -0
- package/dist/nodes/Probo/actions/risk/index.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/linkDocument.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/linkDocument.operation.js +63 -0
- package/dist/nodes/Probo/actions/risk/linkDocument.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/linkMeasure.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/linkMeasure.operation.js +63 -0
- package/dist/nodes/Probo/actions/risk/linkMeasure.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/linkObligation.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/linkObligation.operation.js +63 -0
- package/dist/nodes/Probo/actions/risk/linkObligation.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/unlinkDocument.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/unlinkDocument.operation.js +53 -0
- package/dist/nodes/Probo/actions/risk/unlinkDocument.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/unlinkMeasure.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/unlinkMeasure.operation.js +53 -0
- package/dist/nodes/Probo/actions/risk/unlinkMeasure.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/unlinkObligation.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/unlinkObligation.operation.js +53 -0
- package/dist/nodes/Probo/actions/risk/unlinkObligation.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/risk/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/risk/update.operation.js +214 -0
- package/dist/nodes/Probo/actions/risk/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,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
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;
|
|
37
|
+
const createOp = __importStar(require("./create.operation"));
|
|
38
|
+
exports.create = createOp;
|
|
39
|
+
const updateOp = __importStar(require("./update.operation"));
|
|
40
|
+
exports.update = updateOp;
|
|
41
|
+
const deleteOp = __importStar(require("./delete.operation"));
|
|
42
|
+
exports.delete = deleteOp;
|
|
43
|
+
const getOp = __importStar(require("./get.operation"));
|
|
44
|
+
exports.get = getOp;
|
|
45
|
+
const getAllOp = __importStar(require("./getAll.operation"));
|
|
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;
|
|
51
|
+
const linkDocumentOp = __importStar(require("./linkDocument.operation"));
|
|
52
|
+
exports.linkDocument = linkDocumentOp;
|
|
53
|
+
const unlinkDocumentOp = __importStar(require("./unlinkDocument.operation"));
|
|
54
|
+
exports.unlinkDocument = unlinkDocumentOp;
|
|
55
|
+
const linkObligationOp = __importStar(require("./linkObligation.operation"));
|
|
56
|
+
exports.linkObligation = linkObligationOp;
|
|
57
|
+
const unlinkObligationOp = __importStar(require("./unlinkObligation.operation"));
|
|
58
|
+
exports.unlinkObligation = unlinkObligationOp;
|
|
59
|
+
exports.description = [
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Operation',
|
|
62
|
+
name: 'operation',
|
|
63
|
+
type: 'options',
|
|
64
|
+
noDataExpression: true,
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['risk'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
name: 'Create',
|
|
73
|
+
value: 'create',
|
|
74
|
+
description: 'Create a new risk',
|
|
75
|
+
action: 'Create a risk',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Delete',
|
|
79
|
+
value: 'delete',
|
|
80
|
+
description: 'Delete a risk',
|
|
81
|
+
action: 'Delete a risk',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Get',
|
|
85
|
+
value: 'get',
|
|
86
|
+
description: 'Get a risk',
|
|
87
|
+
action: 'Get a risk',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Get Many',
|
|
91
|
+
value: 'getAll',
|
|
92
|
+
description: 'Get many risks',
|
|
93
|
+
action: 'Get many risks',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Link Document',
|
|
97
|
+
value: 'linkDocument',
|
|
98
|
+
description: 'Link a document to a risk',
|
|
99
|
+
action: 'Link a document to a risk',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Link Measure',
|
|
103
|
+
value: 'linkMeasure',
|
|
104
|
+
description: 'Link a measure to a risk',
|
|
105
|
+
action: 'Link a measure to a risk',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Link Obligation',
|
|
109
|
+
value: 'linkObligation',
|
|
110
|
+
description: 'Link an obligation to a risk',
|
|
111
|
+
action: 'Link an obligation to a risk',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'Unlink Document',
|
|
115
|
+
value: 'unlinkDocument',
|
|
116
|
+
description: 'Unlink a document from a risk',
|
|
117
|
+
action: 'Unlink a document from a risk',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'Unlink Measure',
|
|
121
|
+
value: 'unlinkMeasure',
|
|
122
|
+
description: 'Unlink a measure from a risk',
|
|
123
|
+
action: 'Unlink a measure from a risk',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'Unlink Obligation',
|
|
127
|
+
value: 'unlinkObligation',
|
|
128
|
+
description: 'Unlink an obligation from a risk',
|
|
129
|
+
action: 'Unlink an obligation from a risk',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'Update',
|
|
133
|
+
value: 'update',
|
|
134
|
+
description: 'Update an existing risk',
|
|
135
|
+
action: 'Update a risk',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
default: 'create',
|
|
139
|
+
},
|
|
140
|
+
...createOp.description,
|
|
141
|
+
...updateOp.description,
|
|
142
|
+
...deleteOp.description,
|
|
143
|
+
...getOp.description,
|
|
144
|
+
...getAllOp.description,
|
|
145
|
+
...linkMeasureOp.description,
|
|
146
|
+
...unlinkMeasureOp.description,
|
|
147
|
+
...linkDocumentOp.description,
|
|
148
|
+
...unlinkDocumentOp.description,
|
|
149
|
+
...linkObligationOp.description,
|
|
150
|
+
...unlinkObligationOp.description,
|
|
151
|
+
];
|
|
152
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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
|
+
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: ['risk'],
|
|
14
|
+
operation: ['linkDocument'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the risk',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Document ID',
|
|
23
|
+
name: 'documentId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['risk'],
|
|
28
|
+
operation: ['linkDocument'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The ID of the document to link',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
async function execute(itemIndex) {
|
|
37
|
+
const riskId = this.getNodeParameter('riskId', itemIndex);
|
|
38
|
+
const documentId = this.getNodeParameter('documentId', itemIndex);
|
|
39
|
+
const query = `
|
|
40
|
+
mutation CreateRiskDocumentMapping($input: CreateRiskDocumentMappingInput!) {
|
|
41
|
+
createRiskDocumentMapping(input: $input) {
|
|
42
|
+
riskEdge {
|
|
43
|
+
node {
|
|
44
|
+
id
|
|
45
|
+
name
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
documentEdge {
|
|
49
|
+
node {
|
|
50
|
+
id
|
|
51
|
+
title
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, documentId } });
|
|
58
|
+
return {
|
|
59
|
+
json: responseData,
|
|
60
|
+
pairedItem: { item: itemIndex },
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=linkDocument.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkDocument.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/linkDocument.operation.ts"],"names":[],"mappings":";;;AAkCA,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,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,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,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,SAAS,CAAW,CAAC;IAE5E,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;EAiBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IAEhG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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: ['risk'],
|
|
14
|
+
operation: ['linkMeasure'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the risk',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Measure ID',
|
|
23
|
+
name: 'measureId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['risk'],
|
|
28
|
+
operation: ['linkMeasure'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The ID of the measure to link',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
async function execute(itemIndex) {
|
|
37
|
+
const riskId = this.getNodeParameter('riskId', itemIndex);
|
|
38
|
+
const measureId = this.getNodeParameter('measureId', itemIndex);
|
|
39
|
+
const query = `
|
|
40
|
+
mutation CreateRiskMeasureMapping($input: CreateRiskMeasureMappingInput!) {
|
|
41
|
+
createRiskMeasureMapping(input: $input) {
|
|
42
|
+
riskEdge {
|
|
43
|
+
node {
|
|
44
|
+
id
|
|
45
|
+
name
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
measureEdge {
|
|
49
|
+
node {
|
|
50
|
+
id
|
|
51
|
+
name
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, measureId } });
|
|
58
|
+
return {
|
|
59
|
+
json: responseData,
|
|
60
|
+
pairedItem: { item: itemIndex },
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=linkMeasure.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkMeasure.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/linkMeasure.operation.ts"],"names":[],"mappings":";;;AAkCA,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,aAAa,CAAC;aAC1B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,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,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+BAA+B;QAC5C,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,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAW,CAAC;IAE1E,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;EAiBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IAE/F,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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: ['risk'],
|
|
14
|
+
operation: ['linkObligation'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the risk',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Obligation ID',
|
|
23
|
+
name: 'obligationId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['risk'],
|
|
28
|
+
operation: ['linkObligation'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The ID of the obligation to link',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
async function execute(itemIndex) {
|
|
37
|
+
const riskId = this.getNodeParameter('riskId', itemIndex);
|
|
38
|
+
const obligationId = this.getNodeParameter('obligationId', itemIndex);
|
|
39
|
+
const query = `
|
|
40
|
+
mutation CreateRiskObligationMapping($input: CreateRiskObligationMappingInput!) {
|
|
41
|
+
createRiskObligationMapping(input: $input) {
|
|
42
|
+
riskEdge {
|
|
43
|
+
node {
|
|
44
|
+
id
|
|
45
|
+
name
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
obligationEdge {
|
|
49
|
+
node {
|
|
50
|
+
id
|
|
51
|
+
name
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, obligationId } });
|
|
58
|
+
return {
|
|
59
|
+
json: responseData,
|
|
60
|
+
pairedItem: { item: itemIndex },
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=linkObligation.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkObligation.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/linkObligation.operation.ts"],"names":[],"mappings":";;;AAkCA,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,gBAAgB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kCAAkC;QAC/C,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,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,SAAS,CAAW,CAAC;IAEhF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;EAiBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;IAElG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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: ['risk'],
|
|
14
|
+
operation: ['unlinkDocument'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the risk',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Document ID',
|
|
23
|
+
name: 'documentId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['risk'],
|
|
28
|
+
operation: ['unlinkDocument'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The ID of the document to unlink',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
async function execute(itemIndex) {
|
|
37
|
+
const riskId = this.getNodeParameter('riskId', itemIndex);
|
|
38
|
+
const documentId = this.getNodeParameter('documentId', itemIndex);
|
|
39
|
+
const query = `
|
|
40
|
+
mutation DeleteRiskDocumentMapping($input: DeleteRiskDocumentMappingInput!) {
|
|
41
|
+
deleteRiskDocumentMapping(input: $input) {
|
|
42
|
+
deletedRiskId
|
|
43
|
+
deletedDocumentId
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, documentId } });
|
|
48
|
+
return {
|
|
49
|
+
json: responseData,
|
|
50
|
+
pairedItem: { item: itemIndex },
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=unlinkDocument.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unlinkDocument.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/unlinkDocument.operation.ts"],"names":[],"mappings":";;;AAkCA,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,gBAAgB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kCAAkC;QAC/C,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,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,SAAS,CAAW,CAAC;IAE5E,MAAM,KAAK,GAAG;;;;;;;EAOb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IAEhG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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: ['risk'],
|
|
14
|
+
operation: ['unlinkMeasure'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the risk',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Measure ID',
|
|
23
|
+
name: 'measureId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['risk'],
|
|
28
|
+
operation: ['unlinkMeasure'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The ID of the measure to unlink',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
async function execute(itemIndex) {
|
|
37
|
+
const riskId = this.getNodeParameter('riskId', itemIndex);
|
|
38
|
+
const measureId = this.getNodeParameter('measureId', itemIndex);
|
|
39
|
+
const query = `
|
|
40
|
+
mutation DeleteRiskMeasureMapping($input: DeleteRiskMeasureMappingInput!) {
|
|
41
|
+
deleteRiskMeasureMapping(input: $input) {
|
|
42
|
+
deletedRiskId
|
|
43
|
+
deletedMeasureId
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, measureId } });
|
|
48
|
+
return {
|
|
49
|
+
json: responseData,
|
|
50
|
+
pairedItem: { item: itemIndex },
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=unlinkMeasure.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unlinkMeasure.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/unlinkMeasure.operation.ts"],"names":[],"mappings":";;;AAkCA,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,eAAe,CAAC;aAC5B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,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,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,eAAe,CAAC;aAC5B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,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,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAW,CAAC;IAE1E,MAAM,KAAK,GAAG;;;;;;;EAOb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IAE/F,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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: ['risk'],
|
|
14
|
+
operation: ['unlinkObligation'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the risk',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Obligation ID',
|
|
23
|
+
name: 'obligationId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['risk'],
|
|
28
|
+
operation: ['unlinkObligation'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The ID of the obligation to unlink',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
async function execute(itemIndex) {
|
|
37
|
+
const riskId = this.getNodeParameter('riskId', itemIndex);
|
|
38
|
+
const obligationId = this.getNodeParameter('obligationId', itemIndex);
|
|
39
|
+
const query = `
|
|
40
|
+
mutation DeleteRiskObligationMapping($input: DeleteRiskObligationMappingInput!) {
|
|
41
|
+
deleteRiskObligationMapping(input: $input) {
|
|
42
|
+
deletedRiskId
|
|
43
|
+
deletedObligationId
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { riskId, obligationId } });
|
|
48
|
+
return {
|
|
49
|
+
json: responseData,
|
|
50
|
+
pairedItem: { item: itemIndex },
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=unlinkObligation.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unlinkObligation.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/risk/unlinkObligation.operation.ts"],"names":[],"mappings":";;;AAkCA,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,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oCAAoC;QACjD,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,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,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;IAElG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|