n8n-nodes-keephub 1.2.1 → 1.2.2
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/README.md +16 -10
- package/package.json +3 -1
- package/dist/nodes/Keephub/actions/content/create.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/content/create.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/content/create.operation.js +0 -34
- package/dist/nodes/Keephub/actions/content/create.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/content/delete.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/content/delete.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/content/delete.operation.js +0 -33
- package/dist/nodes/Keephub/actions/content/delete.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/content/findByContentPool.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/content/findByContentPool.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/content/findByContentPool.operation.js +0 -38
- package/dist/nodes/Keephub/actions/content/findByContentPool.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/content/findByGroup.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/content/findByGroup.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/content/findByGroup.operation.js +0 -38
- package/dist/nodes/Keephub/actions/content/findByGroup.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/content/findByOrgunit.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/content/findByOrgunit.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/content/findByOrgunit.operation.js +0 -38
- package/dist/nodes/Keephub/actions/content/findByOrgunit.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/content/getById.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/content/getById.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/content/getById.operation.js +0 -33
- package/dist/nodes/Keephub/actions/content/getById.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/content/updateById.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/content/updateById.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/content/updateById.operation.js +0 -85
- package/dist/nodes/Keephub/actions/content/updateById.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/calculateResponseDuration.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/formSubmission/calculateResponseDuration.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/calculateResponseDuration.operation.js +0 -57
- package/dist/nodes/Keephub/actions/formSubmission/calculateResponseDuration.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/getById.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/formSubmission/getById.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/getById.operation.js +0 -32
- package/dist/nodes/Keephub/actions/formSubmission/getById.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.operation.js +0 -60
- package/dist/nodes/Keephub/actions/formSubmission/getSubmissionOrgunits.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/getSubmitterDetails.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/formSubmission/getSubmitterDetails.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/getSubmitterDetails.operation.js +0 -38
- package/dist/nodes/Keephub/actions/formSubmission/getSubmitterDetails.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/updateFormSubmissionOrgunits.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/formSubmission/updateFormSubmissionOrgunits.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/updateFormSubmissionOrgunits.operation.js +0 -42
- package/dist/nodes/Keephub/actions/formSubmission/updateFormSubmissionOrgunits.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/updateSubmissionOrgunits.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/formSubmission/updateSubmissionOrgunits.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/formSubmission/updateSubmissionOrgunits.operation.js +0 -53
- package/dist/nodes/Keephub/actions/formSubmission/updateSubmissionOrgunits.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/orgchart/getAncestors.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/orgchart/getAncestors.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/orgchart/getAncestors.operation.js +0 -53
- package/dist/nodes/Keephub/actions/orgchart/getAncestors.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/orgchart/getById.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/orgchart/getById.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/orgchart/getById.operation.js +0 -31
- package/dist/nodes/Keephub/actions/orgchart/getById.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/orgchart/getChildren.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/orgchart/getChildren.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/orgchart/getChildren.operation.js +0 -80
- package/dist/nodes/Keephub/actions/orgchart/getChildren.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/orgchart/getParent.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/orgchart/getParent.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/orgchart/getParent.operation.js +0 -42
- package/dist/nodes/Keephub/actions/orgchart/getParent.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/task/create.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/task/create.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/task/create.operation.js +0 -99
- package/dist/nodes/Keephub/actions/task/create.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/task/delete.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/task/delete.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/task/delete.operation.js +0 -39
- package/dist/nodes/Keephub/actions/task/delete.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/task/getById.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/task/getById.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/task/getById.operation.js +0 -33
- package/dist/nodes/Keephub/actions/task/getById.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/task/getStatus.d.ts +0 -9
- package/dist/nodes/Keephub/actions/task/getStatus.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/task/getStatus.js +0 -34
- package/dist/nodes/Keephub/actions/task/getStatus.js.map +0 -1
- package/dist/nodes/Keephub/actions/task/getStatus.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/task/getStatus.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/task/getStatus.operation.js +0 -38
- package/dist/nodes/Keephub/actions/task/getStatus.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/task/getStatusCounts.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/task/getStatusCounts.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/task/getStatusCounts.operation.js +0 -40
- package/dist/nodes/Keephub/actions/task/getStatusCounts.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/task/updateById.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/task/updateById.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/task/updateById.operation.js +0 -61
- package/dist/nodes/Keephub/actions/task/updateById.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/user/findByGroup.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/user/findByGroup.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/user/findByGroup.operation.js +0 -36
- package/dist/nodes/Keephub/actions/user/findByGroup.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/user/findById.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/user/findById.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/user/findById.operation.js +0 -23
- package/dist/nodes/Keephub/actions/user/findById.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/user/findByLoginName.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/user/findByLoginName.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/user/findByLoginName.operation.js +0 -36
- package/dist/nodes/Keephub/actions/user/findByLoginName.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/user/findByOrgunit.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/user/findByOrgunit.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/user/findByOrgunit.operation.js +0 -36
- package/dist/nodes/Keephub/actions/user/findByOrgunit.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/user/findByUsername.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/user/findByUsername.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/user/findByUsername.operation.js +0 -25
- package/dist/nodes/Keephub/actions/user/findByUsername.operation.js.map +0 -1
- package/dist/nodes/Keephub/actions/user/getById.operation.d.ts +0 -10
- package/dist/nodes/Keephub/actions/user/getById.operation.d.ts.map +0 -1
- package/dist/nodes/Keephub/actions/user/getById.operation.js +0 -32
- package/dist/nodes/Keephub/actions/user/getById.operation.js.map +0 -1
- package/dist/nodes/Keephub/descriptions/AuthDescription.d.ts +0 -19
- package/dist/nodes/Keephub/descriptions/AuthDescription.d.ts.map +0 -1
- package/dist/nodes/Keephub/descriptions/AuthDescription.js +0 -26
- package/dist/nodes/Keephub/descriptions/AuthDescription.js.map +0 -1
- package/dist/nodes/Keephub/util.d.ts +0 -2
- package/dist/nodes/Keephub/util.d.ts.map +0 -1
- package/dist/nodes/Keephub/util.js +0 -8
- package/dist/nodes/Keephub/util.js.map +0 -1
- package/dist/nodes/KeephubTrigger/Keephub.svg +0 -8
package/README.md
CHANGED
|
@@ -489,16 +489,22 @@ npm run lint
|
|
|
489
489
|
- ✅ Task template operations
|
|
490
490
|
- 📋 Form submission handling
|
|
491
491
|
- 🔐 Secure API authentication
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
492
|
+
|
|
493
|
+
### v1.1.0 (2025-11-10) 📦
|
|
494
|
+
- 📊 Added Orgchart operations (Get, Parent, Ancestors, Children)
|
|
495
|
+
- 🧹 Fixed console.log in updateById operation
|
|
496
|
+
- 🔧 Code cleanup and optimizations
|
|
497
|
+
|
|
498
|
+
### v1.2.0 (2025-11-12) 🆕
|
|
499
|
+
- 🔍 Added Get By Orgunit task operation
|
|
500
|
+
- 📅 Date range filtering support for tasks (Start Date Before/After)
|
|
501
|
+
- 📰 Enhanced Content filtering
|
|
502
|
+
|
|
503
|
+
### v1.2.1 (2025-11-20)
|
|
504
|
+
- 📖 README updates and documentation improvements
|
|
505
|
+
|
|
506
|
+
### v1.2.2 (2025-11-20)
|
|
507
|
+
- 🧹 Build process improvements (added dist folder cleanup script)
|
|
502
508
|
|
|
503
509
|
---
|
|
504
510
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-keephub",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Keephub integration node for n8n workflow automation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
|
+
"clean": "rm -rf dist",
|
|
30
|
+
"prebuild": "npm run clean",
|
|
29
31
|
"build": "tsc && npm run copy-assets",
|
|
30
32
|
"copy-assets": "mkdir -p dist/credentials && cp icons/Keephub.svg dist/credentials/ && mkdir -p dist/nodes/Keephub && cp icons/Keephub.svg dist/nodes/Keephub/",
|
|
31
33
|
"dev": "tsc -w",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=create.operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/create.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAwB/B"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const helpers_1 = require("../../utils/helpers");
|
|
7
|
-
exports.description = {
|
|
8
|
-
displayName: 'Create',
|
|
9
|
-
name: 'create',
|
|
10
|
-
action: 'Create content',
|
|
11
|
-
description: 'Create new content',
|
|
12
|
-
};
|
|
13
|
-
async function execute(item, index) {
|
|
14
|
-
try {
|
|
15
|
-
const contentBody = this.getNodeParameter('contentBody', index);
|
|
16
|
-
const body = helpers_1.parseJsonParameter.call(this, contentBody, 'Content Body', index);
|
|
17
|
-
if (!body || Object.keys(body).length === 0) {
|
|
18
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Content body cannot be empty', {
|
|
19
|
-
itemIndex: index,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
const response = await helpers_1.apiRequest.call(this, 'POST', '/contents', body);
|
|
23
|
-
return [
|
|
24
|
-
{
|
|
25
|
-
json: response,
|
|
26
|
-
pairedItem: { item: index },
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
throw error;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=create.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/create.operation.ts"],"names":[],"mappings":";;;AAYA,0BA4BC;AAtCD,+CAAkD;AAClD,iDAAqE;AAExD,QAAA,WAAW,GAAG;IAC1B,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,gBAAgB;IACxB,WAAW,EAAE,oBAAoB;CACjC,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,IAAwB,EACxB,KAAa;IAEb,IAAI,CAAC;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,KAAK,CAAY,CAAC;QAE3E,MAAM,IAAI,GAAG,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;QAG/E,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7C,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,8BAA8B,EAAE;gBAC5E,SAAS,EAAE,KAAK;aAChB,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,oBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;QAExE,OAAO;YACN;gBACC,IAAI,EAAE,QAAuB;gBAC7B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;aAC3B;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=delete.operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/delete.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAyB/B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const helpers_1 = require("../../utils/helpers");
|
|
7
|
-
exports.description = {
|
|
8
|
-
displayName: 'Delete',
|
|
9
|
-
name: 'delete',
|
|
10
|
-
action: 'Delete content',
|
|
11
|
-
description: 'Delete content by ID',
|
|
12
|
-
};
|
|
13
|
-
async function execute(item, index) {
|
|
14
|
-
try {
|
|
15
|
-
const contentId = this.getNodeParameter('contentId', index);
|
|
16
|
-
if (!contentId || contentId.trim().length === 0) {
|
|
17
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Content ID cannot be empty', {
|
|
18
|
-
itemIndex: index,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
const response = await helpers_1.apiRequest.call(this, 'DELETE', `/contents/${encodeURIComponent(contentId)}`);
|
|
22
|
-
return [
|
|
23
|
-
{
|
|
24
|
-
json: response,
|
|
25
|
-
pairedItem: { item: index },
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
throw error;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=delete.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/delete.operation.ts"],"names":[],"mappings":";;;AAYA,0BA6BC;AAvCD,+CAAkD;AAClD,iDAAiD;AAEpC,QAAA,WAAW,GAAG;IAC1B,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,gBAAgB;IACxB,WAAW,EAAE,sBAAsB;CACnC,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,IAAwB,EACxB,KAAa;IAEb,IAAI,CAAC;QACJ,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAW,CAAC;QAEtE,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,4BAA4B,EAAE;gBAC1E,SAAS,EAAE,KAAK;aAChB,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,oBAAU,CAAC,IAAI,CACrC,IAAI,EACJ,QAAQ,EACR,aAAa,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAC5C,CAAC;QAEF,OAAO;YACN;gBACC,IAAI,EAAE,QAAuB;gBAC7B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;aAC3B;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=findByContentPool.operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findByContentPool.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/findByContentPool.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA4B/B"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const helpers_1 = require("../../utils/helpers");
|
|
7
|
-
exports.description = {
|
|
8
|
-
displayName: 'Find by Content Pool',
|
|
9
|
-
name: 'findByContentPool',
|
|
10
|
-
action: 'Find contents by content pool',
|
|
11
|
-
description: 'Find contents by content pool',
|
|
12
|
-
};
|
|
13
|
-
async function execute(item, index) {
|
|
14
|
-
try {
|
|
15
|
-
const contentPoolId = this.getNodeParameter('filterContentPoolId', index);
|
|
16
|
-
const limit = this.getNodeParameter('limit', index, 50);
|
|
17
|
-
if (!contentPoolId || contentPoolId.trim().length === 0) {
|
|
18
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Content Pool ID cannot be empty', {
|
|
19
|
-
itemIndex: index,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
const params = new URLSearchParams();
|
|
23
|
-
params.append('contentPoolId', contentPoolId);
|
|
24
|
-
if (limit) {
|
|
25
|
-
params.append('limit', limit.toString());
|
|
26
|
-
}
|
|
27
|
-
const response = await helpers_1.apiRequest.call(this, 'GET', `/contents?${params.toString()}`);
|
|
28
|
-
const items = Array.isArray(response) ? response : [response];
|
|
29
|
-
return items.map((item) => ({
|
|
30
|
-
json: item,
|
|
31
|
-
pairedItem: { item: index },
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
throw error;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=findByContentPool.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findByContentPool.operation.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/findByContentPool.operation.ts"],"names":[],"mappings":";;;AAYA,0BAgCC;AA1CD,+CAAkD;AAClD,iDAAiD;AAEpC,QAAA,WAAW,GAAG;IAC1B,WAAW,EAAE,sBAAsB;IACnC,IAAI,EAAE,mBAAmB;IACzB,MAAM,EAAE,+BAA+B;IACvC,WAAW,EAAE,+BAA+B;CAC5C,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,IAAwB,EACxB,KAAa;IAEb,IAAI,CAAC;QACJ,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,KAAK,CAAW,CAAC;QACpF,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAW,CAAC;QAElE,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,iCAAiC,EAAE;gBAC/E,SAAS,EAAE,KAAK;aAChB,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;QAC9C,IAAI,KAAK,EAAE,CAAC;YACX,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,oBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAEtF,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAE9D,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC;YACxC,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=findByGroup.operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findByGroup.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/findByGroup.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA4B/B"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const helpers_1 = require("../../utils/helpers");
|
|
7
|
-
exports.description = {
|
|
8
|
-
displayName: 'Find by Group',
|
|
9
|
-
name: 'findByGroup',
|
|
10
|
-
action: 'Find contents by group',
|
|
11
|
-
description: 'Find contents by group',
|
|
12
|
-
};
|
|
13
|
-
async function execute(item, index) {
|
|
14
|
-
try {
|
|
15
|
-
const groupId = this.getNodeParameter('groupId', index);
|
|
16
|
-
const limit = this.getNodeParameter('limit', index, 50);
|
|
17
|
-
if (!groupId || groupId.trim().length === 0) {
|
|
18
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Group ID cannot be empty', {
|
|
19
|
-
itemIndex: index,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
const params = new URLSearchParams();
|
|
23
|
-
params.append('groupId', groupId);
|
|
24
|
-
if (limit) {
|
|
25
|
-
params.append('limit', limit.toString());
|
|
26
|
-
}
|
|
27
|
-
const response = await helpers_1.apiRequest.call(this, 'GET', `/contents?${params.toString()}`);
|
|
28
|
-
const items = Array.isArray(response) ? response : [response];
|
|
29
|
-
return items.map((item) => ({
|
|
30
|
-
json: item,
|
|
31
|
-
pairedItem: { item: index },
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
throw error;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=findByGroup.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findByGroup.operation.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/findByGroup.operation.ts"],"names":[],"mappings":";;;AAYA,0BAgCC;AA1CD,+CAAkD;AAClD,iDAAiD;AAEpC,QAAA,WAAW,GAAG;IAC1B,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,wBAAwB;IAChC,WAAW,EAAE,wBAAwB;CACrC,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,IAAwB,EACxB,KAAa;IAEb,IAAI,CAAC;QACJ,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,KAAK,CAAW,CAAC;QAClE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAW,CAAC;QAElE,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7C,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,0BAA0B,EAAE;gBACxE,SAAS,EAAE,KAAK;aAChB,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAClC,IAAI,KAAK,EAAE,CAAC;YACX,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,oBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAEtF,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAE9D,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC;YACxC,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=findByOrgunit.operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findByOrgunit.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/findByOrgunit.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA4B/B"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const helpers_1 = require("../../utils/helpers");
|
|
7
|
-
exports.description = {
|
|
8
|
-
displayName: 'Find by Orgunit',
|
|
9
|
-
name: 'findByOrgunit',
|
|
10
|
-
action: 'Find contents by organization unit',
|
|
11
|
-
description: 'Find contents by organization unit',
|
|
12
|
-
};
|
|
13
|
-
async function execute(item, index) {
|
|
14
|
-
try {
|
|
15
|
-
const orgunitId = this.getNodeParameter('orgunitId', index);
|
|
16
|
-
const limit = this.getNodeParameter('limit', index, 50);
|
|
17
|
-
if (!orgunitId || orgunitId.trim().length === 0) {
|
|
18
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Orgunit ID cannot be empty', {
|
|
19
|
-
itemIndex: index,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
const params = new URLSearchParams();
|
|
23
|
-
params.append('orgunitId', orgunitId);
|
|
24
|
-
if (limit) {
|
|
25
|
-
params.append('limit', limit.toString());
|
|
26
|
-
}
|
|
27
|
-
const response = await helpers_1.apiRequest.call(this, 'GET', `/contents?${params.toString()}`);
|
|
28
|
-
const items = Array.isArray(response) ? response : [response];
|
|
29
|
-
return items.map((item) => ({
|
|
30
|
-
json: item,
|
|
31
|
-
pairedItem: { item: index },
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
throw error;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=findByOrgunit.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findByOrgunit.operation.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/findByOrgunit.operation.ts"],"names":[],"mappings":";;;AAYA,0BAgCC;AA1CD,+CAAkD;AAClD,iDAAiD;AAEpC,QAAA,WAAW,GAAG;IAC1B,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,eAAe;IACrB,MAAM,EAAE,oCAAoC;IAC5C,WAAW,EAAE,oCAAoC;CACjD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,IAAwB,EACxB,KAAa;IAEb,IAAI,CAAC;QACJ,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAW,CAAC;QACtE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAW,CAAC;QAElE,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,4BAA4B,EAAE;gBAC1E,SAAS,EAAE,KAAK;aAChB,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACtC,IAAI,KAAK,EAAE,CAAC;YACX,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,oBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAEtF,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAE9D,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC;YACxC,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=getById.operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getById.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/getById.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAyB/B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const helpers_1 = require("../../utils/helpers");
|
|
7
|
-
exports.description = {
|
|
8
|
-
displayName: 'Get by ID',
|
|
9
|
-
name: 'getById',
|
|
10
|
-
action: 'Get content by ID',
|
|
11
|
-
description: 'Get content by ID',
|
|
12
|
-
};
|
|
13
|
-
async function execute(item, index) {
|
|
14
|
-
try {
|
|
15
|
-
const contentId = this.getNodeParameter('contentId', index);
|
|
16
|
-
if (!contentId || contentId.trim().length === 0) {
|
|
17
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Content ID cannot be empty', {
|
|
18
|
-
itemIndex: index,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
const response = await helpers_1.apiRequest.call(this, 'GET', `/contents/${encodeURIComponent(contentId)}`);
|
|
22
|
-
return [
|
|
23
|
-
{
|
|
24
|
-
json: response,
|
|
25
|
-
pairedItem: { item: index },
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
throw error;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=getById.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getById.operation.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/getById.operation.ts"],"names":[],"mappings":";;;AAYA,0BA6BC;AAvCD,+CAAkD;AAClD,iDAAiD;AAEpC,QAAA,WAAW,GAAG;IAC1B,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,mBAAmB;IAC3B,WAAW,EAAE,mBAAmB;CAChC,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,IAAwB,EACxB,KAAa;IAEb,IAAI,CAAC;QACJ,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAW,CAAC;QAEtE,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,4BAA4B,EAAE;gBAC1E,SAAS,EAAE,KAAK;aAChB,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,oBAAU,CAAC,IAAI,CACrC,IAAI,EACJ,KAAK,EACL,aAAa,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAC5C,CAAC;QAEF,OAAO;YACN;gBACC,IAAI,EAAE,QAAuB;gBAC7B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;aAC3B;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=updateById.operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateById.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/updateById.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAiBF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAkF/B"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const helpers_1 = require("../../utils/helpers");
|
|
7
|
-
exports.description = {
|
|
8
|
-
displayName: 'Update by ID',
|
|
9
|
-
name: 'updateById',
|
|
10
|
-
action: 'Update content by ID',
|
|
11
|
-
description: 'Update content by ID',
|
|
12
|
-
};
|
|
13
|
-
function setNestedValue(obj, path, value) {
|
|
14
|
-
const keys = path.split('.');
|
|
15
|
-
let current = obj;
|
|
16
|
-
for (let i = 0; i < keys.length - 1; i++) {
|
|
17
|
-
const key = keys[i];
|
|
18
|
-
if (!current[key] || typeof current[key] !== 'object') {
|
|
19
|
-
current[key] = {};
|
|
20
|
-
}
|
|
21
|
-
current = current[key];
|
|
22
|
-
}
|
|
23
|
-
current[keys[keys.length - 1]] = value;
|
|
24
|
-
}
|
|
25
|
-
async function execute(item, index) {
|
|
26
|
-
const contentId = this.getNodeParameter('contentId', index);
|
|
27
|
-
const updateDataRaw = this.getNodeParameter('updateFields', index);
|
|
28
|
-
console.log('=== UPDATE BY ID OPERATION START ===');
|
|
29
|
-
console.log('Content ID:', contentId);
|
|
30
|
-
console.log('Update Data Raw:', JSON.stringify(updateDataRaw, null, 2));
|
|
31
|
-
if (!contentId || contentId.trim().length === 0) {
|
|
32
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Content ID cannot be empty', {
|
|
33
|
-
itemIndex: index,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
try {
|
|
37
|
-
// Get all fields for this content
|
|
38
|
-
console.log('Fetching content from API...');
|
|
39
|
-
const currentContent = (await helpers_1.apiRequest.call(this, 'GET', `/contents/${encodeURIComponent(contentId)}`));
|
|
40
|
-
console.log('Current content fetched:', JSON.stringify(currentContent, null, 2));
|
|
41
|
-
// Extract assignments from the update data
|
|
42
|
-
// Extract assignments from the update data
|
|
43
|
-
const assignments = updateDataRaw?.assignments || [];
|
|
44
|
-
console.log('Assignments extracted:', JSON.stringify(assignments, null, 2));
|
|
45
|
-
if (assignments.length === 0) {
|
|
46
|
-
console.log('NO ASSIGNMENTS FOUND - This is the problem!');
|
|
47
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No fields to update', {
|
|
48
|
-
itemIndex: index,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
// Build updates from assignments
|
|
52
|
-
console.log('Processing assignments...');
|
|
53
|
-
for (const assignment of assignments) {
|
|
54
|
-
let name = assignment.name;
|
|
55
|
-
const value = assignment.value;
|
|
56
|
-
// STRIP THE [0].json PREFIX IF IT EXISTS (this is what was working before)
|
|
57
|
-
if (name.startsWith('[0].json.')) {
|
|
58
|
-
name = name.substring(9); // Remove '[0].json.' (9 characters)
|
|
59
|
-
console.log(`Stripped path from [0].json.${name} to ${name}`);
|
|
60
|
-
}
|
|
61
|
-
console.log(`Setting field: ${name} = ${JSON.stringify(value)}`);
|
|
62
|
-
if (name && name.trim().length > 0) {
|
|
63
|
-
setNestedValue(currentContent, name, value);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
console.log('Final content to send:', JSON.stringify(currentContent, null, 2));
|
|
67
|
-
// Send the complete updated object
|
|
68
|
-
console.log('Sending PATCH request...');
|
|
69
|
-
const response = await helpers_1.apiRequest.call(this, 'PATCH', `/contents/${encodeURIComponent(contentId)}`, currentContent);
|
|
70
|
-
console.log('API Response:', JSON.stringify(response, null, 2));
|
|
71
|
-
console.log('=== UPDATE BY ID OPERATION SUCCESS ===');
|
|
72
|
-
return [
|
|
73
|
-
{
|
|
74
|
-
json: response,
|
|
75
|
-
pairedItem: { item: index },
|
|
76
|
-
},
|
|
77
|
-
];
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
console.log('=== ERROR IN UPDATE BY ID ===');
|
|
81
|
-
console.log('Error:', error);
|
|
82
|
-
throw error;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=updateById.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateById.operation.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/content/updateById.operation.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=calculateResponseDuration.operation.d.ts.map
|
package/dist/nodes/Keephub/actions/formSubmission/calculateResponseDuration.operation.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calculateResponseDuration.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/formSubmission/calculateResponseDuration.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA4D/B"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
-
const helpers_1 = require("../../utils/helpers");
|
|
7
|
-
exports.description = {
|
|
8
|
-
displayName: 'Calculate Response Duration',
|
|
9
|
-
name: 'calculateResponseDuration',
|
|
10
|
-
action: 'Calculate response duration',
|
|
11
|
-
description: 'Calculate the time taken to submit a form',
|
|
12
|
-
};
|
|
13
|
-
async function execute(item, index) {
|
|
14
|
-
try {
|
|
15
|
-
const formSubmissionId = this.getNodeParameter('formSubmissionId', index);
|
|
16
|
-
helpers_1.validateMongoId.call(this, formSubmissionId, 'Form Submission ID', index);
|
|
17
|
-
// Get form submission first to extract contentRef ID
|
|
18
|
-
const formSubmission = (await helpers_1.apiRequest.call(this, 'GET', `/formvalues/${formSubmissionId}`));
|
|
19
|
-
if (!formSubmission || !formSubmission.contentRef) {
|
|
20
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Form submission or contentRef not found', {
|
|
21
|
-
itemIndex: index,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
const contentId = formSubmission.contentRef instanceof Object
|
|
25
|
-
? formSubmission.contentRef._id
|
|
26
|
-
: formSubmission.contentRef;
|
|
27
|
-
// Now fetch the form/content to get creation time
|
|
28
|
-
const contentRef = (await helpers_1.apiRequest.call(this, 'GET', `/contents/${contentId}`));
|
|
29
|
-
const createdAt = new Date(contentRef.createdAt).getTime();
|
|
30
|
-
const submittedAt = new Date(formSubmission.createdAt).getTime();
|
|
31
|
-
const durationMs = submittedAt - createdAt;
|
|
32
|
-
const durationSecs = Math.floor(durationMs / 1000);
|
|
33
|
-
const durationMins = Math.floor(durationSecs / 60);
|
|
34
|
-
const durationHours = Math.floor(durationMins / 60);
|
|
35
|
-
const durationDays = Math.floor(durationHours / 24);
|
|
36
|
-
const remainingSecs = durationSecs % 60;
|
|
37
|
-
const remainingMins = durationMins % 60;
|
|
38
|
-
const remainingHours = durationHours % 24;
|
|
39
|
-
return [
|
|
40
|
-
{
|
|
41
|
-
json: {
|
|
42
|
-
formId: contentId,
|
|
43
|
-
formCreatedAt: contentRef.createdAt,
|
|
44
|
-
submittedAt: formSubmission.createdAt,
|
|
45
|
-
duration: {
|
|
46
|
-
timeSinceFormCreated: `${durationDays}d ${remainingHours}h ${remainingMins}m ${remainingSecs}s`,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
pairedItem: { item: index },
|
|
50
|
-
},
|
|
51
|
-
];
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
throw error;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=calculateResponseDuration.operation.js.map
|
package/dist/nodes/Keephub/actions/formSubmission/calculateResponseDuration.operation.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calculateResponseDuration.operation.js","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/formSubmission/calculateResponseDuration.operation.ts"],"names":[],"mappings":";;;AAYA,0BAgEC;AA1ED,+CAAkD;AAClD,iDAAkE;AAErD,QAAA,WAAW,GAAG;IAC1B,WAAW,EAAE,6BAA6B;IAC1C,IAAI,EAAE,2BAA2B;IACjC,MAAM,EAAE,6BAA6B;IACrC,WAAW,EAAE,2CAA2C;CACxD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,IAAwB,EACxB,KAAa;IAEb,IAAI,CAAC;QACJ,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,KAAK,CAAW,CAAC;QAEpF,yBAAe,CAAC,IAAI,CAAC,IAAI,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;QAE1E,qDAAqD;QACrD,MAAM,cAAc,GAAG,CAAC,MAAM,oBAAU,CAAC,IAAI,CAC5C,IAAI,EACJ,KAAK,EACL,eAAe,gBAAgB,EAAE,CACjC,CAAgB,CAAC;QAElB,IAAI,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;YACnD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,yCAAyC,EAAE;gBACvF,SAAS,EAAE,KAAK;aAChB,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,SAAS,GACd,cAAc,CAAC,UAAU,YAAY,MAAM;YAC1C,CAAC,CAAE,cAAc,CAAC,UAA0B,CAAC,GAAG;YAChD,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC;QAE9B,kDAAkD;QAClD,MAAM,UAAU,GAAG,CAAC,MAAM,oBAAU,CAAC,IAAI,CACxC,IAAI,EACJ,KAAK,EACL,aAAa,SAAS,EAAE,CACxB,CAAgB,CAAC;QAElB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,SAAmB,CAAC,CAAC,OAAO,EAAE,CAAC;QACrE,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,SAAmB,CAAC,CAAC,OAAO,EAAE,CAAC;QAE3E,MAAM,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;QAC3C,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;QACnD,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,EAAE,CAAC,CAAC;QACnD,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,EAAE,CAAC,CAAC;QACpD,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC,CAAC;QAEpD,MAAM,aAAa,GAAG,YAAY,GAAG,EAAE,CAAC;QACxC,MAAM,aAAa,GAAG,YAAY,GAAG,EAAE,CAAC;QACxC,MAAM,cAAc,GAAG,aAAa,GAAG,EAAE,CAAC;QAE1C,OAAO;YACN;gBACC,IAAI,EAAE;oBACL,MAAM,EAAE,SAAS;oBACjB,aAAa,EAAE,UAAU,CAAC,SAAS;oBACnC,WAAW,EAAE,cAAc,CAAC,SAAS;oBACrC,QAAQ,EAAE;wBACT,oBAAoB,EAAE,GAAG,YAAY,KAAK,cAAc,KAAK,aAAa,KAAK,aAAa,GAAG;qBAC/F;iBACD;gBACD,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;aAC3B;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { INodeExecutionData } from 'n8n-workflow';
|
|
2
|
-
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
export declare const description: {
|
|
4
|
-
displayName: string;
|
|
5
|
-
name: string;
|
|
6
|
-
action: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, item: INodeExecutionData, index: number): Promise<INodeExecutionData[]>;
|
|
10
|
-
//# sourceMappingURL=getById.operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getById.operation.d.ts","sourceRoot":"","sources":["../../../../../nodes/Keephub/actions/formSubmission/getById.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAyB/B"}
|