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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/dist/credentials/DocspellApi.credentials.d.ts +1 -1
  3. package/dist/credentials/DocspellApi.credentials.js +24 -24
  4. package/dist/credentials/DocspellApi.credentials.js.map +1 -1
  5. package/dist/credentials/DocspellSession.js +7 -7
  6. package/dist/credentials/DocspellSession.js.map +1 -1
  7. package/dist/nodes/Common/GenericFunctions.d.ts +2 -2
  8. package/dist/nodes/Common/GenericFunctions.js +24 -20
  9. package/dist/nodes/Common/GenericFunctions.js.map +1 -1
  10. package/dist/nodes/Docspell/Docspell.node.d.ts +1 -1
  11. package/dist/nodes/Docspell/Docspell.node.js +24 -24
  12. package/dist/nodes/Docspell/Docspell.node.js.map +1 -1
  13. package/dist/nodes/Docspell/Docspell.node.json +1 -3
  14. package/dist/nodes/Docspell/methods/loadOptions.d.ts +1 -1
  15. package/dist/nodes/Docspell/methods/loadOptions.js +9 -8
  16. package/dist/nodes/Docspell/methods/loadOptions.js.map +1 -1
  17. package/dist/nodes/Docspell/resources/attachment/download.d.ts +1 -1
  18. package/dist/nodes/Docspell/resources/attachment/download.js +37 -33
  19. package/dist/nodes/Docspell/resources/attachment/download.js.map +1 -1
  20. package/dist/nodes/Docspell/resources/attachment/index.d.ts +1 -1
  21. package/dist/nodes/Docspell/resources/attachment/index.js +9 -9
  22. package/dist/nodes/Docspell/resources/attachment/index.js.map +1 -1
  23. package/dist/nodes/Docspell/resources/item/get.d.ts +1 -1
  24. package/dist/nodes/Docspell/resources/item/get.js +9 -9
  25. package/dist/nodes/Docspell/resources/item/get.js.map +1 -1
  26. package/dist/nodes/Docspell/resources/item/index.d.ts +1 -1
  27. package/dist/nodes/Docspell/resources/item/index.js +25 -25
  28. package/dist/nodes/Docspell/resources/item/index.js.map +1 -1
  29. package/dist/nodes/Docspell/resources/item/search.d.ts +1 -1
  30. package/dist/nodes/Docspell/resources/item/search.js +40 -40
  31. package/dist/nodes/Docspell/resources/item/search.js.map +1 -1
  32. package/dist/nodes/Docspell/resources/item/update.d.ts +1 -1
  33. package/dist/nodes/Docspell/resources/item/update.js +179 -125
  34. package/dist/nodes/Docspell/resources/item/update.js.map +1 -1
  35. package/dist/nodes/Docspell/resources/item/updateMany.d.ts +1 -1
  36. package/dist/nodes/Docspell/resources/item/updateMany.js +80 -53
  37. package/dist/nodes/Docspell/resources/item/updateMany.js.map +1 -1
  38. package/dist/nodes/Docspell/resources/item/upload.d.ts +1 -1
  39. package/dist/nodes/Docspell/resources/item/upload.js +80 -69
  40. package/dist/nodes/Docspell/resources/item/upload.js.map +1 -1
  41. package/dist/nodes/Docspell/resources/organization/get.d.ts +1 -1
  42. package/dist/nodes/Docspell/resources/organization/get.js +9 -9
  43. package/dist/nodes/Docspell/resources/organization/get.js.map +1 -1
  44. package/dist/nodes/Docspell/resources/organization/getAll.d.ts +1 -1
  45. package/dist/nodes/Docspell/resources/organization/getAll.js +20 -20
  46. package/dist/nodes/Docspell/resources/organization/getAll.js.map +1 -1
  47. package/dist/nodes/Docspell/resources/organization/index.d.ts +1 -1
  48. package/dist/nodes/Docspell/resources/organization/index.js +13 -13
  49. package/dist/nodes/Docspell/resources/organization/index.js.map +1 -1
  50. package/dist/package.json +19 -17
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. 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: ['organization'], operation: ['getAll'] };
6
+ const show = { resource: ["organization"], operation: ["getAll"] };
7
7
  exports.organizationGetAllDescription = [
8
8
  {
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.',
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: 'Return All',
18
- name: 'returnAll',
19
- type: 'boolean',
17
+ displayName: "Return All",
18
+ name: "returnAll",
19
+ type: "boolean",
20
20
  default: false,
21
- description: 'Whether to return all results or only up to a given limit',
21
+ description: "Whether to return all results or only up to a given limit",
22
22
  displayOptions: { show },
23
23
  },
24
24
  {
25
- displayName: 'Limit',
26
- name: 'limit',
27
- type: 'number',
25
+ displayName: "Limit",
26
+ name: "limit",
27
+ type: "number",
28
28
  default: 50,
29
29
  typeOptions: { minValue: 1 },
30
- description: 'Max number of results to return',
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('query', itemIndex, '').trim();
36
+ const query = context.getNodeParameter("query", itemIndex, "").trim();
37
37
  const result = (await (0, GenericFunctions_1.docspellApiRequest)(context, {
38
- method: 'GET',
39
- endpoint: '/sec/organization',
40
- qs: { full: 'true', ...(query ? { q: query } : {}) },
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('returnAll', itemIndex, false)
43
+ const organizations = context.getNodeParameter("returnAll", itemIndex, false)
44
44
  ? all
45
- : all.slice(0, context.getNodeParameter('limit', itemIndex, 50));
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":["../../../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odeProperties } from 'n8n-workflow';
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: 'Operation',
9
- name: 'operation',
10
- type: 'options',
8
+ displayName: "Operation",
9
+ name: "operation",
10
+ type: "options",
11
11
  noDataExpression: true,
12
- displayOptions: { show: { resource: ['organization'] } },
12
+ displayOptions: { show: { resource: ["organization"] } },
13
13
  options: [
14
14
  {
15
- name: 'Get',
16
- value: 'get',
17
- description: 'Get one organization, including its short name',
18
- action: 'Get an organization',
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: 'Get Many',
22
- value: 'getAll',
23
- description: 'List the organizations, optionally filtered by name',
24
- action: 'Get many organizations',
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: 'get',
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;IACzD;QACC,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;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,gDAAgD;gBAC7D,MAAM,EAAE,qBAAqB;aAC7B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qDAAqD;gBAClE,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,OAAO,EAAE,KAAK;KACd;IACD,GAAG,gCAA0B;IAC7B,GAAG,sCAA6B;CAChC,CAAC"}
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.4",
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": "npm run lint:n8n && npm run lint:oxlint",
26
- "lint:n8n": "n8n-node lint",
25
+ "lint": "n8n-node lint",
27
26
  "lint:oxlint": "oxlint",
28
- "lint:fix": "n8n-node lint --fix && oxlint --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.55.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
- "n8nWorkflowVersion": "2.46.5",
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
  }