@probo/n8n-nodes-probo 0.174.0 → 0.175.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/actions/dpia/index.d.ts +2 -1
- package/dist/nodes/Probo/actions/dpia/index.js +10 -1
- package/dist/nodes/Probo/actions/dpia/index.js.map +1 -1
- package/dist/nodes/Probo/actions/dpia/publish.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/dpia/publish.operation.js +81 -0
- package/dist/nodes/Probo/actions/dpia/publish.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/processingActivity/index.d.ts +2 -1
- package/dist/nodes/Probo/actions/processingActivity/index.js +10 -1
- package/dist/nodes/Probo/actions/processingActivity/index.js.map +1 -1
- package/dist/nodes/Probo/actions/processingActivity/publish.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/processingActivity/publish.operation.js +81 -0
- package/dist/nodes/Probo/actions/processingActivity/publish.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/tia/index.d.ts +2 -1
- package/dist/nodes/Probo/actions/tia/index.js +10 -1
- package/dist/nodes/Probo/actions/tia/index.js.map +1 -1
- package/dist/nodes/Probo/actions/tia/publish.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/tia/publish.operation.js +81 -0
- package/dist/nodes/Probo/actions/tia/publish.operation.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4,5 +4,6 @@ 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 publishOp from './publish.operation';
|
|
7
8
|
export declare const description: INodeProperties[];
|
|
8
|
-
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll };
|
|
9
|
+
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, 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.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
36
|
+
exports.publish = 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,6 +44,8 @@ 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 publishOp = __importStar(require("./publish.operation"));
|
|
48
|
+
exports.publish = publishOp;
|
|
47
49
|
exports.description = [
|
|
48
50
|
{
|
|
49
51
|
displayName: 'Operation',
|
|
@@ -80,6 +82,12 @@ exports.description = [
|
|
|
80
82
|
description: 'Get many DPIAs',
|
|
81
83
|
action: 'Get many dpias',
|
|
82
84
|
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Publish',
|
|
87
|
+
value: 'publish',
|
|
88
|
+
description: 'Publish the DPIA list as a document',
|
|
89
|
+
action: 'Publish the DPIA list',
|
|
90
|
+
},
|
|
83
91
|
{
|
|
84
92
|
name: 'Update',
|
|
85
93
|
value: 'update',
|
|
@@ -94,5 +102,6 @@ exports.description = [
|
|
|
94
102
|
...deleteOp.description,
|
|
95
103
|
...getOp.description,
|
|
96
104
|
...getAllOp.description,
|
|
105
|
+
...publishOp.description,
|
|
97
106
|
];
|
|
98
107
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/dpia/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/dpia/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;AAmElC,0BAAM;AAlEnB,6DAA+C;AAmElC,0BAAM;AAlEnB,6DAA+C;AAmElC,0BAAM;AAlEnB,uDAAyC;AAmE/B,oBAAG;AAlEb,6DAA+C;AAmElC,0BAAM;AAlEnB,+DAAiD;AAmEnC,4BAAO;AAjER,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,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,YAAY;gBACzB,MAAM,EAAE,YAAY;aACpB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gBAAgB;gBAC7B,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,qCAAqC;gBAClD,MAAM,EAAE,uBAAuB;aAC/B;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,SAAS,CAAC,WAAW;CACxB,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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: 'Organization ID',
|
|
9
|
+
name: 'organizationId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['dpia'],
|
|
14
|
+
operation: ['publish'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization whose DPIA list to publish',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Approver IDs',
|
|
23
|
+
name: 'approverIds',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['dpia'],
|
|
28
|
+
operation: ['publish'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'Comma-separated list of approver profile IDs',
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
async function execute(itemIndex) {
|
|
36
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
37
|
+
const approverIds = this.getNodeParameter('approverIds', itemIndex, '');
|
|
38
|
+
const query = `
|
|
39
|
+
mutation PublishDataProtectionImpactAssessmentList($input: PublishDataProtectionImpactAssessmentListInput!) {
|
|
40
|
+
publishDataProtectionImpactAssessmentList(input: $input) {
|
|
41
|
+
documentEdge {
|
|
42
|
+
node {
|
|
43
|
+
id
|
|
44
|
+
status
|
|
45
|
+
currentPublishedMajor
|
|
46
|
+
currentPublishedMinor
|
|
47
|
+
createdAt
|
|
48
|
+
updatedAt
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
documentVersionEdge {
|
|
52
|
+
node {
|
|
53
|
+
id
|
|
54
|
+
title
|
|
55
|
+
major
|
|
56
|
+
minor
|
|
57
|
+
status
|
|
58
|
+
classification
|
|
59
|
+
documentType
|
|
60
|
+
publishedAt
|
|
61
|
+
createdAt
|
|
62
|
+
updatedAt
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
const input = { organizationId };
|
|
69
|
+
if (approverIds) {
|
|
70
|
+
input.approverIds = approverIds
|
|
71
|
+
.split(',')
|
|
72
|
+
.map(id => id.trim())
|
|
73
|
+
.filter(Boolean);
|
|
74
|
+
}
|
|
75
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
76
|
+
return {
|
|
77
|
+
json: responseData,
|
|
78
|
+
pairedItem: { item: itemIndex },
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=publish.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/dpia/publish.operation.ts"],"names":[],"mappings":";;;AA+CA,0BAqDC;AArFD,6DAAyD;AAE5C,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,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uDAAuD;QACpE,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8CAA8C;KAC3D;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IACpF,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAElF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6Bb,CAAC;IAEF,MAAM,KAAK,GAA4B,EAAE,cAAc,EAAE,CAAC;IAE1D,IAAI,WAAW,EAAE,CAAC;QACjB,KAAK,CAAC,WAAW,GAAG,WAAW;aAC7B,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;aACpB,MAAM,CAAC,OAAO,CAAC,CAAC;IACnB,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"}
|
|
@@ -4,5 +4,6 @@ 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 publishOp from './publish.operation';
|
|
7
8
|
export declare const description: INodeProperties[];
|
|
8
|
-
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll };
|
|
9
|
+
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, 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.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
36
|
+
exports.publish = 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,6 +44,8 @@ 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 publishOp = __importStar(require("./publish.operation"));
|
|
48
|
+
exports.publish = publishOp;
|
|
47
49
|
exports.description = [
|
|
48
50
|
{
|
|
49
51
|
displayName: 'Operation',
|
|
@@ -80,6 +82,12 @@ exports.description = [
|
|
|
80
82
|
description: 'Get many processing activities',
|
|
81
83
|
action: 'Get many processing activities',
|
|
82
84
|
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Publish',
|
|
87
|
+
value: 'publish',
|
|
88
|
+
description: 'Publish the processing activity list as a document',
|
|
89
|
+
action: 'Publish the processing activity list',
|
|
90
|
+
},
|
|
83
91
|
{
|
|
84
92
|
name: 'Update',
|
|
85
93
|
value: 'update',
|
|
@@ -94,5 +102,6 @@ exports.description = [
|
|
|
94
102
|
...deleteOp.description,
|
|
95
103
|
...getOp.description,
|
|
96
104
|
...getAllOp.description,
|
|
105
|
+
...publishOp.description,
|
|
97
106
|
];
|
|
98
107
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/processingActivity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/processingActivity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;AAmElC,0BAAM;AAlEnB,6DAA+C;AAmElC,0BAAM;AAlEnB,6DAA+C;AAmElC,0BAAM;AAlEnB,uDAAyC;AAmE/B,oBAAG;AAlEb,6DAA+C;AAmElC,0BAAM;AAlEnB,+DAAiD;AAmEnC,4BAAO;AAjER,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,oBAAoB,CAAC;aAChC;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,8BAA8B;aACtC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,8BAA8B;gBAC3C,MAAM,EAAE,8BAA8B;aACtC;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,2BAA2B;gBACxC,MAAM,EAAE,2BAA2B;aACnC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gCAAgC;gBAC7C,MAAM,EAAE,gCAAgC;aACxC;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,oDAAoD;gBACjE,MAAM,EAAE,sCAAsC;aAC9C;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,wCAAwC;gBACrD,MAAM,EAAE,8BAA8B;aACtC;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,SAAS,CAAC,WAAW;CACxB,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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: 'Organization ID',
|
|
9
|
+
name: 'organizationId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['processingActivity'],
|
|
14
|
+
operation: ['publish'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization whose processing activity list to publish',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Approver IDs',
|
|
23
|
+
name: 'approverIds',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['processingActivity'],
|
|
28
|
+
operation: ['publish'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'Comma-separated list of approver profile IDs',
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
async function execute(itemIndex) {
|
|
36
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
37
|
+
const approverIds = this.getNodeParameter('approverIds', itemIndex, '');
|
|
38
|
+
const query = `
|
|
39
|
+
mutation PublishProcessingActivityList($input: PublishProcessingActivityListInput!) {
|
|
40
|
+
publishProcessingActivityList(input: $input) {
|
|
41
|
+
documentEdge {
|
|
42
|
+
node {
|
|
43
|
+
id
|
|
44
|
+
status
|
|
45
|
+
currentPublishedMajor
|
|
46
|
+
currentPublishedMinor
|
|
47
|
+
createdAt
|
|
48
|
+
updatedAt
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
documentVersionEdge {
|
|
52
|
+
node {
|
|
53
|
+
id
|
|
54
|
+
title
|
|
55
|
+
major
|
|
56
|
+
minor
|
|
57
|
+
status
|
|
58
|
+
classification
|
|
59
|
+
documentType
|
|
60
|
+
publishedAt
|
|
61
|
+
createdAt
|
|
62
|
+
updatedAt
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
const input = { organizationId };
|
|
69
|
+
if (approverIds) {
|
|
70
|
+
input.approverIds = approverIds
|
|
71
|
+
.split(',')
|
|
72
|
+
.map(id => id.trim())
|
|
73
|
+
.filter(Boolean);
|
|
74
|
+
}
|
|
75
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
76
|
+
return {
|
|
77
|
+
json: responseData,
|
|
78
|
+
pairedItem: { item: itemIndex },
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=publish.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/processingActivity/publish.operation.ts"],"names":[],"mappings":";;;AA+CA,0BAqDC;AArFD,6DAAyD;AAE5C,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,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sEAAsE;QACnF,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8CAA8C;KAC3D;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IACpF,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAElF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6Bb,CAAC;IAEF,MAAM,KAAK,GAA4B,EAAE,cAAc,EAAE,CAAC;IAE1D,IAAI,WAAW,EAAE,CAAC;QACjB,KAAK,CAAC,WAAW,GAAG,WAAW;aAC7B,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;aACpB,MAAM,CAAC,OAAO,CAAC,CAAC;IACnB,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"}
|
|
@@ -4,5 +4,6 @@ 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 publishOp from './publish.operation';
|
|
7
8
|
export declare const description: INodeProperties[];
|
|
8
|
-
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll };
|
|
9
|
+
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, 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.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
36
|
+
exports.publish = 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,6 +44,8 @@ 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 publishOp = __importStar(require("./publish.operation"));
|
|
48
|
+
exports.publish = publishOp;
|
|
47
49
|
exports.description = [
|
|
48
50
|
{
|
|
49
51
|
displayName: 'Operation',
|
|
@@ -80,6 +82,12 @@ exports.description = [
|
|
|
80
82
|
description: 'Get many TIAs',
|
|
81
83
|
action: 'Get many tias',
|
|
82
84
|
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Publish',
|
|
87
|
+
value: 'publish',
|
|
88
|
+
description: 'Publish the TIA list as a document',
|
|
89
|
+
action: 'Publish the TIA list',
|
|
90
|
+
},
|
|
83
91
|
{
|
|
84
92
|
name: 'Update',
|
|
85
93
|
value: 'update',
|
|
@@ -94,5 +102,6 @@ exports.description = [
|
|
|
94
102
|
...deleteOp.description,
|
|
95
103
|
...getOp.description,
|
|
96
104
|
...getAllOp.description,
|
|
105
|
+
...publishOp.description,
|
|
97
106
|
];
|
|
98
107
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/tia/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/tia/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;AAmElC,0BAAM;AAlEnB,6DAA+C;AAmElC,0BAAM;AAlEnB,6DAA+C;AAmElC,0BAAM;AAlEnB,uDAAyC;AAmE/B,oBAAG;AAlEb,6DAA+C;AAmElC,0BAAM;AAlEnB,+DAAiD;AAmEnC,4BAAO;AAjER,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,KAAK,CAAC;aACjB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,cAAc;gBAC3B,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,WAAW;gBACxB,MAAM,EAAE,WAAW;aACnB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,cAAc;aACtB;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,SAAS,CAAC,WAAW;CACxB,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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: 'Organization ID',
|
|
9
|
+
name: 'organizationId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['tia'],
|
|
14
|
+
operation: ['publish'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization whose TIA list to publish',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Approver IDs',
|
|
23
|
+
name: 'approverIds',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['tia'],
|
|
28
|
+
operation: ['publish'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'Comma-separated list of approver profile IDs',
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
async function execute(itemIndex) {
|
|
36
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
37
|
+
const approverIds = this.getNodeParameter('approverIds', itemIndex, '');
|
|
38
|
+
const query = `
|
|
39
|
+
mutation PublishTransferImpactAssessmentList($input: PublishTransferImpactAssessmentListInput!) {
|
|
40
|
+
publishTransferImpactAssessmentList(input: $input) {
|
|
41
|
+
documentEdge {
|
|
42
|
+
node {
|
|
43
|
+
id
|
|
44
|
+
status
|
|
45
|
+
currentPublishedMajor
|
|
46
|
+
currentPublishedMinor
|
|
47
|
+
createdAt
|
|
48
|
+
updatedAt
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
documentVersionEdge {
|
|
52
|
+
node {
|
|
53
|
+
id
|
|
54
|
+
title
|
|
55
|
+
major
|
|
56
|
+
minor
|
|
57
|
+
status
|
|
58
|
+
classification
|
|
59
|
+
documentType
|
|
60
|
+
publishedAt
|
|
61
|
+
createdAt
|
|
62
|
+
updatedAt
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
const input = { organizationId };
|
|
69
|
+
if (approverIds) {
|
|
70
|
+
input.approverIds = approverIds
|
|
71
|
+
.split(',')
|
|
72
|
+
.map(id => id.trim())
|
|
73
|
+
.filter(Boolean);
|
|
74
|
+
}
|
|
75
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
76
|
+
return {
|
|
77
|
+
json: responseData,
|
|
78
|
+
pairedItem: { item: itemIndex },
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=publish.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/tia/publish.operation.ts"],"names":[],"mappings":";;;AA+CA,0BAqDC;AArFD,6DAAyD;AAE5C,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,KAAK,CAAC;gBACjB,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sDAAsD;QACnE,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,KAAK,CAAC;gBACjB,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8CAA8C;KAC3D;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IACpF,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAElF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6Bb,CAAC;IAEF,MAAM,KAAK,GAA4B,EAAE,cAAc,EAAE,CAAC;IAE1D,IAAI,WAAW,EAAE,CAAC;QACjB,KAAK,CAAC,WAAW,GAAG,WAAW;aAC7B,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;aACpB,MAAM,CAAC,OAAO,CAAC,CAAC;IACnB,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"}
|