@probo/n8n-nodes-probo 0.0.1
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/credentials/ProboApi.credentials.d.ts +10 -0
- package/dist/credentials/ProboApi.credentials.js +50 -0
- package/dist/credentials/ProboApi.credentials.js.map +1 -0
- package/dist/icons/probo-light.svg +24 -0
- package/dist/icons/probo.svg +23 -0
- package/dist/nodes/Probo/GenericFunctions.d.ts +3 -0
- package/dist/nodes/Probo/GenericFunctions.js +69 -0
- package/dist/nodes/Probo/GenericFunctions.js.map +1 -0
- package/dist/nodes/Probo/Probo.node.d.ts +8 -0
- package/dist/nodes/Probo/Probo.node.js +113 -0
- package/dist/nodes/Probo/Probo.node.js.map +1 -0
- package/dist/nodes/Probo/Probo.node.json +19 -0
- package/dist/nodes/Probo/actions/asset/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/asset/create.operation.js +207 -0
- package/dist/nodes/Probo/actions/asset/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/asset/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/asset/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/asset/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/asset/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/asset/get.operation.js +97 -0
- package/dist/nodes/Probo/actions/asset/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/asset/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/asset/getAll.operation.js +140 -0
- package/dist/nodes/Probo/actions/asset/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/asset/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/asset/index.js +98 -0
- package/dist/nodes/Probo/actions/asset/index.js.map +1 -0
- package/dist/nodes/Probo/actions/asset/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/asset/update.operation.js +204 -0
- package/dist/nodes/Probo/actions/asset/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/control/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/control/create.operation.js +141 -0
- package/dist/nodes/Probo/actions/control/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/control/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/control/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/control/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/control/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/control/get.operation.js +49 -0
- package/dist/nodes/Probo/actions/control/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/control/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/control/getAll.operation.js +92 -0
- package/dist/nodes/Probo/actions/control/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/control/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/control/index.js +98 -0
- package/dist/nodes/Probo/actions/control/index.js.map +1 -0
- package/dist/nodes/Probo/actions/control/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/control/update.operation.js +137 -0
- package/dist/nodes/Probo/actions/control/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/datum/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/datum/create.operation.js +181 -0
- package/dist/nodes/Probo/actions/datum/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/datum/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/datum/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/datum/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/datum/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/datum/get.operation.js +95 -0
- package/dist/nodes/Probo/actions/datum/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/datum/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/datum/getAll.operation.js +138 -0
- package/dist/nodes/Probo/actions/datum/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/datum/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/datum/index.js +98 -0
- package/dist/nodes/Probo/actions/datum/index.js.map +1 -0
- package/dist/nodes/Probo/actions/datum/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/datum/update.operation.js +178 -0
- package/dist/nodes/Probo/actions/datum/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/execute/execute.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/execute/execute.operation.js +63 -0
- package/dist/nodes/Probo/actions/execute/execute.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/execute/index.d.ts +4 -0
- package/dist/nodes/Probo/actions/execute/index.js +62 -0
- package/dist/nodes/Probo/actions/execute/index.js.map +1 -0
- package/dist/nodes/Probo/actions/framework/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/framework/create.operation.js +81 -0
- package/dist/nodes/Probo/actions/framework/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/framework/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/framework/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/framework/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/framework/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/framework/get.operation.js +46 -0
- package/dist/nodes/Probo/actions/framework/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/framework/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/framework/getAll.operation.js +89 -0
- package/dist/nodes/Probo/actions/framework/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/framework/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/framework/index.js +98 -0
- package/dist/nodes/Probo/actions/framework/index.js.map +1 -0
- package/dist/nodes/Probo/actions/framework/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/framework/update.operation.js +76 -0
- package/dist/nodes/Probo/actions/framework/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/index.d.ts +13 -0
- package/dist/nodes/Probo/actions/index.js +83 -0
- package/dist/nodes/Probo/actions/index.js.map +1 -0
- package/dist/nodes/Probo/actions/measure/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/measure/create.operation.js +99 -0
- package/dist/nodes/Probo/actions/measure/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/measure/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/measure/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/measure/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/measure/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/measure/get.operation.js +48 -0
- package/dist/nodes/Probo/actions/measure/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/measure/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/measure/getAll.operation.js +91 -0
- package/dist/nodes/Probo/actions/measure/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/measure/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/measure/index.js +98 -0
- package/dist/nodes/Probo/actions/measure/index.js.map +1 -0
- package/dist/nodes/Probo/actions/measure/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/measure/update.operation.js +128 -0
- package/dist/nodes/Probo/actions/measure/update.operation.js.map +1 -0
- package/dist/package.json +63 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,141 @@
|
|
|
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: 'Framework ID',
|
|
9
|
+
name: 'frameworkId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['control'],
|
|
14
|
+
operation: ['create'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the framework',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Section Title',
|
|
23
|
+
name: 'sectionTitle',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['control'],
|
|
28
|
+
operation: ['create'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The section title of the control',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Name',
|
|
37
|
+
name: 'name',
|
|
38
|
+
type: 'string',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['control'],
|
|
42
|
+
operation: ['create'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
default: '',
|
|
46
|
+
description: 'The name of the control',
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Status',
|
|
51
|
+
name: 'status',
|
|
52
|
+
type: 'options',
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['control'],
|
|
56
|
+
operation: ['create'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
options: [
|
|
60
|
+
{
|
|
61
|
+
name: 'Included',
|
|
62
|
+
value: 'INCLUDED',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Excluded',
|
|
66
|
+
value: 'EXCLUDED',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
default: 'INCLUDED',
|
|
70
|
+
description: 'The status of the control',
|
|
71
|
+
required: true,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Description',
|
|
75
|
+
name: 'description',
|
|
76
|
+
type: 'string',
|
|
77
|
+
displayOptions: {
|
|
78
|
+
show: {
|
|
79
|
+
resource: ['control'],
|
|
80
|
+
operation: ['create'],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
default: '',
|
|
84
|
+
description: 'The description of the control',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Exclusion Justification',
|
|
88
|
+
name: 'exclusionJustification',
|
|
89
|
+
type: 'string',
|
|
90
|
+
displayOptions: {
|
|
91
|
+
show: {
|
|
92
|
+
resource: ['control'],
|
|
93
|
+
operation: ['create'],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
default: '',
|
|
97
|
+
description: 'The justification for excluding the control',
|
|
98
|
+
},
|
|
99
|
+
];
|
|
100
|
+
async function execute(itemIndex) {
|
|
101
|
+
const frameworkId = this.getNodeParameter('frameworkId', itemIndex);
|
|
102
|
+
const sectionTitle = this.getNodeParameter('sectionTitle', itemIndex);
|
|
103
|
+
const name = this.getNodeParameter('name', itemIndex);
|
|
104
|
+
const status = this.getNodeParameter('status', itemIndex);
|
|
105
|
+
const description = this.getNodeParameter('description', itemIndex, '');
|
|
106
|
+
const exclusionJustification = this.getNodeParameter('exclusionJustification', itemIndex, '');
|
|
107
|
+
const query = `
|
|
108
|
+
mutation CreateControl($input: CreateControlInput!) {
|
|
109
|
+
createControl(input: $input) {
|
|
110
|
+
controlEdge {
|
|
111
|
+
node {
|
|
112
|
+
id
|
|
113
|
+
sectionTitle
|
|
114
|
+
name
|
|
115
|
+
description
|
|
116
|
+
status
|
|
117
|
+
exclusionJustification
|
|
118
|
+
createdAt
|
|
119
|
+
updatedAt
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
`;
|
|
125
|
+
const variables = {
|
|
126
|
+
input: {
|
|
127
|
+
frameworkId,
|
|
128
|
+
sectionTitle,
|
|
129
|
+
name,
|
|
130
|
+
status,
|
|
131
|
+
...(description && { description }),
|
|
132
|
+
...(exclusionJustification && { exclusionJustification }),
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, variables);
|
|
136
|
+
return {
|
|
137
|
+
json: responseData,
|
|
138
|
+
pairedItem: { item: itemIndex },
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/control/create.operation.ts"],"names":[],"mappings":";;;AAkGA,0BA+CC;AAhJD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yBAAyB;QACtC,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,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kCAAkC;QAC/C,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yBAAyB;QACtC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QA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,EAAE,SAAS,CAAW,CAAC;IACpE,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAClF,MAAM,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAExG,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;EAiBb,CAAC;IAEF,MAAM,SAAS,GAAG;QACjB,KAAK,EAAE;YACN,WAAW;YACX,YAAY;YACZ,IAAI;YACJ,MAAM;YACN,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC;YACnC,GAAG,CAAC,sBAAsB,IAAI,EAAE,sBAAsB,EAAE,CAAC;SACzD;KACD,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAExE,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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: 'Control ID',
|
|
9
|
+
name: 'controlId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['control'],
|
|
14
|
+
operation: ['delete'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the control to delete',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const controlId = this.getNodeParameter('controlId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
mutation DeleteControl($input: DeleteControlInput!) {
|
|
26
|
+
deleteControl(input: $input) {
|
|
27
|
+
deletedControlId
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { controlId } });
|
|
32
|
+
return {
|
|
33
|
+
json: responseData,
|
|
34
|
+
pairedItem: { item: itemIndex },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=delete.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/control/delete.operation.ts"],"names":[],"mappings":";;;AAoBA,0BAoBC;AAvCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAW,CAAC;IAE1E,MAAM,KAAK,GAAG;;;;;;EAMb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IAEvF,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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: 'Control ID',
|
|
9
|
+
name: 'controlId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['control'],
|
|
14
|
+
operation: ['get'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the control',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const controlId = this.getNodeParameter('controlId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
query GetControl($controlId: ID!) {
|
|
26
|
+
node(id: $controlId) {
|
|
27
|
+
... on Control {
|
|
28
|
+
id
|
|
29
|
+
sectionTitle
|
|
30
|
+
name
|
|
31
|
+
description
|
|
32
|
+
status
|
|
33
|
+
exclusionJustification
|
|
34
|
+
createdAt
|
|
35
|
+
updatedAt
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
const variables = {
|
|
41
|
+
controlId,
|
|
42
|
+
};
|
|
43
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, variables);
|
|
44
|
+
return {
|
|
45
|
+
json: responseData,
|
|
46
|
+
pairedItem: { item: itemIndex },
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/control/get.operation.ts"],"names":[],"mappings":";;;AAoBA,0BAiCC;AApDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uBAAuB;QACpC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAW,CAAC;IAE1E,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;EAeb,CAAC;IAEF,MAAM,SAAS,GAAG;QACjB,SAAS;KACT,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAExE,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
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: 'Framework ID',
|
|
9
|
+
name: 'frameworkId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['control'],
|
|
14
|
+
operation: ['getAll'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the framework',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Return All',
|
|
23
|
+
name: 'returnAll',
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['control'],
|
|
28
|
+
operation: ['getAll'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: false,
|
|
32
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Limit',
|
|
36
|
+
name: 'limit',
|
|
37
|
+
type: 'number',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['control'],
|
|
41
|
+
operation: ['getAll'],
|
|
42
|
+
returnAll: [false],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
typeOptions: {
|
|
46
|
+
minValue: 1,
|
|
47
|
+
},
|
|
48
|
+
default: 50,
|
|
49
|
+
description: 'Max number of results to return',
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
async function execute(itemIndex) {
|
|
53
|
+
const frameworkId = this.getNodeParameter('frameworkId', itemIndex);
|
|
54
|
+
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
55
|
+
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
56
|
+
const query = `
|
|
57
|
+
query GetControls($frameworkId: ID!, $first: Int, $after: CursorKey) {
|
|
58
|
+
node(id: $frameworkId) {
|
|
59
|
+
... on Framework {
|
|
60
|
+
controls(first: $first, after: $after) {
|
|
61
|
+
edges {
|
|
62
|
+
node {
|
|
63
|
+
id
|
|
64
|
+
sectionTitle
|
|
65
|
+
name
|
|
66
|
+
description
|
|
67
|
+
status
|
|
68
|
+
exclusionJustification
|
|
69
|
+
createdAt
|
|
70
|
+
updatedAt
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
pageInfo {
|
|
74
|
+
hasNextPage
|
|
75
|
+
endCursor
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
const controls = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { frameworkId }, (response) => {
|
|
83
|
+
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
84
|
+
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
85
|
+
return node === null || node === void 0 ? void 0 : node.controls;
|
|
86
|
+
}, returnAll, limit);
|
|
87
|
+
return {
|
|
88
|
+
json: { controls },
|
|
89
|
+
pairedItem: { item: itemIndex },
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=getAll.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/control/getAll.operation.ts"],"names":[],"mappings":";;;AAkDA,0BAoDC;AArGD,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yBAAyB;QACtC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EA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Op from './update.operation';
|
|
4
|
+
import * as deleteOp from './delete.operation';
|
|
5
|
+
import * as getOp from './get.operation';
|
|
6
|
+
import * as getAllOp from './getAll.operation';
|
|
7
|
+
export declare const description: INodeProperties[];
|
|
8
|
+
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll };
|
|
@@ -0,0 +1,98 @@
|
|
|
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.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
|
+
exports.description = [
|
|
48
|
+
{
|
|
49
|
+
displayName: 'Operation',
|
|
50
|
+
name: 'operation',
|
|
51
|
+
type: 'options',
|
|
52
|
+
noDataExpression: true,
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['control'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
name: 'Create',
|
|
61
|
+
value: 'create',
|
|
62
|
+
description: 'Create a new control',
|
|
63
|
+
action: 'Create a control',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Delete',
|
|
67
|
+
value: 'delete',
|
|
68
|
+
description: 'Delete a control',
|
|
69
|
+
action: 'Delete a control',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Get',
|
|
73
|
+
value: 'get',
|
|
74
|
+
description: 'Get a control',
|
|
75
|
+
action: 'Get a control',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Get Many',
|
|
79
|
+
value: 'getAll',
|
|
80
|
+
description: 'Get many controls',
|
|
81
|
+
action: 'Get many controls',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Update',
|
|
85
|
+
value: 'update',
|
|
86
|
+
description: 'Update an existing control',
|
|
87
|
+
action: 'Update a control',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
default: 'create',
|
|
91
|
+
},
|
|
92
|
+
...createOp.description,
|
|
93
|
+
...updateOp.description,
|
|
94
|
+
...deleteOp.description,
|
|
95
|
+
...getOp.description,
|
|
96
|
+
...getAllOp.description,
|
|
97
|
+
];
|
|
98
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/control/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6DAA+C;AA0D1B,0BAAM;AAzD3B,6DAA+C;AAyDN,0BAAM;AAxD/C,6DAA+C;AAwDc,0BAAM;AAvDnE,uDAAyC;AAuDqC,oBAAG;AAtDjF,6DAA+C;AAsDgD,0BAAM;AApDxF,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,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,4BAA4B;gBACzC,MAAM,EAAE,kBAAkB;aAC1B;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;CACvB,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
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: 'Control ID',
|
|
9
|
+
name: 'id',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['control'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the control to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Section Title',
|
|
23
|
+
name: 'sectionTitle',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['control'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The section title of the control',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Name',
|
|
36
|
+
name: 'name',
|
|
37
|
+
type: 'string',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['control'],
|
|
41
|
+
operation: ['update'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The name of the control',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Description',
|
|
49
|
+
name: 'description',
|
|
50
|
+
type: 'string',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['control'],
|
|
54
|
+
operation: ['update'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
default: '',
|
|
58
|
+
description: 'The description of the control',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Status',
|
|
62
|
+
name: 'status',
|
|
63
|
+
type: 'options',
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['control'],
|
|
67
|
+
operation: ['update'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
name: 'Included',
|
|
73
|
+
value: 'INCLUDED',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Excluded',
|
|
77
|
+
value: 'EXCLUDED',
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
default: 'INCLUDED',
|
|
81
|
+
description: 'The status of the control',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Exclusion Justification',
|
|
85
|
+
name: 'exclusionJustification',
|
|
86
|
+
type: 'string',
|
|
87
|
+
displayOptions: {
|
|
88
|
+
show: {
|
|
89
|
+
resource: ['control'],
|
|
90
|
+
operation: ['update'],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
default: '',
|
|
94
|
+
description: 'The justification for excluding the control',
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
async function execute(itemIndex) {
|
|
98
|
+
const id = this.getNodeParameter('id', itemIndex);
|
|
99
|
+
const sectionTitle = this.getNodeParameter('sectionTitle', itemIndex, '');
|
|
100
|
+
const name = this.getNodeParameter('name', itemIndex, '');
|
|
101
|
+
const description = this.getNodeParameter('description', itemIndex, '');
|
|
102
|
+
const status = this.getNodeParameter('status', itemIndex, '');
|
|
103
|
+
const exclusionJustification = this.getNodeParameter('exclusionJustification', itemIndex, '');
|
|
104
|
+
const query = `
|
|
105
|
+
mutation UpdateControl($input: UpdateControlInput!) {
|
|
106
|
+
updateControl(input: $input) {
|
|
107
|
+
control {
|
|
108
|
+
id
|
|
109
|
+
sectionTitle
|
|
110
|
+
name
|
|
111
|
+
description
|
|
112
|
+
status
|
|
113
|
+
exclusionJustification
|
|
114
|
+
createdAt
|
|
115
|
+
updatedAt
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
const input = { id };
|
|
121
|
+
if (sectionTitle)
|
|
122
|
+
input.sectionTitle = sectionTitle;
|
|
123
|
+
if (name)
|
|
124
|
+
input.name = name;
|
|
125
|
+
if (description)
|
|
126
|
+
input.description = description;
|
|
127
|
+
if (status)
|
|
128
|
+
input.status = status;
|
|
129
|
+
if (exclusionJustification)
|
|
130
|
+
input.exclusionJustification = exclusionJustification;
|
|
131
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
132
|
+
return {
|
|
133
|
+
json: responseData,
|
|
134
|
+
pairedItem: { item: itemIndex },
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/control/update.operation.ts"],"names":[],"mappings":";;;AA+FA,0BAyCC;AAvID,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBAC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