n8n-nodes-docspell 0.43.4 → 0.43.6
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 +1 -1
- package/dist/credentials/DocspellApi.credentials.d.ts +1 -1
- package/dist/credentials/DocspellApi.credentials.js +24 -24
- package/dist/credentials/DocspellApi.credentials.js.map +1 -1
- package/dist/credentials/DocspellSession.js +7 -7
- package/dist/credentials/DocspellSession.js.map +1 -1
- package/dist/nodes/Common/GenericFunctions.d.ts +2 -2
- package/dist/nodes/Common/GenericFunctions.js +24 -20
- package/dist/nodes/Common/GenericFunctions.js.map +1 -1
- package/dist/nodes/Docspell/Docspell.node.d.ts +1 -1
- package/dist/nodes/Docspell/Docspell.node.js +24 -24
- package/dist/nodes/Docspell/Docspell.node.js.map +1 -1
- package/dist/nodes/Docspell/Docspell.node.json +1 -3
- package/dist/nodes/Docspell/methods/loadOptions.d.ts +1 -1
- package/dist/nodes/Docspell/methods/loadOptions.js +9 -8
- package/dist/nodes/Docspell/methods/loadOptions.js.map +1 -1
- package/dist/nodes/Docspell/resources/attachment/download.d.ts +1 -1
- package/dist/nodes/Docspell/resources/attachment/download.js +37 -33
- package/dist/nodes/Docspell/resources/attachment/download.js.map +1 -1
- package/dist/nodes/Docspell/resources/attachment/index.d.ts +1 -1
- package/dist/nodes/Docspell/resources/attachment/index.js +9 -9
- package/dist/nodes/Docspell/resources/attachment/index.js.map +1 -1
- package/dist/nodes/Docspell/resources/item/get.d.ts +1 -1
- package/dist/nodes/Docspell/resources/item/get.js +9 -9
- package/dist/nodes/Docspell/resources/item/get.js.map +1 -1
- package/dist/nodes/Docspell/resources/item/index.d.ts +1 -1
- package/dist/nodes/Docspell/resources/item/index.js +25 -25
- package/dist/nodes/Docspell/resources/item/index.js.map +1 -1
- package/dist/nodes/Docspell/resources/item/search.d.ts +1 -1
- package/dist/nodes/Docspell/resources/item/search.js +40 -40
- package/dist/nodes/Docspell/resources/item/search.js.map +1 -1
- package/dist/nodes/Docspell/resources/item/update.d.ts +1 -1
- package/dist/nodes/Docspell/resources/item/update.js +179 -125
- package/dist/nodes/Docspell/resources/item/update.js.map +1 -1
- package/dist/nodes/Docspell/resources/item/updateMany.d.ts +1 -1
- package/dist/nodes/Docspell/resources/item/updateMany.js +80 -53
- package/dist/nodes/Docspell/resources/item/updateMany.js.map +1 -1
- package/dist/nodes/Docspell/resources/item/upload.d.ts +1 -1
- package/dist/nodes/Docspell/resources/item/upload.js +80 -69
- package/dist/nodes/Docspell/resources/item/upload.js.map +1 -1
- package/dist/nodes/Docspell/resources/organization/get.d.ts +1 -1
- package/dist/nodes/Docspell/resources/organization/get.js +9 -9
- package/dist/nodes/Docspell/resources/organization/get.js.map +1 -1
- package/dist/nodes/Docspell/resources/organization/getAll.d.ts +1 -1
- package/dist/nodes/Docspell/resources/organization/getAll.js +20 -20
- package/dist/nodes/Docspell/resources/organization/getAll.js.map +1 -1
- package/dist/nodes/Docspell/resources/organization/index.d.ts +1 -1
- package/dist/nodes/Docspell/resources/organization/index.js +13 -13
- package/dist/nodes/Docspell/resources/organization/index.js.map +1 -1
- package/dist/package.json +19 -17
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -17
|
@@ -3,46 +3,46 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.organizationGetAllDescription = void 0;
|
|
4
4
|
exports.executeOrganizationGetAll = executeOrganizationGetAll;
|
|
5
5
|
const GenericFunctions_1 = require("../../../Common/GenericFunctions");
|
|
6
|
-
const show = { resource: [
|
|
6
|
+
const show = { resource: ["organization"], operation: ["getAll"] };
|
|
7
7
|
exports.organizationGetAllDescription = [
|
|
8
8
|
{
|
|
9
|
-
displayName:
|
|
10
|
-
name:
|
|
11
|
-
type:
|
|
12
|
-
default:
|
|
13
|
-
description:
|
|
9
|
+
displayName: "Filter",
|
|
10
|
+
name: "query",
|
|
11
|
+
type: "string",
|
|
12
|
+
default: "",
|
|
13
|
+
description: "Only organizations whose name or short name contains this text. Leave empty to list all.",
|
|
14
14
|
displayOptions: { show },
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
displayName:
|
|
18
|
-
name:
|
|
19
|
-
type:
|
|
17
|
+
displayName: "Return All",
|
|
18
|
+
name: "returnAll",
|
|
19
|
+
type: "boolean",
|
|
20
20
|
default: false,
|
|
21
|
-
description:
|
|
21
|
+
description: "Whether to return all results or only up to a given limit",
|
|
22
22
|
displayOptions: { show },
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
displayName:
|
|
26
|
-
name:
|
|
27
|
-
type:
|
|
25
|
+
displayName: "Limit",
|
|
26
|
+
name: "limit",
|
|
27
|
+
type: "number",
|
|
28
28
|
default: 50,
|
|
29
29
|
typeOptions: { minValue: 1 },
|
|
30
|
-
description:
|
|
30
|
+
description: "Max number of results to return",
|
|
31
31
|
displayOptions: { show: { ...show, returnAll: [false] } },
|
|
32
32
|
},
|
|
33
33
|
];
|
|
34
34
|
async function executeOrganizationGetAll(context, itemIndex) {
|
|
35
35
|
var _a;
|
|
36
|
-
const query = context.getNodeParameter(
|
|
36
|
+
const query = context.getNodeParameter("query", itemIndex, "").trim();
|
|
37
37
|
const result = (await (0, GenericFunctions_1.docspellApiRequest)(context, {
|
|
38
|
-
method:
|
|
39
|
-
endpoint:
|
|
40
|
-
qs: { full:
|
|
38
|
+
method: "GET",
|
|
39
|
+
endpoint: "/sec/organization",
|
|
40
|
+
qs: { full: "true", ...(query ? { q: query } : {}) },
|
|
41
41
|
}));
|
|
42
42
|
const all = (_a = result.items) !== null && _a !== void 0 ? _a : [];
|
|
43
|
-
const organizations = context.getNodeParameter(
|
|
43
|
+
const organizations = context.getNodeParameter("returnAll", itemIndex, false)
|
|
44
44
|
? all
|
|
45
|
-
: all.slice(0, context.getNodeParameter(
|
|
45
|
+
: all.slice(0, context.getNodeParameter("limit", itemIndex, 50));
|
|
46
46
|
return context.helpers.constructExecutionMetaData(context.helpers.returnJsonArray(organizations), {
|
|
47
47
|
itemData: { item: itemIndex },
|
|
48
48
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Docspell/resources/organization/getAll.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Docspell/resources/organization/getAll.ts"],"names":[],"mappings":";;;AAwCA,8DAyBC;AA1DD,uEAAsE;AAEtE,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEtD,QAAA,6BAA6B,GAAsB;IAC9D;QACE,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EACT,0FAA0F;QAC5F,cAAc,EAAE,EAAE,IAAI,EAAE;KACzB;IACD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;QACxE,cAAc,EAAE,EAAE,IAAI,EAAE;KACzB;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC5B,WAAW,EAAE,iCAAiC;QAC9C,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;KAC1D;CACF,CAAC;AAEK,KAAK,UAAU,yBAAyB,CAC7C,OAA0B,EAC1B,SAAiB;;IAEjB,MAAM,KAAK,GAAI,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,CAAY,CAAC,IAAI,EAAE,CAAC;IAGlF,MAAM,MAAM,GAAG,CAAC,MAAM,IAAA,qCAAkB,EAAC,OAAO,EAAE;QAChD,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,mBAAmB;QAC7B,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;KACrD,CAAC,CAA8B,CAAC;IAGjC,MAAM,GAAG,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,EAAE,CAAC;IAC/B,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,EAAE,KAAK,CAAC;QAC3E,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC,CAAC;IAE7E,OAAO,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAC/C,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,EAC9C;QACE,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC9B,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { INodeProperties } from
|
|
1
|
+
import type { INodeProperties } from "n8n-workflow";
|
|
2
2
|
export declare const organizationDescription: INodeProperties[];
|
|
@@ -5,26 +5,26 @@ const get_1 = require("./get");
|
|
|
5
5
|
const getAll_1 = require("./getAll");
|
|
6
6
|
exports.organizationDescription = [
|
|
7
7
|
{
|
|
8
|
-
displayName:
|
|
9
|
-
name:
|
|
10
|
-
type:
|
|
8
|
+
displayName: "Operation",
|
|
9
|
+
name: "operation",
|
|
10
|
+
type: "options",
|
|
11
11
|
noDataExpression: true,
|
|
12
|
-
displayOptions: { show: { resource: [
|
|
12
|
+
displayOptions: { show: { resource: ["organization"] } },
|
|
13
13
|
options: [
|
|
14
14
|
{
|
|
15
|
-
name:
|
|
16
|
-
value:
|
|
17
|
-
description:
|
|
18
|
-
action:
|
|
15
|
+
name: "Get",
|
|
16
|
+
value: "get",
|
|
17
|
+
description: "Get one organization, including its short name",
|
|
18
|
+
action: "Get an organization",
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
22
|
-
value:
|
|
23
|
-
description:
|
|
24
|
-
action:
|
|
21
|
+
name: "Get Many",
|
|
22
|
+
value: "getAll",
|
|
23
|
+
description: "List the organizations, optionally filtered by name",
|
|
24
|
+
action: "Get many organizations",
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
|
-
default:
|
|
27
|
+
default: "get",
|
|
28
28
|
},
|
|
29
29
|
...get_1.organizationGetDescription,
|
|
30
30
|
...getAll_1.organizationGetAllDescription,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Docspell/resources/organization/index.ts"],"names":[],"mappings":";;;AAEA,+BAAmD;AACnD,qCAAyD;AAE5C,QAAA,uBAAuB,GAAsB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Docspell/resources/organization/index.ts"],"names":[],"mappings":";;;AAEA,+BAAmD;AACnD,qCAAyD;AAE5C,QAAA,uBAAuB,GAAsB;IACxD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QACxD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,gDAAgD;gBAC7D,MAAM,EAAE,qBAAqB;aAC9B;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qDAAqD;gBAClE,MAAM,EAAE,wBAAwB;aACjC;SACF;QACD,OAAO,EAAE,KAAK;KACf;IACD,GAAG,gCAA0B;IAC7B,GAAG,sCAA6B;CACjC,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-docspell",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.6",
|
|
4
4
|
"description": "Interact with your Docspell instance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package"
|
|
7
7
|
],
|
|
8
|
-
"license": "MIT",
|
|
9
8
|
"homepage": "https://github.com/TheFehr/n8n-nodes-docspell#readme",
|
|
9
|
+
"license": "MIT",
|
|
10
10
|
"author": {
|
|
11
11
|
"name": "Philipp Fehr",
|
|
12
12
|
"email": "philipp@thefehr.me"
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
"build": "n8n-node build",
|
|
23
23
|
"build:watch": "tsc --watch",
|
|
24
24
|
"dev": "n8n-node dev",
|
|
25
|
-
"lint": "
|
|
26
|
-
"lint:n8n": "n8n-node lint",
|
|
25
|
+
"lint": "n8n-node lint",
|
|
27
26
|
"lint:oxlint": "oxlint",
|
|
28
|
-
"lint:fix": "n8n-node lint --fix
|
|
27
|
+
"lint:fix": "n8n-node lint --fix",
|
|
28
|
+
"format": "oxfmt .",
|
|
29
|
+
"format:check": "oxfmt --check .",
|
|
29
30
|
"test": "vitest",
|
|
30
31
|
"test:run": "vitest run",
|
|
31
32
|
"test:pipeline": "bash scripts/full-test.sh",
|
|
@@ -34,17 +35,9 @@
|
|
|
34
35
|
"prepublishOnly": "n8n-node prerelease",
|
|
35
36
|
"release": "n8n-node release"
|
|
36
37
|
},
|
|
37
|
-
"n8n": {
|
|
38
|
-
"n8nNodesApiVersion": 1,
|
|
39
|
-
"credentials": [
|
|
40
|
-
"dist/credentials/DocspellApi.credentials.js"
|
|
41
|
-
],
|
|
42
|
-
"nodes": [
|
|
43
|
-
"dist/nodes/Docspell/Docspell.node.js"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
38
|
"devDependencies": {
|
|
47
|
-
"@n8n/node-cli": "^0.
|
|
39
|
+
"@n8n/node-cli": "^0.56.0",
|
|
40
|
+
"oxfmt": "^0.78.0",
|
|
48
41
|
"oxlint": "^1.68.0",
|
|
49
42
|
"typescript": "~5.9.3",
|
|
50
43
|
"vitest": "^5.0.5"
|
|
@@ -53,7 +46,15 @@
|
|
|
53
46
|
"n8n-workflow": "*"
|
|
54
47
|
},
|
|
55
48
|
"docspellVersion": "0.43.0",
|
|
56
|
-
"
|
|
49
|
+
"n8n": {
|
|
50
|
+
"n8nNodesApiVersion": 1,
|
|
51
|
+
"credentials": [
|
|
52
|
+
"dist/credentials/DocspellApi.credentials.js"
|
|
53
|
+
],
|
|
54
|
+
"nodes": [
|
|
55
|
+
"dist/nodes/Docspell/Docspell.node.js"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
57
58
|
"n8nNodeTooling": {
|
|
58
59
|
"upstream": {
|
|
59
60
|
"name": "Docspell",
|
|
@@ -85,5 +86,6 @@
|
|
|
85
86
|
"from": "n8n"
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
|
-
}
|
|
89
|
+
},
|
|
90
|
+
"n8nWorkflowVersion": "2.47.0"
|
|
89
91
|
}
|