@probo/n8n-nodes-probo 0.168.2 → 0.169.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/document/getAll.operation.js +34 -20
- package/dist/nodes/Probo/actions/document/getAll.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/index.js +2 -0
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- package/dist/nodes/Probo/actions/statementOfApplicability/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/create.operation.js +92 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/delete.operation.js +39 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/get.operation.js +44 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/getAll.operation.js +88 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/index.d.ts +9 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/index.js +107 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/index.js.map +1 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/publish.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/publish.operation.js +81 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/publish.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/update.operation.js +81 -0
- package/dist/nodes/Probo/actions/statementOfApplicability/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,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: 'Statement of Applicability ID',
|
|
9
|
+
name: 'statementOfApplicabilityId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['statementOfApplicability'],
|
|
14
|
+
operation: ['publish'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the statement of applicability to publish',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Approver IDs',
|
|
23
|
+
name: 'approverIds',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['statementOfApplicability'],
|
|
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 statementOfApplicabilityId = this.getNodeParameter('statementOfApplicabilityId', itemIndex);
|
|
37
|
+
const approverIds = this.getNodeParameter('approverIds', itemIndex, '');
|
|
38
|
+
const query = `
|
|
39
|
+
mutation PublishStatementOfApplicability($input: PublishStatementOfApplicabilityInput!) {
|
|
40
|
+
publishStatementOfApplicability(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 = { statementOfApplicabilityId };
|
|
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/statementOfApplicability/publish.operation.ts"],"names":[],"mappings":";;;AA+CA,0BAqDC;AArFD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,0BAA0B,CAAC;gBACtC,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qDAAqD;QAClE,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,0BAA0B,CAAC;gBACtC,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,0BAA0B,GAAG,IAAI,CAAC,gBAAgB,CAAC,4BAA4B,EAAE,SAAS,CAAW,CAAC;IAC5G,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,0BAA0B,EAAE,CAAC;IAEtE,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"}
|
|
@@ -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: 'Statement of Applicability ID',
|
|
9
|
+
name: 'id',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['statementOfApplicability'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the statement of applicability to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Update Fields',
|
|
23
|
+
name: 'updateFields',
|
|
24
|
+
type: 'collection',
|
|
25
|
+
placeholder: 'Add Field',
|
|
26
|
+
default: {},
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: {
|
|
29
|
+
resource: ['statementOfApplicability'],
|
|
30
|
+
operation: ['update'],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
options: [
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Name',
|
|
36
|
+
name: 'name',
|
|
37
|
+
type: 'string',
|
|
38
|
+
default: '',
|
|
39
|
+
description: 'The name of the statement of applicability',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Default Approver IDs',
|
|
43
|
+
name: 'defaultApproverIds',
|
|
44
|
+
type: 'string',
|
|
45
|
+
default: '',
|
|
46
|
+
description: 'Comma-separated list of default approver profile IDs',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
async function execute(itemIndex) {
|
|
52
|
+
const id = this.getNodeParameter('id', itemIndex);
|
|
53
|
+
const updateFields = this.getNodeParameter('updateFields', itemIndex, {});
|
|
54
|
+
const query = `
|
|
55
|
+
mutation UpdateStatementOfApplicability($input: UpdateStatementOfApplicabilityInput!) {
|
|
56
|
+
updateStatementOfApplicability(input: $input) {
|
|
57
|
+
statementOfApplicability {
|
|
58
|
+
id
|
|
59
|
+
name
|
|
60
|
+
createdAt
|
|
61
|
+
updatedAt
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
const input = { id };
|
|
67
|
+
if (updateFields.name)
|
|
68
|
+
input.name = updateFields.name;
|
|
69
|
+
if (updateFields.defaultApproverIds) {
|
|
70
|
+
input.defaultApproverIds = updateFields.defaultApproverIds
|
|
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=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/statementOfApplicability/update.operation.ts"],"names":[],"mappings":";;;AA+DA,0BAsCC;AAtFD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,0BAA0B,CAAC;gBACtC,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oDAAoD;QACjE,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,0BAA0B,CAAC;gBACtC,SAAS,EAAE,CAAC,QAAQ,CAAC;aAC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