@probo/n8n-nodes-probo 0.225.0 → 0.227.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/GenericFunctions.d.ts +3 -0
- package/dist/nodes/Probo/GenericFunctions.js +61 -0
- package/dist/nodes/Probo/GenericFunctions.js.map +1 -1
- package/dist/nodes/Probo/Probo.node.js +5 -0
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/accessReview/readEntries.operation.js +0 -1
- package/dist/nodes/Probo/actions/accessReview/readEntries.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/accessReviewSource/create.operation.js +64 -3
- package/dist/nodes/Probo/actions/accessReviewSource/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/accessReviewSource/index.d.ts +2 -1
- package/dist/nodes/Probo/actions/accessReviewSource/index.js +11 -2
- package/dist/nodes/Probo/actions/accessReviewSource/index.js.map +1 -1
- package/dist/nodes/Probo/actions/accessReviewSource/setupGcp.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/accessReviewSource/setupGcp.operation.js +41 -0
- package/dist/nodes/Probo/actions/accessReviewSource/setupGcp.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/audit/create.operation.js +17 -0
- package/dist/nodes/Probo/actions/audit/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/get.operation.js +1 -0
- package/dist/nodes/Probo/actions/audit/get.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/getAll.operation.js +1 -0
- package/dist/nodes/Probo/actions/audit/getAll.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/update.operation.js +17 -0
- package/dist/nodes/Probo/actions/audit/update.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/task/create.operation.js +13 -6
- package/dist/nodes/Probo/actions/task/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/task/get.operation.js +6 -1
- package/dist/nodes/Probo/actions/task/get.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/task/getAll.operation.js +2 -2
- package/dist/nodes/Probo/actions/task/getAll.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/task/update.operation.js +13 -7
- package/dist/nodes/Probo/actions/task/update.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/taskComment/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/taskComment/create.operation.js +91 -0
- package/dist/nodes/Probo/actions/taskComment/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/taskComment/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/taskComment/delete.operation.js +39 -0
- package/dist/nodes/Probo/actions/taskComment/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/taskComment/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/taskComment/get.operation.js +51 -0
- package/dist/nodes/Probo/actions/taskComment/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/taskComment/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/taskComment/getAll.operation.js +100 -0
- package/dist/nodes/Probo/actions/taskComment/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/taskComment/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/taskComment/index.js +98 -0
- package/dist/nodes/Probo/actions/taskComment/index.js.map +1 -0
- package/dist/nodes/Probo/actions/taskComment/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/taskComment/update.operation.js +94 -0
- package/dist/nodes/Probo/actions/taskComment/update.operation.js.map +1 -0
- package/dist/package.json +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -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: ['taskComment'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
name: 'Create',
|
|
61
|
+
value: 'create',
|
|
62
|
+
description: 'Create a new task comment',
|
|
63
|
+
action: 'Create a task comment',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Delete',
|
|
67
|
+
value: 'delete',
|
|
68
|
+
description: 'Delete a task comment',
|
|
69
|
+
action: 'Delete a task comment',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Get',
|
|
73
|
+
value: 'get',
|
|
74
|
+
description: 'Get a task comment',
|
|
75
|
+
action: 'Get a task comment',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Get Many',
|
|
79
|
+
value: 'getAll',
|
|
80
|
+
description: 'Get many task comments',
|
|
81
|
+
action: 'Get many task comments',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Update',
|
|
85
|
+
value: 'update',
|
|
86
|
+
description: 'Update an existing task comment',
|
|
87
|
+
action: 'Update a task comment',
|
|
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/taskComment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,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,aAAa,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,2BAA2B;gBACxC,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,uBAAuB;gBACpC,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,wBAAwB;aAChC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iCAAiC;gBAC9C,MAAM,EAAE,uBAAuB;aAC/B;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,94 @@
|
|
|
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: 'Comment ID',
|
|
9
|
+
name: 'commentId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['taskComment'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the task comment to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Additional Fields',
|
|
23
|
+
name: 'additionalFields',
|
|
24
|
+
type: 'collection',
|
|
25
|
+
placeholder: 'Add Field',
|
|
26
|
+
default: {},
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: {
|
|
29
|
+
resource: ['taskComment'],
|
|
30
|
+
operation: ['update'],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
options: [
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Content',
|
|
36
|
+
name: 'content',
|
|
37
|
+
type: 'string',
|
|
38
|
+
typeOptions: {
|
|
39
|
+
rows: 4,
|
|
40
|
+
},
|
|
41
|
+
default: '',
|
|
42
|
+
description: 'The comment content',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Owner ID',
|
|
46
|
+
name: 'ownerId',
|
|
47
|
+
type: 'string',
|
|
48
|
+
default: '',
|
|
49
|
+
description: 'The owner membership profile ID',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
async function execute(itemIndex) {
|
|
55
|
+
const commentId = this.getNodeParameter('commentId', itemIndex);
|
|
56
|
+
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {});
|
|
57
|
+
const query = `
|
|
58
|
+
mutation UpdateTaskComment($input: UpdateTaskCommentInput!) {
|
|
59
|
+
updateTaskComment(input: $input) {
|
|
60
|
+
taskComment {
|
|
61
|
+
id
|
|
62
|
+
content
|
|
63
|
+
createdAt
|
|
64
|
+
updatedAt
|
|
65
|
+
owner {
|
|
66
|
+
id
|
|
67
|
+
fullName
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
const input = { taskCommentId: commentId };
|
|
74
|
+
if (additionalFields.content !== undefined) {
|
|
75
|
+
input.content = additionalFields.content === ''
|
|
76
|
+
? null
|
|
77
|
+
: (0, GenericFunctions_1.plainTextToProseMirrorJSON)(additionalFields.content);
|
|
78
|
+
}
|
|
79
|
+
if (additionalFields.ownerId) {
|
|
80
|
+
input.ownerId = additionalFields.ownerId;
|
|
81
|
+
}
|
|
82
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
83
|
+
const data = responseData.data;
|
|
84
|
+
const payload = data === null || data === void 0 ? void 0 : data.updateTaskComment;
|
|
85
|
+
const taskComment = payload === null || payload === void 0 ? void 0 : payload.taskComment;
|
|
86
|
+
if (payload && taskComment) {
|
|
87
|
+
payload.taskComment = (0, GenericFunctions_1.withPlainTextContent)(taskComment);
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
json: responseData,
|
|
91
|
+
pairedItem: { item: itemIndex },
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/taskComment/update.operation.ts"],"names":[],"mappings":";;;AAwEA,0BAiDC;AApGD,6DAA2G;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AS,EAAE,CAAC;IAC1E,IAAI,gBAAgB,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAC5C,KAAK,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,KAAK,EAAE;YAC9C,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,IAAA,6CAA0B,EAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC;IACD,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAC9B,KAAK,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC;IAC1C,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACxE,MAAM,IAAI,GAAG,YAAY,CAAC,IAA+B,CAAC;IAC1D,MAAM,OAAO,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,iBAA4C,CAAC;IACnE,MAAM,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAsC,CAAC;IACpE,IAAI,OAAO,IAAI,WAAW,EAAE,CAAC;QAC5B,OAAO,CAAC,WAAW,GAAG,IAAA,uCAAoB,EAAC,WAAW,CAAC,CAAC;IACzD,CAAC;IAED,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@probo/n8n-nodes-probo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.227.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "n8n-node build",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"n8n-workflow": "*"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@n8n/node-cli": "0.
|
|
59
|
+
"@n8n/node-cli": "0.46.1",
|
|
60
60
|
"eslint": "9.29.0"
|
|
61
61
|
}
|
|
62
62
|
}
|