@probo/n8n-nodes-probo 0.174.0 → 0.176.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/nodes/Probo/actions/vendor/index.d.ts +2 -1
- package/dist/nodes/Probo/actions/vendor/index.js +10 -1
- package/dist/nodes/Probo/actions/vendor/index.js.map +1 -1
- package/dist/nodes/Probo/actions/vendor/publish.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/vendor/publish.operation.js +81 -0
- package/dist/nodes/Probo/actions/vendor/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":";;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AAE,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"}
|
|
@@ -25,5 +25,6 @@ import * as updateBusinessAssociateAgreementOp from './updateBusinessAssociateAg
|
|
|
25
25
|
import * as getDataPrivacyAgreementOp from './getDataPrivacyAgreement.operation';
|
|
26
26
|
import * as deleteDataPrivacyAgreementOp from './deleteDataPrivacyAgreement.operation';
|
|
27
27
|
import * as updateDataPrivacyAgreementOp from './updateDataPrivacyAgreement.operation';
|
|
28
|
+
import * as publishOp from './publish.operation';
|
|
28
29
|
export declare const description: INodeProperties[];
|
|
29
|
-
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, createContactOp as createContact, updateContactOp as updateContact, deleteContactOp as deleteContact, getContactOp as getContact, getAllContactsOp as getAllContacts, createServiceOp as createService, updateServiceOp as updateService, deleteServiceOp as deleteService, getServiceOp as getService, getAllServicesOp as getAllServices, createRiskAssessmentOp as createRiskAssessment, getRiskAssessmentOp as getRiskAssessment, getAllRiskAssessmentsOp as getAllRiskAssessments, getAllComplianceReportsOp as getAllComplianceReports, deleteComplianceReportOp as deleteComplianceReport, getBusinessAssociateAgreementOp as getBusinessAssociateAgreement, deleteBusinessAssociateAgreementOp as deleteBusinessAssociateAgreement, updateBusinessAssociateAgreementOp as updateBusinessAssociateAgreement, getDataPrivacyAgreementOp as getDataPrivacyAgreement, deleteDataPrivacyAgreementOp as deleteDataPrivacyAgreement, updateDataPrivacyAgreementOp as updateDataPrivacyAgreement, };
|
|
30
|
+
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, createContactOp as createContact, updateContactOp as updateContact, deleteContactOp as deleteContact, getContactOp as getContact, getAllContactsOp as getAllContacts, createServiceOp as createService, updateServiceOp as updateService, deleteServiceOp as deleteService, getServiceOp as getService, getAllServicesOp as getAllServices, createRiskAssessmentOp as createRiskAssessment, getRiskAssessmentOp as getRiskAssessment, getAllRiskAssessmentsOp as getAllRiskAssessments, getAllComplianceReportsOp as getAllComplianceReports, deleteComplianceReportOp as deleteComplianceReport, getBusinessAssociateAgreementOp as getBusinessAssociateAgreement, deleteBusinessAssociateAgreementOp as deleteBusinessAssociateAgreement, updateBusinessAssociateAgreementOp as updateBusinessAssociateAgreement, getDataPrivacyAgreementOp as getDataPrivacyAgreement, deleteDataPrivacyAgreementOp as deleteDataPrivacyAgreement, updateDataPrivacyAgreementOp as updateDataPrivacyAgreement, 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.updateDataPrivacyAgreement = exports.deleteDataPrivacyAgreement = exports.getDataPrivacyAgreement = exports.updateBusinessAssociateAgreement = exports.deleteBusinessAssociateAgreement = exports.getBusinessAssociateAgreement = exports.deleteComplianceReport = exports.getAllComplianceReports = exports.getAllRiskAssessments = exports.getRiskAssessment = exports.createRiskAssessment = exports.getAllServices = exports.getService = exports.deleteService = exports.updateService = exports.createService = exports.getAllContacts = exports.getContact = exports.deleteContact = exports.updateContact = exports.createContact = exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
36
|
+
exports.publish = exports.updateDataPrivacyAgreement = exports.deleteDataPrivacyAgreement = exports.getDataPrivacyAgreement = exports.updateBusinessAssociateAgreement = exports.deleteBusinessAssociateAgreement = exports.getBusinessAssociateAgreement = exports.deleteComplianceReport = exports.getAllComplianceReports = exports.getAllRiskAssessments = exports.getRiskAssessment = exports.createRiskAssessment = exports.getAllServices = exports.getService = exports.deleteService = exports.updateService = exports.createService = exports.getAllContacts = exports.getContact = exports.deleteContact = exports.updateContact = exports.createContact = 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"));
|
|
@@ -86,6 +86,8 @@ const deleteDataPrivacyAgreementOp = __importStar(require("./deleteDataPrivacyAg
|
|
|
86
86
|
exports.deleteDataPrivacyAgreement = deleteDataPrivacyAgreementOp;
|
|
87
87
|
const updateDataPrivacyAgreementOp = __importStar(require("./updateDataPrivacyAgreement.operation"));
|
|
88
88
|
exports.updateDataPrivacyAgreement = updateDataPrivacyAgreementOp;
|
|
89
|
+
const publishOp = __importStar(require("./publish.operation"));
|
|
90
|
+
exports.publish = publishOp;
|
|
89
91
|
exports.description = [
|
|
90
92
|
{
|
|
91
93
|
displayName: 'Operation',
|
|
@@ -224,6 +226,12 @@ exports.description = [
|
|
|
224
226
|
description: 'Get a vendor service',
|
|
225
227
|
action: 'Get a vendor service',
|
|
226
228
|
},
|
|
229
|
+
{
|
|
230
|
+
name: 'Publish List',
|
|
231
|
+
value: 'publish',
|
|
232
|
+
description: 'Publish the vendor register as a document version',
|
|
233
|
+
action: 'Publish the vendor register',
|
|
234
|
+
},
|
|
227
235
|
{
|
|
228
236
|
name: 'Update',
|
|
229
237
|
value: 'update',
|
|
@@ -283,5 +291,6 @@ exports.description = [
|
|
|
283
291
|
...getDataPrivacyAgreementOp.description,
|
|
284
292
|
...deleteDataPrivacyAgreementOp.description,
|
|
285
293
|
...updateDataPrivacyAgreementOp.description,
|
|
294
|
+
...publishOp.description,
|
|
286
295
|
];
|
|
287
296
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/vendor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/vendor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;AA2OlC,0BAAM;AA1OnB,6DAA+C;AA2OlC,0BAAM;AA1OnB,6DAA+C;AA2OlC,0BAAM;AA1OnB,uDAAyC;AA2O/B,oBAAG;AA1Ob,6DAA+C;AA2OlC,0BAAM;AA1OnB,2EAA6D;AA2OzC,wCAAa;AA1OjC,2EAA6D;AA2OzC,wCAAa;AA1OjC,2EAA6D;AA2OzC,wCAAa;AA1OjC,qEAAuD;AA2OtC,kCAAU;AA1O3B,6EAA+D;AA2O1C,0CAAc;AA1OnC,2EAA6D;AA2OzC,wCAAa;AA1OjC,2EAA6D;AA2OzC,wCAAa;AA1OjC,2EAA6D;AA2OzC,wCAAa;AA1OjC,qEAAuD;AA2OtC,kCAAU;AA1O3B,6EAA+D;AA2O1C,0CAAc;AA1OnC,yFAA2E;AA2OhD,sDAAoB;AA1O/C,mFAAqE;AA2O7C,gDAAiB;AA1OzC,2FAA6E;AA2OjD,wDAAqB;AA1OjD,+FAAiF;AA2OnD,4DAAuB;AA1OrD,6FAA+E;AA2OlD,0DAAsB;AA1OnD,2GAA6F;AA2OzD,wEAA6B;AA1OjE,iHAAmG;AA2O5D,8EAAgC;AA1OvE,iHAAmG;AA2O5D,8EAAgC;AA1OvE,+FAAiF;AA2OnD,4DAAuB;AA1Or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AAW;IACpB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,eAAe,CAAC,WAAW;IAC9B,GAAG,eAAe,CAAC,WAAW;IAC9B,GAAG,eAAe,CAAC,WAAW;IAC9B,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,gBAAgB,CAAC,WAAW;IAC/B,GAAG,eAAe,CAAC,WAAW;IAC9B,GAAG,eAAe,CAAC,WAAW;IAC9B,GAAG,eAAe,CAAC,WAAW;IAC9B,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,gBAAgB,CAAC,WAAW;IAC/B,GAAG,sBAAsB,CAAC,WAAW;IACrC,GAAG,mBAAmB,CAAC,WAAW;IAClC,GAAG,uBAAuB,CAAC,WAAW;IACtC,GAAG,yBAAyB,CAAC,WAAW;IACxC,GAAG,wBAAwB,CAAC,WAAW;IACvC,GAAG,+BAA+B,CAAC,WAAW;IAC9C,GAAG,kCAAkC,CAAC,WAAW;IACjD,GAAG,kCAAkC,CAAC,WAAW;IACjD,GAAG,yBAAyB,CAAC,WAAW;IACxC,GAAG,4BAA4B,CAAC,WAAW;IAC3C,GAAG,4BAA4B,CAAC,WAAW;IAC3C,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: ['vendor'],
|
|
14
|
+
operation: ['publish'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization whose vendor list to publish',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Approver IDs',
|
|
23
|
+
name: 'approverIds',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['vendor'],
|
|
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 PublishVendorList($input: PublishVendorListInput!) {
|
|
40
|
+
publishVendorList(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/vendor/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,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yDAAyD;QACtE,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,QAAQ,CAAC;gBACpB,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,C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